configure 514 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for bfd 2.38.50.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  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. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='bfd'
  539. PACKAGE_TARNAME='bfd'
  540. PACKAGE_VERSION='2.38.50'
  541. PACKAGE_STRING='bfd 2.38.50'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="libbfd.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_header_list=
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. LIBOBJS
  585. bfd_ufile_ptr
  586. bfd_file_ptr
  587. lt_cv_dlopen_libs
  588. supports_plugins
  589. COREFLAG
  590. COREFILE
  591. havevecs
  592. tdefaults
  593. bfd_default_target_size
  594. bfd_machines
  595. bfd_backends
  596. all_backends
  597. bfd64_libs
  598. wordsize
  599. TDEFINES
  600. SHARED_LIBADD
  601. SHARED_LDFLAGS
  602. LIBM
  603. zlibinc
  604. zlibdir
  605. EXEEXT_FOR_BUILD
  606. CC_FOR_BUILD
  607. BFD_HOSTPTR_T
  608. BFD_HOST_U_64_BIT
  609. BFD_HOST_64_BIT
  610. BFD_HOST_64_BIT_DEFINED
  611. BFD_HOST_64BIT_LONG_LONG
  612. BFD_HOST_64BIT_LONG
  613. HDEFINES
  614. MSGMERGE
  615. MSGFMT
  616. MKINSTALLDIRS
  617. CATOBJEXT
  618. GENCAT
  619. INSTOBJEXT
  620. DATADIRNAME
  621. CATALOGS
  622. POSUB
  623. GMSGFMT
  624. XGETTEXT
  625. INCINTL
  626. LIBINTL_DEP
  627. LIBINTL
  628. USE_NLS
  629. bfdincludedir
  630. bfdlibdir
  631. target_noncanonical
  632. host_noncanonical
  633. INSTALL_LIBBFD_FALSE
  634. INSTALL_LIBBFD_TRUE
  635. GENINSRC_NEVER_FALSE
  636. GENINSRC_NEVER_TRUE
  637. MAINT
  638. MAINTAINER_MODE_FALSE
  639. MAINTAINER_MODE_TRUE
  640. WARN_WRITE_STRINGS
  641. NO_WERROR
  642. WARN_CFLAGS_FOR_BUILD
  643. WARN_CFLAGS
  644. REPORT_BUGS_TEXI
  645. REPORT_BUGS_TO
  646. PKGVERSION
  647. DEBUGDIR
  648. ENABLE_BFD_64_BIT_FALSE
  649. ENABLE_BFD_64_BIT_TRUE
  650. PLUGINS_FALSE
  651. PLUGINS_TRUE
  652. LARGEFILE_CPPFLAGS
  653. OTOOL64
  654. OTOOL
  655. LIPO
  656. NMEDIT
  657. DSYMUTIL
  658. OBJDUMP
  659. LN_S
  660. NM
  661. ac_ct_DUMPBIN
  662. DUMPBIN
  663. LD
  664. FGREP
  665. SED
  666. LIBTOOL
  667. EGREP
  668. GREP
  669. CPP
  670. am__fastdepCC_FALSE
  671. am__fastdepCC_TRUE
  672. CCDEPMODE
  673. am__nodep
  674. AMDEPBACKSLASH
  675. AMDEP_FALSE
  676. AMDEP_TRUE
  677. am__quote
  678. am__include
  679. DEPDIR
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. RANLIB
  688. AR
  689. AM_BACKSLASH
  690. AM_DEFAULT_VERBOSITY
  691. AM_DEFAULT_V
  692. AM_V
  693. am__untar
  694. am__tar
  695. AMTAR
  696. am__leading_dot
  697. SET_MAKE
  698. AWK
  699. mkdir_p
  700. MKDIR_P
  701. INSTALL_STRIP_PROGRAM
  702. STRIP
  703. install_sh
  704. MAKEINFO
  705. AUTOHEADER
  706. AUTOMAKE
  707. AUTOCONF
  708. ACLOCAL
  709. VERSION
  710. PACKAGE
  711. CYGPATH_W
  712. am__isrc
  713. INSTALL_DATA
  714. INSTALL_SCRIPT
  715. INSTALL_PROGRAM
  716. target_os
  717. target_vendor
  718. target_cpu
  719. target
  720. host_os
  721. host_vendor
  722. host_cpu
  723. host
  724. build_os
  725. build_vendor
  726. build_cpu
  727. build
  728. target_alias
  729. host_alias
  730. build_alias
  731. LIBS
  732. ECHO_T
  733. ECHO_N
  734. ECHO_C
  735. DEFS
  736. mandir
  737. localedir
  738. libdir
  739. psdir
  740. pdfdir
  741. dvidir
  742. htmldir
  743. infodir
  744. docdir
  745. oldincludedir
  746. includedir
  747. localstatedir
  748. sharedstatedir
  749. sysconfdir
  750. datadir
  751. datarootdir
  752. libexecdir
  753. sbindir
  754. bindir
  755. program_transform_name
  756. prefix
  757. exec_prefix
  758. PACKAGE_URL
  759. PACKAGE_BUGREPORT
  760. PACKAGE_STRING
  761. PACKAGE_VERSION
  762. PACKAGE_TARNAME
  763. PACKAGE_NAME
  764. PATH_SEPARATOR
  765. SHELL'
  766. ac_subst_files=''
  767. ac_user_opts='
  768. enable_option_checking
  769. enable_silent_rules
  770. enable_shared
  771. enable_dependency_tracking
  772. enable_static
  773. with_pic
  774. enable_fast_install
  775. with_gnu_ld
  776. enable_libtool_lock
  777. enable_plugins
  778. enable_largefile
  779. enable_checking
  780. enable_64_bit_bfd
  781. enable_targets
  782. enable_64_bit_archive
  783. with_mmap
  784. enable_secureplt
  785. enable_separate_code
  786. enable_leading_mingw64_underscores
  787. with_separate_debug_dir
  788. with_pkgversion
  789. with_bugurl
  790. enable_werror
  791. enable_build_warnings
  792. enable_maintainer_mode
  793. enable_install_libbfd
  794. enable_nls
  795. with_system_zlib
  796. '
  797. ac_precious_vars='build_alias
  798. host_alias
  799. target_alias
  800. CC
  801. CFLAGS
  802. LDFLAGS
  803. LIBS
  804. CPPFLAGS
  805. CPP'
  806. # Initialize some variables set by options.
  807. ac_init_help=
  808. ac_init_version=false
  809. ac_unrecognized_opts=
  810. ac_unrecognized_sep=
  811. # The variables have the same names as the options, with
  812. # dashes changed to underlines.
  813. cache_file=/dev/null
  814. exec_prefix=NONE
  815. no_create=
  816. no_recursion=
  817. prefix=NONE
  818. program_prefix=NONE
  819. program_suffix=NONE
  820. program_transform_name=s,x,x,
  821. silent=
  822. site=
  823. srcdir=
  824. verbose=
  825. x_includes=NONE
  826. x_libraries=NONE
  827. # Installation directory options.
  828. # These are left unexpanded so users can "make install exec_prefix=/foo"
  829. # and all the variables that are supposed to be based on exec_prefix
  830. # by default will actually change.
  831. # Use braces instead of parens because sh, perl, etc. also accept them.
  832. # (The list follows the same order as the GNU Coding Standards.)
  833. bindir='${exec_prefix}/bin'
  834. sbindir='${exec_prefix}/sbin'
  835. libexecdir='${exec_prefix}/libexec'
  836. datarootdir='${prefix}/share'
  837. datadir='${datarootdir}'
  838. sysconfdir='${prefix}/etc'
  839. sharedstatedir='${prefix}/com'
  840. localstatedir='${prefix}/var'
  841. includedir='${prefix}/include'
  842. oldincludedir='/usr/include'
  843. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  844. infodir='${datarootdir}/info'
  845. htmldir='${docdir}'
  846. dvidir='${docdir}'
  847. pdfdir='${docdir}'
  848. psdir='${docdir}'
  849. libdir='${exec_prefix}/lib'
  850. localedir='${datarootdir}/locale'
  851. mandir='${datarootdir}/man'
  852. ac_prev=
  853. ac_dashdash=
  854. for ac_option
  855. do
  856. # If the previous option needs an argument, assign it.
  857. if test -n "$ac_prev"; then
  858. eval $ac_prev=\$ac_option
  859. ac_prev=
  860. continue
  861. fi
  862. case $ac_option in
  863. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  864. *=) ac_optarg= ;;
  865. *) ac_optarg=yes ;;
  866. esac
  867. # Accept the important Cygnus configure options, so we can diagnose typos.
  868. case $ac_dashdash$ac_option in
  869. --)
  870. ac_dashdash=yes ;;
  871. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  872. ac_prev=bindir ;;
  873. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  874. bindir=$ac_optarg ;;
  875. -build | --build | --buil | --bui | --bu)
  876. ac_prev=build_alias ;;
  877. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  878. build_alias=$ac_optarg ;;
  879. -cache-file | --cache-file | --cache-fil | --cache-fi \
  880. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  881. ac_prev=cache_file ;;
  882. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  883. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  884. cache_file=$ac_optarg ;;
  885. --config-cache | -C)
  886. cache_file=config.cache ;;
  887. -datadir | --datadir | --datadi | --datad)
  888. ac_prev=datadir ;;
  889. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  890. datadir=$ac_optarg ;;
  891. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  892. | --dataroo | --dataro | --datar)
  893. ac_prev=datarootdir ;;
  894. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  895. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  896. datarootdir=$ac_optarg ;;
  897. -disable-* | --disable-*)
  898. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  899. # Reject names that are not valid shell variable names.
  900. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  901. as_fn_error $? "invalid feature name: $ac_useropt"
  902. ac_useropt_orig=$ac_useropt
  903. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  904. case $ac_user_opts in
  905. *"
  906. "enable_$ac_useropt"
  907. "*) ;;
  908. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  909. ac_unrecognized_sep=', ';;
  910. esac
  911. eval enable_$ac_useropt=no ;;
  912. -docdir | --docdir | --docdi | --doc | --do)
  913. ac_prev=docdir ;;
  914. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  915. docdir=$ac_optarg ;;
  916. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  917. ac_prev=dvidir ;;
  918. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  919. dvidir=$ac_optarg ;;
  920. -enable-* | --enable-*)
  921. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  922. # Reject names that are not valid shell variable names.
  923. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  924. as_fn_error $? "invalid feature name: $ac_useropt"
  925. ac_useropt_orig=$ac_useropt
  926. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  927. case $ac_user_opts in
  928. *"
  929. "enable_$ac_useropt"
  930. "*) ;;
  931. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  932. ac_unrecognized_sep=', ';;
  933. esac
  934. eval enable_$ac_useropt=\$ac_optarg ;;
  935. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  936. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  937. | --exec | --exe | --ex)
  938. ac_prev=exec_prefix ;;
  939. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  940. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  941. | --exec=* | --exe=* | --ex=*)
  942. exec_prefix=$ac_optarg ;;
  943. -gas | --gas | --ga | --g)
  944. # Obsolete; use --with-gas.
  945. with_gas=yes ;;
  946. -help | --help | --hel | --he | -h)
  947. ac_init_help=long ;;
  948. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  949. ac_init_help=recursive ;;
  950. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  951. ac_init_help=short ;;
  952. -host | --host | --hos | --ho)
  953. ac_prev=host_alias ;;
  954. -host=* | --host=* | --hos=* | --ho=*)
  955. host_alias=$ac_optarg ;;
  956. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  957. ac_prev=htmldir ;;
  958. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  959. | --ht=*)
  960. htmldir=$ac_optarg ;;
  961. -includedir | --includedir | --includedi | --included | --include \
  962. | --includ | --inclu | --incl | --inc)
  963. ac_prev=includedir ;;
  964. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  965. | --includ=* | --inclu=* | --incl=* | --inc=*)
  966. includedir=$ac_optarg ;;
  967. -infodir | --infodir | --infodi | --infod | --info | --inf)
  968. ac_prev=infodir ;;
  969. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  970. infodir=$ac_optarg ;;
  971. -libdir | --libdir | --libdi | --libd)
  972. ac_prev=libdir ;;
  973. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  974. libdir=$ac_optarg ;;
  975. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  976. | --libexe | --libex | --libe)
  977. ac_prev=libexecdir ;;
  978. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  979. | --libexe=* | --libex=* | --libe=*)
  980. libexecdir=$ac_optarg ;;
  981. -localedir | --localedir | --localedi | --localed | --locale)
  982. ac_prev=localedir ;;
  983. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  984. localedir=$ac_optarg ;;
  985. -localstatedir | --localstatedir | --localstatedi | --localstated \
  986. | --localstate | --localstat | --localsta | --localst | --locals)
  987. ac_prev=localstatedir ;;
  988. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  989. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  990. localstatedir=$ac_optarg ;;
  991. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  992. ac_prev=mandir ;;
  993. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  994. mandir=$ac_optarg ;;
  995. -nfp | --nfp | --nf)
  996. # Obsolete; use --without-fp.
  997. with_fp=no ;;
  998. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  999. | --no-cr | --no-c | -n)
  1000. no_create=yes ;;
  1001. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1002. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1003. no_recursion=yes ;;
  1004. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1005. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1006. | --oldin | --oldi | --old | --ol | --o)
  1007. ac_prev=oldincludedir ;;
  1008. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1009. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1010. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1011. oldincludedir=$ac_optarg ;;
  1012. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1013. ac_prev=prefix ;;
  1014. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1015. prefix=$ac_optarg ;;
  1016. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1017. | --program-pre | --program-pr | --program-p)
  1018. ac_prev=program_prefix ;;
  1019. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1020. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1021. program_prefix=$ac_optarg ;;
  1022. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1023. | --program-suf | --program-su | --program-s)
  1024. ac_prev=program_suffix ;;
  1025. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1026. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1027. program_suffix=$ac_optarg ;;
  1028. -program-transform-name | --program-transform-name \
  1029. | --program-transform-nam | --program-transform-na \
  1030. | --program-transform-n | --program-transform- \
  1031. | --program-transform | --program-transfor \
  1032. | --program-transfo | --program-transf \
  1033. | --program-trans | --program-tran \
  1034. | --progr-tra | --program-tr | --program-t)
  1035. ac_prev=program_transform_name ;;
  1036. -program-transform-name=* | --program-transform-name=* \
  1037. | --program-transform-nam=* | --program-transform-na=* \
  1038. | --program-transform-n=* | --program-transform-=* \
  1039. | --program-transform=* | --program-transfor=* \
  1040. | --program-transfo=* | --program-transf=* \
  1041. | --program-trans=* | --program-tran=* \
  1042. | --progr-tra=* | --program-tr=* | --program-t=*)
  1043. program_transform_name=$ac_optarg ;;
  1044. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1045. ac_prev=pdfdir ;;
  1046. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1047. pdfdir=$ac_optarg ;;
  1048. -psdir | --psdir | --psdi | --psd | --ps)
  1049. ac_prev=psdir ;;
  1050. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1051. psdir=$ac_optarg ;;
  1052. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1053. | -silent | --silent | --silen | --sile | --sil)
  1054. silent=yes ;;
  1055. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1056. ac_prev=sbindir ;;
  1057. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1058. | --sbi=* | --sb=*)
  1059. sbindir=$ac_optarg ;;
  1060. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1061. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1062. | --sharedst | --shareds | --shared | --share | --shar \
  1063. | --sha | --sh)
  1064. ac_prev=sharedstatedir ;;
  1065. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1066. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1067. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1068. | --sha=* | --sh=*)
  1069. sharedstatedir=$ac_optarg ;;
  1070. -site | --site | --sit)
  1071. ac_prev=site ;;
  1072. -site=* | --site=* | --sit=*)
  1073. site=$ac_optarg ;;
  1074. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1075. ac_prev=srcdir ;;
  1076. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1077. srcdir=$ac_optarg ;;
  1078. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1079. | --syscon | --sysco | --sysc | --sys | --sy)
  1080. ac_prev=sysconfdir ;;
  1081. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1082. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1083. sysconfdir=$ac_optarg ;;
  1084. -target | --target | --targe | --targ | --tar | --ta | --t)
  1085. ac_prev=target_alias ;;
  1086. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1087. target_alias=$ac_optarg ;;
  1088. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1089. verbose=yes ;;
  1090. -version | --version | --versio | --versi | --vers | -V)
  1091. ac_init_version=: ;;
  1092. -with-* | --with-*)
  1093. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1094. # Reject names that are not valid shell variable names.
  1095. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1096. as_fn_error $? "invalid package name: $ac_useropt"
  1097. ac_useropt_orig=$ac_useropt
  1098. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1099. case $ac_user_opts in
  1100. *"
  1101. "with_$ac_useropt"
  1102. "*) ;;
  1103. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1104. ac_unrecognized_sep=', ';;
  1105. esac
  1106. eval with_$ac_useropt=\$ac_optarg ;;
  1107. -without-* | --without-*)
  1108. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1109. # Reject names that are not valid shell variable names.
  1110. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1111. as_fn_error $? "invalid package name: $ac_useropt"
  1112. ac_useropt_orig=$ac_useropt
  1113. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1114. case $ac_user_opts in
  1115. *"
  1116. "with_$ac_useropt"
  1117. "*) ;;
  1118. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1119. ac_unrecognized_sep=', ';;
  1120. esac
  1121. eval with_$ac_useropt=no ;;
  1122. --x)
  1123. # Obsolete; use --with-x.
  1124. with_x=yes ;;
  1125. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1126. | --x-incl | --x-inc | --x-in | --x-i)
  1127. ac_prev=x_includes ;;
  1128. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1129. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1130. x_includes=$ac_optarg ;;
  1131. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1132. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1133. ac_prev=x_libraries ;;
  1134. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1135. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1136. x_libraries=$ac_optarg ;;
  1137. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1138. Try \`$0 --help' for more information"
  1139. ;;
  1140. *=*)
  1141. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1142. # Reject names that are not valid shell variable names.
  1143. case $ac_envvar in #(
  1144. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1145. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1146. esac
  1147. eval $ac_envvar=\$ac_optarg
  1148. export $ac_envvar ;;
  1149. *)
  1150. # FIXME: should be removed in autoconf 3.0.
  1151. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1152. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1153. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1154. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1155. ;;
  1156. esac
  1157. done
  1158. if test -n "$ac_prev"; then
  1159. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1160. as_fn_error $? "missing argument to $ac_option"
  1161. fi
  1162. if test -n "$ac_unrecognized_opts"; then
  1163. case $enable_option_checking in
  1164. no) ;;
  1165. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1166. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1167. esac
  1168. fi
  1169. # Check all directory arguments for consistency.
  1170. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1171. datadir sysconfdir sharedstatedir localstatedir includedir \
  1172. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1173. libdir localedir mandir
  1174. do
  1175. eval ac_val=\$$ac_var
  1176. # Remove trailing slashes.
  1177. case $ac_val in
  1178. */ )
  1179. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1180. eval $ac_var=\$ac_val;;
  1181. esac
  1182. # Be sure to have absolute directory names.
  1183. case $ac_val in
  1184. [\\/$]* | ?:[\\/]* ) continue;;
  1185. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1186. esac
  1187. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1188. done
  1189. # There might be people who depend on the old broken behavior: `$host'
  1190. # used to hold the argument of --host etc.
  1191. # FIXME: To remove some day.
  1192. build=$build_alias
  1193. host=$host_alias
  1194. target=$target_alias
  1195. # FIXME: To remove some day.
  1196. if test "x$host_alias" != x; then
  1197. if test "x$build_alias" = x; then
  1198. cross_compiling=maybe
  1199. elif test "x$build_alias" != "x$host_alias"; then
  1200. cross_compiling=yes
  1201. fi
  1202. fi
  1203. ac_tool_prefix=
  1204. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1205. test "$silent" = yes && exec 6>/dev/null
  1206. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1207. ac_ls_di=`ls -di .` &&
  1208. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1209. as_fn_error $? "working directory cannot be determined"
  1210. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1211. as_fn_error $? "pwd does not report name of working directory"
  1212. # Find the source files, if location was not specified.
  1213. if test -z "$srcdir"; then
  1214. ac_srcdir_defaulted=yes
  1215. # Try the directory containing this script, then the parent directory.
  1216. ac_confdir=`$as_dirname -- "$as_myself" ||
  1217. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1218. X"$as_myself" : 'X\(//\)[^/]' \| \
  1219. X"$as_myself" : 'X\(//\)$' \| \
  1220. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1221. $as_echo X"$as_myself" |
  1222. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1223. s//\1/
  1224. q
  1225. }
  1226. /^X\(\/\/\)[^/].*/{
  1227. s//\1/
  1228. q
  1229. }
  1230. /^X\(\/\/\)$/{
  1231. s//\1/
  1232. q
  1233. }
  1234. /^X\(\/\).*/{
  1235. s//\1/
  1236. q
  1237. }
  1238. s/.*/./; q'`
  1239. srcdir=$ac_confdir
  1240. if test ! -r "$srcdir/$ac_unique_file"; then
  1241. srcdir=..
  1242. fi
  1243. else
  1244. ac_srcdir_defaulted=no
  1245. fi
  1246. if test ! -r "$srcdir/$ac_unique_file"; then
  1247. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1248. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1249. fi
  1250. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1251. ac_abs_confdir=`(
  1252. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1253. pwd)`
  1254. # When building in place, set srcdir=.
  1255. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1256. srcdir=.
  1257. fi
  1258. # Remove unnecessary trailing slashes from srcdir.
  1259. # Double slashes in file names in object file debugging info
  1260. # mess up M-x gdb in Emacs.
  1261. case $srcdir in
  1262. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1263. esac
  1264. for ac_var in $ac_precious_vars; do
  1265. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_env_${ac_var}_value=\$${ac_var}
  1267. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1268. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1269. done
  1270. #
  1271. # Report the --help message.
  1272. #
  1273. if test "$ac_init_help" = "long"; then
  1274. # Omit some internal or obsolete options to make the list less imposing.
  1275. # This message is too long to be a string in the A/UX 3.1 sh.
  1276. cat <<_ACEOF
  1277. \`configure' configures bfd 2.38.50 to adapt to many kinds of systems.
  1278. Usage: $0 [OPTION]... [VAR=VALUE]...
  1279. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1280. VAR=VALUE. See below for descriptions of some of the useful variables.
  1281. Defaults for the options are specified in brackets.
  1282. Configuration:
  1283. -h, --help display this help and exit
  1284. --help=short display options specific to this package
  1285. --help=recursive display the short help of all the included packages
  1286. -V, --version display version information and exit
  1287. -q, --quiet, --silent do not print \`checking ...' messages
  1288. --cache-file=FILE cache test results in FILE [disabled]
  1289. -C, --config-cache alias for \`--cache-file=config.cache'
  1290. -n, --no-create do not create output files
  1291. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1292. Installation directories:
  1293. --prefix=PREFIX install architecture-independent files in PREFIX
  1294. [$ac_default_prefix]
  1295. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1296. [PREFIX]
  1297. By default, \`make install' will install all the files in
  1298. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1299. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1300. for instance \`--prefix=\$HOME'.
  1301. For better control, use the options below.
  1302. Fine tuning of the installation directories:
  1303. --bindir=DIR user executables [EPREFIX/bin]
  1304. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1305. --libexecdir=DIR program executables [EPREFIX/libexec]
  1306. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1307. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1308. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1309. --libdir=DIR object code libraries [EPREFIX/lib]
  1310. --includedir=DIR C header files [PREFIX/include]
  1311. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1312. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1313. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1314. --infodir=DIR info documentation [DATAROOTDIR/info]
  1315. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1316. --mandir=DIR man documentation [DATAROOTDIR/man]
  1317. --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
  1318. --htmldir=DIR html documentation [DOCDIR]
  1319. --dvidir=DIR dvi documentation [DOCDIR]
  1320. --pdfdir=DIR pdf documentation [DOCDIR]
  1321. --psdir=DIR ps documentation [DOCDIR]
  1322. _ACEOF
  1323. cat <<\_ACEOF
  1324. Program names:
  1325. --program-prefix=PREFIX prepend PREFIX to installed program names
  1326. --program-suffix=SUFFIX append SUFFIX to installed program names
  1327. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1328. System types:
  1329. --build=BUILD configure for building on BUILD [guessed]
  1330. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1331. --target=TARGET configure for building compilers for TARGET [HOST]
  1332. _ACEOF
  1333. fi
  1334. if test -n "$ac_init_help"; then
  1335. case $ac_init_help in
  1336. short | recursive ) echo "Configuration of bfd 2.38.50:";;
  1337. esac
  1338. cat <<\_ACEOF
  1339. Optional Features:
  1340. --disable-option-checking ignore unrecognized --enable/--with options
  1341. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1342. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1343. --enable-silent-rules less verbose build output (undo: "make V=1")
  1344. --disable-silent-rules verbose build output (undo: "make V=0")
  1345. --enable-shared[=PKGS] build shared libraries [default=no]
  1346. --enable-dependency-tracking
  1347. do not reject slow dependency extractors
  1348. --disable-dependency-tracking
  1349. speeds up one-time build
  1350. --enable-static[=PKGS] build static libraries [default=yes]
  1351. --enable-fast-install[=PKGS]
  1352. optimize for fast installation [default=yes]
  1353. --disable-libtool-lock avoid locking (might break parallel builds)
  1354. --enable-plugins Enable support for plugins
  1355. --disable-largefile omit support for large files
  1356. --enable-checking enable run-time checks
  1357. --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
  1358. --enable-targets alternative target configurations
  1359. --enable-64-bit-archive force 64-bit archives
  1360. --enable-secureplt Default to creating read-only plt entries
  1361. --enable-separate-code enable -z separate-code in ELF linker by default
  1362. --enable-leading-mingw64-underscores
  1363. Enable leading underscores on 64 bit mingw targets
  1364. --enable-werror treat compile warnings as errors
  1365. --enable-build-warnings enable build-time compiler warnings
  1366. --enable-maintainer-mode
  1367. enable make rules and dependencies not useful (and
  1368. sometimes confusing) to the casual installer
  1369. --enable-install-libbfd controls installation of libbfd and related headers
  1370. --disable-nls do not use Native Language Support
  1371. Optional Packages:
  1372. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1373. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1374. --with-pic try to use only PIC/non-PIC objects [default=use
  1375. both]
  1376. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1377. --with-mmap try using mmap for BFD input files if available
  1378. --with-separate-debug-dir=DIR
  1379. Look for global separate debug info in DIR
  1380. [[default=LIBDIR/debug]]
  1381. --with-pkgversion=PKG Use PKG in the version string in place of "GNU
  1382. Binutils"
  1383. --with-bugurl=URL Direct users to URL to report a bug
  1384. --with-system-zlib use installed libz
  1385. Some influential environment variables:
  1386. CC C compiler command
  1387. CFLAGS C compiler flags
  1388. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1389. nonstandard directory <lib dir>
  1390. LIBS libraries to pass to the linker, e.g. -l<library>
  1391. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1392. you have headers in a nonstandard directory <include dir>
  1393. CPP C preprocessor
  1394. Use these variables to override the choices made by `configure' or to help
  1395. it to find libraries and programs with nonstandard names/locations.
  1396. Report bugs to the package provider.
  1397. _ACEOF
  1398. ac_status=$?
  1399. fi
  1400. if test "$ac_init_help" = "recursive"; then
  1401. # If there are subdirs, report their specific --help.
  1402. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1403. test -d "$ac_dir" ||
  1404. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1405. continue
  1406. ac_builddir=.
  1407. case "$ac_dir" in
  1408. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1409. *)
  1410. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1411. # A ".." for each directory in $ac_dir_suffix.
  1412. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1413. case $ac_top_builddir_sub in
  1414. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1415. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1416. esac ;;
  1417. esac
  1418. ac_abs_top_builddir=$ac_pwd
  1419. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1420. # for backward compatibility:
  1421. ac_top_builddir=$ac_top_build_prefix
  1422. case $srcdir in
  1423. .) # We are building in place.
  1424. ac_srcdir=.
  1425. ac_top_srcdir=$ac_top_builddir_sub
  1426. ac_abs_top_srcdir=$ac_pwd ;;
  1427. [\\/]* | ?:[\\/]* ) # Absolute name.
  1428. ac_srcdir=$srcdir$ac_dir_suffix;
  1429. ac_top_srcdir=$srcdir
  1430. ac_abs_top_srcdir=$srcdir ;;
  1431. *) # Relative name.
  1432. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1433. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1434. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1435. esac
  1436. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1437. cd "$ac_dir" || { ac_status=$?; continue; }
  1438. # Check for guested configure.
  1439. if test -f "$ac_srcdir/configure.gnu"; then
  1440. echo &&
  1441. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1442. elif test -f "$ac_srcdir/configure"; then
  1443. echo &&
  1444. $SHELL "$ac_srcdir/configure" --help=recursive
  1445. else
  1446. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1447. fi || ac_status=$?
  1448. cd "$ac_pwd" || { ac_status=$?; break; }
  1449. done
  1450. fi
  1451. test -n "$ac_init_help" && exit $ac_status
  1452. if $ac_init_version; then
  1453. cat <<\_ACEOF
  1454. bfd configure 2.38.50
  1455. generated by GNU Autoconf 2.69
  1456. Copyright (C) 2012 Free Software Foundation, Inc.
  1457. This configure script is free software; the Free Software Foundation
  1458. gives unlimited permission to copy, distribute and modify it.
  1459. _ACEOF
  1460. exit
  1461. fi
  1462. ## ------------------------ ##
  1463. ## Autoconf initialization. ##
  1464. ## ------------------------ ##
  1465. # ac_fn_c_try_compile LINENO
  1466. # --------------------------
  1467. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1468. ac_fn_c_try_compile ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. rm -f conftest.$ac_objext
  1472. if { { ac_try="$ac_compile"
  1473. case "(($ac_try" in
  1474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1475. *) ac_try_echo=$ac_try;;
  1476. esac
  1477. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1478. $as_echo "$ac_try_echo"; } >&5
  1479. (eval "$ac_compile") 2>conftest.err
  1480. ac_status=$?
  1481. if test -s conftest.err; then
  1482. grep -v '^ *+' conftest.err >conftest.er1
  1483. cat conftest.er1 >&5
  1484. mv -f conftest.er1 conftest.err
  1485. fi
  1486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1487. test $ac_status = 0; } && {
  1488. test -z "$ac_c_werror_flag" ||
  1489. test ! -s conftest.err
  1490. } && test -s conftest.$ac_objext; then :
  1491. ac_retval=0
  1492. else
  1493. $as_echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_retval=1
  1496. fi
  1497. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1498. as_fn_set_status $ac_retval
  1499. } # ac_fn_c_try_compile
  1500. # ac_fn_c_try_cpp LINENO
  1501. # ----------------------
  1502. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1503. ac_fn_c_try_cpp ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1507. case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1514. ac_status=$?
  1515. if test -s conftest.err; then
  1516. grep -v '^ *+' conftest.err >conftest.er1
  1517. cat conftest.er1 >&5
  1518. mv -f conftest.er1 conftest.err
  1519. fi
  1520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1521. test $ac_status = 0; } > conftest.i && {
  1522. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1523. test ! -s conftest.err
  1524. }; then :
  1525. ac_retval=0
  1526. else
  1527. $as_echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. ac_retval=1
  1530. fi
  1531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1532. as_fn_set_status $ac_retval
  1533. } # ac_fn_c_try_cpp
  1534. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1535. # -------------------------------------------------------
  1536. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1537. # the include files in INCLUDES and setting the cache variable VAR
  1538. # accordingly.
  1539. ac_fn_c_check_header_mongrel ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. if eval \${$3+:} false; then :
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1544. $as_echo_n "checking for $2... " >&6; }
  1545. if eval \${$3+:} false; then :
  1546. $as_echo_n "(cached) " >&6
  1547. fi
  1548. eval ac_res=\$$3
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1550. $as_echo "$ac_res" >&6; }
  1551. else
  1552. # Is the header compilable?
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1554. $as_echo_n "checking $2 usability... " >&6; }
  1555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1556. /* end confdefs.h. */
  1557. $4
  1558. #include <$2>
  1559. _ACEOF
  1560. if ac_fn_c_try_compile "$LINENO"; then :
  1561. ac_header_compiler=yes
  1562. else
  1563. ac_header_compiler=no
  1564. fi
  1565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1567. $as_echo "$ac_header_compiler" >&6; }
  1568. # Is the header present?
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1570. $as_echo_n "checking $2 presence... " >&6; }
  1571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1572. /* end confdefs.h. */
  1573. #include <$2>
  1574. _ACEOF
  1575. if ac_fn_c_try_cpp "$LINENO"; then :
  1576. ac_header_preproc=yes
  1577. else
  1578. ac_header_preproc=no
  1579. fi
  1580. rm -f conftest.err conftest.i conftest.$ac_ext
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1582. $as_echo "$ac_header_preproc" >&6; }
  1583. # So? What about this header?
  1584. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1585. yes:no: )
  1586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1587. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1589. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1590. ;;
  1591. no:yes:* )
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1593. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1595. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1597. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1599. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1601. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1602. ;;
  1603. esac
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1605. $as_echo_n "checking for $2... " >&6; }
  1606. if eval \${$3+:} false; then :
  1607. $as_echo_n "(cached) " >&6
  1608. else
  1609. eval "$3=\$ac_header_compiler"
  1610. fi
  1611. eval ac_res=\$$3
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1613. $as_echo "$ac_res" >&6; }
  1614. fi
  1615. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1616. } # ac_fn_c_check_header_mongrel
  1617. # ac_fn_c_try_run LINENO
  1618. # ----------------------
  1619. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1620. # that executables *can* be run.
  1621. ac_fn_c_try_run ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. if { { ac_try="$ac_link"
  1625. case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1630. $as_echo "$ac_try_echo"; } >&5
  1631. (eval "$ac_link") 2>&5
  1632. ac_status=$?
  1633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1634. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1635. { { case "(($ac_try" in
  1636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1637. *) ac_try_echo=$ac_try;;
  1638. esac
  1639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1640. $as_echo "$ac_try_echo"; } >&5
  1641. (eval "$ac_try") 2>&5
  1642. ac_status=$?
  1643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1644. test $ac_status = 0; }; }; then :
  1645. ac_retval=0
  1646. else
  1647. $as_echo "$as_me: program exited with status $ac_status" >&5
  1648. $as_echo "$as_me: failed program was:" >&5
  1649. sed 's/^/| /' conftest.$ac_ext >&5
  1650. ac_retval=$ac_status
  1651. fi
  1652. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1653. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1654. as_fn_set_status $ac_retval
  1655. } # ac_fn_c_try_run
  1656. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1657. # -------------------------------------------------------
  1658. # Tests whether HEADER exists and can be compiled using the include files in
  1659. # INCLUDES, setting the cache variable VAR accordingly.
  1660. ac_fn_c_check_header_compile ()
  1661. {
  1662. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1664. $as_echo_n "checking for $2... " >&6; }
  1665. if eval \${$3+:} false; then :
  1666. $as_echo_n "(cached) " >&6
  1667. else
  1668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1669. /* end confdefs.h. */
  1670. $4
  1671. #include <$2>
  1672. _ACEOF
  1673. if ac_fn_c_try_compile "$LINENO"; then :
  1674. eval "$3=yes"
  1675. else
  1676. eval "$3=no"
  1677. fi
  1678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1679. fi
  1680. eval ac_res=\$$3
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1682. $as_echo "$ac_res" >&6; }
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. } # ac_fn_c_check_header_compile
  1685. # ac_fn_c_try_link LINENO
  1686. # -----------------------
  1687. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1688. ac_fn_c_try_link ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. rm -f conftest.$ac_objext conftest$ac_exeext
  1692. if { { ac_try="$ac_link"
  1693. case "(($ac_try" in
  1694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1695. *) ac_try_echo=$ac_try;;
  1696. esac
  1697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1698. $as_echo "$ac_try_echo"; } >&5
  1699. (eval "$ac_link") 2>conftest.err
  1700. ac_status=$?
  1701. if test -s conftest.err; then
  1702. grep -v '^ *+' conftest.err >conftest.er1
  1703. cat conftest.er1 >&5
  1704. mv -f conftest.er1 conftest.err
  1705. fi
  1706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1707. test $ac_status = 0; } && {
  1708. test -z "$ac_c_werror_flag" ||
  1709. test ! -s conftest.err
  1710. } && test -s conftest$ac_exeext && {
  1711. test "$cross_compiling" = yes ||
  1712. test -x conftest$ac_exeext
  1713. }; then :
  1714. ac_retval=0
  1715. else
  1716. $as_echo "$as_me: failed program was:" >&5
  1717. sed 's/^/| /' conftest.$ac_ext >&5
  1718. ac_retval=1
  1719. fi
  1720. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1721. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1722. # interfere with the next link command; also delete a directory that is
  1723. # left behind by Apple's compiler. We do this before executing the actions.
  1724. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1725. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1726. as_fn_set_status $ac_retval
  1727. } # ac_fn_c_try_link
  1728. # ac_fn_c_check_func LINENO FUNC VAR
  1729. # ----------------------------------
  1730. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1731. ac_fn_c_check_func ()
  1732. {
  1733. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1735. $as_echo_n "checking for $2... " >&6; }
  1736. if eval \${$3+:} false; then :
  1737. $as_echo_n "(cached) " >&6
  1738. else
  1739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1740. /* end confdefs.h. */
  1741. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1742. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1743. #define $2 innocuous_$2
  1744. /* System header to define __stub macros and hopefully few prototypes,
  1745. which can conflict with char $2 (); below.
  1746. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1747. <limits.h> exists even on freestanding compilers. */
  1748. #ifdef __STDC__
  1749. # include <limits.h>
  1750. #else
  1751. # include <assert.h>
  1752. #endif
  1753. #undef $2
  1754. /* Override any GCC internal prototype to avoid an error.
  1755. Use char because int might match the return type of a GCC
  1756. builtin and then its argument prototype would still apply. */
  1757. #ifdef __cplusplus
  1758. extern "C"
  1759. #endif
  1760. char $2 ();
  1761. /* The GNU C library defines this for functions which it implements
  1762. to always fail with ENOSYS. Some functions are actually named
  1763. something starting with __ and the normal name is an alias. */
  1764. #if defined __stub_$2 || defined __stub___$2
  1765. choke me
  1766. #endif
  1767. int
  1768. main ()
  1769. {
  1770. return $2 ();
  1771. ;
  1772. return 0;
  1773. }
  1774. _ACEOF
  1775. if ac_fn_c_try_link "$LINENO"; then :
  1776. eval "$3=yes"
  1777. else
  1778. eval "$3=no"
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext \
  1781. conftest$ac_exeext conftest.$ac_ext
  1782. fi
  1783. eval ac_res=\$$3
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1785. $as_echo "$ac_res" >&6; }
  1786. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1787. } # ac_fn_c_check_func
  1788. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1789. # --------------------------------------------
  1790. # Tries to find the compile-time value of EXPR in a program that includes
  1791. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1792. # computed
  1793. ac_fn_c_compute_int ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. if test "$cross_compiling" = yes; then
  1797. # Depending upon the size, compute the lo and hi bounds.
  1798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1799. /* end confdefs.h. */
  1800. $4
  1801. int
  1802. main ()
  1803. {
  1804. static int test_array [1 - 2 * !(($2) >= 0)];
  1805. test_array [0] = 0;
  1806. return test_array [0];
  1807. ;
  1808. return 0;
  1809. }
  1810. _ACEOF
  1811. if ac_fn_c_try_compile "$LINENO"; then :
  1812. ac_lo=0 ac_mid=0
  1813. while :; do
  1814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1815. /* end confdefs.h. */
  1816. $4
  1817. int
  1818. main ()
  1819. {
  1820. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1821. test_array [0] = 0;
  1822. return test_array [0];
  1823. ;
  1824. return 0;
  1825. }
  1826. _ACEOF
  1827. if ac_fn_c_try_compile "$LINENO"; then :
  1828. ac_hi=$ac_mid; break
  1829. else
  1830. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1831. if test $ac_lo -le $ac_mid; then
  1832. ac_lo= ac_hi=
  1833. break
  1834. fi
  1835. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1836. fi
  1837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1838. done
  1839. else
  1840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1841. /* end confdefs.h. */
  1842. $4
  1843. int
  1844. main ()
  1845. {
  1846. static int test_array [1 - 2 * !(($2) < 0)];
  1847. test_array [0] = 0;
  1848. return test_array [0];
  1849. ;
  1850. return 0;
  1851. }
  1852. _ACEOF
  1853. if ac_fn_c_try_compile "$LINENO"; then :
  1854. ac_hi=-1 ac_mid=-1
  1855. while :; do
  1856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1857. /* end confdefs.h. */
  1858. $4
  1859. int
  1860. main ()
  1861. {
  1862. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1863. test_array [0] = 0;
  1864. return test_array [0];
  1865. ;
  1866. return 0;
  1867. }
  1868. _ACEOF
  1869. if ac_fn_c_try_compile "$LINENO"; then :
  1870. ac_lo=$ac_mid; break
  1871. else
  1872. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1873. if test $ac_mid -le $ac_hi; then
  1874. ac_lo= ac_hi=
  1875. break
  1876. fi
  1877. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1878. fi
  1879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1880. done
  1881. else
  1882. ac_lo= ac_hi=
  1883. fi
  1884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1885. fi
  1886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1887. # Binary search between lo and hi bounds.
  1888. while test "x$ac_lo" != "x$ac_hi"; do
  1889. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1891. /* end confdefs.h. */
  1892. $4
  1893. int
  1894. main ()
  1895. {
  1896. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1897. test_array [0] = 0;
  1898. return test_array [0];
  1899. ;
  1900. return 0;
  1901. }
  1902. _ACEOF
  1903. if ac_fn_c_try_compile "$LINENO"; then :
  1904. ac_hi=$ac_mid
  1905. else
  1906. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1907. fi
  1908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1909. done
  1910. case $ac_lo in #((
  1911. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1912. '') ac_retval=1 ;;
  1913. esac
  1914. else
  1915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1916. /* end confdefs.h. */
  1917. $4
  1918. static long int longval () { return $2; }
  1919. static unsigned long int ulongval () { return $2; }
  1920. #include <stdio.h>
  1921. #include <stdlib.h>
  1922. int
  1923. main ()
  1924. {
  1925. FILE *f = fopen ("conftest.val", "w");
  1926. if (! f)
  1927. return 1;
  1928. if (($2) < 0)
  1929. {
  1930. long int i = longval ();
  1931. if (i != ($2))
  1932. return 1;
  1933. fprintf (f, "%ld", i);
  1934. }
  1935. else
  1936. {
  1937. unsigned long int i = ulongval ();
  1938. if (i != ($2))
  1939. return 1;
  1940. fprintf (f, "%lu", i);
  1941. }
  1942. /* Do not output a trailing newline, as this causes \r\n confusion
  1943. on some platforms. */
  1944. return ferror (f) || fclose (f) != 0;
  1945. ;
  1946. return 0;
  1947. }
  1948. _ACEOF
  1949. if ac_fn_c_try_run "$LINENO"; then :
  1950. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1951. else
  1952. ac_retval=1
  1953. fi
  1954. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1955. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1956. rm -f conftest.val
  1957. fi
  1958. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1959. as_fn_set_status $ac_retval
  1960. } # ac_fn_c_compute_int
  1961. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1962. # ---------------------------------------------
  1963. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1964. # accordingly.
  1965. ac_fn_c_check_decl ()
  1966. {
  1967. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1968. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1969. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1971. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1972. if eval \${$3+:} false; then :
  1973. $as_echo_n "(cached) " >&6
  1974. else
  1975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1976. /* end confdefs.h. */
  1977. $4
  1978. int
  1979. main ()
  1980. {
  1981. #ifndef $as_decl_name
  1982. #ifdef __cplusplus
  1983. (void) $as_decl_use;
  1984. #else
  1985. (void) $as_decl_name;
  1986. #endif
  1987. #endif
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_c_try_compile "$LINENO"; then :
  1993. eval "$3=yes"
  1994. else
  1995. eval "$3=no"
  1996. fi
  1997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1998. fi
  1999. eval ac_res=\$$3
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2001. $as_echo "$ac_res" >&6; }
  2002. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2003. } # ac_fn_c_check_decl
  2004. cat >config.log <<_ACEOF
  2005. This file contains any messages produced by compilers while
  2006. running configure, to aid debugging if configure makes a mistake.
  2007. It was created by bfd $as_me 2.38.50, which was
  2008. generated by GNU Autoconf 2.69. Invocation command line was
  2009. $ $0 $@
  2010. _ACEOF
  2011. exec 5>>config.log
  2012. {
  2013. cat <<_ASUNAME
  2014. ## --------- ##
  2015. ## Platform. ##
  2016. ## --------- ##
  2017. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2018. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2019. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2020. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2021. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2022. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2023. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2024. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2025. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2026. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2027. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2028. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2029. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2030. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2031. _ASUNAME
  2032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2033. for as_dir in $PATH
  2034. do
  2035. IFS=$as_save_IFS
  2036. test -z "$as_dir" && as_dir=.
  2037. $as_echo "PATH: $as_dir"
  2038. done
  2039. IFS=$as_save_IFS
  2040. } >&5
  2041. cat >&5 <<_ACEOF
  2042. ## ----------- ##
  2043. ## Core tests. ##
  2044. ## ----------- ##
  2045. _ACEOF
  2046. # Keep a trace of the command line.
  2047. # Strip out --no-create and --no-recursion so they do not pile up.
  2048. # Strip out --silent because we don't want to record it for future runs.
  2049. # Also quote any args containing shell meta-characters.
  2050. # Make two passes to allow for proper duplicate-argument suppression.
  2051. ac_configure_args=
  2052. ac_configure_args0=
  2053. ac_configure_args1=
  2054. ac_must_keep_next=false
  2055. for ac_pass in 1 2
  2056. do
  2057. for ac_arg
  2058. do
  2059. case $ac_arg in
  2060. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2061. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2062. | -silent | --silent | --silen | --sile | --sil)
  2063. continue ;;
  2064. *\'*)
  2065. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2066. esac
  2067. case $ac_pass in
  2068. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2069. 2)
  2070. as_fn_append ac_configure_args1 " '$ac_arg'"
  2071. if test $ac_must_keep_next = true; then
  2072. ac_must_keep_next=false # Got value, back to normal.
  2073. else
  2074. case $ac_arg in
  2075. *=* | --config-cache | -C | -disable-* | --disable-* \
  2076. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2077. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2078. | -with-* | --with-* | -without-* | --without-* | --x)
  2079. case "$ac_configure_args0 " in
  2080. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2081. esac
  2082. ;;
  2083. -* ) ac_must_keep_next=true ;;
  2084. esac
  2085. fi
  2086. as_fn_append ac_configure_args " '$ac_arg'"
  2087. ;;
  2088. esac
  2089. done
  2090. done
  2091. { ac_configure_args0=; unset ac_configure_args0;}
  2092. { ac_configure_args1=; unset ac_configure_args1;}
  2093. # When interrupted or exit'd, cleanup temporary files, and complete
  2094. # config.log. We remove comments because anyway the quotes in there
  2095. # would cause problems or look ugly.
  2096. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2097. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2098. trap 'exit_status=$?
  2099. # Save into config.log some information that might help in debugging.
  2100. {
  2101. echo
  2102. $as_echo "## ---------------- ##
  2103. ## Cache variables. ##
  2104. ## ---------------- ##"
  2105. echo
  2106. # The following way of writing the cache mishandles newlines in values,
  2107. (
  2108. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2109. eval ac_val=\$$ac_var
  2110. case $ac_val in #(
  2111. *${as_nl}*)
  2112. case $ac_var in #(
  2113. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2114. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2115. esac
  2116. case $ac_var in #(
  2117. _ | IFS | as_nl) ;; #(
  2118. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2119. *) { eval $ac_var=; unset $ac_var;} ;;
  2120. esac ;;
  2121. esac
  2122. done
  2123. (set) 2>&1 |
  2124. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2125. *${as_nl}ac_space=\ *)
  2126. sed -n \
  2127. "s/'\''/'\''\\\\'\'''\''/g;
  2128. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2129. ;; #(
  2130. *)
  2131. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2132. ;;
  2133. esac |
  2134. sort
  2135. )
  2136. echo
  2137. $as_echo "## ----------------- ##
  2138. ## Output variables. ##
  2139. ## ----------------- ##"
  2140. echo
  2141. for ac_var in $ac_subst_vars
  2142. do
  2143. eval ac_val=\$$ac_var
  2144. case $ac_val in
  2145. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2146. esac
  2147. $as_echo "$ac_var='\''$ac_val'\''"
  2148. done | sort
  2149. echo
  2150. if test -n "$ac_subst_files"; then
  2151. $as_echo "## ------------------- ##
  2152. ## File substitutions. ##
  2153. ## ------------------- ##"
  2154. echo
  2155. for ac_var in $ac_subst_files
  2156. do
  2157. eval ac_val=\$$ac_var
  2158. case $ac_val in
  2159. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2160. esac
  2161. $as_echo "$ac_var='\''$ac_val'\''"
  2162. done | sort
  2163. echo
  2164. fi
  2165. if test -s confdefs.h; then
  2166. $as_echo "## ----------- ##
  2167. ## confdefs.h. ##
  2168. ## ----------- ##"
  2169. echo
  2170. cat confdefs.h
  2171. echo
  2172. fi
  2173. test "$ac_signal" != 0 &&
  2174. $as_echo "$as_me: caught signal $ac_signal"
  2175. $as_echo "$as_me: exit $exit_status"
  2176. } >&5
  2177. rm -f core *.core core.conftest.* &&
  2178. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2179. exit $exit_status
  2180. ' 0
  2181. for ac_signal in 1 2 13 15; do
  2182. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2183. done
  2184. ac_signal=0
  2185. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2186. rm -f -r conftest* confdefs.h
  2187. $as_echo "/* confdefs.h */" > confdefs.h
  2188. # Predefined preprocessor variables.
  2189. cat >>confdefs.h <<_ACEOF
  2190. #define PACKAGE_NAME "$PACKAGE_NAME"
  2191. _ACEOF
  2192. cat >>confdefs.h <<_ACEOF
  2193. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2194. _ACEOF
  2195. cat >>confdefs.h <<_ACEOF
  2196. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2197. _ACEOF
  2198. cat >>confdefs.h <<_ACEOF
  2199. #define PACKAGE_STRING "$PACKAGE_STRING"
  2200. _ACEOF
  2201. cat >>confdefs.h <<_ACEOF
  2202. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2203. _ACEOF
  2204. cat >>confdefs.h <<_ACEOF
  2205. #define PACKAGE_URL "$PACKAGE_URL"
  2206. _ACEOF
  2207. # Let the site file select an alternate cache file if it wants to.
  2208. # Prefer an explicitly selected file to automatically selected ones.
  2209. ac_site_file1=NONE
  2210. ac_site_file2=NONE
  2211. if test -n "$CONFIG_SITE"; then
  2212. # We do not want a PATH search for config.site.
  2213. case $CONFIG_SITE in #((
  2214. -*) ac_site_file1=./$CONFIG_SITE;;
  2215. */*) ac_site_file1=$CONFIG_SITE;;
  2216. *) ac_site_file1=./$CONFIG_SITE;;
  2217. esac
  2218. elif test "x$prefix" != xNONE; then
  2219. ac_site_file1=$prefix/share/config.site
  2220. ac_site_file2=$prefix/etc/config.site
  2221. else
  2222. ac_site_file1=$ac_default_prefix/share/config.site
  2223. ac_site_file2=$ac_default_prefix/etc/config.site
  2224. fi
  2225. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2226. do
  2227. test "x$ac_site_file" = xNONE && continue
  2228. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2230. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2231. sed 's/^/| /' "$ac_site_file" >&5
  2232. . "$ac_site_file" \
  2233. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2234. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2235. as_fn_error $? "failed to load site script $ac_site_file
  2236. See \`config.log' for more details" "$LINENO" 5; }
  2237. fi
  2238. done
  2239. if test -r "$cache_file"; then
  2240. # Some versions of bash will fail to source /dev/null (special files
  2241. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2242. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2244. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2245. case $cache_file in
  2246. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2247. *) . "./$cache_file";;
  2248. esac
  2249. fi
  2250. else
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2252. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2253. >$cache_file
  2254. fi
  2255. as_fn_append ac_header_list " stdlib.h"
  2256. as_fn_append ac_header_list " unistd.h"
  2257. as_fn_append ac_header_list " sys/param.h"
  2258. # Check that the precious variables saved in the cache have kept the same
  2259. # value.
  2260. ac_cache_corrupted=false
  2261. for ac_var in $ac_precious_vars; do
  2262. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2263. eval ac_new_set=\$ac_env_${ac_var}_set
  2264. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2265. eval ac_new_val=\$ac_env_${ac_var}_value
  2266. case $ac_old_set,$ac_new_set in
  2267. set,)
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2269. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2270. ac_cache_corrupted=: ;;
  2271. ,set)
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2273. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2274. ac_cache_corrupted=: ;;
  2275. ,);;
  2276. *)
  2277. if test "x$ac_old_val" != "x$ac_new_val"; then
  2278. # differences in whitespace do not lead to failure.
  2279. ac_old_val_w=`echo x $ac_old_val`
  2280. ac_new_val_w=`echo x $ac_new_val`
  2281. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2283. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2284. ac_cache_corrupted=:
  2285. else
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2287. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2288. eval $ac_var=\$ac_old_val
  2289. fi
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2291. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2293. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2294. fi;;
  2295. esac
  2296. # Pass precious variables to config.status.
  2297. if test "$ac_new_set" = set; then
  2298. case $ac_new_val in
  2299. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2300. *) ac_arg=$ac_var=$ac_new_val ;;
  2301. esac
  2302. case " $ac_configure_args " in
  2303. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2304. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2305. esac
  2306. fi
  2307. done
  2308. if $ac_cache_corrupted; then
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2310. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2312. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2313. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2314. fi
  2315. ## -------------------- ##
  2316. ## Main body of script. ##
  2317. ## -------------------- ##
  2318. ac_ext=c
  2319. ac_cpp='$CPP $CPPFLAGS'
  2320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2323. ac_aux_dir=
  2324. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2325. if test -f "$ac_dir/install-sh"; then
  2326. ac_aux_dir=$ac_dir
  2327. ac_install_sh="$ac_aux_dir/install-sh -c"
  2328. break
  2329. elif test -f "$ac_dir/install.sh"; then
  2330. ac_aux_dir=$ac_dir
  2331. ac_install_sh="$ac_aux_dir/install.sh -c"
  2332. break
  2333. elif test -f "$ac_dir/shtool"; then
  2334. ac_aux_dir=$ac_dir
  2335. ac_install_sh="$ac_aux_dir/shtool install -c"
  2336. break
  2337. fi
  2338. done
  2339. if test -z "$ac_aux_dir"; then
  2340. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2341. fi
  2342. # These three variables are undocumented and unsupported,
  2343. # and are intended to be withdrawn in a future Autoconf release.
  2344. # They can cause serious problems if a builder's source tree is in a directory
  2345. # whose full name contains unusual characters.
  2346. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2347. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2348. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2349. # Make sure we can run config.sub.
  2350. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2351. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2353. $as_echo_n "checking build system type... " >&6; }
  2354. if ${ac_cv_build+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. ac_build_alias=$build_alias
  2358. test "x$ac_build_alias" = x &&
  2359. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2360. test "x$ac_build_alias" = x &&
  2361. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2362. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2363. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2364. fi
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2366. $as_echo "$ac_cv_build" >&6; }
  2367. case $ac_cv_build in
  2368. *-*-*) ;;
  2369. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2370. esac
  2371. build=$ac_cv_build
  2372. ac_save_IFS=$IFS; IFS='-'
  2373. set x $ac_cv_build
  2374. shift
  2375. build_cpu=$1
  2376. build_vendor=$2
  2377. shift; shift
  2378. # Remember, the first character of IFS is used to create $*,
  2379. # except with old shells:
  2380. build_os=$*
  2381. IFS=$ac_save_IFS
  2382. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2384. $as_echo_n "checking host system type... " >&6; }
  2385. if ${ac_cv_host+:} false; then :
  2386. $as_echo_n "(cached) " >&6
  2387. else
  2388. if test "x$host_alias" = x; then
  2389. ac_cv_host=$ac_cv_build
  2390. else
  2391. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2392. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2393. fi
  2394. fi
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2396. $as_echo "$ac_cv_host" >&6; }
  2397. case $ac_cv_host in
  2398. *-*-*) ;;
  2399. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2400. esac
  2401. host=$ac_cv_host
  2402. ac_save_IFS=$IFS; IFS='-'
  2403. set x $ac_cv_host
  2404. shift
  2405. host_cpu=$1
  2406. host_vendor=$2
  2407. shift; shift
  2408. # Remember, the first character of IFS is used to create $*,
  2409. # except with old shells:
  2410. host_os=$*
  2411. IFS=$ac_save_IFS
  2412. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2414. $as_echo_n "checking target system type... " >&6; }
  2415. if ${ac_cv_target+:} false; then :
  2416. $as_echo_n "(cached) " >&6
  2417. else
  2418. if test "x$target_alias" = x; then
  2419. ac_cv_target=$ac_cv_host
  2420. else
  2421. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2422. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2423. fi
  2424. fi
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2426. $as_echo "$ac_cv_target" >&6; }
  2427. case $ac_cv_target in
  2428. *-*-*) ;;
  2429. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2430. esac
  2431. target=$ac_cv_target
  2432. ac_save_IFS=$IFS; IFS='-'
  2433. set x $ac_cv_target
  2434. shift
  2435. target_cpu=$1
  2436. target_vendor=$2
  2437. shift; shift
  2438. # Remember, the first character of IFS is used to create $*,
  2439. # except with old shells:
  2440. target_os=$*
  2441. IFS=$ac_save_IFS
  2442. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2443. # The aliases save the names the user supplied, while $host etc.
  2444. # will get canonicalized.
  2445. test -n "$target_alias" &&
  2446. test "$program_prefix$program_suffix$program_transform_name" = \
  2447. NONENONEs,x,x, &&
  2448. program_prefix=${target_alias}-
  2449. am__api_version='1.15'
  2450. # Find a good install program. We prefer a C program (faster),
  2451. # so one script is as good as another. But avoid the broken or
  2452. # incompatible versions:
  2453. # SysV /etc/install, /usr/sbin/install
  2454. # SunOS /usr/etc/install
  2455. # IRIX /sbin/install
  2456. # AIX /bin/install
  2457. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2458. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2459. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2460. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2461. # OS/2's system install, which has a completely different semantic
  2462. # ./install, which can be erroneously created by make from ./install.sh.
  2463. # Reject install programs that cannot install multiple files.
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2465. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2466. if test -z "$INSTALL"; then
  2467. if ${ac_cv_path_install+:} false; then :
  2468. $as_echo_n "(cached) " >&6
  2469. else
  2470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471. for as_dir in $PATH
  2472. do
  2473. IFS=$as_save_IFS
  2474. test -z "$as_dir" && as_dir=.
  2475. # Account for people who put trailing slashes in PATH elements.
  2476. case $as_dir/ in #((
  2477. ./ | .// | /[cC]/* | \
  2478. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2479. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2480. /usr/ucb/* ) ;;
  2481. *)
  2482. # OSF1 and SCO ODT 3.0 have their own names for install.
  2483. # Don't use installbsd from OSF since it installs stuff as root
  2484. # by default.
  2485. for ac_prog in ginstall scoinst install; do
  2486. for ac_exec_ext in '' $ac_executable_extensions; do
  2487. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2488. if test $ac_prog = install &&
  2489. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2490. # AIX install. It has an incompatible calling convention.
  2491. :
  2492. elif test $ac_prog = install &&
  2493. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2494. # program-specific install script used by HP pwplus--don't use.
  2495. :
  2496. else
  2497. rm -rf conftest.one conftest.two conftest.dir
  2498. echo one > conftest.one
  2499. echo two > conftest.two
  2500. mkdir conftest.dir
  2501. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2502. test -s conftest.one && test -s conftest.two &&
  2503. test -s conftest.dir/conftest.one &&
  2504. test -s conftest.dir/conftest.two
  2505. then
  2506. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2507. break 3
  2508. fi
  2509. fi
  2510. fi
  2511. done
  2512. done
  2513. ;;
  2514. esac
  2515. done
  2516. IFS=$as_save_IFS
  2517. rm -rf conftest.one conftest.two conftest.dir
  2518. fi
  2519. if test "${ac_cv_path_install+set}" = set; then
  2520. INSTALL=$ac_cv_path_install
  2521. else
  2522. # As a last resort, use the slow shell script. Don't cache a
  2523. # value for INSTALL within a source directory, because that will
  2524. # break other packages using the cache if that directory is
  2525. # removed, or if the value is a relative name.
  2526. INSTALL=$ac_install_sh
  2527. fi
  2528. fi
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2530. $as_echo "$INSTALL" >&6; }
  2531. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2532. # It thinks the first close brace ends the variable substitution.
  2533. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2534. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2535. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2537. $as_echo_n "checking whether build environment is sane... " >&6; }
  2538. # Reject unsafe characters in $srcdir or the absolute working directory
  2539. # name. Accept space and tab only in the latter.
  2540. am_lf='
  2541. '
  2542. case `pwd` in
  2543. *[\\\"\#\$\&\'\`$am_lf]*)
  2544. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2545. esac
  2546. case $srcdir in
  2547. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2548. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2549. esac
  2550. # Do 'set' in a subshell so we don't clobber the current shell's
  2551. # arguments. Must try -L first in case configure is actually a
  2552. # symlink; some systems play weird games with the mod time of symlinks
  2553. # (eg FreeBSD returns the mod time of the symlink's containing
  2554. # directory).
  2555. if (
  2556. am_has_slept=no
  2557. for am_try in 1 2; do
  2558. echo "timestamp, slept: $am_has_slept" > conftest.file
  2559. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2560. if test "$*" = "X"; then
  2561. # -L didn't work.
  2562. set X `ls -t "$srcdir/configure" conftest.file`
  2563. fi
  2564. if test "$*" != "X $srcdir/configure conftest.file" \
  2565. && test "$*" != "X conftest.file $srcdir/configure"; then
  2566. # If neither matched, then we have a broken ls. This can happen
  2567. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2568. # broken ls alias from the environment. This has actually
  2569. # happened. Such a system could not be considered "sane".
  2570. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2571. alias in your environment" "$LINENO" 5
  2572. fi
  2573. if test "$2" = conftest.file || test $am_try -eq 2; then
  2574. break
  2575. fi
  2576. # Just in case.
  2577. sleep 1
  2578. am_has_slept=yes
  2579. done
  2580. test "$2" = conftest.file
  2581. )
  2582. then
  2583. # Ok.
  2584. :
  2585. else
  2586. as_fn_error $? "newly created file is older than distributed files!
  2587. Check your system clock" "$LINENO" 5
  2588. fi
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2590. $as_echo "yes" >&6; }
  2591. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2592. # generated files are strictly newer.
  2593. am_sleep_pid=
  2594. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2595. ( sleep 1 ) &
  2596. am_sleep_pid=$!
  2597. fi
  2598. rm -f conftest.file
  2599. test "$program_prefix" != NONE &&
  2600. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2601. # Use a double $ so make ignores it.
  2602. test "$program_suffix" != NONE &&
  2603. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2604. # Double any \ or $.
  2605. # By default was `s,x,x', remove it if useless.
  2606. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2607. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2608. # Expand $ac_aux_dir to an absolute path.
  2609. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2610. if test x"${MISSING+set}" != xset; then
  2611. case $am_aux_dir in
  2612. *\ * | *\ *)
  2613. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2614. *)
  2615. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2616. esac
  2617. fi
  2618. # Use eval to expand $SHELL
  2619. if eval "$MISSING --is-lightweight"; then
  2620. am_missing_run="$MISSING "
  2621. else
  2622. am_missing_run=
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2624. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2625. fi
  2626. if test x"${install_sh+set}" != xset; then
  2627. case $am_aux_dir in
  2628. *\ * | *\ *)
  2629. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2630. *)
  2631. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2632. esac
  2633. fi
  2634. # Installed binaries are usually stripped using 'strip' when the user
  2635. # run "make install-strip". However 'strip' might not be the right
  2636. # tool to use in cross-compilation environments, therefore Automake
  2637. # will honor the 'STRIP' environment variable to overrule this program.
  2638. if test "$cross_compiling" != no; then
  2639. if test -n "$ac_tool_prefix"; then
  2640. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2641. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2643. $as_echo_n "checking for $ac_word... " >&6; }
  2644. if ${ac_cv_prog_STRIP+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. if test -n "$STRIP"; then
  2648. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2649. else
  2650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2651. for as_dir in $PATH
  2652. do
  2653. IFS=$as_save_IFS
  2654. test -z "$as_dir" && as_dir=.
  2655. for ac_exec_ext in '' $ac_executable_extensions; do
  2656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2657. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2659. break 2
  2660. fi
  2661. done
  2662. done
  2663. IFS=$as_save_IFS
  2664. fi
  2665. fi
  2666. STRIP=$ac_cv_prog_STRIP
  2667. if test -n "$STRIP"; then
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2669. $as_echo "$STRIP" >&6; }
  2670. else
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2672. $as_echo "no" >&6; }
  2673. fi
  2674. fi
  2675. if test -z "$ac_cv_prog_STRIP"; then
  2676. ac_ct_STRIP=$STRIP
  2677. # Extract the first word of "strip", so it can be a program name with args.
  2678. set dummy strip; ac_word=$2
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2680. $as_echo_n "checking for $ac_word... " >&6; }
  2681. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2682. $as_echo_n "(cached) " >&6
  2683. else
  2684. if test -n "$ac_ct_STRIP"; then
  2685. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2686. else
  2687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2688. for as_dir in $PATH
  2689. do
  2690. IFS=$as_save_IFS
  2691. test -z "$as_dir" && as_dir=.
  2692. for ac_exec_ext in '' $ac_executable_extensions; do
  2693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2694. ac_cv_prog_ac_ct_STRIP="strip"
  2695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2696. break 2
  2697. fi
  2698. done
  2699. done
  2700. IFS=$as_save_IFS
  2701. fi
  2702. fi
  2703. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2704. if test -n "$ac_ct_STRIP"; then
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2706. $as_echo "$ac_ct_STRIP" >&6; }
  2707. else
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2709. $as_echo "no" >&6; }
  2710. fi
  2711. if test "x$ac_ct_STRIP" = x; then
  2712. STRIP=":"
  2713. else
  2714. case $cross_compiling:$ac_tool_warned in
  2715. yes:)
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2717. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2718. ac_tool_warned=yes ;;
  2719. esac
  2720. STRIP=$ac_ct_STRIP
  2721. fi
  2722. else
  2723. STRIP="$ac_cv_prog_STRIP"
  2724. fi
  2725. fi
  2726. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2728. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2729. if test -z "$MKDIR_P"; then
  2730. if ${ac_cv_path_mkdir+:} false; then :
  2731. $as_echo_n "(cached) " >&6
  2732. else
  2733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2734. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2735. do
  2736. IFS=$as_save_IFS
  2737. test -z "$as_dir" && as_dir=.
  2738. for ac_prog in mkdir gmkdir; do
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2741. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2742. 'mkdir (GNU coreutils) '* | \
  2743. 'mkdir (coreutils) '* | \
  2744. 'mkdir (fileutils) '4.1*)
  2745. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2746. break 3;;
  2747. esac
  2748. done
  2749. done
  2750. done
  2751. IFS=$as_save_IFS
  2752. fi
  2753. test -d ./--version && rmdir ./--version
  2754. if test "${ac_cv_path_mkdir+set}" = set; then
  2755. MKDIR_P="$ac_cv_path_mkdir -p"
  2756. else
  2757. # As a last resort, use the slow shell script. Don't cache a
  2758. # value for MKDIR_P within a source directory, because that will
  2759. # break other packages using the cache if that directory is
  2760. # removed, or if the value is a relative name.
  2761. MKDIR_P="$ac_install_sh -d"
  2762. fi
  2763. fi
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2765. $as_echo "$MKDIR_P" >&6; }
  2766. for ac_prog in gawk mawk nawk awk
  2767. do
  2768. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2769. set dummy $ac_prog; ac_word=$2
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2771. $as_echo_n "checking for $ac_word... " >&6; }
  2772. if ${ac_cv_prog_AWK+:} false; then :
  2773. $as_echo_n "(cached) " >&6
  2774. else
  2775. if test -n "$AWK"; then
  2776. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2777. else
  2778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2779. for as_dir in $PATH
  2780. do
  2781. IFS=$as_save_IFS
  2782. test -z "$as_dir" && as_dir=.
  2783. for ac_exec_ext in '' $ac_executable_extensions; do
  2784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2785. ac_cv_prog_AWK="$ac_prog"
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2787. break 2
  2788. fi
  2789. done
  2790. done
  2791. IFS=$as_save_IFS
  2792. fi
  2793. fi
  2794. AWK=$ac_cv_prog_AWK
  2795. if test -n "$AWK"; then
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2797. $as_echo "$AWK" >&6; }
  2798. else
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2800. $as_echo "no" >&6; }
  2801. fi
  2802. test -n "$AWK" && break
  2803. done
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2805. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2806. set x ${MAKE-make}
  2807. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2808. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. cat >conftest.make <<\_ACEOF
  2812. SHELL = /bin/sh
  2813. all:
  2814. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2815. _ACEOF
  2816. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2817. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2818. *@@@%%%=?*=@@@%%%*)
  2819. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2820. *)
  2821. eval ac_cv_prog_make_${ac_make}_set=no;;
  2822. esac
  2823. rm -f conftest.make
  2824. fi
  2825. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2827. $as_echo "yes" >&6; }
  2828. SET_MAKE=
  2829. else
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2831. $as_echo "no" >&6; }
  2832. SET_MAKE="MAKE=${MAKE-make}"
  2833. fi
  2834. rm -rf .tst 2>/dev/null
  2835. mkdir .tst 2>/dev/null
  2836. if test -d .tst; then
  2837. am__leading_dot=.
  2838. else
  2839. am__leading_dot=_
  2840. fi
  2841. rmdir .tst 2>/dev/null
  2842. # Check whether --enable-silent-rules was given.
  2843. if test "${enable_silent_rules+set}" = set; then :
  2844. enableval=$enable_silent_rules;
  2845. fi
  2846. case $enable_silent_rules in # (((
  2847. yes) AM_DEFAULT_VERBOSITY=0;;
  2848. no) AM_DEFAULT_VERBOSITY=1;;
  2849. *) AM_DEFAULT_VERBOSITY=1;;
  2850. esac
  2851. am_make=${MAKE-make}
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2853. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2854. if ${am_cv_make_support_nested_variables+:} false; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. if $as_echo 'TRUE=$(BAR$(V))
  2858. BAR0=false
  2859. BAR1=true
  2860. V=1
  2861. am__doit:
  2862. @$(TRUE)
  2863. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2864. am_cv_make_support_nested_variables=yes
  2865. else
  2866. am_cv_make_support_nested_variables=no
  2867. fi
  2868. fi
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2870. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2871. if test $am_cv_make_support_nested_variables = yes; then
  2872. AM_V='$(V)'
  2873. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2874. else
  2875. AM_V=$AM_DEFAULT_VERBOSITY
  2876. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2877. fi
  2878. AM_BACKSLASH='\'
  2879. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2880. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2881. # is not polluted with repeated "-I."
  2882. am__isrc=' -I$(srcdir)'
  2883. # test to see if srcdir already configured
  2884. if test -f $srcdir/config.status; then
  2885. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2886. fi
  2887. fi
  2888. # test whether we have cygpath
  2889. if test -z "$CYGPATH_W"; then
  2890. if (cygpath --version) >/dev/null 2>/dev/null; then
  2891. CYGPATH_W='cygpath -w'
  2892. else
  2893. CYGPATH_W=echo
  2894. fi
  2895. fi
  2896. # Define the identity of the package.
  2897. PACKAGE='bfd'
  2898. VERSION='2.38.50'
  2899. cat >>confdefs.h <<_ACEOF
  2900. #define PACKAGE "$PACKAGE"
  2901. _ACEOF
  2902. cat >>confdefs.h <<_ACEOF
  2903. #define VERSION "$VERSION"
  2904. _ACEOF
  2905. # Some tools Automake needs.
  2906. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2907. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2908. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2909. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2910. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2911. # For better backward compatibility. To be removed once Automake 1.9.x
  2912. # dies out for good. For more background, see:
  2913. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2914. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2915. mkdir_p='$(MKDIR_P)'
  2916. # We need awk for the "check" target (and possibly the TAP driver). The
  2917. # system "awk" is bad on some platforms.
  2918. # Always define AMTAR for backward compatibility. Yes, it's still used
  2919. # in the wild :-( We should find a proper way to deprecate it ...
  2920. AMTAR='$${TAR-tar}'
  2921. # We'll loop over all known methods to create a tar archive until one works.
  2922. _am_tools='gnutar pax cpio none'
  2923. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2924. # POSIX will say in a future version that running "rm -f" with no argument
  2925. # is OK; and we want to be able to make that assumption in our Makefile
  2926. # recipes. So use an aggressive probe to check that the usage we want is
  2927. # actually supported "in the wild" to an acceptable degree.
  2928. # See automake bug#10828.
  2929. # To make any issue more visible, cause the running configure to be aborted
  2930. # by default if the 'rm' program in use doesn't match our expectations; the
  2931. # user can still override this though.
  2932. if rm -f && rm -fr && rm -rf; then : OK; else
  2933. cat >&2 <<'END'
  2934. Oops!
  2935. Your 'rm' program seems unable to run without file operands specified
  2936. on the command line, even when the '-f' option is present. This is contrary
  2937. to the behaviour of most rm programs out there, and not conforming with
  2938. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2939. Please tell bug-automake@gnu.org about your system, including the value
  2940. of your $PATH and any error possibly output before this message. This
  2941. can help us improve future automake versions.
  2942. END
  2943. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2944. echo 'Configuration will proceed anyway, since you have set the' >&2
  2945. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2946. echo >&2
  2947. else
  2948. cat >&2 <<'END'
  2949. Aborting the configuration process, to ensure you take notice of the issue.
  2950. You can download and install GNU coreutils to get an 'rm' implementation
  2951. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2952. If you want to complete the configuration process using your problematic
  2953. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2954. to "yes", and re-run configure.
  2955. END
  2956. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2957. fi
  2958. fi
  2959. # Check whether --enable-silent-rules was given.
  2960. if test "${enable_silent_rules+set}" = set; then :
  2961. enableval=$enable_silent_rules;
  2962. fi
  2963. case $enable_silent_rules in # (((
  2964. yes) AM_DEFAULT_VERBOSITY=0;;
  2965. no) AM_DEFAULT_VERBOSITY=1;;
  2966. *) AM_DEFAULT_VERBOSITY=0;;
  2967. esac
  2968. am_make=${MAKE-make}
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2970. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2971. if ${am_cv_make_support_nested_variables+:} false; then :
  2972. $as_echo_n "(cached) " >&6
  2973. else
  2974. if $as_echo 'TRUE=$(BAR$(V))
  2975. BAR0=false
  2976. BAR1=true
  2977. V=1
  2978. am__doit:
  2979. @$(TRUE)
  2980. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2981. am_cv_make_support_nested_variables=yes
  2982. else
  2983. am_cv_make_support_nested_variables=no
  2984. fi
  2985. fi
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2987. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2988. if test $am_cv_make_support_nested_variables = yes; then
  2989. AM_V='$(V)'
  2990. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2991. else
  2992. AM_V=$AM_DEFAULT_VERBOSITY
  2993. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2994. fi
  2995. AM_BACKSLASH='\'
  2996. if test -n "$ac_tool_prefix"; then
  2997. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2998. set dummy ${ac_tool_prefix}ar; ac_word=$2
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3000. $as_echo_n "checking for $ac_word... " >&6; }
  3001. if ${ac_cv_prog_AR+:} false; then :
  3002. $as_echo_n "(cached) " >&6
  3003. else
  3004. if test -n "$AR"; then
  3005. ac_cv_prog_AR="$AR" # Let the user override the test.
  3006. else
  3007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3008. for as_dir in $PATH
  3009. do
  3010. IFS=$as_save_IFS
  3011. test -z "$as_dir" && as_dir=.
  3012. for ac_exec_ext in '' $ac_executable_extensions; do
  3013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3014. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3016. break 2
  3017. fi
  3018. done
  3019. done
  3020. IFS=$as_save_IFS
  3021. fi
  3022. fi
  3023. AR=$ac_cv_prog_AR
  3024. if test -n "$AR"; then
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3026. $as_echo "$AR" >&6; }
  3027. else
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3029. $as_echo "no" >&6; }
  3030. fi
  3031. fi
  3032. if test -z "$ac_cv_prog_AR"; then
  3033. ac_ct_AR=$AR
  3034. # Extract the first word of "ar", so it can be a program name with args.
  3035. set dummy ar; ac_word=$2
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3037. $as_echo_n "checking for $ac_word... " >&6; }
  3038. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3039. $as_echo_n "(cached) " >&6
  3040. else
  3041. if test -n "$ac_ct_AR"; then
  3042. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3043. else
  3044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3045. for as_dir in $PATH
  3046. do
  3047. IFS=$as_save_IFS
  3048. test -z "$as_dir" && as_dir=.
  3049. for ac_exec_ext in '' $ac_executable_extensions; do
  3050. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3051. ac_cv_prog_ac_ct_AR="ar"
  3052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3053. break 2
  3054. fi
  3055. done
  3056. done
  3057. IFS=$as_save_IFS
  3058. fi
  3059. fi
  3060. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3061. if test -n "$ac_ct_AR"; then
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3063. $as_echo "$ac_ct_AR" >&6; }
  3064. else
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3066. $as_echo "no" >&6; }
  3067. fi
  3068. if test "x$ac_ct_AR" = x; then
  3069. AR=""
  3070. else
  3071. case $cross_compiling:$ac_tool_warned in
  3072. yes:)
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3074. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3075. ac_tool_warned=yes ;;
  3076. esac
  3077. AR=$ac_ct_AR
  3078. fi
  3079. else
  3080. AR="$ac_cv_prog_AR"
  3081. fi
  3082. if test -n "$ac_tool_prefix"; then
  3083. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3084. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3086. $as_echo_n "checking for $ac_word... " >&6; }
  3087. if ${ac_cv_prog_RANLIB+:} false; then :
  3088. $as_echo_n "(cached) " >&6
  3089. else
  3090. if test -n "$RANLIB"; then
  3091. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3092. else
  3093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3094. for as_dir in $PATH
  3095. do
  3096. IFS=$as_save_IFS
  3097. test -z "$as_dir" && as_dir=.
  3098. for ac_exec_ext in '' $ac_executable_extensions; do
  3099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3100. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3102. break 2
  3103. fi
  3104. done
  3105. done
  3106. IFS=$as_save_IFS
  3107. fi
  3108. fi
  3109. RANLIB=$ac_cv_prog_RANLIB
  3110. if test -n "$RANLIB"; then
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3112. $as_echo "$RANLIB" >&6; }
  3113. else
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3115. $as_echo "no" >&6; }
  3116. fi
  3117. fi
  3118. if test -z "$ac_cv_prog_RANLIB"; then
  3119. ac_ct_RANLIB=$RANLIB
  3120. # Extract the first word of "ranlib", so it can be a program name with args.
  3121. set dummy ranlib; ac_word=$2
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3123. $as_echo_n "checking for $ac_word... " >&6; }
  3124. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. if test -n "$ac_ct_RANLIB"; then
  3128. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3129. else
  3130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3131. for as_dir in $PATH
  3132. do
  3133. IFS=$as_save_IFS
  3134. test -z "$as_dir" && as_dir=.
  3135. for ac_exec_ext in '' $ac_executable_extensions; do
  3136. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3137. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3139. break 2
  3140. fi
  3141. done
  3142. done
  3143. IFS=$as_save_IFS
  3144. fi
  3145. fi
  3146. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3147. if test -n "$ac_ct_RANLIB"; then
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3149. $as_echo "$ac_ct_RANLIB" >&6; }
  3150. else
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3152. $as_echo "no" >&6; }
  3153. fi
  3154. if test "x$ac_ct_RANLIB" = x; then
  3155. RANLIB=":"
  3156. else
  3157. case $cross_compiling:$ac_tool_warned in
  3158. yes:)
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3160. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3161. ac_tool_warned=yes ;;
  3162. esac
  3163. RANLIB=$ac_ct_RANLIB
  3164. fi
  3165. else
  3166. RANLIB="$ac_cv_prog_RANLIB"
  3167. fi
  3168. # Check whether --enable-shared was given.
  3169. if test "${enable_shared+set}" = set; then :
  3170. enableval=$enable_shared; p=${PACKAGE-default}
  3171. case $enableval in
  3172. yes) enable_shared=yes ;;
  3173. no) enable_shared=no ;;
  3174. *)
  3175. enable_shared=no
  3176. # Look at the argument we got. We use all the common list separators.
  3177. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3178. for pkg in $enableval; do
  3179. IFS="$lt_save_ifs"
  3180. if test "X$pkg" = "X$p"; then
  3181. enable_shared=yes
  3182. fi
  3183. done
  3184. IFS="$lt_save_ifs"
  3185. ;;
  3186. esac
  3187. else
  3188. enable_shared=no
  3189. fi
  3190. ac_ext=c
  3191. ac_cpp='$CPP $CPPFLAGS'
  3192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3195. if test -n "$ac_tool_prefix"; then
  3196. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3197. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3199. $as_echo_n "checking for $ac_word... " >&6; }
  3200. if ${ac_cv_prog_CC+:} false; then :
  3201. $as_echo_n "(cached) " >&6
  3202. else
  3203. if test -n "$CC"; then
  3204. ac_cv_prog_CC="$CC" # Let the user override the test.
  3205. else
  3206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3207. for as_dir in $PATH
  3208. do
  3209. IFS=$as_save_IFS
  3210. test -z "$as_dir" && as_dir=.
  3211. for ac_exec_ext in '' $ac_executable_extensions; do
  3212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3213. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3215. break 2
  3216. fi
  3217. done
  3218. done
  3219. IFS=$as_save_IFS
  3220. fi
  3221. fi
  3222. CC=$ac_cv_prog_CC
  3223. if test -n "$CC"; then
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3225. $as_echo "$CC" >&6; }
  3226. else
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3228. $as_echo "no" >&6; }
  3229. fi
  3230. fi
  3231. if test -z "$ac_cv_prog_CC"; then
  3232. ac_ct_CC=$CC
  3233. # Extract the first word of "gcc", so it can be a program name with args.
  3234. set dummy gcc; ac_word=$2
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3236. $as_echo_n "checking for $ac_word... " >&6; }
  3237. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3238. $as_echo_n "(cached) " >&6
  3239. else
  3240. if test -n "$ac_ct_CC"; then
  3241. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3242. else
  3243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3244. for as_dir in $PATH
  3245. do
  3246. IFS=$as_save_IFS
  3247. test -z "$as_dir" && as_dir=.
  3248. for ac_exec_ext in '' $ac_executable_extensions; do
  3249. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3250. ac_cv_prog_ac_ct_CC="gcc"
  3251. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3252. break 2
  3253. fi
  3254. done
  3255. done
  3256. IFS=$as_save_IFS
  3257. fi
  3258. fi
  3259. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3260. if test -n "$ac_ct_CC"; then
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3262. $as_echo "$ac_ct_CC" >&6; }
  3263. else
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3265. $as_echo "no" >&6; }
  3266. fi
  3267. if test "x$ac_ct_CC" = x; then
  3268. CC=""
  3269. else
  3270. case $cross_compiling:$ac_tool_warned in
  3271. yes:)
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3273. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3274. ac_tool_warned=yes ;;
  3275. esac
  3276. CC=$ac_ct_CC
  3277. fi
  3278. else
  3279. CC="$ac_cv_prog_CC"
  3280. fi
  3281. if test -z "$CC"; then
  3282. if test -n "$ac_tool_prefix"; then
  3283. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3284. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3286. $as_echo_n "checking for $ac_word... " >&6; }
  3287. if ${ac_cv_prog_CC+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. if test -n "$CC"; then
  3291. ac_cv_prog_CC="$CC" # Let the user override the test.
  3292. else
  3293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3294. for as_dir in $PATH
  3295. do
  3296. IFS=$as_save_IFS
  3297. test -z "$as_dir" && as_dir=.
  3298. for ac_exec_ext in '' $ac_executable_extensions; do
  3299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3300. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3302. break 2
  3303. fi
  3304. done
  3305. done
  3306. IFS=$as_save_IFS
  3307. fi
  3308. fi
  3309. CC=$ac_cv_prog_CC
  3310. if test -n "$CC"; then
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3312. $as_echo "$CC" >&6; }
  3313. else
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3315. $as_echo "no" >&6; }
  3316. fi
  3317. fi
  3318. fi
  3319. if test -z "$CC"; then
  3320. # Extract the first word of "cc", so it can be a program name with args.
  3321. set dummy cc; ac_word=$2
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3323. $as_echo_n "checking for $ac_word... " >&6; }
  3324. if ${ac_cv_prog_CC+:} false; then :
  3325. $as_echo_n "(cached) " >&6
  3326. else
  3327. if test -n "$CC"; then
  3328. ac_cv_prog_CC="$CC" # Let the user override the test.
  3329. else
  3330. ac_prog_rejected=no
  3331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3332. for as_dir in $PATH
  3333. do
  3334. IFS=$as_save_IFS
  3335. test -z "$as_dir" && as_dir=.
  3336. for ac_exec_ext in '' $ac_executable_extensions; do
  3337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3338. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3339. ac_prog_rejected=yes
  3340. continue
  3341. fi
  3342. ac_cv_prog_CC="cc"
  3343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3344. break 2
  3345. fi
  3346. done
  3347. done
  3348. IFS=$as_save_IFS
  3349. if test $ac_prog_rejected = yes; then
  3350. # We found a bogon in the path, so make sure we never use it.
  3351. set dummy $ac_cv_prog_CC
  3352. shift
  3353. if test $# != 0; then
  3354. # We chose a different compiler from the bogus one.
  3355. # However, it has the same basename, so the bogon will be chosen
  3356. # first if we set CC to just the basename; use the full file name.
  3357. shift
  3358. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3359. fi
  3360. fi
  3361. fi
  3362. fi
  3363. CC=$ac_cv_prog_CC
  3364. if test -n "$CC"; then
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3366. $as_echo "$CC" >&6; }
  3367. else
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3369. $as_echo "no" >&6; }
  3370. fi
  3371. fi
  3372. if test -z "$CC"; then
  3373. if test -n "$ac_tool_prefix"; then
  3374. for ac_prog in cl.exe
  3375. do
  3376. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3377. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3379. $as_echo_n "checking for $ac_word... " >&6; }
  3380. if ${ac_cv_prog_CC+:} false; then :
  3381. $as_echo_n "(cached) " >&6
  3382. else
  3383. if test -n "$CC"; then
  3384. ac_cv_prog_CC="$CC" # Let the user override the test.
  3385. else
  3386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3387. for as_dir in $PATH
  3388. do
  3389. IFS=$as_save_IFS
  3390. test -z "$as_dir" && as_dir=.
  3391. for ac_exec_ext in '' $ac_executable_extensions; do
  3392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3393. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3395. break 2
  3396. fi
  3397. done
  3398. done
  3399. IFS=$as_save_IFS
  3400. fi
  3401. fi
  3402. CC=$ac_cv_prog_CC
  3403. if test -n "$CC"; then
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3405. $as_echo "$CC" >&6; }
  3406. else
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3408. $as_echo "no" >&6; }
  3409. fi
  3410. test -n "$CC" && break
  3411. done
  3412. fi
  3413. if test -z "$CC"; then
  3414. ac_ct_CC=$CC
  3415. for ac_prog in cl.exe
  3416. do
  3417. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3418. set dummy $ac_prog; ac_word=$2
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3420. $as_echo_n "checking for $ac_word... " >&6; }
  3421. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3422. $as_echo_n "(cached) " >&6
  3423. else
  3424. if test -n "$ac_ct_CC"; then
  3425. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3426. else
  3427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3428. for as_dir in $PATH
  3429. do
  3430. IFS=$as_save_IFS
  3431. test -z "$as_dir" && as_dir=.
  3432. for ac_exec_ext in '' $ac_executable_extensions; do
  3433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3434. ac_cv_prog_ac_ct_CC="$ac_prog"
  3435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3436. break 2
  3437. fi
  3438. done
  3439. done
  3440. IFS=$as_save_IFS
  3441. fi
  3442. fi
  3443. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3444. if test -n "$ac_ct_CC"; then
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3446. $as_echo "$ac_ct_CC" >&6; }
  3447. else
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3449. $as_echo "no" >&6; }
  3450. fi
  3451. test -n "$ac_ct_CC" && break
  3452. done
  3453. if test "x$ac_ct_CC" = x; then
  3454. CC=""
  3455. else
  3456. case $cross_compiling:$ac_tool_warned in
  3457. yes:)
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3459. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3460. ac_tool_warned=yes ;;
  3461. esac
  3462. CC=$ac_ct_CC
  3463. fi
  3464. fi
  3465. fi
  3466. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3467. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3468. as_fn_error $? "no acceptable C compiler found in \$PATH
  3469. See \`config.log' for more details" "$LINENO" 5; }
  3470. # Provide some information about the compiler.
  3471. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3472. set X $ac_compile
  3473. ac_compiler=$2
  3474. for ac_option in --version -v -V -qversion; do
  3475. { { ac_try="$ac_compiler $ac_option >&5"
  3476. case "(($ac_try" in
  3477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3478. *) ac_try_echo=$ac_try;;
  3479. esac
  3480. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3481. $as_echo "$ac_try_echo"; } >&5
  3482. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3483. ac_status=$?
  3484. if test -s conftest.err; then
  3485. sed '10a\
  3486. ... rest of stderr output deleted ...
  3487. 10q' conftest.err >conftest.er1
  3488. cat conftest.er1 >&5
  3489. fi
  3490. rm -f conftest.er1 conftest.err
  3491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3492. test $ac_status = 0; }
  3493. done
  3494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3495. /* end confdefs.h. */
  3496. int
  3497. main ()
  3498. {
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. ac_clean_files_save=$ac_clean_files
  3504. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3505. # Try to create an executable without -o first, disregard a.out.
  3506. # It will help us diagnose broken compilers, and finding out an intuition
  3507. # of exeext.
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3509. $as_echo_n "checking whether the C compiler works... " >&6; }
  3510. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3511. # The possible output files:
  3512. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3513. ac_rmfiles=
  3514. for ac_file in $ac_files
  3515. do
  3516. case $ac_file in
  3517. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3518. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3519. esac
  3520. done
  3521. rm -f $ac_rmfiles
  3522. if { { ac_try="$ac_link_default"
  3523. case "(($ac_try" in
  3524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3525. *) ac_try_echo=$ac_try;;
  3526. esac
  3527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3528. $as_echo "$ac_try_echo"; } >&5
  3529. (eval "$ac_link_default") 2>&5
  3530. ac_status=$?
  3531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3532. test $ac_status = 0; }; then :
  3533. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3534. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3535. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3536. # so that the user can short-circuit this test for compilers unknown to
  3537. # Autoconf.
  3538. for ac_file in $ac_files ''
  3539. do
  3540. test -f "$ac_file" || continue
  3541. case $ac_file in
  3542. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3543. ;;
  3544. [ab].out )
  3545. # We found the default executable, but exeext='' is most
  3546. # certainly right.
  3547. break;;
  3548. *.* )
  3549. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3550. then :; else
  3551. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3552. fi
  3553. # We set ac_cv_exeext here because the later test for it is not
  3554. # safe: cross compilers may not add the suffix if given an `-o'
  3555. # argument, so we may need to know it at that point already.
  3556. # Even if this section looks crufty: it has the advantage of
  3557. # actually working.
  3558. break;;
  3559. * )
  3560. break;;
  3561. esac
  3562. done
  3563. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3564. else
  3565. ac_file=''
  3566. fi
  3567. if test -z "$ac_file"; then :
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3569. $as_echo "no" >&6; }
  3570. $as_echo "$as_me: failed program was:" >&5
  3571. sed 's/^/| /' conftest.$ac_ext >&5
  3572. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3573. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3574. as_fn_error 77 "C compiler cannot create executables
  3575. See \`config.log' for more details" "$LINENO" 5; }
  3576. else
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3578. $as_echo "yes" >&6; }
  3579. fi
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3581. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3583. $as_echo "$ac_file" >&6; }
  3584. ac_exeext=$ac_cv_exeext
  3585. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3586. ac_clean_files=$ac_clean_files_save
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3588. $as_echo_n "checking for suffix of executables... " >&6; }
  3589. if { { ac_try="$ac_link"
  3590. case "(($ac_try" in
  3591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3592. *) ac_try_echo=$ac_try;;
  3593. esac
  3594. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3595. $as_echo "$ac_try_echo"; } >&5
  3596. (eval "$ac_link") 2>&5
  3597. ac_status=$?
  3598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3599. test $ac_status = 0; }; then :
  3600. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3601. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3602. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3603. # `rm'.
  3604. for ac_file in conftest.exe conftest conftest.*; do
  3605. test -f "$ac_file" || continue
  3606. case $ac_file in
  3607. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3608. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3609. break;;
  3610. * ) break;;
  3611. esac
  3612. done
  3613. else
  3614. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3615. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3616. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3617. See \`config.log' for more details" "$LINENO" 5; }
  3618. fi
  3619. rm -f conftest conftest$ac_cv_exeext
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3621. $as_echo "$ac_cv_exeext" >&6; }
  3622. rm -f conftest.$ac_ext
  3623. EXEEXT=$ac_cv_exeext
  3624. ac_exeext=$EXEEXT
  3625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3626. /* end confdefs.h. */
  3627. #include <stdio.h>
  3628. int
  3629. main ()
  3630. {
  3631. FILE *f = fopen ("conftest.out", "w");
  3632. return ferror (f) || fclose (f) != 0;
  3633. ;
  3634. return 0;
  3635. }
  3636. _ACEOF
  3637. ac_clean_files="$ac_clean_files conftest.out"
  3638. # Check that the compiler produces executables we can run. If not, either
  3639. # the compiler is broken, or we cross compile.
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3641. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3642. if test "$cross_compiling" != yes; then
  3643. { { ac_try="$ac_link"
  3644. case "(($ac_try" in
  3645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3646. *) ac_try_echo=$ac_try;;
  3647. esac
  3648. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3649. $as_echo "$ac_try_echo"; } >&5
  3650. (eval "$ac_link") 2>&5
  3651. ac_status=$?
  3652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3653. test $ac_status = 0; }
  3654. if { ac_try='./conftest$ac_cv_exeext'
  3655. { { case "(($ac_try" in
  3656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3657. *) ac_try_echo=$ac_try;;
  3658. esac
  3659. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3660. $as_echo "$ac_try_echo"; } >&5
  3661. (eval "$ac_try") 2>&5
  3662. ac_status=$?
  3663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3664. test $ac_status = 0; }; }; then
  3665. cross_compiling=no
  3666. else
  3667. if test "$cross_compiling" = maybe; then
  3668. cross_compiling=yes
  3669. else
  3670. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3671. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3672. as_fn_error $? "cannot run C compiled programs.
  3673. If you meant to cross compile, use \`--host'.
  3674. See \`config.log' for more details" "$LINENO" 5; }
  3675. fi
  3676. fi
  3677. fi
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3679. $as_echo "$cross_compiling" >&6; }
  3680. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3681. ac_clean_files=$ac_clean_files_save
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3683. $as_echo_n "checking for suffix of object files... " >&6; }
  3684. if ${ac_cv_objext+:} false; then :
  3685. $as_echo_n "(cached) " >&6
  3686. else
  3687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3688. /* end confdefs.h. */
  3689. int
  3690. main ()
  3691. {
  3692. ;
  3693. return 0;
  3694. }
  3695. _ACEOF
  3696. rm -f conftest.o conftest.obj
  3697. if { { ac_try="$ac_compile"
  3698. case "(($ac_try" in
  3699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3700. *) ac_try_echo=$ac_try;;
  3701. esac
  3702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3703. $as_echo "$ac_try_echo"; } >&5
  3704. (eval "$ac_compile") 2>&5
  3705. ac_status=$?
  3706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3707. test $ac_status = 0; }; then :
  3708. for ac_file in conftest.o conftest.obj conftest.*; do
  3709. test -f "$ac_file" || continue;
  3710. case $ac_file in
  3711. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3712. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3713. break;;
  3714. esac
  3715. done
  3716. else
  3717. $as_echo "$as_me: failed program was:" >&5
  3718. sed 's/^/| /' conftest.$ac_ext >&5
  3719. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3720. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3721. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3722. See \`config.log' for more details" "$LINENO" 5; }
  3723. fi
  3724. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3725. fi
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3727. $as_echo "$ac_cv_objext" >&6; }
  3728. OBJEXT=$ac_cv_objext
  3729. ac_objext=$OBJEXT
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3731. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3732. if ${ac_cv_c_compiler_gnu+:} false; then :
  3733. $as_echo_n "(cached) " >&6
  3734. else
  3735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3736. /* end confdefs.h. */
  3737. int
  3738. main ()
  3739. {
  3740. #ifndef __GNUC__
  3741. choke me
  3742. #endif
  3743. ;
  3744. return 0;
  3745. }
  3746. _ACEOF
  3747. if ac_fn_c_try_compile "$LINENO"; then :
  3748. ac_compiler_gnu=yes
  3749. else
  3750. ac_compiler_gnu=no
  3751. fi
  3752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3753. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3754. fi
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3756. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3757. if test $ac_compiler_gnu = yes; then
  3758. GCC=yes
  3759. else
  3760. GCC=
  3761. fi
  3762. ac_test_CFLAGS=${CFLAGS+set}
  3763. ac_save_CFLAGS=$CFLAGS
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3765. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3766. if ${ac_cv_prog_cc_g+:} false; then :
  3767. $as_echo_n "(cached) " >&6
  3768. else
  3769. ac_save_c_werror_flag=$ac_c_werror_flag
  3770. ac_c_werror_flag=yes
  3771. ac_cv_prog_cc_g=no
  3772. CFLAGS="-g"
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. int
  3776. main ()
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. if ac_fn_c_try_compile "$LINENO"; then :
  3783. ac_cv_prog_cc_g=yes
  3784. else
  3785. CFLAGS=""
  3786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3787. /* end confdefs.h. */
  3788. int
  3789. main ()
  3790. {
  3791. ;
  3792. return 0;
  3793. }
  3794. _ACEOF
  3795. if ac_fn_c_try_compile "$LINENO"; then :
  3796. else
  3797. ac_c_werror_flag=$ac_save_c_werror_flag
  3798. CFLAGS="-g"
  3799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3800. /* end confdefs.h. */
  3801. int
  3802. main ()
  3803. {
  3804. ;
  3805. return 0;
  3806. }
  3807. _ACEOF
  3808. if ac_fn_c_try_compile "$LINENO"; then :
  3809. ac_cv_prog_cc_g=yes
  3810. fi
  3811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3812. fi
  3813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3814. fi
  3815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3816. ac_c_werror_flag=$ac_save_c_werror_flag
  3817. fi
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3819. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3820. if test "$ac_test_CFLAGS" = set; then
  3821. CFLAGS=$ac_save_CFLAGS
  3822. elif test $ac_cv_prog_cc_g = yes; then
  3823. if test "$GCC" = yes; then
  3824. CFLAGS="-g -O2"
  3825. else
  3826. CFLAGS="-g"
  3827. fi
  3828. else
  3829. if test "$GCC" = yes; then
  3830. CFLAGS="-O2"
  3831. else
  3832. CFLAGS=
  3833. fi
  3834. fi
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3836. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3837. if ${ac_cv_prog_cc_c89+:} false; then :
  3838. $as_echo_n "(cached) " >&6
  3839. else
  3840. ac_cv_prog_cc_c89=no
  3841. ac_save_CC=$CC
  3842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3843. /* end confdefs.h. */
  3844. #include <stdarg.h>
  3845. #include <stdio.h>
  3846. struct stat;
  3847. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3848. struct buf { int x; };
  3849. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3850. static char *e (p, i)
  3851. char **p;
  3852. int i;
  3853. {
  3854. return p[i];
  3855. }
  3856. static char *f (char * (*g) (char **, int), char **p, ...)
  3857. {
  3858. char *s;
  3859. va_list v;
  3860. va_start (v,p);
  3861. s = g (p, va_arg (v,int));
  3862. va_end (v);
  3863. return s;
  3864. }
  3865. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3866. function prototypes and stuff, but not '\xHH' hex character constants.
  3867. These don't provoke an error unfortunately, instead are silently treated
  3868. as 'x'. The following induces an error, until -std is added to get
  3869. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3870. array size at least. It's necessary to write '\x00'==0 to get something
  3871. that's true only with -std. */
  3872. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3873. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3874. inside strings and character constants. */
  3875. #define FOO(x) 'x'
  3876. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3877. int test (int i, double x);
  3878. struct s1 {int (*f) (int a);};
  3879. struct s2 {int (*f) (double a);};
  3880. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3881. int argc;
  3882. char **argv;
  3883. int
  3884. main ()
  3885. {
  3886. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3892. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3893. do
  3894. CC="$ac_save_CC $ac_arg"
  3895. if ac_fn_c_try_compile "$LINENO"; then :
  3896. ac_cv_prog_cc_c89=$ac_arg
  3897. fi
  3898. rm -f core conftest.err conftest.$ac_objext
  3899. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3900. done
  3901. rm -f conftest.$ac_ext
  3902. CC=$ac_save_CC
  3903. fi
  3904. # AC_CACHE_VAL
  3905. case "x$ac_cv_prog_cc_c89" in
  3906. x)
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3908. $as_echo "none needed" >&6; } ;;
  3909. xno)
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3911. $as_echo "unsupported" >&6; } ;;
  3912. *)
  3913. CC="$CC $ac_cv_prog_cc_c89"
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3915. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3916. esac
  3917. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3918. fi
  3919. ac_ext=c
  3920. ac_cpp='$CPP $CPPFLAGS'
  3921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3924. ac_ext=c
  3925. ac_cpp='$CPP $CPPFLAGS'
  3926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3930. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3931. if ${am_cv_prog_cc_c_o+:} false; then :
  3932. $as_echo_n "(cached) " >&6
  3933. else
  3934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3935. /* end confdefs.h. */
  3936. int
  3937. main ()
  3938. {
  3939. ;
  3940. return 0;
  3941. }
  3942. _ACEOF
  3943. # Make sure it works both with $CC and with simple cc.
  3944. # Following AC_PROG_CC_C_O, we do the test twice because some
  3945. # compilers refuse to overwrite an existing .o file with -o,
  3946. # though they will create one.
  3947. am_cv_prog_cc_c_o=yes
  3948. for am_i in 1 2; do
  3949. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3950. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3951. ac_status=$?
  3952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3953. (exit $ac_status); } \
  3954. && test -f conftest2.$ac_objext; then
  3955. : OK
  3956. else
  3957. am_cv_prog_cc_c_o=no
  3958. break
  3959. fi
  3960. done
  3961. rm -f core conftest*
  3962. unset am_i
  3963. fi
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3965. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3966. if test "$am_cv_prog_cc_c_o" != yes; then
  3967. # Losing compiler, so override with the script.
  3968. # FIXME: It is wrong to rewrite CC.
  3969. # But if we don't then we get into trouble of one sort or another.
  3970. # A longer-term fix would be to have automake use am__CC in this case,
  3971. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3972. CC="$am_aux_dir/compile $CC"
  3973. fi
  3974. ac_ext=c
  3975. ac_cpp='$CPP $CPPFLAGS'
  3976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3979. DEPDIR="${am__leading_dot}deps"
  3980. ac_config_commands="$ac_config_commands depfiles"
  3981. am_make=${MAKE-make}
  3982. cat > confinc << 'END'
  3983. am__doit:
  3984. @echo this is the am__doit target
  3985. .PHONY: am__doit
  3986. END
  3987. # If we don't find an include directive, just comment out the code.
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3989. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3990. am__include="#"
  3991. am__quote=
  3992. _am_result=none
  3993. # First try GNU make style include.
  3994. echo "include confinc" > confmf
  3995. # Ignore all kinds of additional output from 'make'.
  3996. case `$am_make -s -f confmf 2> /dev/null` in #(
  3997. *the\ am__doit\ target*)
  3998. am__include=include
  3999. am__quote=
  4000. _am_result=GNU
  4001. ;;
  4002. esac
  4003. # Now try BSD make style include.
  4004. if test "$am__include" = "#"; then
  4005. echo '.include "confinc"' > confmf
  4006. case `$am_make -s -f confmf 2> /dev/null` in #(
  4007. *the\ am__doit\ target*)
  4008. am__include=.include
  4009. am__quote="\""
  4010. _am_result=BSD
  4011. ;;
  4012. esac
  4013. fi
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4015. $as_echo "$_am_result" >&6; }
  4016. rm -f confinc confmf
  4017. # Check whether --enable-dependency-tracking was given.
  4018. if test "${enable_dependency_tracking+set}" = set; then :
  4019. enableval=$enable_dependency_tracking;
  4020. fi
  4021. if test "x$enable_dependency_tracking" != xno; then
  4022. am_depcomp="$ac_aux_dir/depcomp"
  4023. AMDEPBACKSLASH='\'
  4024. am__nodep='_no'
  4025. fi
  4026. if test "x$enable_dependency_tracking" != xno; then
  4027. AMDEP_TRUE=
  4028. AMDEP_FALSE='#'
  4029. else
  4030. AMDEP_TRUE='#'
  4031. AMDEP_FALSE=
  4032. fi
  4033. depcc="$CC" am_compiler_list=
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4035. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4036. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4037. $as_echo_n "(cached) " >&6
  4038. else
  4039. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4040. # We make a subdir and do the tests there. Otherwise we can end up
  4041. # making bogus files that we don't know about and never remove. For
  4042. # instance it was reported that on HP-UX the gcc test will end up
  4043. # making a dummy file named 'D' -- because '-MD' means "put the output
  4044. # in D".
  4045. rm -rf conftest.dir
  4046. mkdir conftest.dir
  4047. # Copy depcomp to subdir because otherwise we won't find it if we're
  4048. # using a relative directory.
  4049. cp "$am_depcomp" conftest.dir
  4050. cd conftest.dir
  4051. # We will build objects and dependencies in a subdirectory because
  4052. # it helps to detect inapplicable dependency modes. For instance
  4053. # both Tru64's cc and ICC support -MD to output dependencies as a
  4054. # side effect of compilation, but ICC will put the dependencies in
  4055. # the current directory while Tru64 will put them in the object
  4056. # directory.
  4057. mkdir sub
  4058. am_cv_CC_dependencies_compiler_type=none
  4059. if test "$am_compiler_list" = ""; then
  4060. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4061. fi
  4062. am__universal=false
  4063. case " $depcc " in #(
  4064. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4065. esac
  4066. for depmode in $am_compiler_list; do
  4067. # Setup a source with many dependencies, because some compilers
  4068. # like to wrap large dependency lists on column 80 (with \), and
  4069. # we should not choose a depcomp mode which is confused by this.
  4070. #
  4071. # We need to recreate these files for each test, as the compiler may
  4072. # overwrite some of them when testing with obscure command lines.
  4073. # This happens at least with the AIX C compiler.
  4074. : > sub/conftest.c
  4075. for i in 1 2 3 4 5 6; do
  4076. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4077. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4078. # Solaris 10 /bin/sh.
  4079. echo '/* dummy */' > sub/conftst$i.h
  4080. done
  4081. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4082. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4083. # mode. It turns out that the SunPro C++ compiler does not properly
  4084. # handle '-M -o', and we need to detect this. Also, some Intel
  4085. # versions had trouble with output in subdirs.
  4086. am__obj=sub/conftest.${OBJEXT-o}
  4087. am__minus_obj="-o $am__obj"
  4088. case $depmode in
  4089. gcc)
  4090. # This depmode causes a compiler race in universal mode.
  4091. test "$am__universal" = false || continue
  4092. ;;
  4093. nosideeffect)
  4094. # After this tag, mechanisms are not by side-effect, so they'll
  4095. # only be used when explicitly requested.
  4096. if test "x$enable_dependency_tracking" = xyes; then
  4097. continue
  4098. else
  4099. break
  4100. fi
  4101. ;;
  4102. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4103. # This compiler won't grok '-c -o', but also, the minuso test has
  4104. # not run yet. These depmodes are late enough in the game, and
  4105. # so weak that their functioning should not be impacted.
  4106. am__obj=conftest.${OBJEXT-o}
  4107. am__minus_obj=
  4108. ;;
  4109. none) break ;;
  4110. esac
  4111. if depmode=$depmode \
  4112. source=sub/conftest.c object=$am__obj \
  4113. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4114. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4115. >/dev/null 2>conftest.err &&
  4116. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4117. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4118. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4119. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4120. # icc doesn't choke on unknown options, it will just issue warnings
  4121. # or remarks (even with -Werror). So we grep stderr for any message
  4122. # that says an option was ignored or not supported.
  4123. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4124. # icc: Command line warning: ignoring option '-M'; no argument required
  4125. # The diagnosis changed in icc 8.0:
  4126. # icc: Command line remark: option '-MP' not supported
  4127. if (grep 'ignoring option' conftest.err ||
  4128. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4129. am_cv_CC_dependencies_compiler_type=$depmode
  4130. break
  4131. fi
  4132. fi
  4133. done
  4134. cd ..
  4135. rm -rf conftest.dir
  4136. else
  4137. am_cv_CC_dependencies_compiler_type=none
  4138. fi
  4139. fi
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4141. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4142. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4143. if
  4144. test "x$enable_dependency_tracking" != xno \
  4145. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4146. am__fastdepCC_TRUE=
  4147. am__fastdepCC_FALSE='#'
  4148. else
  4149. am__fastdepCC_TRUE='#'
  4150. am__fastdepCC_FALSE=
  4151. fi
  4152. ac_ext=c
  4153. ac_cpp='$CPP $CPPFLAGS'
  4154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4158. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4159. # On Suns, sometimes $CPP names a directory.
  4160. if test -n "$CPP" && test -d "$CPP"; then
  4161. CPP=
  4162. fi
  4163. if test -z "$CPP"; then
  4164. if ${ac_cv_prog_CPP+:} false; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. # Double quotes because CPP needs to be expanded
  4168. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4169. do
  4170. ac_preproc_ok=false
  4171. for ac_c_preproc_warn_flag in '' yes
  4172. do
  4173. # Use a header file that comes with gcc, so configuring glibc
  4174. # with a fresh cross-compiler works.
  4175. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4176. # <limits.h> exists even on freestanding compilers.
  4177. # On the NeXT, cc -E runs the code through the compiler's parser,
  4178. # not just through cpp. "Syntax error" is here to catch this case.
  4179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4180. /* end confdefs.h. */
  4181. #ifdef __STDC__
  4182. # include <limits.h>
  4183. #else
  4184. # include <assert.h>
  4185. #endif
  4186. Syntax error
  4187. _ACEOF
  4188. if ac_fn_c_try_cpp "$LINENO"; then :
  4189. else
  4190. # Broken: fails on valid input.
  4191. continue
  4192. fi
  4193. rm -f conftest.err conftest.i conftest.$ac_ext
  4194. # OK, works on sane cases. Now check whether nonexistent headers
  4195. # can be detected and how.
  4196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4197. /* end confdefs.h. */
  4198. #include <ac_nonexistent.h>
  4199. _ACEOF
  4200. if ac_fn_c_try_cpp "$LINENO"; then :
  4201. # Broken: success on invalid input.
  4202. continue
  4203. else
  4204. # Passes both tests.
  4205. ac_preproc_ok=:
  4206. break
  4207. fi
  4208. rm -f conftest.err conftest.i conftest.$ac_ext
  4209. done
  4210. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4211. rm -f conftest.i conftest.err conftest.$ac_ext
  4212. if $ac_preproc_ok; then :
  4213. break
  4214. fi
  4215. done
  4216. ac_cv_prog_CPP=$CPP
  4217. fi
  4218. CPP=$ac_cv_prog_CPP
  4219. else
  4220. ac_cv_prog_CPP=$CPP
  4221. fi
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4223. $as_echo "$CPP" >&6; }
  4224. ac_preproc_ok=false
  4225. for ac_c_preproc_warn_flag in '' yes
  4226. do
  4227. # Use a header file that comes with gcc, so configuring glibc
  4228. # with a fresh cross-compiler works.
  4229. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4230. # <limits.h> exists even on freestanding compilers.
  4231. # On the NeXT, cc -E runs the code through the compiler's parser,
  4232. # not just through cpp. "Syntax error" is here to catch this case.
  4233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4234. /* end confdefs.h. */
  4235. #ifdef __STDC__
  4236. # include <limits.h>
  4237. #else
  4238. # include <assert.h>
  4239. #endif
  4240. Syntax error
  4241. _ACEOF
  4242. if ac_fn_c_try_cpp "$LINENO"; then :
  4243. else
  4244. # Broken: fails on valid input.
  4245. continue
  4246. fi
  4247. rm -f conftest.err conftest.i conftest.$ac_ext
  4248. # OK, works on sane cases. Now check whether nonexistent headers
  4249. # can be detected and how.
  4250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4251. /* end confdefs.h. */
  4252. #include <ac_nonexistent.h>
  4253. _ACEOF
  4254. if ac_fn_c_try_cpp "$LINENO"; then :
  4255. # Broken: success on invalid input.
  4256. continue
  4257. else
  4258. # Passes both tests.
  4259. ac_preproc_ok=:
  4260. break
  4261. fi
  4262. rm -f conftest.err conftest.i conftest.$ac_ext
  4263. done
  4264. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4265. rm -f conftest.i conftest.err conftest.$ac_ext
  4266. if $ac_preproc_ok; then :
  4267. else
  4268. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4269. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4270. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4271. See \`config.log' for more details" "$LINENO" 5; }
  4272. fi
  4273. ac_ext=c
  4274. ac_cpp='$CPP $CPPFLAGS'
  4275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4279. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4280. if ${ac_cv_path_GREP+:} false; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. if test -z "$GREP"; then
  4284. ac_path_GREP_found=false
  4285. # Loop through the user's path and test for each of PROGNAME-LIST
  4286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4287. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4288. do
  4289. IFS=$as_save_IFS
  4290. test -z "$as_dir" && as_dir=.
  4291. for ac_prog in grep ggrep; do
  4292. for ac_exec_ext in '' $ac_executable_extensions; do
  4293. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4294. as_fn_executable_p "$ac_path_GREP" || continue
  4295. # Check for GNU ac_path_GREP and select it if it is found.
  4296. # Check for GNU $ac_path_GREP
  4297. case `"$ac_path_GREP" --version 2>&1` in
  4298. *GNU*)
  4299. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4300. *)
  4301. ac_count=0
  4302. $as_echo_n 0123456789 >"conftest.in"
  4303. while :
  4304. do
  4305. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4306. mv "conftest.tmp" "conftest.in"
  4307. cp "conftest.in" "conftest.nl"
  4308. $as_echo 'GREP' >> "conftest.nl"
  4309. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4310. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4311. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4312. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4313. # Best one so far, save it but keep looking for a better one
  4314. ac_cv_path_GREP="$ac_path_GREP"
  4315. ac_path_GREP_max=$ac_count
  4316. fi
  4317. # 10*(2^10) chars as input seems more than enough
  4318. test $ac_count -gt 10 && break
  4319. done
  4320. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4321. esac
  4322. $ac_path_GREP_found && break 3
  4323. done
  4324. done
  4325. done
  4326. IFS=$as_save_IFS
  4327. if test -z "$ac_cv_path_GREP"; then
  4328. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4329. fi
  4330. else
  4331. ac_cv_path_GREP=$GREP
  4332. fi
  4333. fi
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4335. $as_echo "$ac_cv_path_GREP" >&6; }
  4336. GREP="$ac_cv_path_GREP"
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4338. $as_echo_n "checking for egrep... " >&6; }
  4339. if ${ac_cv_path_EGREP+:} false; then :
  4340. $as_echo_n "(cached) " >&6
  4341. else
  4342. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4343. then ac_cv_path_EGREP="$GREP -E"
  4344. else
  4345. if test -z "$EGREP"; then
  4346. ac_path_EGREP_found=false
  4347. # Loop through the user's path and test for each of PROGNAME-LIST
  4348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4349. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4350. do
  4351. IFS=$as_save_IFS
  4352. test -z "$as_dir" && as_dir=.
  4353. for ac_prog in egrep; do
  4354. for ac_exec_ext in '' $ac_executable_extensions; do
  4355. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4356. as_fn_executable_p "$ac_path_EGREP" || continue
  4357. # Check for GNU ac_path_EGREP and select it if it is found.
  4358. # Check for GNU $ac_path_EGREP
  4359. case `"$ac_path_EGREP" --version 2>&1` in
  4360. *GNU*)
  4361. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4362. *)
  4363. ac_count=0
  4364. $as_echo_n 0123456789 >"conftest.in"
  4365. while :
  4366. do
  4367. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4368. mv "conftest.tmp" "conftest.in"
  4369. cp "conftest.in" "conftest.nl"
  4370. $as_echo 'EGREP' >> "conftest.nl"
  4371. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4372. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4373. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4374. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4375. # Best one so far, save it but keep looking for a better one
  4376. ac_cv_path_EGREP="$ac_path_EGREP"
  4377. ac_path_EGREP_max=$ac_count
  4378. fi
  4379. # 10*(2^10) chars as input seems more than enough
  4380. test $ac_count -gt 10 && break
  4381. done
  4382. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4383. esac
  4384. $ac_path_EGREP_found && break 3
  4385. done
  4386. done
  4387. done
  4388. IFS=$as_save_IFS
  4389. if test -z "$ac_cv_path_EGREP"; then
  4390. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4391. fi
  4392. else
  4393. ac_cv_path_EGREP=$EGREP
  4394. fi
  4395. fi
  4396. fi
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4398. $as_echo "$ac_cv_path_EGREP" >&6; }
  4399. EGREP="$ac_cv_path_EGREP"
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4401. $as_echo_n "checking for ANSI C header files... " >&6; }
  4402. if ${ac_cv_header_stdc+:} false; then :
  4403. $as_echo_n "(cached) " >&6
  4404. else
  4405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4406. /* end confdefs.h. */
  4407. #include <stdlib.h>
  4408. #include <stdarg.h>
  4409. #include <string.h>
  4410. #include <float.h>
  4411. int
  4412. main ()
  4413. {
  4414. ;
  4415. return 0;
  4416. }
  4417. _ACEOF
  4418. if ac_fn_c_try_compile "$LINENO"; then :
  4419. ac_cv_header_stdc=yes
  4420. else
  4421. ac_cv_header_stdc=no
  4422. fi
  4423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4424. if test $ac_cv_header_stdc = yes; then
  4425. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4427. /* end confdefs.h. */
  4428. #include <string.h>
  4429. _ACEOF
  4430. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4431. $EGREP "memchr" >/dev/null 2>&1; then :
  4432. else
  4433. ac_cv_header_stdc=no
  4434. fi
  4435. rm -f conftest*
  4436. fi
  4437. if test $ac_cv_header_stdc = yes; then
  4438. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4440. /* end confdefs.h. */
  4441. #include <stdlib.h>
  4442. _ACEOF
  4443. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4444. $EGREP "free" >/dev/null 2>&1; then :
  4445. else
  4446. ac_cv_header_stdc=no
  4447. fi
  4448. rm -f conftest*
  4449. fi
  4450. if test $ac_cv_header_stdc = yes; then
  4451. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4452. if test "$cross_compiling" = yes; then :
  4453. :
  4454. else
  4455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4456. /* end confdefs.h. */
  4457. #include <ctype.h>
  4458. #include <stdlib.h>
  4459. #if ((' ' & 0x0FF) == 0x020)
  4460. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4461. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4462. #else
  4463. # define ISLOWER(c) \
  4464. (('a' <= (c) && (c) <= 'i') \
  4465. || ('j' <= (c) && (c) <= 'r') \
  4466. || ('s' <= (c) && (c) <= 'z'))
  4467. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4468. #endif
  4469. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4470. int
  4471. main ()
  4472. {
  4473. int i;
  4474. for (i = 0; i < 256; i++)
  4475. if (XOR (islower (i), ISLOWER (i))
  4476. || toupper (i) != TOUPPER (i))
  4477. return 2;
  4478. return 0;
  4479. }
  4480. _ACEOF
  4481. if ac_fn_c_try_run "$LINENO"; then :
  4482. else
  4483. ac_cv_header_stdc=no
  4484. fi
  4485. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4486. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4487. fi
  4488. fi
  4489. fi
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4491. $as_echo "$ac_cv_header_stdc" >&6; }
  4492. if test $ac_cv_header_stdc = yes; then
  4493. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4494. fi
  4495. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4496. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4497. inttypes.h stdint.h unistd.h
  4498. do :
  4499. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4500. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4501. "
  4502. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4503. cat >>confdefs.h <<_ACEOF
  4504. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4505. _ACEOF
  4506. fi
  4507. done
  4508. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4509. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4510. MINIX=yes
  4511. else
  4512. MINIX=
  4513. fi
  4514. if test "$MINIX" = yes; then
  4515. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4516. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4517. $as_echo "#define _MINIX 1" >>confdefs.h
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4520. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4521. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4522. $as_echo_n "(cached) " >&6
  4523. else
  4524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4525. /* end confdefs.h. */
  4526. # define __EXTENSIONS__ 1
  4527. $ac_includes_default
  4528. int
  4529. main ()
  4530. {
  4531. ;
  4532. return 0;
  4533. }
  4534. _ACEOF
  4535. if ac_fn_c_try_compile "$LINENO"; then :
  4536. ac_cv_safe_to_define___extensions__=yes
  4537. else
  4538. ac_cv_safe_to_define___extensions__=no
  4539. fi
  4540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4541. fi
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4543. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4544. test $ac_cv_safe_to_define___extensions__ = yes &&
  4545. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4546. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4547. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4548. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4549. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4550. case `pwd` in
  4551. *\ * | *\ *)
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4553. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4554. esac
  4555. macro_version='2.2.7a'
  4556. macro_revision='1.3134'
  4557. ltmain="$ac_aux_dir/ltmain.sh"
  4558. # Backslashify metacharacters that are still active within
  4559. # double-quoted strings.
  4560. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4561. # Same as above, but do not quote variable references.
  4562. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4563. # Sed substitution to delay expansion of an escaped shell variable in a
  4564. # double_quote_subst'ed string.
  4565. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4566. # Sed substitution to delay expansion of an escaped single quote.
  4567. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4568. # Sed substitution to avoid accidental globbing in evaled expressions
  4569. no_glob_subst='s/\*/\\\*/g'
  4570. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4571. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4572. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4574. $as_echo_n "checking how to print strings... " >&6; }
  4575. # Test print first, because it will be a builtin if present.
  4576. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4577. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4578. ECHO='print -r --'
  4579. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4580. ECHO='printf %s\n'
  4581. else
  4582. # Use this function as a fallback that always works.
  4583. func_fallback_echo ()
  4584. {
  4585. eval 'cat <<_LTECHO_EOF
  4586. $1
  4587. _LTECHO_EOF'
  4588. }
  4589. ECHO='func_fallback_echo'
  4590. fi
  4591. # func_echo_all arg...
  4592. # Invoke $ECHO with all args, space-separated.
  4593. func_echo_all ()
  4594. {
  4595. $ECHO ""
  4596. }
  4597. case "$ECHO" in
  4598. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4599. $as_echo "printf" >&6; } ;;
  4600. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4601. $as_echo "print -r" >&6; } ;;
  4602. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4603. $as_echo "cat" >&6; } ;;
  4604. esac
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4606. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4607. if ${ac_cv_path_SED+:} false; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4611. for ac_i in 1 2 3 4 5 6 7; do
  4612. ac_script="$ac_script$as_nl$ac_script"
  4613. done
  4614. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4615. { ac_script=; unset ac_script;}
  4616. if test -z "$SED"; then
  4617. ac_path_SED_found=false
  4618. # Loop through the user's path and test for each of PROGNAME-LIST
  4619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4620. for as_dir in $PATH
  4621. do
  4622. IFS=$as_save_IFS
  4623. test -z "$as_dir" && as_dir=.
  4624. for ac_prog in sed gsed; do
  4625. for ac_exec_ext in '' $ac_executable_extensions; do
  4626. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4627. as_fn_executable_p "$ac_path_SED" || continue
  4628. # Check for GNU ac_path_SED and select it if it is found.
  4629. # Check for GNU $ac_path_SED
  4630. case `"$ac_path_SED" --version 2>&1` in
  4631. *GNU*)
  4632. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4633. *)
  4634. ac_count=0
  4635. $as_echo_n 0123456789 >"conftest.in"
  4636. while :
  4637. do
  4638. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4639. mv "conftest.tmp" "conftest.in"
  4640. cp "conftest.in" "conftest.nl"
  4641. $as_echo '' >> "conftest.nl"
  4642. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4643. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4644. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4645. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4646. # Best one so far, save it but keep looking for a better one
  4647. ac_cv_path_SED="$ac_path_SED"
  4648. ac_path_SED_max=$ac_count
  4649. fi
  4650. # 10*(2^10) chars as input seems more than enough
  4651. test $ac_count -gt 10 && break
  4652. done
  4653. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4654. esac
  4655. $ac_path_SED_found && break 3
  4656. done
  4657. done
  4658. done
  4659. IFS=$as_save_IFS
  4660. if test -z "$ac_cv_path_SED"; then
  4661. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4662. fi
  4663. else
  4664. ac_cv_path_SED=$SED
  4665. fi
  4666. fi
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4668. $as_echo "$ac_cv_path_SED" >&6; }
  4669. SED="$ac_cv_path_SED"
  4670. rm -f conftest.sed
  4671. test -z "$SED" && SED=sed
  4672. Xsed="$SED -e 1s/^X//"
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4674. $as_echo_n "checking for fgrep... " >&6; }
  4675. if ${ac_cv_path_FGREP+:} false; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4679. then ac_cv_path_FGREP="$GREP -F"
  4680. else
  4681. if test -z "$FGREP"; then
  4682. ac_path_FGREP_found=false
  4683. # Loop through the user's path and test for each of PROGNAME-LIST
  4684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4685. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4686. do
  4687. IFS=$as_save_IFS
  4688. test -z "$as_dir" && as_dir=.
  4689. for ac_prog in fgrep; do
  4690. for ac_exec_ext in '' $ac_executable_extensions; do
  4691. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4692. as_fn_executable_p "$ac_path_FGREP" || continue
  4693. # Check for GNU ac_path_FGREP and select it if it is found.
  4694. # Check for GNU $ac_path_FGREP
  4695. case `"$ac_path_FGREP" --version 2>&1` in
  4696. *GNU*)
  4697. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4698. *)
  4699. ac_count=0
  4700. $as_echo_n 0123456789 >"conftest.in"
  4701. while :
  4702. do
  4703. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4704. mv "conftest.tmp" "conftest.in"
  4705. cp "conftest.in" "conftest.nl"
  4706. $as_echo 'FGREP' >> "conftest.nl"
  4707. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4708. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4709. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4710. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4711. # Best one so far, save it but keep looking for a better one
  4712. ac_cv_path_FGREP="$ac_path_FGREP"
  4713. ac_path_FGREP_max=$ac_count
  4714. fi
  4715. # 10*(2^10) chars as input seems more than enough
  4716. test $ac_count -gt 10 && break
  4717. done
  4718. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4719. esac
  4720. $ac_path_FGREP_found && break 3
  4721. done
  4722. done
  4723. done
  4724. IFS=$as_save_IFS
  4725. if test -z "$ac_cv_path_FGREP"; then
  4726. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4727. fi
  4728. else
  4729. ac_cv_path_FGREP=$FGREP
  4730. fi
  4731. fi
  4732. fi
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4734. $as_echo "$ac_cv_path_FGREP" >&6; }
  4735. FGREP="$ac_cv_path_FGREP"
  4736. test -z "$GREP" && GREP=grep
  4737. # Check whether --with-gnu-ld was given.
  4738. if test "${with_gnu_ld+set}" = set; then :
  4739. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4740. else
  4741. with_gnu_ld=no
  4742. fi
  4743. ac_prog=ld
  4744. if test "$GCC" = yes; then
  4745. # Check if gcc -print-prog-name=ld gives a path.
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4747. $as_echo_n "checking for ld used by $CC... " >&6; }
  4748. case $host in
  4749. *-*-mingw*)
  4750. # gcc leaves a trailing carriage return which upsets mingw
  4751. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4752. *)
  4753. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4754. esac
  4755. case $ac_prog in
  4756. # Accept absolute paths.
  4757. [\\/]* | ?:[\\/]*)
  4758. re_direlt='/[^/][^/]*/\.\./'
  4759. # Canonicalize the pathname of ld
  4760. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4761. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4762. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4763. done
  4764. test -z "$LD" && LD="$ac_prog"
  4765. ;;
  4766. "")
  4767. # If it fails, then pretend we aren't using GCC.
  4768. ac_prog=ld
  4769. ;;
  4770. *)
  4771. # If it is relative, then search for the first ld in PATH.
  4772. with_gnu_ld=unknown
  4773. ;;
  4774. esac
  4775. elif test "$with_gnu_ld" = yes; then
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4777. $as_echo_n "checking for GNU ld... " >&6; }
  4778. else
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4780. $as_echo_n "checking for non-GNU ld... " >&6; }
  4781. fi
  4782. if ${lt_cv_path_LD+:} false; then :
  4783. $as_echo_n "(cached) " >&6
  4784. else
  4785. if test -z "$LD"; then
  4786. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4787. for ac_dir in $PATH; do
  4788. IFS="$lt_save_ifs"
  4789. test -z "$ac_dir" && ac_dir=.
  4790. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4791. lt_cv_path_LD="$ac_dir/$ac_prog"
  4792. # Check to see if the program is GNU ld. I'd rather use --version,
  4793. # but apparently some variants of GNU ld only accept -v.
  4794. # Break only if it was the GNU/non-GNU ld that we prefer.
  4795. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4796. *GNU* | *'with BFD'*)
  4797. test "$with_gnu_ld" != no && break
  4798. ;;
  4799. *)
  4800. test "$with_gnu_ld" != yes && break
  4801. ;;
  4802. esac
  4803. fi
  4804. done
  4805. IFS="$lt_save_ifs"
  4806. else
  4807. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4808. fi
  4809. fi
  4810. LD="$lt_cv_path_LD"
  4811. if test -n "$LD"; then
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4813. $as_echo "$LD" >&6; }
  4814. else
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4816. $as_echo "no" >&6; }
  4817. fi
  4818. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4820. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4821. if ${lt_cv_prog_gnu_ld+:} false; then :
  4822. $as_echo_n "(cached) " >&6
  4823. else
  4824. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4825. case `$LD -v 2>&1 </dev/null` in
  4826. *GNU* | *'with BFD'*)
  4827. lt_cv_prog_gnu_ld=yes
  4828. ;;
  4829. *)
  4830. lt_cv_prog_gnu_ld=no
  4831. ;;
  4832. esac
  4833. fi
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4835. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4836. with_gnu_ld=$lt_cv_prog_gnu_ld
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4838. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4839. if ${lt_cv_path_NM+:} false; then :
  4840. $as_echo_n "(cached) " >&6
  4841. else
  4842. if test -n "$NM"; then
  4843. # Let the user override the nm to test.
  4844. lt_nm_to_check="$NM"
  4845. else
  4846. lt_nm_to_check="${ac_tool_prefix}nm"
  4847. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4848. lt_nm_to_check="$lt_nm_to_check nm"
  4849. fi
  4850. fi
  4851. for lt_tmp_nm in "$lt_nm_to_check"; do
  4852. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4853. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4854. IFS="$lt_save_ifs"
  4855. test -z "$ac_dir" && ac_dir=.
  4856. # Strip out any user-provided options from the nm to test twice,
  4857. # the first time to test to see if nm (rather than its options) has
  4858. # an explicit path, the second time to yield a file which can be
  4859. # nm'ed itself.
  4860. tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
  4861. case "$tmp_nm_path" in
  4862. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  4863. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  4864. esac
  4865. tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
  4866. if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
  4867. # Check to see if the nm accepts a BSD-compat flag.
  4868. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4869. # nm: unknown option "B" ignored
  4870. case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  4871. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  4872. break
  4873. ;;
  4874. *)
  4875. case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  4876. *$tmp_nm*)
  4877. lt_cv_path_NM="$tmp_nm -p"
  4878. break
  4879. ;;
  4880. *)
  4881. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4882. continue # so that we can try to find one that supports BSD flags
  4883. ;;
  4884. esac
  4885. ;;
  4886. esac
  4887. fi
  4888. done
  4889. IFS="$lt_save_ifs"
  4890. done
  4891. : ${lt_cv_path_NM=no}
  4892. fi
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4894. $as_echo "$lt_cv_path_NM" >&6; }
  4895. if test "$lt_cv_path_NM" != "no"; then
  4896. NM="$lt_cv_path_NM"
  4897. else
  4898. # Didn't find any BSD compatible name lister, look for dumpbin.
  4899. if test -n "$DUMPBIN"; then :
  4900. # Let the user override the test.
  4901. else
  4902. if test -n "$ac_tool_prefix"; then
  4903. for ac_prog in dumpbin "link -dump"
  4904. do
  4905. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4906. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4908. $as_echo_n "checking for $ac_word... " >&6; }
  4909. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. if test -n "$DUMPBIN"; then
  4913. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4914. else
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_exec_ext in '' $ac_executable_extensions; do
  4921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4922. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4924. break 2
  4925. fi
  4926. done
  4927. done
  4928. IFS=$as_save_IFS
  4929. fi
  4930. fi
  4931. DUMPBIN=$ac_cv_prog_DUMPBIN
  4932. if test -n "$DUMPBIN"; then
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4934. $as_echo "$DUMPBIN" >&6; }
  4935. else
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4937. $as_echo "no" >&6; }
  4938. fi
  4939. test -n "$DUMPBIN" && break
  4940. done
  4941. fi
  4942. if test -z "$DUMPBIN"; then
  4943. ac_ct_DUMPBIN=$DUMPBIN
  4944. for ac_prog in dumpbin "link -dump"
  4945. do
  4946. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4947. set dummy $ac_prog; ac_word=$2
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4949. $as_echo_n "checking for $ac_word... " >&6; }
  4950. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4951. $as_echo_n "(cached) " >&6
  4952. else
  4953. if test -n "$ac_ct_DUMPBIN"; then
  4954. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4955. else
  4956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4957. for as_dir in $PATH
  4958. do
  4959. IFS=$as_save_IFS
  4960. test -z "$as_dir" && as_dir=.
  4961. for ac_exec_ext in '' $ac_executable_extensions; do
  4962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4963. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4965. break 2
  4966. fi
  4967. done
  4968. done
  4969. IFS=$as_save_IFS
  4970. fi
  4971. fi
  4972. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4973. if test -n "$ac_ct_DUMPBIN"; then
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4975. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4976. else
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4978. $as_echo "no" >&6; }
  4979. fi
  4980. test -n "$ac_ct_DUMPBIN" && break
  4981. done
  4982. if test "x$ac_ct_DUMPBIN" = x; then
  4983. DUMPBIN=":"
  4984. else
  4985. case $cross_compiling:$ac_tool_warned in
  4986. yes:)
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4988. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4989. ac_tool_warned=yes ;;
  4990. esac
  4991. DUMPBIN=$ac_ct_DUMPBIN
  4992. fi
  4993. fi
  4994. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4995. *COFF*)
  4996. DUMPBIN="$DUMPBIN -symbols"
  4997. ;;
  4998. *)
  4999. DUMPBIN=:
  5000. ;;
  5001. esac
  5002. fi
  5003. if test "$DUMPBIN" != ":"; then
  5004. NM="$DUMPBIN"
  5005. fi
  5006. fi
  5007. test -z "$NM" && NM=nm
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5009. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5010. if ${lt_cv_nm_interface+:} false; then :
  5011. $as_echo_n "(cached) " >&6
  5012. else
  5013. lt_cv_nm_interface="BSD nm"
  5014. echo "int some_variable = 0;" > conftest.$ac_ext
  5015. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5016. (eval "$ac_compile" 2>conftest.err)
  5017. cat conftest.err >&5
  5018. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5019. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5020. cat conftest.err >&5
  5021. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5022. cat conftest.out >&5
  5023. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5024. lt_cv_nm_interface="MS dumpbin"
  5025. fi
  5026. rm -f conftest*
  5027. fi
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5029. $as_echo "$lt_cv_nm_interface" >&6; }
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5031. $as_echo_n "checking whether ln -s works... " >&6; }
  5032. LN_S=$as_ln_s
  5033. if test "$LN_S" = "ln -s"; then
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5035. $as_echo "yes" >&6; }
  5036. else
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5038. $as_echo "no, using $LN_S" >&6; }
  5039. fi
  5040. # find the maximum length of command line arguments
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5042. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5043. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5044. $as_echo_n "(cached) " >&6
  5045. else
  5046. i=0
  5047. teststring="ABCD"
  5048. case $build_os in
  5049. msdosdjgpp*)
  5050. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5051. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5052. # during glob expansion). Even if it were fixed, the result of this
  5053. # check would be larger than it should be.
  5054. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5055. ;;
  5056. gnu*)
  5057. # Under GNU Hurd, this test is not required because there is
  5058. # no limit to the length of command line arguments.
  5059. # Libtool will interpret -1 as no limit whatsoever
  5060. lt_cv_sys_max_cmd_len=-1;
  5061. ;;
  5062. cygwin* | mingw* | cegcc*)
  5063. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5064. # about 5 minutes as the teststring grows exponentially.
  5065. # Worse, since 9x/ME are not pre-emptively multitasking,
  5066. # you end up with a "frozen" computer, even though with patience
  5067. # the test eventually succeeds (with a max line length of 256k).
  5068. # Instead, let's just punt: use the minimum linelength reported by
  5069. # all of the supported platforms: 8192 (on NT/2K/XP).
  5070. lt_cv_sys_max_cmd_len=8192;
  5071. ;;
  5072. mint*)
  5073. # On MiNT this can take a long time and run out of memory.
  5074. lt_cv_sys_max_cmd_len=8192;
  5075. ;;
  5076. amigaos*)
  5077. # On AmigaOS with pdksh, this test takes hours, literally.
  5078. # So we just punt and use a minimum line length of 8192.
  5079. lt_cv_sys_max_cmd_len=8192;
  5080. ;;
  5081. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5082. # This has been around since 386BSD, at least. Likely further.
  5083. if test -x /sbin/sysctl; then
  5084. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5085. elif test -x /usr/sbin/sysctl; then
  5086. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5087. else
  5088. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5089. fi
  5090. # And add a safety zone
  5091. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5092. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5093. ;;
  5094. interix*)
  5095. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5096. lt_cv_sys_max_cmd_len=196608
  5097. ;;
  5098. osf*)
  5099. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5100. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5101. # nice to cause kernel panics so lets avoid the loop below.
  5102. # First set a reasonable default.
  5103. lt_cv_sys_max_cmd_len=16384
  5104. #
  5105. if test -x /sbin/sysconfig; then
  5106. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5107. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5108. esac
  5109. fi
  5110. ;;
  5111. sco3.2v5*)
  5112. lt_cv_sys_max_cmd_len=102400
  5113. ;;
  5114. sysv5* | sco5v6* | sysv4.2uw2*)
  5115. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5116. if test -n "$kargmax"; then
  5117. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5118. else
  5119. lt_cv_sys_max_cmd_len=32768
  5120. fi
  5121. ;;
  5122. *)
  5123. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5124. if test -n "$lt_cv_sys_max_cmd_len"; then
  5125. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5126. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5127. else
  5128. # Make teststring a little bigger before we do anything with it.
  5129. # a 1K string should be a reasonable start.
  5130. for i in 1 2 3 4 5 6 7 8 ; do
  5131. teststring=$teststring$teststring
  5132. done
  5133. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5134. # If test is not a shell built-in, we'll probably end up computing a
  5135. # maximum length that is only half of the actual maximum length, but
  5136. # we can't tell.
  5137. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5138. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5139. test $i != 17 # 1/2 MB should be enough
  5140. do
  5141. i=`expr $i + 1`
  5142. teststring=$teststring$teststring
  5143. done
  5144. # Only check the string length outside the loop.
  5145. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5146. teststring=
  5147. # Add a significant safety factor because C++ compilers can tack on
  5148. # massive amounts of additional arguments before passing them to the
  5149. # linker. It appears as though 1/2 is a usable value.
  5150. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5151. fi
  5152. ;;
  5153. esac
  5154. fi
  5155. if test -n $lt_cv_sys_max_cmd_len ; then
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5157. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5158. else
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5160. $as_echo "none" >&6; }
  5161. fi
  5162. max_cmd_len=$lt_cv_sys_max_cmd_len
  5163. : ${CP="cp -f"}
  5164. : ${MV="mv -f"}
  5165. : ${RM="rm -f"}
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5167. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5168. # Try some XSI features
  5169. xsi_shell=no
  5170. ( _lt_dummy="a/b/c"
  5171. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5172. = c,a/b,, \
  5173. && eval 'test $(( 1 + 1 )) -eq 2 \
  5174. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5175. && xsi_shell=yes
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5177. $as_echo "$xsi_shell" >&6; }
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5179. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5180. lt_shell_append=no
  5181. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5182. >/dev/null 2>&1 \
  5183. && lt_shell_append=yes
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5185. $as_echo "$lt_shell_append" >&6; }
  5186. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5187. lt_unset=unset
  5188. else
  5189. lt_unset=false
  5190. fi
  5191. # test EBCDIC or ASCII
  5192. case `echo X|tr X '\101'` in
  5193. A) # ASCII based system
  5194. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5195. lt_SP2NL='tr \040 \012'
  5196. lt_NL2SP='tr \015\012 \040\040'
  5197. ;;
  5198. *) # EBCDIC based system
  5199. lt_SP2NL='tr \100 \n'
  5200. lt_NL2SP='tr \r\n \100\100'
  5201. ;;
  5202. esac
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5204. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5205. if ${lt_cv_ld_reload_flag+:} false; then :
  5206. $as_echo_n "(cached) " >&6
  5207. else
  5208. lt_cv_ld_reload_flag='-r'
  5209. fi
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5211. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5212. reload_flag=$lt_cv_ld_reload_flag
  5213. case $reload_flag in
  5214. "" | " "*) ;;
  5215. *) reload_flag=" $reload_flag" ;;
  5216. esac
  5217. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5218. case $host_os in
  5219. darwin*)
  5220. if test "$GCC" = yes; then
  5221. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5222. else
  5223. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5224. fi
  5225. ;;
  5226. esac
  5227. if test -n "$ac_tool_prefix"; then
  5228. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5229. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5231. $as_echo_n "checking for $ac_word... " >&6; }
  5232. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5233. $as_echo_n "(cached) " >&6
  5234. else
  5235. if test -n "$OBJDUMP"; then
  5236. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5237. else
  5238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5239. for as_dir in $PATH
  5240. do
  5241. IFS=$as_save_IFS
  5242. test -z "$as_dir" && as_dir=.
  5243. for ac_exec_ext in '' $ac_executable_extensions; do
  5244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5245. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5247. break 2
  5248. fi
  5249. done
  5250. done
  5251. IFS=$as_save_IFS
  5252. fi
  5253. fi
  5254. OBJDUMP=$ac_cv_prog_OBJDUMP
  5255. if test -n "$OBJDUMP"; then
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5257. $as_echo "$OBJDUMP" >&6; }
  5258. else
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5260. $as_echo "no" >&6; }
  5261. fi
  5262. fi
  5263. if test -z "$ac_cv_prog_OBJDUMP"; then
  5264. ac_ct_OBJDUMP=$OBJDUMP
  5265. # Extract the first word of "objdump", so it can be a program name with args.
  5266. set dummy objdump; ac_word=$2
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5268. $as_echo_n "checking for $ac_word... " >&6; }
  5269. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5270. $as_echo_n "(cached) " >&6
  5271. else
  5272. if test -n "$ac_ct_OBJDUMP"; then
  5273. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5274. else
  5275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5276. for as_dir in $PATH
  5277. do
  5278. IFS=$as_save_IFS
  5279. test -z "$as_dir" && as_dir=.
  5280. for ac_exec_ext in '' $ac_executable_extensions; do
  5281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5282. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5284. break 2
  5285. fi
  5286. done
  5287. done
  5288. IFS=$as_save_IFS
  5289. fi
  5290. fi
  5291. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5292. if test -n "$ac_ct_OBJDUMP"; then
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5294. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5295. else
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5297. $as_echo "no" >&6; }
  5298. fi
  5299. if test "x$ac_ct_OBJDUMP" = x; then
  5300. OBJDUMP="false"
  5301. else
  5302. case $cross_compiling:$ac_tool_warned in
  5303. yes:)
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5305. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5306. ac_tool_warned=yes ;;
  5307. esac
  5308. OBJDUMP=$ac_ct_OBJDUMP
  5309. fi
  5310. else
  5311. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5312. fi
  5313. test -z "$OBJDUMP" && OBJDUMP=objdump
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5315. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5316. if ${lt_cv_deplibs_check_method+:} false; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5320. lt_cv_file_magic_test_file=
  5321. lt_cv_deplibs_check_method='unknown'
  5322. # Need to set the preceding variable on all platforms that support
  5323. # interlibrary dependencies.
  5324. # 'none' -- dependencies not supported.
  5325. # `unknown' -- same as none, but documents that we really don't know.
  5326. # 'pass_all' -- all dependencies passed with no checks.
  5327. # 'test_compile' -- check by making test program.
  5328. # 'file_magic [[regex]]' -- check by looking for files in library path
  5329. # which responds to the $file_magic_cmd with a given extended regex.
  5330. # If you have `file' or equivalent on your system and you're not sure
  5331. # whether `pass_all' will *always* work, you probably want this one.
  5332. case $host_os in
  5333. aix[4-9]*)
  5334. lt_cv_deplibs_check_method=pass_all
  5335. ;;
  5336. beos*)
  5337. lt_cv_deplibs_check_method=pass_all
  5338. ;;
  5339. bsdi[45]*)
  5340. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5341. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5342. lt_cv_file_magic_test_file=/shlib/libc.so
  5343. ;;
  5344. cygwin*)
  5345. # func_win32_libid is a shell function defined in ltmain.sh
  5346. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5347. lt_cv_file_magic_cmd='func_win32_libid'
  5348. ;;
  5349. mingw* | pw32*)
  5350. # Base MSYS/MinGW do not provide the 'file' command needed by
  5351. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5352. # unless we find 'file', for example because we are cross-compiling.
  5353. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5354. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5355. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5356. lt_cv_file_magic_cmd='func_win32_libid'
  5357. else
  5358. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5359. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5360. fi
  5361. ;;
  5362. cegcc*)
  5363. # use the weaker test based on 'objdump'. See mingw*.
  5364. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5365. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5366. ;;
  5367. darwin* | rhapsody*)
  5368. lt_cv_deplibs_check_method=pass_all
  5369. ;;
  5370. freebsd* | dragonfly*)
  5371. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5372. case $host_cpu in
  5373. i*86 )
  5374. # Not sure whether the presence of OpenBSD here was a mistake.
  5375. # Let's accept both of them until this is cleared up.
  5376. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5377. lt_cv_file_magic_cmd=/usr/bin/file
  5378. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5379. ;;
  5380. esac
  5381. else
  5382. lt_cv_deplibs_check_method=pass_all
  5383. fi
  5384. ;;
  5385. gnu*)
  5386. lt_cv_deplibs_check_method=pass_all
  5387. ;;
  5388. haiku*)
  5389. lt_cv_deplibs_check_method=pass_all
  5390. ;;
  5391. hpux10.20* | hpux11*)
  5392. lt_cv_file_magic_cmd=/usr/bin/file
  5393. case $host_cpu in
  5394. ia64*)
  5395. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5396. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5397. ;;
  5398. hppa*64*)
  5399. 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]'
  5400. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5401. ;;
  5402. *)
  5403. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5404. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5405. ;;
  5406. esac
  5407. ;;
  5408. interix[3-9]*)
  5409. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5410. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5411. ;;
  5412. irix5* | irix6* | nonstopux*)
  5413. case $LD in
  5414. *-32|*"-32 ") libmagic=32-bit;;
  5415. *-n32|*"-n32 ") libmagic=N32;;
  5416. *-64|*"-64 ") libmagic=64-bit;;
  5417. *) libmagic=never-match;;
  5418. esac
  5419. lt_cv_deplibs_check_method=pass_all
  5420. ;;
  5421. # This must be Linux ELF.
  5422. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5423. lt_cv_deplibs_check_method=pass_all
  5424. ;;
  5425. netbsd*)
  5426. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5427. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5428. else
  5429. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5430. fi
  5431. ;;
  5432. newos6*)
  5433. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5434. lt_cv_file_magic_cmd=/usr/bin/file
  5435. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5436. ;;
  5437. *nto* | *qnx*)
  5438. lt_cv_deplibs_check_method=pass_all
  5439. ;;
  5440. openbsd*)
  5441. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5442. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5443. else
  5444. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5445. fi
  5446. ;;
  5447. osf3* | osf4* | osf5*)
  5448. lt_cv_deplibs_check_method=pass_all
  5449. ;;
  5450. rdos*)
  5451. lt_cv_deplibs_check_method=pass_all
  5452. ;;
  5453. solaris*)
  5454. lt_cv_deplibs_check_method=pass_all
  5455. ;;
  5456. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5457. lt_cv_deplibs_check_method=pass_all
  5458. ;;
  5459. sysv4 | sysv4.3*)
  5460. case $host_vendor in
  5461. motorola)
  5462. 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]'
  5463. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5464. ;;
  5465. ncr)
  5466. lt_cv_deplibs_check_method=pass_all
  5467. ;;
  5468. sequent)
  5469. lt_cv_file_magic_cmd='/bin/file'
  5470. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5471. ;;
  5472. sni)
  5473. lt_cv_file_magic_cmd='/bin/file'
  5474. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5475. lt_cv_file_magic_test_file=/lib/libc.so
  5476. ;;
  5477. siemens)
  5478. lt_cv_deplibs_check_method=pass_all
  5479. ;;
  5480. pc)
  5481. lt_cv_deplibs_check_method=pass_all
  5482. ;;
  5483. esac
  5484. ;;
  5485. tpf*)
  5486. lt_cv_deplibs_check_method=pass_all
  5487. ;;
  5488. esac
  5489. fi
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5491. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5492. file_magic_cmd=$lt_cv_file_magic_cmd
  5493. deplibs_check_method=$lt_cv_deplibs_check_method
  5494. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5495. plugin_option=
  5496. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  5497. for plugin in $plugin_names; do
  5498. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  5499. if test x$plugin_so = x$plugin; then
  5500. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  5501. fi
  5502. if test x$plugin_so != x$plugin; then
  5503. plugin_option="--plugin $plugin_so"
  5504. break
  5505. fi
  5506. done
  5507. if test -n "$ac_tool_prefix"; then
  5508. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5509. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5511. $as_echo_n "checking for $ac_word... " >&6; }
  5512. if ${ac_cv_prog_AR+:} false; then :
  5513. $as_echo_n "(cached) " >&6
  5514. else
  5515. if test -n "$AR"; then
  5516. ac_cv_prog_AR="$AR" # Let the user override the test.
  5517. else
  5518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5519. for as_dir in $PATH
  5520. do
  5521. IFS=$as_save_IFS
  5522. test -z "$as_dir" && as_dir=.
  5523. for ac_exec_ext in '' $ac_executable_extensions; do
  5524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5525. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5527. break 2
  5528. fi
  5529. done
  5530. done
  5531. IFS=$as_save_IFS
  5532. fi
  5533. fi
  5534. AR=$ac_cv_prog_AR
  5535. if test -n "$AR"; then
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5537. $as_echo "$AR" >&6; }
  5538. else
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5540. $as_echo "no" >&6; }
  5541. fi
  5542. fi
  5543. if test -z "$ac_cv_prog_AR"; then
  5544. ac_ct_AR=$AR
  5545. # Extract the first word of "ar", so it can be a program name with args.
  5546. set dummy ar; ac_word=$2
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5548. $as_echo_n "checking for $ac_word... " >&6; }
  5549. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5550. $as_echo_n "(cached) " >&6
  5551. else
  5552. if test -n "$ac_ct_AR"; then
  5553. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5554. else
  5555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5556. for as_dir in $PATH
  5557. do
  5558. IFS=$as_save_IFS
  5559. test -z "$as_dir" && as_dir=.
  5560. for ac_exec_ext in '' $ac_executable_extensions; do
  5561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5562. ac_cv_prog_ac_ct_AR="ar"
  5563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5564. break 2
  5565. fi
  5566. done
  5567. done
  5568. IFS=$as_save_IFS
  5569. fi
  5570. fi
  5571. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5572. if test -n "$ac_ct_AR"; then
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5574. $as_echo "$ac_ct_AR" >&6; }
  5575. else
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5577. $as_echo "no" >&6; }
  5578. fi
  5579. if test "x$ac_ct_AR" = x; then
  5580. AR="false"
  5581. else
  5582. case $cross_compiling:$ac_tool_warned in
  5583. yes:)
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5586. ac_tool_warned=yes ;;
  5587. esac
  5588. AR=$ac_ct_AR
  5589. fi
  5590. else
  5591. AR="$ac_cv_prog_AR"
  5592. fi
  5593. test -z "$AR" && AR=ar
  5594. if test -n "$plugin_option"; then
  5595. if $AR --help 2>&1 | grep -q "\--plugin"; then
  5596. touch conftest.c
  5597. $AR $plugin_option rc conftest.a conftest.c
  5598. if test "$?" != 0; then
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  5600. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  5601. else
  5602. AR="$AR $plugin_option"
  5603. fi
  5604. rm -f conftest.*
  5605. fi
  5606. fi
  5607. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5608. if test -n "$ac_tool_prefix"; then
  5609. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5610. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5612. $as_echo_n "checking for $ac_word... " >&6; }
  5613. if ${ac_cv_prog_STRIP+:} false; then :
  5614. $as_echo_n "(cached) " >&6
  5615. else
  5616. if test -n "$STRIP"; then
  5617. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5618. else
  5619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5620. for as_dir in $PATH
  5621. do
  5622. IFS=$as_save_IFS
  5623. test -z "$as_dir" && as_dir=.
  5624. for ac_exec_ext in '' $ac_executable_extensions; do
  5625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5626. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5628. break 2
  5629. fi
  5630. done
  5631. done
  5632. IFS=$as_save_IFS
  5633. fi
  5634. fi
  5635. STRIP=$ac_cv_prog_STRIP
  5636. if test -n "$STRIP"; then
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5638. $as_echo "$STRIP" >&6; }
  5639. else
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5641. $as_echo "no" >&6; }
  5642. fi
  5643. fi
  5644. if test -z "$ac_cv_prog_STRIP"; then
  5645. ac_ct_STRIP=$STRIP
  5646. # Extract the first word of "strip", so it can be a program name with args.
  5647. set dummy strip; ac_word=$2
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5649. $as_echo_n "checking for $ac_word... " >&6; }
  5650. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5651. $as_echo_n "(cached) " >&6
  5652. else
  5653. if test -n "$ac_ct_STRIP"; then
  5654. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5655. else
  5656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5657. for as_dir in $PATH
  5658. do
  5659. IFS=$as_save_IFS
  5660. test -z "$as_dir" && as_dir=.
  5661. for ac_exec_ext in '' $ac_executable_extensions; do
  5662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5663. ac_cv_prog_ac_ct_STRIP="strip"
  5664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5665. break 2
  5666. fi
  5667. done
  5668. done
  5669. IFS=$as_save_IFS
  5670. fi
  5671. fi
  5672. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5673. if test -n "$ac_ct_STRIP"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5675. $as_echo "$ac_ct_STRIP" >&6; }
  5676. else
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5678. $as_echo "no" >&6; }
  5679. fi
  5680. if test "x$ac_ct_STRIP" = x; then
  5681. STRIP=":"
  5682. else
  5683. case $cross_compiling:$ac_tool_warned in
  5684. yes:)
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5686. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5687. ac_tool_warned=yes ;;
  5688. esac
  5689. STRIP=$ac_ct_STRIP
  5690. fi
  5691. else
  5692. STRIP="$ac_cv_prog_STRIP"
  5693. fi
  5694. test -z "$STRIP" && STRIP=:
  5695. if test -n "$ac_tool_prefix"; then
  5696. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5697. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5699. $as_echo_n "checking for $ac_word... " >&6; }
  5700. if ${ac_cv_prog_RANLIB+:} false; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. if test -n "$RANLIB"; then
  5704. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. test -z "$as_dir" && as_dir=.
  5711. for ac_exec_ext in '' $ac_executable_extensions; do
  5712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5713. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5715. break 2
  5716. fi
  5717. done
  5718. done
  5719. IFS=$as_save_IFS
  5720. fi
  5721. fi
  5722. RANLIB=$ac_cv_prog_RANLIB
  5723. if test -n "$RANLIB"; then
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5725. $as_echo "$RANLIB" >&6; }
  5726. else
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5728. $as_echo "no" >&6; }
  5729. fi
  5730. fi
  5731. if test -z "$ac_cv_prog_RANLIB"; then
  5732. ac_ct_RANLIB=$RANLIB
  5733. # Extract the first word of "ranlib", so it can be a program name with args.
  5734. set dummy ranlib; ac_word=$2
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5736. $as_echo_n "checking for $ac_word... " >&6; }
  5737. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5738. $as_echo_n "(cached) " >&6
  5739. else
  5740. if test -n "$ac_ct_RANLIB"; then
  5741. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5742. else
  5743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5744. for as_dir in $PATH
  5745. do
  5746. IFS=$as_save_IFS
  5747. test -z "$as_dir" && as_dir=.
  5748. for ac_exec_ext in '' $ac_executable_extensions; do
  5749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5750. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5752. break 2
  5753. fi
  5754. done
  5755. done
  5756. IFS=$as_save_IFS
  5757. fi
  5758. fi
  5759. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5760. if test -n "$ac_ct_RANLIB"; then
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5762. $as_echo "$ac_ct_RANLIB" >&6; }
  5763. else
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5765. $as_echo "no" >&6; }
  5766. fi
  5767. if test "x$ac_ct_RANLIB" = x; then
  5768. RANLIB=":"
  5769. else
  5770. case $cross_compiling:$ac_tool_warned in
  5771. yes:)
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5773. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5774. ac_tool_warned=yes ;;
  5775. esac
  5776. RANLIB=$ac_ct_RANLIB
  5777. fi
  5778. else
  5779. RANLIB="$ac_cv_prog_RANLIB"
  5780. fi
  5781. test -z "$RANLIB" && RANLIB=:
  5782. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  5783. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  5784. RANLIB="$RANLIB $plugin_option"
  5785. fi
  5786. fi
  5787. # Determine commands to create old-style static archives.
  5788. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5789. old_postinstall_cmds='chmod 644 $oldlib'
  5790. old_postuninstall_cmds=
  5791. if test -n "$RANLIB"; then
  5792. case $host_os in
  5793. openbsd*)
  5794. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5795. ;;
  5796. *)
  5797. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5798. ;;
  5799. esac
  5800. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5801. fi
  5802. case $host_os in
  5803. darwin*)
  5804. lock_old_archive_extraction=yes ;;
  5805. *)
  5806. lock_old_archive_extraction=no ;;
  5807. esac
  5808. # If no C compiler was specified, use CC.
  5809. LTCC=${LTCC-"$CC"}
  5810. # If no C compiler flags were specified, use CFLAGS.
  5811. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5812. # Allow CC to be a program name with arguments.
  5813. compiler=$CC
  5814. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5816. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5817. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5818. $as_echo_n "(cached) " >&6
  5819. else
  5820. # These are sane defaults that work on at least a few old systems.
  5821. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5822. # Character class describing NM global symbol codes.
  5823. symcode='[BCDEGRST]'
  5824. # Regexp to match symbols that can be accessed directly from C.
  5825. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5826. # Define system-specific variables.
  5827. case $host_os in
  5828. aix*)
  5829. symcode='[BCDT]'
  5830. ;;
  5831. cygwin* | mingw* | pw32* | cegcc*)
  5832. symcode='[ABCDGISTW]'
  5833. ;;
  5834. hpux*)
  5835. if test "$host_cpu" = ia64; then
  5836. symcode='[ABCDEGRST]'
  5837. fi
  5838. ;;
  5839. irix* | nonstopux*)
  5840. symcode='[BCDEGRST]'
  5841. ;;
  5842. osf*)
  5843. symcode='[BCDEGQRST]'
  5844. ;;
  5845. solaris*)
  5846. symcode='[BCDRT]'
  5847. ;;
  5848. sco3.2v5*)
  5849. symcode='[DT]'
  5850. ;;
  5851. sysv4.2uw2*)
  5852. symcode='[DT]'
  5853. ;;
  5854. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5855. symcode='[ABDT]'
  5856. ;;
  5857. sysv4)
  5858. symcode='[DFNSTU]'
  5859. ;;
  5860. esac
  5861. # If we're using GNU nm, then use its standard symbol codes.
  5862. case `$NM -V 2>&1` in
  5863. *GNU* | *'with BFD'*)
  5864. symcode='[ABCDGIRSTW]' ;;
  5865. esac
  5866. # Transform an extracted symbol line into a proper C declaration.
  5867. # Some systems (esp. on ia64) link data and code symbols differently,
  5868. # so use this general approach.
  5869. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5870. # Transform an extracted symbol line into symbol name and symbol address
  5871. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5872. 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'"
  5873. # Handle CRLF in mingw tool chain
  5874. opt_cr=
  5875. case $build_os in
  5876. mingw*)
  5877. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5878. ;;
  5879. esac
  5880. # Try without a prefix underscore, then with it.
  5881. for ac_symprfx in "" "_"; do
  5882. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5883. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5884. # Write the raw and C identifiers.
  5885. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5886. # Fake it for dumpbin and say T for any non-static function
  5887. # and D for any global variable.
  5888. # Also find C++ and __fastcall symbols from MSVC++,
  5889. # which start with @ or ?.
  5890. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5891. " {last_section=section; section=\$ 3};"\
  5892. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5893. " \$ 0!~/External *\|/{next};"\
  5894. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5895. " {if(hide[section]) next};"\
  5896. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5897. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5898. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5899. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5900. " ' prfx=^$ac_symprfx"
  5901. else
  5902. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5903. fi
  5904. # Check to see that the pipe works correctly.
  5905. pipe_works=no
  5906. rm -f conftest*
  5907. cat > conftest.$ac_ext <<_LT_EOF
  5908. #ifdef __cplusplus
  5909. extern "C" {
  5910. #endif
  5911. char nm_test_var;
  5912. void nm_test_func(void);
  5913. void nm_test_func(void){}
  5914. #ifdef __cplusplus
  5915. }
  5916. #endif
  5917. int main(){nm_test_var='a';nm_test_func();return(0);}
  5918. _LT_EOF
  5919. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5920. (eval $ac_compile) 2>&5
  5921. ac_status=$?
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5923. test $ac_status = 0; }; then
  5924. # Now try to grab the symbols.
  5925. nlist=conftest.nm
  5926. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5927. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5928. ac_status=$?
  5929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5930. test $ac_status = 0; } && test -s "$nlist"; then
  5931. # Try sorting and uniquifying the output.
  5932. if sort "$nlist" | uniq > "$nlist"T; then
  5933. mv -f "$nlist"T "$nlist"
  5934. else
  5935. rm -f "$nlist"T
  5936. fi
  5937. # Make sure that we snagged all the symbols we need.
  5938. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5939. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5940. cat <<_LT_EOF > conftest.$ac_ext
  5941. #ifdef __cplusplus
  5942. extern "C" {
  5943. #endif
  5944. _LT_EOF
  5945. # Now generate the symbol file.
  5946. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5947. cat <<_LT_EOF >> conftest.$ac_ext
  5948. /* The mapping between symbol names and symbols. */
  5949. const struct {
  5950. const char *name;
  5951. void *address;
  5952. }
  5953. lt__PROGRAM__LTX_preloaded_symbols[] =
  5954. {
  5955. { "@PROGRAM@", (void *) 0 },
  5956. _LT_EOF
  5957. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5958. cat <<\_LT_EOF >> conftest.$ac_ext
  5959. {0, (void *) 0}
  5960. };
  5961. /* This works around a problem in FreeBSD linker */
  5962. #ifdef FREEBSD_WORKAROUND
  5963. static const void *lt_preloaded_setup() {
  5964. return lt__PROGRAM__LTX_preloaded_symbols;
  5965. }
  5966. #endif
  5967. #ifdef __cplusplus
  5968. }
  5969. #endif
  5970. _LT_EOF
  5971. # Now try linking the two files.
  5972. mv conftest.$ac_objext conftstm.$ac_objext
  5973. lt_save_LIBS="$LIBS"
  5974. lt_save_CFLAGS="$CFLAGS"
  5975. LIBS="conftstm.$ac_objext"
  5976. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5977. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5978. (eval $ac_link) 2>&5
  5979. ac_status=$?
  5980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5981. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5982. pipe_works=yes
  5983. fi
  5984. LIBS="$lt_save_LIBS"
  5985. CFLAGS="$lt_save_CFLAGS"
  5986. else
  5987. echo "cannot find nm_test_func in $nlist" >&5
  5988. fi
  5989. else
  5990. echo "cannot find nm_test_var in $nlist" >&5
  5991. fi
  5992. else
  5993. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5994. fi
  5995. else
  5996. echo "$progname: failed program was:" >&5
  5997. cat conftest.$ac_ext >&5
  5998. fi
  5999. rm -rf conftest* conftst*
  6000. # Do not use the global_symbol_pipe unless it works.
  6001. if test "$pipe_works" = yes; then
  6002. break
  6003. else
  6004. lt_cv_sys_global_symbol_pipe=
  6005. fi
  6006. done
  6007. fi
  6008. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6009. lt_cv_sys_global_symbol_to_cdecl=
  6010. fi
  6011. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6013. $as_echo "failed" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6016. $as_echo "ok" >&6; }
  6017. fi
  6018. # Check whether --enable-libtool-lock was given.
  6019. if test "${enable_libtool_lock+set}" = set; then :
  6020. enableval=$enable_libtool_lock;
  6021. fi
  6022. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6023. # Some flags need to be propagated to the compiler or linker for good
  6024. # libtool support.
  6025. case $host in
  6026. ia64-*-hpux*)
  6027. # Find out which ABI we are using.
  6028. echo 'int i;' > conftest.$ac_ext
  6029. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6030. (eval $ac_compile) 2>&5
  6031. ac_status=$?
  6032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6033. test $ac_status = 0; }; then
  6034. case `/usr/bin/file conftest.$ac_objext` in
  6035. *ELF-32*)
  6036. HPUX_IA64_MODE="32"
  6037. ;;
  6038. *ELF-64*)
  6039. HPUX_IA64_MODE="64"
  6040. ;;
  6041. esac
  6042. fi
  6043. rm -rf conftest*
  6044. ;;
  6045. *-*-irix6*)
  6046. # Find out which ABI we are using.
  6047. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6048. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6049. (eval $ac_compile) 2>&5
  6050. ac_status=$?
  6051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6052. test $ac_status = 0; }; then
  6053. if test "$lt_cv_prog_gnu_ld" = yes; then
  6054. case `/usr/bin/file conftest.$ac_objext` in
  6055. *32-bit*)
  6056. LD="${LD-ld} -melf32bsmip"
  6057. ;;
  6058. *N32*)
  6059. LD="${LD-ld} -melf32bmipn32"
  6060. ;;
  6061. *64-bit*)
  6062. LD="${LD-ld} -melf64bmip"
  6063. ;;
  6064. esac
  6065. else
  6066. case `/usr/bin/file conftest.$ac_objext` in
  6067. *32-bit*)
  6068. LD="${LD-ld} -32"
  6069. ;;
  6070. *N32*)
  6071. LD="${LD-ld} -n32"
  6072. ;;
  6073. *64-bit*)
  6074. LD="${LD-ld} -64"
  6075. ;;
  6076. esac
  6077. fi
  6078. fi
  6079. rm -rf conftest*
  6080. ;;
  6081. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6082. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6083. # Find out which ABI we are using.
  6084. echo 'int i;' > conftest.$ac_ext
  6085. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6086. (eval $ac_compile) 2>&5
  6087. ac_status=$?
  6088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6089. test $ac_status = 0; }; then
  6090. case `/usr/bin/file conftest.o` in
  6091. *32-bit*)
  6092. case $host in
  6093. x86_64-*kfreebsd*-gnu)
  6094. LD="${LD-ld} -m elf_i386_fbsd"
  6095. ;;
  6096. x86_64-*linux*)
  6097. case `/usr/bin/file conftest.o` in
  6098. *x86-64*)
  6099. LD="${LD-ld} -m elf32_x86_64"
  6100. ;;
  6101. *)
  6102. LD="${LD-ld} -m elf_i386"
  6103. ;;
  6104. esac
  6105. ;;
  6106. powerpc64le-*linux*)
  6107. LD="${LD-ld} -m elf32lppclinux"
  6108. ;;
  6109. powerpc64-*linux*)
  6110. LD="${LD-ld} -m elf32ppclinux"
  6111. ;;
  6112. s390x-*linux*)
  6113. LD="${LD-ld} -m elf_s390"
  6114. ;;
  6115. sparc64-*linux*)
  6116. LD="${LD-ld} -m elf32_sparc"
  6117. ;;
  6118. esac
  6119. ;;
  6120. *64-bit*)
  6121. case $host in
  6122. x86_64-*kfreebsd*-gnu)
  6123. LD="${LD-ld} -m elf_x86_64_fbsd"
  6124. ;;
  6125. x86_64-*linux*)
  6126. LD="${LD-ld} -m elf_x86_64"
  6127. ;;
  6128. powerpcle-*linux*)
  6129. LD="${LD-ld} -m elf64lppc"
  6130. ;;
  6131. powerpc-*linux*)
  6132. LD="${LD-ld} -m elf64ppc"
  6133. ;;
  6134. s390*-*linux*|s390*-*tpf*)
  6135. LD="${LD-ld} -m elf64_s390"
  6136. ;;
  6137. sparc*-*linux*)
  6138. LD="${LD-ld} -m elf64_sparc"
  6139. ;;
  6140. esac
  6141. ;;
  6142. esac
  6143. fi
  6144. rm -rf conftest*
  6145. ;;
  6146. *-*-sco3.2v5*)
  6147. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6148. SAVE_CFLAGS="$CFLAGS"
  6149. CFLAGS="$CFLAGS -belf"
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6151. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6152. if ${lt_cv_cc_needs_belf+:} false; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. ac_ext=c
  6156. ac_cpp='$CPP $CPPFLAGS'
  6157. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6158. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6159. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6161. /* end confdefs.h. */
  6162. int
  6163. main ()
  6164. {
  6165. ;
  6166. return 0;
  6167. }
  6168. _ACEOF
  6169. if ac_fn_c_try_link "$LINENO"; then :
  6170. lt_cv_cc_needs_belf=yes
  6171. else
  6172. lt_cv_cc_needs_belf=no
  6173. fi
  6174. rm -f core conftest.err conftest.$ac_objext \
  6175. conftest$ac_exeext conftest.$ac_ext
  6176. ac_ext=c
  6177. ac_cpp='$CPP $CPPFLAGS'
  6178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6181. fi
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6183. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6184. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6185. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6186. CFLAGS="$SAVE_CFLAGS"
  6187. fi
  6188. ;;
  6189. sparc*-*solaris*)
  6190. # Find out which ABI we are using.
  6191. echo 'int i;' > conftest.$ac_ext
  6192. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6193. (eval $ac_compile) 2>&5
  6194. ac_status=$?
  6195. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6196. test $ac_status = 0; }; then
  6197. case `/usr/bin/file conftest.o` in
  6198. *64-bit*)
  6199. case $lt_cv_prog_gnu_ld in
  6200. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6201. *)
  6202. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6203. LD="${LD-ld} -64"
  6204. fi
  6205. ;;
  6206. esac
  6207. ;;
  6208. esac
  6209. fi
  6210. rm -rf conftest*
  6211. ;;
  6212. esac
  6213. need_locks="$enable_libtool_lock"
  6214. case $host_os in
  6215. rhapsody* | darwin*)
  6216. if test -n "$ac_tool_prefix"; then
  6217. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6218. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6220. $as_echo_n "checking for $ac_word... " >&6; }
  6221. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6222. $as_echo_n "(cached) " >&6
  6223. else
  6224. if test -n "$DSYMUTIL"; then
  6225. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6226. else
  6227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6228. for as_dir in $PATH
  6229. do
  6230. IFS=$as_save_IFS
  6231. test -z "$as_dir" && as_dir=.
  6232. for ac_exec_ext in '' $ac_executable_extensions; do
  6233. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6234. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6236. break 2
  6237. fi
  6238. done
  6239. done
  6240. IFS=$as_save_IFS
  6241. fi
  6242. fi
  6243. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6244. if test -n "$DSYMUTIL"; then
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6246. $as_echo "$DSYMUTIL" >&6; }
  6247. else
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6249. $as_echo "no" >&6; }
  6250. fi
  6251. fi
  6252. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6253. ac_ct_DSYMUTIL=$DSYMUTIL
  6254. # Extract the first word of "dsymutil", so it can be a program name with args.
  6255. set dummy dsymutil; ac_word=$2
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6257. $as_echo_n "checking for $ac_word... " >&6; }
  6258. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6259. $as_echo_n "(cached) " >&6
  6260. else
  6261. if test -n "$ac_ct_DSYMUTIL"; then
  6262. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6263. else
  6264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6265. for as_dir in $PATH
  6266. do
  6267. IFS=$as_save_IFS
  6268. test -z "$as_dir" && as_dir=.
  6269. for ac_exec_ext in '' $ac_executable_extensions; do
  6270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6271. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6273. break 2
  6274. fi
  6275. done
  6276. done
  6277. IFS=$as_save_IFS
  6278. fi
  6279. fi
  6280. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6281. if test -n "$ac_ct_DSYMUTIL"; then
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6283. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6284. else
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6286. $as_echo "no" >&6; }
  6287. fi
  6288. if test "x$ac_ct_DSYMUTIL" = x; then
  6289. DSYMUTIL=":"
  6290. else
  6291. case $cross_compiling:$ac_tool_warned in
  6292. yes:)
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6294. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6295. ac_tool_warned=yes ;;
  6296. esac
  6297. DSYMUTIL=$ac_ct_DSYMUTIL
  6298. fi
  6299. else
  6300. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6301. fi
  6302. if test -n "$ac_tool_prefix"; then
  6303. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6304. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6306. $as_echo_n "checking for $ac_word... " >&6; }
  6307. if ${ac_cv_prog_NMEDIT+:} false; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. if test -n "$NMEDIT"; then
  6311. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6312. else
  6313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6314. for as_dir in $PATH
  6315. do
  6316. IFS=$as_save_IFS
  6317. test -z "$as_dir" && as_dir=.
  6318. for ac_exec_ext in '' $ac_executable_extensions; do
  6319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6320. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6322. break 2
  6323. fi
  6324. done
  6325. done
  6326. IFS=$as_save_IFS
  6327. fi
  6328. fi
  6329. NMEDIT=$ac_cv_prog_NMEDIT
  6330. if test -n "$NMEDIT"; then
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6332. $as_echo "$NMEDIT" >&6; }
  6333. else
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6335. $as_echo "no" >&6; }
  6336. fi
  6337. fi
  6338. if test -z "$ac_cv_prog_NMEDIT"; then
  6339. ac_ct_NMEDIT=$NMEDIT
  6340. # Extract the first word of "nmedit", so it can be a program name with args.
  6341. set dummy nmedit; ac_word=$2
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6343. $as_echo_n "checking for $ac_word... " >&6; }
  6344. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6345. $as_echo_n "(cached) " >&6
  6346. else
  6347. if test -n "$ac_ct_NMEDIT"; then
  6348. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6349. else
  6350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6351. for as_dir in $PATH
  6352. do
  6353. IFS=$as_save_IFS
  6354. test -z "$as_dir" && as_dir=.
  6355. for ac_exec_ext in '' $ac_executable_extensions; do
  6356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6357. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6359. break 2
  6360. fi
  6361. done
  6362. done
  6363. IFS=$as_save_IFS
  6364. fi
  6365. fi
  6366. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6367. if test -n "$ac_ct_NMEDIT"; then
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6369. $as_echo "$ac_ct_NMEDIT" >&6; }
  6370. else
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6372. $as_echo "no" >&6; }
  6373. fi
  6374. if test "x$ac_ct_NMEDIT" = x; then
  6375. NMEDIT=":"
  6376. else
  6377. case $cross_compiling:$ac_tool_warned in
  6378. yes:)
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6381. ac_tool_warned=yes ;;
  6382. esac
  6383. NMEDIT=$ac_ct_NMEDIT
  6384. fi
  6385. else
  6386. NMEDIT="$ac_cv_prog_NMEDIT"
  6387. fi
  6388. if test -n "$ac_tool_prefix"; then
  6389. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6390. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6392. $as_echo_n "checking for $ac_word... " >&6; }
  6393. if ${ac_cv_prog_LIPO+:} false; then :
  6394. $as_echo_n "(cached) " >&6
  6395. else
  6396. if test -n "$LIPO"; then
  6397. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6398. else
  6399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6400. for as_dir in $PATH
  6401. do
  6402. IFS=$as_save_IFS
  6403. test -z "$as_dir" && as_dir=.
  6404. for ac_exec_ext in '' $ac_executable_extensions; do
  6405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6406. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6408. break 2
  6409. fi
  6410. done
  6411. done
  6412. IFS=$as_save_IFS
  6413. fi
  6414. fi
  6415. LIPO=$ac_cv_prog_LIPO
  6416. if test -n "$LIPO"; then
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6418. $as_echo "$LIPO" >&6; }
  6419. else
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6421. $as_echo "no" >&6; }
  6422. fi
  6423. fi
  6424. if test -z "$ac_cv_prog_LIPO"; then
  6425. ac_ct_LIPO=$LIPO
  6426. # Extract the first word of "lipo", so it can be a program name with args.
  6427. set dummy lipo; ac_word=$2
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6429. $as_echo_n "checking for $ac_word... " >&6; }
  6430. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6431. $as_echo_n "(cached) " >&6
  6432. else
  6433. if test -n "$ac_ct_LIPO"; then
  6434. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6435. else
  6436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6437. for as_dir in $PATH
  6438. do
  6439. IFS=$as_save_IFS
  6440. test -z "$as_dir" && as_dir=.
  6441. for ac_exec_ext in '' $ac_executable_extensions; do
  6442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6443. ac_cv_prog_ac_ct_LIPO="lipo"
  6444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6445. break 2
  6446. fi
  6447. done
  6448. done
  6449. IFS=$as_save_IFS
  6450. fi
  6451. fi
  6452. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6453. if test -n "$ac_ct_LIPO"; then
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6455. $as_echo "$ac_ct_LIPO" >&6; }
  6456. else
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6458. $as_echo "no" >&6; }
  6459. fi
  6460. if test "x$ac_ct_LIPO" = x; then
  6461. LIPO=":"
  6462. else
  6463. case $cross_compiling:$ac_tool_warned in
  6464. yes:)
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6466. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6467. ac_tool_warned=yes ;;
  6468. esac
  6469. LIPO=$ac_ct_LIPO
  6470. fi
  6471. else
  6472. LIPO="$ac_cv_prog_LIPO"
  6473. fi
  6474. if test -n "$ac_tool_prefix"; then
  6475. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6476. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6478. $as_echo_n "checking for $ac_word... " >&6; }
  6479. if ${ac_cv_prog_OTOOL+:} false; then :
  6480. $as_echo_n "(cached) " >&6
  6481. else
  6482. if test -n "$OTOOL"; then
  6483. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6484. else
  6485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6486. for as_dir in $PATH
  6487. do
  6488. IFS=$as_save_IFS
  6489. test -z "$as_dir" && as_dir=.
  6490. for ac_exec_ext in '' $ac_executable_extensions; do
  6491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6492. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6494. break 2
  6495. fi
  6496. done
  6497. done
  6498. IFS=$as_save_IFS
  6499. fi
  6500. fi
  6501. OTOOL=$ac_cv_prog_OTOOL
  6502. if test -n "$OTOOL"; then
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6504. $as_echo "$OTOOL" >&6; }
  6505. else
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6507. $as_echo "no" >&6; }
  6508. fi
  6509. fi
  6510. if test -z "$ac_cv_prog_OTOOL"; then
  6511. ac_ct_OTOOL=$OTOOL
  6512. # Extract the first word of "otool", so it can be a program name with args.
  6513. set dummy otool; ac_word=$2
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6515. $as_echo_n "checking for $ac_word... " >&6; }
  6516. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6517. $as_echo_n "(cached) " >&6
  6518. else
  6519. if test -n "$ac_ct_OTOOL"; then
  6520. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6521. else
  6522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6523. for as_dir in $PATH
  6524. do
  6525. IFS=$as_save_IFS
  6526. test -z "$as_dir" && as_dir=.
  6527. for ac_exec_ext in '' $ac_executable_extensions; do
  6528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6529. ac_cv_prog_ac_ct_OTOOL="otool"
  6530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6531. break 2
  6532. fi
  6533. done
  6534. done
  6535. IFS=$as_save_IFS
  6536. fi
  6537. fi
  6538. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6539. if test -n "$ac_ct_OTOOL"; then
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6541. $as_echo "$ac_ct_OTOOL" >&6; }
  6542. else
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6544. $as_echo "no" >&6; }
  6545. fi
  6546. if test "x$ac_ct_OTOOL" = x; then
  6547. OTOOL=":"
  6548. else
  6549. case $cross_compiling:$ac_tool_warned in
  6550. yes:)
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6552. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6553. ac_tool_warned=yes ;;
  6554. esac
  6555. OTOOL=$ac_ct_OTOOL
  6556. fi
  6557. else
  6558. OTOOL="$ac_cv_prog_OTOOL"
  6559. fi
  6560. if test -n "$ac_tool_prefix"; then
  6561. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6562. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6564. $as_echo_n "checking for $ac_word... " >&6; }
  6565. if ${ac_cv_prog_OTOOL64+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. if test -n "$OTOOL64"; then
  6569. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6570. else
  6571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6572. for as_dir in $PATH
  6573. do
  6574. IFS=$as_save_IFS
  6575. test -z "$as_dir" && as_dir=.
  6576. for ac_exec_ext in '' $ac_executable_extensions; do
  6577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6578. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6580. break 2
  6581. fi
  6582. done
  6583. done
  6584. IFS=$as_save_IFS
  6585. fi
  6586. fi
  6587. OTOOL64=$ac_cv_prog_OTOOL64
  6588. if test -n "$OTOOL64"; then
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6590. $as_echo "$OTOOL64" >&6; }
  6591. else
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6593. $as_echo "no" >&6; }
  6594. fi
  6595. fi
  6596. if test -z "$ac_cv_prog_OTOOL64"; then
  6597. ac_ct_OTOOL64=$OTOOL64
  6598. # Extract the first word of "otool64", so it can be a program name with args.
  6599. set dummy otool64; ac_word=$2
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6601. $as_echo_n "checking for $ac_word... " >&6; }
  6602. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. if test -n "$ac_ct_OTOOL64"; then
  6606. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6607. else
  6608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6609. for as_dir in $PATH
  6610. do
  6611. IFS=$as_save_IFS
  6612. test -z "$as_dir" && as_dir=.
  6613. for ac_exec_ext in '' $ac_executable_extensions; do
  6614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6615. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6617. break 2
  6618. fi
  6619. done
  6620. done
  6621. IFS=$as_save_IFS
  6622. fi
  6623. fi
  6624. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6625. if test -n "$ac_ct_OTOOL64"; then
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6627. $as_echo "$ac_ct_OTOOL64" >&6; }
  6628. else
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6630. $as_echo "no" >&6; }
  6631. fi
  6632. if test "x$ac_ct_OTOOL64" = x; then
  6633. OTOOL64=":"
  6634. else
  6635. case $cross_compiling:$ac_tool_warned in
  6636. yes:)
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6639. ac_tool_warned=yes ;;
  6640. esac
  6641. OTOOL64=$ac_ct_OTOOL64
  6642. fi
  6643. else
  6644. OTOOL64="$ac_cv_prog_OTOOL64"
  6645. fi
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6647. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6648. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. lt_cv_apple_cc_single_mod=no
  6652. if test -z "${LT_MULTI_MODULE}"; then
  6653. # By default we will add the -single_module flag. You can override
  6654. # by either setting the environment variable LT_MULTI_MODULE
  6655. # non-empty at configure time, or by adding -multi_module to the
  6656. # link flags.
  6657. rm -rf libconftest.dylib*
  6658. echo "int foo(void){return 1;}" > conftest.c
  6659. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6660. -dynamiclib -Wl,-single_module conftest.c" >&5
  6661. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6662. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6663. _lt_result=$?
  6664. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6665. lt_cv_apple_cc_single_mod=yes
  6666. else
  6667. cat conftest.err >&5
  6668. fi
  6669. rm -rf libconftest.dylib*
  6670. rm -f conftest.*
  6671. fi
  6672. fi
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6674. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6676. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6677. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6678. $as_echo_n "(cached) " >&6
  6679. else
  6680. lt_cv_ld_exported_symbols_list=no
  6681. save_LDFLAGS=$LDFLAGS
  6682. echo "_main" > conftest.sym
  6683. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6685. /* end confdefs.h. */
  6686. int
  6687. main ()
  6688. {
  6689. ;
  6690. return 0;
  6691. }
  6692. _ACEOF
  6693. if ac_fn_c_try_link "$LINENO"; then :
  6694. lt_cv_ld_exported_symbols_list=yes
  6695. else
  6696. lt_cv_ld_exported_symbols_list=no
  6697. fi
  6698. rm -f core conftest.err conftest.$ac_objext \
  6699. conftest$ac_exeext conftest.$ac_ext
  6700. LDFLAGS="$save_LDFLAGS"
  6701. fi
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6703. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6705. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6706. if ${lt_cv_ld_force_load+:} false; then :
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. lt_cv_ld_force_load=no
  6710. cat > conftest.c << _LT_EOF
  6711. int forced_loaded() { return 2;}
  6712. _LT_EOF
  6713. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6714. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6715. echo "$AR cru libconftest.a conftest.o" >&5
  6716. $AR cru libconftest.a conftest.o 2>&5
  6717. cat > conftest.c << _LT_EOF
  6718. int main() { return 0;}
  6719. _LT_EOF
  6720. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6721. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6722. _lt_result=$?
  6723. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6724. lt_cv_ld_force_load=yes
  6725. else
  6726. cat conftest.err >&5
  6727. fi
  6728. rm -f conftest.err libconftest.a conftest conftest.c
  6729. rm -rf conftest.dSYM
  6730. fi
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6732. $as_echo "$lt_cv_ld_force_load" >&6; }
  6733. case $host_os in
  6734. rhapsody* | darwin1.[012])
  6735. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6736. darwin1.*)
  6737. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6738. darwin*) # darwin 5.x on
  6739. # if running on 10.5 or later, the deployment target defaults
  6740. # to the OS version, if on x86, and 10.4, the deployment
  6741. # target defaults to 10.4. Don't you love it?
  6742. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6743. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6744. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6745. 10.[012][,.]*)
  6746. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6747. 10.*)
  6748. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6749. esac
  6750. ;;
  6751. esac
  6752. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6753. _lt_dar_single_mod='$single_module'
  6754. fi
  6755. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6756. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6757. else
  6758. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6759. fi
  6760. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6761. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6762. else
  6763. _lt_dsymutil=
  6764. fi
  6765. ;;
  6766. esac
  6767. for ac_header in dlfcn.h
  6768. do :
  6769. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6770. "
  6771. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6772. cat >>confdefs.h <<_ACEOF
  6773. #define HAVE_DLFCN_H 1
  6774. _ACEOF
  6775. fi
  6776. done
  6777. # Set options
  6778. enable_dlopen=yes
  6779. enable_win32_dll=no
  6780. # Check whether --enable-static was given.
  6781. if test "${enable_static+set}" = set; then :
  6782. enableval=$enable_static; p=${PACKAGE-default}
  6783. case $enableval in
  6784. yes) enable_static=yes ;;
  6785. no) enable_static=no ;;
  6786. *)
  6787. enable_static=no
  6788. # Look at the argument we got. We use all the common list separators.
  6789. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6790. for pkg in $enableval; do
  6791. IFS="$lt_save_ifs"
  6792. if test "X$pkg" = "X$p"; then
  6793. enable_static=yes
  6794. fi
  6795. done
  6796. IFS="$lt_save_ifs"
  6797. ;;
  6798. esac
  6799. else
  6800. enable_static=yes
  6801. fi
  6802. # Check whether --with-pic was given.
  6803. if test "${with_pic+set}" = set; then :
  6804. withval=$with_pic; pic_mode="$withval"
  6805. else
  6806. pic_mode=default
  6807. fi
  6808. test -z "$pic_mode" && pic_mode=default
  6809. # Check whether --enable-fast-install was given.
  6810. if test "${enable_fast_install+set}" = set; then :
  6811. enableval=$enable_fast_install; p=${PACKAGE-default}
  6812. case $enableval in
  6813. yes) enable_fast_install=yes ;;
  6814. no) enable_fast_install=no ;;
  6815. *)
  6816. enable_fast_install=no
  6817. # Look at the argument we got. We use all the common list separators.
  6818. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6819. for pkg in $enableval; do
  6820. IFS="$lt_save_ifs"
  6821. if test "X$pkg" = "X$p"; then
  6822. enable_fast_install=yes
  6823. fi
  6824. done
  6825. IFS="$lt_save_ifs"
  6826. ;;
  6827. esac
  6828. else
  6829. enable_fast_install=yes
  6830. fi
  6831. # This can be used to rebuild libtool when needed
  6832. LIBTOOL_DEPS="$ltmain"
  6833. # Always use our own libtool.
  6834. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6835. test -z "$LN_S" && LN_S="ln -s"
  6836. if test -n "${ZSH_VERSION+set}" ; then
  6837. setopt NO_GLOB_SUBST
  6838. fi
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6840. $as_echo_n "checking for objdir... " >&6; }
  6841. if ${lt_cv_objdir+:} false; then :
  6842. $as_echo_n "(cached) " >&6
  6843. else
  6844. rm -f .libs 2>/dev/null
  6845. mkdir .libs 2>/dev/null
  6846. if test -d .libs; then
  6847. lt_cv_objdir=.libs
  6848. else
  6849. # MS-DOS does not allow filenames that begin with a dot.
  6850. lt_cv_objdir=_libs
  6851. fi
  6852. rmdir .libs 2>/dev/null
  6853. fi
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6855. $as_echo "$lt_cv_objdir" >&6; }
  6856. objdir=$lt_cv_objdir
  6857. cat >>confdefs.h <<_ACEOF
  6858. #define LT_OBJDIR "$lt_cv_objdir/"
  6859. _ACEOF
  6860. case $host_os in
  6861. aix3*)
  6862. # AIX sometimes has problems with the GCC collect2 program. For some
  6863. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6864. # vanish in a puff of smoke.
  6865. if test "X${COLLECT_NAMES+set}" != Xset; then
  6866. COLLECT_NAMES=
  6867. export COLLECT_NAMES
  6868. fi
  6869. ;;
  6870. esac
  6871. # Global variables:
  6872. ofile=libtool
  6873. can_build_shared=yes
  6874. # All known linkers require a `.a' archive for static linking (except MSVC,
  6875. # which needs '.lib').
  6876. libext=a
  6877. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6878. old_CC="$CC"
  6879. old_CFLAGS="$CFLAGS"
  6880. # Set sane defaults for various variables
  6881. test -z "$CC" && CC=cc
  6882. test -z "$LTCC" && LTCC=$CC
  6883. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6884. test -z "$LD" && LD=ld
  6885. test -z "$ac_objext" && ac_objext=o
  6886. for cc_temp in $compiler""; do
  6887. case $cc_temp in
  6888. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6889. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6890. \-*) ;;
  6891. *) break;;
  6892. esac
  6893. done
  6894. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6895. # Only perform the check for file, if the check method requires it
  6896. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6897. case $deplibs_check_method in
  6898. file_magic*)
  6899. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6901. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6902. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6903. $as_echo_n "(cached) " >&6
  6904. else
  6905. case $MAGIC_CMD in
  6906. [\\/*] | ?:[\\/]*)
  6907. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6908. ;;
  6909. *)
  6910. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6911. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6912. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6913. for ac_dir in $ac_dummy; do
  6914. IFS="$lt_save_ifs"
  6915. test -z "$ac_dir" && ac_dir=.
  6916. if test -f $ac_dir/${ac_tool_prefix}file; then
  6917. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6918. if test -n "$file_magic_test_file"; then
  6919. case $deplibs_check_method in
  6920. "file_magic "*)
  6921. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6922. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6923. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6924. $EGREP "$file_magic_regex" > /dev/null; then
  6925. :
  6926. else
  6927. cat <<_LT_EOF 1>&2
  6928. *** Warning: the command libtool uses to detect shared libraries,
  6929. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6930. *** The result is that libtool may fail to recognize shared libraries
  6931. *** as such. This will affect the creation of libtool libraries that
  6932. *** depend on shared libraries, but programs linked with such libtool
  6933. *** libraries will work regardless of this problem. Nevertheless, you
  6934. *** may want to report the problem to your system manager and/or to
  6935. *** bug-libtool@gnu.org
  6936. _LT_EOF
  6937. fi ;;
  6938. esac
  6939. fi
  6940. break
  6941. fi
  6942. done
  6943. IFS="$lt_save_ifs"
  6944. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6945. ;;
  6946. esac
  6947. fi
  6948. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6949. if test -n "$MAGIC_CMD"; then
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6951. $as_echo "$MAGIC_CMD" >&6; }
  6952. else
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6954. $as_echo "no" >&6; }
  6955. fi
  6956. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6957. if test -n "$ac_tool_prefix"; then
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6959. $as_echo_n "checking for file... " >&6; }
  6960. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6961. $as_echo_n "(cached) " >&6
  6962. else
  6963. case $MAGIC_CMD in
  6964. [\\/*] | ?:[\\/]*)
  6965. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6966. ;;
  6967. *)
  6968. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6969. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6970. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6971. for ac_dir in $ac_dummy; do
  6972. IFS="$lt_save_ifs"
  6973. test -z "$ac_dir" && ac_dir=.
  6974. if test -f $ac_dir/file; then
  6975. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6976. if test -n "$file_magic_test_file"; then
  6977. case $deplibs_check_method in
  6978. "file_magic "*)
  6979. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6980. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6981. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6982. $EGREP "$file_magic_regex" > /dev/null; then
  6983. :
  6984. else
  6985. cat <<_LT_EOF 1>&2
  6986. *** Warning: the command libtool uses to detect shared libraries,
  6987. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6988. *** The result is that libtool may fail to recognize shared libraries
  6989. *** as such. This will affect the creation of libtool libraries that
  6990. *** depend on shared libraries, but programs linked with such libtool
  6991. *** libraries will work regardless of this problem. Nevertheless, you
  6992. *** may want to report the problem to your system manager and/or to
  6993. *** bug-libtool@gnu.org
  6994. _LT_EOF
  6995. fi ;;
  6996. esac
  6997. fi
  6998. break
  6999. fi
  7000. done
  7001. IFS="$lt_save_ifs"
  7002. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7003. ;;
  7004. esac
  7005. fi
  7006. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7007. if test -n "$MAGIC_CMD"; then
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7009. $as_echo "$MAGIC_CMD" >&6; }
  7010. else
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7012. $as_echo "no" >&6; }
  7013. fi
  7014. else
  7015. MAGIC_CMD=:
  7016. fi
  7017. fi
  7018. fi
  7019. ;;
  7020. esac
  7021. # Use C for the default configuration in the libtool script
  7022. lt_save_CC="$CC"
  7023. ac_ext=c
  7024. ac_cpp='$CPP $CPPFLAGS'
  7025. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7026. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7027. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7028. # Source file extension for C test sources.
  7029. ac_ext=c
  7030. # Object file extension for compiled C test sources.
  7031. objext=o
  7032. objext=$objext
  7033. # Code to be used in simple compile tests
  7034. lt_simple_compile_test_code="int some_variable = 0;"
  7035. # Code to be used in simple link tests
  7036. lt_simple_link_test_code='int main(){return(0);}'
  7037. # If no C compiler was specified, use CC.
  7038. LTCC=${LTCC-"$CC"}
  7039. # If no C compiler flags were specified, use CFLAGS.
  7040. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7041. # Allow CC to be a program name with arguments.
  7042. compiler=$CC
  7043. # Save the default compiler, since it gets overwritten when the other
  7044. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7045. compiler_DEFAULT=$CC
  7046. # save warnings/boilerplate of simple test code
  7047. ac_outfile=conftest.$ac_objext
  7048. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7049. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7050. _lt_compiler_boilerplate=`cat conftest.err`
  7051. $RM conftest*
  7052. ac_outfile=conftest.$ac_objext
  7053. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7054. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7055. _lt_linker_boilerplate=`cat conftest.err`
  7056. $RM -r conftest*
  7057. ## CAVEAT EMPTOR:
  7058. ## There is no encapsulation within the following macros, do not change
  7059. ## the running order or otherwise move them around unless you know exactly
  7060. ## what you are doing...
  7061. if test -n "$compiler"; then
  7062. lt_prog_compiler_no_builtin_flag=
  7063. if test "$GCC" = yes; then
  7064. case $cc_basename in
  7065. nvcc*)
  7066. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7067. *)
  7068. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7069. esac
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7071. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7072. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7073. $as_echo_n "(cached) " >&6
  7074. else
  7075. lt_cv_prog_compiler_rtti_exceptions=no
  7076. ac_outfile=conftest.$ac_objext
  7077. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7078. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7079. # Insert the option either (1) after the last *FLAGS variable, or
  7080. # (2) before a word containing "conftest.", or (3) at the end.
  7081. # Note that $ac_compile itself does not contain backslashes and begins
  7082. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7083. # The option is referenced via a variable to avoid confusing sed.
  7084. lt_compile=`echo "$ac_compile" | $SED \
  7085. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7086. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7087. -e 's:$: $lt_compiler_flag:'`
  7088. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7089. (eval "$lt_compile" 2>conftest.err)
  7090. ac_status=$?
  7091. cat conftest.err >&5
  7092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7093. if (exit $ac_status) && test -s "$ac_outfile"; then
  7094. # The compiler can only warn and ignore the option if not recognized
  7095. # So say no if there are warnings other than the usual output.
  7096. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7097. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7098. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7099. lt_cv_prog_compiler_rtti_exceptions=yes
  7100. fi
  7101. fi
  7102. $RM conftest*
  7103. fi
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7105. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7106. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7107. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7108. else
  7109. :
  7110. fi
  7111. fi
  7112. lt_prog_compiler_wl=
  7113. lt_prog_compiler_pic=
  7114. lt_prog_compiler_static=
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7116. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7117. if test "$GCC" = yes; then
  7118. lt_prog_compiler_wl='-Wl,'
  7119. lt_prog_compiler_static='-static'
  7120. case $host_os in
  7121. aix*)
  7122. # All AIX code is PIC.
  7123. if test "$host_cpu" = ia64; then
  7124. # AIX 5 now supports IA64 processor
  7125. lt_prog_compiler_static='-Bstatic'
  7126. fi
  7127. lt_prog_compiler_pic='-fPIC'
  7128. ;;
  7129. amigaos*)
  7130. case $host_cpu in
  7131. powerpc)
  7132. # see comment about AmigaOS4 .so support
  7133. lt_prog_compiler_pic='-fPIC'
  7134. ;;
  7135. m68k)
  7136. # FIXME: we need at least 68020 code to build shared libraries, but
  7137. # adding the `-m68020' flag to GCC prevents building anything better,
  7138. # like `-m68040'.
  7139. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7140. ;;
  7141. esac
  7142. ;;
  7143. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7144. # PIC is the default for these OSes.
  7145. ;;
  7146. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7147. # This hack is so that the source file can tell whether it is being
  7148. # built for inclusion in a dll (and should export symbols for example).
  7149. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7150. # (--disable-auto-import) libraries
  7151. lt_prog_compiler_pic='-DDLL_EXPORT'
  7152. ;;
  7153. darwin* | rhapsody*)
  7154. # PIC is the default on this platform
  7155. # Common symbols not allowed in MH_DYLIB files
  7156. lt_prog_compiler_pic='-fno-common'
  7157. ;;
  7158. haiku*)
  7159. # PIC is the default for Haiku.
  7160. # The "-static" flag exists, but is broken.
  7161. lt_prog_compiler_static=
  7162. ;;
  7163. hpux*)
  7164. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7165. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7166. # sets the default TLS model and affects inlining.
  7167. case $host_cpu in
  7168. hppa*64*)
  7169. # +Z the default
  7170. ;;
  7171. *)
  7172. lt_prog_compiler_pic='-fPIC'
  7173. ;;
  7174. esac
  7175. ;;
  7176. interix[3-9]*)
  7177. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7178. # Instead, we relocate shared libraries at runtime.
  7179. ;;
  7180. msdosdjgpp*)
  7181. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7182. # on systems that don't support them.
  7183. lt_prog_compiler_can_build_shared=no
  7184. enable_shared=no
  7185. ;;
  7186. *nto* | *qnx*)
  7187. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7188. # it will coredump.
  7189. lt_prog_compiler_pic='-fPIC -shared'
  7190. ;;
  7191. sysv4*MP*)
  7192. if test -d /usr/nec; then
  7193. lt_prog_compiler_pic=-Kconform_pic
  7194. fi
  7195. ;;
  7196. *)
  7197. lt_prog_compiler_pic='-fPIC'
  7198. ;;
  7199. esac
  7200. case $cc_basename in
  7201. nvcc*) # Cuda Compiler Driver 2.2
  7202. lt_prog_compiler_wl='-Xlinker '
  7203. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7204. ;;
  7205. esac
  7206. else
  7207. # PORTME Check for flag to pass linker flags through the system compiler.
  7208. case $host_os in
  7209. aix*)
  7210. lt_prog_compiler_wl='-Wl,'
  7211. if test "$host_cpu" = ia64; then
  7212. # AIX 5 now supports IA64 processor
  7213. lt_prog_compiler_static='-Bstatic'
  7214. else
  7215. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7216. fi
  7217. ;;
  7218. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7219. # This hack is so that the source file can tell whether it is being
  7220. # built for inclusion in a dll (and should export symbols for example).
  7221. lt_prog_compiler_pic='-DDLL_EXPORT'
  7222. ;;
  7223. hpux9* | hpux10* | hpux11*)
  7224. lt_prog_compiler_wl='-Wl,'
  7225. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7226. # not for PA HP-UX.
  7227. case $host_cpu in
  7228. hppa*64*|ia64*)
  7229. # +Z the default
  7230. ;;
  7231. *)
  7232. lt_prog_compiler_pic='+Z'
  7233. ;;
  7234. esac
  7235. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7236. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7237. ;;
  7238. irix5* | irix6* | nonstopux*)
  7239. lt_prog_compiler_wl='-Wl,'
  7240. # PIC (with -KPIC) is the default.
  7241. lt_prog_compiler_static='-non_shared'
  7242. ;;
  7243. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7244. case $cc_basename in
  7245. # old Intel for x86_64 which still supported -KPIC.
  7246. ecc*)
  7247. lt_prog_compiler_wl='-Wl,'
  7248. lt_prog_compiler_pic='-KPIC'
  7249. lt_prog_compiler_static='-static'
  7250. ;;
  7251. # icc used to be incompatible with GCC.
  7252. # ICC 10 doesn't accept -KPIC any more.
  7253. icc* | ifort*)
  7254. lt_prog_compiler_wl='-Wl,'
  7255. lt_prog_compiler_pic='-fPIC'
  7256. lt_prog_compiler_static='-static'
  7257. ;;
  7258. # Lahey Fortran 8.1.
  7259. lf95*)
  7260. lt_prog_compiler_wl='-Wl,'
  7261. lt_prog_compiler_pic='--shared'
  7262. lt_prog_compiler_static='--static'
  7263. ;;
  7264. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7265. # Portland Group compilers (*not* the Pentium gcc compiler,
  7266. # which looks to be a dead project)
  7267. lt_prog_compiler_wl='-Wl,'
  7268. lt_prog_compiler_pic='-fpic'
  7269. lt_prog_compiler_static='-Bstatic'
  7270. ;;
  7271. ccc*)
  7272. lt_prog_compiler_wl='-Wl,'
  7273. # All Alpha code is PIC.
  7274. lt_prog_compiler_static='-non_shared'
  7275. ;;
  7276. xl* | bgxl* | bgf* | mpixl*)
  7277. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7278. lt_prog_compiler_wl='-Wl,'
  7279. lt_prog_compiler_pic='-qpic'
  7280. lt_prog_compiler_static='-qstaticlink'
  7281. ;;
  7282. *)
  7283. case `$CC -V 2>&1 | sed 5q` in
  7284. *Sun\ F* | *Sun*Fortran*)
  7285. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7286. lt_prog_compiler_pic='-KPIC'
  7287. lt_prog_compiler_static='-Bstatic'
  7288. lt_prog_compiler_wl=''
  7289. ;;
  7290. *Sun\ C*)
  7291. # Sun C 5.9
  7292. lt_prog_compiler_pic='-KPIC'
  7293. lt_prog_compiler_static='-Bstatic'
  7294. lt_prog_compiler_wl='-Wl,'
  7295. ;;
  7296. esac
  7297. ;;
  7298. esac
  7299. ;;
  7300. newsos6)
  7301. lt_prog_compiler_pic='-KPIC'
  7302. lt_prog_compiler_static='-Bstatic'
  7303. ;;
  7304. *nto* | *qnx*)
  7305. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7306. # it will coredump.
  7307. lt_prog_compiler_pic='-fPIC -shared'
  7308. ;;
  7309. osf3* | osf4* | osf5*)
  7310. lt_prog_compiler_wl='-Wl,'
  7311. # All OSF/1 code is PIC.
  7312. lt_prog_compiler_static='-non_shared'
  7313. ;;
  7314. rdos*)
  7315. lt_prog_compiler_static='-non_shared'
  7316. ;;
  7317. solaris*)
  7318. lt_prog_compiler_pic='-KPIC'
  7319. lt_prog_compiler_static='-Bstatic'
  7320. case $cc_basename in
  7321. f77* | f90* | f95*)
  7322. lt_prog_compiler_wl='-Qoption ld ';;
  7323. *)
  7324. lt_prog_compiler_wl='-Wl,';;
  7325. esac
  7326. ;;
  7327. sunos4*)
  7328. lt_prog_compiler_wl='-Qoption ld '
  7329. lt_prog_compiler_pic='-PIC'
  7330. lt_prog_compiler_static='-Bstatic'
  7331. ;;
  7332. sysv4 | sysv4.2uw2* | sysv4.3*)
  7333. lt_prog_compiler_wl='-Wl,'
  7334. lt_prog_compiler_pic='-KPIC'
  7335. lt_prog_compiler_static='-Bstatic'
  7336. ;;
  7337. sysv4*MP*)
  7338. if test -d /usr/nec ;then
  7339. lt_prog_compiler_pic='-Kconform_pic'
  7340. lt_prog_compiler_static='-Bstatic'
  7341. fi
  7342. ;;
  7343. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7344. lt_prog_compiler_wl='-Wl,'
  7345. lt_prog_compiler_pic='-KPIC'
  7346. lt_prog_compiler_static='-Bstatic'
  7347. ;;
  7348. unicos*)
  7349. lt_prog_compiler_wl='-Wl,'
  7350. lt_prog_compiler_can_build_shared=no
  7351. ;;
  7352. uts4*)
  7353. lt_prog_compiler_pic='-pic'
  7354. lt_prog_compiler_static='-Bstatic'
  7355. ;;
  7356. *)
  7357. lt_prog_compiler_can_build_shared=no
  7358. ;;
  7359. esac
  7360. fi
  7361. case $host_os in
  7362. # For platforms which do not support PIC, -DPIC is meaningless:
  7363. *djgpp*)
  7364. lt_prog_compiler_pic=
  7365. ;;
  7366. *)
  7367. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7368. ;;
  7369. esac
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7371. $as_echo "$lt_prog_compiler_pic" >&6; }
  7372. #
  7373. # Check to make sure the PIC flag actually works.
  7374. #
  7375. if test -n "$lt_prog_compiler_pic"; then
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7377. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7378. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. lt_cv_prog_compiler_pic_works=no
  7382. ac_outfile=conftest.$ac_objext
  7383. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7384. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7385. # Insert the option either (1) after the last *FLAGS variable, or
  7386. # (2) before a word containing "conftest.", or (3) at the end.
  7387. # Note that $ac_compile itself does not contain backslashes and begins
  7388. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7389. # The option is referenced via a variable to avoid confusing sed.
  7390. lt_compile=`echo "$ac_compile" | $SED \
  7391. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7392. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7393. -e 's:$: $lt_compiler_flag:'`
  7394. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7395. (eval "$lt_compile" 2>conftest.err)
  7396. ac_status=$?
  7397. cat conftest.err >&5
  7398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7399. if (exit $ac_status) && test -s "$ac_outfile"; then
  7400. # The compiler can only warn and ignore the option if not recognized
  7401. # So say no if there are warnings other than the usual output.
  7402. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7403. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7404. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7405. lt_cv_prog_compiler_pic_works=yes
  7406. fi
  7407. fi
  7408. $RM conftest*
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7411. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7412. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7413. case $lt_prog_compiler_pic in
  7414. "" | " "*) ;;
  7415. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7416. esac
  7417. else
  7418. lt_prog_compiler_pic=
  7419. lt_prog_compiler_can_build_shared=no
  7420. fi
  7421. fi
  7422. #
  7423. # Check to make sure the static flag actually works.
  7424. #
  7425. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7427. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7428. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7429. $as_echo_n "(cached) " >&6
  7430. else
  7431. lt_cv_prog_compiler_static_works=no
  7432. save_LDFLAGS="$LDFLAGS"
  7433. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7434. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7435. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7436. # The linker can only warn and ignore the option if not recognized
  7437. # So say no if there are warnings
  7438. if test -s conftest.err; then
  7439. # Append any errors to the config.log.
  7440. cat conftest.err 1>&5
  7441. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7442. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7443. if diff conftest.exp conftest.er2 >/dev/null; then
  7444. lt_cv_prog_compiler_static_works=yes
  7445. fi
  7446. else
  7447. lt_cv_prog_compiler_static_works=yes
  7448. fi
  7449. fi
  7450. $RM -r conftest*
  7451. LDFLAGS="$save_LDFLAGS"
  7452. fi
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7454. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7455. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7456. :
  7457. else
  7458. lt_prog_compiler_static=
  7459. fi
  7460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7461. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7462. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7463. $as_echo_n "(cached) " >&6
  7464. else
  7465. lt_cv_prog_compiler_c_o=no
  7466. $RM -r conftest 2>/dev/null
  7467. mkdir conftest
  7468. cd conftest
  7469. mkdir out
  7470. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7471. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7472. # Insert the option either (1) after the last *FLAGS variable, or
  7473. # (2) before a word containing "conftest.", or (3) at the end.
  7474. # Note that $ac_compile itself does not contain backslashes and begins
  7475. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7476. lt_compile=`echo "$ac_compile" | $SED \
  7477. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7478. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7479. -e 's:$: $lt_compiler_flag:'`
  7480. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7481. (eval "$lt_compile" 2>out/conftest.err)
  7482. ac_status=$?
  7483. cat out/conftest.err >&5
  7484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7485. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7486. then
  7487. # The compiler can only warn and ignore the option if not recognized
  7488. # So say no if there are warnings
  7489. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7490. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7491. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7492. lt_cv_prog_compiler_c_o=yes
  7493. fi
  7494. fi
  7495. chmod u+w . 2>&5
  7496. $RM conftest*
  7497. # SGI C++ compiler will create directory out/ii_files/ for
  7498. # template instantiation
  7499. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7500. $RM out/* && rmdir out
  7501. cd ..
  7502. $RM -r conftest
  7503. $RM conftest*
  7504. fi
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7506. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7508. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7509. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7510. $as_echo_n "(cached) " >&6
  7511. else
  7512. lt_cv_prog_compiler_c_o=no
  7513. $RM -r conftest 2>/dev/null
  7514. mkdir conftest
  7515. cd conftest
  7516. mkdir out
  7517. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7518. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7519. # Insert the option either (1) after the last *FLAGS variable, or
  7520. # (2) before a word containing "conftest.", or (3) at the end.
  7521. # Note that $ac_compile itself does not contain backslashes and begins
  7522. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7523. lt_compile=`echo "$ac_compile" | $SED \
  7524. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7525. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7526. -e 's:$: $lt_compiler_flag:'`
  7527. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7528. (eval "$lt_compile" 2>out/conftest.err)
  7529. ac_status=$?
  7530. cat out/conftest.err >&5
  7531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7532. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7533. then
  7534. # The compiler can only warn and ignore the option if not recognized
  7535. # So say no if there are warnings
  7536. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7537. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7538. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7539. lt_cv_prog_compiler_c_o=yes
  7540. fi
  7541. fi
  7542. chmod u+w . 2>&5
  7543. $RM conftest*
  7544. # SGI C++ compiler will create directory out/ii_files/ for
  7545. # template instantiation
  7546. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7547. $RM out/* && rmdir out
  7548. cd ..
  7549. $RM -r conftest
  7550. $RM conftest*
  7551. fi
  7552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7553. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7554. hard_links="nottested"
  7555. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7556. # do not overwrite the value of need_locks provided by the user
  7557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7558. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7559. hard_links=yes
  7560. $RM conftest*
  7561. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7562. touch conftest.a
  7563. ln conftest.a conftest.b 2>&5 || hard_links=no
  7564. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7566. $as_echo "$hard_links" >&6; }
  7567. if test "$hard_links" = no; then
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7569. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7570. need_locks=warn
  7571. fi
  7572. else
  7573. need_locks=no
  7574. fi
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7576. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7577. runpath_var=
  7578. allow_undefined_flag=
  7579. always_export_symbols=no
  7580. archive_cmds=
  7581. archive_expsym_cmds=
  7582. compiler_needs_object=no
  7583. enable_shared_with_static_runtimes=no
  7584. export_dynamic_flag_spec=
  7585. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7586. hardcode_automatic=no
  7587. hardcode_direct=no
  7588. hardcode_direct_absolute=no
  7589. hardcode_libdir_flag_spec=
  7590. hardcode_libdir_flag_spec_ld=
  7591. hardcode_libdir_separator=
  7592. hardcode_minus_L=no
  7593. hardcode_shlibpath_var=unsupported
  7594. inherit_rpath=no
  7595. link_all_deplibs=unknown
  7596. module_cmds=
  7597. module_expsym_cmds=
  7598. old_archive_from_new_cmds=
  7599. old_archive_from_expsyms_cmds=
  7600. thread_safe_flag_spec=
  7601. whole_archive_flag_spec=
  7602. # include_expsyms should be a list of space-separated symbols to be *always*
  7603. # included in the symbol list
  7604. include_expsyms=
  7605. # exclude_expsyms can be an extended regexp of symbols to exclude
  7606. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7607. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7608. # as well as any symbol that contains `d'.
  7609. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7610. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7611. # platforms (ab)use it in PIC code, but their linkers get confused if
  7612. # the symbol is explicitly referenced. Since portable code cannot
  7613. # rely on this symbol name, it's probably fine to never include it in
  7614. # preloaded symbol tables.
  7615. # Exclude shared library initialization/finalization symbols.
  7616. extract_expsyms_cmds=
  7617. case $host_os in
  7618. cygwin* | mingw* | pw32* | cegcc*)
  7619. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7620. # When not using gcc, we currently assume that we are using
  7621. # Microsoft Visual C++.
  7622. if test "$GCC" != yes; then
  7623. with_gnu_ld=no
  7624. fi
  7625. ;;
  7626. interix*)
  7627. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7628. with_gnu_ld=yes
  7629. ;;
  7630. openbsd*)
  7631. with_gnu_ld=no
  7632. ;;
  7633. esac
  7634. ld_shlibs=yes
  7635. # On some targets, GNU ld is compatible enough with the native linker
  7636. # that we're better off using the native interface for both.
  7637. lt_use_gnu_ld_interface=no
  7638. if test "$with_gnu_ld" = yes; then
  7639. case $host_os in
  7640. aix*)
  7641. # The AIX port of GNU ld has always aspired to compatibility
  7642. # with the native linker. However, as the warning in the GNU ld
  7643. # block says, versions before 2.19.5* couldn't really create working
  7644. # shared libraries, regardless of the interface used.
  7645. case `$LD -v 2>&1` in
  7646. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7647. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7648. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7649. *)
  7650. lt_use_gnu_ld_interface=yes
  7651. ;;
  7652. esac
  7653. ;;
  7654. *)
  7655. lt_use_gnu_ld_interface=yes
  7656. ;;
  7657. esac
  7658. fi
  7659. if test "$lt_use_gnu_ld_interface" = yes; then
  7660. # If archive_cmds runs LD, not CC, wlarc should be empty
  7661. wlarc='${wl}'
  7662. # Set some defaults for GNU ld with shared library support. These
  7663. # are reset later if shared libraries are not supported. Putting them
  7664. # here allows them to be overridden if necessary.
  7665. runpath_var=LD_RUN_PATH
  7666. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7667. export_dynamic_flag_spec='${wl}--export-dynamic'
  7668. # ancient GNU ld didn't support --whole-archive et. al.
  7669. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7670. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7671. else
  7672. whole_archive_flag_spec=
  7673. fi
  7674. supports_anon_versioning=no
  7675. case `$LD -v 2>&1` in
  7676. *GNU\ gold*) supports_anon_versioning=yes ;;
  7677. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7678. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7679. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7680. *\ 2.11.*) ;; # other 2.11 versions
  7681. *) supports_anon_versioning=yes ;;
  7682. esac
  7683. # See if GNU ld supports shared libraries.
  7684. case $host_os in
  7685. aix[3-9]*)
  7686. # On AIX/PPC, the GNU linker is very broken
  7687. if test "$host_cpu" != ia64; then
  7688. ld_shlibs=no
  7689. cat <<_LT_EOF 1>&2
  7690. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7691. *** to be unable to reliably create shared libraries on AIX.
  7692. *** Therefore, libtool is disabling shared libraries support. If you
  7693. *** really care for shared libraries, you may want to install binutils
  7694. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7695. *** You will then need to restart the configuration process.
  7696. _LT_EOF
  7697. fi
  7698. ;;
  7699. amigaos*)
  7700. case $host_cpu in
  7701. powerpc)
  7702. # see comment about AmigaOS4 .so support
  7703. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7704. archive_expsym_cmds=''
  7705. ;;
  7706. m68k)
  7707. 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)'
  7708. hardcode_libdir_flag_spec='-L$libdir'
  7709. hardcode_minus_L=yes
  7710. ;;
  7711. esac
  7712. ;;
  7713. beos*)
  7714. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7715. allow_undefined_flag=unsupported
  7716. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7717. # support --undefined. This deserves some investigation. FIXME
  7718. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7719. else
  7720. ld_shlibs=no
  7721. fi
  7722. ;;
  7723. cygwin* | mingw* | pw32* | cegcc*)
  7724. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7725. # as there is no search path for DLLs.
  7726. hardcode_libdir_flag_spec='-L$libdir'
  7727. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7728. allow_undefined_flag=unsupported
  7729. always_export_symbols=no
  7730. enable_shared_with_static_runtimes=yes
  7731. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7732. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7733. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7734. # If the export-symbols file already is a .def file (1st line
  7735. # is EXPORTS), use it as is; otherwise, prepend...
  7736. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7737. cp $export_symbols $output_objdir/$soname.def;
  7738. else
  7739. echo EXPORTS > $output_objdir/$soname.def;
  7740. cat $export_symbols >> $output_objdir/$soname.def;
  7741. fi~
  7742. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7743. else
  7744. ld_shlibs=no
  7745. fi
  7746. ;;
  7747. haiku*)
  7748. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7749. link_all_deplibs=yes
  7750. ;;
  7751. interix[3-9]*)
  7752. hardcode_direct=no
  7753. hardcode_shlibpath_var=no
  7754. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7755. export_dynamic_flag_spec='${wl}-E'
  7756. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7757. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7758. # default) and relocated if they conflict, which is a slow very memory
  7759. # consuming and fragmenting process. To avoid this, we pick a random,
  7760. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7761. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7762. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7763. 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'
  7764. ;;
  7765. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7766. tmp_diet=no
  7767. if test "$host_os" = linux-dietlibc; then
  7768. case $cc_basename in
  7769. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7770. esac
  7771. fi
  7772. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7773. && test "$tmp_diet" = no
  7774. then
  7775. tmp_addflag=' $pic_flag'
  7776. tmp_sharedflag='-shared'
  7777. case $cc_basename,$host_cpu in
  7778. pgcc*) # Portland Group C compiler
  7779. 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'
  7780. tmp_addflag=' $pic_flag'
  7781. ;;
  7782. pgf77* | pgf90* | pgf95* | pgfortran*)
  7783. # Portland Group f77 and f90 compilers
  7784. 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'
  7785. tmp_addflag=' $pic_flag -Mnomain' ;;
  7786. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7787. tmp_addflag=' -i_dynamic' ;;
  7788. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7789. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7790. ifc* | ifort*) # Intel Fortran compiler
  7791. tmp_addflag=' -nofor_main' ;;
  7792. lf95*) # Lahey Fortran 8.1
  7793. whole_archive_flag_spec=
  7794. tmp_sharedflag='--shared' ;;
  7795. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7796. tmp_sharedflag='-qmkshrobj'
  7797. tmp_addflag= ;;
  7798. nvcc*) # Cuda Compiler Driver 2.2
  7799. 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'
  7800. compiler_needs_object=yes
  7801. ;;
  7802. esac
  7803. case `$CC -V 2>&1 | sed 5q` in
  7804. *Sun\ C*) # Sun C 5.9
  7805. 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'
  7806. compiler_needs_object=yes
  7807. tmp_sharedflag='-G' ;;
  7808. *Sun\ F*) # Sun Fortran 8.3
  7809. tmp_sharedflag='-G' ;;
  7810. esac
  7811. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7812. if test "x$supports_anon_versioning" = xyes; then
  7813. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7814. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7815. echo "local: *; };" >> $output_objdir/$libname.ver~
  7816. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7817. fi
  7818. case $cc_basename in
  7819. xlf* | bgf* | bgxlf* | mpixlf*)
  7820. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7821. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7822. hardcode_libdir_flag_spec=
  7823. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7824. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7825. if test "x$supports_anon_versioning" = xyes; then
  7826. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7827. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7828. echo "local: *; };" >> $output_objdir/$libname.ver~
  7829. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7830. fi
  7831. ;;
  7832. esac
  7833. else
  7834. ld_shlibs=no
  7835. fi
  7836. ;;
  7837. netbsd*)
  7838. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7839. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7840. wlarc=
  7841. else
  7842. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7843. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7844. fi
  7845. ;;
  7846. solaris*)
  7847. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7848. ld_shlibs=no
  7849. cat <<_LT_EOF 1>&2
  7850. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7851. *** create shared libraries on Solaris systems. Therefore, libtool
  7852. *** is disabling shared libraries support. We urge you to upgrade GNU
  7853. *** binutils to release 2.9.1 or newer. Another option is to modify
  7854. *** your PATH or compiler configuration so that the native linker is
  7855. *** used, and then restart.
  7856. _LT_EOF
  7857. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7858. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7859. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7860. else
  7861. ld_shlibs=no
  7862. fi
  7863. ;;
  7864. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7865. case `$LD -v 2>&1` in
  7866. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7867. ld_shlibs=no
  7868. cat <<_LT_EOF 1>&2
  7869. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7870. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7871. *** is disabling shared libraries support. We urge you to upgrade GNU
  7872. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7873. *** your PATH or compiler configuration so that the native linker is
  7874. *** used, and then restart.
  7875. _LT_EOF
  7876. ;;
  7877. *)
  7878. # For security reasons, it is highly recommended that you always
  7879. # use absolute paths for naming shared libraries, and exclude the
  7880. # DT_RUNPATH tag from executables and libraries. But doing so
  7881. # requires that you compile everything twice, which is a pain.
  7882. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7883. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7884. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7885. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7886. else
  7887. ld_shlibs=no
  7888. fi
  7889. ;;
  7890. esac
  7891. ;;
  7892. sunos4*)
  7893. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7894. wlarc=
  7895. hardcode_direct=yes
  7896. hardcode_shlibpath_var=no
  7897. ;;
  7898. *)
  7899. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7900. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7901. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7902. else
  7903. ld_shlibs=no
  7904. fi
  7905. ;;
  7906. esac
  7907. if test "$ld_shlibs" = no; then
  7908. runpath_var=
  7909. hardcode_libdir_flag_spec=
  7910. export_dynamic_flag_spec=
  7911. whole_archive_flag_spec=
  7912. fi
  7913. else
  7914. # PORTME fill in a description of your system's linker (not GNU ld)
  7915. case $host_os in
  7916. aix3*)
  7917. allow_undefined_flag=unsupported
  7918. always_export_symbols=yes
  7919. 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'
  7920. # Note: this linker hardcodes the directories in LIBPATH if there
  7921. # are no directories specified by -L.
  7922. hardcode_minus_L=yes
  7923. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7924. # Neither direct hardcoding nor static linking is supported with a
  7925. # broken collect2.
  7926. hardcode_direct=unsupported
  7927. fi
  7928. ;;
  7929. aix[4-9]*)
  7930. if test "$host_cpu" = ia64; then
  7931. # On IA64, the linker does run time linking by default, so we don't
  7932. # have to do anything special.
  7933. aix_use_runtimelinking=no
  7934. exp_sym_flag='-Bexport'
  7935. no_entry_flag=""
  7936. else
  7937. # If we're using GNU nm, then we don't want the "-C" option.
  7938. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7939. # Also, AIX nm treats weak defined symbols like other global
  7940. # defined symbols, whereas GNU nm marks them as "W".
  7941. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7942. 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'
  7943. else
  7944. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7945. fi
  7946. aix_use_runtimelinking=no
  7947. # Test if we are trying to use run time linking or normal
  7948. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7949. # need to do runtime linking.
  7950. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7951. for ld_flag in $LDFLAGS; do
  7952. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7953. aix_use_runtimelinking=yes
  7954. break
  7955. fi
  7956. done
  7957. ;;
  7958. esac
  7959. exp_sym_flag='-bexport'
  7960. no_entry_flag='-bnoentry'
  7961. fi
  7962. # When large executables or shared objects are built, AIX ld can
  7963. # have problems creating the table of contents. If linking a library
  7964. # or program results in "error TOC overflow" add -mminimal-toc to
  7965. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7966. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7967. archive_cmds=''
  7968. hardcode_direct=yes
  7969. hardcode_direct_absolute=yes
  7970. hardcode_libdir_separator=':'
  7971. link_all_deplibs=yes
  7972. file_list_spec='${wl}-f,'
  7973. if test "$GCC" = yes; then
  7974. case $host_os in aix4.[012]|aix4.[012].*)
  7975. # We only want to do this on AIX 4.2 and lower, the check
  7976. # below for broken collect2 doesn't work under 4.3+
  7977. collect2name=`${CC} -print-prog-name=collect2`
  7978. if test -f "$collect2name" &&
  7979. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7980. then
  7981. # We have reworked collect2
  7982. :
  7983. else
  7984. # We have old collect2
  7985. hardcode_direct=unsupported
  7986. # It fails to find uninstalled libraries when the uninstalled
  7987. # path is not listed in the libpath. Setting hardcode_minus_L
  7988. # to unsupported forces relinking
  7989. hardcode_minus_L=yes
  7990. hardcode_libdir_flag_spec='-L$libdir'
  7991. hardcode_libdir_separator=
  7992. fi
  7993. ;;
  7994. esac
  7995. shared_flag='-shared'
  7996. if test "$aix_use_runtimelinking" = yes; then
  7997. shared_flag="$shared_flag "'${wl}-G'
  7998. fi
  7999. else
  8000. # not using gcc
  8001. if test "$host_cpu" = ia64; then
  8002. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8003. # chokes on -Wl,-G. The following line is correct:
  8004. shared_flag='-G'
  8005. else
  8006. if test "$aix_use_runtimelinking" = yes; then
  8007. shared_flag='${wl}-G'
  8008. else
  8009. shared_flag='${wl}-bM:SRE'
  8010. fi
  8011. fi
  8012. fi
  8013. export_dynamic_flag_spec='${wl}-bexpall'
  8014. # It seems that -bexpall does not export symbols beginning with
  8015. # underscore (_), so it is better to generate a list of symbols to export.
  8016. always_export_symbols=yes
  8017. if test "$aix_use_runtimelinking" = yes; then
  8018. # Warning - without using the other runtime loading flags (-brtl),
  8019. # -berok will link without error, but may produce a broken library.
  8020. allow_undefined_flag='-berok'
  8021. # Determine the default libpath from the value encoded in an
  8022. # empty executable.
  8023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8024. /* end confdefs.h. */
  8025. int
  8026. main ()
  8027. {
  8028. ;
  8029. return 0;
  8030. }
  8031. _ACEOF
  8032. if ac_fn_c_try_link "$LINENO"; then :
  8033. lt_aix_libpath_sed='
  8034. /Import File Strings/,/^$/ {
  8035. /^0/ {
  8036. s/^0 *\(.*\)$/\1/
  8037. p
  8038. }
  8039. }'
  8040. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8041. # Check for a 64-bit object if we didn't find anything.
  8042. if test -z "$aix_libpath"; then
  8043. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8044. fi
  8045. fi
  8046. rm -f core conftest.err conftest.$ac_objext \
  8047. conftest$ac_exeext conftest.$ac_ext
  8048. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8049. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8050. 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"
  8051. else
  8052. if test "$host_cpu" = ia64; then
  8053. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8054. allow_undefined_flag="-z nodefs"
  8055. 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"
  8056. else
  8057. # Determine the default libpath from the value encoded in an
  8058. # empty executable.
  8059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8060. /* end confdefs.h. */
  8061. int
  8062. main ()
  8063. {
  8064. ;
  8065. return 0;
  8066. }
  8067. _ACEOF
  8068. if ac_fn_c_try_link "$LINENO"; then :
  8069. lt_aix_libpath_sed='
  8070. /Import File Strings/,/^$/ {
  8071. /^0/ {
  8072. s/^0 *\(.*\)$/\1/
  8073. p
  8074. }
  8075. }'
  8076. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8077. # Check for a 64-bit object if we didn't find anything.
  8078. if test -z "$aix_libpath"; then
  8079. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8080. fi
  8081. fi
  8082. rm -f core conftest.err conftest.$ac_objext \
  8083. conftest$ac_exeext conftest.$ac_ext
  8084. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8085. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8086. # Warning - without using the other run time loading flags,
  8087. # -berok will link without error, but may produce a broken library.
  8088. no_undefined_flag=' ${wl}-bernotok'
  8089. allow_undefined_flag=' ${wl}-berok'
  8090. if test "$with_gnu_ld" = yes; then
  8091. # We only use this code for GNU lds that support --whole-archive.
  8092. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8093. else
  8094. # Exported symbols can be pulled into shared objects from archives
  8095. whole_archive_flag_spec='$convenience'
  8096. fi
  8097. archive_cmds_need_lc=yes
  8098. # This is similar to how AIX traditionally builds its shared libraries.
  8099. 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'
  8100. fi
  8101. fi
  8102. ;;
  8103. amigaos*)
  8104. case $host_cpu in
  8105. powerpc)
  8106. # see comment about AmigaOS4 .so support
  8107. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8108. archive_expsym_cmds=''
  8109. ;;
  8110. m68k)
  8111. 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)'
  8112. hardcode_libdir_flag_spec='-L$libdir'
  8113. hardcode_minus_L=yes
  8114. ;;
  8115. esac
  8116. ;;
  8117. bsdi[45]*)
  8118. export_dynamic_flag_spec=-rdynamic
  8119. ;;
  8120. cygwin* | mingw* | pw32* | cegcc*)
  8121. # When not using gcc, we currently assume that we are using
  8122. # Microsoft Visual C++.
  8123. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8124. # no search path for DLLs.
  8125. hardcode_libdir_flag_spec=' '
  8126. allow_undefined_flag=unsupported
  8127. # Tell ltmain to make .lib files, not .a files.
  8128. libext=lib
  8129. # Tell ltmain to make .dll files, not .so files.
  8130. shrext_cmds=".dll"
  8131. # FIXME: Setting linknames here is a bad hack.
  8132. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8133. # The linker will automatically build a .lib file if we build a DLL.
  8134. old_archive_from_new_cmds='true'
  8135. # FIXME: Should let the user specify the lib program.
  8136. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8137. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8138. enable_shared_with_static_runtimes=yes
  8139. ;;
  8140. darwin* | rhapsody*)
  8141. archive_cmds_need_lc=no
  8142. hardcode_direct=no
  8143. hardcode_automatic=yes
  8144. hardcode_shlibpath_var=unsupported
  8145. if test "$lt_cv_ld_force_load" = "yes"; then
  8146. 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\"`'
  8147. else
  8148. whole_archive_flag_spec=''
  8149. fi
  8150. link_all_deplibs=yes
  8151. allow_undefined_flag="$_lt_dar_allow_undefined"
  8152. case $cc_basename in
  8153. ifort*) _lt_dar_can_shared=yes ;;
  8154. *) _lt_dar_can_shared=$GCC ;;
  8155. esac
  8156. if test "$_lt_dar_can_shared" = "yes"; then
  8157. output_verbose_link_cmd=func_echo_all
  8158. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8159. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8160. 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}"
  8161. 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}"
  8162. else
  8163. ld_shlibs=no
  8164. fi
  8165. ;;
  8166. dgux*)
  8167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8168. hardcode_libdir_flag_spec='-L$libdir'
  8169. hardcode_shlibpath_var=no
  8170. ;;
  8171. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8172. # support. Future versions do this automatically, but an explicit c++rt0.o
  8173. # does not break anything, and helps significantly (at the cost of a little
  8174. # extra space).
  8175. freebsd2.2*)
  8176. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8177. hardcode_libdir_flag_spec='-R$libdir'
  8178. hardcode_direct=yes
  8179. hardcode_shlibpath_var=no
  8180. ;;
  8181. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8182. freebsd2.*)
  8183. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8184. hardcode_direct=yes
  8185. hardcode_minus_L=yes
  8186. hardcode_shlibpath_var=no
  8187. ;;
  8188. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8189. freebsd* | dragonfly*)
  8190. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8191. hardcode_libdir_flag_spec='-R$libdir'
  8192. hardcode_direct=yes
  8193. hardcode_shlibpath_var=no
  8194. ;;
  8195. hpux9*)
  8196. if test "$GCC" = yes; then
  8197. 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'
  8198. else
  8199. 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'
  8200. fi
  8201. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8202. hardcode_libdir_separator=:
  8203. hardcode_direct=yes
  8204. # hardcode_minus_L: Not really in the search PATH,
  8205. # but as the default location of the library.
  8206. hardcode_minus_L=yes
  8207. export_dynamic_flag_spec='${wl}-E'
  8208. ;;
  8209. hpux10*)
  8210. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8211. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8212. else
  8213. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8214. fi
  8215. if test "$with_gnu_ld" = no; then
  8216. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8217. hardcode_libdir_flag_spec_ld='+b $libdir'
  8218. hardcode_libdir_separator=:
  8219. hardcode_direct=yes
  8220. hardcode_direct_absolute=yes
  8221. export_dynamic_flag_spec='${wl}-E'
  8222. # hardcode_minus_L: Not really in the search PATH,
  8223. # but as the default location of the library.
  8224. hardcode_minus_L=yes
  8225. fi
  8226. ;;
  8227. hpux11*)
  8228. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8229. case $host_cpu in
  8230. hppa*64*)
  8231. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8232. ;;
  8233. ia64*)
  8234. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8235. ;;
  8236. *)
  8237. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8238. ;;
  8239. esac
  8240. else
  8241. case $host_cpu in
  8242. hppa*64*)
  8243. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8244. ;;
  8245. ia64*)
  8246. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8247. ;;
  8248. *)
  8249. # Older versions of the 11.00 compiler do not understand -b yet
  8250. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8252. $as_echo_n "checking if $CC understands -b... " >&6; }
  8253. if ${lt_cv_prog_compiler__b+:} false; then :
  8254. $as_echo_n "(cached) " >&6
  8255. else
  8256. lt_cv_prog_compiler__b=no
  8257. save_LDFLAGS="$LDFLAGS"
  8258. LDFLAGS="$LDFLAGS -b"
  8259. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8260. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8261. # The linker can only warn and ignore the option if not recognized
  8262. # So say no if there are warnings
  8263. if test -s conftest.err; then
  8264. # Append any errors to the config.log.
  8265. cat conftest.err 1>&5
  8266. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8267. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8268. if diff conftest.exp conftest.er2 >/dev/null; then
  8269. lt_cv_prog_compiler__b=yes
  8270. fi
  8271. else
  8272. lt_cv_prog_compiler__b=yes
  8273. fi
  8274. fi
  8275. $RM -r conftest*
  8276. LDFLAGS="$save_LDFLAGS"
  8277. fi
  8278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8279. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8280. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8281. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8282. else
  8283. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8284. fi
  8285. ;;
  8286. esac
  8287. fi
  8288. if test "$with_gnu_ld" = no; then
  8289. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8290. hardcode_libdir_separator=:
  8291. case $host_cpu in
  8292. hppa*64*|ia64*)
  8293. hardcode_direct=no
  8294. hardcode_shlibpath_var=no
  8295. ;;
  8296. *)
  8297. hardcode_direct=yes
  8298. hardcode_direct_absolute=yes
  8299. export_dynamic_flag_spec='${wl}-E'
  8300. # hardcode_minus_L: Not really in the search PATH,
  8301. # but as the default location of the library.
  8302. hardcode_minus_L=yes
  8303. ;;
  8304. esac
  8305. fi
  8306. ;;
  8307. irix5* | irix6* | nonstopux*)
  8308. if test "$GCC" = yes; then
  8309. 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'
  8310. # Try to use the -exported_symbol ld option, if it does not
  8311. # work, assume that -exports_file does not work either and
  8312. # implicitly export all symbols.
  8313. save_LDFLAGS="$LDFLAGS"
  8314. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8316. /* end confdefs.h. */
  8317. int foo(void) {}
  8318. _ACEOF
  8319. if ac_fn_c_try_link "$LINENO"; then :
  8320. 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'
  8321. fi
  8322. rm -f core conftest.err conftest.$ac_objext \
  8323. conftest$ac_exeext conftest.$ac_ext
  8324. LDFLAGS="$save_LDFLAGS"
  8325. else
  8326. 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'
  8327. 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'
  8328. fi
  8329. archive_cmds_need_lc='no'
  8330. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8331. hardcode_libdir_separator=:
  8332. inherit_rpath=yes
  8333. link_all_deplibs=yes
  8334. ;;
  8335. netbsd*)
  8336. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8337. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8338. else
  8339. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8340. fi
  8341. hardcode_libdir_flag_spec='-R$libdir'
  8342. hardcode_direct=yes
  8343. hardcode_shlibpath_var=no
  8344. ;;
  8345. newsos6)
  8346. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8347. hardcode_direct=yes
  8348. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8349. hardcode_libdir_separator=:
  8350. hardcode_shlibpath_var=no
  8351. ;;
  8352. *nto* | *qnx*)
  8353. ;;
  8354. openbsd*)
  8355. if test -f /usr/libexec/ld.so; then
  8356. hardcode_direct=yes
  8357. hardcode_shlibpath_var=no
  8358. hardcode_direct_absolute=yes
  8359. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8360. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8361. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8362. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8363. export_dynamic_flag_spec='${wl}-E'
  8364. else
  8365. case $host_os in
  8366. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8367. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8368. hardcode_libdir_flag_spec='-R$libdir'
  8369. ;;
  8370. *)
  8371. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8372. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8373. ;;
  8374. esac
  8375. fi
  8376. else
  8377. ld_shlibs=no
  8378. fi
  8379. ;;
  8380. os2*)
  8381. hardcode_libdir_flag_spec='-L$libdir'
  8382. hardcode_minus_L=yes
  8383. allow_undefined_flag=unsupported
  8384. 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'
  8385. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8386. ;;
  8387. osf3*)
  8388. if test "$GCC" = yes; then
  8389. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8390. 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'
  8391. else
  8392. allow_undefined_flag=' -expect_unresolved \*'
  8393. 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'
  8394. fi
  8395. archive_cmds_need_lc='no'
  8396. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8397. hardcode_libdir_separator=:
  8398. ;;
  8399. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8400. if test "$GCC" = yes; then
  8401. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8402. 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'
  8403. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8404. else
  8405. allow_undefined_flag=' -expect_unresolved \*'
  8406. 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'
  8407. 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~
  8408. $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'
  8409. # Both c and cxx compiler support -rpath directly
  8410. hardcode_libdir_flag_spec='-rpath $libdir'
  8411. fi
  8412. archive_cmds_need_lc='no'
  8413. hardcode_libdir_separator=:
  8414. ;;
  8415. solaris*)
  8416. no_undefined_flag=' -z defs'
  8417. if test "$GCC" = yes; then
  8418. wlarc='${wl}'
  8419. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8420. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8421. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8422. else
  8423. case `$CC -V 2>&1` in
  8424. *"Compilers 5.0"*)
  8425. wlarc=''
  8426. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8427. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8428. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8429. ;;
  8430. *)
  8431. wlarc='${wl}'
  8432. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8433. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8434. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8435. ;;
  8436. esac
  8437. fi
  8438. hardcode_libdir_flag_spec='-R$libdir'
  8439. hardcode_shlibpath_var=no
  8440. case $host_os in
  8441. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8442. *)
  8443. # The compiler driver will combine and reorder linker options,
  8444. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8445. # but is careful enough not to reorder.
  8446. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8447. if test "$GCC" = yes; then
  8448. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8449. else
  8450. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8451. fi
  8452. ;;
  8453. esac
  8454. link_all_deplibs=yes
  8455. ;;
  8456. sunos4*)
  8457. if test "x$host_vendor" = xsequent; then
  8458. # Use $CC to link under sequent, because it throws in some extra .o
  8459. # files that make .init and .fini sections work.
  8460. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8461. else
  8462. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8463. fi
  8464. hardcode_libdir_flag_spec='-L$libdir'
  8465. hardcode_direct=yes
  8466. hardcode_minus_L=yes
  8467. hardcode_shlibpath_var=no
  8468. ;;
  8469. sysv4)
  8470. case $host_vendor in
  8471. sni)
  8472. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8473. hardcode_direct=yes # is this really true???
  8474. ;;
  8475. siemens)
  8476. ## LD is ld it makes a PLAMLIB
  8477. ## CC just makes a GrossModule.
  8478. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8479. reload_cmds='$CC -r -o $output$reload_objs'
  8480. hardcode_direct=no
  8481. ;;
  8482. motorola)
  8483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8484. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8485. ;;
  8486. esac
  8487. runpath_var='LD_RUN_PATH'
  8488. hardcode_shlibpath_var=no
  8489. ;;
  8490. sysv4.3*)
  8491. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8492. hardcode_shlibpath_var=no
  8493. export_dynamic_flag_spec='-Bexport'
  8494. ;;
  8495. sysv4*MP*)
  8496. if test -d /usr/nec; then
  8497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8498. hardcode_shlibpath_var=no
  8499. runpath_var=LD_RUN_PATH
  8500. hardcode_runpath_var=yes
  8501. ld_shlibs=yes
  8502. fi
  8503. ;;
  8504. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8505. no_undefined_flag='${wl}-z,text'
  8506. archive_cmds_need_lc=no
  8507. hardcode_shlibpath_var=no
  8508. runpath_var='LD_RUN_PATH'
  8509. if test "$GCC" = yes; then
  8510. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8511. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8512. else
  8513. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8514. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8515. fi
  8516. ;;
  8517. sysv5* | sco3.2v5* | sco5v6*)
  8518. # Note: We can NOT use -z defs as we might desire, because we do not
  8519. # link with -lc, and that would cause any symbols used from libc to
  8520. # always be unresolved, which means just about no library would
  8521. # ever link correctly. If we're not using GNU ld we use -z text
  8522. # though, which does catch some bad symbols but isn't as heavy-handed
  8523. # as -z defs.
  8524. no_undefined_flag='${wl}-z,text'
  8525. allow_undefined_flag='${wl}-z,nodefs'
  8526. archive_cmds_need_lc=no
  8527. hardcode_shlibpath_var=no
  8528. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8529. hardcode_libdir_separator=':'
  8530. link_all_deplibs=yes
  8531. export_dynamic_flag_spec='${wl}-Bexport'
  8532. runpath_var='LD_RUN_PATH'
  8533. if test "$GCC" = yes; then
  8534. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8535. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8536. else
  8537. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8539. fi
  8540. ;;
  8541. uts4*)
  8542. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8543. hardcode_libdir_flag_spec='-L$libdir'
  8544. hardcode_shlibpath_var=no
  8545. ;;
  8546. *)
  8547. ld_shlibs=no
  8548. ;;
  8549. esac
  8550. if test x$host_vendor = xsni; then
  8551. case $host in
  8552. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8553. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8554. ;;
  8555. esac
  8556. fi
  8557. fi
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8559. $as_echo "$ld_shlibs" >&6; }
  8560. test "$ld_shlibs" = no && can_build_shared=no
  8561. with_gnu_ld=$with_gnu_ld
  8562. #
  8563. # Do we need to explicitly link libc?
  8564. #
  8565. case "x$archive_cmds_need_lc" in
  8566. x|xyes)
  8567. # Assume -lc should be added
  8568. archive_cmds_need_lc=yes
  8569. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8570. case $archive_cmds in
  8571. *'~'*)
  8572. # FIXME: we may have to deal with multi-command sequences.
  8573. ;;
  8574. '$CC '*)
  8575. # Test whether the compiler implicitly links with -lc since on some
  8576. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8577. # to ld, don't add -lc before -lgcc.
  8578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8579. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8580. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8581. $as_echo_n "(cached) " >&6
  8582. else
  8583. $RM conftest*
  8584. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8586. (eval $ac_compile) 2>&5
  8587. ac_status=$?
  8588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8589. test $ac_status = 0; } 2>conftest.err; then
  8590. soname=conftest
  8591. lib=conftest
  8592. libobjs=conftest.$ac_objext
  8593. deplibs=
  8594. wl=$lt_prog_compiler_wl
  8595. pic_flag=$lt_prog_compiler_pic
  8596. compiler_flags=-v
  8597. linker_flags=-v
  8598. verstring=
  8599. output_objdir=.
  8600. libname=conftest
  8601. lt_save_allow_undefined_flag=$allow_undefined_flag
  8602. allow_undefined_flag=
  8603. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8604. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8605. ac_status=$?
  8606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8607. test $ac_status = 0; }
  8608. then
  8609. lt_cv_archive_cmds_need_lc=no
  8610. else
  8611. lt_cv_archive_cmds_need_lc=yes
  8612. fi
  8613. allow_undefined_flag=$lt_save_allow_undefined_flag
  8614. else
  8615. cat conftest.err 1>&5
  8616. fi
  8617. $RM conftest*
  8618. fi
  8619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8620. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8621. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8622. ;;
  8623. esac
  8624. fi
  8625. ;;
  8626. esac
  8627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8628. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8629. if test "$GCC" = yes; then
  8630. case $host_os in
  8631. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8632. *) lt_awk_arg="/^libraries:/" ;;
  8633. esac
  8634. case $host_os in
  8635. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8636. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8637. esac
  8638. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8639. case $lt_search_path_spec in
  8640. *\;*)
  8641. # if the path contains ";" then we assume it to be the separator
  8642. # otherwise default to the standard path separator (i.e. ":") - it is
  8643. # assumed that no part of a normal pathname contains ";" but that should
  8644. # okay in the real world where ";" in dirpaths is itself problematic.
  8645. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8646. ;;
  8647. *)
  8648. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8649. ;;
  8650. esac
  8651. # Ok, now we have the path, separated by spaces, we can step through it
  8652. # and add multilib dir if necessary.
  8653. lt_tmp_lt_search_path_spec=
  8654. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8655. for lt_sys_path in $lt_search_path_spec; do
  8656. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8657. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8658. else
  8659. test -d "$lt_sys_path" && \
  8660. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8661. fi
  8662. done
  8663. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8664. BEGIN {RS=" "; FS="/|\n";} {
  8665. lt_foo="";
  8666. lt_count=0;
  8667. for (lt_i = NF; lt_i > 0; lt_i--) {
  8668. if ($lt_i != "" && $lt_i != ".") {
  8669. if ($lt_i == "..") {
  8670. lt_count++;
  8671. } else {
  8672. if (lt_count == 0) {
  8673. lt_foo="/" $lt_i lt_foo;
  8674. } else {
  8675. lt_count--;
  8676. }
  8677. }
  8678. }
  8679. }
  8680. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8681. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8682. }'`
  8683. # AWK program above erroneously prepends '/' to C:/dos/paths
  8684. # for these hosts.
  8685. case $host_os in
  8686. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8687. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8688. esac
  8689. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8690. else
  8691. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8692. fi
  8693. library_names_spec=
  8694. libname_spec='lib$name'
  8695. soname_spec=
  8696. shrext_cmds=".so"
  8697. postinstall_cmds=
  8698. postuninstall_cmds=
  8699. finish_cmds=
  8700. finish_eval=
  8701. shlibpath_var=
  8702. shlibpath_overrides_runpath=unknown
  8703. version_type=none
  8704. dynamic_linker="$host_os ld.so"
  8705. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8706. need_lib_prefix=unknown
  8707. hardcode_into_libs=no
  8708. # when you set need_version to no, make sure it does not cause -set_version
  8709. # flags to be left without arguments
  8710. need_version=unknown
  8711. case $host_os in
  8712. aix3*)
  8713. version_type=linux
  8714. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8715. shlibpath_var=LIBPATH
  8716. # AIX 3 has no versioning support, so we append a major version to the name.
  8717. soname_spec='${libname}${release}${shared_ext}$major'
  8718. ;;
  8719. aix[4-9]*)
  8720. version_type=linux
  8721. need_lib_prefix=no
  8722. need_version=no
  8723. hardcode_into_libs=yes
  8724. if test "$host_cpu" = ia64; then
  8725. # AIX 5 supports IA64
  8726. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8727. shlibpath_var=LD_LIBRARY_PATH
  8728. else
  8729. # With GCC up to 2.95.x, collect2 would create an import file
  8730. # for dependence libraries. The import file would start with
  8731. # the line `#! .'. This would cause the generated library to
  8732. # depend on `.', always an invalid library. This was fixed in
  8733. # development snapshots of GCC prior to 3.0.
  8734. case $host_os in
  8735. aix4 | aix4.[01] | aix4.[01].*)
  8736. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8737. echo ' yes '
  8738. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8739. :
  8740. else
  8741. can_build_shared=no
  8742. fi
  8743. ;;
  8744. esac
  8745. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8746. # soname into executable. Probably we can add versioning support to
  8747. # collect2, so additional links can be useful in future.
  8748. if test "$aix_use_runtimelinking" = yes; then
  8749. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8750. # instead of lib<name>.a to let people know that these are not
  8751. # typical AIX shared libraries.
  8752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8753. else
  8754. # We preserve .a as extension for shared libraries through AIX4.2
  8755. # and later when we are not doing run time linking.
  8756. library_names_spec='${libname}${release}.a $libname.a'
  8757. soname_spec='${libname}${release}${shared_ext}$major'
  8758. fi
  8759. shlibpath_var=LIBPATH
  8760. fi
  8761. ;;
  8762. amigaos*)
  8763. case $host_cpu in
  8764. powerpc)
  8765. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8766. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8768. ;;
  8769. m68k)
  8770. library_names_spec='$libname.ixlibrary $libname.a'
  8771. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8772. 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'
  8773. ;;
  8774. esac
  8775. ;;
  8776. beos*)
  8777. library_names_spec='${libname}${shared_ext}'
  8778. dynamic_linker="$host_os ld.so"
  8779. shlibpath_var=LIBRARY_PATH
  8780. ;;
  8781. bsdi[45]*)
  8782. version_type=linux
  8783. need_version=no
  8784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8785. soname_spec='${libname}${release}${shared_ext}$major'
  8786. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8787. shlibpath_var=LD_LIBRARY_PATH
  8788. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8789. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8790. # the default ld.so.conf also contains /usr/contrib/lib and
  8791. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8792. # libtool to hard-code these into programs
  8793. ;;
  8794. cygwin* | mingw* | pw32* | cegcc*)
  8795. version_type=windows
  8796. shrext_cmds=".dll"
  8797. need_version=no
  8798. need_lib_prefix=no
  8799. case $GCC,$host_os in
  8800. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8801. library_names_spec='$libname.dll.a'
  8802. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8803. postinstall_cmds='base_file=`basename \${file}`~
  8804. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8805. dldir=$destdir/`dirname \$dlpath`~
  8806. test -d \$dldir || mkdir -p \$dldir~
  8807. $install_prog $dir/$dlname \$dldir/$dlname~
  8808. chmod a+x \$dldir/$dlname~
  8809. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8810. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8811. fi'
  8812. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8813. dlpath=$dir/\$dldll~
  8814. $RM \$dlpath'
  8815. shlibpath_overrides_runpath=yes
  8816. case $host_os in
  8817. cygwin*)
  8818. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8819. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8820. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8821. ;;
  8822. mingw* | cegcc*)
  8823. # MinGW DLLs use traditional 'lib' prefix
  8824. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8825. ;;
  8826. pw32*)
  8827. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8828. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8829. ;;
  8830. esac
  8831. ;;
  8832. *)
  8833. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8834. ;;
  8835. esac
  8836. dynamic_linker='Win32 ld.exe'
  8837. # FIXME: first we should search . and the directory the executable is in
  8838. shlibpath_var=PATH
  8839. ;;
  8840. darwin* | rhapsody*)
  8841. dynamic_linker="$host_os dyld"
  8842. version_type=darwin
  8843. need_lib_prefix=no
  8844. need_version=no
  8845. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8846. soname_spec='${libname}${release}${major}$shared_ext'
  8847. shlibpath_overrides_runpath=yes
  8848. shlibpath_var=DYLD_LIBRARY_PATH
  8849. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8850. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8851. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8852. ;;
  8853. dgux*)
  8854. version_type=linux
  8855. need_lib_prefix=no
  8856. need_version=no
  8857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8858. soname_spec='${libname}${release}${shared_ext}$major'
  8859. shlibpath_var=LD_LIBRARY_PATH
  8860. ;;
  8861. freebsd* | dragonfly*)
  8862. # DragonFly does not have aout. When/if they implement a new
  8863. # versioning mechanism, adjust this.
  8864. if test -x /usr/bin/objformat; then
  8865. objformat=`/usr/bin/objformat`
  8866. else
  8867. case $host_os in
  8868. freebsd[23].*) objformat=aout ;;
  8869. *) objformat=elf ;;
  8870. esac
  8871. fi
  8872. version_type=freebsd-$objformat
  8873. case $version_type in
  8874. freebsd-elf*)
  8875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8876. need_version=no
  8877. need_lib_prefix=no
  8878. ;;
  8879. freebsd-*)
  8880. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8881. need_version=yes
  8882. ;;
  8883. esac
  8884. shlibpath_var=LD_LIBRARY_PATH
  8885. case $host_os in
  8886. freebsd2.*)
  8887. shlibpath_overrides_runpath=yes
  8888. ;;
  8889. freebsd3.[01]* | freebsdelf3.[01]*)
  8890. shlibpath_overrides_runpath=yes
  8891. hardcode_into_libs=yes
  8892. ;;
  8893. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8894. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8895. shlibpath_overrides_runpath=no
  8896. hardcode_into_libs=yes
  8897. ;;
  8898. *) # from 4.6 on, and DragonFly
  8899. shlibpath_overrides_runpath=yes
  8900. hardcode_into_libs=yes
  8901. ;;
  8902. esac
  8903. ;;
  8904. haiku*)
  8905. version_type=linux
  8906. need_lib_prefix=no
  8907. need_version=no
  8908. dynamic_linker="$host_os runtime_loader"
  8909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8910. soname_spec='${libname}${release}${shared_ext}$major'
  8911. shlibpath_var=LIBRARY_PATH
  8912. shlibpath_overrides_runpath=yes
  8913. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8914. hardcode_into_libs=yes
  8915. ;;
  8916. hpux9* | hpux10* | hpux11*)
  8917. # Give a soname corresponding to the major version so that dld.sl refuses to
  8918. # link against other versions.
  8919. version_type=sunos
  8920. need_lib_prefix=no
  8921. need_version=no
  8922. case $host_cpu in
  8923. ia64*)
  8924. shrext_cmds='.so'
  8925. hardcode_into_libs=yes
  8926. dynamic_linker="$host_os dld.so"
  8927. shlibpath_var=LD_LIBRARY_PATH
  8928. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8930. soname_spec='${libname}${release}${shared_ext}$major'
  8931. if test "X$HPUX_IA64_MODE" = X32; then
  8932. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8933. else
  8934. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8935. fi
  8936. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8937. ;;
  8938. hppa*64*)
  8939. shrext_cmds='.sl'
  8940. hardcode_into_libs=yes
  8941. dynamic_linker="$host_os dld.sl"
  8942. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8943. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8945. soname_spec='${libname}${release}${shared_ext}$major'
  8946. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8947. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8948. ;;
  8949. *)
  8950. shrext_cmds='.sl'
  8951. dynamic_linker="$host_os dld.sl"
  8952. shlibpath_var=SHLIB_PATH
  8953. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8955. soname_spec='${libname}${release}${shared_ext}$major'
  8956. ;;
  8957. esac
  8958. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8959. postinstall_cmds='chmod 555 $lib'
  8960. # or fails outright, so override atomically:
  8961. install_override_mode=555
  8962. ;;
  8963. interix[3-9]*)
  8964. version_type=linux
  8965. need_lib_prefix=no
  8966. need_version=no
  8967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8968. soname_spec='${libname}${release}${shared_ext}$major'
  8969. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8970. shlibpath_var=LD_LIBRARY_PATH
  8971. shlibpath_overrides_runpath=no
  8972. hardcode_into_libs=yes
  8973. ;;
  8974. irix5* | irix6* | nonstopux*)
  8975. case $host_os in
  8976. nonstopux*) version_type=nonstopux ;;
  8977. *)
  8978. if test "$lt_cv_prog_gnu_ld" = yes; then
  8979. version_type=linux
  8980. else
  8981. version_type=irix
  8982. fi ;;
  8983. esac
  8984. need_lib_prefix=no
  8985. need_version=no
  8986. soname_spec='${libname}${release}${shared_ext}$major'
  8987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8988. case $host_os in
  8989. irix5* | nonstopux*)
  8990. libsuff= shlibsuff=
  8991. ;;
  8992. *)
  8993. case $LD in # libtool.m4 will add one of these switches to LD
  8994. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8995. libsuff= shlibsuff= libmagic=32-bit;;
  8996. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8997. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8998. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8999. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9000. *) libsuff= shlibsuff= libmagic=never-match;;
  9001. esac
  9002. ;;
  9003. esac
  9004. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9005. shlibpath_overrides_runpath=no
  9006. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9007. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9008. hardcode_into_libs=yes
  9009. ;;
  9010. # No shared lib support for Linux oldld, aout, or coff.
  9011. linux*oldld* | linux*aout* | linux*coff*)
  9012. dynamic_linker=no
  9013. ;;
  9014. # This must be Linux ELF.
  9015. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9016. version_type=linux
  9017. need_lib_prefix=no
  9018. need_version=no
  9019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9020. soname_spec='${libname}${release}${shared_ext}$major'
  9021. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9022. shlibpath_var=LD_LIBRARY_PATH
  9023. shlibpath_overrides_runpath=no
  9024. # Some binutils ld are patched to set DT_RUNPATH
  9025. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9026. $as_echo_n "(cached) " >&6
  9027. else
  9028. lt_cv_shlibpath_overrides_runpath=no
  9029. save_LDFLAGS=$LDFLAGS
  9030. save_libdir=$libdir
  9031. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9032. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9034. /* end confdefs.h. */
  9035. int
  9036. main ()
  9037. {
  9038. ;
  9039. return 0;
  9040. }
  9041. _ACEOF
  9042. if ac_fn_c_try_link "$LINENO"; then :
  9043. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9044. lt_cv_shlibpath_overrides_runpath=yes
  9045. fi
  9046. fi
  9047. rm -f core conftest.err conftest.$ac_objext \
  9048. conftest$ac_exeext conftest.$ac_ext
  9049. LDFLAGS=$save_LDFLAGS
  9050. libdir=$save_libdir
  9051. fi
  9052. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9053. # This implies no fast_install, which is unacceptable.
  9054. # Some rework will be needed to allow for fast_install
  9055. # before this can be enabled.
  9056. hardcode_into_libs=yes
  9057. # Append ld.so.conf contents to the search path
  9058. if test -f /etc/ld.so.conf; then
  9059. 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' ' '`
  9060. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9061. fi
  9062. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9063. # powerpc, because MkLinux only supported shared libraries with the
  9064. # GNU dynamic linker. Since this was broken with cross compilers,
  9065. # most powerpc-linux boxes support dynamic linking these days and
  9066. # people can always --disable-shared, the test was removed, and we
  9067. # assume the GNU/Linux dynamic linker is in use.
  9068. dynamic_linker='GNU/Linux ld.so'
  9069. ;;
  9070. netbsd*)
  9071. version_type=sunos
  9072. need_lib_prefix=no
  9073. need_version=no
  9074. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9076. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9077. dynamic_linker='NetBSD (a.out) ld.so'
  9078. else
  9079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9080. soname_spec='${libname}${release}${shared_ext}$major'
  9081. dynamic_linker='NetBSD ld.elf_so'
  9082. fi
  9083. shlibpath_var=LD_LIBRARY_PATH
  9084. shlibpath_overrides_runpath=yes
  9085. hardcode_into_libs=yes
  9086. ;;
  9087. newsos6)
  9088. version_type=linux
  9089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9090. shlibpath_var=LD_LIBRARY_PATH
  9091. shlibpath_overrides_runpath=yes
  9092. ;;
  9093. *nto* | *qnx*)
  9094. version_type=qnx
  9095. need_lib_prefix=no
  9096. need_version=no
  9097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9098. soname_spec='${libname}${release}${shared_ext}$major'
  9099. shlibpath_var=LD_LIBRARY_PATH
  9100. shlibpath_overrides_runpath=no
  9101. hardcode_into_libs=yes
  9102. dynamic_linker='ldqnx.so'
  9103. ;;
  9104. openbsd*)
  9105. version_type=sunos
  9106. sys_lib_dlsearch_path_spec="/usr/lib"
  9107. need_lib_prefix=no
  9108. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9109. case $host_os in
  9110. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9111. *) need_version=no ;;
  9112. esac
  9113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9114. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9115. shlibpath_var=LD_LIBRARY_PATH
  9116. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9117. case $host_os in
  9118. openbsd2.[89] | openbsd2.[89].*)
  9119. shlibpath_overrides_runpath=no
  9120. ;;
  9121. *)
  9122. shlibpath_overrides_runpath=yes
  9123. ;;
  9124. esac
  9125. else
  9126. shlibpath_overrides_runpath=yes
  9127. fi
  9128. ;;
  9129. os2*)
  9130. libname_spec='$name'
  9131. shrext_cmds=".dll"
  9132. need_lib_prefix=no
  9133. library_names_spec='$libname${shared_ext} $libname.a'
  9134. dynamic_linker='OS/2 ld.exe'
  9135. shlibpath_var=LIBPATH
  9136. ;;
  9137. osf3* | osf4* | osf5*)
  9138. version_type=osf
  9139. need_lib_prefix=no
  9140. need_version=no
  9141. soname_spec='${libname}${release}${shared_ext}$major'
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9143. shlibpath_var=LD_LIBRARY_PATH
  9144. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9145. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9146. ;;
  9147. rdos*)
  9148. dynamic_linker=no
  9149. ;;
  9150. solaris*)
  9151. version_type=linux
  9152. need_lib_prefix=no
  9153. need_version=no
  9154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9155. soname_spec='${libname}${release}${shared_ext}$major'
  9156. shlibpath_var=LD_LIBRARY_PATH
  9157. shlibpath_overrides_runpath=yes
  9158. hardcode_into_libs=yes
  9159. # ldd complains unless libraries are executable
  9160. postinstall_cmds='chmod +x $lib'
  9161. ;;
  9162. sunos4*)
  9163. version_type=sunos
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9165. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9166. shlibpath_var=LD_LIBRARY_PATH
  9167. shlibpath_overrides_runpath=yes
  9168. if test "$with_gnu_ld" = yes; then
  9169. need_lib_prefix=no
  9170. fi
  9171. need_version=yes
  9172. ;;
  9173. sysv4 | sysv4.3*)
  9174. version_type=linux
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9176. soname_spec='${libname}${release}${shared_ext}$major'
  9177. shlibpath_var=LD_LIBRARY_PATH
  9178. case $host_vendor in
  9179. sni)
  9180. shlibpath_overrides_runpath=no
  9181. need_lib_prefix=no
  9182. runpath_var=LD_RUN_PATH
  9183. ;;
  9184. siemens)
  9185. need_lib_prefix=no
  9186. ;;
  9187. motorola)
  9188. need_lib_prefix=no
  9189. need_version=no
  9190. shlibpath_overrides_runpath=no
  9191. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9192. ;;
  9193. esac
  9194. ;;
  9195. sysv4*MP*)
  9196. if test -d /usr/nec ;then
  9197. version_type=linux
  9198. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9199. soname_spec='$libname${shared_ext}.$major'
  9200. shlibpath_var=LD_LIBRARY_PATH
  9201. fi
  9202. ;;
  9203. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9204. version_type=freebsd-elf
  9205. need_lib_prefix=no
  9206. need_version=no
  9207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9208. soname_spec='${libname}${release}${shared_ext}$major'
  9209. shlibpath_var=LD_LIBRARY_PATH
  9210. shlibpath_overrides_runpath=yes
  9211. hardcode_into_libs=yes
  9212. if test "$with_gnu_ld" = yes; then
  9213. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9214. else
  9215. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9216. case $host_os in
  9217. sco3.2v5*)
  9218. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9219. ;;
  9220. esac
  9221. fi
  9222. sys_lib_dlsearch_path_spec='/usr/lib'
  9223. ;;
  9224. tpf*)
  9225. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9226. version_type=linux
  9227. need_lib_prefix=no
  9228. need_version=no
  9229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9230. shlibpath_var=LD_LIBRARY_PATH
  9231. shlibpath_overrides_runpath=no
  9232. hardcode_into_libs=yes
  9233. ;;
  9234. uts4*)
  9235. version_type=linux
  9236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9237. soname_spec='${libname}${release}${shared_ext}$major'
  9238. shlibpath_var=LD_LIBRARY_PATH
  9239. ;;
  9240. *)
  9241. dynamic_linker=no
  9242. ;;
  9243. esac
  9244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9245. $as_echo "$dynamic_linker" >&6; }
  9246. test "$dynamic_linker" = no && can_build_shared=no
  9247. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9248. if test "$GCC" = yes; then
  9249. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9250. fi
  9251. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9252. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9253. fi
  9254. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9255. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9256. fi
  9257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9258. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9259. hardcode_action=
  9260. if test -n "$hardcode_libdir_flag_spec" ||
  9261. test -n "$runpath_var" ||
  9262. test "X$hardcode_automatic" = "Xyes" ; then
  9263. # We can hardcode non-existent directories.
  9264. if test "$hardcode_direct" != no &&
  9265. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9266. # have to relink, otherwise we might link with an installed library
  9267. # when we should be linking with a yet-to-be-installed one
  9268. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9269. test "$hardcode_minus_L" != no; then
  9270. # Linking always hardcodes the temporary library directory.
  9271. hardcode_action=relink
  9272. else
  9273. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9274. hardcode_action=immediate
  9275. fi
  9276. else
  9277. # We cannot hardcode anything, or else we can only hardcode existing
  9278. # directories.
  9279. hardcode_action=unsupported
  9280. fi
  9281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9282. $as_echo "$hardcode_action" >&6; }
  9283. if test "$hardcode_action" = relink ||
  9284. test "$inherit_rpath" = yes; then
  9285. # Fast installation is not supported
  9286. enable_fast_install=no
  9287. elif test "$shlibpath_overrides_runpath" = yes ||
  9288. test "$enable_shared" = no; then
  9289. # Fast installation is not necessary
  9290. enable_fast_install=needless
  9291. fi
  9292. if test "x$enable_dlopen" != xyes; then
  9293. enable_dlopen=unknown
  9294. enable_dlopen_self=unknown
  9295. enable_dlopen_self_static=unknown
  9296. else
  9297. lt_cv_dlopen=no
  9298. lt_cv_dlopen_libs=
  9299. case $host_os in
  9300. beos*)
  9301. lt_cv_dlopen="load_add_on"
  9302. lt_cv_dlopen_libs=
  9303. lt_cv_dlopen_self=yes
  9304. ;;
  9305. mingw* | pw32* | cegcc*)
  9306. lt_cv_dlopen="LoadLibrary"
  9307. lt_cv_dlopen_libs=
  9308. ;;
  9309. cygwin*)
  9310. lt_cv_dlopen="dlopen"
  9311. lt_cv_dlopen_libs=
  9312. ;;
  9313. darwin*)
  9314. # if libdl is installed we need to link against it
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9316. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9317. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9318. $as_echo_n "(cached) " >&6
  9319. else
  9320. ac_check_lib_save_LIBS=$LIBS
  9321. LIBS="-ldl $LIBS"
  9322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9323. /* end confdefs.h. */
  9324. /* Override any GCC internal prototype to avoid an error.
  9325. Use char because int might match the return type of a GCC
  9326. builtin and then its argument prototype would still apply. */
  9327. #ifdef __cplusplus
  9328. extern "C"
  9329. #endif
  9330. char dlopen ();
  9331. int
  9332. main ()
  9333. {
  9334. return dlopen ();
  9335. ;
  9336. return 0;
  9337. }
  9338. _ACEOF
  9339. if ac_fn_c_try_link "$LINENO"; then :
  9340. ac_cv_lib_dl_dlopen=yes
  9341. else
  9342. ac_cv_lib_dl_dlopen=no
  9343. fi
  9344. rm -f core conftest.err conftest.$ac_objext \
  9345. conftest$ac_exeext conftest.$ac_ext
  9346. LIBS=$ac_check_lib_save_LIBS
  9347. fi
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9349. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9350. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9351. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9352. else
  9353. lt_cv_dlopen="dyld"
  9354. lt_cv_dlopen_libs=
  9355. lt_cv_dlopen_self=yes
  9356. fi
  9357. ;;
  9358. *)
  9359. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9360. if test "x$ac_cv_func_shl_load" = xyes; then :
  9361. lt_cv_dlopen="shl_load"
  9362. else
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9364. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9365. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9366. $as_echo_n "(cached) " >&6
  9367. else
  9368. ac_check_lib_save_LIBS=$LIBS
  9369. LIBS="-ldld $LIBS"
  9370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9371. /* end confdefs.h. */
  9372. /* Override any GCC internal prototype to avoid an error.
  9373. Use char because int might match the return type of a GCC
  9374. builtin and then its argument prototype would still apply. */
  9375. #ifdef __cplusplus
  9376. extern "C"
  9377. #endif
  9378. char shl_load ();
  9379. int
  9380. main ()
  9381. {
  9382. return shl_load ();
  9383. ;
  9384. return 0;
  9385. }
  9386. _ACEOF
  9387. if ac_fn_c_try_link "$LINENO"; then :
  9388. ac_cv_lib_dld_shl_load=yes
  9389. else
  9390. ac_cv_lib_dld_shl_load=no
  9391. fi
  9392. rm -f core conftest.err conftest.$ac_objext \
  9393. conftest$ac_exeext conftest.$ac_ext
  9394. LIBS=$ac_check_lib_save_LIBS
  9395. fi
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9397. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9398. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9399. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9400. else
  9401. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9402. if test "x$ac_cv_func_dlopen" = xyes; then :
  9403. lt_cv_dlopen="dlopen"
  9404. else
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9406. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9407. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9408. $as_echo_n "(cached) " >&6
  9409. else
  9410. ac_check_lib_save_LIBS=$LIBS
  9411. LIBS="-ldl $LIBS"
  9412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9413. /* end confdefs.h. */
  9414. /* Override any GCC internal prototype to avoid an error.
  9415. Use char because int might match the return type of a GCC
  9416. builtin and then its argument prototype would still apply. */
  9417. #ifdef __cplusplus
  9418. extern "C"
  9419. #endif
  9420. char dlopen ();
  9421. int
  9422. main ()
  9423. {
  9424. return dlopen ();
  9425. ;
  9426. return 0;
  9427. }
  9428. _ACEOF
  9429. if ac_fn_c_try_link "$LINENO"; then :
  9430. ac_cv_lib_dl_dlopen=yes
  9431. else
  9432. ac_cv_lib_dl_dlopen=no
  9433. fi
  9434. rm -f core conftest.err conftest.$ac_objext \
  9435. conftest$ac_exeext conftest.$ac_ext
  9436. LIBS=$ac_check_lib_save_LIBS
  9437. fi
  9438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9439. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9440. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9441. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9442. else
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9444. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9445. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9446. $as_echo_n "(cached) " >&6
  9447. else
  9448. ac_check_lib_save_LIBS=$LIBS
  9449. LIBS="-lsvld $LIBS"
  9450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9451. /* end confdefs.h. */
  9452. /* Override any GCC internal prototype to avoid an error.
  9453. Use char because int might match the return type of a GCC
  9454. builtin and then its argument prototype would still apply. */
  9455. #ifdef __cplusplus
  9456. extern "C"
  9457. #endif
  9458. char dlopen ();
  9459. int
  9460. main ()
  9461. {
  9462. return dlopen ();
  9463. ;
  9464. return 0;
  9465. }
  9466. _ACEOF
  9467. if ac_fn_c_try_link "$LINENO"; then :
  9468. ac_cv_lib_svld_dlopen=yes
  9469. else
  9470. ac_cv_lib_svld_dlopen=no
  9471. fi
  9472. rm -f core conftest.err conftest.$ac_objext \
  9473. conftest$ac_exeext conftest.$ac_ext
  9474. LIBS=$ac_check_lib_save_LIBS
  9475. fi
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9477. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9478. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9479. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9480. else
  9481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9482. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9483. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9484. $as_echo_n "(cached) " >&6
  9485. else
  9486. ac_check_lib_save_LIBS=$LIBS
  9487. LIBS="-ldld $LIBS"
  9488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9489. /* end confdefs.h. */
  9490. /* Override any GCC internal prototype to avoid an error.
  9491. Use char because int might match the return type of a GCC
  9492. builtin and then its argument prototype would still apply. */
  9493. #ifdef __cplusplus
  9494. extern "C"
  9495. #endif
  9496. char dld_link ();
  9497. int
  9498. main ()
  9499. {
  9500. return dld_link ();
  9501. ;
  9502. return 0;
  9503. }
  9504. _ACEOF
  9505. if ac_fn_c_try_link "$LINENO"; then :
  9506. ac_cv_lib_dld_dld_link=yes
  9507. else
  9508. ac_cv_lib_dld_dld_link=no
  9509. fi
  9510. rm -f core conftest.err conftest.$ac_objext \
  9511. conftest$ac_exeext conftest.$ac_ext
  9512. LIBS=$ac_check_lib_save_LIBS
  9513. fi
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9515. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9516. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9517. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9518. fi
  9519. fi
  9520. fi
  9521. fi
  9522. fi
  9523. fi
  9524. ;;
  9525. esac
  9526. if test "x$lt_cv_dlopen" != xno; then
  9527. enable_dlopen=yes
  9528. else
  9529. enable_dlopen=no
  9530. fi
  9531. case $lt_cv_dlopen in
  9532. dlopen)
  9533. save_CPPFLAGS="$CPPFLAGS"
  9534. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9535. save_LDFLAGS="$LDFLAGS"
  9536. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9537. save_LIBS="$LIBS"
  9538. LIBS="$lt_cv_dlopen_libs $LIBS"
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9540. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9541. if ${lt_cv_dlopen_self+:} false; then :
  9542. $as_echo_n "(cached) " >&6
  9543. else
  9544. if test "$cross_compiling" = yes; then :
  9545. lt_cv_dlopen_self=cross
  9546. else
  9547. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9548. lt_status=$lt_dlunknown
  9549. cat > conftest.$ac_ext <<_LT_EOF
  9550. #line 11095 "configure"
  9551. #include "confdefs.h"
  9552. #if HAVE_DLFCN_H
  9553. #include <dlfcn.h>
  9554. #endif
  9555. #include <stdio.h>
  9556. #ifdef RTLD_GLOBAL
  9557. # define LT_DLGLOBAL RTLD_GLOBAL
  9558. #else
  9559. # ifdef DL_GLOBAL
  9560. # define LT_DLGLOBAL DL_GLOBAL
  9561. # else
  9562. # define LT_DLGLOBAL 0
  9563. # endif
  9564. #endif
  9565. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9566. find out it does not work in some platform. */
  9567. #ifndef LT_DLLAZY_OR_NOW
  9568. # ifdef RTLD_LAZY
  9569. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9570. # else
  9571. # ifdef DL_LAZY
  9572. # define LT_DLLAZY_OR_NOW DL_LAZY
  9573. # else
  9574. # ifdef RTLD_NOW
  9575. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9576. # else
  9577. # ifdef DL_NOW
  9578. # define LT_DLLAZY_OR_NOW DL_NOW
  9579. # else
  9580. # define LT_DLLAZY_OR_NOW 0
  9581. # endif
  9582. # endif
  9583. # endif
  9584. # endif
  9585. #endif
  9586. /* When -fvisbility=hidden is used, assume the code has been annotated
  9587. correspondingly for the symbols needed. */
  9588. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9589. void fnord () __attribute__((visibility("default")));
  9590. #endif
  9591. void fnord () { int i=42; }
  9592. int main ()
  9593. {
  9594. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9595. int status = $lt_dlunknown;
  9596. if (self)
  9597. {
  9598. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9599. else
  9600. {
  9601. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9602. else puts (dlerror ());
  9603. }
  9604. /* dlclose (self); */
  9605. }
  9606. else
  9607. puts (dlerror ());
  9608. return status;
  9609. }
  9610. _LT_EOF
  9611. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9612. (eval $ac_link) 2>&5
  9613. ac_status=$?
  9614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9615. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9616. (./conftest; exit; ) >&5 2>/dev/null
  9617. lt_status=$?
  9618. case x$lt_status in
  9619. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9620. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9621. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9622. esac
  9623. else :
  9624. # compilation failed
  9625. lt_cv_dlopen_self=no
  9626. fi
  9627. fi
  9628. rm -fr conftest*
  9629. fi
  9630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9631. $as_echo "$lt_cv_dlopen_self" >&6; }
  9632. if test "x$lt_cv_dlopen_self" = xyes; then
  9633. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9635. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9636. if ${lt_cv_dlopen_self_static+:} false; then :
  9637. $as_echo_n "(cached) " >&6
  9638. else
  9639. if test "$cross_compiling" = yes; then :
  9640. lt_cv_dlopen_self_static=cross
  9641. else
  9642. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9643. lt_status=$lt_dlunknown
  9644. cat > conftest.$ac_ext <<_LT_EOF
  9645. #line 11201 "configure"
  9646. #include "confdefs.h"
  9647. #if HAVE_DLFCN_H
  9648. #include <dlfcn.h>
  9649. #endif
  9650. #include <stdio.h>
  9651. #ifdef RTLD_GLOBAL
  9652. # define LT_DLGLOBAL RTLD_GLOBAL
  9653. #else
  9654. # ifdef DL_GLOBAL
  9655. # define LT_DLGLOBAL DL_GLOBAL
  9656. # else
  9657. # define LT_DLGLOBAL 0
  9658. # endif
  9659. #endif
  9660. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9661. find out it does not work in some platform. */
  9662. #ifndef LT_DLLAZY_OR_NOW
  9663. # ifdef RTLD_LAZY
  9664. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9665. # else
  9666. # ifdef DL_LAZY
  9667. # define LT_DLLAZY_OR_NOW DL_LAZY
  9668. # else
  9669. # ifdef RTLD_NOW
  9670. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9671. # else
  9672. # ifdef DL_NOW
  9673. # define LT_DLLAZY_OR_NOW DL_NOW
  9674. # else
  9675. # define LT_DLLAZY_OR_NOW 0
  9676. # endif
  9677. # endif
  9678. # endif
  9679. # endif
  9680. #endif
  9681. /* When -fvisbility=hidden is used, assume the code has been annotated
  9682. correspondingly for the symbols needed. */
  9683. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9684. void fnord () __attribute__((visibility("default")));
  9685. #endif
  9686. void fnord () { int i=42; }
  9687. int main ()
  9688. {
  9689. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9690. int status = $lt_dlunknown;
  9691. if (self)
  9692. {
  9693. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9694. else
  9695. {
  9696. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9697. else puts (dlerror ());
  9698. }
  9699. /* dlclose (self); */
  9700. }
  9701. else
  9702. puts (dlerror ());
  9703. return status;
  9704. }
  9705. _LT_EOF
  9706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9707. (eval $ac_link) 2>&5
  9708. ac_status=$?
  9709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9710. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9711. (./conftest; exit; ) >&5 2>/dev/null
  9712. lt_status=$?
  9713. case x$lt_status in
  9714. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9715. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9716. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9717. esac
  9718. else :
  9719. # compilation failed
  9720. lt_cv_dlopen_self_static=no
  9721. fi
  9722. fi
  9723. rm -fr conftest*
  9724. fi
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9726. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9727. fi
  9728. CPPFLAGS="$save_CPPFLAGS"
  9729. LDFLAGS="$save_LDFLAGS"
  9730. LIBS="$save_LIBS"
  9731. ;;
  9732. esac
  9733. case $lt_cv_dlopen_self in
  9734. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9735. *) enable_dlopen_self=unknown ;;
  9736. esac
  9737. case $lt_cv_dlopen_self_static in
  9738. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9739. *) enable_dlopen_self_static=unknown ;;
  9740. esac
  9741. fi
  9742. striplib=
  9743. old_striplib=
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9745. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9746. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9747. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9748. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9750. $as_echo "yes" >&6; }
  9751. else
  9752. # FIXME - insert some real tests, host_os isn't really good enough
  9753. case $host_os in
  9754. darwin*)
  9755. if test -n "$STRIP" ; then
  9756. striplib="$STRIP -x"
  9757. old_striplib="$STRIP -S"
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9759. $as_echo "yes" >&6; }
  9760. else
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9762. $as_echo "no" >&6; }
  9763. fi
  9764. ;;
  9765. *)
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9767. $as_echo "no" >&6; }
  9768. ;;
  9769. esac
  9770. fi
  9771. # Report which library types will actually be built
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9773. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9775. $as_echo "$can_build_shared" >&6; }
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9777. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9778. test "$can_build_shared" = "no" && enable_shared=no
  9779. # On AIX, shared libraries and static libraries use the same namespace, and
  9780. # are all built from PIC.
  9781. case $host_os in
  9782. aix3*)
  9783. test "$enable_shared" = yes && enable_static=no
  9784. if test -n "$RANLIB"; then
  9785. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9786. postinstall_cmds='$RANLIB $lib'
  9787. fi
  9788. ;;
  9789. aix[4-9]*)
  9790. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9791. test "$enable_shared" = yes && enable_static=no
  9792. fi
  9793. ;;
  9794. esac
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9796. $as_echo "$enable_shared" >&6; }
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9798. $as_echo_n "checking whether to build static libraries... " >&6; }
  9799. # Make sure either enable_shared or enable_static is yes.
  9800. test "$enable_shared" = yes || enable_static=yes
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9802. $as_echo "$enable_static" >&6; }
  9803. fi
  9804. ac_ext=c
  9805. ac_cpp='$CPP $CPPFLAGS'
  9806. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9807. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9808. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9809. CC="$lt_save_CC"
  9810. ac_config_commands="$ac_config_commands libtool"
  9811. # Only expand once:
  9812. # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
  9813. # The tests for host and target for $enable_largefile require
  9814. # canonical names.
  9815. # As the $enable_largefile decision depends on --enable-plugins we must set it
  9816. # even in directories otherwise not depending on the $plugins option.
  9817. maybe_plugins=no
  9818. for ac_header in dlfcn.h
  9819. do :
  9820. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9821. "
  9822. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9823. cat >>confdefs.h <<_ACEOF
  9824. #define HAVE_DLFCN_H 1
  9825. _ACEOF
  9826. maybe_plugins=yes
  9827. fi
  9828. done
  9829. for ac_header in windows.h
  9830. do :
  9831. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  9832. "
  9833. if test "x$ac_cv_header_windows_h" = xyes; then :
  9834. cat >>confdefs.h <<_ACEOF
  9835. #define HAVE_WINDOWS_H 1
  9836. _ACEOF
  9837. maybe_plugins=yes
  9838. fi
  9839. done
  9840. # Check whether --enable-plugins was given.
  9841. if test "${enable_plugins+set}" = set; then :
  9842. enableval=$enable_plugins; case "${enableval}" in
  9843. no) plugins=no ;;
  9844. *) plugins=yes
  9845. if test "$maybe_plugins" != "yes" ; then
  9846. as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  9847. fi ;;
  9848. esac
  9849. else
  9850. plugins=$maybe_plugins
  9851. fi
  9852. if test "$plugins" = "yes"; then
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  9854. $as_echo_n "checking for library containing dlsym... " >&6; }
  9855. if ${ac_cv_search_dlsym+:} false; then :
  9856. $as_echo_n "(cached) " >&6
  9857. else
  9858. ac_func_search_save_LIBS=$LIBS
  9859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9860. /* end confdefs.h. */
  9861. /* Override any GCC internal prototype to avoid an error.
  9862. Use char because int might match the return type of a GCC
  9863. builtin and then its argument prototype would still apply. */
  9864. #ifdef __cplusplus
  9865. extern "C"
  9866. #endif
  9867. char dlsym ();
  9868. int
  9869. main ()
  9870. {
  9871. return dlsym ();
  9872. ;
  9873. return 0;
  9874. }
  9875. _ACEOF
  9876. for ac_lib in '' dl; do
  9877. if test -z "$ac_lib"; then
  9878. ac_res="none required"
  9879. else
  9880. ac_res=-l$ac_lib
  9881. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9882. fi
  9883. if ac_fn_c_try_link "$LINENO"; then :
  9884. ac_cv_search_dlsym=$ac_res
  9885. fi
  9886. rm -f core conftest.err conftest.$ac_objext \
  9887. conftest$ac_exeext
  9888. if ${ac_cv_search_dlsym+:} false; then :
  9889. break
  9890. fi
  9891. done
  9892. if ${ac_cv_search_dlsym+:} false; then :
  9893. else
  9894. ac_cv_search_dlsym=no
  9895. fi
  9896. rm conftest.$ac_ext
  9897. LIBS=$ac_func_search_save_LIBS
  9898. fi
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  9900. $as_echo "$ac_cv_search_dlsym" >&6; }
  9901. ac_res=$ac_cv_search_dlsym
  9902. if test "$ac_res" != no; then :
  9903. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9904. fi
  9905. fi
  9906. case "${host}" in
  9907. sparc-*-solaris*|i?86-*-solaris*)
  9908. # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
  9909. # were mutually exclusive until Solaris 11.3. Without procfs support,
  9910. # the bfd/ elf module cannot provide certain routines such as
  9911. # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
  9912. # explicitly requested large-file support through the
  9913. # --enable-largefile switch, disable large-file support in favor of
  9914. # procfs support.
  9915. #
  9916. # Check if <sys/procfs.h> is incompatible with large-file support.
  9917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9918. /* end confdefs.h. */
  9919. #define _FILE_OFFSET_BITS 64
  9920. #define _STRUCTURED_PROC 1
  9921. #include <sys/procfs.h>
  9922. int
  9923. main ()
  9924. {
  9925. ;
  9926. return 0;
  9927. }
  9928. _ACEOF
  9929. if ac_fn_c_try_compile "$LINENO"; then :
  9930. acx_cv_procfs_lfs=yes
  9931. else
  9932. acx_cv_procfs_lfs=no
  9933. fi
  9934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9935. #
  9936. # Forcefully disable large-file support only if necessary, gdb is in
  9937. # tree and enabled.
  9938. if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
  9939. -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
  9940. : ${enable_largefile="no"}
  9941. if test "$plugins" = yes; then
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  9943. plugin support disabled; require large-file support which is incompatible with GDB." >&5
  9944. $as_echo "$as_me: WARNING:
  9945. plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
  9946. plugins=no
  9947. fi
  9948. fi
  9949. #
  9950. # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
  9951. # benefit of g++ 9+ which predefines it on Solaris.
  9952. if test "$enable_largefile" = no; then
  9953. LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
  9954. fi
  9955. ;;
  9956. esac
  9957. # Check whether --enable-largefile was given.
  9958. if test "${enable_largefile+set}" = set; then :
  9959. enableval=$enable_largefile;
  9960. fi
  9961. if test "$enable_largefile" != no; then
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  9963. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9964. if ${ac_cv_sys_largefile_CC+:} false; then :
  9965. $as_echo_n "(cached) " >&6
  9966. else
  9967. ac_cv_sys_largefile_CC=no
  9968. if test "$GCC" != yes; then
  9969. ac_save_CC=$CC
  9970. while :; do
  9971. # IRIX 6.2 and later do not support large files by default,
  9972. # so use the C compiler's -n32 option if that helps.
  9973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9974. /* end confdefs.h. */
  9975. #include <sys/types.h>
  9976. /* Check that off_t can represent 2**63 - 1 correctly.
  9977. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9978. since some C++ compilers masquerading as C compilers
  9979. incorrectly reject 9223372036854775807. */
  9980. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9981. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9982. && LARGE_OFF_T % 2147483647 == 1)
  9983. ? 1 : -1];
  9984. int
  9985. main ()
  9986. {
  9987. ;
  9988. return 0;
  9989. }
  9990. _ACEOF
  9991. if ac_fn_c_try_compile "$LINENO"; then :
  9992. break
  9993. fi
  9994. rm -f core conftest.err conftest.$ac_objext
  9995. CC="$CC -n32"
  9996. if ac_fn_c_try_compile "$LINENO"; then :
  9997. ac_cv_sys_largefile_CC=' -n32'; break
  9998. fi
  9999. rm -f core conftest.err conftest.$ac_objext
  10000. break
  10001. done
  10002. CC=$ac_save_CC
  10003. rm -f conftest.$ac_ext
  10004. fi
  10005. fi
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10007. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10008. if test "$ac_cv_sys_largefile_CC" != no; then
  10009. CC=$CC$ac_cv_sys_largefile_CC
  10010. fi
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10012. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10013. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10014. $as_echo_n "(cached) " >&6
  10015. else
  10016. while :; do
  10017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10018. /* end confdefs.h. */
  10019. #include <sys/types.h>
  10020. /* Check that off_t can represent 2**63 - 1 correctly.
  10021. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10022. since some C++ compilers masquerading as C compilers
  10023. incorrectly reject 9223372036854775807. */
  10024. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10025. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10026. && LARGE_OFF_T % 2147483647 == 1)
  10027. ? 1 : -1];
  10028. int
  10029. main ()
  10030. {
  10031. ;
  10032. return 0;
  10033. }
  10034. _ACEOF
  10035. if ac_fn_c_try_compile "$LINENO"; then :
  10036. ac_cv_sys_file_offset_bits=no; break
  10037. fi
  10038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10040. /* end confdefs.h. */
  10041. #define _FILE_OFFSET_BITS 64
  10042. #include <sys/types.h>
  10043. /* Check that off_t can represent 2**63 - 1 correctly.
  10044. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10045. since some C++ compilers masquerading as C compilers
  10046. incorrectly reject 9223372036854775807. */
  10047. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10048. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10049. && LARGE_OFF_T % 2147483647 == 1)
  10050. ? 1 : -1];
  10051. int
  10052. main ()
  10053. {
  10054. ;
  10055. return 0;
  10056. }
  10057. _ACEOF
  10058. if ac_fn_c_try_compile "$LINENO"; then :
  10059. ac_cv_sys_file_offset_bits=64; break
  10060. fi
  10061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10062. ac_cv_sys_file_offset_bits=unknown
  10063. break
  10064. done
  10065. fi
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10067. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10068. case $ac_cv_sys_file_offset_bits in #(
  10069. no | unknown) ;;
  10070. *)
  10071. cat >>confdefs.h <<_ACEOF
  10072. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10073. _ACEOF
  10074. ;;
  10075. esac
  10076. rm -rf conftest*
  10077. if test $ac_cv_sys_file_offset_bits = unknown; then
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10079. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10080. if ${ac_cv_sys_large_files+:} false; then :
  10081. $as_echo_n "(cached) " >&6
  10082. else
  10083. while :; do
  10084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10085. /* end confdefs.h. */
  10086. #include <sys/types.h>
  10087. /* Check that off_t can represent 2**63 - 1 correctly.
  10088. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10089. since some C++ compilers masquerading as C compilers
  10090. incorrectly reject 9223372036854775807. */
  10091. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10092. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10093. && LARGE_OFF_T % 2147483647 == 1)
  10094. ? 1 : -1];
  10095. int
  10096. main ()
  10097. {
  10098. ;
  10099. return 0;
  10100. }
  10101. _ACEOF
  10102. if ac_fn_c_try_compile "$LINENO"; then :
  10103. ac_cv_sys_large_files=no; break
  10104. fi
  10105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10107. /* end confdefs.h. */
  10108. #define _LARGE_FILES 1
  10109. #include <sys/types.h>
  10110. /* Check that off_t can represent 2**63 - 1 correctly.
  10111. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10112. since some C++ compilers masquerading as C compilers
  10113. incorrectly reject 9223372036854775807. */
  10114. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10115. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10116. && LARGE_OFF_T % 2147483647 == 1)
  10117. ? 1 : -1];
  10118. int
  10119. main ()
  10120. {
  10121. ;
  10122. return 0;
  10123. }
  10124. _ACEOF
  10125. if ac_fn_c_try_compile "$LINENO"; then :
  10126. ac_cv_sys_large_files=1; break
  10127. fi
  10128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10129. ac_cv_sys_large_files=unknown
  10130. break
  10131. done
  10132. fi
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10134. $as_echo "$ac_cv_sys_large_files" >&6; }
  10135. case $ac_cv_sys_large_files in #(
  10136. no | unknown) ;;
  10137. *)
  10138. cat >>confdefs.h <<_ACEOF
  10139. #define _LARGE_FILES $ac_cv_sys_large_files
  10140. _ACEOF
  10141. ;;
  10142. esac
  10143. rm -rf conftest*
  10144. fi
  10145. fi
  10146. case "${target}" in
  10147. hppa*64*-*-*) ;;
  10148. *-*-*aout*| i[3-7]86-*-msdos* | ns32k-*-* | pdp11-*-*)
  10149. if test "$plugins" = "yes"; then
  10150. if test "${enable_plugins+set}" = set; then
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5
  10152. $as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;}
  10153. else
  10154. plugins=no
  10155. fi
  10156. fi ;;
  10157. hppa*-*-hpux* | *-*-*vms* | \
  10158. powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*)
  10159. if test "$plugins" = "yes"; then
  10160. if test "${enable_plugins+set}" = set; then
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&5
  10162. $as_echo "$as_me: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&2;}
  10163. else
  10164. plugins=no
  10165. fi
  10166. fi ;;
  10167. esac
  10168. if test "$plugins" = "yes"; then
  10169. PLUGINS_TRUE=
  10170. PLUGINS_FALSE='#'
  10171. else
  10172. PLUGINS_TRUE='#'
  10173. PLUGINS_FALSE=
  10174. fi
  10175. ac_checking=
  10176. . ${srcdir}/development.sh
  10177. test "$development" = true && ac_checking=yes
  10178. # Check whether --enable-checking was given.
  10179. if test "${enable_checking+set}" = set; then :
  10180. enableval=$enable_checking; case "${enableval}" in
  10181. no|none) ac_checking= ;;
  10182. *) ac_checking=yes ;;
  10183. esac
  10184. fi
  10185. if test x$ac_checking != x ; then
  10186. $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
  10187. fi
  10188. # Check whether --enable-64-bit-bfd was given.
  10189. if test "${enable_64_bit_bfd+set}" = set; then :
  10190. enableval=$enable_64_bit_bfd; case $enableval in #(
  10191. yes|no) :
  10192. ;; #(
  10193. *) :
  10194. as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
  10195. *) :
  10196. ;;
  10197. esac
  10198. else
  10199. enable_64_bit_bfd=no
  10200. fi
  10201. if test "x$enable_64_bit_bfd" = "xno"; then :
  10202. # The cast to long int works around a bug in the HP C Compiler
  10203. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10204. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10205. # This bug is HP SR number 8606223364.
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  10207. $as_echo_n "checking size of void *... " >&6; }
  10208. if ${ac_cv_sizeof_void_p+:} false; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  10212. else
  10213. if test "$ac_cv_type_void_p" = yes; then
  10214. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10215. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10216. as_fn_error 77 "cannot compute sizeof (void *)
  10217. See \`config.log' for more details" "$LINENO" 5; }
  10218. else
  10219. ac_cv_sizeof_void_p=0
  10220. fi
  10221. fi
  10222. fi
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  10224. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  10225. cat >>confdefs.h <<_ACEOF
  10226. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  10227. _ACEOF
  10228. if test "x$ac_cv_sizeof_void_p" = "x8"; then :
  10229. enable_64_bit_bfd=yes
  10230. fi
  10231. fi
  10232. if test "x$enable_64_bit_bfd" = "xyes"; then
  10233. ENABLE_BFD_64_BIT_TRUE=
  10234. ENABLE_BFD_64_BIT_FALSE='#'
  10235. else
  10236. ENABLE_BFD_64_BIT_TRUE='#'
  10237. ENABLE_BFD_64_BIT_FALSE=
  10238. fi
  10239. if test $enable_64_bit_bfd = yes ; then
  10240. want64=true
  10241. else
  10242. want64=false
  10243. fi
  10244. # Check whether --enable-targets was given.
  10245. if test "${enable_targets+set}" = set; then :
  10246. enableval=$enable_targets; case "${enableval}" in
  10247. yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
  10248. ;;
  10249. no) enable_targets= ;;
  10250. *) enable_targets=$enableval ;;
  10251. esac
  10252. fi
  10253. # Check whether --enable-64_bit_archive was given.
  10254. if test "${enable_64_bit_archive+set}" = set; then :
  10255. enableval=$enable_64_bit_archive; case "${enableval}" in
  10256. yes) want_64_bit_archive=true ;;
  10257. no) want_64_bit_archive=false ;;
  10258. *) as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
  10259. esac
  10260. else
  10261. want_64_bit_archive=unset
  10262. fi
  10263. # Check whether --with-mmap was given.
  10264. if test "${with_mmap+set}" = set; then :
  10265. withval=$with_mmap; case "${withval}" in
  10266. yes) want_mmap=true ;;
  10267. no) want_mmap=false ;;
  10268. *) as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
  10269. esac
  10270. else
  10271. want_mmap=false
  10272. fi
  10273. # Check whether --enable-secureplt was given.
  10274. if test "${enable_secureplt+set}" = set; then :
  10275. enableval=$enable_secureplt; case "${enableval}" in
  10276. yes) use_secureplt=true ;;
  10277. no) use_secureplt=false ;;
  10278. *) as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
  10279. esac
  10280. else
  10281. use_secureplt=true
  10282. fi
  10283. if test $use_secureplt = true; then
  10284. $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
  10285. fi
  10286. # Decide if -z separate-code should be enabled in ELF linker by default.
  10287. ac_default_ld_z_separate_code=unset
  10288. # Check whether --enable-separate-code was given.
  10289. if test "${enable_separate_code+set}" = set; then :
  10290. enableval=$enable_separate_code; case "${enableval}" in
  10291. yes) ac_default_ld_z_separate_code=1 ;;
  10292. no) ac_default_ld_z_separate_code=0 ;;
  10293. esac
  10294. fi
  10295. # Enable -z separate-code by default for Linux/x86.
  10296. case "${target}" in
  10297. i[3-7]86-*-linux-* | x86_64-*-linux-*)
  10298. if test ${ac_default_ld_z_separate_code} = unset; then
  10299. ac_default_ld_z_separate_code=1
  10300. fi
  10301. ;;
  10302. esac
  10303. if test "${ac_default_ld_z_separate_code}" = unset; then
  10304. ac_default_ld_z_separate_code=0
  10305. fi
  10306. cat >>confdefs.h <<_ACEOF
  10307. #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
  10308. _ACEOF
  10309. # Check whether --enable-leading-mingw64-underscores was given.
  10310. if test "${enable_leading_mingw64_underscores+set}" = set; then :
  10311. enableval=$enable_leading_mingw64_underscores;
  10312. fi
  10313. if test x"$enable_leading_mingw64_underscores" = xyes ; then :
  10314. $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
  10315. fi
  10316. DEBUGDIR=${libdir}/debug
  10317. # Check whether --with-separate-debug-dir was given.
  10318. if test "${with_separate_debug_dir+set}" = set; then :
  10319. withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
  10320. fi
  10321. # Check whether --with-pkgversion was given.
  10322. if test "${with_pkgversion+set}" = set; then :
  10323. withval=$with_pkgversion; case "$withval" in
  10324. yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
  10325. no) PKGVERSION= ;;
  10326. *) PKGVERSION="($withval) " ;;
  10327. esac
  10328. else
  10329. PKGVERSION="(GNU Binutils) "
  10330. fi
  10331. # Check whether --with-bugurl was given.
  10332. if test "${with_bugurl+set}" = set; then :
  10333. withval=$with_bugurl; case "$withval" in
  10334. yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
  10335. no) BUGURL=
  10336. ;;
  10337. *) BUGURL="$withval"
  10338. ;;
  10339. esac
  10340. else
  10341. BUGURL="https://sourceware.org/bugzilla/"
  10342. fi
  10343. case ${BUGURL} in
  10344. "")
  10345. REPORT_BUGS_TO=
  10346. REPORT_BUGS_TEXI=
  10347. ;;
  10348. *)
  10349. REPORT_BUGS_TO="<$BUGURL>"
  10350. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10351. ;;
  10352. esac;
  10353. # Set the 'development' global.
  10354. . $srcdir/../bfd/development.sh
  10355. # Set acp_cpp_for_build variable
  10356. ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
  10357. # Default set of GCC warnings to enable.
  10358. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10359. GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10360. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  10361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10362. /* end confdefs.h. */
  10363. __GNUC__
  10364. _ACEOF
  10365. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10366. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10367. else
  10368. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  10369. fi
  10370. rm -f conftest*
  10371. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  10372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10373. /* end confdefs.h. */
  10374. __GNUC__
  10375. _ACEOF
  10376. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10377. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10378. else
  10379. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
  10380. fi
  10381. rm -f conftest*
  10382. # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
  10383. WARN_WRITE_STRINGS=""
  10384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10385. /* end confdefs.h. */
  10386. __GNUC__
  10387. _ACEOF
  10388. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10389. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10390. else
  10391. WARN_WRITE_STRINGS="-Wwrite-strings"
  10392. fi
  10393. rm -f conftest*
  10394. # Verify CC_FOR_BUILD to be compatible with warning flags
  10395. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  10396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10397. /* end confdefs.h. */
  10398. __GNUC__
  10399. _ACEOF
  10400. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  10401. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10402. else
  10403. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
  10404. fi
  10405. rm -f conftest*
  10406. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  10407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10408. /* end confdefs.h. */
  10409. __GNUC__
  10410. _ACEOF
  10411. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  10412. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10413. else
  10414. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
  10415. fi
  10416. rm -f conftest*
  10417. # Check whether --enable-werror was given.
  10418. if test "${enable_werror+set}" = set; then :
  10419. enableval=$enable_werror; case "${enableval}" in
  10420. yes | y) ERROR_ON_WARNING="yes" ;;
  10421. no | n) ERROR_ON_WARNING="no" ;;
  10422. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10423. esac
  10424. fi
  10425. # Disable -Wformat by default when using gcc on mingw
  10426. case "${host}" in
  10427. *-*-mingw32*)
  10428. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10429. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  10430. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
  10431. fi
  10432. ;;
  10433. *) ;;
  10434. esac
  10435. # Enable -Werror by default when using gcc. Turn it off for releases.
  10436. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  10437. ERROR_ON_WARNING=yes
  10438. fi
  10439. NO_WERROR=
  10440. if test "${ERROR_ON_WARNING}" = yes ; then
  10441. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  10442. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
  10443. NO_WERROR="-Wno-error"
  10444. fi
  10445. if test "${GCC}" = yes ; then
  10446. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10447. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
  10448. fi
  10449. # Check whether --enable-build-warnings was given.
  10450. if test "${enable_build_warnings+set}" = set; then :
  10451. enableval=$enable_build_warnings; case "${enableval}" in
  10452. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10453. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
  10454. no) if test "${GCC}" = yes ; then
  10455. WARN_CFLAGS="-w"
  10456. WARN_CFLAGS_FOR_BUILD="-w"
  10457. fi;;
  10458. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10459. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
  10460. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
  10461. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10462. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
  10463. WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
  10464. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
  10465. WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10466. esac
  10467. fi
  10468. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  10469. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  10470. fi
  10471. ac_config_headers="$ac_config_headers config.h:config.in"
  10472. # PR 14072
  10473. if test -z "$target" ; then
  10474. as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
  10475. fi
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10477. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10478. # Check whether --enable-maintainer-mode was given.
  10479. if test "${enable_maintainer_mode+set}" = set; then :
  10480. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10481. else
  10482. USE_MAINTAINER_MODE=no
  10483. fi
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10485. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10486. if test $USE_MAINTAINER_MODE = yes; then
  10487. MAINTAINER_MODE_TRUE=
  10488. MAINTAINER_MODE_FALSE='#'
  10489. else
  10490. MAINTAINER_MODE_TRUE='#'
  10491. MAINTAINER_MODE_FALSE=
  10492. fi
  10493. MAINT=$MAINTAINER_MODE_TRUE
  10494. if false; then
  10495. GENINSRC_NEVER_TRUE=
  10496. GENINSRC_NEVER_FALSE='#'
  10497. else
  10498. GENINSRC_NEVER_TRUE='#'
  10499. GENINSRC_NEVER_FALSE=
  10500. fi
  10501. case ${build_alias} in
  10502. "") build_noncanonical=${build} ;;
  10503. *) build_noncanonical=${build_alias} ;;
  10504. esac
  10505. case ${host_alias} in
  10506. "") host_noncanonical=${build_noncanonical} ;;
  10507. *) host_noncanonical=${host_alias} ;;
  10508. esac
  10509. case ${target_alias} in
  10510. "") target_noncanonical=${host_noncanonical} ;;
  10511. *) target_noncanonical=${target_alias} ;;
  10512. esac
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
  10514. $as_echo_n "checking whether to install libbfd... " >&6; }
  10515. # Check whether --enable-install-libbfd was given.
  10516. if test "${enable_install_libbfd+set}" = set; then :
  10517. enableval=$enable_install_libbfd; install_libbfd_p=$enableval
  10518. else
  10519. if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
  10520. install_libbfd_p=yes
  10521. else
  10522. install_libbfd_p=no
  10523. fi
  10524. fi
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
  10526. $as_echo "$install_libbfd_p" >&6; }
  10527. if test $install_libbfd_p = yes; then
  10528. INSTALL_LIBBFD_TRUE=
  10529. INSTALL_LIBBFD_FALSE='#'
  10530. else
  10531. INSTALL_LIBBFD_TRUE='#'
  10532. INSTALL_LIBBFD_FALSE=
  10533. fi
  10534. # Need _noncanonical variables for this.
  10535. # libbfd.a is a host library containing target dependent code
  10536. bfdlibdir='$(libdir)'
  10537. bfdincludedir='$(includedir)'
  10538. if test "${host}" != "${target}"; then
  10539. bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
  10540. bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
  10541. fi
  10542. host64=false
  10543. target64=false
  10544. bfd_default_target_size=32
  10545. # host stuff:
  10546. ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
  10547. # If we haven't got the data from the intl directory,
  10548. # assume NLS is disabled.
  10549. USE_NLS=no
  10550. LIBINTL=
  10551. LIBINTL_DEP=
  10552. INCINTL=
  10553. XGETTEXT=
  10554. GMSGFMT=
  10555. POSUB=
  10556. if test -f ../intl/config.intl; then
  10557. . ../intl/config.intl
  10558. fi
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10560. $as_echo_n "checking whether NLS is requested... " >&6; }
  10561. if test x"$USE_NLS" != xyes; then
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10563. $as_echo "no" >&6; }
  10564. else
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10566. $as_echo "yes" >&6; }
  10567. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  10569. $as_echo_n "checking for catalogs to be installed... " >&6; }
  10570. # Look for .po and .gmo files in the source directory.
  10571. CATALOGS=
  10572. XLINGUAS=
  10573. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  10574. # If there aren't any .gmo files the shell will give us the
  10575. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  10576. # weeded out.
  10577. case "$cat" in *\**)
  10578. continue;;
  10579. esac
  10580. # The quadruple backslash is collapsed to a double backslash
  10581. # by the backticks, then collapsed again by the double quotes,
  10582. # leaving us with one backslash in the sed expression (right
  10583. # before the dot that mustn't act as a wildcard).
  10584. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  10585. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  10586. # The user is allowed to set LINGUAS to a list of languages to
  10587. # install catalogs for. If it's empty that means "all of them."
  10588. if test "x$LINGUAS" = x; then
  10589. CATALOGS="$CATALOGS $cat"
  10590. XLINGUAS="$XLINGUAS $lang"
  10591. else
  10592. case "$LINGUAS" in *$lang*)
  10593. CATALOGS="$CATALOGS $cat"
  10594. XLINGUAS="$XLINGUAS $lang"
  10595. ;;
  10596. esac
  10597. fi
  10598. done
  10599. LINGUAS="$XLINGUAS"
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  10601. $as_echo "$LINGUAS" >&6; }
  10602. DATADIRNAME=share
  10603. INSTOBJEXT=.mo
  10604. GENCAT=gencat
  10605. CATOBJEXT=.gmo
  10606. fi
  10607. MKINSTALLDIRS=
  10608. if test -n "$ac_aux_dir"; then
  10609. case "$ac_aux_dir" in
  10610. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  10611. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  10612. esac
  10613. fi
  10614. if test -z "$MKINSTALLDIRS"; then
  10615. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  10616. fi
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10618. $as_echo_n "checking whether NLS is requested... " >&6; }
  10619. # Check whether --enable-nls was given.
  10620. if test "${enable_nls+set}" = set; then :
  10621. enableval=$enable_nls; USE_NLS=$enableval
  10622. else
  10623. USE_NLS=yes
  10624. fi
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  10626. $as_echo "$USE_NLS" >&6; }
  10627. # Prepare PATH_SEPARATOR.
  10628. # The user is always right.
  10629. if test "${PATH_SEPARATOR+set}" != set; then
  10630. echo "#! /bin/sh" >conf$$.sh
  10631. echo "exit 0" >>conf$$.sh
  10632. chmod +x conf$$.sh
  10633. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10634. PATH_SEPARATOR=';'
  10635. else
  10636. PATH_SEPARATOR=:
  10637. fi
  10638. rm -f conf$$.sh
  10639. fi
  10640. # Find out how to test for executable files. Don't use a zero-byte file,
  10641. # as systems may use methods other than mode bits to determine executability.
  10642. cat >conf$$.file <<_ASEOF
  10643. #! /bin/sh
  10644. exit 0
  10645. _ASEOF
  10646. chmod +x conf$$.file
  10647. if test -x conf$$.file >/dev/null 2>&1; then
  10648. ac_executable_p="test -x"
  10649. else
  10650. ac_executable_p="test -f"
  10651. fi
  10652. rm -f conf$$.file
  10653. # Extract the first word of "msgfmt", so it can be a program name with args.
  10654. set dummy msgfmt; ac_word=$2
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10656. $as_echo_n "checking for $ac_word... " >&6; }
  10657. if ${ac_cv_path_MSGFMT+:} false; then :
  10658. $as_echo_n "(cached) " >&6
  10659. else
  10660. case "$MSGFMT" in
  10661. [\\/]* | ?:[\\/]*)
  10662. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10663. ;;
  10664. *)
  10665. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10666. for ac_dir in $PATH; do
  10667. IFS="$ac_save_IFS"
  10668. test -z "$ac_dir" && ac_dir=.
  10669. for ac_exec_ext in '' $ac_executable_extensions; do
  10670. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10671. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  10672. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10673. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10674. break 2
  10675. fi
  10676. fi
  10677. done
  10678. done
  10679. IFS="$ac_save_IFS"
  10680. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10681. ;;
  10682. esac
  10683. fi
  10684. MSGFMT="$ac_cv_path_MSGFMT"
  10685. if test "$MSGFMT" != ":"; then
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  10687. $as_echo "$MSGFMT" >&6; }
  10688. else
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10690. $as_echo "no" >&6; }
  10691. fi
  10692. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10693. set dummy gmsgfmt; ac_word=$2
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10695. $as_echo_n "checking for $ac_word... " >&6; }
  10696. if ${ac_cv_path_GMSGFMT+:} false; then :
  10697. $as_echo_n "(cached) " >&6
  10698. else
  10699. case $GMSGFMT in
  10700. [\\/]* | ?:[\\/]*)
  10701. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10702. ;;
  10703. *)
  10704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10705. for as_dir in $PATH
  10706. do
  10707. IFS=$as_save_IFS
  10708. test -z "$as_dir" && as_dir=.
  10709. for ac_exec_ext in '' $ac_executable_extensions; do
  10710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10711. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10713. break 2
  10714. fi
  10715. done
  10716. done
  10717. IFS=$as_save_IFS
  10718. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10719. ;;
  10720. esac
  10721. fi
  10722. GMSGFMT=$ac_cv_path_GMSGFMT
  10723. if test -n "$GMSGFMT"; then
  10724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  10725. $as_echo "$GMSGFMT" >&6; }
  10726. else
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10728. $as_echo "no" >&6; }
  10729. fi
  10730. # Prepare PATH_SEPARATOR.
  10731. # The user is always right.
  10732. if test "${PATH_SEPARATOR+set}" != set; then
  10733. echo "#! /bin/sh" >conf$$.sh
  10734. echo "exit 0" >>conf$$.sh
  10735. chmod +x conf$$.sh
  10736. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10737. PATH_SEPARATOR=';'
  10738. else
  10739. PATH_SEPARATOR=:
  10740. fi
  10741. rm -f conf$$.sh
  10742. fi
  10743. # Find out how to test for executable files. Don't use a zero-byte file,
  10744. # as systems may use methods other than mode bits to determine executability.
  10745. cat >conf$$.file <<_ASEOF
  10746. #! /bin/sh
  10747. exit 0
  10748. _ASEOF
  10749. chmod +x conf$$.file
  10750. if test -x conf$$.file >/dev/null 2>&1; then
  10751. ac_executable_p="test -x"
  10752. else
  10753. ac_executable_p="test -f"
  10754. fi
  10755. rm -f conf$$.file
  10756. # Extract the first word of "xgettext", so it can be a program name with args.
  10757. set dummy xgettext; ac_word=$2
  10758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10759. $as_echo_n "checking for $ac_word... " >&6; }
  10760. if ${ac_cv_path_XGETTEXT+:} false; then :
  10761. $as_echo_n "(cached) " >&6
  10762. else
  10763. case "$XGETTEXT" in
  10764. [\\/]* | ?:[\\/]*)
  10765. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10766. ;;
  10767. *)
  10768. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10769. for ac_dir in $PATH; do
  10770. IFS="$ac_save_IFS"
  10771. test -z "$ac_dir" && ac_dir=.
  10772. for ac_exec_ext in '' $ac_executable_extensions; do
  10773. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10774. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10775. (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
  10776. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10777. break 2
  10778. fi
  10779. fi
  10780. done
  10781. done
  10782. IFS="$ac_save_IFS"
  10783. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10784. ;;
  10785. esac
  10786. fi
  10787. XGETTEXT="$ac_cv_path_XGETTEXT"
  10788. if test "$XGETTEXT" != ":"; then
  10789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  10790. $as_echo "$XGETTEXT" >&6; }
  10791. else
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10793. $as_echo "no" >&6; }
  10794. fi
  10795. rm -f messages.po
  10796. # Prepare PATH_SEPARATOR.
  10797. # The user is always right.
  10798. if test "${PATH_SEPARATOR+set}" != set; then
  10799. echo "#! /bin/sh" >conf$$.sh
  10800. echo "exit 0" >>conf$$.sh
  10801. chmod +x conf$$.sh
  10802. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10803. PATH_SEPARATOR=';'
  10804. else
  10805. PATH_SEPARATOR=:
  10806. fi
  10807. rm -f conf$$.sh
  10808. fi
  10809. # Find out how to test for executable files. Don't use a zero-byte file,
  10810. # as systems may use methods other than mode bits to determine executability.
  10811. cat >conf$$.file <<_ASEOF
  10812. #! /bin/sh
  10813. exit 0
  10814. _ASEOF
  10815. chmod +x conf$$.file
  10816. if test -x conf$$.file >/dev/null 2>&1; then
  10817. ac_executable_p="test -x"
  10818. else
  10819. ac_executable_p="test -f"
  10820. fi
  10821. rm -f conf$$.file
  10822. # Extract the first word of "msgmerge", so it can be a program name with args.
  10823. set dummy msgmerge; ac_word=$2
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10825. $as_echo_n "checking for $ac_word... " >&6; }
  10826. if ${ac_cv_path_MSGMERGE+:} false; then :
  10827. $as_echo_n "(cached) " >&6
  10828. else
  10829. case "$MSGMERGE" in
  10830. [\\/]* | ?:[\\/]*)
  10831. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10832. ;;
  10833. *)
  10834. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10835. for ac_dir in $PATH; do
  10836. IFS="$ac_save_IFS"
  10837. test -z "$ac_dir" && ac_dir=.
  10838. for ac_exec_ext in '' $ac_executable_extensions; do
  10839. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10840. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  10841. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10842. break 2
  10843. fi
  10844. fi
  10845. done
  10846. done
  10847. IFS="$ac_save_IFS"
  10848. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10849. ;;
  10850. esac
  10851. fi
  10852. MSGMERGE="$ac_cv_path_MSGMERGE"
  10853. if test "$MSGMERGE" != ":"; then
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  10855. $as_echo "$MSGMERGE" >&6; }
  10856. else
  10857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10858. $as_echo "no" >&6; }
  10859. fi
  10860. if test "$GMSGFMT" != ":"; then
  10861. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  10862. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10863. : ;
  10864. else
  10865. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  10867. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  10868. GMSGFMT=":"
  10869. fi
  10870. fi
  10871. if test "$XGETTEXT" != ":"; then
  10872. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10873. (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
  10874. : ;
  10875. else
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  10877. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  10878. XGETTEXT=":"
  10879. fi
  10880. rm -f messages.po
  10881. fi
  10882. ac_config_commands="$ac_config_commands default-1"
  10883. # Permit host specific settings.
  10884. . ${srcdir}/configure.host
  10885. BFD_HOST_64BIT_LONG=0
  10886. BFD_HOST_64BIT_LONG_LONG=0
  10887. BFD_HOST_64_BIT_DEFINED=0
  10888. BFD_HOST_64_BIT=
  10889. BFD_HOST_U_64_BIT=
  10890. BFD_HOSTPTR_T="unsigned long"
  10891. # The cast to long int works around a bug in the HP C Compiler
  10892. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10893. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10894. # This bug is HP SR number 8606223364.
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  10896. $as_echo_n "checking size of long long... " >&6; }
  10897. if ${ac_cv_sizeof_long_long+:} false; then :
  10898. $as_echo_n "(cached) " >&6
  10899. else
  10900. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  10901. else
  10902. if test "$ac_cv_type_long_long" = yes; then
  10903. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10904. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10905. as_fn_error 77 "cannot compute sizeof (long long)
  10906. See \`config.log' for more details" "$LINENO" 5; }
  10907. else
  10908. ac_cv_sizeof_long_long=0
  10909. fi
  10910. fi
  10911. fi
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  10913. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  10914. cat >>confdefs.h <<_ACEOF
  10915. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10916. _ACEOF
  10917. # The cast to long int works around a bug in the HP C Compiler
  10918. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10919. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10920. # This bug is HP SR number 8606223364.
  10921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  10922. $as_echo_n "checking size of void *... " >&6; }
  10923. if ${ac_cv_sizeof_void_p+:} false; then :
  10924. $as_echo_n "(cached) " >&6
  10925. else
  10926. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  10927. else
  10928. if test "$ac_cv_type_void_p" = yes; then
  10929. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10930. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10931. as_fn_error 77 "cannot compute sizeof (void *)
  10932. See \`config.log' for more details" "$LINENO" 5; }
  10933. else
  10934. ac_cv_sizeof_void_p=0
  10935. fi
  10936. fi
  10937. fi
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  10939. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  10940. cat >>confdefs.h <<_ACEOF
  10941. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  10942. _ACEOF
  10943. # The cast to long int works around a bug in the HP C Compiler
  10944. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10945. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10946. # This bug is HP SR number 8606223364.
  10947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10948. $as_echo_n "checking size of long... " >&6; }
  10949. if ${ac_cv_sizeof_long+:} false; then :
  10950. $as_echo_n "(cached) " >&6
  10951. else
  10952. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10953. else
  10954. if test "$ac_cv_type_long" = yes; then
  10955. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10956. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10957. as_fn_error 77 "cannot compute sizeof (long)
  10958. See \`config.log' for more details" "$LINENO" 5; }
  10959. else
  10960. ac_cv_sizeof_long=0
  10961. fi
  10962. fi
  10963. fi
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10965. $as_echo "$ac_cv_sizeof_long" >&6; }
  10966. cat >>confdefs.h <<_ACEOF
  10967. #define SIZEOF_LONG $ac_cv_sizeof_long
  10968. _ACEOF
  10969. # The cast to long int works around a bug in the HP C Compiler
  10970. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10971. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10972. # This bug is HP SR number 8606223364.
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10974. $as_echo_n "checking size of int... " >&6; }
  10975. if ${ac_cv_sizeof_int+:} false; then :
  10976. $as_echo_n "(cached) " >&6
  10977. else
  10978. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10979. else
  10980. if test "$ac_cv_type_int" = yes; then
  10981. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10983. as_fn_error 77 "cannot compute sizeof (int)
  10984. See \`config.log' for more details" "$LINENO" 5; }
  10985. else
  10986. ac_cv_sizeof_int=0
  10987. fi
  10988. fi
  10989. fi
  10990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10991. $as_echo "$ac_cv_sizeof_int" >&6; }
  10992. cat >>confdefs.h <<_ACEOF
  10993. #define SIZEOF_INT $ac_cv_sizeof_int
  10994. _ACEOF
  10995. if test "x${ac_cv_sizeof_void_p}" = "x8"; then
  10996. host64=true
  10997. fi
  10998. if test "x${ac_cv_sizeof_long}" = "x8"; then
  10999. BFD_HOST_64BIT_LONG=1
  11000. test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
  11001. test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
  11002. elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
  11003. BFD_HOST_64BIT_LONG_LONG=1
  11004. test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
  11005. test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
  11006. if test "x${ac_cv_sizeof_void_p}" = "x8"; then
  11007. BFD_HOSTPTR_T="unsigned long long"
  11008. fi
  11009. fi
  11010. if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
  11011. BFD_HOST_64_BIT_DEFINED=1
  11012. BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
  11013. BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
  11014. fi
  11015. # Put a plausible default for CC_FOR_BUILD in Makefile.
  11016. if test -z "$CC_FOR_BUILD"; then
  11017. if test "x$cross_compiling" = "xno"; then
  11018. CC_FOR_BUILD='$(CC)'
  11019. else
  11020. CC_FOR_BUILD=gcc
  11021. fi
  11022. fi
  11023. # Also set EXEEXT_FOR_BUILD.
  11024. if test "x$cross_compiling" = "xno"; then
  11025. EXEEXT_FOR_BUILD='$(EXEEXT)'
  11026. else
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
  11028. $as_echo_n "checking for build system executable suffix... " >&6; }
  11029. if ${bfd_cv_build_exeext+:} false; then :
  11030. $as_echo_n "(cached) " >&6
  11031. else
  11032. rm -f conftest*
  11033. echo 'int main () { return 0; }' > conftest.c
  11034. bfd_cv_build_exeext=
  11035. ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
  11036. for file in conftest.*; do
  11037. case $file in
  11038. *.c | *.o | *.obj | *.ilk | *.pdb) ;;
  11039. *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  11040. esac
  11041. done
  11042. rm -f conftest*
  11043. test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
  11044. fi
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
  11046. $as_echo "$bfd_cv_build_exeext" >&6; }
  11047. EXEEXT_FOR_BUILD=""
  11048. test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
  11049. fi
  11050. for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \
  11051. unistd.h
  11052. do :
  11053. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11054. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11055. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11056. cat >>confdefs.h <<_ACEOF
  11057. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11058. _ACEOF
  11059. fi
  11060. done
  11061. for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \
  11062. sysconf
  11063. do :
  11064. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11065. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11066. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11067. cat >>confdefs.h <<_ACEOF
  11068. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11069. _ACEOF
  11070. fi
  11071. done
  11072. ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
  11073. if test "x$ac_cv_have_decl_basename" = xyes; then :
  11074. ac_have_decl=1
  11075. else
  11076. ac_have_decl=0
  11077. fi
  11078. cat >>confdefs.h <<_ACEOF
  11079. #define HAVE_DECL_BASENAME $ac_have_decl
  11080. _ACEOF
  11081. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  11082. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  11083. ac_have_decl=1
  11084. else
  11085. ac_have_decl=0
  11086. fi
  11087. cat >>confdefs.h <<_ACEOF
  11088. #define HAVE_DECL_FFS $ac_have_decl
  11089. _ACEOF
  11090. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  11091. if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
  11092. ac_have_decl=1
  11093. else
  11094. ac_have_decl=0
  11095. fi
  11096. cat >>confdefs.h <<_ACEOF
  11097. #define HAVE_DECL_STPCPY $ac_have_decl
  11098. _ACEOF
  11099. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  11100. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  11101. ac_have_decl=1
  11102. else
  11103. ac_have_decl=0
  11104. fi
  11105. cat >>confdefs.h <<_ACEOF
  11106. #define HAVE_DECL_ASPRINTF $ac_have_decl
  11107. _ACEOF
  11108. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  11109. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  11110. ac_have_decl=1
  11111. else
  11112. ac_have_decl=0
  11113. fi
  11114. cat >>confdefs.h <<_ACEOF
  11115. #define HAVE_DECL_VASPRINTF $ac_have_decl
  11116. _ACEOF
  11117. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  11118. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  11119. ac_have_decl=1
  11120. else
  11121. ac_have_decl=0
  11122. fi
  11123. cat >>confdefs.h <<_ACEOF
  11124. #define HAVE_DECL_STRNLEN $ac_have_decl
  11125. _ACEOF
  11126. case "${host}" in
  11127. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  11128. $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
  11129. ;;
  11130. esac
  11131. # Link in zlib if we can. This allows us to read compressed debug sections.
  11132. # This is used only by compress.c.
  11133. # Use the system's zlib library.
  11134. zlibdir="-L\$(top_builddir)/../zlib"
  11135. zlibinc="-I\$(top_srcdir)/../zlib"
  11136. # Check whether --with-system-zlib was given.
  11137. if test "${with_system_zlib+set}" = set; then :
  11138. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  11139. zlibdir=
  11140. zlibinc=
  11141. fi
  11142. fi
  11143. save_CFLAGS="$CFLAGS"
  11144. CFLAGS="$CFLAGS -Werror"
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5
  11146. $as_echo_n "checking compiler support for hidden visibility... " >&6; }
  11147. if ${bfd_cv_hidden+:} false; then :
  11148. $as_echo_n "(cached) " >&6
  11149. else
  11150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11151. /* end confdefs.h. */
  11152. const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
  11153. extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));
  11154. int
  11155. main ()
  11156. {
  11157. print (hw);
  11158. ;
  11159. return 0;
  11160. }
  11161. _ACEOF
  11162. if ac_fn_c_try_compile "$LINENO"; then :
  11163. bfd_cv_hidden=yes
  11164. else
  11165. bfd_cv_hidden=no
  11166. fi
  11167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11168. fi
  11169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5
  11170. $as_echo "$bfd_cv_hidden" >&6; }
  11171. CFLAGS="$save_CFLAGS"
  11172. if test $bfd_cv_hidden = yes; then
  11173. $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
  11174. fi
  11175. # Check if linker supports --as-needed and --no-as-needed options
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
  11177. $as_echo_n "checking linker --as-needed support... " >&6; }
  11178. if ${bfd_cv_ld_as_needed+:} false; then :
  11179. $as_echo_n "(cached) " >&6
  11180. else
  11181. bfd_cv_ld_as_needed=no
  11182. if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
  11183. bfd_cv_ld_as_needed=yes
  11184. fi
  11185. fi
  11186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
  11187. $as_echo "$bfd_cv_ld_as_needed" >&6; }
  11188. LIBM=
  11189. case $host in
  11190. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  11191. # These system don't have libm, or don't need it
  11192. ;;
  11193. *-ncr-sysv4.3*)
  11194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  11195. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  11196. if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
  11197. $as_echo_n "(cached) " >&6
  11198. else
  11199. ac_check_lib_save_LIBS=$LIBS
  11200. LIBS="-lmw $LIBS"
  11201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11202. /* end confdefs.h. */
  11203. /* Override any GCC internal prototype to avoid an error.
  11204. Use char because int might match the return type of a GCC
  11205. builtin and then its argument prototype would still apply. */
  11206. #ifdef __cplusplus
  11207. extern "C"
  11208. #endif
  11209. char _mwvalidcheckl ();
  11210. int
  11211. main ()
  11212. {
  11213. return _mwvalidcheckl ();
  11214. ;
  11215. return 0;
  11216. }
  11217. _ACEOF
  11218. if ac_fn_c_try_link "$LINENO"; then :
  11219. ac_cv_lib_mw__mwvalidcheckl=yes
  11220. else
  11221. ac_cv_lib_mw__mwvalidcheckl=no
  11222. fi
  11223. rm -f core conftest.err conftest.$ac_objext \
  11224. conftest$ac_exeext conftest.$ac_ext
  11225. LIBS=$ac_check_lib_save_LIBS
  11226. fi
  11227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  11228. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  11229. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
  11230. LIBM="-lmw"
  11231. fi
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  11233. $as_echo_n "checking for cos in -lm... " >&6; }
  11234. if ${ac_cv_lib_m_cos+:} false; then :
  11235. $as_echo_n "(cached) " >&6
  11236. else
  11237. ac_check_lib_save_LIBS=$LIBS
  11238. LIBS="-lm $LIBS"
  11239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11240. /* end confdefs.h. */
  11241. /* Override any GCC internal prototype to avoid an error.
  11242. Use char because int might match the return type of a GCC
  11243. builtin and then its argument prototype would still apply. */
  11244. #ifdef __cplusplus
  11245. extern "C"
  11246. #endif
  11247. char cos ();
  11248. int
  11249. main ()
  11250. {
  11251. return cos ();
  11252. ;
  11253. return 0;
  11254. }
  11255. _ACEOF
  11256. if ac_fn_c_try_link "$LINENO"; then :
  11257. ac_cv_lib_m_cos=yes
  11258. else
  11259. ac_cv_lib_m_cos=no
  11260. fi
  11261. rm -f core conftest.err conftest.$ac_objext \
  11262. conftest$ac_exeext conftest.$ac_ext
  11263. LIBS=$ac_check_lib_save_LIBS
  11264. fi
  11265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  11266. $as_echo "$ac_cv_lib_m_cos" >&6; }
  11267. if test "x$ac_cv_lib_m_cos" = xyes; then :
  11268. LIBM="$LIBM -lm"
  11269. fi
  11270. ;;
  11271. *)
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  11273. $as_echo_n "checking for cos in -lm... " >&6; }
  11274. if ${ac_cv_lib_m_cos+:} false; then :
  11275. $as_echo_n "(cached) " >&6
  11276. else
  11277. ac_check_lib_save_LIBS=$LIBS
  11278. LIBS="-lm $LIBS"
  11279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11280. /* end confdefs.h. */
  11281. /* Override any GCC internal prototype to avoid an error.
  11282. Use char because int might match the return type of a GCC
  11283. builtin and then its argument prototype would still apply. */
  11284. #ifdef __cplusplus
  11285. extern "C"
  11286. #endif
  11287. char cos ();
  11288. int
  11289. main ()
  11290. {
  11291. return cos ();
  11292. ;
  11293. return 0;
  11294. }
  11295. _ACEOF
  11296. if ac_fn_c_try_link "$LINENO"; then :
  11297. ac_cv_lib_m_cos=yes
  11298. else
  11299. ac_cv_lib_m_cos=no
  11300. fi
  11301. rm -f core conftest.err conftest.$ac_objext \
  11302. conftest$ac_exeext conftest.$ac_ext
  11303. LIBS=$ac_check_lib_save_LIBS
  11304. fi
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  11306. $as_echo "$ac_cv_lib_m_cos" >&6; }
  11307. if test "x$ac_cv_lib_m_cos" = xyes; then :
  11308. LIBM="-lm"
  11309. fi
  11310. ;;
  11311. esac
  11312. # When building a shared libbfd, link against the pic version of libiberty
  11313. # so that apps that use libbfd won't need libiberty just to satisfy any
  11314. # libbfd references.
  11315. # We can't do that if a pic libiberty is unavailable since including non-pic
  11316. # code would insert text relocations into libbfd.
  11317. SHARED_LIBADD=
  11318. SHARED_LDFLAGS=
  11319. if test "$enable_shared" = "yes"; then
  11320. x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
  11321. if test -n "$x"; then
  11322. SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
  11323. fi
  11324. fi
  11325. SHARED_LIBADD="$SHARED_LIBADD $LIBINTL"
  11326. if test "$enable_shared" = "yes"; then
  11327. case "${host}" in
  11328. # More hacks to build DLLs on Windows.
  11329. *-*-cygwin*)
  11330. SHARED_LDFLAGS="-no-undefined"
  11331. SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32"
  11332. ;;
  11333. esac
  11334. if test -n "$SHARED_LIBADD"; then
  11335. if test -n "$LIBM"; then
  11336. if test x"$bfd_cv_ld_as_needed" = xyes; then
  11337. # Link against libm only when needed. Put -lc, -lm inside -Wl
  11338. # to stop libtool reordering these options.
  11339. SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
  11340. else
  11341. SHARED_LIBADD="$SHARED_LIBADD $LIBM"
  11342. fi
  11343. fi
  11344. fi
  11345. fi
  11346. # target stuff:
  11347. # Canonicalize the secondary target names.
  11348. if test -n "$enable_targets" ; then
  11349. for targ in `echo $enable_targets | sed 's/,/ /g'`
  11350. do
  11351. result=`$ac_config_sub $targ 2>/dev/null`
  11352. if test -n "$result" ; then
  11353. canon_targets="$canon_targets $result"
  11354. else
  11355. # Allow targets that config.sub doesn't recognize, like "all".
  11356. canon_targets="$canon_targets $targ"
  11357. fi
  11358. done
  11359. fi
  11360. all_targets=false
  11361. defvec=
  11362. selvecs=
  11363. assocvecs=
  11364. selarchs=
  11365. TDEFINES=
  11366. for targ in $target $canon_targets
  11367. do
  11368. if test $targ = all; then
  11369. all_targets=true
  11370. assocvecs="$assocvecs $targ_defvec $targ_selvecs"
  11371. elif test $targ != plugin; then
  11372. . $srcdir/config.bfd
  11373. if test $targ = $target; then
  11374. defvec=$targ_defvec
  11375. fi
  11376. selvecs="$selvecs $targ_defvec $targ_selvecs"
  11377. selarchs="$selarchs $targ_archs"
  11378. TDEFINES="$TDEFINES $targ_cflags"
  11379. fi
  11380. done
  11381. # This processing still needs to be done if we're to decide properly whether
  11382. # 64-bit support needs to be compiled in. Currently, it will be included if
  11383. # the default or any other explicitly requested target requires it; it
  11384. # will not be included on a 32-bit host if no 64-bit target is requested, and
  11385. # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
  11386. # used.
  11387. # uniq the default and selected vectors in all the configured targets.
  11388. f=""
  11389. for i in $selvecs ; do
  11390. case " $f " in
  11391. *" $i "*) ;;
  11392. *) f="$f $i" ;;
  11393. esac
  11394. done
  11395. selvecs="$f"
  11396. # uniq the associated vectors in all the configured targets.
  11397. f=""
  11398. for i in $assocvecs ; do
  11399. case " $f " in
  11400. *" $i "*) ;;
  11401. *) f="$f $i" ;;
  11402. esac
  11403. done
  11404. assocvecs="$f"
  11405. # uniq the architectures in all the configured targets.
  11406. f=""
  11407. for i in $selarchs ; do
  11408. case " $f " in
  11409. *" $i "*) ;;
  11410. *) f="$f $i" ;;
  11411. esac
  11412. done
  11413. selarchs="$f"
  11414. # Target backend .o files.
  11415. tb=
  11416. elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
  11417. dwarf1.lo dwarf2.lo"
  11418. coffgen="coffgen.lo dwarf2.lo"
  11419. coff="cofflink.lo $coffgen"
  11420. ecoff="ecofflink.lo $coffgen"
  11421. xcoff="xcofflink.lo $coffgen"
  11422. elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo"
  11423. for vec in $selvecs
  11424. do
  11425. target_size=32
  11426. case "$vec" in
  11427. # This list is alphabetized to make it easy to compare
  11428. # with the two vector lists in targets.c. For the same reason,
  11429. # use one entry per line, even though this leads to long lines.
  11430. aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
  11431. aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
  11432. aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
  11433. aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
  11434. aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
  11435. aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
  11436. aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
  11437. aarch64_pei_vec) tb="$tb pei-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
  11438. alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
  11439. alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
  11440. alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
  11441. alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
  11442. alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
  11443. am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
  11444. amdgcn_elf64_le_vec) tb="$tb elf64-amdgcn.lo elf64.lo $elf"; target_size=64 ;;
  11445. aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
  11446. aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
  11447. aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
  11448. arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
  11449. arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
  11450. arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  11451. arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  11452. arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  11453. arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  11454. arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  11455. arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  11456. arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  11457. arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  11458. arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
  11459. arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
  11460. arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
  11461. arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
  11462. arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
  11463. arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
  11464. arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
  11465. arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
  11466. arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
  11467. avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
  11468. bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
  11469. bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
  11470. cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
  11471. cris_aout_vec) tb="$tb aout-cris.lo" ;;
  11472. cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
  11473. cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
  11474. crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
  11475. csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
  11476. csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
  11477. d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
  11478. d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
  11479. dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
  11480. elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
  11481. elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
  11482. elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  11483. elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  11484. bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
  11485. bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
  11486. epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
  11487. fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
  11488. frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
  11489. frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
  11490. h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
  11491. h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
  11492. hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  11493. hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  11494. hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  11495. hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
  11496. hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
  11497. hppa_som_vec) tb="$tb som.lo" ;;
  11498. i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
  11499. i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
  11500. i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
  11501. i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
  11502. i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
  11503. i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
  11504. i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
  11505. i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
  11506. i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
  11507. i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
  11508. i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
  11509. i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
  11510. i386_msdos_vec) tb="$tb i386msdos.lo" ;;
  11511. i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
  11512. i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
  11513. i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
  11514. iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
  11515. ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
  11516. ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
  11517. ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
  11518. ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
  11519. ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
  11520. ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
  11521. ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
  11522. ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
  11523. iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
  11524. lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
  11525. lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
  11526. loongarch_elf32_vec) tb="$tb elf32-loongarch.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf" ;;
  11527. loongarch_elf64_vec) tb="$tb elf64-loongarch.lo elf64.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf"; target_size=64 ;;
  11528. m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
  11529. m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  11530. m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  11531. m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  11532. m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  11533. m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
  11534. m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
  11535. m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
  11536. s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
  11537. mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
  11538. mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
  11539. mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
  11540. mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
  11541. mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
  11542. mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
  11543. mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
  11544. mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
  11545. mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
  11546. mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
  11547. mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
  11548. metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
  11549. microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
  11550. microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
  11551. mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
  11552. mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
  11553. mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
  11554. mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  11555. mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  11556. mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11557. mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11558. mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11559. mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11560. mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11561. mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11562. mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  11563. mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  11564. mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  11565. mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  11566. mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  11567. mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  11568. mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11569. mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11570. mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11571. mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11572. mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11573. mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  11574. mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
  11575. mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
  11576. mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
  11577. mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
  11578. moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
  11579. moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
  11580. msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
  11581. msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
  11582. mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
  11583. nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
  11584. nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
  11585. nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
  11586. nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
  11587. nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
  11588. nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
  11589. nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
  11590. ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
  11591. ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
  11592. or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
  11593. pdp11_aout_vec) tb="$tb pdp11.lo" ;;
  11594. pef_vec) tb="$tb pef.lo" ;;
  11595. pef_xlib_vec) tb="$tb pef.lo" ;;
  11596. pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
  11597. pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
  11598. powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
  11599. powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  11600. powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  11601. powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  11602. powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  11603. powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  11604. powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
  11605. powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
  11606. powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
  11607. powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
  11608. pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
  11609. riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
  11610. riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
  11611. riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
  11612. riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
  11613. rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
  11614. rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
  11615. rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
  11616. rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
  11617. rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
  11618. rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
  11619. rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
  11620. rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
  11621. s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
  11622. s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
  11623. score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
  11624. score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
  11625. sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
  11626. sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
  11627. sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
  11628. sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
  11629. sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11630. sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11631. sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11632. sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11633. sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11634. sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11635. sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11636. sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11637. sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11638. sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  11639. sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
  11640. sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
  11641. sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
  11642. sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
  11643. sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
  11644. sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
  11645. sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
  11646. sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
  11647. spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
  11648. sym_vec) tb="$tb xsym.lo" ;;
  11649. tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
  11650. tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  11651. tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  11652. tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  11653. tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  11654. tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  11655. tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  11656. tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  11657. tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  11658. tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  11659. tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  11660. tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  11661. tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  11662. tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  11663. tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  11664. tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  11665. tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  11666. tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  11667. tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  11668. tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
  11669. tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
  11670. tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
  11671. tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
  11672. tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
  11673. v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
  11674. v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
  11675. vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
  11676. vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
  11677. vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
  11678. ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
  11679. visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
  11680. wasm_vec) tb="$tb wasm-module.lo" ;;
  11681. wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
  11682. x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
  11683. x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
  11684. x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
  11685. x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
  11686. x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
  11687. x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
  11688. x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
  11689. x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
  11690. x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
  11691. x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
  11692. xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
  11693. xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
  11694. xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
  11695. xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
  11696. xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
  11697. z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
  11698. z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;;
  11699. z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
  11700. # These appear out of order in targets.c
  11701. srec_vec) tb="$tb srec.lo" ;;
  11702. symbolsrec_vec) tb="$tb srec.lo" ;;
  11703. tekhex_vec) tb="$tb tekhex.lo" ;;
  11704. core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
  11705. core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
  11706. "") ;;
  11707. *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;;
  11708. esac
  11709. if test ${target_size} = 64; then
  11710. target64=true
  11711. fi
  11712. if test x"${vec}" = x"${defvec}"; then
  11713. bfd_default_target_size=${target_size}
  11714. fi
  11715. done
  11716. if test "$plugins" = "yes"; then
  11717. tb="$tb plugin.lo"
  11718. fi
  11719. # Target architecture .o files.
  11720. # A couple of CPUs use shorter file names to avoid problems on DOS
  11721. # filesystems.
  11722. ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
  11723. # Weed out duplicate .o files.
  11724. f=""
  11725. for i in $tb ; do
  11726. case " $f " in
  11727. *" $i "*) ;;
  11728. *) f="$f $i" ;;
  11729. esac
  11730. done
  11731. tb="$f"
  11732. f=""
  11733. for i in $ta ; do
  11734. case " $f " in
  11735. *" $i "*) ;;
  11736. *) f="$f $i" ;;
  11737. esac
  11738. done
  11739. ta="$f"
  11740. bfd_backends="$tb"
  11741. bfd_machines="$ta"
  11742. if test x${all_targets} = xtrue ; then
  11743. bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
  11744. bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
  11745. selvecs=
  11746. havevecs=-DHAVE_all_vecs
  11747. selarchs=
  11748. test -n "$assocvecs" &&
  11749. assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  11750. else # all_targets is true
  11751. # Only set these if they will be nonempty, for the clever echo.
  11752. havevecs=
  11753. assocvecs=
  11754. test -n "$selvecs" &&
  11755. havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
  11756. test -n "$selvecs" &&
  11757. selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  11758. test -n "$selarchs" &&
  11759. selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  11760. fi # all_targets is true
  11761. # 64-bit archives need a 64-bit bfd_vma.
  11762. if test "x$want_64_bit_archive" = xtrue; then
  11763. want64=true
  11764. $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
  11765. fi
  11766. case ${host64}-${target64}-${want64} in
  11767. *true*)
  11768. wordsize=64
  11769. bfd64_libs='$(BFD64_LIBS)'
  11770. all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
  11771. if test $BFD_HOST_64_BIT_DEFINED = 0; then
  11772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
  11773. $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
  11775. $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
  11776. fi
  11777. if test -n "$GCC" ; then
  11778. bad_64bit_gcc=no;
  11779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
  11780. $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
  11781. # Add more tests for gcc versions with non-working 64-bit support here.
  11782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11783. /* end confdefs.h. */
  11784. :__GNUC__:__GNUC_MINOR__:__i386__:
  11785. _ACEOF
  11786. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11787. $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
  11788. bad_64bit_gcc=yes;
  11789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
  11790. $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
  11791. else
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11793. $as_echo "no" >&6; }
  11794. fi
  11795. rm -f conftest*
  11796. if test $bad_64bit_gcc = yes ; then
  11797. as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
  11798. fi
  11799. fi
  11800. ;;
  11801. false-false-false)
  11802. wordsize=32
  11803. all_backends='$(BFD32_BACKENDS)'
  11804. ;;
  11805. esac
  11806. tdefaults=""
  11807. test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
  11808. test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
  11809. test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
  11810. test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
  11811. # If we are configured native, pick a core file support file.
  11812. COREFILE=
  11813. COREFLAG=
  11814. CORE_HEADER=
  11815. TRAD_HEADER=
  11816. if test "${target}" = "${host}"; then
  11817. case "${host}" in
  11818. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
  11819. COREFILE=''
  11820. ;;
  11821. alpha*-*-linux-*)
  11822. COREFILE=trad-core.lo
  11823. TRAD_HEADER='"hosts/alphalinux.h"'
  11824. ;;
  11825. alpha*-*-netbsd* | alpha*-*-openbsd*)
  11826. COREFILE=netbsd-core.lo
  11827. ;;
  11828. alpha*-*-*)
  11829. COREFILE=osf-core.lo
  11830. ;;
  11831. arm-*-freebsd* | arm-*-kfreebsd*-gnu)
  11832. COREFILE='' ;;
  11833. arm*-*-netbsd* | arm-*-openbsd*)
  11834. COREFILE=netbsd-core.lo
  11835. ;;
  11836. arm-*-riscix) COREFILE=trad-core.lo ;;
  11837. hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
  11838. hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
  11839. hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
  11840. hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
  11841. COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
  11842. hppa*-*-netbsd* | hppa*-*-openbsd*)
  11843. COREFILE=netbsd-core.lo
  11844. ;;
  11845. i[3-7]86-sequent-bsd*)
  11846. COREFILE=trad-core.lo
  11847. TRAD_HEADER='"hosts/symmetry.h"'
  11848. ;;
  11849. i[3-7]86-sequent-sysv4*) ;;
  11850. i[3-7]86-sequent-sysv*)
  11851. COREFILE=trad-core.lo
  11852. TRAD_HEADER='"hosts/symmetry.h"'
  11853. ;;
  11854. i[3-7]86-*-bsdi)
  11855. COREFILE=
  11856. ;;
  11857. i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
  11858. COREFILE=trad-core.lo
  11859. TRAD_HEADER='"hosts/i386bsd.h"'
  11860. ;;
  11861. i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
  11862. COREFILE=''
  11863. TRAD_HEADER='"hosts/i386bsd.h"'
  11864. ;;
  11865. i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
  11866. COREFILE=netbsd-core.lo
  11867. ;;
  11868. i[3-7]86-esix-sysv3*)
  11869. COREFILE=trad-core.lo
  11870. TRAD_HEADER='"hosts/esix.h"'
  11871. ;;
  11872. i[3-7]86-*-sco3.2v5*)
  11873. COREFILE=sco5-core.lo
  11874. ;;
  11875. i[3-7]86-*-sco* | i[3-7]86-*-isc*)
  11876. COREFILE=trad-core.lo
  11877. TRAD_HEADER='"hosts/i386sco.h"'
  11878. ;;
  11879. i[3-7]86-*-mach3*)
  11880. COREFILE=trad-core.lo
  11881. TRAD_HEADER='"hosts/i386mach3.h"'
  11882. ;;
  11883. i[3-7]86-*-linux-*)
  11884. COREFILE=trad-core.lo
  11885. TRAD_HEADER='"hosts/i386linux.h"'
  11886. case "$enable_targets"-"$want64" in
  11887. *x86_64-*linux*|*-true)
  11888. CORE_HEADER='"hosts/x86-64linux.h"'
  11889. esac
  11890. ;;
  11891. i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
  11892. i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
  11893. mips*-*-netbsd* | mips*-*-openbsd*)
  11894. COREFILE=netbsd-core.lo
  11895. ;;
  11896. mips-sgi-irix4*) COREFILE=irix-core.lo ;;
  11897. mips-sgi-irix5*) COREFILE=irix-core.lo ;;
  11898. mips-sgi-irix6*) COREFILE=irix-core.lo ;;
  11899. m68*-*-linux-*)
  11900. COREFILE=trad-core.lo
  11901. TRAD_HEADER='"hosts/m68klinux.h"'
  11902. ;;
  11903. m68*-*-netbsd*)
  11904. COREFILE=netbsd-core.lo
  11905. ;;
  11906. ns32k-pc532-mach)
  11907. COREFILE=trad-core.lo
  11908. TRAD_HEADER='"hosts/pc532mach.h"'
  11909. ;;
  11910. ns32k-*-netbsd* | ns32k-*-openbsd*)
  11911. COREFILE=netbsd-core.lo
  11912. ;;
  11913. rs6000-*-lynx*)
  11914. COREFILE=lynx-core.lo
  11915. ;;
  11916. rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
  11917. COREFILE=rs6000-core.lo
  11918. COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
  11919. ;;
  11920. rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
  11921. COREFILE=rs6000-core.lo
  11922. COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
  11923. # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
  11924. # have c_impl as a member of struct core_dumpx
  11925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
  11926. $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
  11927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11928. /* end confdefs.h. */
  11929. #include <core.h>
  11930. int
  11931. main ()
  11932. {
  11933. struct core_dumpx c; c.c_impl = 0;
  11934. ;
  11935. return 0;
  11936. }
  11937. _ACEOF
  11938. if ac_fn_c_try_compile "$LINENO"; then :
  11939. $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
  11940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11941. $as_echo "yes" >&6; }
  11942. else
  11943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11944. $as_echo "no" >&6; }
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11947. ;;
  11948. rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
  11949. rs6000-*-*) COREFILE=rs6000-core.lo ;;
  11950. powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
  11951. powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
  11952. powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
  11953. powerpc-*-beos*) ;;
  11954. powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
  11955. COREFILE='' ;;
  11956. powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
  11957. powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
  11958. s390*-*-*) COREFILE=trad-core.lo ;;
  11959. sh*-*-netbsd* | sh*-*-openbsd*)
  11960. COREFILE=netbsd-core.lo
  11961. ;;
  11962. sparc-*-netbsd* | sparc*-*-openbsd*)
  11963. COREFILE=netbsd-core.lo
  11964. ;;
  11965. vax-*-netbsd* | vax-*-openbsd*)
  11966. COREFILE=netbsd-core.lo
  11967. ;;
  11968. vax-*-ultrix2*)
  11969. COREFILE=trad-core.lo
  11970. TRAD_HEADER='"hosts/vaxult2.h"'
  11971. ;;
  11972. vax-*-ultrix*)
  11973. COREFILE=trad-core.lo
  11974. TRAD_HEADER='"hosts/vaxult2.h"'
  11975. ;;
  11976. vax-*-linux-*)
  11977. COREFILE=trad-core.lo
  11978. TRAD_HEADER='"hosts/vaxlinux.h"'
  11979. ;;
  11980. vax-*-*)
  11981. COREFILE=trad-core.lo
  11982. TRAD_HEADER='"hosts/vaxbsd.h"'
  11983. ;;
  11984. x86_64-*-linux*)
  11985. CORE_HEADER='"hosts/x86-64linux.h"'
  11986. ;;
  11987. x86_64-*-netbsd* | x86_64-*-openbsd*)
  11988. COREFILE=netbsd-core.lo
  11989. ;;
  11990. esac
  11991. case "$COREFILE" in
  11992. aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
  11993. hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
  11994. hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
  11995. irix-core.lo) COREFLAG=-DIRIX_CORE ;;
  11996. lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
  11997. netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
  11998. osf-core.lo) COREFLAG=-DOSF_CORE ;;
  11999. ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
  12000. rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
  12001. sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
  12002. trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
  12003. esac
  12004. # ELF corefile support has several flavors, but all of
  12005. # them use something called <sys/procfs.h>
  12006. $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
  12007. for ac_header in sys/procfs.h
  12008. do :
  12009. ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
  12010. if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
  12011. cat >>confdefs.h <<_ACEOF
  12012. #define HAVE_SYS_PROCFS_H 1
  12013. _ACEOF
  12014. fi
  12015. done
  12016. if test "$ac_cv_header_sys_procfs_h" = yes; then
  12017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
  12018. $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
  12019. if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then :
  12020. $as_echo_n "(cached) " >&6
  12021. else
  12022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12023. /* end confdefs.h. */
  12024. #define _SYSCALL32
  12025. #include <sys/procfs.h>
  12026. int
  12027. main ()
  12028. {
  12029. prstatus_t avar
  12030. ;
  12031. return 0;
  12032. }
  12033. _ACEOF
  12034. if ac_fn_c_try_compile "$LINENO"; then :
  12035. bfd_cv_have_sys_procfs_type_prstatus_t=yes
  12036. else
  12037. bfd_cv_have_sys_procfs_type_prstatus_t=no
  12038. fi
  12039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12040. fi
  12041. if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
  12042. $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
  12043. fi
  12044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
  12045. $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
  12047. $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
  12048. if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then :
  12049. $as_echo_n "(cached) " >&6
  12050. else
  12051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12052. /* end confdefs.h. */
  12053. #define _SYSCALL32
  12054. #include <sys/procfs.h>
  12055. int
  12056. main ()
  12057. {
  12058. prstatus32_t avar
  12059. ;
  12060. return 0;
  12061. }
  12062. _ACEOF
  12063. if ac_fn_c_try_compile "$LINENO"; then :
  12064. bfd_cv_have_sys_procfs_type_prstatus32_t=yes
  12065. else
  12066. bfd_cv_have_sys_procfs_type_prstatus32_t=no
  12067. fi
  12068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12069. fi
  12070. if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
  12071. $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
  12072. fi
  12073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
  12074. $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
  12076. $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
  12077. if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then :
  12078. $as_echo_n "(cached) " >&6
  12079. else
  12080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12081. /* end confdefs.h. */
  12082. #define _SYSCALL32
  12083. #include <sys/procfs.h>
  12084. int
  12085. main ()
  12086. {
  12087. prstatus_t avar; void* aref = (void*) &avar.pr_who
  12088. ;
  12089. return 0;
  12090. }
  12091. _ACEOF
  12092. if ac_fn_c_try_compile "$LINENO"; then :
  12093. bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
  12094. else
  12095. bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
  12096. fi
  12097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12098. fi
  12099. if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
  12100. $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
  12101. fi
  12102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
  12103. $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
  12105. $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
  12106. if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then :
  12107. $as_echo_n "(cached) " >&6
  12108. else
  12109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12110. /* end confdefs.h. */
  12111. #define _SYSCALL32
  12112. #include <sys/procfs.h>
  12113. int
  12114. main ()
  12115. {
  12116. prstatus32_t avar; void* aref = (void*) &avar.pr_who
  12117. ;
  12118. return 0;
  12119. }
  12120. _ACEOF
  12121. if ac_fn_c_try_compile "$LINENO"; then :
  12122. bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
  12123. else
  12124. bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
  12125. fi
  12126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12127. fi
  12128. if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
  12129. $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
  12130. fi
  12131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
  12132. $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
  12134. $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
  12135. if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then :
  12136. $as_echo_n "(cached) " >&6
  12137. else
  12138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12139. /* end confdefs.h. */
  12140. #define _SYSCALL32
  12141. #include <sys/procfs.h>
  12142. int
  12143. main ()
  12144. {
  12145. pstatus_t avar
  12146. ;
  12147. return 0;
  12148. }
  12149. _ACEOF
  12150. if ac_fn_c_try_compile "$LINENO"; then :
  12151. bfd_cv_have_sys_procfs_type_pstatus_t=yes
  12152. else
  12153. bfd_cv_have_sys_procfs_type_pstatus_t=no
  12154. fi
  12155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12156. fi
  12157. if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
  12158. $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
  12159. fi
  12160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
  12161. $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
  12162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
  12163. $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
  12164. if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then :
  12165. $as_echo_n "(cached) " >&6
  12166. else
  12167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12168. /* end confdefs.h. */
  12169. #define _SYSCALL32
  12170. #include <sys/procfs.h>
  12171. int
  12172. main ()
  12173. {
  12174. pxstatus_t avar
  12175. ;
  12176. return 0;
  12177. }
  12178. _ACEOF
  12179. if ac_fn_c_try_compile "$LINENO"; then :
  12180. bfd_cv_have_sys_procfs_type_pxstatus_t=yes
  12181. else
  12182. bfd_cv_have_sys_procfs_type_pxstatus_t=no
  12183. fi
  12184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12185. fi
  12186. if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
  12187. $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
  12188. fi
  12189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
  12190. $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
  12191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
  12192. $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
  12193. if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then :
  12194. $as_echo_n "(cached) " >&6
  12195. else
  12196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12197. /* end confdefs.h. */
  12198. #define _SYSCALL32
  12199. #include <sys/procfs.h>
  12200. int
  12201. main ()
  12202. {
  12203. pstatus32_t avar
  12204. ;
  12205. return 0;
  12206. }
  12207. _ACEOF
  12208. if ac_fn_c_try_compile "$LINENO"; then :
  12209. bfd_cv_have_sys_procfs_type_pstatus32_t=yes
  12210. else
  12211. bfd_cv_have_sys_procfs_type_pstatus32_t=no
  12212. fi
  12213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12214. fi
  12215. if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
  12216. $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
  12217. fi
  12218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
  12219. $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
  12220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
  12221. $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
  12222. if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then :
  12223. $as_echo_n "(cached) " >&6
  12224. else
  12225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12226. /* end confdefs.h. */
  12227. #define _SYSCALL32
  12228. #include <sys/procfs.h>
  12229. int
  12230. main ()
  12231. {
  12232. prpsinfo_t avar
  12233. ;
  12234. return 0;
  12235. }
  12236. _ACEOF
  12237. if ac_fn_c_try_compile "$LINENO"; then :
  12238. bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
  12239. else
  12240. bfd_cv_have_sys_procfs_type_prpsinfo_t=no
  12241. fi
  12242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12243. fi
  12244. if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
  12245. $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
  12246. fi
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
  12248. $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
  12249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
  12250. $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
  12251. if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then :
  12252. $as_echo_n "(cached) " >&6
  12253. else
  12254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12255. /* end confdefs.h. */
  12256. #define _SYSCALL32
  12257. #include <sys/procfs.h>
  12258. int
  12259. main ()
  12260. {
  12261. prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
  12262. ;
  12263. return 0;
  12264. }
  12265. _ACEOF
  12266. if ac_fn_c_try_compile "$LINENO"; then :
  12267. bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
  12268. else
  12269. bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
  12270. fi
  12271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12272. fi
  12273. if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
  12274. $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
  12275. fi
  12276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
  12277. $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
  12279. $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
  12280. if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then :
  12281. $as_echo_n "(cached) " >&6
  12282. else
  12283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12284. /* end confdefs.h. */
  12285. #define _SYSCALL32
  12286. #include <sys/procfs.h>
  12287. int
  12288. main ()
  12289. {
  12290. prpsinfo32_t avar
  12291. ;
  12292. return 0;
  12293. }
  12294. _ACEOF
  12295. if ac_fn_c_try_compile "$LINENO"; then :
  12296. bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
  12297. else
  12298. bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
  12299. fi
  12300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12301. fi
  12302. if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
  12303. $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
  12304. fi
  12305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
  12306. $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
  12308. $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
  12309. if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then :
  12310. $as_echo_n "(cached) " >&6
  12311. else
  12312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12313. /* end confdefs.h. */
  12314. #define _SYSCALL32
  12315. #include <sys/procfs.h>
  12316. int
  12317. main ()
  12318. {
  12319. prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
  12320. ;
  12321. return 0;
  12322. }
  12323. _ACEOF
  12324. if ac_fn_c_try_compile "$LINENO"; then :
  12325. bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
  12326. else
  12327. bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
  12328. fi
  12329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12330. fi
  12331. if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
  12332. $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
  12333. fi
  12334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
  12335. $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
  12336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
  12337. $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
  12338. if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then :
  12339. $as_echo_n "(cached) " >&6
  12340. else
  12341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12342. /* end confdefs.h. */
  12343. #define _SYSCALL32
  12344. #include <sys/procfs.h>
  12345. int
  12346. main ()
  12347. {
  12348. psinfo_t avar
  12349. ;
  12350. return 0;
  12351. }
  12352. _ACEOF
  12353. if ac_fn_c_try_compile "$LINENO"; then :
  12354. bfd_cv_have_sys_procfs_type_psinfo_t=yes
  12355. else
  12356. bfd_cv_have_sys_procfs_type_psinfo_t=no
  12357. fi
  12358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12359. fi
  12360. if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
  12361. $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
  12362. fi
  12363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
  12364. $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
  12366. $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
  12367. if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then :
  12368. $as_echo_n "(cached) " >&6
  12369. else
  12370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12371. /* end confdefs.h. */
  12372. #define _SYSCALL32
  12373. #include <sys/procfs.h>
  12374. int
  12375. main ()
  12376. {
  12377. psinfo_t avar; void* aref = (void*) &avar.pr_pid
  12378. ;
  12379. return 0;
  12380. }
  12381. _ACEOF
  12382. if ac_fn_c_try_compile "$LINENO"; then :
  12383. bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
  12384. else
  12385. bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
  12386. fi
  12387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12388. fi
  12389. if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
  12390. $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
  12391. fi
  12392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
  12393. $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
  12395. $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
  12396. if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then :
  12397. $as_echo_n "(cached) " >&6
  12398. else
  12399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12400. /* end confdefs.h. */
  12401. #define _SYSCALL32
  12402. #include <sys/procfs.h>
  12403. int
  12404. main ()
  12405. {
  12406. psinfo32_t avar
  12407. ;
  12408. return 0;
  12409. }
  12410. _ACEOF
  12411. if ac_fn_c_try_compile "$LINENO"; then :
  12412. bfd_cv_have_sys_procfs_type_psinfo32_t=yes
  12413. else
  12414. bfd_cv_have_sys_procfs_type_psinfo32_t=no
  12415. fi
  12416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12417. fi
  12418. if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
  12419. $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
  12420. fi
  12421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
  12422. $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
  12423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
  12424. $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
  12425. if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then :
  12426. $as_echo_n "(cached) " >&6
  12427. else
  12428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12429. /* end confdefs.h. */
  12430. #define _SYSCALL32
  12431. #include <sys/procfs.h>
  12432. int
  12433. main ()
  12434. {
  12435. psinfo32_t avar; void* aref = (void*) &avar.pr_pid
  12436. ;
  12437. return 0;
  12438. }
  12439. _ACEOF
  12440. if ac_fn_c_try_compile "$LINENO"; then :
  12441. bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
  12442. else
  12443. bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
  12444. fi
  12445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12446. fi
  12447. if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
  12448. $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
  12449. fi
  12450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
  12451. $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
  12452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
  12453. $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
  12454. if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then :
  12455. $as_echo_n "(cached) " >&6
  12456. else
  12457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12458. /* end confdefs.h. */
  12459. #define _SYSCALL32
  12460. #include <sys/procfs.h>
  12461. int
  12462. main ()
  12463. {
  12464. lwpstatus_t avar
  12465. ;
  12466. return 0;
  12467. }
  12468. _ACEOF
  12469. if ac_fn_c_try_compile "$LINENO"; then :
  12470. bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
  12471. else
  12472. bfd_cv_have_sys_procfs_type_lwpstatus_t=no
  12473. fi
  12474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12475. fi
  12476. if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
  12477. $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
  12478. fi
  12479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
  12480. $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
  12481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
  12482. $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
  12483. if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then :
  12484. $as_echo_n "(cached) " >&6
  12485. else
  12486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12487. /* end confdefs.h. */
  12488. #define _SYSCALL32
  12489. #include <sys/procfs.h>
  12490. int
  12491. main ()
  12492. {
  12493. lwpxstatus_t avar
  12494. ;
  12495. return 0;
  12496. }
  12497. _ACEOF
  12498. if ac_fn_c_try_compile "$LINENO"; then :
  12499. bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
  12500. else
  12501. bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
  12502. fi
  12503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12504. fi
  12505. if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
  12506. $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
  12507. fi
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
  12509. $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
  12511. $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
  12512. if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then :
  12513. $as_echo_n "(cached) " >&6
  12514. else
  12515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12516. /* end confdefs.h. */
  12517. #define _SYSCALL32
  12518. #include <sys/procfs.h>
  12519. int
  12520. main ()
  12521. {
  12522. lwpstatus_t avar; void* aref = (void*) &avar.pr_context
  12523. ;
  12524. return 0;
  12525. }
  12526. _ACEOF
  12527. if ac_fn_c_try_compile "$LINENO"; then :
  12528. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
  12529. else
  12530. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
  12531. fi
  12532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12533. fi
  12534. if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
  12535. $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
  12536. fi
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
  12538. $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
  12540. $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
  12541. if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then :
  12542. $as_echo_n "(cached) " >&6
  12543. else
  12544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12545. /* end confdefs.h. */
  12546. #define _SYSCALL32
  12547. #include <sys/procfs.h>
  12548. int
  12549. main ()
  12550. {
  12551. lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
  12552. ;
  12553. return 0;
  12554. }
  12555. _ACEOF
  12556. if ac_fn_c_try_compile "$LINENO"; then :
  12557. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
  12558. else
  12559. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
  12560. fi
  12561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12562. fi
  12563. if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
  12564. $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
  12565. fi
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
  12567. $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
  12569. $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
  12570. if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then :
  12571. $as_echo_n "(cached) " >&6
  12572. else
  12573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12574. /* end confdefs.h. */
  12575. #define _SYSCALL32
  12576. #include <sys/procfs.h>
  12577. int
  12578. main ()
  12579. {
  12580. lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
  12581. ;
  12582. return 0;
  12583. }
  12584. _ACEOF
  12585. if ac_fn_c_try_compile "$LINENO"; then :
  12586. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
  12587. else
  12588. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
  12589. fi
  12590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12591. fi
  12592. if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
  12593. $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
  12594. fi
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
  12596. $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
  12598. $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
  12599. if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then :
  12600. $as_echo_n "(cached) " >&6
  12601. else
  12602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12603. /* end confdefs.h. */
  12604. #define _SYSCALL32
  12605. #include <sys/procfs.h>
  12606. int
  12607. main ()
  12608. {
  12609. win32_pstatus_t avar
  12610. ;
  12611. return 0;
  12612. }
  12613. _ACEOF
  12614. if ac_fn_c_try_compile "$LINENO"; then :
  12615. bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
  12616. else
  12617. bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
  12618. fi
  12619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12620. fi
  12621. if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
  12622. $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
  12623. fi
  12624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
  12625. $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
  12626. fi
  12627. fi
  12628. if test -n "$CORE_HEADER"; then
  12629. cat >>confdefs.h <<_ACEOF
  12630. #define CORE_HEADER $CORE_HEADER
  12631. _ACEOF
  12632. fi
  12633. if test -n "$TRAD_HEADER"; then
  12634. cat >>confdefs.h <<_ACEOF
  12635. #define TRAD_HEADER $TRAD_HEADER
  12636. _ACEOF
  12637. fi
  12638. if test "$plugins" = "yes"; then
  12639. supports_plugins=1
  12640. else
  12641. supports_plugins=0
  12642. fi
  12643. # Determine the host dependent file_ptr a.k.a. off_t type. In order
  12644. # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
  12645. # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
  12646. # Hopefully a reasonable assumption since fseeko et.al. should be
  12647. # upward compatible.
  12648. for ac_func in ftello ftello64 fseeko fseeko64 fopen64
  12649. do :
  12650. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12651. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12652. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12653. cat >>confdefs.h <<_ACEOF
  12654. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12655. _ACEOF
  12656. fi
  12657. done
  12658. ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
  12659. if test "x$ac_cv_have_decl_ftello" = xyes; then :
  12660. ac_have_decl=1
  12661. else
  12662. ac_have_decl=0
  12663. fi
  12664. cat >>confdefs.h <<_ACEOF
  12665. #define HAVE_DECL_FTELLO $ac_have_decl
  12666. _ACEOF
  12667. ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
  12668. if test "x$ac_cv_have_decl_ftello64" = xyes; then :
  12669. ac_have_decl=1
  12670. else
  12671. ac_have_decl=0
  12672. fi
  12673. cat >>confdefs.h <<_ACEOF
  12674. #define HAVE_DECL_FTELLO64 $ac_have_decl
  12675. _ACEOF
  12676. ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
  12677. if test "x$ac_cv_have_decl_fseeko" = xyes; then :
  12678. ac_have_decl=1
  12679. else
  12680. ac_have_decl=0
  12681. fi
  12682. cat >>confdefs.h <<_ACEOF
  12683. #define HAVE_DECL_FSEEKO $ac_have_decl
  12684. _ACEOF
  12685. ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
  12686. if test "x$ac_cv_have_decl_fseeko64" = xyes; then :
  12687. ac_have_decl=1
  12688. else
  12689. ac_have_decl=0
  12690. fi
  12691. cat >>confdefs.h <<_ACEOF
  12692. #define HAVE_DECL_FSEEKO64 $ac_have_decl
  12693. _ACEOF
  12694. ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default"
  12695. if test "x$ac_cv_have_decl_fopen64" = xyes; then :
  12696. ac_have_decl=1
  12697. else
  12698. ac_have_decl=0
  12699. fi
  12700. cat >>confdefs.h <<_ACEOF
  12701. #define HAVE_DECL_FOPEN64 $ac_have_decl
  12702. _ACEOF
  12703. if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
  12704. # The cast to long int works around a bug in the HP C Compiler
  12705. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12706. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12707. # This bug is HP SR number 8606223364.
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  12709. $as_echo_n "checking size of off_t... " >&6; }
  12710. if ${ac_cv_sizeof_off_t+:} false; then :
  12711. $as_echo_n "(cached) " >&6
  12712. else
  12713. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  12714. else
  12715. if test "$ac_cv_type_off_t" = yes; then
  12716. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12717. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12718. as_fn_error 77 "cannot compute sizeof (off_t)
  12719. See \`config.log' for more details" "$LINENO" 5; }
  12720. else
  12721. ac_cv_sizeof_off_t=0
  12722. fi
  12723. fi
  12724. fi
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  12726. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  12727. cat >>confdefs.h <<_ACEOF
  12728. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  12729. _ACEOF
  12730. fi
  12731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
  12732. $as_echo_n "checking file_ptr type... " >&6; }
  12733. bfd_file_ptr="long"
  12734. bfd_ufile_ptr="unsigned long"
  12735. if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
  12736. -o x"${ac_cv_sizeof_off_t}" = x8; then
  12737. bfd_file_ptr=BFD_HOST_64_BIT
  12738. bfd_ufile_ptr=BFD_HOST_U_64_BIT
  12739. fi
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
  12741. $as_echo "$bfd_file_ptr" >&6; }
  12742. for ac_header in $ac_header_list
  12743. do :
  12744. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12745. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  12746. "
  12747. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12748. cat >>confdefs.h <<_ACEOF
  12749. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12750. _ACEOF
  12751. fi
  12752. done
  12753. for ac_func in getpagesize
  12754. do :
  12755. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12756. if test "x$ac_cv_func_getpagesize" = xyes; then :
  12757. cat >>confdefs.h <<_ACEOF
  12758. #define HAVE_GETPAGESIZE 1
  12759. _ACEOF
  12760. fi
  12761. done
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12763. $as_echo_n "checking for working mmap... " >&6; }
  12764. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  12765. $as_echo_n "(cached) " >&6
  12766. else
  12767. if test "$cross_compiling" = yes; then :
  12768. ac_cv_func_mmap_fixed_mapped=no
  12769. else
  12770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12771. /* end confdefs.h. */
  12772. $ac_includes_default
  12773. /* malloc might have been renamed as rpl_malloc. */
  12774. #undef malloc
  12775. /* Thanks to Mike Haertel and Jim Avera for this test.
  12776. Here is a matrix of mmap possibilities:
  12777. mmap private not fixed
  12778. mmap private fixed at somewhere currently unmapped
  12779. mmap private fixed at somewhere already mapped
  12780. mmap shared not fixed
  12781. mmap shared fixed at somewhere currently unmapped
  12782. mmap shared fixed at somewhere already mapped
  12783. For private mappings, we should verify that changes cannot be read()
  12784. back from the file, nor mmap's back from the file at a different
  12785. address. (There have been systems where private was not correctly
  12786. implemented like the infamous i386 svr4.0, and systems where the
  12787. VM page cache was not coherent with the file system buffer cache
  12788. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12789. For shared mappings, we should conversely verify that changes get
  12790. propagated back to all the places they're supposed to be.
  12791. Grep wants private fixed already mapped.
  12792. The main things grep needs to know about mmap are:
  12793. * does it exist and is it safe to write into the mmap'd area
  12794. * how to use it (BSD variants) */
  12795. #include <fcntl.h>
  12796. #include <sys/mman.h>
  12797. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12798. char *malloc ();
  12799. #endif
  12800. /* This mess was copied from the GNU getpagesize.h. */
  12801. #ifndef HAVE_GETPAGESIZE
  12802. # ifdef _SC_PAGESIZE
  12803. # define getpagesize() sysconf(_SC_PAGESIZE)
  12804. # else /* no _SC_PAGESIZE */
  12805. # ifdef HAVE_SYS_PARAM_H
  12806. # include <sys/param.h>
  12807. # ifdef EXEC_PAGESIZE
  12808. # define getpagesize() EXEC_PAGESIZE
  12809. # else /* no EXEC_PAGESIZE */
  12810. # ifdef NBPG
  12811. # define getpagesize() NBPG * CLSIZE
  12812. # ifndef CLSIZE
  12813. # define CLSIZE 1
  12814. # endif /* no CLSIZE */
  12815. # else /* no NBPG */
  12816. # ifdef NBPC
  12817. # define getpagesize() NBPC
  12818. # else /* no NBPC */
  12819. # ifdef PAGESIZE
  12820. # define getpagesize() PAGESIZE
  12821. # endif /* PAGESIZE */
  12822. # endif /* no NBPC */
  12823. # endif /* no NBPG */
  12824. # endif /* no EXEC_PAGESIZE */
  12825. # else /* no HAVE_SYS_PARAM_H */
  12826. # define getpagesize() 8192 /* punt totally */
  12827. # endif /* no HAVE_SYS_PARAM_H */
  12828. # endif /* no _SC_PAGESIZE */
  12829. #endif /* no HAVE_GETPAGESIZE */
  12830. int
  12831. main ()
  12832. {
  12833. char *data, *data2, *data3;
  12834. const char *cdata2;
  12835. int i, pagesize;
  12836. int fd, fd2;
  12837. pagesize = getpagesize ();
  12838. /* First, make a file with some known garbage in it. */
  12839. data = (char *) malloc (pagesize);
  12840. if (!data)
  12841. return 1;
  12842. for (i = 0; i < pagesize; ++i)
  12843. *(data + i) = rand ();
  12844. umask (0);
  12845. fd = creat ("conftest.mmap", 0600);
  12846. if (fd < 0)
  12847. return 2;
  12848. if (write (fd, data, pagesize) != pagesize)
  12849. return 3;
  12850. close (fd);
  12851. /* Next, check that the tail of a page is zero-filled. File must have
  12852. non-zero length, otherwise we risk SIGBUS for entire page. */
  12853. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12854. if (fd2 < 0)
  12855. return 4;
  12856. cdata2 = "";
  12857. if (write (fd2, cdata2, 1) != 1)
  12858. return 5;
  12859. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12860. if (data2 == MAP_FAILED)
  12861. return 6;
  12862. for (i = 0; i < pagesize; ++i)
  12863. if (*(data2 + i))
  12864. return 7;
  12865. close (fd2);
  12866. if (munmap (data2, pagesize))
  12867. return 8;
  12868. /* Next, try to mmap the file at a fixed address which already has
  12869. something else allocated at it. If we can, also make sure that
  12870. we see the same garbage. */
  12871. fd = open ("conftest.mmap", O_RDWR);
  12872. if (fd < 0)
  12873. return 9;
  12874. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12875. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12876. return 10;
  12877. for (i = 0; i < pagesize; ++i)
  12878. if (*(data + i) != *(data2 + i))
  12879. return 11;
  12880. /* Finally, make sure that changes to the mapped area do not
  12881. percolate back to the file as seen by read(). (This is a bug on
  12882. some variants of i386 svr4.0.) */
  12883. for (i = 0; i < pagesize; ++i)
  12884. *(data2 + i) = *(data2 + i) + 1;
  12885. data3 = (char *) malloc (pagesize);
  12886. if (!data3)
  12887. return 12;
  12888. if (read (fd, data3, pagesize) != pagesize)
  12889. return 13;
  12890. for (i = 0; i < pagesize; ++i)
  12891. if (*(data + i) != *(data3 + i))
  12892. return 14;
  12893. close (fd);
  12894. return 0;
  12895. }
  12896. _ACEOF
  12897. if ac_fn_c_try_run "$LINENO"; then :
  12898. ac_cv_func_mmap_fixed_mapped=yes
  12899. else
  12900. ac_cv_func_mmap_fixed_mapped=no
  12901. fi
  12902. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12903. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12904. fi
  12905. fi
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12907. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12908. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12909. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12910. fi
  12911. rm -f conftest.mmap conftest.txt
  12912. for ac_func in madvise mprotect
  12913. do :
  12914. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12915. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12916. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12917. cat >>confdefs.h <<_ACEOF
  12918. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12919. _ACEOF
  12920. fi
  12921. done
  12922. case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
  12923. true+yes )
  12924. $as_echo "#define USE_MMAP 1" >>confdefs.h
  12925. ;;
  12926. esac
  12927. ac_config_files="$ac_config_files Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
  12928. ac_config_commands="$ac_config_commands default"
  12929. cat >confcache <<\_ACEOF
  12930. # This file is a shell script that caches the results of configure
  12931. # tests run on this system so they can be shared between configure
  12932. # scripts and configure runs, see configure's option --config-cache.
  12933. # It is not useful on other systems. If it contains results you don't
  12934. # want to keep, you may remove or edit it.
  12935. #
  12936. # config.status only pays attention to the cache file if you give it
  12937. # the --recheck option to rerun configure.
  12938. #
  12939. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12940. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12941. # following values.
  12942. _ACEOF
  12943. # The following way of writing the cache mishandles newlines in values,
  12944. # but we know of no workaround that is simple, portable, and efficient.
  12945. # So, we kill variables containing newlines.
  12946. # Ultrix sh set writes to stderr and can't be redirected directly,
  12947. # and sets the high bit in the cache file unless we assign to the vars.
  12948. (
  12949. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12950. eval ac_val=\$$ac_var
  12951. case $ac_val in #(
  12952. *${as_nl}*)
  12953. case $ac_var in #(
  12954. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12955. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12956. esac
  12957. case $ac_var in #(
  12958. _ | IFS | as_nl) ;; #(
  12959. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12960. *) { eval $ac_var=; unset $ac_var;} ;;
  12961. esac ;;
  12962. esac
  12963. done
  12964. (set) 2>&1 |
  12965. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12966. *${as_nl}ac_space=\ *)
  12967. # `set' does not quote correctly, so add quotes: double-quote
  12968. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12969. sed -n \
  12970. "s/'/'\\\\''/g;
  12971. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12972. ;; #(
  12973. *)
  12974. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12975. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12976. ;;
  12977. esac |
  12978. sort
  12979. ) |
  12980. sed '
  12981. /^ac_cv_env_/b end
  12982. t clear
  12983. :clear
  12984. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12985. t end
  12986. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12987. :end' >>confcache
  12988. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12989. if test -w "$cache_file"; then
  12990. if test "x$cache_file" != "x/dev/null"; then
  12991. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12992. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12993. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12994. cat confcache >"$cache_file"
  12995. else
  12996. case $cache_file in #(
  12997. */* | ?:*)
  12998. mv -f confcache "$cache_file"$$ &&
  12999. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13000. *)
  13001. mv -f confcache "$cache_file" ;;
  13002. esac
  13003. fi
  13004. fi
  13005. else
  13006. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13007. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13008. fi
  13009. fi
  13010. rm -f confcache
  13011. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13012. # Let make expand exec_prefix.
  13013. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13014. DEFS=-DHAVE_CONFIG_H
  13015. ac_libobjs=
  13016. ac_ltlibobjs=
  13017. U=
  13018. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13019. # 1. Remove the extension, and $U if already installed.
  13020. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13021. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13022. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13023. # will be set to the directory where LIBOBJS objects are built.
  13024. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13025. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13026. done
  13027. LIBOBJS=$ac_libobjs
  13028. LTLIBOBJS=$ac_ltlibobjs
  13029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13030. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13031. if test -n "$am_sleep_pid"; then
  13032. # Hide warnings about reused PIDs.
  13033. wait $am_sleep_pid 2>/dev/null
  13034. fi
  13035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13036. $as_echo "done" >&6; }
  13037. if test -n "$EXEEXT"; then
  13038. am__EXEEXT_TRUE=
  13039. am__EXEEXT_FALSE='#'
  13040. else
  13041. am__EXEEXT_TRUE='#'
  13042. am__EXEEXT_FALSE=
  13043. fi
  13044. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13045. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13046. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13047. fi
  13048. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13049. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13050. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13051. fi
  13052. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  13053. as_fn_error $? "conditional \"PLUGINS\" was never defined.
  13054. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13055. fi
  13056. if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
  13057. as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
  13058. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13059. fi
  13060. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13061. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  13062. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13063. fi
  13064. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  13065. as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
  13066. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13067. fi
  13068. if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
  13069. as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
  13070. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13071. fi
  13072. : "${CONFIG_STATUS=./config.status}"
  13073. ac_write_fail=0
  13074. ac_clean_files_save=$ac_clean_files
  13075. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13077. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13078. as_write_fail=0
  13079. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13080. #! $SHELL
  13081. # Generated by $as_me.
  13082. # Run this file to recreate the current configuration.
  13083. # Compiler output produced by configure, useful for debugging
  13084. # configure, is in config.log if it exists.
  13085. debug=false
  13086. ac_cs_recheck=false
  13087. ac_cs_silent=false
  13088. SHELL=\${CONFIG_SHELL-$SHELL}
  13089. export SHELL
  13090. _ASEOF
  13091. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13092. ## -------------------- ##
  13093. ## M4sh Initialization. ##
  13094. ## -------------------- ##
  13095. # Be more Bourne compatible
  13096. DUALCASE=1; export DUALCASE # for MKS sh
  13097. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13098. emulate sh
  13099. NULLCMD=:
  13100. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13101. # is contrary to our usage. Disable this feature.
  13102. alias -g '${1+"$@"}'='"$@"'
  13103. setopt NO_GLOB_SUBST
  13104. else
  13105. case `(set -o) 2>/dev/null` in #(
  13106. *posix*) :
  13107. set -o posix ;; #(
  13108. *) :
  13109. ;;
  13110. esac
  13111. fi
  13112. as_nl='
  13113. '
  13114. export as_nl
  13115. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13116. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13117. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13118. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13119. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13120. # but without wasting forks for bash or zsh.
  13121. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13122. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13123. as_echo='print -r --'
  13124. as_echo_n='print -rn --'
  13125. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13126. as_echo='printf %s\n'
  13127. as_echo_n='printf %s'
  13128. else
  13129. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13130. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13131. as_echo_n='/usr/ucb/echo -n'
  13132. else
  13133. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13134. as_echo_n_body='eval
  13135. arg=$1;
  13136. case $arg in #(
  13137. *"$as_nl"*)
  13138. expr "X$arg" : "X\\(.*\\)$as_nl";
  13139. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13140. esac;
  13141. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13142. '
  13143. export as_echo_n_body
  13144. as_echo_n='sh -c $as_echo_n_body as_echo'
  13145. fi
  13146. export as_echo_body
  13147. as_echo='sh -c $as_echo_body as_echo'
  13148. fi
  13149. # The user is always right.
  13150. if test "${PATH_SEPARATOR+set}" != set; then
  13151. PATH_SEPARATOR=:
  13152. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13153. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13154. PATH_SEPARATOR=';'
  13155. }
  13156. fi
  13157. # IFS
  13158. # We need space, tab and new line, in precisely that order. Quoting is
  13159. # there to prevent editors from complaining about space-tab.
  13160. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13161. # splitting by setting IFS to empty value.)
  13162. IFS=" "" $as_nl"
  13163. # Find who we are. Look in the path if we contain no directory separator.
  13164. as_myself=
  13165. case $0 in #((
  13166. *[\\/]* ) as_myself=$0 ;;
  13167. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13168. for as_dir in $PATH
  13169. do
  13170. IFS=$as_save_IFS
  13171. test -z "$as_dir" && as_dir=.
  13172. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13173. done
  13174. IFS=$as_save_IFS
  13175. ;;
  13176. esac
  13177. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13178. # in which case we are not to be found in the path.
  13179. if test "x$as_myself" = x; then
  13180. as_myself=$0
  13181. fi
  13182. if test ! -f "$as_myself"; then
  13183. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13184. exit 1
  13185. fi
  13186. # Unset variables that we do not need and which cause bugs (e.g. in
  13187. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13188. # suppresses any "Segmentation fault" message there. '((' could
  13189. # trigger a bug in pdksh 5.2.14.
  13190. for as_var in BASH_ENV ENV MAIL MAILPATH
  13191. do eval test x\${$as_var+set} = xset \
  13192. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13193. done
  13194. PS1='$ '
  13195. PS2='> '
  13196. PS4='+ '
  13197. # NLS nuisances.
  13198. LC_ALL=C
  13199. export LC_ALL
  13200. LANGUAGE=C
  13201. export LANGUAGE
  13202. # CDPATH.
  13203. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13204. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13205. # ----------------------------------------
  13206. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13207. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13208. # script with STATUS, using 1 if that was 0.
  13209. as_fn_error ()
  13210. {
  13211. as_status=$1; test $as_status -eq 0 && as_status=1
  13212. if test "$4"; then
  13213. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13214. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13215. fi
  13216. $as_echo "$as_me: error: $2" >&2
  13217. as_fn_exit $as_status
  13218. } # as_fn_error
  13219. # as_fn_set_status STATUS
  13220. # -----------------------
  13221. # Set $? to STATUS, without forking.
  13222. as_fn_set_status ()
  13223. {
  13224. return $1
  13225. } # as_fn_set_status
  13226. # as_fn_exit STATUS
  13227. # -----------------
  13228. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13229. as_fn_exit ()
  13230. {
  13231. set +e
  13232. as_fn_set_status $1
  13233. exit $1
  13234. } # as_fn_exit
  13235. # as_fn_unset VAR
  13236. # ---------------
  13237. # Portably unset VAR.
  13238. as_fn_unset ()
  13239. {
  13240. { eval $1=; unset $1;}
  13241. }
  13242. as_unset=as_fn_unset
  13243. # as_fn_append VAR VALUE
  13244. # ----------------------
  13245. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13246. # advantage of any shell optimizations that allow amortized linear growth over
  13247. # repeated appends, instead of the typical quadratic growth present in naive
  13248. # implementations.
  13249. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13250. eval 'as_fn_append ()
  13251. {
  13252. eval $1+=\$2
  13253. }'
  13254. else
  13255. as_fn_append ()
  13256. {
  13257. eval $1=\$$1\$2
  13258. }
  13259. fi # as_fn_append
  13260. # as_fn_arith ARG...
  13261. # ------------------
  13262. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13263. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13264. # must be portable across $(()) and expr.
  13265. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13266. eval 'as_fn_arith ()
  13267. {
  13268. as_val=$(( $* ))
  13269. }'
  13270. else
  13271. as_fn_arith ()
  13272. {
  13273. as_val=`expr "$@" || test $? -eq 1`
  13274. }
  13275. fi # as_fn_arith
  13276. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13277. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13278. as_expr=expr
  13279. else
  13280. as_expr=false
  13281. fi
  13282. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13283. as_basename=basename
  13284. else
  13285. as_basename=false
  13286. fi
  13287. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13288. as_dirname=dirname
  13289. else
  13290. as_dirname=false
  13291. fi
  13292. as_me=`$as_basename -- "$0" ||
  13293. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13294. X"$0" : 'X\(//\)$' \| \
  13295. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13296. $as_echo X/"$0" |
  13297. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13298. s//\1/
  13299. q
  13300. }
  13301. /^X\/\(\/\/\)$/{
  13302. s//\1/
  13303. q
  13304. }
  13305. /^X\/\(\/\).*/{
  13306. s//\1/
  13307. q
  13308. }
  13309. s/.*/./; q'`
  13310. # Avoid depending upon Character Ranges.
  13311. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13312. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13313. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13314. as_cr_digits='0123456789'
  13315. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13316. ECHO_C= ECHO_N= ECHO_T=
  13317. case `echo -n x` in #(((((
  13318. -n*)
  13319. case `echo 'xy\c'` in
  13320. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13321. xy) ECHO_C='\c';;
  13322. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13323. ECHO_T=' ';;
  13324. esac;;
  13325. *)
  13326. ECHO_N='-n';;
  13327. esac
  13328. rm -f conf$$ conf$$.exe conf$$.file
  13329. if test -d conf$$.dir; then
  13330. rm -f conf$$.dir/conf$$.file
  13331. else
  13332. rm -f conf$$.dir
  13333. mkdir conf$$.dir 2>/dev/null
  13334. fi
  13335. if (echo >conf$$.file) 2>/dev/null; then
  13336. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13337. as_ln_s='ln -s'
  13338. # ... but there are two gotchas:
  13339. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13340. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13341. # In both cases, we have to default to `cp -pR'.
  13342. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13343. as_ln_s='cp -pR'
  13344. elif ln conf$$.file conf$$ 2>/dev/null; then
  13345. as_ln_s=ln
  13346. else
  13347. as_ln_s='cp -pR'
  13348. fi
  13349. else
  13350. as_ln_s='cp -pR'
  13351. fi
  13352. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13353. rmdir conf$$.dir 2>/dev/null
  13354. # as_fn_mkdir_p
  13355. # -------------
  13356. # Create "$as_dir" as a directory, including parents if necessary.
  13357. as_fn_mkdir_p ()
  13358. {
  13359. case $as_dir in #(
  13360. -*) as_dir=./$as_dir;;
  13361. esac
  13362. test -d "$as_dir" || eval $as_mkdir_p || {
  13363. as_dirs=
  13364. while :; do
  13365. case $as_dir in #(
  13366. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13367. *) as_qdir=$as_dir;;
  13368. esac
  13369. as_dirs="'$as_qdir' $as_dirs"
  13370. as_dir=`$as_dirname -- "$as_dir" ||
  13371. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13372. X"$as_dir" : 'X\(//\)[^/]' \| \
  13373. X"$as_dir" : 'X\(//\)$' \| \
  13374. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13375. $as_echo X"$as_dir" |
  13376. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13377. s//\1/
  13378. q
  13379. }
  13380. /^X\(\/\/\)[^/].*/{
  13381. s//\1/
  13382. q
  13383. }
  13384. /^X\(\/\/\)$/{
  13385. s//\1/
  13386. q
  13387. }
  13388. /^X\(\/\).*/{
  13389. s//\1/
  13390. q
  13391. }
  13392. s/.*/./; q'`
  13393. test -d "$as_dir" && break
  13394. done
  13395. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13396. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13397. } # as_fn_mkdir_p
  13398. if mkdir -p . 2>/dev/null; then
  13399. as_mkdir_p='mkdir -p "$as_dir"'
  13400. else
  13401. test -d ./-p && rmdir ./-p
  13402. as_mkdir_p=false
  13403. fi
  13404. # as_fn_executable_p FILE
  13405. # -----------------------
  13406. # Test if FILE is an executable regular file.
  13407. as_fn_executable_p ()
  13408. {
  13409. test -f "$1" && test -x "$1"
  13410. } # as_fn_executable_p
  13411. as_test_x='test -x'
  13412. as_executable_p=as_fn_executable_p
  13413. # Sed expression to map a string onto a valid CPP name.
  13414. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13415. # Sed expression to map a string onto a valid variable name.
  13416. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13417. exec 6>&1
  13418. ## ----------------------------------- ##
  13419. ## Main body of $CONFIG_STATUS script. ##
  13420. ## ----------------------------------- ##
  13421. _ASEOF
  13422. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13423. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13424. # Save the log message, to keep $0 and so on meaningful, and to
  13425. # report actual input values of CONFIG_FILES etc. instead of their
  13426. # values after options handling.
  13427. ac_log="
  13428. This file was extended by bfd $as_me 2.38.50, which was
  13429. generated by GNU Autoconf 2.69. Invocation command line was
  13430. CONFIG_FILES = $CONFIG_FILES
  13431. CONFIG_HEADERS = $CONFIG_HEADERS
  13432. CONFIG_LINKS = $CONFIG_LINKS
  13433. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13434. $ $0 $@
  13435. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13436. "
  13437. _ACEOF
  13438. case $ac_config_files in *"
  13439. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13440. esac
  13441. case $ac_config_headers in *"
  13442. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13443. esac
  13444. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13445. # Files that config.status was made for.
  13446. config_files="$ac_config_files"
  13447. config_headers="$ac_config_headers"
  13448. config_commands="$ac_config_commands"
  13449. _ACEOF
  13450. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13451. ac_cs_usage="\
  13452. \`$as_me' instantiates files and other configuration actions
  13453. from templates according to the current configuration. Unless the files
  13454. and actions are specified as TAGs, all are instantiated by default.
  13455. Usage: $0 [OPTION]... [TAG]...
  13456. -h, --help print this help, then exit
  13457. -V, --version print version number and configuration settings, then exit
  13458. --config print configuration, then exit
  13459. -q, --quiet, --silent
  13460. do not print progress messages
  13461. -d, --debug don't remove temporary files
  13462. --recheck update $as_me by reconfiguring in the same conditions
  13463. --file=FILE[:TEMPLATE]
  13464. instantiate the configuration file FILE
  13465. --header=FILE[:TEMPLATE]
  13466. instantiate the configuration header FILE
  13467. Configuration files:
  13468. $config_files
  13469. Configuration headers:
  13470. $config_headers
  13471. Configuration commands:
  13472. $config_commands
  13473. Report bugs to the package provider."
  13474. _ACEOF
  13475. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13476. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13477. ac_cs_version="\\
  13478. bfd config.status 2.38.50
  13479. configured by $0, generated by GNU Autoconf 2.69,
  13480. with options \\"\$ac_cs_config\\"
  13481. Copyright (C) 2012 Free Software Foundation, Inc.
  13482. This config.status script is free software; the Free Software Foundation
  13483. gives unlimited permission to copy, distribute and modify it."
  13484. ac_pwd='$ac_pwd'
  13485. srcdir='$srcdir'
  13486. INSTALL='$INSTALL'
  13487. MKDIR_P='$MKDIR_P'
  13488. AWK='$AWK'
  13489. test -n "\$AWK" || AWK=awk
  13490. _ACEOF
  13491. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13492. # The default lists apply if the user does not specify any file.
  13493. ac_need_defaults=:
  13494. while test $# != 0
  13495. do
  13496. case $1 in
  13497. --*=?*)
  13498. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13499. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13500. ac_shift=:
  13501. ;;
  13502. --*=)
  13503. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13504. ac_optarg=
  13505. ac_shift=:
  13506. ;;
  13507. *)
  13508. ac_option=$1
  13509. ac_optarg=$2
  13510. ac_shift=shift
  13511. ;;
  13512. esac
  13513. case $ac_option in
  13514. # Handling of the options.
  13515. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13516. ac_cs_recheck=: ;;
  13517. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13518. $as_echo "$ac_cs_version"; exit ;;
  13519. --config | --confi | --conf | --con | --co | --c )
  13520. $as_echo "$ac_cs_config"; exit ;;
  13521. --debug | --debu | --deb | --de | --d | -d )
  13522. debug=: ;;
  13523. --file | --fil | --fi | --f )
  13524. $ac_shift
  13525. case $ac_optarg in
  13526. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13527. '') as_fn_error $? "missing file argument" ;;
  13528. esac
  13529. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13530. ac_need_defaults=false;;
  13531. --header | --heade | --head | --hea )
  13532. $ac_shift
  13533. case $ac_optarg in
  13534. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13535. esac
  13536. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13537. ac_need_defaults=false;;
  13538. --he | --h)
  13539. # Conflict between --help and --header
  13540. as_fn_error $? "ambiguous option: \`$1'
  13541. Try \`$0 --help' for more information.";;
  13542. --help | --hel | -h )
  13543. $as_echo "$ac_cs_usage"; exit ;;
  13544. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13545. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13546. ac_cs_silent=: ;;
  13547. # This is an error.
  13548. -*) as_fn_error $? "unrecognized option: \`$1'
  13549. Try \`$0 --help' for more information." ;;
  13550. *) as_fn_append ac_config_targets " $1"
  13551. ac_need_defaults=false ;;
  13552. esac
  13553. shift
  13554. done
  13555. ac_configure_extra_args=
  13556. if $ac_cs_silent; then
  13557. exec 6>/dev/null
  13558. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13559. fi
  13560. _ACEOF
  13561. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13562. if \$ac_cs_recheck; then
  13563. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13564. shift
  13565. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13566. CONFIG_SHELL='$SHELL'
  13567. export CONFIG_SHELL
  13568. exec "\$@"
  13569. fi
  13570. _ACEOF
  13571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13572. exec 5>>config.log
  13573. {
  13574. echo
  13575. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13576. ## Running $as_me. ##
  13577. _ASBOX
  13578. $as_echo "$ac_log"
  13579. } >&5
  13580. _ACEOF
  13581. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13582. #
  13583. # INIT-COMMANDS
  13584. #
  13585. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13586. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13587. # if CDPATH is set.
  13588. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13589. sed_quote_subst='$sed_quote_subst'
  13590. double_quote_subst='$double_quote_subst'
  13591. delay_variable_subst='$delay_variable_subst'
  13592. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13593. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13594. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13595. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13596. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13597. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13598. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13599. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13600. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13601. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13602. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13603. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13604. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13605. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13606. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13607. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13608. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13609. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13610. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13611. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13612. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13613. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13614. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13615. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13616. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13617. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13618. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13619. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13620. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13621. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13622. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13623. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13624. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13625. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13626. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13627. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13628. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13629. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13630. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13631. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13632. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13633. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13634. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13635. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13636. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13637. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13638. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13639. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13640. 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"`'
  13641. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13642. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13643. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13644. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13645. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13646. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13647. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13648. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13649. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13650. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13651. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13652. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13653. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13654. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13655. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13656. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13657. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13658. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13659. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13660. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13661. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13662. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13663. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13664. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13665. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13666. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13667. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13668. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13669. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13670. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13671. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13672. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13673. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13674. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13675. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13676. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13677. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13678. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13679. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13680. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13681. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13682. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13683. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13684. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13685. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13686. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13687. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13688. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13689. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13690. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13691. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13692. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13693. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13694. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13695. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13696. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13697. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13698. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13699. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13700. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13701. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13702. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13703. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13704. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13705. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13706. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13707. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13708. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13709. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13710. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13711. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13712. LTCC='$LTCC'
  13713. LTCFLAGS='$LTCFLAGS'
  13714. compiler='$compiler_DEFAULT'
  13715. # A function that is used when there is no print builtin or printf.
  13716. func_fallback_echo ()
  13717. {
  13718. eval 'cat <<_LTECHO_EOF
  13719. \$1
  13720. _LTECHO_EOF'
  13721. }
  13722. # Quote evaled strings.
  13723. for var in SHELL \
  13724. ECHO \
  13725. SED \
  13726. GREP \
  13727. EGREP \
  13728. FGREP \
  13729. LD \
  13730. NM \
  13731. LN_S \
  13732. lt_SP2NL \
  13733. lt_NL2SP \
  13734. reload_flag \
  13735. OBJDUMP \
  13736. deplibs_check_method \
  13737. file_magic_cmd \
  13738. AR \
  13739. AR_FLAGS \
  13740. STRIP \
  13741. RANLIB \
  13742. CC \
  13743. CFLAGS \
  13744. compiler \
  13745. lt_cv_sys_global_symbol_pipe \
  13746. lt_cv_sys_global_symbol_to_cdecl \
  13747. lt_cv_sys_global_symbol_to_c_name_address \
  13748. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13749. lt_prog_compiler_no_builtin_flag \
  13750. lt_prog_compiler_wl \
  13751. lt_prog_compiler_pic \
  13752. lt_prog_compiler_static \
  13753. lt_cv_prog_compiler_c_o \
  13754. need_locks \
  13755. DSYMUTIL \
  13756. NMEDIT \
  13757. LIPO \
  13758. OTOOL \
  13759. OTOOL64 \
  13760. shrext_cmds \
  13761. export_dynamic_flag_spec \
  13762. whole_archive_flag_spec \
  13763. compiler_needs_object \
  13764. with_gnu_ld \
  13765. allow_undefined_flag \
  13766. no_undefined_flag \
  13767. hardcode_libdir_flag_spec \
  13768. hardcode_libdir_flag_spec_ld \
  13769. hardcode_libdir_separator \
  13770. fix_srcfile_path \
  13771. exclude_expsyms \
  13772. include_expsyms \
  13773. file_list_spec \
  13774. variables_saved_for_relink \
  13775. libname_spec \
  13776. library_names_spec \
  13777. soname_spec \
  13778. install_override_mode \
  13779. finish_eval \
  13780. old_striplib \
  13781. striplib; do
  13782. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13783. *[\\\\\\\`\\"\\\$]*)
  13784. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13785. ;;
  13786. *)
  13787. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13788. ;;
  13789. esac
  13790. done
  13791. # Double-quote double-evaled strings.
  13792. for var in reload_cmds \
  13793. old_postinstall_cmds \
  13794. old_postuninstall_cmds \
  13795. old_archive_cmds \
  13796. extract_expsyms_cmds \
  13797. old_archive_from_new_cmds \
  13798. old_archive_from_expsyms_cmds \
  13799. archive_cmds \
  13800. archive_expsym_cmds \
  13801. module_cmds \
  13802. module_expsym_cmds \
  13803. export_symbols_cmds \
  13804. prelink_cmds \
  13805. postinstall_cmds \
  13806. postuninstall_cmds \
  13807. finish_cmds \
  13808. sys_lib_search_path_spec \
  13809. sys_lib_dlsearch_path_spec; do
  13810. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13811. *[\\\\\\\`\\"\\\$]*)
  13812. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13813. ;;
  13814. *)
  13815. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13816. ;;
  13817. esac
  13818. done
  13819. ac_aux_dir='$ac_aux_dir'
  13820. xsi_shell='$xsi_shell'
  13821. lt_shell_append='$lt_shell_append'
  13822. # See if we are running on zsh, and set the options which allow our
  13823. # commands through without removal of \ escapes INIT.
  13824. if test -n "\${ZSH_VERSION+set}" ; then
  13825. setopt NO_GLOB_SUBST
  13826. fi
  13827. PACKAGE='$PACKAGE'
  13828. VERSION='$VERSION'
  13829. TIMESTAMP='$TIMESTAMP'
  13830. RM='$RM'
  13831. ofile='$ofile'
  13832. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13833. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  13834. # from automake.
  13835. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13836. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13837. LINGUAS="${LINGUAS-%UNSET%}"
  13838. _ACEOF
  13839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13840. # Handling of arguments.
  13841. for ac_config_target in $ac_config_targets
  13842. do
  13843. case $ac_config_target in
  13844. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13845. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13846. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  13847. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13848. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13849. "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
  13850. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  13851. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  13852. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13853. esac
  13854. done
  13855. # If the user did not use the arguments to specify the items to instantiate,
  13856. # then the envvar interface is used. Set only those that are not.
  13857. # We use the long form for the default assignment because of an extremely
  13858. # bizarre bug on SunOS 4.1.3.
  13859. if $ac_need_defaults; then
  13860. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13861. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13862. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13863. fi
  13864. # Have a temporary directory for convenience. Make it in the build tree
  13865. # simply because there is no reason against having it here, and in addition,
  13866. # creating and moving files from /tmp can sometimes cause problems.
  13867. # Hook for its removal unless debugging.
  13868. # Note that there is a small window in which the directory will not be cleaned:
  13869. # after its creation but before its name has been assigned to `$tmp'.
  13870. $debug ||
  13871. {
  13872. tmp= ac_tmp=
  13873. trap 'exit_status=$?
  13874. : "${ac_tmp:=$tmp}"
  13875. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13876. ' 0
  13877. trap 'as_fn_exit 1' 1 2 13 15
  13878. }
  13879. # Create a (secure) tmp directory for tmp files.
  13880. {
  13881. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13882. test -d "$tmp"
  13883. } ||
  13884. {
  13885. tmp=./conf$$-$RANDOM
  13886. (umask 077 && mkdir "$tmp")
  13887. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13888. ac_tmp=$tmp
  13889. # Set up the scripts for CONFIG_FILES section.
  13890. # No need to generate them if there are no CONFIG_FILES.
  13891. # This happens for instance with `./config.status config.h'.
  13892. if test -n "$CONFIG_FILES"; then
  13893. ac_cr=`echo X | tr X '\015'`
  13894. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13895. # But we know of no other shell where ac_cr would be empty at this
  13896. # point, so we can use a bashism as a fallback.
  13897. if test "x$ac_cr" = x; then
  13898. eval ac_cr=\$\'\\r\'
  13899. fi
  13900. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13901. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13902. ac_cs_awk_cr='\\r'
  13903. else
  13904. ac_cs_awk_cr=$ac_cr
  13905. fi
  13906. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13907. _ACEOF
  13908. {
  13909. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13910. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13911. echo "_ACEOF"
  13912. } >conf$$subs.sh ||
  13913. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13914. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13915. ac_delim='%!_!# '
  13916. for ac_last_try in false false false false false :; do
  13917. . ./conf$$subs.sh ||
  13918. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13919. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13920. if test $ac_delim_n = $ac_delim_num; then
  13921. break
  13922. elif $ac_last_try; then
  13923. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13924. else
  13925. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13926. fi
  13927. done
  13928. rm -f conf$$subs.sh
  13929. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13930. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13931. _ACEOF
  13932. sed -n '
  13933. h
  13934. s/^/S["/; s/!.*/"]=/
  13935. p
  13936. g
  13937. s/^[^!]*!//
  13938. :repl
  13939. t repl
  13940. s/'"$ac_delim"'$//
  13941. t delim
  13942. :nl
  13943. h
  13944. s/\(.\{148\}\)..*/\1/
  13945. t more1
  13946. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13947. p
  13948. n
  13949. b repl
  13950. :more1
  13951. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13952. p
  13953. g
  13954. s/.\{148\}//
  13955. t nl
  13956. :delim
  13957. h
  13958. s/\(.\{148\}\)..*/\1/
  13959. t more2
  13960. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13961. p
  13962. b
  13963. :more2
  13964. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13965. p
  13966. g
  13967. s/.\{148\}//
  13968. t delim
  13969. ' <conf$$subs.awk | sed '
  13970. /^[^""]/{
  13971. N
  13972. s/\n//
  13973. }
  13974. ' >>$CONFIG_STATUS || ac_write_fail=1
  13975. rm -f conf$$subs.awk
  13976. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13977. _ACAWK
  13978. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13979. for (key in S) S_is_set[key] = 1
  13980. FS = ""
  13981. }
  13982. {
  13983. line = $ 0
  13984. nfields = split(line, field, "@")
  13985. substed = 0
  13986. len = length(field[1])
  13987. for (i = 2; i < nfields; i++) {
  13988. key = field[i]
  13989. keylen = length(key)
  13990. if (S_is_set[key]) {
  13991. value = S[key]
  13992. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13993. len += length(value) + length(field[++i])
  13994. substed = 1
  13995. } else
  13996. len += 1 + keylen
  13997. }
  13998. print line
  13999. }
  14000. _ACAWK
  14001. _ACEOF
  14002. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14003. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14004. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14005. else
  14006. cat
  14007. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14008. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14009. _ACEOF
  14010. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14011. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14012. # trailing colons and then remove the whole line if VPATH becomes empty
  14013. # (actually we leave an empty line to preserve line numbers).
  14014. if test "x$srcdir" = x.; then
  14015. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14016. h
  14017. s///
  14018. s/^/:/
  14019. s/[ ]*$/:/
  14020. s/:\$(srcdir):/:/g
  14021. s/:\${srcdir}:/:/g
  14022. s/:@srcdir@:/:/g
  14023. s/^:*//
  14024. s/:*$//
  14025. x
  14026. s/\(=[ ]*\).*/\1/
  14027. G
  14028. s/\n//
  14029. s/^[^=]*=[ ]*$//
  14030. }'
  14031. fi
  14032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14033. fi # test -n "$CONFIG_FILES"
  14034. # Set up the scripts for CONFIG_HEADERS section.
  14035. # No need to generate them if there are no CONFIG_HEADERS.
  14036. # This happens for instance with `./config.status Makefile'.
  14037. if test -n "$CONFIG_HEADERS"; then
  14038. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14039. BEGIN {
  14040. _ACEOF
  14041. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14042. # here-document in config.status, that substitutes the proper values into
  14043. # config.h.in to produce config.h.
  14044. # Create a delimiter string that does not exist in confdefs.h, to ease
  14045. # handling of long lines.
  14046. ac_delim='%!_!# '
  14047. for ac_last_try in false false :; do
  14048. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14049. if test -z "$ac_tt"; then
  14050. break
  14051. elif $ac_last_try; then
  14052. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14053. else
  14054. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14055. fi
  14056. done
  14057. # For the awk script, D is an array of macro values keyed by name,
  14058. # likewise P contains macro parameters if any. Preserve backslash
  14059. # newline sequences.
  14060. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14061. sed -n '
  14062. s/.\{148\}/&'"$ac_delim"'/g
  14063. t rset
  14064. :rset
  14065. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14066. t def
  14067. d
  14068. :def
  14069. s/\\$//
  14070. t bsnl
  14071. s/["\\]/\\&/g
  14072. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14073. D["\1"]=" \3"/p
  14074. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14075. d
  14076. :bsnl
  14077. s/["\\]/\\&/g
  14078. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14079. D["\1"]=" \3\\\\\\n"\\/p
  14080. t cont
  14081. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14082. t cont
  14083. d
  14084. :cont
  14085. n
  14086. s/.\{148\}/&'"$ac_delim"'/g
  14087. t clear
  14088. :clear
  14089. s/\\$//
  14090. t bsnlc
  14091. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14092. d
  14093. :bsnlc
  14094. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14095. b cont
  14096. ' <confdefs.h | sed '
  14097. s/'"$ac_delim"'/"\\\
  14098. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14099. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14100. for (key in D) D_is_set[key] = 1
  14101. FS = ""
  14102. }
  14103. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14104. line = \$ 0
  14105. split(line, arg, " ")
  14106. if (arg[1] == "#") {
  14107. defundef = arg[2]
  14108. mac1 = arg[3]
  14109. } else {
  14110. defundef = substr(arg[1], 2)
  14111. mac1 = arg[2]
  14112. }
  14113. split(mac1, mac2, "(") #)
  14114. macro = mac2[1]
  14115. prefix = substr(line, 1, index(line, defundef) - 1)
  14116. if (D_is_set[macro]) {
  14117. # Preserve the white space surrounding the "#".
  14118. print prefix "define", macro P[macro] D[macro]
  14119. next
  14120. } else {
  14121. # Replace #undef with comments. This is necessary, for example,
  14122. # in the case of _POSIX_SOURCE, which is predefined and required
  14123. # on some systems where configure will not decide to define it.
  14124. if (defundef == "undef") {
  14125. print "/*", prefix defundef, macro, "*/"
  14126. next
  14127. }
  14128. }
  14129. }
  14130. { print }
  14131. _ACAWK
  14132. _ACEOF
  14133. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14134. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14135. fi # test -n "$CONFIG_HEADERS"
  14136. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14137. shift
  14138. for ac_tag
  14139. do
  14140. case $ac_tag in
  14141. :[FHLC]) ac_mode=$ac_tag; continue;;
  14142. esac
  14143. case $ac_mode$ac_tag in
  14144. :[FHL]*:*);;
  14145. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14146. :[FH]-) ac_tag=-:-;;
  14147. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14148. esac
  14149. ac_save_IFS=$IFS
  14150. IFS=:
  14151. set x $ac_tag
  14152. IFS=$ac_save_IFS
  14153. shift
  14154. ac_file=$1
  14155. shift
  14156. case $ac_mode in
  14157. :L) ac_source=$1;;
  14158. :[FH])
  14159. ac_file_inputs=
  14160. for ac_f
  14161. do
  14162. case $ac_f in
  14163. -) ac_f="$ac_tmp/stdin";;
  14164. *) # Look for the file first in the build tree, then in the source tree
  14165. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14166. # because $ac_f cannot contain `:'.
  14167. test -f "$ac_f" ||
  14168. case $ac_f in
  14169. [\\/$]*) false;;
  14170. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14171. esac ||
  14172. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14173. esac
  14174. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14175. as_fn_append ac_file_inputs " '$ac_f'"
  14176. done
  14177. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14178. # use $as_me), people would be surprised to read:
  14179. # /* config.h. Generated by config.status. */
  14180. configure_input='Generated from '`
  14181. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14182. `' by configure.'
  14183. if test x"$ac_file" != x-; then
  14184. configure_input="$ac_file. $configure_input"
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14186. $as_echo "$as_me: creating $ac_file" >&6;}
  14187. fi
  14188. # Neutralize special characters interpreted by sed in replacement strings.
  14189. case $configure_input in #(
  14190. *\&* | *\|* | *\\* )
  14191. ac_sed_conf_input=`$as_echo "$configure_input" |
  14192. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14193. *) ac_sed_conf_input=$configure_input;;
  14194. esac
  14195. case $ac_tag in
  14196. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14197. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14198. esac
  14199. ;;
  14200. esac
  14201. ac_dir=`$as_dirname -- "$ac_file" ||
  14202. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14203. X"$ac_file" : 'X\(//\)[^/]' \| \
  14204. X"$ac_file" : 'X\(//\)$' \| \
  14205. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14206. $as_echo X"$ac_file" |
  14207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14208. s//\1/
  14209. q
  14210. }
  14211. /^X\(\/\/\)[^/].*/{
  14212. s//\1/
  14213. q
  14214. }
  14215. /^X\(\/\/\)$/{
  14216. s//\1/
  14217. q
  14218. }
  14219. /^X\(\/\).*/{
  14220. s//\1/
  14221. q
  14222. }
  14223. s/.*/./; q'`
  14224. as_dir="$ac_dir"; as_fn_mkdir_p
  14225. ac_builddir=.
  14226. case "$ac_dir" in
  14227. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14228. *)
  14229. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14230. # A ".." for each directory in $ac_dir_suffix.
  14231. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14232. case $ac_top_builddir_sub in
  14233. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14234. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14235. esac ;;
  14236. esac
  14237. ac_abs_top_builddir=$ac_pwd
  14238. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14239. # for backward compatibility:
  14240. ac_top_builddir=$ac_top_build_prefix
  14241. case $srcdir in
  14242. .) # We are building in place.
  14243. ac_srcdir=.
  14244. ac_top_srcdir=$ac_top_builddir_sub
  14245. ac_abs_top_srcdir=$ac_pwd ;;
  14246. [\\/]* | ?:[\\/]* ) # Absolute name.
  14247. ac_srcdir=$srcdir$ac_dir_suffix;
  14248. ac_top_srcdir=$srcdir
  14249. ac_abs_top_srcdir=$srcdir ;;
  14250. *) # Relative name.
  14251. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14252. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14253. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14254. esac
  14255. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14256. case $ac_mode in
  14257. :F)
  14258. #
  14259. # CONFIG_FILE
  14260. #
  14261. case $INSTALL in
  14262. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14263. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14264. esac
  14265. ac_MKDIR_P=$MKDIR_P
  14266. case $MKDIR_P in
  14267. [\\/$]* | ?:[\\/]* ) ;;
  14268. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14269. esac
  14270. _ACEOF
  14271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14272. # If the template does not know about datarootdir, expand it.
  14273. # FIXME: This hack should be removed a few years after 2.60.
  14274. ac_datarootdir_hack=; ac_datarootdir_seen=
  14275. ac_sed_dataroot='
  14276. /datarootdir/ {
  14277. p
  14278. q
  14279. }
  14280. /@datadir@/p
  14281. /@docdir@/p
  14282. /@infodir@/p
  14283. /@localedir@/p
  14284. /@mandir@/p'
  14285. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14286. *datarootdir*) ac_datarootdir_seen=yes;;
  14287. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14289. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14290. _ACEOF
  14291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14292. ac_datarootdir_hack='
  14293. s&@datadir@&$datadir&g
  14294. s&@docdir@&$docdir&g
  14295. s&@infodir@&$infodir&g
  14296. s&@localedir@&$localedir&g
  14297. s&@mandir@&$mandir&g
  14298. s&\\\${datarootdir}&$datarootdir&g' ;;
  14299. esac
  14300. _ACEOF
  14301. # Neutralize VPATH when `$srcdir' = `.'.
  14302. # Shell code in configure.ac might set extrasub.
  14303. # FIXME: do we really want to maintain this feature?
  14304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14305. ac_sed_extra="$ac_vpsub
  14306. $extrasub
  14307. _ACEOF
  14308. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14309. :t
  14310. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14311. s|@configure_input@|$ac_sed_conf_input|;t t
  14312. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14313. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14314. s&@srcdir@&$ac_srcdir&;t t
  14315. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14316. s&@top_srcdir@&$ac_top_srcdir&;t t
  14317. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14318. s&@builddir@&$ac_builddir&;t t
  14319. s&@abs_builddir@&$ac_abs_builddir&;t t
  14320. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14321. s&@INSTALL@&$ac_INSTALL&;t t
  14322. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14323. $ac_datarootdir_hack
  14324. "
  14325. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14326. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14327. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14328. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14329. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14330. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14332. which seems to be undefined. Please make sure it is defined" >&5
  14333. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14334. which seems to be undefined. Please make sure it is defined" >&2;}
  14335. rm -f "$ac_tmp/stdin"
  14336. case $ac_file in
  14337. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14338. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14339. esac \
  14340. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14341. ;;
  14342. :H)
  14343. #
  14344. # CONFIG_HEADER
  14345. #
  14346. if test x"$ac_file" != x-; then
  14347. {
  14348. $as_echo "/* $configure_input */" \
  14349. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14350. } >"$ac_tmp/config.h" \
  14351. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14352. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14354. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14355. else
  14356. rm -f "$ac_file"
  14357. mv "$ac_tmp/config.h" "$ac_file" \
  14358. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14359. fi
  14360. else
  14361. $as_echo "/* $configure_input */" \
  14362. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14363. || as_fn_error $? "could not create -" "$LINENO" 5
  14364. fi
  14365. # Compute "$ac_file"'s index in $config_headers.
  14366. _am_arg="$ac_file"
  14367. _am_stamp_count=1
  14368. for _am_header in $config_headers :; do
  14369. case $_am_header in
  14370. $_am_arg | $_am_arg:* )
  14371. break ;;
  14372. * )
  14373. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14374. esac
  14375. done
  14376. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14377. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14378. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14379. X"$_am_arg" : 'X\(//\)$' \| \
  14380. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14381. $as_echo X"$_am_arg" |
  14382. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14383. s//\1/
  14384. q
  14385. }
  14386. /^X\(\/\/\)[^/].*/{
  14387. s//\1/
  14388. q
  14389. }
  14390. /^X\(\/\/\)$/{
  14391. s//\1/
  14392. q
  14393. }
  14394. /^X\(\/\).*/{
  14395. s//\1/
  14396. q
  14397. }
  14398. s/.*/./; q'`/stamp-h$_am_stamp_count
  14399. ;;
  14400. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14401. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14402. ;;
  14403. esac
  14404. case $ac_file$ac_mode in
  14405. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14406. # Older Autoconf quotes --file arguments for eval, but not when files
  14407. # are listed without --file. Let's play safe and only enable the eval
  14408. # if we detect the quoting.
  14409. case $CONFIG_FILES in
  14410. *\'*) eval set x "$CONFIG_FILES" ;;
  14411. *) set x $CONFIG_FILES ;;
  14412. esac
  14413. shift
  14414. for mf
  14415. do
  14416. # Strip MF so we end up with the name of the file.
  14417. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14418. # Check whether this is an Automake generated Makefile or not.
  14419. # We used to match only the files named 'Makefile.in', but
  14420. # some people rename them; so instead we look at the file content.
  14421. # Grep'ing the first line is not enough: some people post-process
  14422. # each Makefile.in and add a new line on top of each file to say so.
  14423. # Grep'ing the whole file is not good either: AIX grep has a line
  14424. # limit of 2048, but all sed's we know have understand at least 4000.
  14425. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14426. dirpart=`$as_dirname -- "$mf" ||
  14427. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14428. X"$mf" : 'X\(//\)[^/]' \| \
  14429. X"$mf" : 'X\(//\)$' \| \
  14430. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14431. $as_echo X"$mf" |
  14432. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14433. s//\1/
  14434. q
  14435. }
  14436. /^X\(\/\/\)[^/].*/{
  14437. s//\1/
  14438. q
  14439. }
  14440. /^X\(\/\/\)$/{
  14441. s//\1/
  14442. q
  14443. }
  14444. /^X\(\/\).*/{
  14445. s//\1/
  14446. q
  14447. }
  14448. s/.*/./; q'`
  14449. else
  14450. continue
  14451. fi
  14452. # Extract the definition of DEPDIR, am__include, and am__quote
  14453. # from the Makefile without running 'make'.
  14454. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14455. test -z "$DEPDIR" && continue
  14456. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14457. test -z "$am__include" && continue
  14458. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14459. # Find all dependency output files, they are included files with
  14460. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14461. # simplest approach to changing $(DEPDIR) to its actual value in the
  14462. # expansion.
  14463. for file in `sed -n "
  14464. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14465. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  14466. # Make sure the directory exists.
  14467. test -f "$dirpart/$file" && continue
  14468. fdir=`$as_dirname -- "$file" ||
  14469. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14470. X"$file" : 'X\(//\)[^/]' \| \
  14471. X"$file" : 'X\(//\)$' \| \
  14472. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14473. $as_echo X"$file" |
  14474. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14475. s//\1/
  14476. q
  14477. }
  14478. /^X\(\/\/\)[^/].*/{
  14479. s//\1/
  14480. q
  14481. }
  14482. /^X\(\/\/\)$/{
  14483. s//\1/
  14484. q
  14485. }
  14486. /^X\(\/\).*/{
  14487. s//\1/
  14488. q
  14489. }
  14490. s/.*/./; q'`
  14491. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14492. # echo "creating $dirpart/$file"
  14493. echo '# dummy' > "$dirpart/$file"
  14494. done
  14495. done
  14496. }
  14497. ;;
  14498. "libtool":C)
  14499. # See if we are running on zsh, and set the options which allow our
  14500. # commands through without removal of \ escapes.
  14501. if test -n "${ZSH_VERSION+set}" ; then
  14502. setopt NO_GLOB_SUBST
  14503. fi
  14504. cfgfile="${ofile}T"
  14505. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14506. $RM "$cfgfile"
  14507. cat <<_LT_EOF >> "$cfgfile"
  14508. #! $SHELL
  14509. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14510. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14511. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14512. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14513. #
  14514. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14515. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14516. # Written by Gordon Matzigkeit, 1996
  14517. #
  14518. # This file is part of GNU Libtool.
  14519. #
  14520. # GNU Libtool is free software; you can redistribute it and/or
  14521. # modify it under the terms of the GNU General Public License as
  14522. # published by the Free Software Foundation; either version 2 of
  14523. # the License, or (at your option) any later version.
  14524. #
  14525. # As a special exception to the GNU General Public License,
  14526. # if you distribute this file as part of a program or library that
  14527. # is built using GNU Libtool, you may include this file under the
  14528. # same distribution terms that you use for the rest of that program.
  14529. #
  14530. # GNU Libtool is distributed in the hope that it will be useful,
  14531. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14532. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14533. # GNU General Public License for more details.
  14534. #
  14535. # You should have received a copy of the GNU General Public License
  14536. # along with GNU Libtool; see the file COPYING. If not, a copy
  14537. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14538. # obtained by writing to the Free Software Foundation, Inc.,
  14539. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14540. # The names of the tagged configurations supported by this script.
  14541. available_tags=""
  14542. # ### BEGIN LIBTOOL CONFIG
  14543. # Whether or not to build shared libraries.
  14544. build_libtool_libs=$enable_shared
  14545. # Which release of libtool.m4 was used?
  14546. macro_version=$macro_version
  14547. macro_revision=$macro_revision
  14548. # Whether or not to build static libraries.
  14549. build_old_libs=$enable_static
  14550. # What type of objects to build.
  14551. pic_mode=$pic_mode
  14552. # Whether or not to optimize for fast installation.
  14553. fast_install=$enable_fast_install
  14554. # Shell to use when invoking shell scripts.
  14555. SHELL=$lt_SHELL
  14556. # An echo program that protects backslashes.
  14557. ECHO=$lt_ECHO
  14558. # The host system.
  14559. host_alias=$host_alias
  14560. host=$host
  14561. host_os=$host_os
  14562. # The build system.
  14563. build_alias=$build_alias
  14564. build=$build
  14565. build_os=$build_os
  14566. # A sed program that does not truncate output.
  14567. SED=$lt_SED
  14568. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14569. Xsed="\$SED -e 1s/^X//"
  14570. # A grep program that handles long lines.
  14571. GREP=$lt_GREP
  14572. # An ERE matcher.
  14573. EGREP=$lt_EGREP
  14574. # A literal string matcher.
  14575. FGREP=$lt_FGREP
  14576. # A BSD- or MS-compatible name lister.
  14577. NM=$lt_NM
  14578. # Whether we need soft or hard links.
  14579. LN_S=$lt_LN_S
  14580. # What is the maximum length of a command?
  14581. max_cmd_len=$max_cmd_len
  14582. # Object file suffix (normally "o").
  14583. objext=$ac_objext
  14584. # Executable file suffix (normally "").
  14585. exeext=$exeext
  14586. # whether the shell understands "unset".
  14587. lt_unset=$lt_unset
  14588. # turn spaces into newlines.
  14589. SP2NL=$lt_lt_SP2NL
  14590. # turn newlines into spaces.
  14591. NL2SP=$lt_lt_NL2SP
  14592. # An object symbol dumper.
  14593. OBJDUMP=$lt_OBJDUMP
  14594. # Method to check whether dependent libraries are shared objects.
  14595. deplibs_check_method=$lt_deplibs_check_method
  14596. # Command to use when deplibs_check_method == "file_magic".
  14597. file_magic_cmd=$lt_file_magic_cmd
  14598. # The archiver.
  14599. AR=$lt_AR
  14600. AR_FLAGS=$lt_AR_FLAGS
  14601. # A symbol stripping program.
  14602. STRIP=$lt_STRIP
  14603. # Commands used to install an old-style archive.
  14604. RANLIB=$lt_RANLIB
  14605. old_postinstall_cmds=$lt_old_postinstall_cmds
  14606. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14607. # Whether to use a lock for old archive extraction.
  14608. lock_old_archive_extraction=$lock_old_archive_extraction
  14609. # A C compiler.
  14610. LTCC=$lt_CC
  14611. # LTCC compiler flags.
  14612. LTCFLAGS=$lt_CFLAGS
  14613. # Take the output of nm and produce a listing of raw symbols and C names.
  14614. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14615. # Transform the output of nm in a proper C declaration.
  14616. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14617. # Transform the output of nm in a C name address pair.
  14618. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14619. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14620. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14621. # The name of the directory that contains temporary libtool files.
  14622. objdir=$objdir
  14623. # Used to examine libraries when file_magic_cmd begins with "file".
  14624. MAGIC_CMD=$MAGIC_CMD
  14625. # Must we lock files when doing compilation?
  14626. need_locks=$lt_need_locks
  14627. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14628. DSYMUTIL=$lt_DSYMUTIL
  14629. # Tool to change global to local symbols on Mac OS X.
  14630. NMEDIT=$lt_NMEDIT
  14631. # Tool to manipulate fat objects and archives on Mac OS X.
  14632. LIPO=$lt_LIPO
  14633. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14634. OTOOL=$lt_OTOOL
  14635. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14636. OTOOL64=$lt_OTOOL64
  14637. # Old archive suffix (normally "a").
  14638. libext=$libext
  14639. # Shared library suffix (normally ".so").
  14640. shrext_cmds=$lt_shrext_cmds
  14641. # The commands to extract the exported symbol list from a shared archive.
  14642. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14643. # Variables whose values should be saved in libtool wrapper scripts and
  14644. # restored at link time.
  14645. variables_saved_for_relink=$lt_variables_saved_for_relink
  14646. # Do we need the "lib" prefix for modules?
  14647. need_lib_prefix=$need_lib_prefix
  14648. # Do we need a version for libraries?
  14649. need_version=$need_version
  14650. # Library versioning type.
  14651. version_type=$version_type
  14652. # Shared library runtime path variable.
  14653. runpath_var=$runpath_var
  14654. # Shared library path variable.
  14655. shlibpath_var=$shlibpath_var
  14656. # Is shlibpath searched before the hard-coded library search path?
  14657. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14658. # Format of library name prefix.
  14659. libname_spec=$lt_libname_spec
  14660. # List of archive names. First name is the real one, the rest are links.
  14661. # The last name is the one that the linker finds with -lNAME
  14662. library_names_spec=$lt_library_names_spec
  14663. # The coded name of the library, if different from the real name.
  14664. soname_spec=$lt_soname_spec
  14665. # Permission mode override for installation of shared libraries.
  14666. install_override_mode=$lt_install_override_mode
  14667. # Command to use after installation of a shared archive.
  14668. postinstall_cmds=$lt_postinstall_cmds
  14669. # Command to use after uninstallation of a shared archive.
  14670. postuninstall_cmds=$lt_postuninstall_cmds
  14671. # Commands used to finish a libtool library installation in a directory.
  14672. finish_cmds=$lt_finish_cmds
  14673. # As "finish_cmds", except a single script fragment to be evaled but
  14674. # not shown.
  14675. finish_eval=$lt_finish_eval
  14676. # Whether we should hardcode library paths into libraries.
  14677. hardcode_into_libs=$hardcode_into_libs
  14678. # Compile-time system search path for libraries.
  14679. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14680. # Run-time system search path for libraries.
  14681. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14682. # Whether dlopen is supported.
  14683. dlopen_support=$enable_dlopen
  14684. # Whether dlopen of programs is supported.
  14685. dlopen_self=$enable_dlopen_self
  14686. # Whether dlopen of statically linked programs is supported.
  14687. dlopen_self_static=$enable_dlopen_self_static
  14688. # Commands to strip libraries.
  14689. old_striplib=$lt_old_striplib
  14690. striplib=$lt_striplib
  14691. # The linker used to build libraries.
  14692. LD=$lt_LD
  14693. # How to create reloadable object files.
  14694. reload_flag=$lt_reload_flag
  14695. reload_cmds=$lt_reload_cmds
  14696. # Commands used to build an old-style archive.
  14697. old_archive_cmds=$lt_old_archive_cmds
  14698. # A language specific compiler.
  14699. CC=$lt_compiler
  14700. # Is the compiler the GNU compiler?
  14701. with_gcc=$GCC
  14702. # Compiler flag to turn off builtin functions.
  14703. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14704. # How to pass a linker flag through the compiler.
  14705. wl=$lt_lt_prog_compiler_wl
  14706. # Additional compiler flags for building library objects.
  14707. pic_flag=$lt_lt_prog_compiler_pic
  14708. # Compiler flag to prevent dynamic linking.
  14709. link_static_flag=$lt_lt_prog_compiler_static
  14710. # Does compiler simultaneously support -c and -o options?
  14711. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14712. # Whether or not to add -lc for building shared libraries.
  14713. build_libtool_need_lc=$archive_cmds_need_lc
  14714. # Whether or not to disallow shared libs when runtime libs are static.
  14715. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14716. # Compiler flag to allow reflexive dlopens.
  14717. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14718. # Compiler flag to generate shared objects directly from archives.
  14719. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14720. # Whether the compiler copes with passing no objects directly.
  14721. compiler_needs_object=$lt_compiler_needs_object
  14722. # Create an old-style archive from a shared archive.
  14723. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14724. # Create a temporary old-style archive to link instead of a shared archive.
  14725. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14726. # Commands used to build a shared archive.
  14727. archive_cmds=$lt_archive_cmds
  14728. archive_expsym_cmds=$lt_archive_expsym_cmds
  14729. # Commands used to build a loadable module if different from building
  14730. # a shared archive.
  14731. module_cmds=$lt_module_cmds
  14732. module_expsym_cmds=$lt_module_expsym_cmds
  14733. # Whether we are building with GNU ld or not.
  14734. with_gnu_ld=$lt_with_gnu_ld
  14735. # Flag that allows shared libraries with undefined symbols to be built.
  14736. allow_undefined_flag=$lt_allow_undefined_flag
  14737. # Flag that enforces no undefined symbols.
  14738. no_undefined_flag=$lt_no_undefined_flag
  14739. # Flag to hardcode \$libdir into a binary during linking.
  14740. # This must work even if \$libdir does not exist
  14741. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14742. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14743. # during linking. This must work even if \$libdir does not exist.
  14744. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14745. # Whether we need a single "-rpath" flag with a separated argument.
  14746. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14747. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14748. # DIR into the resulting binary.
  14749. hardcode_direct=$hardcode_direct
  14750. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14751. # DIR into the resulting binary and the resulting library dependency is
  14752. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14753. # library is relocated.
  14754. hardcode_direct_absolute=$hardcode_direct_absolute
  14755. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14756. # into the resulting binary.
  14757. hardcode_minus_L=$hardcode_minus_L
  14758. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14759. # into the resulting binary.
  14760. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14761. # Set to "yes" if building a shared library automatically hardcodes DIR
  14762. # into the library and all subsequent libraries and executables linked
  14763. # against it.
  14764. hardcode_automatic=$hardcode_automatic
  14765. # Set to yes if linker adds runtime paths of dependent libraries
  14766. # to runtime path list.
  14767. inherit_rpath=$inherit_rpath
  14768. # Whether libtool must link a program against all its dependency libraries.
  14769. link_all_deplibs=$link_all_deplibs
  14770. # Fix the shell variable \$srcfile for the compiler.
  14771. fix_srcfile_path=$lt_fix_srcfile_path
  14772. # Set to "yes" if exported symbols are required.
  14773. always_export_symbols=$always_export_symbols
  14774. # The commands to list exported symbols.
  14775. export_symbols_cmds=$lt_export_symbols_cmds
  14776. # Symbols that should not be listed in the preloaded symbols.
  14777. exclude_expsyms=$lt_exclude_expsyms
  14778. # Symbols that must always be exported.
  14779. include_expsyms=$lt_include_expsyms
  14780. # Commands necessary for linking programs (against libraries) with templates.
  14781. prelink_cmds=$lt_prelink_cmds
  14782. # Specify filename containing input files.
  14783. file_list_spec=$lt_file_list_spec
  14784. # How to hardcode a shared library path into an executable.
  14785. hardcode_action=$hardcode_action
  14786. # ### END LIBTOOL CONFIG
  14787. _LT_EOF
  14788. case $host_os in
  14789. aix3*)
  14790. cat <<\_LT_EOF >> "$cfgfile"
  14791. # AIX sometimes has problems with the GCC collect2 program. For some
  14792. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14793. # vanish in a puff of smoke.
  14794. if test "X${COLLECT_NAMES+set}" != Xset; then
  14795. COLLECT_NAMES=
  14796. export COLLECT_NAMES
  14797. fi
  14798. _LT_EOF
  14799. ;;
  14800. esac
  14801. ltmain="$ac_aux_dir/ltmain.sh"
  14802. # We use sed instead of cat because bash on DJGPP gets confused if
  14803. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14804. # text mode, it properly converts lines to CR/LF. This bash problem
  14805. # is reportedly fixed, but why not run on old versions too?
  14806. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14807. || (rm -f "$cfgfile"; exit 1)
  14808. case $xsi_shell in
  14809. yes)
  14810. cat << \_LT_EOF >> "$cfgfile"
  14811. # func_dirname file append nondir_replacement
  14812. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14813. # otherwise set result to NONDIR_REPLACEMENT.
  14814. func_dirname ()
  14815. {
  14816. case ${1} in
  14817. */*) func_dirname_result="${1%/*}${2}" ;;
  14818. * ) func_dirname_result="${3}" ;;
  14819. esac
  14820. }
  14821. # func_basename file
  14822. func_basename ()
  14823. {
  14824. func_basename_result="${1##*/}"
  14825. }
  14826. # func_dirname_and_basename file append nondir_replacement
  14827. # perform func_basename and func_dirname in a single function
  14828. # call:
  14829. # dirname: Compute the dirname of FILE. If nonempty,
  14830. # add APPEND to the result, otherwise set result
  14831. # to NONDIR_REPLACEMENT.
  14832. # value returned in "$func_dirname_result"
  14833. # basename: Compute filename of FILE.
  14834. # value retuned in "$func_basename_result"
  14835. # Implementation must be kept synchronized with func_dirname
  14836. # and func_basename. For efficiency, we do not delegate to
  14837. # those functions but instead duplicate the functionality here.
  14838. func_dirname_and_basename ()
  14839. {
  14840. case ${1} in
  14841. */*) func_dirname_result="${1%/*}${2}" ;;
  14842. * ) func_dirname_result="${3}" ;;
  14843. esac
  14844. func_basename_result="${1##*/}"
  14845. }
  14846. # func_stripname prefix suffix name
  14847. # strip PREFIX and SUFFIX off of NAME.
  14848. # PREFIX and SUFFIX must not contain globbing or regex special
  14849. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14850. # dot (in which case that matches only a dot).
  14851. func_stripname ()
  14852. {
  14853. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14854. # positional parameters, so assign one to ordinary parameter first.
  14855. func_stripname_result=${3}
  14856. func_stripname_result=${func_stripname_result#"${1}"}
  14857. func_stripname_result=${func_stripname_result%"${2}"}
  14858. }
  14859. # func_opt_split
  14860. func_opt_split ()
  14861. {
  14862. func_opt_split_opt=${1%%=*}
  14863. func_opt_split_arg=${1#*=}
  14864. }
  14865. # func_lo2o object
  14866. func_lo2o ()
  14867. {
  14868. case ${1} in
  14869. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14870. *) func_lo2o_result=${1} ;;
  14871. esac
  14872. }
  14873. # func_xform libobj-or-source
  14874. func_xform ()
  14875. {
  14876. func_xform_result=${1%.*}.lo
  14877. }
  14878. # func_arith arithmetic-term...
  14879. func_arith ()
  14880. {
  14881. func_arith_result=$(( $* ))
  14882. }
  14883. # func_len string
  14884. # STRING may not start with a hyphen.
  14885. func_len ()
  14886. {
  14887. func_len_result=${#1}
  14888. }
  14889. _LT_EOF
  14890. ;;
  14891. *) # Bourne compatible functions.
  14892. cat << \_LT_EOF >> "$cfgfile"
  14893. # func_dirname file append nondir_replacement
  14894. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14895. # otherwise set result to NONDIR_REPLACEMENT.
  14896. func_dirname ()
  14897. {
  14898. # Extract subdirectory from the argument.
  14899. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14900. if test "X$func_dirname_result" = "X${1}"; then
  14901. func_dirname_result="${3}"
  14902. else
  14903. func_dirname_result="$func_dirname_result${2}"
  14904. fi
  14905. }
  14906. # func_basename file
  14907. func_basename ()
  14908. {
  14909. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14910. }
  14911. # func_stripname prefix suffix name
  14912. # strip PREFIX and SUFFIX off of NAME.
  14913. # PREFIX and SUFFIX must not contain globbing or regex special
  14914. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14915. # dot (in which case that matches only a dot).
  14916. # func_strip_suffix prefix name
  14917. func_stripname ()
  14918. {
  14919. case ${2} in
  14920. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14921. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14922. esac
  14923. }
  14924. # sed scripts:
  14925. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14926. my_sed_long_arg='1s/^-[^=]*=//'
  14927. # func_opt_split
  14928. func_opt_split ()
  14929. {
  14930. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14931. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14932. }
  14933. # func_lo2o object
  14934. func_lo2o ()
  14935. {
  14936. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14937. }
  14938. # func_xform libobj-or-source
  14939. func_xform ()
  14940. {
  14941. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14942. }
  14943. # func_arith arithmetic-term...
  14944. func_arith ()
  14945. {
  14946. func_arith_result=`expr "$@"`
  14947. }
  14948. # func_len string
  14949. # STRING may not start with a hyphen.
  14950. func_len ()
  14951. {
  14952. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14953. }
  14954. _LT_EOF
  14955. esac
  14956. case $lt_shell_append in
  14957. yes)
  14958. cat << \_LT_EOF >> "$cfgfile"
  14959. # func_append var value
  14960. # Append VALUE to the end of shell variable VAR.
  14961. func_append ()
  14962. {
  14963. eval "$1+=\$2"
  14964. }
  14965. _LT_EOF
  14966. ;;
  14967. *)
  14968. cat << \_LT_EOF >> "$cfgfile"
  14969. # func_append var value
  14970. # Append VALUE to the end of shell variable VAR.
  14971. func_append ()
  14972. {
  14973. eval "$1=\$$1\$2"
  14974. }
  14975. _LT_EOF
  14976. ;;
  14977. esac
  14978. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14979. || (rm -f "$cfgfile"; exit 1)
  14980. mv -f "$cfgfile" "$ofile" ||
  14981. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14982. chmod +x "$ofile"
  14983. ;;
  14984. "default-1":C)
  14985. for ac_file in $CONFIG_FILES; do
  14986. # Support "outfile[:infile[:infile...]]"
  14987. case "$ac_file" in
  14988. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14989. esac
  14990. # PO directories have a Makefile.in generated from Makefile.in.in.
  14991. case "$ac_file" in */Makefile.in)
  14992. # Adjust a relative srcdir.
  14993. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14994. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  14995. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14996. # In autoconf-2.13 it is called $ac_given_srcdir.
  14997. # In autoconf-2.50 it is called $srcdir.
  14998. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14999. case "$ac_given_srcdir" in
  15000. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  15001. /*) top_srcdir="$ac_given_srcdir" ;;
  15002. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  15003. esac
  15004. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  15005. rm -f "$ac_dir/POTFILES"
  15006. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  15007. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  15008. POMAKEFILEDEPS="POTFILES.in"
  15009. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  15010. # on $ac_dir but don't depend on user-specified configuration
  15011. # parameters.
  15012. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  15013. # The LINGUAS file contains the set of available languages.
  15014. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  15015. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  15016. fi
  15017. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  15018. # Hide the ALL_LINGUAS assigment from automake.
  15019. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  15020. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  15021. else
  15022. # The set of available languages was given in configure.ac.
  15023. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  15024. fi
  15025. case "$ac_given_srcdir" in
  15026. .) srcdirpre= ;;
  15027. *) srcdirpre='$(srcdir)/' ;;
  15028. esac
  15029. POFILES=
  15030. GMOFILES=
  15031. UPDATEPOFILES=
  15032. DUMMYPOFILES=
  15033. for lang in $ALL_LINGUAS; do
  15034. POFILES="$POFILES $srcdirpre$lang.po"
  15035. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15036. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15037. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15038. done
  15039. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15040. # environment variable.
  15041. INST_LINGUAS=
  15042. if test -n "$ALL_LINGUAS"; then
  15043. for presentlang in $ALL_LINGUAS; do
  15044. useit=no
  15045. if test "%UNSET%" != "$LINGUAS"; then
  15046. desiredlanguages="$LINGUAS"
  15047. else
  15048. desiredlanguages="$ALL_LINGUAS"
  15049. fi
  15050. for desiredlang in $desiredlanguages; do
  15051. # Use the presentlang catalog if desiredlang is
  15052. # a. equal to presentlang, or
  15053. # b. a variant of presentlang (because in this case,
  15054. # presentlang can be used as a fallback for messages
  15055. # which are not translated in the desiredlang catalog).
  15056. case "$desiredlang" in
  15057. "$presentlang"*) useit=yes;;
  15058. esac
  15059. done
  15060. if test $useit = yes; then
  15061. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15062. fi
  15063. done
  15064. fi
  15065. CATALOGS=
  15066. if test -n "$INST_LINGUAS"; then
  15067. for lang in $INST_LINGUAS; do
  15068. CATALOGS="$CATALOGS $lang.gmo"
  15069. done
  15070. fi
  15071. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15072. 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"
  15073. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15074. if test -f "$f"; then
  15075. case "$f" in
  15076. *.orig | *.bak | *~) ;;
  15077. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15078. esac
  15079. fi
  15080. done
  15081. fi
  15082. ;;
  15083. esac
  15084. done ;;
  15085. "default":C)
  15086. case "$srcdir" in
  15087. .) srcdirpre= ;;
  15088. *) srcdirpre='$(srcdir)/' ;;
  15089. esac
  15090. POFILES=
  15091. GMOFILES=
  15092. for lang in dummy $OBSOLETE_ALL_LINGUAS; do
  15093. if test $lang != dummy; then
  15094. POFILES="$POFILES $srcdirpre$lang.po"
  15095. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15096. fi
  15097. done
  15098. sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
  15099. -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
  15100. -e "s,@POFILES@,$POFILES," \
  15101. -e "s,@GMOFILES@,$GMOFILES," \
  15102. po/Makefile.in > po/Makefile ;;
  15103. esac
  15104. done # for ac_tag
  15105. as_fn_exit 0
  15106. _ACEOF
  15107. ac_clean_files=$ac_clean_files_save
  15108. test $ac_write_fail = 0 ||
  15109. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15110. # configure is writing to config.log, and then calls config.status.
  15111. # config.status does its own redirection, appending to config.log.
  15112. # Unfortunately, on DOS this fails, as config.log is still kept open
  15113. # by configure, so config.status won't be able to write to it; its
  15114. # output is simply discarded. So we exec the FD to /dev/null,
  15115. # effectively closing config.log, so it can be properly (re)opened and
  15116. # appended to by config.status. When coming back to configure, we
  15117. # need to make the FD available again.
  15118. if test "$no_create" != yes; then
  15119. ac_cs_success=:
  15120. ac_config_status_args=
  15121. test "$silent" = yes &&
  15122. ac_config_status_args="$ac_config_status_args --quiet"
  15123. exec 5>/dev/null
  15124. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15125. exec 5>>config.log
  15126. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15127. # would make configure fail if this is the last instruction.
  15128. $ac_cs_success || as_fn_exit 1
  15129. fi
  15130. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15132. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15133. fi
  15134. touch config.status.tmp
  15135. if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
  15136. sed '/as_fn_exit 0/i \
  15137. sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
  15138. touch --reference=Makefile Makefile.tmp \
  15139. mv Makefile.tmp Makefile \
  15140. ' config.status > config.status.tmp
  15141. touch --reference=config.status config.status.tmp
  15142. mv config.status.tmp config.status
  15143. chmod +x config.status
  15144. sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
  15145. touch --reference=Makefile Makefile.tmp
  15146. mv Makefile.tmp Makefile
  15147. else
  15148. rm -f config.status.tmp
  15149. fi