configure 549 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for bfd 2.25.51.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='bfd'
  509. PACKAGE_TARNAME='bfd'
  510. PACKAGE_VERSION='2.25.51'
  511. PACKAGE_STRING='bfd 2.25.51'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="libbfd.c"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. havevecs
  555. tdefaults
  556. bfd_ufile_ptr
  557. bfd_file_ptr
  558. lt_cv_dlopen_libs
  559. supports_plugins
  560. bfd_default_target_size
  561. bfd_machines
  562. bfd_backends
  563. all_backends
  564. bfd64_libs
  565. wordsize
  566. TDEFINES
  567. SHARED_LIBADD
  568. SHARED_LDFLAGS
  569. LIBM
  570. COREFLAG
  571. COREFILE
  572. zlibinc
  573. zlibdir
  574. EXEEXT_FOR_BUILD
  575. CC_FOR_BUILD
  576. BFD_HOSTPTR_T
  577. BFD_HOST_U_64_BIT
  578. BFD_HOST_64_BIT
  579. BFD_HOST_64_BIT_DEFINED
  580. BFD_HOST_64BIT_LONG_LONG
  581. BFD_HOST_64BIT_LONG
  582. HDEFINES
  583. MSGMERGE
  584. MSGFMT
  585. MKINSTALLDIRS
  586. CATOBJEXT
  587. GENCAT
  588. INSTOBJEXT
  589. DATADIRNAME
  590. CATALOGS
  591. POSUB
  592. GMSGFMT
  593. XGETTEXT
  594. INCINTL
  595. LIBINTL_DEP
  596. LIBINTL
  597. USE_NLS
  598. bfdincludedir
  599. bfdlibdir
  600. target_noncanonical
  601. host_noncanonical
  602. INSTALL_LIBBFD_FALSE
  603. INSTALL_LIBBFD_TRUE
  604. GENINSRC_NEVER_FALSE
  605. GENINSRC_NEVER_TRUE
  606. MAINT
  607. MAINTAINER_MODE_FALSE
  608. MAINTAINER_MODE_TRUE
  609. NO_WERROR
  610. WARN_CFLAGS
  611. REPORT_BUGS_TEXI
  612. REPORT_BUGS_TO
  613. PKGVERSION
  614. DEBUGDIR
  615. PLUGINS_FALSE
  616. PLUGINS_TRUE
  617. OTOOL64
  618. OTOOL
  619. LIPO
  620. NMEDIT
  621. DSYMUTIL
  622. OBJDUMP
  623. LN_S
  624. NM
  625. ac_ct_DUMPBIN
  626. DUMPBIN
  627. LD
  628. FGREP
  629. SED
  630. LIBTOOL
  631. EGREP
  632. GREP
  633. CPP
  634. RANLIB
  635. AR
  636. am__fastdepCC_FALSE
  637. am__fastdepCC_TRUE
  638. CCDEPMODE
  639. AMDEPBACKSLASH
  640. AMDEP_FALSE
  641. AMDEP_TRUE
  642. am__quote
  643. am__include
  644. DEPDIR
  645. am__untar
  646. am__tar
  647. AMTAR
  648. am__leading_dot
  649. SET_MAKE
  650. AWK
  651. mkdir_p
  652. MKDIR_P
  653. INSTALL_STRIP_PROGRAM
  654. STRIP
  655. install_sh
  656. MAKEINFO
  657. AUTOHEADER
  658. AUTOMAKE
  659. AUTOCONF
  660. ACLOCAL
  661. VERSION
  662. PACKAGE
  663. CYGPATH_W
  664. am__isrc
  665. INSTALL_DATA
  666. INSTALL_SCRIPT
  667. INSTALL_PROGRAM
  668. OBJEXT
  669. EXEEXT
  670. ac_ct_CC
  671. CPPFLAGS
  672. LDFLAGS
  673. CFLAGS
  674. CC
  675. target_os
  676. target_vendor
  677. target_cpu
  678. target
  679. host_os
  680. host_vendor
  681. host_cpu
  682. host
  683. build_os
  684. build_vendor
  685. build_cpu
  686. build
  687. target_alias
  688. host_alias
  689. build_alias
  690. LIBS
  691. ECHO_T
  692. ECHO_N
  693. ECHO_C
  694. DEFS
  695. mandir
  696. localedir
  697. libdir
  698. psdir
  699. pdfdir
  700. dvidir
  701. htmldir
  702. infodir
  703. docdir
  704. oldincludedir
  705. includedir
  706. localstatedir
  707. sharedstatedir
  708. sysconfdir
  709. datadir
  710. datarootdir
  711. libexecdir
  712. sbindir
  713. bindir
  714. program_transform_name
  715. prefix
  716. exec_prefix
  717. PACKAGE_URL
  718. PACKAGE_BUGREPORT
  719. PACKAGE_STRING
  720. PACKAGE_VERSION
  721. PACKAGE_TARNAME
  722. PACKAGE_NAME
  723. PATH_SEPARATOR
  724. SHELL'
  725. ac_subst_files=''
  726. ac_user_opts='
  727. enable_option_checking
  728. enable_dependency_tracking
  729. enable_shared
  730. enable_static
  731. with_pic
  732. enable_fast_install
  733. with_gnu_ld
  734. enable_libtool_lock
  735. enable_plugins
  736. enable_largefile
  737. enable_64_bit_bfd
  738. enable_targets
  739. with_mmap
  740. enable_secureplt
  741. enable_leading_mingw64_underscores
  742. with_separate_debug_dir
  743. enable_elf_stt_common
  744. with_pkgversion
  745. with_bugurl
  746. enable_werror
  747. enable_build_warnings
  748. enable_maintainer_mode
  749. enable_install_libbfd
  750. enable_nls
  751. with_system_zlib
  752. '
  753. ac_precious_vars='build_alias
  754. host_alias
  755. target_alias
  756. CC
  757. CFLAGS
  758. LDFLAGS
  759. LIBS
  760. CPPFLAGS
  761. CPP'
  762. # Initialize some variables set by options.
  763. ac_init_help=
  764. ac_init_version=false
  765. ac_unrecognized_opts=
  766. ac_unrecognized_sep=
  767. # The variables have the same names as the options, with
  768. # dashes changed to underlines.
  769. cache_file=/dev/null
  770. exec_prefix=NONE
  771. no_create=
  772. no_recursion=
  773. prefix=NONE
  774. program_prefix=NONE
  775. program_suffix=NONE
  776. program_transform_name=s,x,x,
  777. silent=
  778. site=
  779. srcdir=
  780. verbose=
  781. x_includes=NONE
  782. x_libraries=NONE
  783. # Installation directory options.
  784. # These are left unexpanded so users can "make install exec_prefix=/foo"
  785. # and all the variables that are supposed to be based on exec_prefix
  786. # by default will actually change.
  787. # Use braces instead of parens because sh, perl, etc. also accept them.
  788. # (The list follows the same order as the GNU Coding Standards.)
  789. bindir='${exec_prefix}/bin'
  790. sbindir='${exec_prefix}/sbin'
  791. libexecdir='${exec_prefix}/libexec'
  792. datarootdir='${prefix}/share'
  793. datadir='${datarootdir}'
  794. sysconfdir='${prefix}/etc'
  795. sharedstatedir='${prefix}/com'
  796. localstatedir='${prefix}/var'
  797. includedir='${prefix}/include'
  798. oldincludedir='/usr/include'
  799. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  800. infodir='${datarootdir}/info'
  801. htmldir='${docdir}'
  802. dvidir='${docdir}'
  803. pdfdir='${docdir}'
  804. psdir='${docdir}'
  805. libdir='${exec_prefix}/lib'
  806. localedir='${datarootdir}/locale'
  807. mandir='${datarootdir}/man'
  808. ac_prev=
  809. ac_dashdash=
  810. for ac_option
  811. do
  812. # If the previous option needs an argument, assign it.
  813. if test -n "$ac_prev"; then
  814. eval $ac_prev=\$ac_option
  815. ac_prev=
  816. continue
  817. fi
  818. case $ac_option in
  819. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  820. *) ac_optarg=yes ;;
  821. esac
  822. # Accept the important Cygnus configure options, so we can diagnose typos.
  823. case $ac_dashdash$ac_option in
  824. --)
  825. ac_dashdash=yes ;;
  826. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  827. ac_prev=bindir ;;
  828. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  829. bindir=$ac_optarg ;;
  830. -build | --build | --buil | --bui | --bu)
  831. ac_prev=build_alias ;;
  832. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  833. build_alias=$ac_optarg ;;
  834. -cache-file | --cache-file | --cache-fil | --cache-fi \
  835. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  836. ac_prev=cache_file ;;
  837. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  838. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  839. cache_file=$ac_optarg ;;
  840. --config-cache | -C)
  841. cache_file=config.cache ;;
  842. -datadir | --datadir | --datadi | --datad)
  843. ac_prev=datadir ;;
  844. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  845. datadir=$ac_optarg ;;
  846. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  847. | --dataroo | --dataro | --datar)
  848. ac_prev=datarootdir ;;
  849. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  850. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  851. datarootdir=$ac_optarg ;;
  852. -disable-* | --disable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=no ;;
  867. -docdir | --docdir | --docdi | --doc | --do)
  868. ac_prev=docdir ;;
  869. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  870. docdir=$ac_optarg ;;
  871. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  872. ac_prev=dvidir ;;
  873. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  874. dvidir=$ac_optarg ;;
  875. -enable-* | --enable-*)
  876. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  877. # Reject names that are not valid shell variable names.
  878. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  879. as_fn_error "invalid feature name: $ac_useropt"
  880. ac_useropt_orig=$ac_useropt
  881. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  882. case $ac_user_opts in
  883. *"
  884. "enable_$ac_useropt"
  885. "*) ;;
  886. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  887. ac_unrecognized_sep=', ';;
  888. esac
  889. eval enable_$ac_useropt=\$ac_optarg ;;
  890. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  891. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  892. | --exec | --exe | --ex)
  893. ac_prev=exec_prefix ;;
  894. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  895. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  896. | --exec=* | --exe=* | --ex=*)
  897. exec_prefix=$ac_optarg ;;
  898. -gas | --gas | --ga | --g)
  899. # Obsolete; use --with-gas.
  900. with_gas=yes ;;
  901. -help | --help | --hel | --he | -h)
  902. ac_init_help=long ;;
  903. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  904. ac_init_help=recursive ;;
  905. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  906. ac_init_help=short ;;
  907. -host | --host | --hos | --ho)
  908. ac_prev=host_alias ;;
  909. -host=* | --host=* | --hos=* | --ho=*)
  910. host_alias=$ac_optarg ;;
  911. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  912. ac_prev=htmldir ;;
  913. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  914. | --ht=*)
  915. htmldir=$ac_optarg ;;
  916. -includedir | --includedir | --includedi | --included | --include \
  917. | --includ | --inclu | --incl | --inc)
  918. ac_prev=includedir ;;
  919. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  920. | --includ=* | --inclu=* | --incl=* | --inc=*)
  921. includedir=$ac_optarg ;;
  922. -infodir | --infodir | --infodi | --infod | --info | --inf)
  923. ac_prev=infodir ;;
  924. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  925. infodir=$ac_optarg ;;
  926. -libdir | --libdir | --libdi | --libd)
  927. ac_prev=libdir ;;
  928. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  929. libdir=$ac_optarg ;;
  930. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  931. | --libexe | --libex | --libe)
  932. ac_prev=libexecdir ;;
  933. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  934. | --libexe=* | --libex=* | --libe=*)
  935. libexecdir=$ac_optarg ;;
  936. -localedir | --localedir | --localedi | --localed | --locale)
  937. ac_prev=localedir ;;
  938. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  939. localedir=$ac_optarg ;;
  940. -localstatedir | --localstatedir | --localstatedi | --localstated \
  941. | --localstate | --localstat | --localsta | --localst | --locals)
  942. ac_prev=localstatedir ;;
  943. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  944. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  945. localstatedir=$ac_optarg ;;
  946. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  947. ac_prev=mandir ;;
  948. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  949. mandir=$ac_optarg ;;
  950. -nfp | --nfp | --nf)
  951. # Obsolete; use --without-fp.
  952. with_fp=no ;;
  953. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  954. | --no-cr | --no-c | -n)
  955. no_create=yes ;;
  956. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  957. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  958. no_recursion=yes ;;
  959. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  960. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  961. | --oldin | --oldi | --old | --ol | --o)
  962. ac_prev=oldincludedir ;;
  963. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  964. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  965. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  966. oldincludedir=$ac_optarg ;;
  967. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  968. ac_prev=prefix ;;
  969. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  970. prefix=$ac_optarg ;;
  971. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  972. | --program-pre | --program-pr | --program-p)
  973. ac_prev=program_prefix ;;
  974. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  975. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  976. program_prefix=$ac_optarg ;;
  977. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  978. | --program-suf | --program-su | --program-s)
  979. ac_prev=program_suffix ;;
  980. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  981. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  982. program_suffix=$ac_optarg ;;
  983. -program-transform-name | --program-transform-name \
  984. | --program-transform-nam | --program-transform-na \
  985. | --program-transform-n | --program-transform- \
  986. | --program-transform | --program-transfor \
  987. | --program-transfo | --program-transf \
  988. | --program-trans | --program-tran \
  989. | --progr-tra | --program-tr | --program-t)
  990. ac_prev=program_transform_name ;;
  991. -program-transform-name=* | --program-transform-name=* \
  992. | --program-transform-nam=* | --program-transform-na=* \
  993. | --program-transform-n=* | --program-transform-=* \
  994. | --program-transform=* | --program-transfor=* \
  995. | --program-transfo=* | --program-transf=* \
  996. | --program-trans=* | --program-tran=* \
  997. | --progr-tra=* | --program-tr=* | --program-t=*)
  998. program_transform_name=$ac_optarg ;;
  999. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1000. ac_prev=pdfdir ;;
  1001. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1002. pdfdir=$ac_optarg ;;
  1003. -psdir | --psdir | --psdi | --psd | --ps)
  1004. ac_prev=psdir ;;
  1005. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1006. psdir=$ac_optarg ;;
  1007. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1008. | -silent | --silent | --silen | --sile | --sil)
  1009. silent=yes ;;
  1010. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1011. ac_prev=sbindir ;;
  1012. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1013. | --sbi=* | --sb=*)
  1014. sbindir=$ac_optarg ;;
  1015. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1016. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1017. | --sharedst | --shareds | --shared | --share | --shar \
  1018. | --sha | --sh)
  1019. ac_prev=sharedstatedir ;;
  1020. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1021. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1022. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1023. | --sha=* | --sh=*)
  1024. sharedstatedir=$ac_optarg ;;
  1025. -site | --site | --sit)
  1026. ac_prev=site ;;
  1027. -site=* | --site=* | --sit=*)
  1028. site=$ac_optarg ;;
  1029. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1030. ac_prev=srcdir ;;
  1031. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1032. srcdir=$ac_optarg ;;
  1033. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1034. | --syscon | --sysco | --sysc | --sys | --sy)
  1035. ac_prev=sysconfdir ;;
  1036. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1037. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1038. sysconfdir=$ac_optarg ;;
  1039. -target | --target | --targe | --targ | --tar | --ta | --t)
  1040. ac_prev=target_alias ;;
  1041. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1042. target_alias=$ac_optarg ;;
  1043. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1044. verbose=yes ;;
  1045. -version | --version | --versio | --versi | --vers | -V)
  1046. ac_init_version=: ;;
  1047. -with-* | --with-*)
  1048. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1049. # Reject names that are not valid shell variable names.
  1050. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1051. as_fn_error "invalid package name: $ac_useropt"
  1052. ac_useropt_orig=$ac_useropt
  1053. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1054. case $ac_user_opts in
  1055. *"
  1056. "with_$ac_useropt"
  1057. "*) ;;
  1058. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1059. ac_unrecognized_sep=', ';;
  1060. esac
  1061. eval with_$ac_useropt=\$ac_optarg ;;
  1062. -without-* | --without-*)
  1063. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1066. as_fn_error "invalid package name: $ac_useropt"
  1067. ac_useropt_orig=$ac_useropt
  1068. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1069. case $ac_user_opts in
  1070. *"
  1071. "with_$ac_useropt"
  1072. "*) ;;
  1073. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1074. ac_unrecognized_sep=', ';;
  1075. esac
  1076. eval with_$ac_useropt=no ;;
  1077. --x)
  1078. # Obsolete; use --with-x.
  1079. with_x=yes ;;
  1080. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1081. | --x-incl | --x-inc | --x-in | --x-i)
  1082. ac_prev=x_includes ;;
  1083. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1084. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1085. x_includes=$ac_optarg ;;
  1086. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1087. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1088. ac_prev=x_libraries ;;
  1089. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1090. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1091. x_libraries=$ac_optarg ;;
  1092. -*) as_fn_error "unrecognized option: \`$ac_option'
  1093. Try \`$0 --help' for more information."
  1094. ;;
  1095. *=*)
  1096. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1097. # Reject names that are not valid shell variable names.
  1098. case $ac_envvar in #(
  1099. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1100. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1101. esac
  1102. eval $ac_envvar=\$ac_optarg
  1103. export $ac_envvar ;;
  1104. *)
  1105. # FIXME: should be removed in autoconf 3.0.
  1106. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1107. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1108. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1109. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1110. ;;
  1111. esac
  1112. done
  1113. if test -n "$ac_prev"; then
  1114. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1115. as_fn_error "missing argument to $ac_option"
  1116. fi
  1117. if test -n "$ac_unrecognized_opts"; then
  1118. case $enable_option_checking in
  1119. no) ;;
  1120. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1121. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1122. esac
  1123. fi
  1124. # Check all directory arguments for consistency.
  1125. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1126. datadir sysconfdir sharedstatedir localstatedir includedir \
  1127. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1128. libdir localedir mandir
  1129. do
  1130. eval ac_val=\$$ac_var
  1131. # Remove trailing slashes.
  1132. case $ac_val in
  1133. */ )
  1134. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1135. eval $ac_var=\$ac_val;;
  1136. esac
  1137. # Be sure to have absolute directory names.
  1138. case $ac_val in
  1139. [\\/$]* | ?:[\\/]* ) continue;;
  1140. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1141. esac
  1142. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1143. done
  1144. # There might be people who depend on the old broken behavior: `$host'
  1145. # used to hold the argument of --host etc.
  1146. # FIXME: To remove some day.
  1147. build=$build_alias
  1148. host=$host_alias
  1149. target=$target_alias
  1150. # FIXME: To remove some day.
  1151. if test "x$host_alias" != x; then
  1152. if test "x$build_alias" = x; then
  1153. cross_compiling=maybe
  1154. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1155. If a cross compiler is detected then cross compile mode will be used." >&2
  1156. elif test "x$build_alias" != "x$host_alias"; then
  1157. cross_compiling=yes
  1158. fi
  1159. fi
  1160. ac_tool_prefix=
  1161. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1162. test "$silent" = yes && exec 6>/dev/null
  1163. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1164. ac_ls_di=`ls -di .` &&
  1165. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1166. as_fn_error "working directory cannot be determined"
  1167. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1168. as_fn_error "pwd does not report name of working directory"
  1169. # Find the source files, if location was not specified.
  1170. if test -z "$srcdir"; then
  1171. ac_srcdir_defaulted=yes
  1172. # Try the directory containing this script, then the parent directory.
  1173. ac_confdir=`$as_dirname -- "$as_myself" ||
  1174. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1175. X"$as_myself" : 'X\(//\)[^/]' \| \
  1176. X"$as_myself" : 'X\(//\)$' \| \
  1177. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1178. $as_echo X"$as_myself" |
  1179. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\/\)[^/].*/{
  1184. s//\1/
  1185. q
  1186. }
  1187. /^X\(\/\/\)$/{
  1188. s//\1/
  1189. q
  1190. }
  1191. /^X\(\/\).*/{
  1192. s//\1/
  1193. q
  1194. }
  1195. s/.*/./; q'`
  1196. srcdir=$ac_confdir
  1197. if test ! -r "$srcdir/$ac_unique_file"; then
  1198. srcdir=..
  1199. fi
  1200. else
  1201. ac_srcdir_defaulted=no
  1202. fi
  1203. if test ! -r "$srcdir/$ac_unique_file"; then
  1204. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1205. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1206. fi
  1207. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1208. ac_abs_confdir=`(
  1209. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1210. pwd)`
  1211. # When building in place, set srcdir=.
  1212. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1213. srcdir=.
  1214. fi
  1215. # Remove unnecessary trailing slashes from srcdir.
  1216. # Double slashes in file names in object file debugging info
  1217. # mess up M-x gdb in Emacs.
  1218. case $srcdir in
  1219. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1220. esac
  1221. for ac_var in $ac_precious_vars; do
  1222. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1223. eval ac_env_${ac_var}_value=\$${ac_var}
  1224. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1225. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1226. done
  1227. #
  1228. # Report the --help message.
  1229. #
  1230. if test "$ac_init_help" = "long"; then
  1231. # Omit some internal or obsolete options to make the list less imposing.
  1232. # This message is too long to be a string in the A/UX 3.1 sh.
  1233. cat <<_ACEOF
  1234. \`configure' configures bfd 2.25.51 to adapt to many kinds of systems.
  1235. Usage: $0 [OPTION]... [VAR=VALUE]...
  1236. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1237. VAR=VALUE. See below for descriptions of some of the useful variables.
  1238. Defaults for the options are specified in brackets.
  1239. Configuration:
  1240. -h, --help display this help and exit
  1241. --help=short display options specific to this package
  1242. --help=recursive display the short help of all the included packages
  1243. -V, --version display version information and exit
  1244. -q, --quiet, --silent do not print \`checking...' messages
  1245. --cache-file=FILE cache test results in FILE [disabled]
  1246. -C, --config-cache alias for \`--cache-file=config.cache'
  1247. -n, --no-create do not create output files
  1248. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1249. Installation directories:
  1250. --prefix=PREFIX install architecture-independent files in PREFIX
  1251. [$ac_default_prefix]
  1252. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1253. [PREFIX]
  1254. By default, \`make install' will install all the files in
  1255. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1256. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1257. for instance \`--prefix=\$HOME'.
  1258. For better control, use the options below.
  1259. Fine tuning of the installation directories:
  1260. --bindir=DIR user executables [EPREFIX/bin]
  1261. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1262. --libexecdir=DIR program executables [EPREFIX/libexec]
  1263. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1264. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1265. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1266. --libdir=DIR object code libraries [EPREFIX/lib]
  1267. --includedir=DIR C header files [PREFIX/include]
  1268. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1269. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1270. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1271. --infodir=DIR info documentation [DATAROOTDIR/info]
  1272. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1273. --mandir=DIR man documentation [DATAROOTDIR/man]
  1274. --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
  1275. --htmldir=DIR html documentation [DOCDIR]
  1276. --dvidir=DIR dvi documentation [DOCDIR]
  1277. --pdfdir=DIR pdf documentation [DOCDIR]
  1278. --psdir=DIR ps documentation [DOCDIR]
  1279. _ACEOF
  1280. cat <<\_ACEOF
  1281. Program names:
  1282. --program-prefix=PREFIX prepend PREFIX to installed program names
  1283. --program-suffix=SUFFIX append SUFFIX to installed program names
  1284. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1285. System types:
  1286. --build=BUILD configure for building on BUILD [guessed]
  1287. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1288. --target=TARGET configure for building compilers for TARGET [HOST]
  1289. _ACEOF
  1290. fi
  1291. if test -n "$ac_init_help"; then
  1292. case $ac_init_help in
  1293. short | recursive ) echo "Configuration of bfd 2.25.51:";;
  1294. esac
  1295. cat <<\_ACEOF
  1296. Optional Features:
  1297. --disable-option-checking ignore unrecognized --enable/--with options
  1298. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1299. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1300. --disable-dependency-tracking speeds up one-time build
  1301. --enable-dependency-tracking do not reject slow dependency extractors
  1302. --enable-shared[=PKGS] build shared libraries [default=no]
  1303. --enable-static[=PKGS] build static libraries [default=yes]
  1304. --enable-fast-install[=PKGS]
  1305. optimize for fast installation [default=yes]
  1306. --disable-libtool-lock avoid locking (might break parallel builds)
  1307. --enable-plugins Enable support for plugins
  1308. --disable-largefile omit support for large files
  1309. --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
  1310. --enable-targets alternative target configurations
  1311. --enable-secureplt Default to creating read-only plt entries
  1312. --enable-leading-mingw64-underscores
  1313. Enable leading underscores on 64 bit mingw targets
  1314. --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
  1315. --enable-werror treat compile warnings as errors
  1316. --enable-build-warnings enable build-time compiler warnings
  1317. --enable-maintainer-mode enable make rules and dependencies not useful
  1318. (and sometimes confusing) to the casual installer
  1319. --enable-install-libbfd controls installation of libbfd and related headers
  1320. --disable-nls do not use Native Language Support
  1321. Optional Packages:
  1322. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1323. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1324. --with-pic try to use only PIC/non-PIC objects [default=use
  1325. both]
  1326. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1327. --with-mmap try using mmap for BFD input files if available
  1328. --with-separate-debug-dir=DIR
  1329. Look for global separate debug info in DIR
  1330. [default=LIBDIR/debug]
  1331. --with-pkgversion=PKG Use PKG in the version string in place of "GNU
  1332. Binutils"
  1333. --with-bugurl=URL Direct users to URL to report a bug
  1334. --with-system-zlib use installed libz
  1335. Some influential environment variables:
  1336. CC C compiler command
  1337. CFLAGS C compiler flags
  1338. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1339. nonstandard directory <lib dir>
  1340. LIBS libraries to pass to the linker, e.g. -l<library>
  1341. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1342. you have headers in a nonstandard directory <include dir>
  1343. CPP C preprocessor
  1344. Use these variables to override the choices made by `configure' or to help
  1345. it to find libraries and programs with nonstandard names/locations.
  1346. Report bugs to the package provider.
  1347. _ACEOF
  1348. ac_status=$?
  1349. fi
  1350. if test "$ac_init_help" = "recursive"; then
  1351. # If there are subdirs, report their specific --help.
  1352. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1353. test -d "$ac_dir" ||
  1354. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1355. continue
  1356. ac_builddir=.
  1357. case "$ac_dir" in
  1358. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1359. *)
  1360. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1361. # A ".." for each directory in $ac_dir_suffix.
  1362. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1363. case $ac_top_builddir_sub in
  1364. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1365. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1366. esac ;;
  1367. esac
  1368. ac_abs_top_builddir=$ac_pwd
  1369. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1370. # for backward compatibility:
  1371. ac_top_builddir=$ac_top_build_prefix
  1372. case $srcdir in
  1373. .) # We are building in place.
  1374. ac_srcdir=.
  1375. ac_top_srcdir=$ac_top_builddir_sub
  1376. ac_abs_top_srcdir=$ac_pwd ;;
  1377. [\\/]* | ?:[\\/]* ) # Absolute name.
  1378. ac_srcdir=$srcdir$ac_dir_suffix;
  1379. ac_top_srcdir=$srcdir
  1380. ac_abs_top_srcdir=$srcdir ;;
  1381. *) # Relative name.
  1382. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1383. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1384. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1385. esac
  1386. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1387. cd "$ac_dir" || { ac_status=$?; continue; }
  1388. # Check for guested configure.
  1389. if test -f "$ac_srcdir/configure.gnu"; then
  1390. echo &&
  1391. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1392. elif test -f "$ac_srcdir/configure"; then
  1393. echo &&
  1394. $SHELL "$ac_srcdir/configure" --help=recursive
  1395. else
  1396. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1397. fi || ac_status=$?
  1398. cd "$ac_pwd" || { ac_status=$?; break; }
  1399. done
  1400. fi
  1401. test -n "$ac_init_help" && exit $ac_status
  1402. if $ac_init_version; then
  1403. cat <<\_ACEOF
  1404. bfd configure 2.25.51
  1405. generated by GNU Autoconf 2.64
  1406. Copyright (C) 2009 Free Software Foundation, Inc.
  1407. This configure script is free software; the Free Software Foundation
  1408. gives unlimited permission to copy, distribute and modify it.
  1409. _ACEOF
  1410. exit
  1411. fi
  1412. ## ------------------------ ##
  1413. ## Autoconf initialization. ##
  1414. ## ------------------------ ##
  1415. # ac_fn_c_try_compile LINENO
  1416. # --------------------------
  1417. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1418. ac_fn_c_try_compile ()
  1419. {
  1420. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1421. rm -f conftest.$ac_objext
  1422. if { { ac_try="$ac_compile"
  1423. case "(($ac_try" in
  1424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1425. *) ac_try_echo=$ac_try;;
  1426. esac
  1427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1428. $as_echo "$ac_try_echo"; } >&5
  1429. (eval "$ac_compile") 2>conftest.err
  1430. ac_status=$?
  1431. if test -s conftest.err; then
  1432. grep -v '^ *+' conftest.err >conftest.er1
  1433. cat conftest.er1 >&5
  1434. mv -f conftest.er1 conftest.err
  1435. fi
  1436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1437. test $ac_status = 0; } && {
  1438. test -z "$ac_c_werror_flag" ||
  1439. test ! -s conftest.err
  1440. } && test -s conftest.$ac_objext; then :
  1441. ac_retval=0
  1442. else
  1443. $as_echo "$as_me: failed program was:" >&5
  1444. sed 's/^/| /' conftest.$ac_ext >&5
  1445. ac_retval=1
  1446. fi
  1447. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1448. return $ac_retval
  1449. } # ac_fn_c_try_compile
  1450. # ac_fn_c_try_link LINENO
  1451. # -----------------------
  1452. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1453. ac_fn_c_try_link ()
  1454. {
  1455. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1456. rm -f conftest.$ac_objext conftest$ac_exeext
  1457. if { { ac_try="$ac_link"
  1458. case "(($ac_try" in
  1459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1460. *) ac_try_echo=$ac_try;;
  1461. esac
  1462. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1463. $as_echo "$ac_try_echo"; } >&5
  1464. (eval "$ac_link") 2>conftest.err
  1465. ac_status=$?
  1466. if test -s conftest.err; then
  1467. grep -v '^ *+' conftest.err >conftest.er1
  1468. cat conftest.er1 >&5
  1469. mv -f conftest.er1 conftest.err
  1470. fi
  1471. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1472. test $ac_status = 0; } && {
  1473. test -z "$ac_c_werror_flag" ||
  1474. test ! -s conftest.err
  1475. } && test -s conftest$ac_exeext && {
  1476. test "$cross_compiling" = yes ||
  1477. $as_test_x conftest$ac_exeext
  1478. }; then :
  1479. ac_retval=0
  1480. else
  1481. $as_echo "$as_me: failed program was:" >&5
  1482. sed 's/^/| /' conftest.$ac_ext >&5
  1483. ac_retval=1
  1484. fi
  1485. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1486. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1487. # interfere with the next link command; also delete a directory that is
  1488. # left behind by Apple's compiler. We do this before executing the actions.
  1489. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1490. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1491. return $ac_retval
  1492. } # ac_fn_c_try_link
  1493. # ac_fn_c_try_cpp LINENO
  1494. # ----------------------
  1495. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1496. ac_fn_c_try_cpp ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1500. case "(($ac_try" in
  1501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1502. *) ac_try_echo=$ac_try;;
  1503. esac
  1504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1505. $as_echo "$ac_try_echo"; } >&5
  1506. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1507. ac_status=$?
  1508. if test -s conftest.err; then
  1509. grep -v '^ *+' conftest.err >conftest.er1
  1510. cat conftest.er1 >&5
  1511. mv -f conftest.er1 conftest.err
  1512. fi
  1513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1514. test $ac_status = 0; } >/dev/null && {
  1515. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1516. test ! -s conftest.err
  1517. }; then :
  1518. ac_retval=0
  1519. else
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=1
  1523. fi
  1524. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1525. return $ac_retval
  1526. } # ac_fn_c_try_cpp
  1527. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1528. # -------------------------------------------------------
  1529. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1530. # the include files in INCLUDES and setting the cache variable VAR
  1531. # accordingly.
  1532. ac_fn_c_check_header_mongrel ()
  1533. {
  1534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1535. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1537. $as_echo_n "checking for $2... " >&6; }
  1538. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1539. $as_echo_n "(cached) " >&6
  1540. fi
  1541. eval ac_res=\$$3
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1543. $as_echo "$ac_res" >&6; }
  1544. else
  1545. # Is the header compilable?
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1547. $as_echo_n "checking $2 usability... " >&6; }
  1548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1549. /* end confdefs.h. */
  1550. $4
  1551. #include <$2>
  1552. _ACEOF
  1553. if ac_fn_c_try_compile "$LINENO"; then :
  1554. ac_header_compiler=yes
  1555. else
  1556. ac_header_compiler=no
  1557. fi
  1558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1560. $as_echo "$ac_header_compiler" >&6; }
  1561. # Is the header present?
  1562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1563. $as_echo_n "checking $2 presence... " >&6; }
  1564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1565. /* end confdefs.h. */
  1566. #include <$2>
  1567. _ACEOF
  1568. if ac_fn_c_try_cpp "$LINENO"; then :
  1569. ac_header_preproc=yes
  1570. else
  1571. ac_header_preproc=no
  1572. fi
  1573. rm -f conftest.err conftest.$ac_ext
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1575. $as_echo "$ac_header_preproc" >&6; }
  1576. # So? What about this header?
  1577. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1578. yes:no: )
  1579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1580. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1582. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1583. ;;
  1584. no:yes:* )
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1586. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1588. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1590. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1592. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1594. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1595. ;;
  1596. esac
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1598. $as_echo_n "checking for $2... " >&6; }
  1599. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1600. $as_echo_n "(cached) " >&6
  1601. else
  1602. eval "$3=\$ac_header_compiler"
  1603. fi
  1604. eval ac_res=\$$3
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1606. $as_echo "$ac_res" >&6; }
  1607. fi
  1608. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1609. } # ac_fn_c_check_header_mongrel
  1610. # ac_fn_c_try_run LINENO
  1611. # ----------------------
  1612. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1613. # that executables *can* be run.
  1614. ac_fn_c_try_run ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. if { { ac_try="$ac_link"
  1618. case "(($ac_try" in
  1619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1620. *) ac_try_echo=$ac_try;;
  1621. esac
  1622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1623. $as_echo "$ac_try_echo"; } >&5
  1624. (eval "$ac_link") 2>&5
  1625. ac_status=$?
  1626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1627. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1628. { { case "(($ac_try" in
  1629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1630. *) ac_try_echo=$ac_try;;
  1631. esac
  1632. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1633. $as_echo "$ac_try_echo"; } >&5
  1634. (eval "$ac_try") 2>&5
  1635. ac_status=$?
  1636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1637. test $ac_status = 0; }; }; then :
  1638. ac_retval=0
  1639. else
  1640. $as_echo "$as_me: program exited with status $ac_status" >&5
  1641. $as_echo "$as_me: failed program was:" >&5
  1642. sed 's/^/| /' conftest.$ac_ext >&5
  1643. ac_retval=$ac_status
  1644. fi
  1645. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1646. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1647. return $ac_retval
  1648. } # ac_fn_c_try_run
  1649. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1650. # -------------------------------------------------------
  1651. # Tests whether HEADER exists and can be compiled using the include files in
  1652. # INCLUDES, setting the cache variable VAR accordingly.
  1653. ac_fn_c_check_header_compile ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1657. $as_echo_n "checking for $2... " >&6; }
  1658. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1659. $as_echo_n "(cached) " >&6
  1660. else
  1661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1662. /* end confdefs.h. */
  1663. $4
  1664. #include <$2>
  1665. _ACEOF
  1666. if ac_fn_c_try_compile "$LINENO"; then :
  1667. eval "$3=yes"
  1668. else
  1669. eval "$3=no"
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. fi
  1673. eval ac_res=\$$3
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1675. $as_echo "$ac_res" >&6; }
  1676. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1677. } # ac_fn_c_check_header_compile
  1678. # ac_fn_c_check_func LINENO FUNC VAR
  1679. # ----------------------------------
  1680. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1681. ac_fn_c_check_func ()
  1682. {
  1683. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1685. $as_echo_n "checking for $2... " >&6; }
  1686. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1687. $as_echo_n "(cached) " >&6
  1688. else
  1689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1690. /* end confdefs.h. */
  1691. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1692. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1693. #define $2 innocuous_$2
  1694. /* System header to define __stub macros and hopefully few prototypes,
  1695. which can conflict with char $2 (); below.
  1696. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1697. <limits.h> exists even on freestanding compilers. */
  1698. #ifdef __STDC__
  1699. # include <limits.h>
  1700. #else
  1701. # include <assert.h>
  1702. #endif
  1703. #undef $2
  1704. /* Override any GCC internal prototype to avoid an error.
  1705. Use char because int might match the return type of a GCC
  1706. builtin and then its argument prototype would still apply. */
  1707. #ifdef __cplusplus
  1708. extern "C"
  1709. #endif
  1710. char $2 ();
  1711. /* The GNU C library defines this for functions which it implements
  1712. to always fail with ENOSYS. Some functions are actually named
  1713. something starting with __ and the normal name is an alias. */
  1714. #if defined __stub_$2 || defined __stub___$2
  1715. choke me
  1716. #endif
  1717. int
  1718. main ()
  1719. {
  1720. return $2 ();
  1721. ;
  1722. return 0;
  1723. }
  1724. _ACEOF
  1725. if ac_fn_c_try_link "$LINENO"; then :
  1726. eval "$3=yes"
  1727. else
  1728. eval "$3=no"
  1729. fi
  1730. rm -f core conftest.err conftest.$ac_objext \
  1731. conftest$ac_exeext conftest.$ac_ext
  1732. fi
  1733. eval ac_res=\$$3
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1735. $as_echo "$ac_res" >&6; }
  1736. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1737. } # ac_fn_c_check_func
  1738. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1739. # --------------------------------------------
  1740. # Tries to find the compile-time value of EXPR in a program that includes
  1741. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1742. # computed
  1743. ac_fn_c_compute_int ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. if test "$cross_compiling" = yes; then
  1747. # Depending upon the size, compute the lo and hi bounds.
  1748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1749. /* end confdefs.h. */
  1750. $4
  1751. int
  1752. main ()
  1753. {
  1754. static int test_array [1 - 2 * !(($2) >= 0)];
  1755. test_array [0] = 0
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_c_try_compile "$LINENO"; then :
  1761. ac_lo=0 ac_mid=0
  1762. while :; do
  1763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end confdefs.h. */
  1765. $4
  1766. int
  1767. main ()
  1768. {
  1769. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1770. test_array [0] = 0
  1771. ;
  1772. return 0;
  1773. }
  1774. _ACEOF
  1775. if ac_fn_c_try_compile "$LINENO"; then :
  1776. ac_hi=$ac_mid; break
  1777. else
  1778. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1779. if test $ac_lo -le $ac_mid; then
  1780. ac_lo= ac_hi=
  1781. break
  1782. fi
  1783. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1784. fi
  1785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1786. done
  1787. else
  1788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1789. /* end confdefs.h. */
  1790. $4
  1791. int
  1792. main ()
  1793. {
  1794. static int test_array [1 - 2 * !(($2) < 0)];
  1795. test_array [0] = 0
  1796. ;
  1797. return 0;
  1798. }
  1799. _ACEOF
  1800. if ac_fn_c_try_compile "$LINENO"; then :
  1801. ac_hi=-1 ac_mid=-1
  1802. while :; do
  1803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1804. /* end confdefs.h. */
  1805. $4
  1806. int
  1807. main ()
  1808. {
  1809. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1810. test_array [0] = 0
  1811. ;
  1812. return 0;
  1813. }
  1814. _ACEOF
  1815. if ac_fn_c_try_compile "$LINENO"; then :
  1816. ac_lo=$ac_mid; break
  1817. else
  1818. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1819. if test $ac_mid -le $ac_hi; then
  1820. ac_lo= ac_hi=
  1821. break
  1822. fi
  1823. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. done
  1827. else
  1828. ac_lo= ac_hi=
  1829. fi
  1830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1833. # Binary search between lo and hi bounds.
  1834. while test "x$ac_lo" != "x$ac_hi"; do
  1835. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1837. /* end confdefs.h. */
  1838. $4
  1839. int
  1840. main ()
  1841. {
  1842. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1843. test_array [0] = 0
  1844. ;
  1845. return 0;
  1846. }
  1847. _ACEOF
  1848. if ac_fn_c_try_compile "$LINENO"; then :
  1849. ac_hi=$ac_mid
  1850. else
  1851. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1852. fi
  1853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1854. done
  1855. case $ac_lo in #((
  1856. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1857. '') ac_retval=1 ;;
  1858. esac
  1859. else
  1860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1861. /* end confdefs.h. */
  1862. $4
  1863. static long int longval () { return $2; }
  1864. static unsigned long int ulongval () { return $2; }
  1865. #include <stdio.h>
  1866. #include <stdlib.h>
  1867. int
  1868. main ()
  1869. {
  1870. FILE *f = fopen ("conftest.val", "w");
  1871. if (! f)
  1872. return 1;
  1873. if (($2) < 0)
  1874. {
  1875. long int i = longval ();
  1876. if (i != ($2))
  1877. return 1;
  1878. fprintf (f, "%ld", i);
  1879. }
  1880. else
  1881. {
  1882. unsigned long int i = ulongval ();
  1883. if (i != ($2))
  1884. return 1;
  1885. fprintf (f, "%lu", i);
  1886. }
  1887. /* Do not output a trailing newline, as this causes \r\n confusion
  1888. on some platforms. */
  1889. return ferror (f) || fclose (f) != 0;
  1890. ;
  1891. return 0;
  1892. }
  1893. _ACEOF
  1894. if ac_fn_c_try_run "$LINENO"; then :
  1895. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1896. else
  1897. ac_retval=1
  1898. fi
  1899. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1900. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1901. rm -f conftest.val
  1902. fi
  1903. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1904. return $ac_retval
  1905. } # ac_fn_c_compute_int
  1906. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1907. # -------------------------------------------
  1908. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1909. # variable VAR accordingly.
  1910. ac_fn_c_check_type ()
  1911. {
  1912. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1914. $as_echo_n "checking for $2... " >&6; }
  1915. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1916. $as_echo_n "(cached) " >&6
  1917. else
  1918. eval "$3=no"
  1919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1920. /* end confdefs.h. */
  1921. $4
  1922. int
  1923. main ()
  1924. {
  1925. if (sizeof ($2))
  1926. return 0;
  1927. ;
  1928. return 0;
  1929. }
  1930. _ACEOF
  1931. if ac_fn_c_try_compile "$LINENO"; then :
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. int
  1936. main ()
  1937. {
  1938. if (sizeof (($2)))
  1939. return 0;
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. if ac_fn_c_try_compile "$LINENO"; then :
  1945. else
  1946. eval "$3=yes"
  1947. fi
  1948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1949. fi
  1950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1951. fi
  1952. eval ac_res=\$$3
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1954. $as_echo "$ac_res" >&6; }
  1955. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1956. } # ac_fn_c_check_type
  1957. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1958. # ------------------------------------
  1959. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1960. ac_fn_c_check_decl ()
  1961. {
  1962. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1963. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1964. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1966. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1967. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1968. $as_echo_n "(cached) " >&6
  1969. else
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $4
  1973. int
  1974. main ()
  1975. {
  1976. #ifndef $as_decl_name
  1977. #ifdef __cplusplus
  1978. (void) $as_decl_use;
  1979. #else
  1980. (void) $as_decl_name;
  1981. #endif
  1982. #endif
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. if ac_fn_c_try_compile "$LINENO"; then :
  1988. eval "$3=yes"
  1989. else
  1990. eval "$3=no"
  1991. fi
  1992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1993. fi
  1994. eval ac_res=\$$3
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1996. $as_echo "$ac_res" >&6; }
  1997. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1998. } # ac_fn_c_check_decl
  1999. cat >config.log <<_ACEOF
  2000. This file contains any messages produced by compilers while
  2001. running configure, to aid debugging if configure makes a mistake.
  2002. It was created by bfd $as_me 2.25.51, which was
  2003. generated by GNU Autoconf 2.64. Invocation command line was
  2004. $ $0 $@
  2005. _ACEOF
  2006. exec 5>>config.log
  2007. {
  2008. cat <<_ASUNAME
  2009. ## --------- ##
  2010. ## Platform. ##
  2011. ## --------- ##
  2012. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2013. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2014. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2015. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2016. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2017. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2018. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2019. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2020. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2021. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2022. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2023. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2024. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2025. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2026. _ASUNAME
  2027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2028. for as_dir in $PATH
  2029. do
  2030. IFS=$as_save_IFS
  2031. test -z "$as_dir" && as_dir=.
  2032. $as_echo "PATH: $as_dir"
  2033. done
  2034. IFS=$as_save_IFS
  2035. } >&5
  2036. cat >&5 <<_ACEOF
  2037. ## ----------- ##
  2038. ## Core tests. ##
  2039. ## ----------- ##
  2040. _ACEOF
  2041. # Keep a trace of the command line.
  2042. # Strip out --no-create and --no-recursion so they do not pile up.
  2043. # Strip out --silent because we don't want to record it for future runs.
  2044. # Also quote any args containing shell meta-characters.
  2045. # Make two passes to allow for proper duplicate-argument suppression.
  2046. ac_configure_args=
  2047. ac_configure_args0=
  2048. ac_configure_args1=
  2049. ac_must_keep_next=false
  2050. for ac_pass in 1 2
  2051. do
  2052. for ac_arg
  2053. do
  2054. case $ac_arg in
  2055. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2056. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2057. | -silent | --silent | --silen | --sile | --sil)
  2058. continue ;;
  2059. *\'*)
  2060. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2061. esac
  2062. case $ac_pass in
  2063. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2064. 2)
  2065. as_fn_append ac_configure_args1 " '$ac_arg'"
  2066. if test $ac_must_keep_next = true; then
  2067. ac_must_keep_next=false # Got value, back to normal.
  2068. else
  2069. case $ac_arg in
  2070. *=* | --config-cache | -C | -disable-* | --disable-* \
  2071. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2072. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2073. | -with-* | --with-* | -without-* | --without-* | --x)
  2074. case "$ac_configure_args0 " in
  2075. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2076. esac
  2077. ;;
  2078. -* ) ac_must_keep_next=true ;;
  2079. esac
  2080. fi
  2081. as_fn_append ac_configure_args " '$ac_arg'"
  2082. ;;
  2083. esac
  2084. done
  2085. done
  2086. { ac_configure_args0=; unset ac_configure_args0;}
  2087. { ac_configure_args1=; unset ac_configure_args1;}
  2088. # When interrupted or exit'd, cleanup temporary files, and complete
  2089. # config.log. We remove comments because anyway the quotes in there
  2090. # would cause problems or look ugly.
  2091. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2092. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2093. trap 'exit_status=$?
  2094. # Save into config.log some information that might help in debugging.
  2095. {
  2096. echo
  2097. cat <<\_ASBOX
  2098. ## ---------------- ##
  2099. ## Cache variables. ##
  2100. ## ---------------- ##
  2101. _ASBOX
  2102. echo
  2103. # The following way of writing the cache mishandles newlines in values,
  2104. (
  2105. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2106. eval ac_val=\$$ac_var
  2107. case $ac_val in #(
  2108. *${as_nl}*)
  2109. case $ac_var in #(
  2110. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2111. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2112. esac
  2113. case $ac_var in #(
  2114. _ | IFS | as_nl) ;; #(
  2115. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2116. *) { eval $ac_var=; unset $ac_var;} ;;
  2117. esac ;;
  2118. esac
  2119. done
  2120. (set) 2>&1 |
  2121. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2122. *${as_nl}ac_space=\ *)
  2123. sed -n \
  2124. "s/'\''/'\''\\\\'\'''\''/g;
  2125. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2126. ;; #(
  2127. *)
  2128. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2129. ;;
  2130. esac |
  2131. sort
  2132. )
  2133. echo
  2134. cat <<\_ASBOX
  2135. ## ----------------- ##
  2136. ## Output variables. ##
  2137. ## ----------------- ##
  2138. _ASBOX
  2139. echo
  2140. for ac_var in $ac_subst_vars
  2141. do
  2142. eval ac_val=\$$ac_var
  2143. case $ac_val in
  2144. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2145. esac
  2146. $as_echo "$ac_var='\''$ac_val'\''"
  2147. done | sort
  2148. echo
  2149. if test -n "$ac_subst_files"; then
  2150. cat <<\_ASBOX
  2151. ## ------------------- ##
  2152. ## File substitutions. ##
  2153. ## ------------------- ##
  2154. _ASBOX
  2155. echo
  2156. for ac_var in $ac_subst_files
  2157. do
  2158. eval ac_val=\$$ac_var
  2159. case $ac_val in
  2160. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2161. esac
  2162. $as_echo "$ac_var='\''$ac_val'\''"
  2163. done | sort
  2164. echo
  2165. fi
  2166. if test -s confdefs.h; then
  2167. cat <<\_ASBOX
  2168. ## ----------- ##
  2169. ## confdefs.h. ##
  2170. ## ----------- ##
  2171. _ASBOX
  2172. echo
  2173. cat confdefs.h
  2174. echo
  2175. fi
  2176. test "$ac_signal" != 0 &&
  2177. $as_echo "$as_me: caught signal $ac_signal"
  2178. $as_echo "$as_me: exit $exit_status"
  2179. } >&5
  2180. rm -f core *.core core.conftest.* &&
  2181. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2182. exit $exit_status
  2183. ' 0
  2184. for ac_signal in 1 2 13 15; do
  2185. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2186. done
  2187. ac_signal=0
  2188. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2189. rm -f -r conftest* confdefs.h
  2190. $as_echo "/* confdefs.h */" > confdefs.h
  2191. # Predefined preprocessor variables.
  2192. cat >>confdefs.h <<_ACEOF
  2193. #define PACKAGE_NAME "$PACKAGE_NAME"
  2194. _ACEOF
  2195. cat >>confdefs.h <<_ACEOF
  2196. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2197. _ACEOF
  2198. cat >>confdefs.h <<_ACEOF
  2199. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2200. _ACEOF
  2201. cat >>confdefs.h <<_ACEOF
  2202. #define PACKAGE_STRING "$PACKAGE_STRING"
  2203. _ACEOF
  2204. cat >>confdefs.h <<_ACEOF
  2205. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2206. _ACEOF
  2207. cat >>confdefs.h <<_ACEOF
  2208. #define PACKAGE_URL "$PACKAGE_URL"
  2209. _ACEOF
  2210. # Let the site file select an alternate cache file if it wants to.
  2211. # Prefer an explicitly selected file to automatically selected ones.
  2212. ac_site_file1=NONE
  2213. ac_site_file2=NONE
  2214. if test -n "$CONFIG_SITE"; then
  2215. ac_site_file1=$CONFIG_SITE
  2216. elif test "x$prefix" != xNONE; then
  2217. ac_site_file1=$prefix/share/config.site
  2218. ac_site_file2=$prefix/etc/config.site
  2219. else
  2220. ac_site_file1=$ac_default_prefix/share/config.site
  2221. ac_site_file2=$ac_default_prefix/etc/config.site
  2222. fi
  2223. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2224. do
  2225. test "x$ac_site_file" = xNONE && continue
  2226. if test -r "$ac_site_file"; then
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2228. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2229. sed 's/^/| /' "$ac_site_file" >&5
  2230. . "$ac_site_file"
  2231. fi
  2232. done
  2233. if test -r "$cache_file"; then
  2234. # Some versions of bash will fail to source /dev/null (special
  2235. # files actually), so we avoid doing that.
  2236. if test -f "$cache_file"; then
  2237. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2238. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2239. case $cache_file in
  2240. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2241. *) . "./$cache_file";;
  2242. esac
  2243. fi
  2244. else
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2246. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2247. >$cache_file
  2248. fi
  2249. # Check that the precious variables saved in the cache have kept the same
  2250. # value.
  2251. ac_cache_corrupted=false
  2252. for ac_var in $ac_precious_vars; do
  2253. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2254. eval ac_new_set=\$ac_env_${ac_var}_set
  2255. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2256. eval ac_new_val=\$ac_env_${ac_var}_value
  2257. case $ac_old_set,$ac_new_set in
  2258. set,)
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2260. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2261. ac_cache_corrupted=: ;;
  2262. ,set)
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2264. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2265. ac_cache_corrupted=: ;;
  2266. ,);;
  2267. *)
  2268. if test "x$ac_old_val" != "x$ac_new_val"; then
  2269. # differences in whitespace do not lead to failure.
  2270. ac_old_val_w=`echo x $ac_old_val`
  2271. ac_new_val_w=`echo x $ac_new_val`
  2272. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2274. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2275. ac_cache_corrupted=:
  2276. else
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2278. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2279. eval $ac_var=\$ac_old_val
  2280. fi
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2282. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2284. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2285. fi;;
  2286. esac
  2287. # Pass precious variables to config.status.
  2288. if test "$ac_new_set" = set; then
  2289. case $ac_new_val in
  2290. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2291. *) ac_arg=$ac_var=$ac_new_val ;;
  2292. esac
  2293. case " $ac_configure_args " in
  2294. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2295. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2296. esac
  2297. fi
  2298. done
  2299. if $ac_cache_corrupted; then
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2301. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2303. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2304. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2305. fi
  2306. ## -------------------- ##
  2307. ## Main body of script. ##
  2308. ## -------------------- ##
  2309. ac_ext=c
  2310. ac_cpp='$CPP $CPPFLAGS'
  2311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2314. ac_aux_dir=
  2315. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2316. for ac_t in install-sh install.sh shtool; do
  2317. if test -f "$ac_dir/$ac_t"; then
  2318. ac_aux_dir=$ac_dir
  2319. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2320. break 2
  2321. fi
  2322. done
  2323. done
  2324. if test -z "$ac_aux_dir"; then
  2325. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2326. fi
  2327. # These three variables are undocumented and unsupported,
  2328. # and are intended to be withdrawn in a future Autoconf release.
  2329. # They can cause serious problems if a builder's source tree is in a directory
  2330. # whose full name contains unusual characters.
  2331. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2332. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2333. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2334. # Make sure we can run config.sub.
  2335. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2336. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2338. $as_echo_n "checking build system type... " >&6; }
  2339. if test "${ac_cv_build+set}" = set; then :
  2340. $as_echo_n "(cached) " >&6
  2341. else
  2342. ac_build_alias=$build_alias
  2343. test "x$ac_build_alias" = x &&
  2344. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2345. test "x$ac_build_alias" = x &&
  2346. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2347. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2348. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2349. fi
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2351. $as_echo "$ac_cv_build" >&6; }
  2352. case $ac_cv_build in
  2353. *-*-*) ;;
  2354. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2355. esac
  2356. build=$ac_cv_build
  2357. ac_save_IFS=$IFS; IFS='-'
  2358. set x $ac_cv_build
  2359. shift
  2360. build_cpu=$1
  2361. build_vendor=$2
  2362. shift; shift
  2363. # Remember, the first character of IFS is used to create $*,
  2364. # except with old shells:
  2365. build_os=$*
  2366. IFS=$ac_save_IFS
  2367. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2369. $as_echo_n "checking host system type... " >&6; }
  2370. if test "${ac_cv_host+set}" = set; then :
  2371. $as_echo_n "(cached) " >&6
  2372. else
  2373. if test "x$host_alias" = x; then
  2374. ac_cv_host=$ac_cv_build
  2375. else
  2376. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2377. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2378. fi
  2379. fi
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2381. $as_echo "$ac_cv_host" >&6; }
  2382. case $ac_cv_host in
  2383. *-*-*) ;;
  2384. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2385. esac
  2386. host=$ac_cv_host
  2387. ac_save_IFS=$IFS; IFS='-'
  2388. set x $ac_cv_host
  2389. shift
  2390. host_cpu=$1
  2391. host_vendor=$2
  2392. shift; shift
  2393. # Remember, the first character of IFS is used to create $*,
  2394. # except with old shells:
  2395. host_os=$*
  2396. IFS=$ac_save_IFS
  2397. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2399. $as_echo_n "checking target system type... " >&6; }
  2400. if test "${ac_cv_target+set}" = set; then :
  2401. $as_echo_n "(cached) " >&6
  2402. else
  2403. if test "x$target_alias" = x; then
  2404. ac_cv_target=$ac_cv_host
  2405. else
  2406. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2407. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2408. fi
  2409. fi
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2411. $as_echo "$ac_cv_target" >&6; }
  2412. case $ac_cv_target in
  2413. *-*-*) ;;
  2414. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2415. esac
  2416. target=$ac_cv_target
  2417. ac_save_IFS=$IFS; IFS='-'
  2418. set x $ac_cv_target
  2419. shift
  2420. target_cpu=$1
  2421. target_vendor=$2
  2422. shift; shift
  2423. # Remember, the first character of IFS is used to create $*,
  2424. # except with old shells:
  2425. target_os=$*
  2426. IFS=$ac_save_IFS
  2427. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2428. # The aliases save the names the user supplied, while $host etc.
  2429. # will get canonicalized.
  2430. test -n "$target_alias" &&
  2431. test "$program_prefix$program_suffix$program_transform_name" = \
  2432. NONENONEs,x,x, &&
  2433. program_prefix=${target_alias}-
  2434. ac_ext=c
  2435. ac_cpp='$CPP $CPPFLAGS'
  2436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2439. if test -n "$ac_tool_prefix"; then
  2440. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2441. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2443. $as_echo_n "checking for $ac_word... " >&6; }
  2444. if test "${ac_cv_prog_CC+set}" = set; then :
  2445. $as_echo_n "(cached) " >&6
  2446. else
  2447. if test -n "$CC"; then
  2448. ac_cv_prog_CC="$CC" # Let the user override the test.
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. for ac_exec_ext in '' $ac_executable_extensions; do
  2456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2457. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2459. break 2
  2460. fi
  2461. done
  2462. done
  2463. IFS=$as_save_IFS
  2464. fi
  2465. fi
  2466. CC=$ac_cv_prog_CC
  2467. if test -n "$CC"; then
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2469. $as_echo "$CC" >&6; }
  2470. else
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2472. $as_echo "no" >&6; }
  2473. fi
  2474. fi
  2475. if test -z "$ac_cv_prog_CC"; then
  2476. ac_ct_CC=$CC
  2477. # Extract the first word of "gcc", so it can be a program name with args.
  2478. set dummy gcc; ac_word=$2
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2480. $as_echo_n "checking for $ac_word... " >&6; }
  2481. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2482. $as_echo_n "(cached) " >&6
  2483. else
  2484. if test -n "$ac_ct_CC"; then
  2485. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2486. else
  2487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2488. for as_dir in $PATH
  2489. do
  2490. IFS=$as_save_IFS
  2491. test -z "$as_dir" && as_dir=.
  2492. for ac_exec_ext in '' $ac_executable_extensions; do
  2493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2494. ac_cv_prog_ac_ct_CC="gcc"
  2495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2496. break 2
  2497. fi
  2498. done
  2499. done
  2500. IFS=$as_save_IFS
  2501. fi
  2502. fi
  2503. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2504. if test -n "$ac_ct_CC"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2506. $as_echo "$ac_ct_CC" >&6; }
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2509. $as_echo "no" >&6; }
  2510. fi
  2511. if test "x$ac_ct_CC" = x; then
  2512. CC=""
  2513. else
  2514. case $cross_compiling:$ac_tool_warned in
  2515. yes:)
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2517. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2518. ac_tool_warned=yes ;;
  2519. esac
  2520. CC=$ac_ct_CC
  2521. fi
  2522. else
  2523. CC="$ac_cv_prog_CC"
  2524. fi
  2525. if test -z "$CC"; then
  2526. if test -n "$ac_tool_prefix"; then
  2527. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2528. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2530. $as_echo_n "checking for $ac_word... " >&6; }
  2531. if test "${ac_cv_prog_CC+set}" = set; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. if test -n "$CC"; then
  2535. ac_cv_prog_CC="$CC" # Let the user override the test.
  2536. else
  2537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2538. for as_dir in $PATH
  2539. do
  2540. IFS=$as_save_IFS
  2541. test -z "$as_dir" && as_dir=.
  2542. for ac_exec_ext in '' $ac_executable_extensions; do
  2543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2544. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2546. break 2
  2547. fi
  2548. done
  2549. done
  2550. IFS=$as_save_IFS
  2551. fi
  2552. fi
  2553. CC=$ac_cv_prog_CC
  2554. if test -n "$CC"; then
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2556. $as_echo "$CC" >&6; }
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2559. $as_echo "no" >&6; }
  2560. fi
  2561. fi
  2562. fi
  2563. if test -z "$CC"; then
  2564. # Extract the first word of "cc", so it can be a program name with args.
  2565. set dummy cc; ac_word=$2
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2567. $as_echo_n "checking for $ac_word... " >&6; }
  2568. if test "${ac_cv_prog_CC+set}" = set; then :
  2569. $as_echo_n "(cached) " >&6
  2570. else
  2571. if test -n "$CC"; then
  2572. ac_cv_prog_CC="$CC" # Let the user override the test.
  2573. else
  2574. ac_prog_rejected=no
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2582. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2583. ac_prog_rejected=yes
  2584. continue
  2585. fi
  2586. ac_cv_prog_CC="cc"
  2587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. IFS=$as_save_IFS
  2593. if test $ac_prog_rejected = yes; then
  2594. # We found a bogon in the path, so make sure we never use it.
  2595. set dummy $ac_cv_prog_CC
  2596. shift
  2597. if test $# != 0; then
  2598. # We chose a different compiler from the bogus one.
  2599. # However, it has the same basename, so the bogon will be chosen
  2600. # first if we set CC to just the basename; use the full file name.
  2601. shift
  2602. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2603. fi
  2604. fi
  2605. fi
  2606. fi
  2607. CC=$ac_cv_prog_CC
  2608. if test -n "$CC"; then
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2610. $as_echo "$CC" >&6; }
  2611. else
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2613. $as_echo "no" >&6; }
  2614. fi
  2615. fi
  2616. if test -z "$CC"; then
  2617. if test -n "$ac_tool_prefix"; then
  2618. for ac_prog in cl.exe
  2619. do
  2620. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2621. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2623. $as_echo_n "checking for $ac_word... " >&6; }
  2624. if test "${ac_cv_prog_CC+set}" = set; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. if test -n "$CC"; then
  2628. ac_cv_prog_CC="$CC" # Let the user override the test.
  2629. else
  2630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2631. for as_dir in $PATH
  2632. do
  2633. IFS=$as_save_IFS
  2634. test -z "$as_dir" && as_dir=.
  2635. for ac_exec_ext in '' $ac_executable_extensions; do
  2636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2637. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. fi
  2645. fi
  2646. CC=$ac_cv_prog_CC
  2647. if test -n "$CC"; then
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2649. $as_echo "$CC" >&6; }
  2650. else
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2652. $as_echo "no" >&6; }
  2653. fi
  2654. test -n "$CC" && break
  2655. done
  2656. fi
  2657. if test -z "$CC"; then
  2658. ac_ct_CC=$CC
  2659. for ac_prog in cl.exe
  2660. do
  2661. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2662. set dummy $ac_prog; ac_word=$2
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2664. $as_echo_n "checking for $ac_word... " >&6; }
  2665. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2666. $as_echo_n "(cached) " >&6
  2667. else
  2668. if test -n "$ac_ct_CC"; then
  2669. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. test -z "$as_dir" && as_dir=.
  2676. for ac_exec_ext in '' $ac_executable_extensions; do
  2677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2678. ac_cv_prog_ac_ct_CC="$ac_prog"
  2679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. fi
  2686. fi
  2687. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2688. if test -n "$ac_ct_CC"; then
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2690. $as_echo "$ac_ct_CC" >&6; }
  2691. else
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2693. $as_echo "no" >&6; }
  2694. fi
  2695. test -n "$ac_ct_CC" && break
  2696. done
  2697. if test "x$ac_ct_CC" = x; then
  2698. CC=""
  2699. else
  2700. case $cross_compiling:$ac_tool_warned in
  2701. yes:)
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2704. ac_tool_warned=yes ;;
  2705. esac
  2706. CC=$ac_ct_CC
  2707. fi
  2708. fi
  2709. fi
  2710. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2711. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2712. as_fn_error "no acceptable C compiler found in \$PATH
  2713. See \`config.log' for more details." "$LINENO" 5; }
  2714. # Provide some information about the compiler.
  2715. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2716. set X $ac_compile
  2717. ac_compiler=$2
  2718. for ac_option in --version -v -V -qversion; do
  2719. { { ac_try="$ac_compiler $ac_option >&5"
  2720. case "(($ac_try" in
  2721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2722. *) ac_try_echo=$ac_try;;
  2723. esac
  2724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2725. $as_echo "$ac_try_echo"; } >&5
  2726. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2727. ac_status=$?
  2728. if test -s conftest.err; then
  2729. sed '10a\
  2730. ... rest of stderr output deleted ...
  2731. 10q' conftest.err >conftest.er1
  2732. cat conftest.er1 >&5
  2733. rm -f conftest.er1 conftest.err
  2734. fi
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2736. test $ac_status = 0; }
  2737. done
  2738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2739. /* end confdefs.h. */
  2740. int
  2741. main ()
  2742. {
  2743. ;
  2744. return 0;
  2745. }
  2746. _ACEOF
  2747. ac_clean_files_save=$ac_clean_files
  2748. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2749. # Try to create an executable without -o first, disregard a.out.
  2750. # It will help us diagnose broken compilers, and finding out an intuition
  2751. # of exeext.
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2753. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2754. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2755. # The possible output files:
  2756. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2757. ac_rmfiles=
  2758. for ac_file in $ac_files
  2759. do
  2760. case $ac_file in
  2761. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2762. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2763. esac
  2764. done
  2765. rm -f $ac_rmfiles
  2766. if { { ac_try="$ac_link_default"
  2767. case "(($ac_try" in
  2768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2769. *) ac_try_echo=$ac_try;;
  2770. esac
  2771. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2772. $as_echo "$ac_try_echo"; } >&5
  2773. (eval "$ac_link_default") 2>&5
  2774. ac_status=$?
  2775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2776. test $ac_status = 0; }; then :
  2777. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2778. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2779. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2780. # so that the user can short-circuit this test for compilers unknown to
  2781. # Autoconf.
  2782. for ac_file in $ac_files ''
  2783. do
  2784. test -f "$ac_file" || continue
  2785. case $ac_file in
  2786. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2787. ;;
  2788. [ab].out )
  2789. # We found the default executable, but exeext='' is most
  2790. # certainly right.
  2791. break;;
  2792. *.* )
  2793. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2794. then :; else
  2795. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2796. fi
  2797. # We set ac_cv_exeext here because the later test for it is not
  2798. # safe: cross compilers may not add the suffix if given an `-o'
  2799. # argument, so we may need to know it at that point already.
  2800. # Even if this section looks crufty: it has the advantage of
  2801. # actually working.
  2802. break;;
  2803. * )
  2804. break;;
  2805. esac
  2806. done
  2807. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2808. else
  2809. ac_file=''
  2810. fi
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2812. $as_echo "$ac_file" >&6; }
  2813. if test -z "$ac_file"; then :
  2814. $as_echo "$as_me: failed program was:" >&5
  2815. sed 's/^/| /' conftest.$ac_ext >&5
  2816. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2817. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2818. { as_fn_set_status 77
  2819. as_fn_error "C compiler cannot create executables
  2820. See \`config.log' for more details." "$LINENO" 5; }; }
  2821. fi
  2822. ac_exeext=$ac_cv_exeext
  2823. # Check that the compiler produces executables we can run. If not, either
  2824. # the compiler is broken, or we cross compile.
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2826. $as_echo_n "checking whether the C compiler works... " >&6; }
  2827. # If not cross compiling, check that we can run a simple program.
  2828. if test "$cross_compiling" != yes; then
  2829. if { ac_try='./$ac_file'
  2830. { { case "(($ac_try" in
  2831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2832. *) ac_try_echo=$ac_try;;
  2833. esac
  2834. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2835. $as_echo "$ac_try_echo"; } >&5
  2836. (eval "$ac_try") 2>&5
  2837. ac_status=$?
  2838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2839. test $ac_status = 0; }; }; then
  2840. cross_compiling=no
  2841. else
  2842. if test "$cross_compiling" = maybe; then
  2843. cross_compiling=yes
  2844. else
  2845. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2846. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2847. as_fn_error "cannot run C compiled programs.
  2848. If you meant to cross compile, use \`--host'.
  2849. See \`config.log' for more details." "$LINENO" 5; }
  2850. fi
  2851. fi
  2852. fi
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2854. $as_echo "yes" >&6; }
  2855. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2856. ac_clean_files=$ac_clean_files_save
  2857. # Check that the compiler produces executables we can run. If not, either
  2858. # the compiler is broken, or we cross compile.
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2860. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2862. $as_echo "$cross_compiling" >&6; }
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2864. $as_echo_n "checking for suffix of executables... " >&6; }
  2865. if { { ac_try="$ac_link"
  2866. case "(($ac_try" in
  2867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868. *) ac_try_echo=$ac_try;;
  2869. esac
  2870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2871. $as_echo "$ac_try_echo"; } >&5
  2872. (eval "$ac_link") 2>&5
  2873. ac_status=$?
  2874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2875. test $ac_status = 0; }; then :
  2876. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2877. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2878. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2879. # `rm'.
  2880. for ac_file in conftest.exe conftest conftest.*; do
  2881. test -f "$ac_file" || continue
  2882. case $ac_file in
  2883. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2884. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2885. break;;
  2886. * ) break;;
  2887. esac
  2888. done
  2889. else
  2890. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2891. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2892. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2893. See \`config.log' for more details." "$LINENO" 5; }
  2894. fi
  2895. rm -f conftest$ac_cv_exeext
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2897. $as_echo "$ac_cv_exeext" >&6; }
  2898. rm -f conftest.$ac_ext
  2899. EXEEXT=$ac_cv_exeext
  2900. ac_exeext=$EXEEXT
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2902. $as_echo_n "checking for suffix of object files... " >&6; }
  2903. if test "${ac_cv_objext+set}" = set; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2907. /* end confdefs.h. */
  2908. int
  2909. main ()
  2910. {
  2911. ;
  2912. return 0;
  2913. }
  2914. _ACEOF
  2915. rm -f conftest.o conftest.obj
  2916. if { { ac_try="$ac_compile"
  2917. case "(($ac_try" in
  2918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2919. *) ac_try_echo=$ac_try;;
  2920. esac
  2921. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2922. $as_echo "$ac_try_echo"; } >&5
  2923. (eval "$ac_compile") 2>&5
  2924. ac_status=$?
  2925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2926. test $ac_status = 0; }; then :
  2927. for ac_file in conftest.o conftest.obj conftest.*; do
  2928. test -f "$ac_file" || continue;
  2929. case $ac_file in
  2930. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2931. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2932. break;;
  2933. esac
  2934. done
  2935. else
  2936. $as_echo "$as_me: failed program was:" >&5
  2937. sed 's/^/| /' conftest.$ac_ext >&5
  2938. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2939. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2940. as_fn_error "cannot compute suffix of object files: cannot compile
  2941. See \`config.log' for more details." "$LINENO" 5; }
  2942. fi
  2943. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2944. fi
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2946. $as_echo "$ac_cv_objext" >&6; }
  2947. OBJEXT=$ac_cv_objext
  2948. ac_objext=$OBJEXT
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2950. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2951. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2955. /* end confdefs.h. */
  2956. int
  2957. main ()
  2958. {
  2959. #ifndef __GNUC__
  2960. choke me
  2961. #endif
  2962. ;
  2963. return 0;
  2964. }
  2965. _ACEOF
  2966. if ac_fn_c_try_compile "$LINENO"; then :
  2967. ac_compiler_gnu=yes
  2968. else
  2969. ac_compiler_gnu=no
  2970. fi
  2971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2972. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2973. fi
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2975. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2976. if test $ac_compiler_gnu = yes; then
  2977. GCC=yes
  2978. else
  2979. GCC=
  2980. fi
  2981. ac_test_CFLAGS=${CFLAGS+set}
  2982. ac_save_CFLAGS=$CFLAGS
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2984. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2985. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2986. $as_echo_n "(cached) " >&6
  2987. else
  2988. ac_save_c_werror_flag=$ac_c_werror_flag
  2989. ac_c_werror_flag=yes
  2990. ac_cv_prog_cc_g=no
  2991. CFLAGS="-g"
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. int
  2995. main ()
  2996. {
  2997. ;
  2998. return 0;
  2999. }
  3000. _ACEOF
  3001. if ac_fn_c_try_compile "$LINENO"; then :
  3002. ac_cv_prog_cc_g=yes
  3003. else
  3004. CFLAGS=""
  3005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3006. /* end confdefs.h. */
  3007. int
  3008. main ()
  3009. {
  3010. ;
  3011. return 0;
  3012. }
  3013. _ACEOF
  3014. if ac_fn_c_try_compile "$LINENO"; then :
  3015. else
  3016. ac_c_werror_flag=$ac_save_c_werror_flag
  3017. CFLAGS="-g"
  3018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3019. /* end confdefs.h. */
  3020. int
  3021. main ()
  3022. {
  3023. ;
  3024. return 0;
  3025. }
  3026. _ACEOF
  3027. if ac_fn_c_try_compile "$LINENO"; then :
  3028. ac_cv_prog_cc_g=yes
  3029. fi
  3030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3031. fi
  3032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3033. fi
  3034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3035. ac_c_werror_flag=$ac_save_c_werror_flag
  3036. fi
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3038. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3039. if test "$ac_test_CFLAGS" = set; then
  3040. CFLAGS=$ac_save_CFLAGS
  3041. elif test $ac_cv_prog_cc_g = yes; then
  3042. if test "$GCC" = yes; then
  3043. CFLAGS="-g -O2"
  3044. else
  3045. CFLAGS="-g"
  3046. fi
  3047. else
  3048. if test "$GCC" = yes; then
  3049. CFLAGS="-O2"
  3050. else
  3051. CFLAGS=
  3052. fi
  3053. fi
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3055. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3056. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3057. $as_echo_n "(cached) " >&6
  3058. else
  3059. ac_cv_prog_cc_c89=no
  3060. ac_save_CC=$CC
  3061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3062. /* end confdefs.h. */
  3063. #include <stdarg.h>
  3064. #include <stdio.h>
  3065. #include <sys/types.h>
  3066. #include <sys/stat.h>
  3067. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3068. struct buf { int x; };
  3069. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3070. static char *e (p, i)
  3071. char **p;
  3072. int i;
  3073. {
  3074. return p[i];
  3075. }
  3076. static char *f (char * (*g) (char **, int), char **p, ...)
  3077. {
  3078. char *s;
  3079. va_list v;
  3080. va_start (v,p);
  3081. s = g (p, va_arg (v,int));
  3082. va_end (v);
  3083. return s;
  3084. }
  3085. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3086. function prototypes and stuff, but not '\xHH' hex character constants.
  3087. These don't provoke an error unfortunately, instead are silently treated
  3088. as 'x'. The following induces an error, until -std is added to get
  3089. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3090. array size at least. It's necessary to write '\x00'==0 to get something
  3091. that's true only with -std. */
  3092. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3093. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3094. inside strings and character constants. */
  3095. #define FOO(x) 'x'
  3096. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3097. int test (int i, double x);
  3098. struct s1 {int (*f) (int a);};
  3099. struct s2 {int (*f) (double a);};
  3100. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3101. int argc;
  3102. char **argv;
  3103. int
  3104. main ()
  3105. {
  3106. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3107. ;
  3108. return 0;
  3109. }
  3110. _ACEOF
  3111. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3112. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3113. do
  3114. CC="$ac_save_CC $ac_arg"
  3115. if ac_fn_c_try_compile "$LINENO"; then :
  3116. ac_cv_prog_cc_c89=$ac_arg
  3117. fi
  3118. rm -f core conftest.err conftest.$ac_objext
  3119. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3120. done
  3121. rm -f conftest.$ac_ext
  3122. CC=$ac_save_CC
  3123. fi
  3124. # AC_CACHE_VAL
  3125. case "x$ac_cv_prog_cc_c89" in
  3126. x)
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3128. $as_echo "none needed" >&6; } ;;
  3129. xno)
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3131. $as_echo "unsupported" >&6; } ;;
  3132. *)
  3133. CC="$CC $ac_cv_prog_cc_c89"
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3135. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3136. esac
  3137. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3138. fi
  3139. ac_ext=c
  3140. ac_cpp='$CPP $CPPFLAGS'
  3141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3145. $as_echo_n "checking for library containing strerror... " >&6; }
  3146. if test "${ac_cv_search_strerror+set}" = set; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. ac_func_search_save_LIBS=$LIBS
  3150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3151. /* end confdefs.h. */
  3152. /* Override any GCC internal prototype to avoid an error.
  3153. Use char because int might match the return type of a GCC
  3154. builtin and then its argument prototype would still apply. */
  3155. #ifdef __cplusplus
  3156. extern "C"
  3157. #endif
  3158. char strerror ();
  3159. int
  3160. main ()
  3161. {
  3162. return strerror ();
  3163. ;
  3164. return 0;
  3165. }
  3166. _ACEOF
  3167. for ac_lib in '' cposix; do
  3168. if test -z "$ac_lib"; then
  3169. ac_res="none required"
  3170. else
  3171. ac_res=-l$ac_lib
  3172. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3173. fi
  3174. if ac_fn_c_try_link "$LINENO"; then :
  3175. ac_cv_search_strerror=$ac_res
  3176. fi
  3177. rm -f core conftest.err conftest.$ac_objext \
  3178. conftest$ac_exeext
  3179. if test "${ac_cv_search_strerror+set}" = set; then :
  3180. break
  3181. fi
  3182. done
  3183. if test "${ac_cv_search_strerror+set}" = set; then :
  3184. else
  3185. ac_cv_search_strerror=no
  3186. fi
  3187. rm conftest.$ac_ext
  3188. LIBS=$ac_func_search_save_LIBS
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3191. $as_echo "$ac_cv_search_strerror" >&6; }
  3192. ac_res=$ac_cv_search_strerror
  3193. if test "$ac_res" != no; then :
  3194. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3195. fi
  3196. am__api_version='1.11'
  3197. # Find a good install program. We prefer a C program (faster),
  3198. # so one script is as good as another. But avoid the broken or
  3199. # incompatible versions:
  3200. # SysV /etc/install, /usr/sbin/install
  3201. # SunOS /usr/etc/install
  3202. # IRIX /sbin/install
  3203. # AIX /bin/install
  3204. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3205. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3206. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3207. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3208. # OS/2's system install, which has a completely different semantic
  3209. # ./install, which can be erroneously created by make from ./install.sh.
  3210. # Reject install programs that cannot install multiple files.
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3212. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3213. if test -z "$INSTALL"; then
  3214. if test "${ac_cv_path_install+set}" = set; then :
  3215. $as_echo_n "(cached) " >&6
  3216. else
  3217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3218. for as_dir in $PATH
  3219. do
  3220. IFS=$as_save_IFS
  3221. test -z "$as_dir" && as_dir=.
  3222. # Account for people who put trailing slashes in PATH elements.
  3223. case $as_dir/ in #((
  3224. ./ | .// | /[cC]/* | \
  3225. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3226. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3227. /usr/ucb/* ) ;;
  3228. *)
  3229. # OSF1 and SCO ODT 3.0 have their own names for install.
  3230. # Don't use installbsd from OSF since it installs stuff as root
  3231. # by default.
  3232. for ac_prog in ginstall scoinst install; do
  3233. for ac_exec_ext in '' $ac_executable_extensions; do
  3234. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3235. if test $ac_prog = install &&
  3236. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3237. # AIX install. It has an incompatible calling convention.
  3238. :
  3239. elif test $ac_prog = install &&
  3240. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3241. # program-specific install script used by HP pwplus--don't use.
  3242. :
  3243. else
  3244. rm -rf conftest.one conftest.two conftest.dir
  3245. echo one > conftest.one
  3246. echo two > conftest.two
  3247. mkdir conftest.dir
  3248. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3249. test -s conftest.one && test -s conftest.two &&
  3250. test -s conftest.dir/conftest.one &&
  3251. test -s conftest.dir/conftest.two
  3252. then
  3253. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3254. break 3
  3255. fi
  3256. fi
  3257. fi
  3258. done
  3259. done
  3260. ;;
  3261. esac
  3262. done
  3263. IFS=$as_save_IFS
  3264. rm -rf conftest.one conftest.two conftest.dir
  3265. fi
  3266. if test "${ac_cv_path_install+set}" = set; then
  3267. INSTALL=$ac_cv_path_install
  3268. else
  3269. # As a last resort, use the slow shell script. Don't cache a
  3270. # value for INSTALL within a source directory, because that will
  3271. # break other packages using the cache if that directory is
  3272. # removed, or if the value is a relative name.
  3273. INSTALL=$ac_install_sh
  3274. fi
  3275. fi
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3277. $as_echo "$INSTALL" >&6; }
  3278. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3279. # It thinks the first close brace ends the variable substitution.
  3280. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3281. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3282. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3284. $as_echo_n "checking whether build environment is sane... " >&6; }
  3285. # Just in case
  3286. sleep 1
  3287. echo timestamp > conftest.file
  3288. # Reject unsafe characters in $srcdir or the absolute working directory
  3289. # name. Accept space and tab only in the latter.
  3290. am_lf='
  3291. '
  3292. case `pwd` in
  3293. *[\\\"\#\$\&\'\`$am_lf]*)
  3294. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3295. esac
  3296. case $srcdir in
  3297. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3298. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3299. esac
  3300. # Do `set' in a subshell so we don't clobber the current shell's
  3301. # arguments. Must try -L first in case configure is actually a
  3302. # symlink; some systems play weird games with the mod time of symlinks
  3303. # (eg FreeBSD returns the mod time of the symlink's containing
  3304. # directory).
  3305. if (
  3306. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3307. if test "$*" = "X"; then
  3308. # -L didn't work.
  3309. set X `ls -t "$srcdir/configure" conftest.file`
  3310. fi
  3311. rm -f conftest.file
  3312. if test "$*" != "X $srcdir/configure conftest.file" \
  3313. && test "$*" != "X conftest.file $srcdir/configure"; then
  3314. # If neither matched, then we have a broken ls. This can happen
  3315. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3316. # broken ls alias from the environment. This has actually
  3317. # happened. Such a system could not be considered "sane".
  3318. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3319. alias in your environment" "$LINENO" 5
  3320. fi
  3321. test "$2" = conftest.file
  3322. )
  3323. then
  3324. # Ok.
  3325. :
  3326. else
  3327. as_fn_error "newly created file is older than distributed files!
  3328. Check your system clock" "$LINENO" 5
  3329. fi
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3331. $as_echo "yes" >&6; }
  3332. test "$program_prefix" != NONE &&
  3333. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3334. # Use a double $ so make ignores it.
  3335. test "$program_suffix" != NONE &&
  3336. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3337. # Double any \ or $.
  3338. # By default was `s,x,x', remove it if useless.
  3339. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3340. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3341. # expand $ac_aux_dir to an absolute path
  3342. am_aux_dir=`cd $ac_aux_dir && pwd`
  3343. if test x"${MISSING+set}" != xset; then
  3344. case $am_aux_dir in
  3345. *\ * | *\ *)
  3346. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3347. *)
  3348. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3349. esac
  3350. fi
  3351. # Use eval to expand $SHELL
  3352. if eval "$MISSING --run true"; then
  3353. am_missing_run="$MISSING --run "
  3354. else
  3355. am_missing_run=
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3357. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3358. fi
  3359. if test x"${install_sh}" != xset; then
  3360. case $am_aux_dir in
  3361. *\ * | *\ *)
  3362. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3363. *)
  3364. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3365. esac
  3366. fi
  3367. # Installed binaries are usually stripped using `strip' when the user
  3368. # run `make install-strip'. However `strip' might not be the right
  3369. # tool to use in cross-compilation environments, therefore Automake
  3370. # will honor the `STRIP' environment variable to overrule this program.
  3371. if test "$cross_compiling" != no; then
  3372. if test -n "$ac_tool_prefix"; then
  3373. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3374. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3376. $as_echo_n "checking for $ac_word... " >&6; }
  3377. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3378. $as_echo_n "(cached) " >&6
  3379. else
  3380. if test -n "$STRIP"; then
  3381. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3382. else
  3383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3384. for as_dir in $PATH
  3385. do
  3386. IFS=$as_save_IFS
  3387. test -z "$as_dir" && as_dir=.
  3388. for ac_exec_ext in '' $ac_executable_extensions; do
  3389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3390. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3392. break 2
  3393. fi
  3394. done
  3395. done
  3396. IFS=$as_save_IFS
  3397. fi
  3398. fi
  3399. STRIP=$ac_cv_prog_STRIP
  3400. if test -n "$STRIP"; then
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3402. $as_echo "$STRIP" >&6; }
  3403. else
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3405. $as_echo "no" >&6; }
  3406. fi
  3407. fi
  3408. if test -z "$ac_cv_prog_STRIP"; then
  3409. ac_ct_STRIP=$STRIP
  3410. # Extract the first word of "strip", so it can be a program name with args.
  3411. set dummy strip; ac_word=$2
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3413. $as_echo_n "checking for $ac_word... " >&6; }
  3414. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3415. $as_echo_n "(cached) " >&6
  3416. else
  3417. if test -n "$ac_ct_STRIP"; then
  3418. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3419. else
  3420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3421. for as_dir in $PATH
  3422. do
  3423. IFS=$as_save_IFS
  3424. test -z "$as_dir" && as_dir=.
  3425. for ac_exec_ext in '' $ac_executable_extensions; do
  3426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3427. ac_cv_prog_ac_ct_STRIP="strip"
  3428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3429. break 2
  3430. fi
  3431. done
  3432. done
  3433. IFS=$as_save_IFS
  3434. fi
  3435. fi
  3436. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3437. if test -n "$ac_ct_STRIP"; then
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3439. $as_echo "$ac_ct_STRIP" >&6; }
  3440. else
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3442. $as_echo "no" >&6; }
  3443. fi
  3444. if test "x$ac_ct_STRIP" = x; then
  3445. STRIP=":"
  3446. else
  3447. case $cross_compiling:$ac_tool_warned in
  3448. yes:)
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3450. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3451. ac_tool_warned=yes ;;
  3452. esac
  3453. STRIP=$ac_ct_STRIP
  3454. fi
  3455. else
  3456. STRIP="$ac_cv_prog_STRIP"
  3457. fi
  3458. fi
  3459. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3461. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3462. if test -z "$MKDIR_P"; then
  3463. if test "${ac_cv_path_mkdir+set}" = set; then :
  3464. $as_echo_n "(cached) " >&6
  3465. else
  3466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3467. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3468. do
  3469. IFS=$as_save_IFS
  3470. test -z "$as_dir" && as_dir=.
  3471. for ac_prog in mkdir gmkdir; do
  3472. for ac_exec_ext in '' $ac_executable_extensions; do
  3473. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3474. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3475. 'mkdir (GNU coreutils) '* | \
  3476. 'mkdir (coreutils) '* | \
  3477. 'mkdir (fileutils) '4.1*)
  3478. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3479. break 3;;
  3480. esac
  3481. done
  3482. done
  3483. done
  3484. IFS=$as_save_IFS
  3485. fi
  3486. if test "${ac_cv_path_mkdir+set}" = set; then
  3487. MKDIR_P="$ac_cv_path_mkdir -p"
  3488. else
  3489. # As a last resort, use the slow shell script. Don't cache a
  3490. # value for MKDIR_P within a source directory, because that will
  3491. # break other packages using the cache if that directory is
  3492. # removed, or if the value is a relative name.
  3493. test -d ./--version && rmdir ./--version
  3494. MKDIR_P="$ac_install_sh -d"
  3495. fi
  3496. fi
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3498. $as_echo "$MKDIR_P" >&6; }
  3499. mkdir_p="$MKDIR_P"
  3500. case $mkdir_p in
  3501. [\\/$]* | ?:[\\/]*) ;;
  3502. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3503. esac
  3504. for ac_prog in gawk mawk nawk awk
  3505. do
  3506. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3507. set dummy $ac_prog; ac_word=$2
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3509. $as_echo_n "checking for $ac_word... " >&6; }
  3510. if test "${ac_cv_prog_AWK+set}" = set; then :
  3511. $as_echo_n "(cached) " >&6
  3512. else
  3513. if test -n "$AWK"; then
  3514. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3515. else
  3516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3517. for as_dir in $PATH
  3518. do
  3519. IFS=$as_save_IFS
  3520. test -z "$as_dir" && as_dir=.
  3521. for ac_exec_ext in '' $ac_executable_extensions; do
  3522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3523. ac_cv_prog_AWK="$ac_prog"
  3524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3525. break 2
  3526. fi
  3527. done
  3528. done
  3529. IFS=$as_save_IFS
  3530. fi
  3531. fi
  3532. AWK=$ac_cv_prog_AWK
  3533. if test -n "$AWK"; then
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3535. $as_echo "$AWK" >&6; }
  3536. else
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3538. $as_echo "no" >&6; }
  3539. fi
  3540. test -n "$AWK" && break
  3541. done
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3543. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3544. set x ${MAKE-make}
  3545. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3546. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3547. $as_echo_n "(cached) " >&6
  3548. else
  3549. cat >conftest.make <<\_ACEOF
  3550. SHELL = /bin/sh
  3551. all:
  3552. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3553. _ACEOF
  3554. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3555. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3556. *@@@%%%=?*=@@@%%%*)
  3557. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3558. *)
  3559. eval ac_cv_prog_make_${ac_make}_set=no;;
  3560. esac
  3561. rm -f conftest.make
  3562. fi
  3563. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3565. $as_echo "yes" >&6; }
  3566. SET_MAKE=
  3567. else
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3569. $as_echo "no" >&6; }
  3570. SET_MAKE="MAKE=${MAKE-make}"
  3571. fi
  3572. rm -rf .tst 2>/dev/null
  3573. mkdir .tst 2>/dev/null
  3574. if test -d .tst; then
  3575. am__leading_dot=.
  3576. else
  3577. am__leading_dot=_
  3578. fi
  3579. rmdir .tst 2>/dev/null
  3580. DEPDIR="${am__leading_dot}deps"
  3581. ac_config_commands="$ac_config_commands depfiles"
  3582. am_make=${MAKE-make}
  3583. cat > confinc << 'END'
  3584. am__doit:
  3585. @echo this is the am__doit target
  3586. .PHONY: am__doit
  3587. END
  3588. # If we don't find an include directive, just comment out the code.
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3590. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3591. am__include="#"
  3592. am__quote=
  3593. _am_result=none
  3594. # First try GNU make style include.
  3595. echo "include confinc" > confmf
  3596. # Ignore all kinds of additional output from `make'.
  3597. case `$am_make -s -f confmf 2> /dev/null` in #(
  3598. *the\ am__doit\ target*)
  3599. am__include=include
  3600. am__quote=
  3601. _am_result=GNU
  3602. ;;
  3603. esac
  3604. # Now try BSD make style include.
  3605. if test "$am__include" = "#"; then
  3606. echo '.include "confinc"' > confmf
  3607. case `$am_make -s -f confmf 2> /dev/null` in #(
  3608. *the\ am__doit\ target*)
  3609. am__include=.include
  3610. am__quote="\""
  3611. _am_result=BSD
  3612. ;;
  3613. esac
  3614. fi
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3616. $as_echo "$_am_result" >&6; }
  3617. rm -f confinc confmf
  3618. # Check whether --enable-dependency-tracking was given.
  3619. if test "${enable_dependency_tracking+set}" = set; then :
  3620. enableval=$enable_dependency_tracking;
  3621. fi
  3622. if test "x$enable_dependency_tracking" != xno; then
  3623. am_depcomp="$ac_aux_dir/depcomp"
  3624. AMDEPBACKSLASH='\'
  3625. fi
  3626. if test "x$enable_dependency_tracking" != xno; then
  3627. AMDEP_TRUE=
  3628. AMDEP_FALSE='#'
  3629. else
  3630. AMDEP_TRUE='#'
  3631. AMDEP_FALSE=
  3632. fi
  3633. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3634. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3635. # is not polluted with repeated "-I."
  3636. am__isrc=' -I$(srcdir)'
  3637. # test to see if srcdir already configured
  3638. if test -f $srcdir/config.status; then
  3639. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3640. fi
  3641. fi
  3642. # test whether we have cygpath
  3643. if test -z "$CYGPATH_W"; then
  3644. if (cygpath --version) >/dev/null 2>/dev/null; then
  3645. CYGPATH_W='cygpath -w'
  3646. else
  3647. CYGPATH_W=echo
  3648. fi
  3649. fi
  3650. # Define the identity of the package.
  3651. PACKAGE='bfd'
  3652. VERSION='2.25.51'
  3653. cat >>confdefs.h <<_ACEOF
  3654. #define PACKAGE "$PACKAGE"
  3655. _ACEOF
  3656. cat >>confdefs.h <<_ACEOF
  3657. #define VERSION "$VERSION"
  3658. _ACEOF
  3659. # Some tools Automake needs.
  3660. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3661. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3662. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3663. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3664. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3665. # We need awk for the "check" target. The system "awk" is bad on
  3666. # some platforms.
  3667. # Always define AMTAR for backward compatibility.
  3668. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3669. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3670. depcc="$CC" am_compiler_list=
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3672. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3673. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3674. $as_echo_n "(cached) " >&6
  3675. else
  3676. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3677. # We make a subdir and do the tests there. Otherwise we can end up
  3678. # making bogus files that we don't know about and never remove. For
  3679. # instance it was reported that on HP-UX the gcc test will end up
  3680. # making a dummy file named `D' -- because `-MD' means `put the output
  3681. # in D'.
  3682. mkdir conftest.dir
  3683. # Copy depcomp to subdir because otherwise we won't find it if we're
  3684. # using a relative directory.
  3685. cp "$am_depcomp" conftest.dir
  3686. cd conftest.dir
  3687. # We will build objects and dependencies in a subdirectory because
  3688. # it helps to detect inapplicable dependency modes. For instance
  3689. # both Tru64's cc and ICC support -MD to output dependencies as a
  3690. # side effect of compilation, but ICC will put the dependencies in
  3691. # the current directory while Tru64 will put them in the object
  3692. # directory.
  3693. mkdir sub
  3694. am_cv_CC_dependencies_compiler_type=none
  3695. if test "$am_compiler_list" = ""; then
  3696. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3697. fi
  3698. am__universal=false
  3699. case " $depcc " in #(
  3700. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3701. esac
  3702. for depmode in $am_compiler_list; do
  3703. # Setup a source with many dependencies, because some compilers
  3704. # like to wrap large dependency lists on column 80 (with \), and
  3705. # we should not choose a depcomp mode which is confused by this.
  3706. #
  3707. # We need to recreate these files for each test, as the compiler may
  3708. # overwrite some of them when testing with obscure command lines.
  3709. # This happens at least with the AIX C compiler.
  3710. : > sub/conftest.c
  3711. for i in 1 2 3 4 5 6; do
  3712. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3713. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3714. # Solaris 8's {/usr,}/bin/sh.
  3715. touch sub/conftst$i.h
  3716. done
  3717. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3718. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3719. # mode. It turns out that the SunPro C++ compiler does not properly
  3720. # handle `-M -o', and we need to detect this. Also, some Intel
  3721. # versions had trouble with output in subdirs
  3722. am__obj=sub/conftest.${OBJEXT-o}
  3723. am__minus_obj="-o $am__obj"
  3724. case $depmode in
  3725. gcc)
  3726. # This depmode causes a compiler race in universal mode.
  3727. test "$am__universal" = false || continue
  3728. ;;
  3729. nosideeffect)
  3730. # after this tag, mechanisms are not by side-effect, so they'll
  3731. # only be used when explicitly requested
  3732. if test "x$enable_dependency_tracking" = xyes; then
  3733. continue
  3734. else
  3735. break
  3736. fi
  3737. ;;
  3738. msvisualcpp | msvcmsys)
  3739. # This compiler won't grok `-c -o', but also, the minuso test has
  3740. # not run yet. These depmodes are late enough in the game, and
  3741. # so weak that their functioning should not be impacted.
  3742. am__obj=conftest.${OBJEXT-o}
  3743. am__minus_obj=
  3744. ;;
  3745. none) break ;;
  3746. esac
  3747. if depmode=$depmode \
  3748. source=sub/conftest.c object=$am__obj \
  3749. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3750. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3751. >/dev/null 2>conftest.err &&
  3752. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3753. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3754. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3755. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3756. # icc doesn't choke on unknown options, it will just issue warnings
  3757. # or remarks (even with -Werror). So we grep stderr for any message
  3758. # that says an option was ignored or not supported.
  3759. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3760. # icc: Command line warning: ignoring option '-M'; no argument required
  3761. # The diagnosis changed in icc 8.0:
  3762. # icc: Command line remark: option '-MP' not supported
  3763. if (grep 'ignoring option' conftest.err ||
  3764. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3765. am_cv_CC_dependencies_compiler_type=$depmode
  3766. break
  3767. fi
  3768. fi
  3769. done
  3770. cd ..
  3771. rm -rf conftest.dir
  3772. else
  3773. am_cv_CC_dependencies_compiler_type=none
  3774. fi
  3775. fi
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3777. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3778. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3779. if
  3780. test "x$enable_dependency_tracking" != xno \
  3781. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3782. am__fastdepCC_TRUE=
  3783. am__fastdepCC_FALSE='#'
  3784. else
  3785. am__fastdepCC_TRUE='#'
  3786. am__fastdepCC_FALSE=
  3787. fi
  3788. if test -n "$ac_tool_prefix"; then
  3789. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3790. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3792. $as_echo_n "checking for $ac_word... " >&6; }
  3793. if test "${ac_cv_prog_AR+set}" = set; then :
  3794. $as_echo_n "(cached) " >&6
  3795. else
  3796. if test -n "$AR"; then
  3797. ac_cv_prog_AR="$AR" # Let the user override the test.
  3798. else
  3799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3800. for as_dir in $PATH
  3801. do
  3802. IFS=$as_save_IFS
  3803. test -z "$as_dir" && as_dir=.
  3804. for ac_exec_ext in '' $ac_executable_extensions; do
  3805. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3806. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3808. break 2
  3809. fi
  3810. done
  3811. done
  3812. IFS=$as_save_IFS
  3813. fi
  3814. fi
  3815. AR=$ac_cv_prog_AR
  3816. if test -n "$AR"; then
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3818. $as_echo "$AR" >&6; }
  3819. else
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3821. $as_echo "no" >&6; }
  3822. fi
  3823. fi
  3824. if test -z "$ac_cv_prog_AR"; then
  3825. ac_ct_AR=$AR
  3826. # Extract the first word of "ar", so it can be a program name with args.
  3827. set dummy ar; ac_word=$2
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3829. $as_echo_n "checking for $ac_word... " >&6; }
  3830. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  3831. $as_echo_n "(cached) " >&6
  3832. else
  3833. if test -n "$ac_ct_AR"; then
  3834. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3835. else
  3836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3837. for as_dir in $PATH
  3838. do
  3839. IFS=$as_save_IFS
  3840. test -z "$as_dir" && as_dir=.
  3841. for ac_exec_ext in '' $ac_executable_extensions; do
  3842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3843. ac_cv_prog_ac_ct_AR="ar"
  3844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3845. break 2
  3846. fi
  3847. done
  3848. done
  3849. IFS=$as_save_IFS
  3850. fi
  3851. fi
  3852. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3853. if test -n "$ac_ct_AR"; then
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3855. $as_echo "$ac_ct_AR" >&6; }
  3856. else
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3858. $as_echo "no" >&6; }
  3859. fi
  3860. if test "x$ac_ct_AR" = x; then
  3861. AR=""
  3862. else
  3863. case $cross_compiling:$ac_tool_warned in
  3864. yes:)
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3867. ac_tool_warned=yes ;;
  3868. esac
  3869. AR=$ac_ct_AR
  3870. fi
  3871. else
  3872. AR="$ac_cv_prog_AR"
  3873. fi
  3874. if test -n "$ac_tool_prefix"; then
  3875. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3876. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3878. $as_echo_n "checking for $ac_word... " >&6; }
  3879. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. if test -n "$RANLIB"; then
  3883. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3884. else
  3885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3886. for as_dir in $PATH
  3887. do
  3888. IFS=$as_save_IFS
  3889. test -z "$as_dir" && as_dir=.
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3892. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3894. break 2
  3895. fi
  3896. done
  3897. done
  3898. IFS=$as_save_IFS
  3899. fi
  3900. fi
  3901. RANLIB=$ac_cv_prog_RANLIB
  3902. if test -n "$RANLIB"; then
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3904. $as_echo "$RANLIB" >&6; }
  3905. else
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3907. $as_echo "no" >&6; }
  3908. fi
  3909. fi
  3910. if test -z "$ac_cv_prog_RANLIB"; then
  3911. ac_ct_RANLIB=$RANLIB
  3912. # Extract the first word of "ranlib", so it can be a program name with args.
  3913. set dummy ranlib; ac_word=$2
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3915. $as_echo_n "checking for $ac_word... " >&6; }
  3916. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. if test -n "$ac_ct_RANLIB"; then
  3920. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3921. else
  3922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3923. for as_dir in $PATH
  3924. do
  3925. IFS=$as_save_IFS
  3926. test -z "$as_dir" && as_dir=.
  3927. for ac_exec_ext in '' $ac_executable_extensions; do
  3928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3929. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3931. break 2
  3932. fi
  3933. done
  3934. done
  3935. IFS=$as_save_IFS
  3936. fi
  3937. fi
  3938. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3939. if test -n "$ac_ct_RANLIB"; then
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3941. $as_echo "$ac_ct_RANLIB" >&6; }
  3942. else
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3944. $as_echo "no" >&6; }
  3945. fi
  3946. if test "x$ac_ct_RANLIB" = x; then
  3947. RANLIB=":"
  3948. else
  3949. case $cross_compiling:$ac_tool_warned in
  3950. yes:)
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3953. ac_tool_warned=yes ;;
  3954. esac
  3955. RANLIB=$ac_ct_RANLIB
  3956. fi
  3957. else
  3958. RANLIB="$ac_cv_prog_RANLIB"
  3959. fi
  3960. # Check whether --enable-shared was given.
  3961. if test "${enable_shared+set}" = set; then :
  3962. enableval=$enable_shared; p=${PACKAGE-default}
  3963. case $enableval in
  3964. yes) enable_shared=yes ;;
  3965. no) enable_shared=no ;;
  3966. *)
  3967. enable_shared=no
  3968. # Look at the argument we got. We use all the common list separators.
  3969. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3970. for pkg in $enableval; do
  3971. IFS="$lt_save_ifs"
  3972. if test "X$pkg" = "X$p"; then
  3973. enable_shared=yes
  3974. fi
  3975. done
  3976. IFS="$lt_save_ifs"
  3977. ;;
  3978. esac
  3979. else
  3980. enable_shared=no
  3981. fi
  3982. ac_ext=c
  3983. ac_cpp='$CPP $CPPFLAGS'
  3984. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3985. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3987. if test -n "$ac_tool_prefix"; then
  3988. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3989. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3991. $as_echo_n "checking for $ac_word... " >&6; }
  3992. if test "${ac_cv_prog_CC+set}" = set; then :
  3993. $as_echo_n "(cached) " >&6
  3994. else
  3995. if test -n "$CC"; then
  3996. ac_cv_prog_CC="$CC" # Let the user override the test.
  3997. else
  3998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3999. for as_dir in $PATH
  4000. do
  4001. IFS=$as_save_IFS
  4002. test -z "$as_dir" && as_dir=.
  4003. for ac_exec_ext in '' $ac_executable_extensions; do
  4004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4005. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4007. break 2
  4008. fi
  4009. done
  4010. done
  4011. IFS=$as_save_IFS
  4012. fi
  4013. fi
  4014. CC=$ac_cv_prog_CC
  4015. if test -n "$CC"; then
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4017. $as_echo "$CC" >&6; }
  4018. else
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4020. $as_echo "no" >&6; }
  4021. fi
  4022. fi
  4023. if test -z "$ac_cv_prog_CC"; then
  4024. ac_ct_CC=$CC
  4025. # Extract the first word of "gcc", so it can be a program name with args.
  4026. set dummy gcc; ac_word=$2
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4028. $as_echo_n "checking for $ac_word... " >&6; }
  4029. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4030. $as_echo_n "(cached) " >&6
  4031. else
  4032. if test -n "$ac_ct_CC"; then
  4033. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4034. else
  4035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4036. for as_dir in $PATH
  4037. do
  4038. IFS=$as_save_IFS
  4039. test -z "$as_dir" && as_dir=.
  4040. for ac_exec_ext in '' $ac_executable_extensions; do
  4041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4042. ac_cv_prog_ac_ct_CC="gcc"
  4043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4044. break 2
  4045. fi
  4046. done
  4047. done
  4048. IFS=$as_save_IFS
  4049. fi
  4050. fi
  4051. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4052. if test -n "$ac_ct_CC"; then
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4054. $as_echo "$ac_ct_CC" >&6; }
  4055. else
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4057. $as_echo "no" >&6; }
  4058. fi
  4059. if test "x$ac_ct_CC" = x; then
  4060. CC=""
  4061. else
  4062. case $cross_compiling:$ac_tool_warned in
  4063. yes:)
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4065. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4066. ac_tool_warned=yes ;;
  4067. esac
  4068. CC=$ac_ct_CC
  4069. fi
  4070. else
  4071. CC="$ac_cv_prog_CC"
  4072. fi
  4073. if test -z "$CC"; then
  4074. if test -n "$ac_tool_prefix"; then
  4075. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4076. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4078. $as_echo_n "checking for $ac_word... " >&6; }
  4079. if test "${ac_cv_prog_CC+set}" = set; then :
  4080. $as_echo_n "(cached) " >&6
  4081. else
  4082. if test -n "$CC"; then
  4083. ac_cv_prog_CC="$CC" # Let the user override the test.
  4084. else
  4085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4086. for as_dir in $PATH
  4087. do
  4088. IFS=$as_save_IFS
  4089. test -z "$as_dir" && as_dir=.
  4090. for ac_exec_ext in '' $ac_executable_extensions; do
  4091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4092. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4094. break 2
  4095. fi
  4096. done
  4097. done
  4098. IFS=$as_save_IFS
  4099. fi
  4100. fi
  4101. CC=$ac_cv_prog_CC
  4102. if test -n "$CC"; then
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4104. $as_echo "$CC" >&6; }
  4105. else
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4107. $as_echo "no" >&6; }
  4108. fi
  4109. fi
  4110. fi
  4111. if test -z "$CC"; then
  4112. # Extract the first word of "cc", so it can be a program name with args.
  4113. set dummy cc; ac_word=$2
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4115. $as_echo_n "checking for $ac_word... " >&6; }
  4116. if test "${ac_cv_prog_CC+set}" = set; then :
  4117. $as_echo_n "(cached) " >&6
  4118. else
  4119. if test -n "$CC"; then
  4120. ac_cv_prog_CC="$CC" # Let the user override the test.
  4121. else
  4122. ac_prog_rejected=no
  4123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4124. for as_dir in $PATH
  4125. do
  4126. IFS=$as_save_IFS
  4127. test -z "$as_dir" && as_dir=.
  4128. for ac_exec_ext in '' $ac_executable_extensions; do
  4129. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4130. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4131. ac_prog_rejected=yes
  4132. continue
  4133. fi
  4134. ac_cv_prog_CC="cc"
  4135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4136. break 2
  4137. fi
  4138. done
  4139. done
  4140. IFS=$as_save_IFS
  4141. if test $ac_prog_rejected = yes; then
  4142. # We found a bogon in the path, so make sure we never use it.
  4143. set dummy $ac_cv_prog_CC
  4144. shift
  4145. if test $# != 0; then
  4146. # We chose a different compiler from the bogus one.
  4147. # However, it has the same basename, so the bogon will be chosen
  4148. # first if we set CC to just the basename; use the full file name.
  4149. shift
  4150. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4151. fi
  4152. fi
  4153. fi
  4154. fi
  4155. CC=$ac_cv_prog_CC
  4156. if test -n "$CC"; then
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4158. $as_echo "$CC" >&6; }
  4159. else
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4161. $as_echo "no" >&6; }
  4162. fi
  4163. fi
  4164. if test -z "$CC"; then
  4165. if test -n "$ac_tool_prefix"; then
  4166. for ac_prog in cl.exe
  4167. do
  4168. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4169. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4171. $as_echo_n "checking for $ac_word... " >&6; }
  4172. if test "${ac_cv_prog_CC+set}" = set; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. if test -n "$CC"; then
  4176. ac_cv_prog_CC="$CC" # Let the user override the test.
  4177. else
  4178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4179. for as_dir in $PATH
  4180. do
  4181. IFS=$as_save_IFS
  4182. test -z "$as_dir" && as_dir=.
  4183. for ac_exec_ext in '' $ac_executable_extensions; do
  4184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4185. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4187. break 2
  4188. fi
  4189. done
  4190. done
  4191. IFS=$as_save_IFS
  4192. fi
  4193. fi
  4194. CC=$ac_cv_prog_CC
  4195. if test -n "$CC"; then
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4197. $as_echo "$CC" >&6; }
  4198. else
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4200. $as_echo "no" >&6; }
  4201. fi
  4202. test -n "$CC" && break
  4203. done
  4204. fi
  4205. if test -z "$CC"; then
  4206. ac_ct_CC=$CC
  4207. for ac_prog in cl.exe
  4208. do
  4209. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4210. set dummy $ac_prog; ac_word=$2
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4212. $as_echo_n "checking for $ac_word... " >&6; }
  4213. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4214. $as_echo_n "(cached) " >&6
  4215. else
  4216. if test -n "$ac_ct_CC"; then
  4217. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4218. else
  4219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4220. for as_dir in $PATH
  4221. do
  4222. IFS=$as_save_IFS
  4223. test -z "$as_dir" && as_dir=.
  4224. for ac_exec_ext in '' $ac_executable_extensions; do
  4225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4226. ac_cv_prog_ac_ct_CC="$ac_prog"
  4227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4228. break 2
  4229. fi
  4230. done
  4231. done
  4232. IFS=$as_save_IFS
  4233. fi
  4234. fi
  4235. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4236. if test -n "$ac_ct_CC"; then
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4238. $as_echo "$ac_ct_CC" >&6; }
  4239. else
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4241. $as_echo "no" >&6; }
  4242. fi
  4243. test -n "$ac_ct_CC" && break
  4244. done
  4245. if test "x$ac_ct_CC" = x; then
  4246. CC=""
  4247. else
  4248. case $cross_compiling:$ac_tool_warned in
  4249. yes:)
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4252. ac_tool_warned=yes ;;
  4253. esac
  4254. CC=$ac_ct_CC
  4255. fi
  4256. fi
  4257. fi
  4258. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4259. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4260. as_fn_error "no acceptable C compiler found in \$PATH
  4261. See \`config.log' for more details." "$LINENO" 5; }
  4262. # Provide some information about the compiler.
  4263. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4264. set X $ac_compile
  4265. ac_compiler=$2
  4266. for ac_option in --version -v -V -qversion; do
  4267. { { ac_try="$ac_compiler $ac_option >&5"
  4268. case "(($ac_try" in
  4269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4270. *) ac_try_echo=$ac_try;;
  4271. esac
  4272. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4273. $as_echo "$ac_try_echo"; } >&5
  4274. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4275. ac_status=$?
  4276. if test -s conftest.err; then
  4277. sed '10a\
  4278. ... rest of stderr output deleted ...
  4279. 10q' conftest.err >conftest.er1
  4280. cat conftest.er1 >&5
  4281. rm -f conftest.er1 conftest.err
  4282. fi
  4283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4284. test $ac_status = 0; }
  4285. done
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4287. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4288. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4292. /* end confdefs.h. */
  4293. int
  4294. main ()
  4295. {
  4296. #ifndef __GNUC__
  4297. choke me
  4298. #endif
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. if ac_fn_c_try_compile "$LINENO"; then :
  4304. ac_compiler_gnu=yes
  4305. else
  4306. ac_compiler_gnu=no
  4307. fi
  4308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4309. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4310. fi
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4312. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4313. if test $ac_compiler_gnu = yes; then
  4314. GCC=yes
  4315. else
  4316. GCC=
  4317. fi
  4318. ac_test_CFLAGS=${CFLAGS+set}
  4319. ac_save_CFLAGS=$CFLAGS
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4321. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4322. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4323. $as_echo_n "(cached) " >&6
  4324. else
  4325. ac_save_c_werror_flag=$ac_c_werror_flag
  4326. ac_c_werror_flag=yes
  4327. ac_cv_prog_cc_g=no
  4328. CFLAGS="-g"
  4329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4330. /* end confdefs.h. */
  4331. int
  4332. main ()
  4333. {
  4334. ;
  4335. return 0;
  4336. }
  4337. _ACEOF
  4338. if ac_fn_c_try_compile "$LINENO"; then :
  4339. ac_cv_prog_cc_g=yes
  4340. else
  4341. CFLAGS=""
  4342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4343. /* end confdefs.h. */
  4344. int
  4345. main ()
  4346. {
  4347. ;
  4348. return 0;
  4349. }
  4350. _ACEOF
  4351. if ac_fn_c_try_compile "$LINENO"; then :
  4352. else
  4353. ac_c_werror_flag=$ac_save_c_werror_flag
  4354. CFLAGS="-g"
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. int
  4358. main ()
  4359. {
  4360. ;
  4361. return 0;
  4362. }
  4363. _ACEOF
  4364. if ac_fn_c_try_compile "$LINENO"; then :
  4365. ac_cv_prog_cc_g=yes
  4366. fi
  4367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4368. fi
  4369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4370. fi
  4371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4372. ac_c_werror_flag=$ac_save_c_werror_flag
  4373. fi
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4375. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4376. if test "$ac_test_CFLAGS" = set; then
  4377. CFLAGS=$ac_save_CFLAGS
  4378. elif test $ac_cv_prog_cc_g = yes; then
  4379. if test "$GCC" = yes; then
  4380. CFLAGS="-g -O2"
  4381. else
  4382. CFLAGS="-g"
  4383. fi
  4384. else
  4385. if test "$GCC" = yes; then
  4386. CFLAGS="-O2"
  4387. else
  4388. CFLAGS=
  4389. fi
  4390. fi
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4392. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4393. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4394. $as_echo_n "(cached) " >&6
  4395. else
  4396. ac_cv_prog_cc_c89=no
  4397. ac_save_CC=$CC
  4398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4399. /* end confdefs.h. */
  4400. #include <stdarg.h>
  4401. #include <stdio.h>
  4402. #include <sys/types.h>
  4403. #include <sys/stat.h>
  4404. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4405. struct buf { int x; };
  4406. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4407. static char *e (p, i)
  4408. char **p;
  4409. int i;
  4410. {
  4411. return p[i];
  4412. }
  4413. static char *f (char * (*g) (char **, int), char **p, ...)
  4414. {
  4415. char *s;
  4416. va_list v;
  4417. va_start (v,p);
  4418. s = g (p, va_arg (v,int));
  4419. va_end (v);
  4420. return s;
  4421. }
  4422. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4423. function prototypes and stuff, but not '\xHH' hex character constants.
  4424. These don't provoke an error unfortunately, instead are silently treated
  4425. as 'x'. The following induces an error, until -std is added to get
  4426. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4427. array size at least. It's necessary to write '\x00'==0 to get something
  4428. that's true only with -std. */
  4429. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4430. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4431. inside strings and character constants. */
  4432. #define FOO(x) 'x'
  4433. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4434. int test (int i, double x);
  4435. struct s1 {int (*f) (int a);};
  4436. struct s2 {int (*f) (double a);};
  4437. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4438. int argc;
  4439. char **argv;
  4440. int
  4441. main ()
  4442. {
  4443. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4444. ;
  4445. return 0;
  4446. }
  4447. _ACEOF
  4448. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4449. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4450. do
  4451. CC="$ac_save_CC $ac_arg"
  4452. if ac_fn_c_try_compile "$LINENO"; then :
  4453. ac_cv_prog_cc_c89=$ac_arg
  4454. fi
  4455. rm -f core conftest.err conftest.$ac_objext
  4456. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4457. done
  4458. rm -f conftest.$ac_ext
  4459. CC=$ac_save_CC
  4460. fi
  4461. # AC_CACHE_VAL
  4462. case "x$ac_cv_prog_cc_c89" in
  4463. x)
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4465. $as_echo "none needed" >&6; } ;;
  4466. xno)
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4468. $as_echo "unsupported" >&6; } ;;
  4469. *)
  4470. CC="$CC $ac_cv_prog_cc_c89"
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4472. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4473. esac
  4474. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4475. fi
  4476. ac_ext=c
  4477. ac_cpp='$CPP $CPPFLAGS'
  4478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4481. ac_ext=c
  4482. ac_cpp='$CPP $CPPFLAGS'
  4483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4487. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4488. # On Suns, sometimes $CPP names a directory.
  4489. if test -n "$CPP" && test -d "$CPP"; then
  4490. CPP=
  4491. fi
  4492. if test -z "$CPP"; then
  4493. if test "${ac_cv_prog_CPP+set}" = set; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. # Double quotes because CPP needs to be expanded
  4497. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4498. do
  4499. ac_preproc_ok=false
  4500. for ac_c_preproc_warn_flag in '' yes
  4501. do
  4502. # Use a header file that comes with gcc, so configuring glibc
  4503. # with a fresh cross-compiler works.
  4504. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4505. # <limits.h> exists even on freestanding compilers.
  4506. # On the NeXT, cc -E runs the code through the compiler's parser,
  4507. # not just through cpp. "Syntax error" is here to catch this case.
  4508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4509. /* end confdefs.h. */
  4510. #ifdef __STDC__
  4511. # include <limits.h>
  4512. #else
  4513. # include <assert.h>
  4514. #endif
  4515. Syntax error
  4516. _ACEOF
  4517. if ac_fn_c_try_cpp "$LINENO"; then :
  4518. else
  4519. # Broken: fails on valid input.
  4520. continue
  4521. fi
  4522. rm -f conftest.err conftest.$ac_ext
  4523. # OK, works on sane cases. Now check whether nonexistent headers
  4524. # can be detected and how.
  4525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4526. /* end confdefs.h. */
  4527. #include <ac_nonexistent.h>
  4528. _ACEOF
  4529. if ac_fn_c_try_cpp "$LINENO"; then :
  4530. # Broken: success on invalid input.
  4531. continue
  4532. else
  4533. # Passes both tests.
  4534. ac_preproc_ok=:
  4535. break
  4536. fi
  4537. rm -f conftest.err conftest.$ac_ext
  4538. done
  4539. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4540. rm -f conftest.err conftest.$ac_ext
  4541. if $ac_preproc_ok; then :
  4542. break
  4543. fi
  4544. done
  4545. ac_cv_prog_CPP=$CPP
  4546. fi
  4547. CPP=$ac_cv_prog_CPP
  4548. else
  4549. ac_cv_prog_CPP=$CPP
  4550. fi
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4552. $as_echo "$CPP" >&6; }
  4553. ac_preproc_ok=false
  4554. for ac_c_preproc_warn_flag in '' yes
  4555. do
  4556. # Use a header file that comes with gcc, so configuring glibc
  4557. # with a fresh cross-compiler works.
  4558. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4559. # <limits.h> exists even on freestanding compilers.
  4560. # On the NeXT, cc -E runs the code through the compiler's parser,
  4561. # not just through cpp. "Syntax error" is here to catch this case.
  4562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4563. /* end confdefs.h. */
  4564. #ifdef __STDC__
  4565. # include <limits.h>
  4566. #else
  4567. # include <assert.h>
  4568. #endif
  4569. Syntax error
  4570. _ACEOF
  4571. if ac_fn_c_try_cpp "$LINENO"; then :
  4572. else
  4573. # Broken: fails on valid input.
  4574. continue
  4575. fi
  4576. rm -f conftest.err conftest.$ac_ext
  4577. # OK, works on sane cases. Now check whether nonexistent headers
  4578. # can be detected and how.
  4579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4580. /* end confdefs.h. */
  4581. #include <ac_nonexistent.h>
  4582. _ACEOF
  4583. if ac_fn_c_try_cpp "$LINENO"; then :
  4584. # Broken: success on invalid input.
  4585. continue
  4586. else
  4587. # Passes both tests.
  4588. ac_preproc_ok=:
  4589. break
  4590. fi
  4591. rm -f conftest.err conftest.$ac_ext
  4592. done
  4593. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4594. rm -f conftest.err conftest.$ac_ext
  4595. if $ac_preproc_ok; then :
  4596. else
  4597. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4599. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4600. See \`config.log' for more details." "$LINENO" 5; }
  4601. fi
  4602. ac_ext=c
  4603. ac_cpp='$CPP $CPPFLAGS'
  4604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4608. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4609. if test "${ac_cv_path_GREP+set}" = set; then :
  4610. $as_echo_n "(cached) " >&6
  4611. else
  4612. if test -z "$GREP"; then
  4613. ac_path_GREP_found=false
  4614. # Loop through the user's path and test for each of PROGNAME-LIST
  4615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4616. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4617. do
  4618. IFS=$as_save_IFS
  4619. test -z "$as_dir" && as_dir=.
  4620. for ac_prog in grep ggrep; do
  4621. for ac_exec_ext in '' $ac_executable_extensions; do
  4622. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4623. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4624. # Check for GNU ac_path_GREP and select it if it is found.
  4625. # Check for GNU $ac_path_GREP
  4626. case `"$ac_path_GREP" --version 2>&1` in
  4627. *GNU*)
  4628. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4629. *)
  4630. ac_count=0
  4631. $as_echo_n 0123456789 >"conftest.in"
  4632. while :
  4633. do
  4634. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4635. mv "conftest.tmp" "conftest.in"
  4636. cp "conftest.in" "conftest.nl"
  4637. $as_echo 'GREP' >> "conftest.nl"
  4638. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4639. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4640. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4641. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4642. # Best one so far, save it but keep looking for a better one
  4643. ac_cv_path_GREP="$ac_path_GREP"
  4644. ac_path_GREP_max=$ac_count
  4645. fi
  4646. # 10*(2^10) chars as input seems more than enough
  4647. test $ac_count -gt 10 && break
  4648. done
  4649. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4650. esac
  4651. $ac_path_GREP_found && break 3
  4652. done
  4653. done
  4654. done
  4655. IFS=$as_save_IFS
  4656. if test -z "$ac_cv_path_GREP"; then
  4657. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4658. fi
  4659. else
  4660. ac_cv_path_GREP=$GREP
  4661. fi
  4662. fi
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4664. $as_echo "$ac_cv_path_GREP" >&6; }
  4665. GREP="$ac_cv_path_GREP"
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4667. $as_echo_n "checking for egrep... " >&6; }
  4668. if test "${ac_cv_path_EGREP+set}" = set; then :
  4669. $as_echo_n "(cached) " >&6
  4670. else
  4671. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4672. then ac_cv_path_EGREP="$GREP -E"
  4673. else
  4674. if test -z "$EGREP"; then
  4675. ac_path_EGREP_found=false
  4676. # Loop through the user's path and test for each of PROGNAME-LIST
  4677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4678. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4679. do
  4680. IFS=$as_save_IFS
  4681. test -z "$as_dir" && as_dir=.
  4682. for ac_prog in egrep; do
  4683. for ac_exec_ext in '' $ac_executable_extensions; do
  4684. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4685. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4686. # Check for GNU ac_path_EGREP and select it if it is found.
  4687. # Check for GNU $ac_path_EGREP
  4688. case `"$ac_path_EGREP" --version 2>&1` in
  4689. *GNU*)
  4690. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4691. *)
  4692. ac_count=0
  4693. $as_echo_n 0123456789 >"conftest.in"
  4694. while :
  4695. do
  4696. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4697. mv "conftest.tmp" "conftest.in"
  4698. cp "conftest.in" "conftest.nl"
  4699. $as_echo 'EGREP' >> "conftest.nl"
  4700. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4701. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4702. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4703. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4704. # Best one so far, save it but keep looking for a better one
  4705. ac_cv_path_EGREP="$ac_path_EGREP"
  4706. ac_path_EGREP_max=$ac_count
  4707. fi
  4708. # 10*(2^10) chars as input seems more than enough
  4709. test $ac_count -gt 10 && break
  4710. done
  4711. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4712. esac
  4713. $ac_path_EGREP_found && break 3
  4714. done
  4715. done
  4716. done
  4717. IFS=$as_save_IFS
  4718. if test -z "$ac_cv_path_EGREP"; then
  4719. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4720. fi
  4721. else
  4722. ac_cv_path_EGREP=$EGREP
  4723. fi
  4724. fi
  4725. fi
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4727. $as_echo "$ac_cv_path_EGREP" >&6; }
  4728. EGREP="$ac_cv_path_EGREP"
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4730. $as_echo_n "checking for ANSI C header files... " >&6; }
  4731. if test "${ac_cv_header_stdc+set}" = set; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4735. /* end confdefs.h. */
  4736. #include <stdlib.h>
  4737. #include <stdarg.h>
  4738. #include <string.h>
  4739. #include <float.h>
  4740. int
  4741. main ()
  4742. {
  4743. ;
  4744. return 0;
  4745. }
  4746. _ACEOF
  4747. if ac_fn_c_try_compile "$LINENO"; then :
  4748. ac_cv_header_stdc=yes
  4749. else
  4750. ac_cv_header_stdc=no
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4753. if test $ac_cv_header_stdc = yes; then
  4754. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4756. /* end confdefs.h. */
  4757. #include <string.h>
  4758. _ACEOF
  4759. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4760. $EGREP "memchr" >/dev/null 2>&1; then :
  4761. else
  4762. ac_cv_header_stdc=no
  4763. fi
  4764. rm -f conftest*
  4765. fi
  4766. if test $ac_cv_header_stdc = yes; then
  4767. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4769. /* end confdefs.h. */
  4770. #include <stdlib.h>
  4771. _ACEOF
  4772. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4773. $EGREP "free" >/dev/null 2>&1; then :
  4774. else
  4775. ac_cv_header_stdc=no
  4776. fi
  4777. rm -f conftest*
  4778. fi
  4779. if test $ac_cv_header_stdc = yes; then
  4780. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4781. if test "$cross_compiling" = yes; then :
  4782. :
  4783. else
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. #include <ctype.h>
  4787. #include <stdlib.h>
  4788. #if ((' ' & 0x0FF) == 0x020)
  4789. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4790. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4791. #else
  4792. # define ISLOWER(c) \
  4793. (('a' <= (c) && (c) <= 'i') \
  4794. || ('j' <= (c) && (c) <= 'r') \
  4795. || ('s' <= (c) && (c) <= 'z'))
  4796. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4797. #endif
  4798. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4799. int
  4800. main ()
  4801. {
  4802. int i;
  4803. for (i = 0; i < 256; i++)
  4804. if (XOR (islower (i), ISLOWER (i))
  4805. || toupper (i) != TOUPPER (i))
  4806. return 2;
  4807. return 0;
  4808. }
  4809. _ACEOF
  4810. if ac_fn_c_try_run "$LINENO"; then :
  4811. else
  4812. ac_cv_header_stdc=no
  4813. fi
  4814. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4815. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4816. fi
  4817. fi
  4818. fi
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4820. $as_echo "$ac_cv_header_stdc" >&6; }
  4821. if test $ac_cv_header_stdc = yes; then
  4822. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4823. fi
  4824. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4825. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4826. inttypes.h stdint.h unistd.h
  4827. do :
  4828. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4829. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4830. "
  4831. eval as_val=\$$as_ac_Header
  4832. if test "x$as_val" = x""yes; then :
  4833. cat >>confdefs.h <<_ACEOF
  4834. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4835. _ACEOF
  4836. fi
  4837. done
  4838. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4839. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4840. MINIX=yes
  4841. else
  4842. MINIX=
  4843. fi
  4844. if test "$MINIX" = yes; then
  4845. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4846. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4847. $as_echo "#define _MINIX 1" >>confdefs.h
  4848. fi
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4850. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4851. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4852. $as_echo_n "(cached) " >&6
  4853. else
  4854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4855. /* end confdefs.h. */
  4856. # define __EXTENSIONS__ 1
  4857. $ac_includes_default
  4858. int
  4859. main ()
  4860. {
  4861. ;
  4862. return 0;
  4863. }
  4864. _ACEOF
  4865. if ac_fn_c_try_compile "$LINENO"; then :
  4866. ac_cv_safe_to_define___extensions__=yes
  4867. else
  4868. ac_cv_safe_to_define___extensions__=no
  4869. fi
  4870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4871. fi
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4873. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4874. test $ac_cv_safe_to_define___extensions__ = yes &&
  4875. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4876. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4877. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4878. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4879. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4880. case `pwd` in
  4881. *\ * | *\ *)
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4883. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4884. esac
  4885. macro_version='2.2.7a'
  4886. macro_revision='1.3134'
  4887. ltmain="$ac_aux_dir/ltmain.sh"
  4888. # Backslashify metacharacters that are still active within
  4889. # double-quoted strings.
  4890. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4891. # Same as above, but do not quote variable references.
  4892. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4893. # Sed substitution to delay expansion of an escaped shell variable in a
  4894. # double_quote_subst'ed string.
  4895. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4896. # Sed substitution to delay expansion of an escaped single quote.
  4897. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4898. # Sed substitution to avoid accidental globbing in evaled expressions
  4899. no_glob_subst='s/\*/\\\*/g'
  4900. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4901. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4902. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4904. $as_echo_n "checking how to print strings... " >&6; }
  4905. # Test print first, because it will be a builtin if present.
  4906. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4907. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4908. ECHO='print -r --'
  4909. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4910. ECHO='printf %s\n'
  4911. else
  4912. # Use this function as a fallback that always works.
  4913. func_fallback_echo ()
  4914. {
  4915. eval 'cat <<_LTECHO_EOF
  4916. $1
  4917. _LTECHO_EOF'
  4918. }
  4919. ECHO='func_fallback_echo'
  4920. fi
  4921. # func_echo_all arg...
  4922. # Invoke $ECHO with all args, space-separated.
  4923. func_echo_all ()
  4924. {
  4925. $ECHO ""
  4926. }
  4927. case "$ECHO" in
  4928. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4929. $as_echo "printf" >&6; } ;;
  4930. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4931. $as_echo "print -r" >&6; } ;;
  4932. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4933. $as_echo "cat" >&6; } ;;
  4934. esac
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4936. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4937. if test "${ac_cv_path_SED+set}" = set; then :
  4938. $as_echo_n "(cached) " >&6
  4939. else
  4940. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4941. for ac_i in 1 2 3 4 5 6 7; do
  4942. ac_script="$ac_script$as_nl$ac_script"
  4943. done
  4944. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4945. { ac_script=; unset ac_script;}
  4946. if test -z "$SED"; then
  4947. ac_path_SED_found=false
  4948. # Loop through the user's path and test for each of PROGNAME-LIST
  4949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4950. for as_dir in $PATH
  4951. do
  4952. IFS=$as_save_IFS
  4953. test -z "$as_dir" && as_dir=.
  4954. for ac_prog in sed gsed; do
  4955. for ac_exec_ext in '' $ac_executable_extensions; do
  4956. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4957. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4958. # Check for GNU ac_path_SED and select it if it is found.
  4959. # Check for GNU $ac_path_SED
  4960. case `"$ac_path_SED" --version 2>&1` in
  4961. *GNU*)
  4962. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4963. *)
  4964. ac_count=0
  4965. $as_echo_n 0123456789 >"conftest.in"
  4966. while :
  4967. do
  4968. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4969. mv "conftest.tmp" "conftest.in"
  4970. cp "conftest.in" "conftest.nl"
  4971. $as_echo '' >> "conftest.nl"
  4972. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4973. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4974. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4975. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4976. # Best one so far, save it but keep looking for a better one
  4977. ac_cv_path_SED="$ac_path_SED"
  4978. ac_path_SED_max=$ac_count
  4979. fi
  4980. # 10*(2^10) chars as input seems more than enough
  4981. test $ac_count -gt 10 && break
  4982. done
  4983. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4984. esac
  4985. $ac_path_SED_found && break 3
  4986. done
  4987. done
  4988. done
  4989. IFS=$as_save_IFS
  4990. if test -z "$ac_cv_path_SED"; then
  4991. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4992. fi
  4993. else
  4994. ac_cv_path_SED=$SED
  4995. fi
  4996. fi
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4998. $as_echo "$ac_cv_path_SED" >&6; }
  4999. SED="$ac_cv_path_SED"
  5000. rm -f conftest.sed
  5001. test -z "$SED" && SED=sed
  5002. Xsed="$SED -e 1s/^X//"
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5004. $as_echo_n "checking for fgrep... " >&6; }
  5005. if test "${ac_cv_path_FGREP+set}" = set; then :
  5006. $as_echo_n "(cached) " >&6
  5007. else
  5008. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5009. then ac_cv_path_FGREP="$GREP -F"
  5010. else
  5011. if test -z "$FGREP"; then
  5012. ac_path_FGREP_found=false
  5013. # Loop through the user's path and test for each of PROGNAME-LIST
  5014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5015. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5016. do
  5017. IFS=$as_save_IFS
  5018. test -z "$as_dir" && as_dir=.
  5019. for ac_prog in fgrep; do
  5020. for ac_exec_ext in '' $ac_executable_extensions; do
  5021. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5022. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5023. # Check for GNU ac_path_FGREP and select it if it is found.
  5024. # Check for GNU $ac_path_FGREP
  5025. case `"$ac_path_FGREP" --version 2>&1` in
  5026. *GNU*)
  5027. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5028. *)
  5029. ac_count=0
  5030. $as_echo_n 0123456789 >"conftest.in"
  5031. while :
  5032. do
  5033. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5034. mv "conftest.tmp" "conftest.in"
  5035. cp "conftest.in" "conftest.nl"
  5036. $as_echo 'FGREP' >> "conftest.nl"
  5037. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5038. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5039. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5040. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5041. # Best one so far, save it but keep looking for a better one
  5042. ac_cv_path_FGREP="$ac_path_FGREP"
  5043. ac_path_FGREP_max=$ac_count
  5044. fi
  5045. # 10*(2^10) chars as input seems more than enough
  5046. test $ac_count -gt 10 && break
  5047. done
  5048. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5049. esac
  5050. $ac_path_FGREP_found && break 3
  5051. done
  5052. done
  5053. done
  5054. IFS=$as_save_IFS
  5055. if test -z "$ac_cv_path_FGREP"; then
  5056. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5057. fi
  5058. else
  5059. ac_cv_path_FGREP=$FGREP
  5060. fi
  5061. fi
  5062. fi
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5064. $as_echo "$ac_cv_path_FGREP" >&6; }
  5065. FGREP="$ac_cv_path_FGREP"
  5066. test -z "$GREP" && GREP=grep
  5067. # Check whether --with-gnu-ld was given.
  5068. if test "${with_gnu_ld+set}" = set; then :
  5069. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5070. else
  5071. with_gnu_ld=no
  5072. fi
  5073. ac_prog=ld
  5074. if test "$GCC" = yes; then
  5075. # Check if gcc -print-prog-name=ld gives a path.
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5077. $as_echo_n "checking for ld used by $CC... " >&6; }
  5078. case $host in
  5079. *-*-mingw*)
  5080. # gcc leaves a trailing carriage return which upsets mingw
  5081. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5082. *)
  5083. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5084. esac
  5085. case $ac_prog in
  5086. # Accept absolute paths.
  5087. [\\/]* | ?:[\\/]*)
  5088. re_direlt='/[^/][^/]*/\.\./'
  5089. # Canonicalize the pathname of ld
  5090. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5091. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5092. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5093. done
  5094. test -z "$LD" && LD="$ac_prog"
  5095. ;;
  5096. "")
  5097. # If it fails, then pretend we aren't using GCC.
  5098. ac_prog=ld
  5099. ;;
  5100. *)
  5101. # If it is relative, then search for the first ld in PATH.
  5102. with_gnu_ld=unknown
  5103. ;;
  5104. esac
  5105. elif test "$with_gnu_ld" = yes; then
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5107. $as_echo_n "checking for GNU ld... " >&6; }
  5108. else
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5110. $as_echo_n "checking for non-GNU ld... " >&6; }
  5111. fi
  5112. if test "${lt_cv_path_LD+set}" = set; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. if test -z "$LD"; then
  5116. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5117. for ac_dir in $PATH; do
  5118. IFS="$lt_save_ifs"
  5119. test -z "$ac_dir" && ac_dir=.
  5120. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5121. lt_cv_path_LD="$ac_dir/$ac_prog"
  5122. # Check to see if the program is GNU ld. I'd rather use --version,
  5123. # but apparently some variants of GNU ld only accept -v.
  5124. # Break only if it was the GNU/non-GNU ld that we prefer.
  5125. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5126. *GNU* | *'with BFD'*)
  5127. test "$with_gnu_ld" != no && break
  5128. ;;
  5129. *)
  5130. test "$with_gnu_ld" != yes && break
  5131. ;;
  5132. esac
  5133. fi
  5134. done
  5135. IFS="$lt_save_ifs"
  5136. else
  5137. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5138. fi
  5139. fi
  5140. LD="$lt_cv_path_LD"
  5141. if test -n "$LD"; then
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5143. $as_echo "$LD" >&6; }
  5144. else
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5146. $as_echo "no" >&6; }
  5147. fi
  5148. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5150. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5151. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5155. case `$LD -v 2>&1 </dev/null` in
  5156. *GNU* | *'with BFD'*)
  5157. lt_cv_prog_gnu_ld=yes
  5158. ;;
  5159. *)
  5160. lt_cv_prog_gnu_ld=no
  5161. ;;
  5162. esac
  5163. fi
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5165. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5166. with_gnu_ld=$lt_cv_prog_gnu_ld
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5168. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5169. if test "${lt_cv_path_NM+set}" = set; then :
  5170. $as_echo_n "(cached) " >&6
  5171. else
  5172. if test -n "$NM"; then
  5173. # Let the user override the test.
  5174. lt_cv_path_NM="$NM"
  5175. else
  5176. lt_nm_to_check="${ac_tool_prefix}nm"
  5177. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5178. lt_nm_to_check="$lt_nm_to_check nm"
  5179. fi
  5180. for lt_tmp_nm in $lt_nm_to_check; do
  5181. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5182. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5183. IFS="$lt_save_ifs"
  5184. test -z "$ac_dir" && ac_dir=.
  5185. tmp_nm="$ac_dir/$lt_tmp_nm"
  5186. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5187. # Check to see if the nm accepts a BSD-compat flag.
  5188. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5189. # nm: unknown option "B" ignored
  5190. # Tru64's nm complains that /dev/null is an invalid object file
  5191. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5192. */dev/null* | *'Invalid file or object type'*)
  5193. lt_cv_path_NM="$tmp_nm -B"
  5194. break
  5195. ;;
  5196. *)
  5197. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5198. */dev/null*)
  5199. lt_cv_path_NM="$tmp_nm -p"
  5200. break
  5201. ;;
  5202. *)
  5203. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5204. continue # so that we can try to find one that supports BSD flags
  5205. ;;
  5206. esac
  5207. ;;
  5208. esac
  5209. fi
  5210. done
  5211. IFS="$lt_save_ifs"
  5212. done
  5213. : ${lt_cv_path_NM=no}
  5214. fi
  5215. fi
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5217. $as_echo "$lt_cv_path_NM" >&6; }
  5218. if test "$lt_cv_path_NM" != "no"; then
  5219. NM="$lt_cv_path_NM"
  5220. else
  5221. # Didn't find any BSD compatible name lister, look for dumpbin.
  5222. if test -n "$DUMPBIN"; then :
  5223. # Let the user override the test.
  5224. else
  5225. if test -n "$ac_tool_prefix"; then
  5226. for ac_prog in dumpbin "link -dump"
  5227. do
  5228. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5229. set dummy $ac_tool_prefix$ac_prog; 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 test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5233. $as_echo_n "(cached) " >&6
  5234. else
  5235. if test -n "$DUMPBIN"; then
  5236. ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5245. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  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. DUMPBIN=$ac_cv_prog_DUMPBIN
  5255. if test -n "$DUMPBIN"; then
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5257. $as_echo "$DUMPBIN" >&6; }
  5258. else
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5260. $as_echo "no" >&6; }
  5261. fi
  5262. test -n "$DUMPBIN" && break
  5263. done
  5264. fi
  5265. if test -z "$DUMPBIN"; then
  5266. ac_ct_DUMPBIN=$DUMPBIN
  5267. for ac_prog in dumpbin "link -dump"
  5268. do
  5269. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5270. set dummy $ac_prog; ac_word=$2
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5272. $as_echo_n "checking for $ac_word... " >&6; }
  5273. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. if test -n "$ac_ct_DUMPBIN"; then
  5277. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. test -z "$as_dir" && as_dir=.
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5286. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. IFS=$as_save_IFS
  5293. fi
  5294. fi
  5295. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5296. if test -n "$ac_ct_DUMPBIN"; then
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5298. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5299. else
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. $as_echo "no" >&6; }
  5302. fi
  5303. test -n "$ac_ct_DUMPBIN" && break
  5304. done
  5305. if test "x$ac_ct_DUMPBIN" = x; then
  5306. DUMPBIN=":"
  5307. else
  5308. case $cross_compiling:$ac_tool_warned in
  5309. yes:)
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5311. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5312. ac_tool_warned=yes ;;
  5313. esac
  5314. DUMPBIN=$ac_ct_DUMPBIN
  5315. fi
  5316. fi
  5317. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5318. *COFF*)
  5319. DUMPBIN="$DUMPBIN -symbols"
  5320. ;;
  5321. *)
  5322. DUMPBIN=:
  5323. ;;
  5324. esac
  5325. fi
  5326. if test "$DUMPBIN" != ":"; then
  5327. NM="$DUMPBIN"
  5328. fi
  5329. fi
  5330. test -z "$NM" && NM=nm
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5332. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5333. if test "${lt_cv_nm_interface+set}" = set; then :
  5334. $as_echo_n "(cached) " >&6
  5335. else
  5336. lt_cv_nm_interface="BSD nm"
  5337. echo "int some_variable = 0;" > conftest.$ac_ext
  5338. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5339. (eval "$ac_compile" 2>conftest.err)
  5340. cat conftest.err >&5
  5341. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5342. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5343. cat conftest.err >&5
  5344. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5345. cat conftest.out >&5
  5346. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5347. lt_cv_nm_interface="MS dumpbin"
  5348. fi
  5349. rm -f conftest*
  5350. fi
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5352. $as_echo "$lt_cv_nm_interface" >&6; }
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5354. $as_echo_n "checking whether ln -s works... " >&6; }
  5355. LN_S=$as_ln_s
  5356. if test "$LN_S" = "ln -s"; then
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5358. $as_echo "yes" >&6; }
  5359. else
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5361. $as_echo "no, using $LN_S" >&6; }
  5362. fi
  5363. # find the maximum length of command line arguments
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5365. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5366. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5367. $as_echo_n "(cached) " >&6
  5368. else
  5369. i=0
  5370. teststring="ABCD"
  5371. case $build_os in
  5372. msdosdjgpp*)
  5373. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5374. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5375. # during glob expansion). Even if it were fixed, the result of this
  5376. # check would be larger than it should be.
  5377. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5378. ;;
  5379. gnu*)
  5380. # Under GNU Hurd, this test is not required because there is
  5381. # no limit to the length of command line arguments.
  5382. # Libtool will interpret -1 as no limit whatsoever
  5383. lt_cv_sys_max_cmd_len=-1;
  5384. ;;
  5385. cygwin* | mingw* | cegcc*)
  5386. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5387. # about 5 minutes as the teststring grows exponentially.
  5388. # Worse, since 9x/ME are not pre-emptively multitasking,
  5389. # you end up with a "frozen" computer, even though with patience
  5390. # the test eventually succeeds (with a max line length of 256k).
  5391. # Instead, let's just punt: use the minimum linelength reported by
  5392. # all of the supported platforms: 8192 (on NT/2K/XP).
  5393. lt_cv_sys_max_cmd_len=8192;
  5394. ;;
  5395. mint*)
  5396. # On MiNT this can take a long time and run out of memory.
  5397. lt_cv_sys_max_cmd_len=8192;
  5398. ;;
  5399. amigaos*)
  5400. # On AmigaOS with pdksh, this test takes hours, literally.
  5401. # So we just punt and use a minimum line length of 8192.
  5402. lt_cv_sys_max_cmd_len=8192;
  5403. ;;
  5404. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5405. # This has been around since 386BSD, at least. Likely further.
  5406. if test -x /sbin/sysctl; then
  5407. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5408. elif test -x /usr/sbin/sysctl; then
  5409. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5410. else
  5411. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5412. fi
  5413. # And add a safety zone
  5414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5415. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5416. ;;
  5417. interix*)
  5418. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5419. lt_cv_sys_max_cmd_len=196608
  5420. ;;
  5421. osf*)
  5422. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5423. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5424. # nice to cause kernel panics so lets avoid the loop below.
  5425. # First set a reasonable default.
  5426. lt_cv_sys_max_cmd_len=16384
  5427. #
  5428. if test -x /sbin/sysconfig; then
  5429. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5430. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5431. esac
  5432. fi
  5433. ;;
  5434. sco3.2v5*)
  5435. lt_cv_sys_max_cmd_len=102400
  5436. ;;
  5437. sysv5* | sco5v6* | sysv4.2uw2*)
  5438. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5439. if test -n "$kargmax"; then
  5440. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5441. else
  5442. lt_cv_sys_max_cmd_len=32768
  5443. fi
  5444. ;;
  5445. *)
  5446. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5447. if test -n "$lt_cv_sys_max_cmd_len"; then
  5448. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5449. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5450. else
  5451. # Make teststring a little bigger before we do anything with it.
  5452. # a 1K string should be a reasonable start.
  5453. for i in 1 2 3 4 5 6 7 8 ; do
  5454. teststring=$teststring$teststring
  5455. done
  5456. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5457. # If test is not a shell built-in, we'll probably end up computing a
  5458. # maximum length that is only half of the actual maximum length, but
  5459. # we can't tell.
  5460. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5461. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5462. test $i != 17 # 1/2 MB should be enough
  5463. do
  5464. i=`expr $i + 1`
  5465. teststring=$teststring$teststring
  5466. done
  5467. # Only check the string length outside the loop.
  5468. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5469. teststring=
  5470. # Add a significant safety factor because C++ compilers can tack on
  5471. # massive amounts of additional arguments before passing them to the
  5472. # linker. It appears as though 1/2 is a usable value.
  5473. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5474. fi
  5475. ;;
  5476. esac
  5477. fi
  5478. if test -n $lt_cv_sys_max_cmd_len ; then
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5480. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5481. else
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5483. $as_echo "none" >&6; }
  5484. fi
  5485. max_cmd_len=$lt_cv_sys_max_cmd_len
  5486. : ${CP="cp -f"}
  5487. : ${MV="mv -f"}
  5488. : ${RM="rm -f"}
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5490. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5491. # Try some XSI features
  5492. xsi_shell=no
  5493. ( _lt_dummy="a/b/c"
  5494. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5495. = c,a/b,, \
  5496. && eval 'test $(( 1 + 1 )) -eq 2 \
  5497. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5498. && xsi_shell=yes
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5500. $as_echo "$xsi_shell" >&6; }
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5502. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5503. lt_shell_append=no
  5504. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5505. >/dev/null 2>&1 \
  5506. && lt_shell_append=yes
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5508. $as_echo "$lt_shell_append" >&6; }
  5509. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5510. lt_unset=unset
  5511. else
  5512. lt_unset=false
  5513. fi
  5514. # test EBCDIC or ASCII
  5515. case `echo X|tr X '\101'` in
  5516. A) # ASCII based system
  5517. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5518. lt_SP2NL='tr \040 \012'
  5519. lt_NL2SP='tr \015\012 \040\040'
  5520. ;;
  5521. *) # EBCDIC based system
  5522. lt_SP2NL='tr \100 \n'
  5523. lt_NL2SP='tr \r\n \100\100'
  5524. ;;
  5525. esac
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5527. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5528. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5529. $as_echo_n "(cached) " >&6
  5530. else
  5531. lt_cv_ld_reload_flag='-r'
  5532. fi
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5534. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5535. reload_flag=$lt_cv_ld_reload_flag
  5536. case $reload_flag in
  5537. "" | " "*) ;;
  5538. *) reload_flag=" $reload_flag" ;;
  5539. esac
  5540. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5541. case $host_os in
  5542. darwin*)
  5543. if test "$GCC" = yes; then
  5544. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5545. else
  5546. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5547. fi
  5548. ;;
  5549. esac
  5550. if test -n "$ac_tool_prefix"; then
  5551. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5552. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5554. $as_echo_n "checking for $ac_word... " >&6; }
  5555. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5556. $as_echo_n "(cached) " >&6
  5557. else
  5558. if test -n "$OBJDUMP"; then
  5559. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5560. else
  5561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5562. for as_dir in $PATH
  5563. do
  5564. IFS=$as_save_IFS
  5565. test -z "$as_dir" && as_dir=.
  5566. for ac_exec_ext in '' $ac_executable_extensions; do
  5567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5568. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5570. break 2
  5571. fi
  5572. done
  5573. done
  5574. IFS=$as_save_IFS
  5575. fi
  5576. fi
  5577. OBJDUMP=$ac_cv_prog_OBJDUMP
  5578. if test -n "$OBJDUMP"; then
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5580. $as_echo "$OBJDUMP" >&6; }
  5581. else
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5583. $as_echo "no" >&6; }
  5584. fi
  5585. fi
  5586. if test -z "$ac_cv_prog_OBJDUMP"; then
  5587. ac_ct_OBJDUMP=$OBJDUMP
  5588. # Extract the first word of "objdump", so it can be a program name with args.
  5589. set dummy objdump; ac_word=$2
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5591. $as_echo_n "checking for $ac_word... " >&6; }
  5592. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. if test -n "$ac_ct_OBJDUMP"; then
  5596. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5597. else
  5598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5599. for as_dir in $PATH
  5600. do
  5601. IFS=$as_save_IFS
  5602. test -z "$as_dir" && as_dir=.
  5603. for ac_exec_ext in '' $ac_executable_extensions; do
  5604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5605. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5607. break 2
  5608. fi
  5609. done
  5610. done
  5611. IFS=$as_save_IFS
  5612. fi
  5613. fi
  5614. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5615. if test -n "$ac_ct_OBJDUMP"; then
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5617. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5618. else
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5620. $as_echo "no" >&6; }
  5621. fi
  5622. if test "x$ac_ct_OBJDUMP" = x; then
  5623. OBJDUMP="false"
  5624. else
  5625. case $cross_compiling:$ac_tool_warned in
  5626. yes:)
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5628. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5629. ac_tool_warned=yes ;;
  5630. esac
  5631. OBJDUMP=$ac_ct_OBJDUMP
  5632. fi
  5633. else
  5634. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5635. fi
  5636. test -z "$OBJDUMP" && OBJDUMP=objdump
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5638. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5639. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5640. $as_echo_n "(cached) " >&6
  5641. else
  5642. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5643. lt_cv_file_magic_test_file=
  5644. lt_cv_deplibs_check_method='unknown'
  5645. # Need to set the preceding variable on all platforms that support
  5646. # interlibrary dependencies.
  5647. # 'none' -- dependencies not supported.
  5648. # `unknown' -- same as none, but documents that we really don't know.
  5649. # 'pass_all' -- all dependencies passed with no checks.
  5650. # 'test_compile' -- check by making test program.
  5651. # 'file_magic [[regex]]' -- check by looking for files in library path
  5652. # which responds to the $file_magic_cmd with a given extended regex.
  5653. # If you have `file' or equivalent on your system and you're not sure
  5654. # whether `pass_all' will *always* work, you probably want this one.
  5655. case $host_os in
  5656. aix[4-9]*)
  5657. lt_cv_deplibs_check_method=pass_all
  5658. ;;
  5659. beos*)
  5660. lt_cv_deplibs_check_method=pass_all
  5661. ;;
  5662. bsdi[45]*)
  5663. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5664. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5665. lt_cv_file_magic_test_file=/shlib/libc.so
  5666. ;;
  5667. cygwin*)
  5668. # func_win32_libid is a shell function defined in ltmain.sh
  5669. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5670. lt_cv_file_magic_cmd='func_win32_libid'
  5671. ;;
  5672. mingw* | pw32*)
  5673. # Base MSYS/MinGW do not provide the 'file' command needed by
  5674. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5675. # unless we find 'file', for example because we are cross-compiling.
  5676. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5677. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5678. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5679. lt_cv_file_magic_cmd='func_win32_libid'
  5680. else
  5681. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5682. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5683. fi
  5684. ;;
  5685. cegcc*)
  5686. # use the weaker test based on 'objdump'. See mingw*.
  5687. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5688. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5689. ;;
  5690. darwin* | rhapsody*)
  5691. lt_cv_deplibs_check_method=pass_all
  5692. ;;
  5693. freebsd* | dragonfly*)
  5694. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5695. case $host_cpu in
  5696. i*86 )
  5697. # Not sure whether the presence of OpenBSD here was a mistake.
  5698. # Let's accept both of them until this is cleared up.
  5699. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5700. lt_cv_file_magic_cmd=/usr/bin/file
  5701. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5702. ;;
  5703. esac
  5704. else
  5705. lt_cv_deplibs_check_method=pass_all
  5706. fi
  5707. ;;
  5708. gnu*)
  5709. lt_cv_deplibs_check_method=pass_all
  5710. ;;
  5711. haiku*)
  5712. lt_cv_deplibs_check_method=pass_all
  5713. ;;
  5714. hpux10.20* | hpux11*)
  5715. lt_cv_file_magic_cmd=/usr/bin/file
  5716. case $host_cpu in
  5717. ia64*)
  5718. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5719. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5720. ;;
  5721. hppa*64*)
  5722. 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]'
  5723. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5724. ;;
  5725. *)
  5726. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5727. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5728. ;;
  5729. esac
  5730. ;;
  5731. interix[3-9]*)
  5732. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5734. ;;
  5735. irix5* | irix6* | nonstopux*)
  5736. case $LD in
  5737. *-32|*"-32 ") libmagic=32-bit;;
  5738. *-n32|*"-n32 ") libmagic=N32;;
  5739. *-64|*"-64 ") libmagic=64-bit;;
  5740. *) libmagic=never-match;;
  5741. esac
  5742. lt_cv_deplibs_check_method=pass_all
  5743. ;;
  5744. # This must be Linux ELF.
  5745. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5746. lt_cv_deplibs_check_method=pass_all
  5747. ;;
  5748. netbsd*)
  5749. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5750. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5751. else
  5752. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5753. fi
  5754. ;;
  5755. newos6*)
  5756. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5757. lt_cv_file_magic_cmd=/usr/bin/file
  5758. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5759. ;;
  5760. *nto* | *qnx*)
  5761. lt_cv_deplibs_check_method=pass_all
  5762. ;;
  5763. openbsd*)
  5764. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5765. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5766. else
  5767. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5768. fi
  5769. ;;
  5770. osf3* | osf4* | osf5*)
  5771. lt_cv_deplibs_check_method=pass_all
  5772. ;;
  5773. rdos*)
  5774. lt_cv_deplibs_check_method=pass_all
  5775. ;;
  5776. solaris*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5780. lt_cv_deplibs_check_method=pass_all
  5781. ;;
  5782. sysv4 | sysv4.3*)
  5783. case $host_vendor in
  5784. motorola)
  5785. 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]'
  5786. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5787. ;;
  5788. ncr)
  5789. lt_cv_deplibs_check_method=pass_all
  5790. ;;
  5791. sequent)
  5792. lt_cv_file_magic_cmd='/bin/file'
  5793. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5794. ;;
  5795. sni)
  5796. lt_cv_file_magic_cmd='/bin/file'
  5797. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5798. lt_cv_file_magic_test_file=/lib/libc.so
  5799. ;;
  5800. siemens)
  5801. lt_cv_deplibs_check_method=pass_all
  5802. ;;
  5803. pc)
  5804. lt_cv_deplibs_check_method=pass_all
  5805. ;;
  5806. esac
  5807. ;;
  5808. tpf*)
  5809. lt_cv_deplibs_check_method=pass_all
  5810. ;;
  5811. esac
  5812. fi
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5814. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5815. file_magic_cmd=$lt_cv_file_magic_cmd
  5816. deplibs_check_method=$lt_cv_deplibs_check_method
  5817. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5818. if test -n "$ac_tool_prefix"; then
  5819. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5820. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5822. $as_echo_n "checking for $ac_word... " >&6; }
  5823. if test "${ac_cv_prog_AR+set}" = set; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. if test -n "$AR"; then
  5827. ac_cv_prog_AR="$AR" # Let the user override the test.
  5828. else
  5829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5830. for as_dir in $PATH
  5831. do
  5832. IFS=$as_save_IFS
  5833. test -z "$as_dir" && as_dir=.
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5836. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. fi
  5844. fi
  5845. AR=$ac_cv_prog_AR
  5846. if test -n "$AR"; then
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5848. $as_echo "$AR" >&6; }
  5849. else
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5851. $as_echo "no" >&6; }
  5852. fi
  5853. fi
  5854. if test -z "$ac_cv_prog_AR"; then
  5855. ac_ct_AR=$AR
  5856. # Extract the first word of "ar", so it can be a program name with args.
  5857. set dummy ar; ac_word=$2
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5859. $as_echo_n "checking for $ac_word... " >&6; }
  5860. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. if test -n "$ac_ct_AR"; then
  5864. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5865. else
  5866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5867. for as_dir in $PATH
  5868. do
  5869. IFS=$as_save_IFS
  5870. test -z "$as_dir" && as_dir=.
  5871. for ac_exec_ext in '' $ac_executable_extensions; do
  5872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5873. ac_cv_prog_ac_ct_AR="ar"
  5874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5875. break 2
  5876. fi
  5877. done
  5878. done
  5879. IFS=$as_save_IFS
  5880. fi
  5881. fi
  5882. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5883. if test -n "$ac_ct_AR"; then
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5885. $as_echo "$ac_ct_AR" >&6; }
  5886. else
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5888. $as_echo "no" >&6; }
  5889. fi
  5890. if test "x$ac_ct_AR" = x; then
  5891. AR="false"
  5892. else
  5893. case $cross_compiling:$ac_tool_warned in
  5894. yes:)
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5897. ac_tool_warned=yes ;;
  5898. esac
  5899. AR=$ac_ct_AR
  5900. fi
  5901. else
  5902. AR="$ac_cv_prog_AR"
  5903. fi
  5904. test -z "$AR" && AR=ar
  5905. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5906. if test -n "$ac_tool_prefix"; then
  5907. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5908. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5910. $as_echo_n "checking for $ac_word... " >&6; }
  5911. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. if test -n "$STRIP"; then
  5915. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5916. else
  5917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5918. for as_dir in $PATH
  5919. do
  5920. IFS=$as_save_IFS
  5921. test -z "$as_dir" && as_dir=.
  5922. for ac_exec_ext in '' $ac_executable_extensions; do
  5923. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5924. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5926. break 2
  5927. fi
  5928. done
  5929. done
  5930. IFS=$as_save_IFS
  5931. fi
  5932. fi
  5933. STRIP=$ac_cv_prog_STRIP
  5934. if test -n "$STRIP"; then
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5936. $as_echo "$STRIP" >&6; }
  5937. else
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5939. $as_echo "no" >&6; }
  5940. fi
  5941. fi
  5942. if test -z "$ac_cv_prog_STRIP"; then
  5943. ac_ct_STRIP=$STRIP
  5944. # Extract the first word of "strip", so it can be a program name with args.
  5945. set dummy strip; ac_word=$2
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5947. $as_echo_n "checking for $ac_word... " >&6; }
  5948. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5949. $as_echo_n "(cached) " >&6
  5950. else
  5951. if test -n "$ac_ct_STRIP"; then
  5952. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5953. else
  5954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5955. for as_dir in $PATH
  5956. do
  5957. IFS=$as_save_IFS
  5958. test -z "$as_dir" && as_dir=.
  5959. for ac_exec_ext in '' $ac_executable_extensions; do
  5960. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5961. ac_cv_prog_ac_ct_STRIP="strip"
  5962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5963. break 2
  5964. fi
  5965. done
  5966. done
  5967. IFS=$as_save_IFS
  5968. fi
  5969. fi
  5970. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5971. if test -n "$ac_ct_STRIP"; then
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5973. $as_echo "$ac_ct_STRIP" >&6; }
  5974. else
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5976. $as_echo "no" >&6; }
  5977. fi
  5978. if test "x$ac_ct_STRIP" = x; then
  5979. STRIP=":"
  5980. else
  5981. case $cross_compiling:$ac_tool_warned in
  5982. yes:)
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5984. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5985. ac_tool_warned=yes ;;
  5986. esac
  5987. STRIP=$ac_ct_STRIP
  5988. fi
  5989. else
  5990. STRIP="$ac_cv_prog_STRIP"
  5991. fi
  5992. test -z "$STRIP" && STRIP=:
  5993. if test -n "$ac_tool_prefix"; then
  5994. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5995. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5997. $as_echo_n "checking for $ac_word... " >&6; }
  5998. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5999. $as_echo_n "(cached) " >&6
  6000. else
  6001. if test -n "$RANLIB"; then
  6002. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6003. else
  6004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6005. for as_dir in $PATH
  6006. do
  6007. IFS=$as_save_IFS
  6008. test -z "$as_dir" && as_dir=.
  6009. for ac_exec_ext in '' $ac_executable_extensions; do
  6010. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6011. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6013. break 2
  6014. fi
  6015. done
  6016. done
  6017. IFS=$as_save_IFS
  6018. fi
  6019. fi
  6020. RANLIB=$ac_cv_prog_RANLIB
  6021. if test -n "$RANLIB"; then
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6023. $as_echo "$RANLIB" >&6; }
  6024. else
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6026. $as_echo "no" >&6; }
  6027. fi
  6028. fi
  6029. if test -z "$ac_cv_prog_RANLIB"; then
  6030. ac_ct_RANLIB=$RANLIB
  6031. # Extract the first word of "ranlib", so it can be a program name with args.
  6032. set dummy ranlib; ac_word=$2
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6034. $as_echo_n "checking for $ac_word... " >&6; }
  6035. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. if test -n "$ac_ct_RANLIB"; then
  6039. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6040. else
  6041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6042. for as_dir in $PATH
  6043. do
  6044. IFS=$as_save_IFS
  6045. test -z "$as_dir" && as_dir=.
  6046. for ac_exec_ext in '' $ac_executable_extensions; do
  6047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6048. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6050. break 2
  6051. fi
  6052. done
  6053. done
  6054. IFS=$as_save_IFS
  6055. fi
  6056. fi
  6057. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6058. if test -n "$ac_ct_RANLIB"; then
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6060. $as_echo "$ac_ct_RANLIB" >&6; }
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6063. $as_echo "no" >&6; }
  6064. fi
  6065. if test "x$ac_ct_RANLIB" = x; then
  6066. RANLIB=":"
  6067. else
  6068. case $cross_compiling:$ac_tool_warned in
  6069. yes:)
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6071. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6072. ac_tool_warned=yes ;;
  6073. esac
  6074. RANLIB=$ac_ct_RANLIB
  6075. fi
  6076. else
  6077. RANLIB="$ac_cv_prog_RANLIB"
  6078. fi
  6079. test -z "$RANLIB" && RANLIB=:
  6080. # Determine commands to create old-style static archives.
  6081. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6082. old_postinstall_cmds='chmod 644 $oldlib'
  6083. old_postuninstall_cmds=
  6084. if test -n "$RANLIB"; then
  6085. case $host_os in
  6086. openbsd*)
  6087. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6088. ;;
  6089. *)
  6090. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6091. ;;
  6092. esac
  6093. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6094. fi
  6095. case $host_os in
  6096. darwin*)
  6097. lock_old_archive_extraction=yes ;;
  6098. *)
  6099. lock_old_archive_extraction=no ;;
  6100. esac
  6101. # If no C compiler was specified, use CC.
  6102. LTCC=${LTCC-"$CC"}
  6103. # If no C compiler flags were specified, use CFLAGS.
  6104. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6105. # Allow CC to be a program name with arguments.
  6106. compiler=$CC
  6107. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6109. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6110. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  6111. $as_echo_n "(cached) " >&6
  6112. else
  6113. # These are sane defaults that work on at least a few old systems.
  6114. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6115. # Character class describing NM global symbol codes.
  6116. symcode='[BCDEGRST]'
  6117. # Regexp to match symbols that can be accessed directly from C.
  6118. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6119. # Define system-specific variables.
  6120. case $host_os in
  6121. aix*)
  6122. symcode='[BCDT]'
  6123. ;;
  6124. cygwin* | mingw* | pw32* | cegcc*)
  6125. symcode='[ABCDGISTW]'
  6126. ;;
  6127. hpux*)
  6128. if test "$host_cpu" = ia64; then
  6129. symcode='[ABCDEGRST]'
  6130. fi
  6131. ;;
  6132. irix* | nonstopux*)
  6133. symcode='[BCDEGRST]'
  6134. ;;
  6135. osf*)
  6136. symcode='[BCDEGQRST]'
  6137. ;;
  6138. solaris*)
  6139. symcode='[BDRT]'
  6140. ;;
  6141. sco3.2v5*)
  6142. symcode='[DT]'
  6143. ;;
  6144. sysv4.2uw2*)
  6145. symcode='[DT]'
  6146. ;;
  6147. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6148. symcode='[ABDT]'
  6149. ;;
  6150. sysv4)
  6151. symcode='[DFNSTU]'
  6152. ;;
  6153. esac
  6154. # If we're using GNU nm, then use its standard symbol codes.
  6155. case `$NM -V 2>&1` in
  6156. *GNU* | *'with BFD'*)
  6157. symcode='[ABCDGIRSTW]' ;;
  6158. esac
  6159. # Transform an extracted symbol line into a proper C declaration.
  6160. # Some systems (esp. on ia64) link data and code symbols differently,
  6161. # so use this general approach.
  6162. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6163. # Transform an extracted symbol line into symbol name and symbol address
  6164. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6165. 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'"
  6166. # Handle CRLF in mingw tool chain
  6167. opt_cr=
  6168. case $build_os in
  6169. mingw*)
  6170. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6171. ;;
  6172. esac
  6173. # Try without a prefix underscore, then with it.
  6174. for ac_symprfx in "" "_"; do
  6175. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6176. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6177. # Write the raw and C identifiers.
  6178. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6179. # Fake it for dumpbin and say T for any non-static function
  6180. # and D for any global variable.
  6181. # Also find C++ and __fastcall symbols from MSVC++,
  6182. # which start with @ or ?.
  6183. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6184. " {last_section=section; section=\$ 3};"\
  6185. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6186. " \$ 0!~/External *\|/{next};"\
  6187. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6188. " {if(hide[section]) next};"\
  6189. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6190. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6191. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6192. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6193. " ' prfx=^$ac_symprfx"
  6194. else
  6195. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6196. fi
  6197. # Check to see that the pipe works correctly.
  6198. pipe_works=no
  6199. rm -f conftest*
  6200. cat > conftest.$ac_ext <<_LT_EOF
  6201. #ifdef __cplusplus
  6202. extern "C" {
  6203. #endif
  6204. char nm_test_var;
  6205. void nm_test_func(void);
  6206. void nm_test_func(void){}
  6207. #ifdef __cplusplus
  6208. }
  6209. #endif
  6210. int main(){nm_test_var='a';nm_test_func();return(0);}
  6211. _LT_EOF
  6212. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6213. (eval $ac_compile) 2>&5
  6214. ac_status=$?
  6215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6216. test $ac_status = 0; }; then
  6217. # Now try to grab the symbols.
  6218. nlist=conftest.nm
  6219. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6220. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6221. ac_status=$?
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6223. test $ac_status = 0; } && test -s "$nlist"; then
  6224. # Try sorting and uniquifying the output.
  6225. if sort "$nlist" | uniq > "$nlist"T; then
  6226. mv -f "$nlist"T "$nlist"
  6227. else
  6228. rm -f "$nlist"T
  6229. fi
  6230. # Make sure that we snagged all the symbols we need.
  6231. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6232. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6233. cat <<_LT_EOF > conftest.$ac_ext
  6234. #ifdef __cplusplus
  6235. extern "C" {
  6236. #endif
  6237. _LT_EOF
  6238. # Now generate the symbol file.
  6239. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6240. cat <<_LT_EOF >> conftest.$ac_ext
  6241. /* The mapping between symbol names and symbols. */
  6242. const struct {
  6243. const char *name;
  6244. void *address;
  6245. }
  6246. lt__PROGRAM__LTX_preloaded_symbols[] =
  6247. {
  6248. { "@PROGRAM@", (void *) 0 },
  6249. _LT_EOF
  6250. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6251. cat <<\_LT_EOF >> conftest.$ac_ext
  6252. {0, (void *) 0}
  6253. };
  6254. /* This works around a problem in FreeBSD linker */
  6255. #ifdef FREEBSD_WORKAROUND
  6256. static const void *lt_preloaded_setup() {
  6257. return lt__PROGRAM__LTX_preloaded_symbols;
  6258. }
  6259. #endif
  6260. #ifdef __cplusplus
  6261. }
  6262. #endif
  6263. _LT_EOF
  6264. # Now try linking the two files.
  6265. mv conftest.$ac_objext conftstm.$ac_objext
  6266. lt_save_LIBS="$LIBS"
  6267. lt_save_CFLAGS="$CFLAGS"
  6268. LIBS="conftstm.$ac_objext"
  6269. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6270. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6271. (eval $ac_link) 2>&5
  6272. ac_status=$?
  6273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6274. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6275. pipe_works=yes
  6276. fi
  6277. LIBS="$lt_save_LIBS"
  6278. CFLAGS="$lt_save_CFLAGS"
  6279. else
  6280. echo "cannot find nm_test_func in $nlist" >&5
  6281. fi
  6282. else
  6283. echo "cannot find nm_test_var in $nlist" >&5
  6284. fi
  6285. else
  6286. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6287. fi
  6288. else
  6289. echo "$progname: failed program was:" >&5
  6290. cat conftest.$ac_ext >&5
  6291. fi
  6292. rm -rf conftest* conftst*
  6293. # Do not use the global_symbol_pipe unless it works.
  6294. if test "$pipe_works" = yes; then
  6295. break
  6296. else
  6297. lt_cv_sys_global_symbol_pipe=
  6298. fi
  6299. done
  6300. fi
  6301. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6302. lt_cv_sys_global_symbol_to_cdecl=
  6303. fi
  6304. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6306. $as_echo "failed" >&6; }
  6307. else
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6309. $as_echo "ok" >&6; }
  6310. fi
  6311. # Check whether --enable-libtool-lock was given.
  6312. if test "${enable_libtool_lock+set}" = set; then :
  6313. enableval=$enable_libtool_lock;
  6314. fi
  6315. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6316. # Some flags need to be propagated to the compiler or linker for good
  6317. # libtool support.
  6318. case $host in
  6319. ia64-*-hpux*)
  6320. # Find out which ABI we are using.
  6321. echo 'int i;' > conftest.$ac_ext
  6322. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6323. (eval $ac_compile) 2>&5
  6324. ac_status=$?
  6325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6326. test $ac_status = 0; }; then
  6327. case `/usr/bin/file conftest.$ac_objext` in
  6328. *ELF-32*)
  6329. HPUX_IA64_MODE="32"
  6330. ;;
  6331. *ELF-64*)
  6332. HPUX_IA64_MODE="64"
  6333. ;;
  6334. esac
  6335. fi
  6336. rm -rf conftest*
  6337. ;;
  6338. *-*-irix6*)
  6339. # Find out which ABI we are using.
  6340. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6341. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6342. (eval $ac_compile) 2>&5
  6343. ac_status=$?
  6344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6345. test $ac_status = 0; }; then
  6346. if test "$lt_cv_prog_gnu_ld" = yes; then
  6347. case `/usr/bin/file conftest.$ac_objext` in
  6348. *32-bit*)
  6349. LD="${LD-ld} -melf32bsmip"
  6350. ;;
  6351. *N32*)
  6352. LD="${LD-ld} -melf32bmipn32"
  6353. ;;
  6354. *64-bit*)
  6355. LD="${LD-ld} -melf64bmip"
  6356. ;;
  6357. esac
  6358. else
  6359. case `/usr/bin/file conftest.$ac_objext` in
  6360. *32-bit*)
  6361. LD="${LD-ld} -32"
  6362. ;;
  6363. *N32*)
  6364. LD="${LD-ld} -n32"
  6365. ;;
  6366. *64-bit*)
  6367. LD="${LD-ld} -64"
  6368. ;;
  6369. esac
  6370. fi
  6371. fi
  6372. rm -rf conftest*
  6373. ;;
  6374. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6375. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6376. # Find out which ABI we are using.
  6377. echo 'int i;' > conftest.$ac_ext
  6378. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6379. (eval $ac_compile) 2>&5
  6380. ac_status=$?
  6381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6382. test $ac_status = 0; }; then
  6383. case `/usr/bin/file conftest.o` in
  6384. *32-bit*)
  6385. case $host in
  6386. x86_64-*kfreebsd*-gnu)
  6387. LD="${LD-ld} -m elf_i386_fbsd"
  6388. ;;
  6389. x86_64-*linux*)
  6390. case `/usr/bin/file conftest.o` in
  6391. *x86-64*)
  6392. LD="${LD-ld} -m elf32_x86_64"
  6393. ;;
  6394. *)
  6395. LD="${LD-ld} -m elf_i386"
  6396. ;;
  6397. esac
  6398. ;;
  6399. powerpc64le-*linux*)
  6400. LD="${LD-ld} -m elf32lppclinux"
  6401. ;;
  6402. powerpc64-*linux*)
  6403. LD="${LD-ld} -m elf32ppclinux"
  6404. ;;
  6405. s390x-*linux*)
  6406. LD="${LD-ld} -m elf_s390"
  6407. ;;
  6408. sparc64-*linux*)
  6409. LD="${LD-ld} -m elf32_sparc"
  6410. ;;
  6411. esac
  6412. ;;
  6413. *64-bit*)
  6414. case $host in
  6415. x86_64-*kfreebsd*-gnu)
  6416. LD="${LD-ld} -m elf_x86_64_fbsd"
  6417. ;;
  6418. x86_64-*linux*)
  6419. LD="${LD-ld} -m elf_x86_64"
  6420. ;;
  6421. powerpcle-*linux*)
  6422. LD="${LD-ld} -m elf64lppc"
  6423. ;;
  6424. powerpc-*linux*)
  6425. LD="${LD-ld} -m elf64ppc"
  6426. ;;
  6427. s390*-*linux*|s390*-*tpf*)
  6428. LD="${LD-ld} -m elf64_s390"
  6429. ;;
  6430. sparc*-*linux*)
  6431. LD="${LD-ld} -m elf64_sparc"
  6432. ;;
  6433. esac
  6434. ;;
  6435. esac
  6436. fi
  6437. rm -rf conftest*
  6438. ;;
  6439. *-*-sco3.2v5*)
  6440. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6441. SAVE_CFLAGS="$CFLAGS"
  6442. CFLAGS="$CFLAGS -belf"
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6444. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6445. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6446. $as_echo_n "(cached) " >&6
  6447. else
  6448. ac_ext=c
  6449. ac_cpp='$CPP $CPPFLAGS'
  6450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6454. /* end confdefs.h. */
  6455. int
  6456. main ()
  6457. {
  6458. ;
  6459. return 0;
  6460. }
  6461. _ACEOF
  6462. if ac_fn_c_try_link "$LINENO"; then :
  6463. lt_cv_cc_needs_belf=yes
  6464. else
  6465. lt_cv_cc_needs_belf=no
  6466. fi
  6467. rm -f core conftest.err conftest.$ac_objext \
  6468. conftest$ac_exeext conftest.$ac_ext
  6469. ac_ext=c
  6470. ac_cpp='$CPP $CPPFLAGS'
  6471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6474. fi
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6476. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6477. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6478. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6479. CFLAGS="$SAVE_CFLAGS"
  6480. fi
  6481. ;;
  6482. sparc*-*solaris*)
  6483. # Find out which ABI we are using.
  6484. echo 'int i;' > conftest.$ac_ext
  6485. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6486. (eval $ac_compile) 2>&5
  6487. ac_status=$?
  6488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6489. test $ac_status = 0; }; then
  6490. case `/usr/bin/file conftest.o` in
  6491. *64-bit*)
  6492. case $lt_cv_prog_gnu_ld in
  6493. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6494. *)
  6495. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6496. LD="${LD-ld} -64"
  6497. fi
  6498. ;;
  6499. esac
  6500. ;;
  6501. esac
  6502. fi
  6503. rm -rf conftest*
  6504. ;;
  6505. esac
  6506. need_locks="$enable_libtool_lock"
  6507. case $host_os in
  6508. rhapsody* | darwin*)
  6509. if test -n "$ac_tool_prefix"; then
  6510. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6511. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6513. $as_echo_n "checking for $ac_word... " >&6; }
  6514. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. if test -n "$DSYMUTIL"; then
  6518. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6519. else
  6520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6521. for as_dir in $PATH
  6522. do
  6523. IFS=$as_save_IFS
  6524. test -z "$as_dir" && as_dir=.
  6525. for ac_exec_ext in '' $ac_executable_extensions; do
  6526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6527. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6529. break 2
  6530. fi
  6531. done
  6532. done
  6533. IFS=$as_save_IFS
  6534. fi
  6535. fi
  6536. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6537. if test -n "$DSYMUTIL"; then
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6539. $as_echo "$DSYMUTIL" >&6; }
  6540. else
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6542. $as_echo "no" >&6; }
  6543. fi
  6544. fi
  6545. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6546. ac_ct_DSYMUTIL=$DSYMUTIL
  6547. # Extract the first word of "dsymutil", so it can be a program name with args.
  6548. set dummy dsymutil; ac_word=$2
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6550. $as_echo_n "checking for $ac_word... " >&6; }
  6551. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. if test -n "$ac_ct_DSYMUTIL"; then
  6555. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6556. else
  6557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6558. for as_dir in $PATH
  6559. do
  6560. IFS=$as_save_IFS
  6561. test -z "$as_dir" && as_dir=.
  6562. for ac_exec_ext in '' $ac_executable_extensions; do
  6563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6564. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6566. break 2
  6567. fi
  6568. done
  6569. done
  6570. IFS=$as_save_IFS
  6571. fi
  6572. fi
  6573. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6574. if test -n "$ac_ct_DSYMUTIL"; then
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6576. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6577. else
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6579. $as_echo "no" >&6; }
  6580. fi
  6581. if test "x$ac_ct_DSYMUTIL" = x; then
  6582. DSYMUTIL=":"
  6583. else
  6584. case $cross_compiling:$ac_tool_warned in
  6585. yes:)
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6588. ac_tool_warned=yes ;;
  6589. esac
  6590. DSYMUTIL=$ac_ct_DSYMUTIL
  6591. fi
  6592. else
  6593. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6594. fi
  6595. if test -n "$ac_tool_prefix"; then
  6596. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6597. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6599. $as_echo_n "checking for $ac_word... " >&6; }
  6600. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6601. $as_echo_n "(cached) " >&6
  6602. else
  6603. if test -n "$NMEDIT"; then
  6604. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6605. else
  6606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6607. for as_dir in $PATH
  6608. do
  6609. IFS=$as_save_IFS
  6610. test -z "$as_dir" && as_dir=.
  6611. for ac_exec_ext in '' $ac_executable_extensions; do
  6612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6613. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6615. break 2
  6616. fi
  6617. done
  6618. done
  6619. IFS=$as_save_IFS
  6620. fi
  6621. fi
  6622. NMEDIT=$ac_cv_prog_NMEDIT
  6623. if test -n "$NMEDIT"; then
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6625. $as_echo "$NMEDIT" >&6; }
  6626. else
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. $as_echo "no" >&6; }
  6629. fi
  6630. fi
  6631. if test -z "$ac_cv_prog_NMEDIT"; then
  6632. ac_ct_NMEDIT=$NMEDIT
  6633. # Extract the first word of "nmedit", so it can be a program name with args.
  6634. set dummy nmedit; ac_word=$2
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6636. $as_echo_n "checking for $ac_word... " >&6; }
  6637. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. if test -n "$ac_ct_NMEDIT"; then
  6641. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6642. else
  6643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6644. for as_dir in $PATH
  6645. do
  6646. IFS=$as_save_IFS
  6647. test -z "$as_dir" && as_dir=.
  6648. for ac_exec_ext in '' $ac_executable_extensions; do
  6649. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6650. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6652. break 2
  6653. fi
  6654. done
  6655. done
  6656. IFS=$as_save_IFS
  6657. fi
  6658. fi
  6659. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6660. if test -n "$ac_ct_NMEDIT"; then
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6662. $as_echo "$ac_ct_NMEDIT" >&6; }
  6663. else
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6665. $as_echo "no" >&6; }
  6666. fi
  6667. if test "x$ac_ct_NMEDIT" = x; then
  6668. NMEDIT=":"
  6669. else
  6670. case $cross_compiling:$ac_tool_warned in
  6671. yes:)
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6674. ac_tool_warned=yes ;;
  6675. esac
  6676. NMEDIT=$ac_ct_NMEDIT
  6677. fi
  6678. else
  6679. NMEDIT="$ac_cv_prog_NMEDIT"
  6680. fi
  6681. if test -n "$ac_tool_prefix"; then
  6682. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6683. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6685. $as_echo_n "checking for $ac_word... " >&6; }
  6686. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. if test -n "$LIPO"; then
  6690. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6691. else
  6692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6693. for as_dir in $PATH
  6694. do
  6695. IFS=$as_save_IFS
  6696. test -z "$as_dir" && as_dir=.
  6697. for ac_exec_ext in '' $ac_executable_extensions; do
  6698. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6699. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6701. break 2
  6702. fi
  6703. done
  6704. done
  6705. IFS=$as_save_IFS
  6706. fi
  6707. fi
  6708. LIPO=$ac_cv_prog_LIPO
  6709. if test -n "$LIPO"; then
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6711. $as_echo "$LIPO" >&6; }
  6712. else
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6714. $as_echo "no" >&6; }
  6715. fi
  6716. fi
  6717. if test -z "$ac_cv_prog_LIPO"; then
  6718. ac_ct_LIPO=$LIPO
  6719. # Extract the first word of "lipo", so it can be a program name with args.
  6720. set dummy lipo; ac_word=$2
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6722. $as_echo_n "checking for $ac_word... " >&6; }
  6723. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. if test -n "$ac_ct_LIPO"; then
  6727. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6728. else
  6729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6730. for as_dir in $PATH
  6731. do
  6732. IFS=$as_save_IFS
  6733. test -z "$as_dir" && as_dir=.
  6734. for ac_exec_ext in '' $ac_executable_extensions; do
  6735. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6736. ac_cv_prog_ac_ct_LIPO="lipo"
  6737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6738. break 2
  6739. fi
  6740. done
  6741. done
  6742. IFS=$as_save_IFS
  6743. fi
  6744. fi
  6745. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6746. if test -n "$ac_ct_LIPO"; then
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6748. $as_echo "$ac_ct_LIPO" >&6; }
  6749. else
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6751. $as_echo "no" >&6; }
  6752. fi
  6753. if test "x$ac_ct_LIPO" = x; then
  6754. LIPO=":"
  6755. else
  6756. case $cross_compiling:$ac_tool_warned in
  6757. yes:)
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6760. ac_tool_warned=yes ;;
  6761. esac
  6762. LIPO=$ac_ct_LIPO
  6763. fi
  6764. else
  6765. LIPO="$ac_cv_prog_LIPO"
  6766. fi
  6767. if test -n "$ac_tool_prefix"; then
  6768. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6769. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6771. $as_echo_n "checking for $ac_word... " >&6; }
  6772. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. if test -n "$OTOOL"; then
  6776. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6777. else
  6778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6779. for as_dir in $PATH
  6780. do
  6781. IFS=$as_save_IFS
  6782. test -z "$as_dir" && as_dir=.
  6783. for ac_exec_ext in '' $ac_executable_extensions; do
  6784. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6785. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6787. break 2
  6788. fi
  6789. done
  6790. done
  6791. IFS=$as_save_IFS
  6792. fi
  6793. fi
  6794. OTOOL=$ac_cv_prog_OTOOL
  6795. if test -n "$OTOOL"; then
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6797. $as_echo "$OTOOL" >&6; }
  6798. else
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. $as_echo "no" >&6; }
  6801. fi
  6802. fi
  6803. if test -z "$ac_cv_prog_OTOOL"; then
  6804. ac_ct_OTOOL=$OTOOL
  6805. # Extract the first word of "otool", so it can be a program name with args.
  6806. set dummy otool; ac_word=$2
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6808. $as_echo_n "checking for $ac_word... " >&6; }
  6809. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6810. $as_echo_n "(cached) " >&6
  6811. else
  6812. if test -n "$ac_ct_OTOOL"; then
  6813. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6814. else
  6815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6816. for as_dir in $PATH
  6817. do
  6818. IFS=$as_save_IFS
  6819. test -z "$as_dir" && as_dir=.
  6820. for ac_exec_ext in '' $ac_executable_extensions; do
  6821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6822. ac_cv_prog_ac_ct_OTOOL="otool"
  6823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6824. break 2
  6825. fi
  6826. done
  6827. done
  6828. IFS=$as_save_IFS
  6829. fi
  6830. fi
  6831. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6832. if test -n "$ac_ct_OTOOL"; then
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6834. $as_echo "$ac_ct_OTOOL" >&6; }
  6835. else
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6837. $as_echo "no" >&6; }
  6838. fi
  6839. if test "x$ac_ct_OTOOL" = x; then
  6840. OTOOL=":"
  6841. else
  6842. case $cross_compiling:$ac_tool_warned in
  6843. yes:)
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6845. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6846. ac_tool_warned=yes ;;
  6847. esac
  6848. OTOOL=$ac_ct_OTOOL
  6849. fi
  6850. else
  6851. OTOOL="$ac_cv_prog_OTOOL"
  6852. fi
  6853. if test -n "$ac_tool_prefix"; then
  6854. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6855. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6857. $as_echo_n "checking for $ac_word... " >&6; }
  6858. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6859. $as_echo_n "(cached) " >&6
  6860. else
  6861. if test -n "$OTOOL64"; then
  6862. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6863. else
  6864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6865. for as_dir in $PATH
  6866. do
  6867. IFS=$as_save_IFS
  6868. test -z "$as_dir" && as_dir=.
  6869. for ac_exec_ext in '' $ac_executable_extensions; do
  6870. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6871. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6873. break 2
  6874. fi
  6875. done
  6876. done
  6877. IFS=$as_save_IFS
  6878. fi
  6879. fi
  6880. OTOOL64=$ac_cv_prog_OTOOL64
  6881. if test -n "$OTOOL64"; then
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6883. $as_echo "$OTOOL64" >&6; }
  6884. else
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6886. $as_echo "no" >&6; }
  6887. fi
  6888. fi
  6889. if test -z "$ac_cv_prog_OTOOL64"; then
  6890. ac_ct_OTOOL64=$OTOOL64
  6891. # Extract the first word of "otool64", so it can be a program name with args.
  6892. set dummy otool64; ac_word=$2
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6894. $as_echo_n "checking for $ac_word... " >&6; }
  6895. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6896. $as_echo_n "(cached) " >&6
  6897. else
  6898. if test -n "$ac_ct_OTOOL64"; then
  6899. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6900. else
  6901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6902. for as_dir in $PATH
  6903. do
  6904. IFS=$as_save_IFS
  6905. test -z "$as_dir" && as_dir=.
  6906. for ac_exec_ext in '' $ac_executable_extensions; do
  6907. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6908. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6910. break 2
  6911. fi
  6912. done
  6913. done
  6914. IFS=$as_save_IFS
  6915. fi
  6916. fi
  6917. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6918. if test -n "$ac_ct_OTOOL64"; then
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6920. $as_echo "$ac_ct_OTOOL64" >&6; }
  6921. else
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6923. $as_echo "no" >&6; }
  6924. fi
  6925. if test "x$ac_ct_OTOOL64" = x; then
  6926. OTOOL64=":"
  6927. else
  6928. case $cross_compiling:$ac_tool_warned in
  6929. yes:)
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6931. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6932. ac_tool_warned=yes ;;
  6933. esac
  6934. OTOOL64=$ac_ct_OTOOL64
  6935. fi
  6936. else
  6937. OTOOL64="$ac_cv_prog_OTOOL64"
  6938. fi
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6940. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6941. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. lt_cv_apple_cc_single_mod=no
  6945. if test -z "${LT_MULTI_MODULE}"; then
  6946. # By default we will add the -single_module flag. You can override
  6947. # by either setting the environment variable LT_MULTI_MODULE
  6948. # non-empty at configure time, or by adding -multi_module to the
  6949. # link flags.
  6950. rm -rf libconftest.dylib*
  6951. echo "int foo(void){return 1;}" > conftest.c
  6952. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6953. -dynamiclib -Wl,-single_module conftest.c" >&5
  6954. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6955. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6956. _lt_result=$?
  6957. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6958. lt_cv_apple_cc_single_mod=yes
  6959. else
  6960. cat conftest.err >&5
  6961. fi
  6962. rm -rf libconftest.dylib*
  6963. rm -f conftest.*
  6964. fi
  6965. fi
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6967. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6969. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6970. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6971. $as_echo_n "(cached) " >&6
  6972. else
  6973. lt_cv_ld_exported_symbols_list=no
  6974. save_LDFLAGS=$LDFLAGS
  6975. echo "_main" > conftest.sym
  6976. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6978. /* end confdefs.h. */
  6979. int
  6980. main ()
  6981. {
  6982. ;
  6983. return 0;
  6984. }
  6985. _ACEOF
  6986. if ac_fn_c_try_link "$LINENO"; then :
  6987. lt_cv_ld_exported_symbols_list=yes
  6988. else
  6989. lt_cv_ld_exported_symbols_list=no
  6990. fi
  6991. rm -f core conftest.err conftest.$ac_objext \
  6992. conftest$ac_exeext conftest.$ac_ext
  6993. LDFLAGS="$save_LDFLAGS"
  6994. fi
  6995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6996. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6998. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6999. if test "${lt_cv_ld_force_load+set}" = set; then :
  7000. $as_echo_n "(cached) " >&6
  7001. else
  7002. lt_cv_ld_force_load=no
  7003. cat > conftest.c << _LT_EOF
  7004. int forced_loaded() { return 2;}
  7005. _LT_EOF
  7006. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7007. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7008. echo "$AR cru libconftest.a conftest.o" >&5
  7009. $AR cru libconftest.a conftest.o 2>&5
  7010. cat > conftest.c << _LT_EOF
  7011. int main() { return 0;}
  7012. _LT_EOF
  7013. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7014. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7015. _lt_result=$?
  7016. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7017. lt_cv_ld_force_load=yes
  7018. else
  7019. cat conftest.err >&5
  7020. fi
  7021. rm -f conftest.err libconftest.a conftest conftest.c
  7022. rm -rf conftest.dSYM
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7025. $as_echo "$lt_cv_ld_force_load" >&6; }
  7026. case $host_os in
  7027. rhapsody* | darwin1.[012])
  7028. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7029. darwin1.*)
  7030. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7031. darwin*) # darwin 5.x on
  7032. # if running on 10.5 or later, the deployment target defaults
  7033. # to the OS version, if on x86, and 10.4, the deployment
  7034. # target defaults to 10.4. Don't you love it?
  7035. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7036. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7037. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7038. 10.[012][,.]*)
  7039. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7040. 10.*)
  7041. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7042. esac
  7043. ;;
  7044. esac
  7045. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7046. _lt_dar_single_mod='$single_module'
  7047. fi
  7048. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7049. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7050. else
  7051. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7052. fi
  7053. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7054. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7055. else
  7056. _lt_dsymutil=
  7057. fi
  7058. ;;
  7059. esac
  7060. for ac_header in dlfcn.h
  7061. do :
  7062. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7063. "
  7064. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7065. cat >>confdefs.h <<_ACEOF
  7066. #define HAVE_DLFCN_H 1
  7067. _ACEOF
  7068. fi
  7069. done
  7070. # Set options
  7071. enable_dlopen=yes
  7072. enable_win32_dll=no
  7073. # Check whether --enable-static was given.
  7074. if test "${enable_static+set}" = set; then :
  7075. enableval=$enable_static; p=${PACKAGE-default}
  7076. case $enableval in
  7077. yes) enable_static=yes ;;
  7078. no) enable_static=no ;;
  7079. *)
  7080. enable_static=no
  7081. # Look at the argument we got. We use all the common list separators.
  7082. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7083. for pkg in $enableval; do
  7084. IFS="$lt_save_ifs"
  7085. if test "X$pkg" = "X$p"; then
  7086. enable_static=yes
  7087. fi
  7088. done
  7089. IFS="$lt_save_ifs"
  7090. ;;
  7091. esac
  7092. else
  7093. enable_static=yes
  7094. fi
  7095. # Check whether --with-pic was given.
  7096. if test "${with_pic+set}" = set; then :
  7097. withval=$with_pic; pic_mode="$withval"
  7098. else
  7099. pic_mode=default
  7100. fi
  7101. test -z "$pic_mode" && pic_mode=default
  7102. # Check whether --enable-fast-install was given.
  7103. if test "${enable_fast_install+set}" = set; then :
  7104. enableval=$enable_fast_install; p=${PACKAGE-default}
  7105. case $enableval in
  7106. yes) enable_fast_install=yes ;;
  7107. no) enable_fast_install=no ;;
  7108. *)
  7109. enable_fast_install=no
  7110. # Look at the argument we got. We use all the common list separators.
  7111. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7112. for pkg in $enableval; do
  7113. IFS="$lt_save_ifs"
  7114. if test "X$pkg" = "X$p"; then
  7115. enable_fast_install=yes
  7116. fi
  7117. done
  7118. IFS="$lt_save_ifs"
  7119. ;;
  7120. esac
  7121. else
  7122. enable_fast_install=yes
  7123. fi
  7124. # This can be used to rebuild libtool when needed
  7125. LIBTOOL_DEPS="$ltmain"
  7126. # Always use our own libtool.
  7127. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7128. test -z "$LN_S" && LN_S="ln -s"
  7129. if test -n "${ZSH_VERSION+set}" ; then
  7130. setopt NO_GLOB_SUBST
  7131. fi
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7133. $as_echo_n "checking for objdir... " >&6; }
  7134. if test "${lt_cv_objdir+set}" = set; then :
  7135. $as_echo_n "(cached) " >&6
  7136. else
  7137. rm -f .libs 2>/dev/null
  7138. mkdir .libs 2>/dev/null
  7139. if test -d .libs; then
  7140. lt_cv_objdir=.libs
  7141. else
  7142. # MS-DOS does not allow filenames that begin with a dot.
  7143. lt_cv_objdir=_libs
  7144. fi
  7145. rmdir .libs 2>/dev/null
  7146. fi
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7148. $as_echo "$lt_cv_objdir" >&6; }
  7149. objdir=$lt_cv_objdir
  7150. cat >>confdefs.h <<_ACEOF
  7151. #define LT_OBJDIR "$lt_cv_objdir/"
  7152. _ACEOF
  7153. case $host_os in
  7154. aix3*)
  7155. # AIX sometimes has problems with the GCC collect2 program. For some
  7156. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7157. # vanish in a puff of smoke.
  7158. if test "X${COLLECT_NAMES+set}" != Xset; then
  7159. COLLECT_NAMES=
  7160. export COLLECT_NAMES
  7161. fi
  7162. ;;
  7163. esac
  7164. # Global variables:
  7165. ofile=libtool
  7166. can_build_shared=yes
  7167. # All known linkers require a `.a' archive for static linking (except MSVC,
  7168. # which needs '.lib').
  7169. libext=a
  7170. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7171. old_CC="$CC"
  7172. old_CFLAGS="$CFLAGS"
  7173. # Set sane defaults for various variables
  7174. test -z "$CC" && CC=cc
  7175. test -z "$LTCC" && LTCC=$CC
  7176. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7177. test -z "$LD" && LD=ld
  7178. test -z "$ac_objext" && ac_objext=o
  7179. for cc_temp in $compiler""; do
  7180. case $cc_temp in
  7181. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7182. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7183. \-*) ;;
  7184. *) break;;
  7185. esac
  7186. done
  7187. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7188. # Only perform the check for file, if the check method requires it
  7189. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7190. case $deplibs_check_method in
  7191. file_magic*)
  7192. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7194. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7195. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7196. $as_echo_n "(cached) " >&6
  7197. else
  7198. case $MAGIC_CMD in
  7199. [\\/*] | ?:[\\/]*)
  7200. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7201. ;;
  7202. *)
  7203. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7204. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7205. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7206. for ac_dir in $ac_dummy; do
  7207. IFS="$lt_save_ifs"
  7208. test -z "$ac_dir" && ac_dir=.
  7209. if test -f $ac_dir/${ac_tool_prefix}file; then
  7210. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7211. if test -n "$file_magic_test_file"; then
  7212. case $deplibs_check_method in
  7213. "file_magic "*)
  7214. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7215. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7216. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7217. $EGREP "$file_magic_regex" > /dev/null; then
  7218. :
  7219. else
  7220. cat <<_LT_EOF 1>&2
  7221. *** Warning: the command libtool uses to detect shared libraries,
  7222. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7223. *** The result is that libtool may fail to recognize shared libraries
  7224. *** as such. This will affect the creation of libtool libraries that
  7225. *** depend on shared libraries, but programs linked with such libtool
  7226. *** libraries will work regardless of this problem. Nevertheless, you
  7227. *** may want to report the problem to your system manager and/or to
  7228. *** bug-libtool@gnu.org
  7229. _LT_EOF
  7230. fi ;;
  7231. esac
  7232. fi
  7233. break
  7234. fi
  7235. done
  7236. IFS="$lt_save_ifs"
  7237. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7238. ;;
  7239. esac
  7240. fi
  7241. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7242. if test -n "$MAGIC_CMD"; then
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7244. $as_echo "$MAGIC_CMD" >&6; }
  7245. else
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7247. $as_echo "no" >&6; }
  7248. fi
  7249. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7250. if test -n "$ac_tool_prefix"; then
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7252. $as_echo_n "checking for file... " >&6; }
  7253. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7254. $as_echo_n "(cached) " >&6
  7255. else
  7256. case $MAGIC_CMD in
  7257. [\\/*] | ?:[\\/]*)
  7258. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7259. ;;
  7260. *)
  7261. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7262. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7263. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7264. for ac_dir in $ac_dummy; do
  7265. IFS="$lt_save_ifs"
  7266. test -z "$ac_dir" && ac_dir=.
  7267. if test -f $ac_dir/file; then
  7268. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7269. if test -n "$file_magic_test_file"; then
  7270. case $deplibs_check_method in
  7271. "file_magic "*)
  7272. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7273. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7274. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7275. $EGREP "$file_magic_regex" > /dev/null; then
  7276. :
  7277. else
  7278. cat <<_LT_EOF 1>&2
  7279. *** Warning: the command libtool uses to detect shared libraries,
  7280. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7281. *** The result is that libtool may fail to recognize shared libraries
  7282. *** as such. This will affect the creation of libtool libraries that
  7283. *** depend on shared libraries, but programs linked with such libtool
  7284. *** libraries will work regardless of this problem. Nevertheless, you
  7285. *** may want to report the problem to your system manager and/or to
  7286. *** bug-libtool@gnu.org
  7287. _LT_EOF
  7288. fi ;;
  7289. esac
  7290. fi
  7291. break
  7292. fi
  7293. done
  7294. IFS="$lt_save_ifs"
  7295. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7296. ;;
  7297. esac
  7298. fi
  7299. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7300. if test -n "$MAGIC_CMD"; then
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7302. $as_echo "$MAGIC_CMD" >&6; }
  7303. else
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7305. $as_echo "no" >&6; }
  7306. fi
  7307. else
  7308. MAGIC_CMD=:
  7309. fi
  7310. fi
  7311. fi
  7312. ;;
  7313. esac
  7314. # Use C for the default configuration in the libtool script
  7315. lt_save_CC="$CC"
  7316. ac_ext=c
  7317. ac_cpp='$CPP $CPPFLAGS'
  7318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7321. # Source file extension for C test sources.
  7322. ac_ext=c
  7323. # Object file extension for compiled C test sources.
  7324. objext=o
  7325. objext=$objext
  7326. # Code to be used in simple compile tests
  7327. lt_simple_compile_test_code="int some_variable = 0;"
  7328. # Code to be used in simple link tests
  7329. lt_simple_link_test_code='int main(){return(0);}'
  7330. # If no C compiler was specified, use CC.
  7331. LTCC=${LTCC-"$CC"}
  7332. # If no C compiler flags were specified, use CFLAGS.
  7333. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7334. # Allow CC to be a program name with arguments.
  7335. compiler=$CC
  7336. # Save the default compiler, since it gets overwritten when the other
  7337. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7338. compiler_DEFAULT=$CC
  7339. # save warnings/boilerplate of simple test code
  7340. ac_outfile=conftest.$ac_objext
  7341. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7342. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7343. _lt_compiler_boilerplate=`cat conftest.err`
  7344. $RM conftest*
  7345. ac_outfile=conftest.$ac_objext
  7346. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7347. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7348. _lt_linker_boilerplate=`cat conftest.err`
  7349. $RM -r conftest*
  7350. ## CAVEAT EMPTOR:
  7351. ## There is no encapsulation within the following macros, do not change
  7352. ## the running order or otherwise move them around unless you know exactly
  7353. ## what you are doing...
  7354. if test -n "$compiler"; then
  7355. lt_prog_compiler_no_builtin_flag=
  7356. if test "$GCC" = yes; then
  7357. case $cc_basename in
  7358. nvcc*)
  7359. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7360. *)
  7361. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7362. esac
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7364. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7365. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7366. $as_echo_n "(cached) " >&6
  7367. else
  7368. lt_cv_prog_compiler_rtti_exceptions=no
  7369. ac_outfile=conftest.$ac_objext
  7370. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7371. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7372. # Insert the option either (1) after the last *FLAGS variable, or
  7373. # (2) before a word containing "conftest.", or (3) at the end.
  7374. # Note that $ac_compile itself does not contain backslashes and begins
  7375. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7376. # The option is referenced via a variable to avoid confusing sed.
  7377. lt_compile=`echo "$ac_compile" | $SED \
  7378. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7379. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7380. -e 's:$: $lt_compiler_flag:'`
  7381. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7382. (eval "$lt_compile" 2>conftest.err)
  7383. ac_status=$?
  7384. cat conftest.err >&5
  7385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7386. if (exit $ac_status) && test -s "$ac_outfile"; then
  7387. # The compiler can only warn and ignore the option if not recognized
  7388. # So say no if there are warnings other than the usual output.
  7389. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7390. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7391. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7392. lt_cv_prog_compiler_rtti_exceptions=yes
  7393. fi
  7394. fi
  7395. $RM conftest*
  7396. fi
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7398. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7399. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7400. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7401. else
  7402. :
  7403. fi
  7404. fi
  7405. lt_prog_compiler_wl=
  7406. lt_prog_compiler_pic=
  7407. lt_prog_compiler_static=
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7409. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7410. if test "$GCC" = yes; then
  7411. lt_prog_compiler_wl='-Wl,'
  7412. lt_prog_compiler_static='-static'
  7413. case $host_os in
  7414. aix*)
  7415. # All AIX code is PIC.
  7416. if test "$host_cpu" = ia64; then
  7417. # AIX 5 now supports IA64 processor
  7418. lt_prog_compiler_static='-Bstatic'
  7419. fi
  7420. lt_prog_compiler_pic='-fPIC'
  7421. ;;
  7422. amigaos*)
  7423. case $host_cpu in
  7424. powerpc)
  7425. # see comment about AmigaOS4 .so support
  7426. lt_prog_compiler_pic='-fPIC'
  7427. ;;
  7428. m68k)
  7429. # FIXME: we need at least 68020 code to build shared libraries, but
  7430. # adding the `-m68020' flag to GCC prevents building anything better,
  7431. # like `-m68040'.
  7432. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7433. ;;
  7434. esac
  7435. ;;
  7436. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7437. # PIC is the default for these OSes.
  7438. ;;
  7439. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7440. # This hack is so that the source file can tell whether it is being
  7441. # built for inclusion in a dll (and should export symbols for example).
  7442. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7443. # (--disable-auto-import) libraries
  7444. lt_prog_compiler_pic='-DDLL_EXPORT'
  7445. ;;
  7446. darwin* | rhapsody*)
  7447. # PIC is the default on this platform
  7448. # Common symbols not allowed in MH_DYLIB files
  7449. lt_prog_compiler_pic='-fno-common'
  7450. ;;
  7451. haiku*)
  7452. # PIC is the default for Haiku.
  7453. # The "-static" flag exists, but is broken.
  7454. lt_prog_compiler_static=
  7455. ;;
  7456. hpux*)
  7457. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7458. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7459. # sets the default TLS model and affects inlining.
  7460. case $host_cpu in
  7461. hppa*64*)
  7462. # +Z the default
  7463. ;;
  7464. *)
  7465. lt_prog_compiler_pic='-fPIC'
  7466. ;;
  7467. esac
  7468. ;;
  7469. interix[3-9]*)
  7470. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7471. # Instead, we relocate shared libraries at runtime.
  7472. ;;
  7473. msdosdjgpp*)
  7474. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7475. # on systems that don't support them.
  7476. lt_prog_compiler_can_build_shared=no
  7477. enable_shared=no
  7478. ;;
  7479. *nto* | *qnx*)
  7480. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7481. # it will coredump.
  7482. lt_prog_compiler_pic='-fPIC -shared'
  7483. ;;
  7484. sysv4*MP*)
  7485. if test -d /usr/nec; then
  7486. lt_prog_compiler_pic=-Kconform_pic
  7487. fi
  7488. ;;
  7489. *)
  7490. lt_prog_compiler_pic='-fPIC'
  7491. ;;
  7492. esac
  7493. case $cc_basename in
  7494. nvcc*) # Cuda Compiler Driver 2.2
  7495. lt_prog_compiler_wl='-Xlinker '
  7496. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7497. ;;
  7498. esac
  7499. else
  7500. # PORTME Check for flag to pass linker flags through the system compiler.
  7501. case $host_os in
  7502. aix*)
  7503. lt_prog_compiler_wl='-Wl,'
  7504. if test "$host_cpu" = ia64; then
  7505. # AIX 5 now supports IA64 processor
  7506. lt_prog_compiler_static='-Bstatic'
  7507. else
  7508. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7509. fi
  7510. ;;
  7511. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7512. # This hack is so that the source file can tell whether it is being
  7513. # built for inclusion in a dll (and should export symbols for example).
  7514. lt_prog_compiler_pic='-DDLL_EXPORT'
  7515. ;;
  7516. hpux9* | hpux10* | hpux11*)
  7517. lt_prog_compiler_wl='-Wl,'
  7518. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7519. # not for PA HP-UX.
  7520. case $host_cpu in
  7521. hppa*64*|ia64*)
  7522. # +Z the default
  7523. ;;
  7524. *)
  7525. lt_prog_compiler_pic='+Z'
  7526. ;;
  7527. esac
  7528. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7529. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7530. ;;
  7531. irix5* | irix6* | nonstopux*)
  7532. lt_prog_compiler_wl='-Wl,'
  7533. # PIC (with -KPIC) is the default.
  7534. lt_prog_compiler_static='-non_shared'
  7535. ;;
  7536. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7537. case $cc_basename in
  7538. # old Intel for x86_64 which still supported -KPIC.
  7539. ecc*)
  7540. lt_prog_compiler_wl='-Wl,'
  7541. lt_prog_compiler_pic='-KPIC'
  7542. lt_prog_compiler_static='-static'
  7543. ;;
  7544. # icc used to be incompatible with GCC.
  7545. # ICC 10 doesn't accept -KPIC any more.
  7546. icc* | ifort*)
  7547. lt_prog_compiler_wl='-Wl,'
  7548. lt_prog_compiler_pic='-fPIC'
  7549. lt_prog_compiler_static='-static'
  7550. ;;
  7551. # Lahey Fortran 8.1.
  7552. lf95*)
  7553. lt_prog_compiler_wl='-Wl,'
  7554. lt_prog_compiler_pic='--shared'
  7555. lt_prog_compiler_static='--static'
  7556. ;;
  7557. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7558. # Portland Group compilers (*not* the Pentium gcc compiler,
  7559. # which looks to be a dead project)
  7560. lt_prog_compiler_wl='-Wl,'
  7561. lt_prog_compiler_pic='-fpic'
  7562. lt_prog_compiler_static='-Bstatic'
  7563. ;;
  7564. ccc*)
  7565. lt_prog_compiler_wl='-Wl,'
  7566. # All Alpha code is PIC.
  7567. lt_prog_compiler_static='-non_shared'
  7568. ;;
  7569. xl* | bgxl* | bgf* | mpixl*)
  7570. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7571. lt_prog_compiler_wl='-Wl,'
  7572. lt_prog_compiler_pic='-qpic'
  7573. lt_prog_compiler_static='-qstaticlink'
  7574. ;;
  7575. *)
  7576. case `$CC -V 2>&1 | sed 5q` in
  7577. *Sun\ F* | *Sun*Fortran*)
  7578. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7579. lt_prog_compiler_pic='-KPIC'
  7580. lt_prog_compiler_static='-Bstatic'
  7581. lt_prog_compiler_wl=''
  7582. ;;
  7583. *Sun\ C*)
  7584. # Sun C 5.9
  7585. lt_prog_compiler_pic='-KPIC'
  7586. lt_prog_compiler_static='-Bstatic'
  7587. lt_prog_compiler_wl='-Wl,'
  7588. ;;
  7589. esac
  7590. ;;
  7591. esac
  7592. ;;
  7593. newsos6)
  7594. lt_prog_compiler_pic='-KPIC'
  7595. lt_prog_compiler_static='-Bstatic'
  7596. ;;
  7597. *nto* | *qnx*)
  7598. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7599. # it will coredump.
  7600. lt_prog_compiler_pic='-fPIC -shared'
  7601. ;;
  7602. osf3* | osf4* | osf5*)
  7603. lt_prog_compiler_wl='-Wl,'
  7604. # All OSF/1 code is PIC.
  7605. lt_prog_compiler_static='-non_shared'
  7606. ;;
  7607. rdos*)
  7608. lt_prog_compiler_static='-non_shared'
  7609. ;;
  7610. solaris*)
  7611. lt_prog_compiler_pic='-KPIC'
  7612. lt_prog_compiler_static='-Bstatic'
  7613. case $cc_basename in
  7614. f77* | f90* | f95*)
  7615. lt_prog_compiler_wl='-Qoption ld ';;
  7616. *)
  7617. lt_prog_compiler_wl='-Wl,';;
  7618. esac
  7619. ;;
  7620. sunos4*)
  7621. lt_prog_compiler_wl='-Qoption ld '
  7622. lt_prog_compiler_pic='-PIC'
  7623. lt_prog_compiler_static='-Bstatic'
  7624. ;;
  7625. sysv4 | sysv4.2uw2* | sysv4.3*)
  7626. lt_prog_compiler_wl='-Wl,'
  7627. lt_prog_compiler_pic='-KPIC'
  7628. lt_prog_compiler_static='-Bstatic'
  7629. ;;
  7630. sysv4*MP*)
  7631. if test -d /usr/nec ;then
  7632. lt_prog_compiler_pic='-Kconform_pic'
  7633. lt_prog_compiler_static='-Bstatic'
  7634. fi
  7635. ;;
  7636. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7637. lt_prog_compiler_wl='-Wl,'
  7638. lt_prog_compiler_pic='-KPIC'
  7639. lt_prog_compiler_static='-Bstatic'
  7640. ;;
  7641. unicos*)
  7642. lt_prog_compiler_wl='-Wl,'
  7643. lt_prog_compiler_can_build_shared=no
  7644. ;;
  7645. uts4*)
  7646. lt_prog_compiler_pic='-pic'
  7647. lt_prog_compiler_static='-Bstatic'
  7648. ;;
  7649. *)
  7650. lt_prog_compiler_can_build_shared=no
  7651. ;;
  7652. esac
  7653. fi
  7654. case $host_os in
  7655. # For platforms which do not support PIC, -DPIC is meaningless:
  7656. *djgpp*)
  7657. lt_prog_compiler_pic=
  7658. ;;
  7659. *)
  7660. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7661. ;;
  7662. esac
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7664. $as_echo "$lt_prog_compiler_pic" >&6; }
  7665. #
  7666. # Check to make sure the PIC flag actually works.
  7667. #
  7668. if test -n "$lt_prog_compiler_pic"; then
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7670. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7671. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7672. $as_echo_n "(cached) " >&6
  7673. else
  7674. lt_cv_prog_compiler_pic_works=no
  7675. ac_outfile=conftest.$ac_objext
  7676. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7677. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7678. # Insert the option either (1) after the last *FLAGS variable, or
  7679. # (2) before a word containing "conftest.", or (3) at the end.
  7680. # Note that $ac_compile itself does not contain backslashes and begins
  7681. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7682. # The option is referenced via a variable to avoid confusing sed.
  7683. lt_compile=`echo "$ac_compile" | $SED \
  7684. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7685. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7686. -e 's:$: $lt_compiler_flag:'`
  7687. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7688. (eval "$lt_compile" 2>conftest.err)
  7689. ac_status=$?
  7690. cat conftest.err >&5
  7691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7692. if (exit $ac_status) && test -s "$ac_outfile"; then
  7693. # The compiler can only warn and ignore the option if not recognized
  7694. # So say no if there are warnings other than the usual output.
  7695. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7696. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7697. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7698. lt_cv_prog_compiler_pic_works=yes
  7699. fi
  7700. fi
  7701. $RM conftest*
  7702. fi
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7704. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7705. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7706. case $lt_prog_compiler_pic in
  7707. "" | " "*) ;;
  7708. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7709. esac
  7710. else
  7711. lt_prog_compiler_pic=
  7712. lt_prog_compiler_can_build_shared=no
  7713. fi
  7714. fi
  7715. #
  7716. # Check to make sure the static flag actually works.
  7717. #
  7718. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7720. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7721. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7722. $as_echo_n "(cached) " >&6
  7723. else
  7724. lt_cv_prog_compiler_static_works=no
  7725. save_LDFLAGS="$LDFLAGS"
  7726. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7727. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7728. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7729. # The linker can only warn and ignore the option if not recognized
  7730. # So say no if there are warnings
  7731. if test -s conftest.err; then
  7732. # Append any errors to the config.log.
  7733. cat conftest.err 1>&5
  7734. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7735. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7736. if diff conftest.exp conftest.er2 >/dev/null; then
  7737. lt_cv_prog_compiler_static_works=yes
  7738. fi
  7739. else
  7740. lt_cv_prog_compiler_static_works=yes
  7741. fi
  7742. fi
  7743. $RM -r conftest*
  7744. LDFLAGS="$save_LDFLAGS"
  7745. fi
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7747. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7748. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7749. :
  7750. else
  7751. lt_prog_compiler_static=
  7752. fi
  7753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7754. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7755. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7756. $as_echo_n "(cached) " >&6
  7757. else
  7758. lt_cv_prog_compiler_c_o=no
  7759. $RM -r conftest 2>/dev/null
  7760. mkdir conftest
  7761. cd conftest
  7762. mkdir out
  7763. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7764. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7765. # Insert the option either (1) after the last *FLAGS variable, or
  7766. # (2) before a word containing "conftest.", or (3) at the end.
  7767. # Note that $ac_compile itself does not contain backslashes and begins
  7768. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7769. lt_compile=`echo "$ac_compile" | $SED \
  7770. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7771. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7772. -e 's:$: $lt_compiler_flag:'`
  7773. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7774. (eval "$lt_compile" 2>out/conftest.err)
  7775. ac_status=$?
  7776. cat out/conftest.err >&5
  7777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7778. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7779. then
  7780. # The compiler can only warn and ignore the option if not recognized
  7781. # So say no if there are warnings
  7782. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7783. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7784. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7785. lt_cv_prog_compiler_c_o=yes
  7786. fi
  7787. fi
  7788. chmod u+w . 2>&5
  7789. $RM conftest*
  7790. # SGI C++ compiler will create directory out/ii_files/ for
  7791. # template instantiation
  7792. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7793. $RM out/* && rmdir out
  7794. cd ..
  7795. $RM -r conftest
  7796. $RM conftest*
  7797. fi
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7799. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7801. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7802. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7803. $as_echo_n "(cached) " >&6
  7804. else
  7805. lt_cv_prog_compiler_c_o=no
  7806. $RM -r conftest 2>/dev/null
  7807. mkdir conftest
  7808. cd conftest
  7809. mkdir out
  7810. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7811. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7812. # Insert the option either (1) after the last *FLAGS variable, or
  7813. # (2) before a word containing "conftest.", or (3) at the end.
  7814. # Note that $ac_compile itself does not contain backslashes and begins
  7815. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7816. lt_compile=`echo "$ac_compile" | $SED \
  7817. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7818. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7819. -e 's:$: $lt_compiler_flag:'`
  7820. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7821. (eval "$lt_compile" 2>out/conftest.err)
  7822. ac_status=$?
  7823. cat out/conftest.err >&5
  7824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7825. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7826. then
  7827. # The compiler can only warn and ignore the option if not recognized
  7828. # So say no if there are warnings
  7829. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7830. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7831. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7832. lt_cv_prog_compiler_c_o=yes
  7833. fi
  7834. fi
  7835. chmod u+w . 2>&5
  7836. $RM conftest*
  7837. # SGI C++ compiler will create directory out/ii_files/ for
  7838. # template instantiation
  7839. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7840. $RM out/* && rmdir out
  7841. cd ..
  7842. $RM -r conftest
  7843. $RM conftest*
  7844. fi
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7846. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7847. hard_links="nottested"
  7848. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7849. # do not overwrite the value of need_locks provided by the user
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7851. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7852. hard_links=yes
  7853. $RM conftest*
  7854. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7855. touch conftest.a
  7856. ln conftest.a conftest.b 2>&5 || hard_links=no
  7857. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7859. $as_echo "$hard_links" >&6; }
  7860. if test "$hard_links" = no; then
  7861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7862. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7863. need_locks=warn
  7864. fi
  7865. else
  7866. need_locks=no
  7867. fi
  7868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7869. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7870. runpath_var=
  7871. allow_undefined_flag=
  7872. always_export_symbols=no
  7873. archive_cmds=
  7874. archive_expsym_cmds=
  7875. compiler_needs_object=no
  7876. enable_shared_with_static_runtimes=no
  7877. export_dynamic_flag_spec=
  7878. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7879. hardcode_automatic=no
  7880. hardcode_direct=no
  7881. hardcode_direct_absolute=no
  7882. hardcode_libdir_flag_spec=
  7883. hardcode_libdir_flag_spec_ld=
  7884. hardcode_libdir_separator=
  7885. hardcode_minus_L=no
  7886. hardcode_shlibpath_var=unsupported
  7887. inherit_rpath=no
  7888. link_all_deplibs=unknown
  7889. module_cmds=
  7890. module_expsym_cmds=
  7891. old_archive_from_new_cmds=
  7892. old_archive_from_expsyms_cmds=
  7893. thread_safe_flag_spec=
  7894. whole_archive_flag_spec=
  7895. # include_expsyms should be a list of space-separated symbols to be *always*
  7896. # included in the symbol list
  7897. include_expsyms=
  7898. # exclude_expsyms can be an extended regexp of symbols to exclude
  7899. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7900. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7901. # as well as any symbol that contains `d'.
  7902. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7903. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7904. # platforms (ab)use it in PIC code, but their linkers get confused if
  7905. # the symbol is explicitly referenced. Since portable code cannot
  7906. # rely on this symbol name, it's probably fine to never include it in
  7907. # preloaded symbol tables.
  7908. # Exclude shared library initialization/finalization symbols.
  7909. extract_expsyms_cmds=
  7910. case $host_os in
  7911. cygwin* | mingw* | pw32* | cegcc*)
  7912. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7913. # When not using gcc, we currently assume that we are using
  7914. # Microsoft Visual C++.
  7915. if test "$GCC" != yes; then
  7916. with_gnu_ld=no
  7917. fi
  7918. ;;
  7919. interix*)
  7920. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7921. with_gnu_ld=yes
  7922. ;;
  7923. openbsd*)
  7924. with_gnu_ld=no
  7925. ;;
  7926. esac
  7927. ld_shlibs=yes
  7928. # On some targets, GNU ld is compatible enough with the native linker
  7929. # that we're better off using the native interface for both.
  7930. lt_use_gnu_ld_interface=no
  7931. if test "$with_gnu_ld" = yes; then
  7932. case $host_os in
  7933. aix*)
  7934. # The AIX port of GNU ld has always aspired to compatibility
  7935. # with the native linker. However, as the warning in the GNU ld
  7936. # block says, versions before 2.19.5* couldn't really create working
  7937. # shared libraries, regardless of the interface used.
  7938. case `$LD -v 2>&1` in
  7939. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7940. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7941. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7942. *)
  7943. lt_use_gnu_ld_interface=yes
  7944. ;;
  7945. esac
  7946. ;;
  7947. *)
  7948. lt_use_gnu_ld_interface=yes
  7949. ;;
  7950. esac
  7951. fi
  7952. if test "$lt_use_gnu_ld_interface" = yes; then
  7953. # If archive_cmds runs LD, not CC, wlarc should be empty
  7954. wlarc='${wl}'
  7955. # Set some defaults for GNU ld with shared library support. These
  7956. # are reset later if shared libraries are not supported. Putting them
  7957. # here allows them to be overridden if necessary.
  7958. runpath_var=LD_RUN_PATH
  7959. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7960. export_dynamic_flag_spec='${wl}--export-dynamic'
  7961. # ancient GNU ld didn't support --whole-archive et. al.
  7962. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7963. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7964. else
  7965. whole_archive_flag_spec=
  7966. fi
  7967. supports_anon_versioning=no
  7968. case `$LD -v 2>&1` in
  7969. *GNU\ gold*) supports_anon_versioning=yes ;;
  7970. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7971. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7972. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7973. *\ 2.11.*) ;; # other 2.11 versions
  7974. *) supports_anon_versioning=yes ;;
  7975. esac
  7976. # See if GNU ld supports shared libraries.
  7977. case $host_os in
  7978. aix[3-9]*)
  7979. # On AIX/PPC, the GNU linker is very broken
  7980. if test "$host_cpu" != ia64; then
  7981. ld_shlibs=no
  7982. cat <<_LT_EOF 1>&2
  7983. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7984. *** to be unable to reliably create shared libraries on AIX.
  7985. *** Therefore, libtool is disabling shared libraries support. If you
  7986. *** really care for shared libraries, you may want to install binutils
  7987. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7988. *** You will then need to restart the configuration process.
  7989. _LT_EOF
  7990. fi
  7991. ;;
  7992. amigaos*)
  7993. case $host_cpu in
  7994. powerpc)
  7995. # see comment about AmigaOS4 .so support
  7996. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7997. archive_expsym_cmds=''
  7998. ;;
  7999. m68k)
  8000. 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)'
  8001. hardcode_libdir_flag_spec='-L$libdir'
  8002. hardcode_minus_L=yes
  8003. ;;
  8004. esac
  8005. ;;
  8006. beos*)
  8007. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8008. allow_undefined_flag=unsupported
  8009. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8010. # support --undefined. This deserves some investigation. FIXME
  8011. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8012. else
  8013. ld_shlibs=no
  8014. fi
  8015. ;;
  8016. cygwin* | mingw* | pw32* | cegcc*)
  8017. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8018. # as there is no search path for DLLs.
  8019. hardcode_libdir_flag_spec='-L$libdir'
  8020. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8021. allow_undefined_flag=unsupported
  8022. always_export_symbols=no
  8023. enable_shared_with_static_runtimes=yes
  8024. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8025. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8026. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8027. # If the export-symbols file already is a .def file (1st line
  8028. # is EXPORTS), use it as is; otherwise, prepend...
  8029. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8030. cp $export_symbols $output_objdir/$soname.def;
  8031. else
  8032. echo EXPORTS > $output_objdir/$soname.def;
  8033. cat $export_symbols >> $output_objdir/$soname.def;
  8034. fi~
  8035. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8036. else
  8037. ld_shlibs=no
  8038. fi
  8039. ;;
  8040. haiku*)
  8041. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8042. link_all_deplibs=yes
  8043. ;;
  8044. interix[3-9]*)
  8045. hardcode_direct=no
  8046. hardcode_shlibpath_var=no
  8047. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8048. export_dynamic_flag_spec='${wl}-E'
  8049. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8050. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8051. # default) and relocated if they conflict, which is a slow very memory
  8052. # consuming and fragmenting process. To avoid this, we pick a random,
  8053. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8054. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8055. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8056. 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'
  8057. ;;
  8058. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8059. tmp_diet=no
  8060. if test "$host_os" = linux-dietlibc; then
  8061. case $cc_basename in
  8062. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8063. esac
  8064. fi
  8065. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8066. && test "$tmp_diet" = no
  8067. then
  8068. tmp_addflag=' $pic_flag'
  8069. tmp_sharedflag='-shared'
  8070. case $cc_basename,$host_cpu in
  8071. pgcc*) # Portland Group C compiler
  8072. 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'
  8073. tmp_addflag=' $pic_flag'
  8074. ;;
  8075. pgf77* | pgf90* | pgf95* | pgfortran*)
  8076. # Portland Group f77 and f90 compilers
  8077. 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'
  8078. tmp_addflag=' $pic_flag -Mnomain' ;;
  8079. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8080. tmp_addflag=' -i_dynamic' ;;
  8081. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8082. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8083. ifc* | ifort*) # Intel Fortran compiler
  8084. tmp_addflag=' -nofor_main' ;;
  8085. lf95*) # Lahey Fortran 8.1
  8086. whole_archive_flag_spec=
  8087. tmp_sharedflag='--shared' ;;
  8088. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8089. tmp_sharedflag='-qmkshrobj'
  8090. tmp_addflag= ;;
  8091. nvcc*) # Cuda Compiler Driver 2.2
  8092. 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'
  8093. compiler_needs_object=yes
  8094. ;;
  8095. esac
  8096. case `$CC -V 2>&1 | sed 5q` in
  8097. *Sun\ C*) # Sun C 5.9
  8098. 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'
  8099. compiler_needs_object=yes
  8100. tmp_sharedflag='-G' ;;
  8101. *Sun\ F*) # Sun Fortran 8.3
  8102. tmp_sharedflag='-G' ;;
  8103. esac
  8104. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8105. if test "x$supports_anon_versioning" = xyes; then
  8106. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8107. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8108. echo "local: *; };" >> $output_objdir/$libname.ver~
  8109. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8110. fi
  8111. case $cc_basename in
  8112. xlf* | bgf* | bgxlf* | mpixlf*)
  8113. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8114. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8115. hardcode_libdir_flag_spec=
  8116. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8117. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8118. if test "x$supports_anon_versioning" = xyes; then
  8119. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8120. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8121. echo "local: *; };" >> $output_objdir/$libname.ver~
  8122. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8123. fi
  8124. ;;
  8125. esac
  8126. else
  8127. ld_shlibs=no
  8128. fi
  8129. ;;
  8130. netbsd*)
  8131. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8132. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8133. wlarc=
  8134. else
  8135. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8136. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8137. fi
  8138. ;;
  8139. solaris*)
  8140. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8141. ld_shlibs=no
  8142. cat <<_LT_EOF 1>&2
  8143. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8144. *** create shared libraries on Solaris systems. Therefore, libtool
  8145. *** is disabling shared libraries support. We urge you to upgrade GNU
  8146. *** binutils to release 2.9.1 or newer. Another option is to modify
  8147. *** your PATH or compiler configuration so that the native linker is
  8148. *** used, and then restart.
  8149. _LT_EOF
  8150. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8151. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8152. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8153. else
  8154. ld_shlibs=no
  8155. fi
  8156. ;;
  8157. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8158. case `$LD -v 2>&1` in
  8159. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8160. ld_shlibs=no
  8161. cat <<_LT_EOF 1>&2
  8162. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8163. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8164. *** is disabling shared libraries support. We urge you to upgrade GNU
  8165. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8166. *** your PATH or compiler configuration so that the native linker is
  8167. *** used, and then restart.
  8168. _LT_EOF
  8169. ;;
  8170. *)
  8171. # For security reasons, it is highly recommended that you always
  8172. # use absolute paths for naming shared libraries, and exclude the
  8173. # DT_RUNPATH tag from executables and libraries. But doing so
  8174. # requires that you compile everything twice, which is a pain.
  8175. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8176. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8177. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8178. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8179. else
  8180. ld_shlibs=no
  8181. fi
  8182. ;;
  8183. esac
  8184. ;;
  8185. sunos4*)
  8186. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8187. wlarc=
  8188. hardcode_direct=yes
  8189. hardcode_shlibpath_var=no
  8190. ;;
  8191. *)
  8192. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8193. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8194. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8195. else
  8196. ld_shlibs=no
  8197. fi
  8198. ;;
  8199. esac
  8200. if test "$ld_shlibs" = no; then
  8201. runpath_var=
  8202. hardcode_libdir_flag_spec=
  8203. export_dynamic_flag_spec=
  8204. whole_archive_flag_spec=
  8205. fi
  8206. else
  8207. # PORTME fill in a description of your system's linker (not GNU ld)
  8208. case $host_os in
  8209. aix3*)
  8210. allow_undefined_flag=unsupported
  8211. always_export_symbols=yes
  8212. 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'
  8213. # Note: this linker hardcodes the directories in LIBPATH if there
  8214. # are no directories specified by -L.
  8215. hardcode_minus_L=yes
  8216. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8217. # Neither direct hardcoding nor static linking is supported with a
  8218. # broken collect2.
  8219. hardcode_direct=unsupported
  8220. fi
  8221. ;;
  8222. aix[4-9]*)
  8223. if test "$host_cpu" = ia64; then
  8224. # On IA64, the linker does run time linking by default, so we don't
  8225. # have to do anything special.
  8226. aix_use_runtimelinking=no
  8227. exp_sym_flag='-Bexport'
  8228. no_entry_flag=""
  8229. else
  8230. # If we're using GNU nm, then we don't want the "-C" option.
  8231. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8232. # Also, AIX nm treats weak defined symbols like other global
  8233. # defined symbols, whereas GNU nm marks them as "W".
  8234. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8235. 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'
  8236. else
  8237. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8238. fi
  8239. aix_use_runtimelinking=no
  8240. # Test if we are trying to use run time linking or normal
  8241. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8242. # need to do runtime linking.
  8243. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8244. for ld_flag in $LDFLAGS; do
  8245. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8246. aix_use_runtimelinking=yes
  8247. break
  8248. fi
  8249. done
  8250. ;;
  8251. esac
  8252. exp_sym_flag='-bexport'
  8253. no_entry_flag='-bnoentry'
  8254. fi
  8255. # When large executables or shared objects are built, AIX ld can
  8256. # have problems creating the table of contents. If linking a library
  8257. # or program results in "error TOC overflow" add -mminimal-toc to
  8258. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8259. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8260. archive_cmds=''
  8261. hardcode_direct=yes
  8262. hardcode_direct_absolute=yes
  8263. hardcode_libdir_separator=':'
  8264. link_all_deplibs=yes
  8265. file_list_spec='${wl}-f,'
  8266. if test "$GCC" = yes; then
  8267. case $host_os in aix4.[012]|aix4.[012].*)
  8268. # We only want to do this on AIX 4.2 and lower, the check
  8269. # below for broken collect2 doesn't work under 4.3+
  8270. collect2name=`${CC} -print-prog-name=collect2`
  8271. if test -f "$collect2name" &&
  8272. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8273. then
  8274. # We have reworked collect2
  8275. :
  8276. else
  8277. # We have old collect2
  8278. hardcode_direct=unsupported
  8279. # It fails to find uninstalled libraries when the uninstalled
  8280. # path is not listed in the libpath. Setting hardcode_minus_L
  8281. # to unsupported forces relinking
  8282. hardcode_minus_L=yes
  8283. hardcode_libdir_flag_spec='-L$libdir'
  8284. hardcode_libdir_separator=
  8285. fi
  8286. ;;
  8287. esac
  8288. shared_flag='-shared'
  8289. if test "$aix_use_runtimelinking" = yes; then
  8290. shared_flag="$shared_flag "'${wl}-G'
  8291. fi
  8292. else
  8293. # not using gcc
  8294. if test "$host_cpu" = ia64; then
  8295. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8296. # chokes on -Wl,-G. The following line is correct:
  8297. shared_flag='-G'
  8298. else
  8299. if test "$aix_use_runtimelinking" = yes; then
  8300. shared_flag='${wl}-G'
  8301. else
  8302. shared_flag='${wl}-bM:SRE'
  8303. fi
  8304. fi
  8305. fi
  8306. export_dynamic_flag_spec='${wl}-bexpall'
  8307. # It seems that -bexpall does not export symbols beginning with
  8308. # underscore (_), so it is better to generate a list of symbols to export.
  8309. always_export_symbols=yes
  8310. if test "$aix_use_runtimelinking" = yes; then
  8311. # Warning - without using the other runtime loading flags (-brtl),
  8312. # -berok will link without error, but may produce a broken library.
  8313. allow_undefined_flag='-berok'
  8314. # Determine the default libpath from the value encoded in an
  8315. # empty executable.
  8316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8317. /* end confdefs.h. */
  8318. int
  8319. main ()
  8320. {
  8321. ;
  8322. return 0;
  8323. }
  8324. _ACEOF
  8325. if ac_fn_c_try_link "$LINENO"; then :
  8326. lt_aix_libpath_sed='
  8327. /Import File Strings/,/^$/ {
  8328. /^0/ {
  8329. s/^0 *\(.*\)$/\1/
  8330. p
  8331. }
  8332. }'
  8333. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8334. # Check for a 64-bit object if we didn't find anything.
  8335. if test -z "$aix_libpath"; then
  8336. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8337. fi
  8338. fi
  8339. rm -f core conftest.err conftest.$ac_objext \
  8340. conftest$ac_exeext conftest.$ac_ext
  8341. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8342. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8343. 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"
  8344. else
  8345. if test "$host_cpu" = ia64; then
  8346. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8347. allow_undefined_flag="-z nodefs"
  8348. 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"
  8349. else
  8350. # Determine the default libpath from the value encoded in an
  8351. # empty executable.
  8352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8353. /* end confdefs.h. */
  8354. int
  8355. main ()
  8356. {
  8357. ;
  8358. return 0;
  8359. }
  8360. _ACEOF
  8361. if ac_fn_c_try_link "$LINENO"; then :
  8362. lt_aix_libpath_sed='
  8363. /Import File Strings/,/^$/ {
  8364. /^0/ {
  8365. s/^0 *\(.*\)$/\1/
  8366. p
  8367. }
  8368. }'
  8369. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8370. # Check for a 64-bit object if we didn't find anything.
  8371. if test -z "$aix_libpath"; then
  8372. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8373. fi
  8374. fi
  8375. rm -f core conftest.err conftest.$ac_objext \
  8376. conftest$ac_exeext conftest.$ac_ext
  8377. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8378. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8379. # Warning - without using the other run time loading flags,
  8380. # -berok will link without error, but may produce a broken library.
  8381. no_undefined_flag=' ${wl}-bernotok'
  8382. allow_undefined_flag=' ${wl}-berok'
  8383. if test "$with_gnu_ld" = yes; then
  8384. # We only use this code for GNU lds that support --whole-archive.
  8385. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8386. else
  8387. # Exported symbols can be pulled into shared objects from archives
  8388. whole_archive_flag_spec='$convenience'
  8389. fi
  8390. archive_cmds_need_lc=yes
  8391. # This is similar to how AIX traditionally builds its shared libraries.
  8392. 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'
  8393. fi
  8394. fi
  8395. ;;
  8396. amigaos*)
  8397. case $host_cpu in
  8398. powerpc)
  8399. # see comment about AmigaOS4 .so support
  8400. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8401. archive_expsym_cmds=''
  8402. ;;
  8403. m68k)
  8404. 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)'
  8405. hardcode_libdir_flag_spec='-L$libdir'
  8406. hardcode_minus_L=yes
  8407. ;;
  8408. esac
  8409. ;;
  8410. bsdi[45]*)
  8411. export_dynamic_flag_spec=-rdynamic
  8412. ;;
  8413. cygwin* | mingw* | pw32* | cegcc*)
  8414. # When not using gcc, we currently assume that we are using
  8415. # Microsoft Visual C++.
  8416. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8417. # no search path for DLLs.
  8418. hardcode_libdir_flag_spec=' '
  8419. allow_undefined_flag=unsupported
  8420. # Tell ltmain to make .lib files, not .a files.
  8421. libext=lib
  8422. # Tell ltmain to make .dll files, not .so files.
  8423. shrext_cmds=".dll"
  8424. # FIXME: Setting linknames here is a bad hack.
  8425. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8426. # The linker will automatically build a .lib file if we build a DLL.
  8427. old_archive_from_new_cmds='true'
  8428. # FIXME: Should let the user specify the lib program.
  8429. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8430. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8431. enable_shared_with_static_runtimes=yes
  8432. ;;
  8433. darwin* | rhapsody*)
  8434. archive_cmds_need_lc=no
  8435. hardcode_direct=no
  8436. hardcode_automatic=yes
  8437. hardcode_shlibpath_var=unsupported
  8438. if test "$lt_cv_ld_force_load" = "yes"; then
  8439. 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\"`'
  8440. else
  8441. whole_archive_flag_spec=''
  8442. fi
  8443. link_all_deplibs=yes
  8444. allow_undefined_flag="$_lt_dar_allow_undefined"
  8445. case $cc_basename in
  8446. ifort*) _lt_dar_can_shared=yes ;;
  8447. *) _lt_dar_can_shared=$GCC ;;
  8448. esac
  8449. if test "$_lt_dar_can_shared" = "yes"; then
  8450. output_verbose_link_cmd=func_echo_all
  8451. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8452. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8453. 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}"
  8454. 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}"
  8455. else
  8456. ld_shlibs=no
  8457. fi
  8458. ;;
  8459. dgux*)
  8460. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8461. hardcode_libdir_flag_spec='-L$libdir'
  8462. hardcode_shlibpath_var=no
  8463. ;;
  8464. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8465. # support. Future versions do this automatically, but an explicit c++rt0.o
  8466. # does not break anything, and helps significantly (at the cost of a little
  8467. # extra space).
  8468. freebsd2.2*)
  8469. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8470. hardcode_libdir_flag_spec='-R$libdir'
  8471. hardcode_direct=yes
  8472. hardcode_shlibpath_var=no
  8473. ;;
  8474. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8475. freebsd2.*)
  8476. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8477. hardcode_direct=yes
  8478. hardcode_minus_L=yes
  8479. hardcode_shlibpath_var=no
  8480. ;;
  8481. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8482. freebsd* | dragonfly*)
  8483. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8484. hardcode_libdir_flag_spec='-R$libdir'
  8485. hardcode_direct=yes
  8486. hardcode_shlibpath_var=no
  8487. ;;
  8488. hpux9*)
  8489. if test "$GCC" = yes; then
  8490. 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'
  8491. else
  8492. 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'
  8493. fi
  8494. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8495. hardcode_libdir_separator=:
  8496. hardcode_direct=yes
  8497. # hardcode_minus_L: Not really in the search PATH,
  8498. # but as the default location of the library.
  8499. hardcode_minus_L=yes
  8500. export_dynamic_flag_spec='${wl}-E'
  8501. ;;
  8502. hpux10*)
  8503. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8504. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8505. else
  8506. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8507. fi
  8508. if test "$with_gnu_ld" = no; then
  8509. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8510. hardcode_libdir_flag_spec_ld='+b $libdir'
  8511. hardcode_libdir_separator=:
  8512. hardcode_direct=yes
  8513. hardcode_direct_absolute=yes
  8514. export_dynamic_flag_spec='${wl}-E'
  8515. # hardcode_minus_L: Not really in the search PATH,
  8516. # but as the default location of the library.
  8517. hardcode_minus_L=yes
  8518. fi
  8519. ;;
  8520. hpux11*)
  8521. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8522. case $host_cpu in
  8523. hppa*64*)
  8524. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8525. ;;
  8526. ia64*)
  8527. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8528. ;;
  8529. *)
  8530. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8531. ;;
  8532. esac
  8533. else
  8534. case $host_cpu in
  8535. hppa*64*)
  8536. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. ;;
  8538. ia64*)
  8539. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8540. ;;
  8541. *)
  8542. # Older versions of the 11.00 compiler do not understand -b yet
  8543. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8545. $as_echo_n "checking if $CC understands -b... " >&6; }
  8546. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8547. $as_echo_n "(cached) " >&6
  8548. else
  8549. lt_cv_prog_compiler__b=no
  8550. save_LDFLAGS="$LDFLAGS"
  8551. LDFLAGS="$LDFLAGS -b"
  8552. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8553. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8554. # The linker can only warn and ignore the option if not recognized
  8555. # So say no if there are warnings
  8556. if test -s conftest.err; then
  8557. # Append any errors to the config.log.
  8558. cat conftest.err 1>&5
  8559. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8560. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8561. if diff conftest.exp conftest.er2 >/dev/null; then
  8562. lt_cv_prog_compiler__b=yes
  8563. fi
  8564. else
  8565. lt_cv_prog_compiler__b=yes
  8566. fi
  8567. fi
  8568. $RM -r conftest*
  8569. LDFLAGS="$save_LDFLAGS"
  8570. fi
  8571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8572. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8573. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8574. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8575. else
  8576. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8577. fi
  8578. ;;
  8579. esac
  8580. fi
  8581. if test "$with_gnu_ld" = no; then
  8582. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8583. hardcode_libdir_separator=:
  8584. case $host_cpu in
  8585. hppa*64*|ia64*)
  8586. hardcode_direct=no
  8587. hardcode_shlibpath_var=no
  8588. ;;
  8589. *)
  8590. hardcode_direct=yes
  8591. hardcode_direct_absolute=yes
  8592. export_dynamic_flag_spec='${wl}-E'
  8593. # hardcode_minus_L: Not really in the search PATH,
  8594. # but as the default location of the library.
  8595. hardcode_minus_L=yes
  8596. ;;
  8597. esac
  8598. fi
  8599. ;;
  8600. irix5* | irix6* | nonstopux*)
  8601. if test "$GCC" = yes; then
  8602. 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'
  8603. # Try to use the -exported_symbol ld option, if it does not
  8604. # work, assume that -exports_file does not work either and
  8605. # implicitly export all symbols.
  8606. save_LDFLAGS="$LDFLAGS"
  8607. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8609. /* end confdefs.h. */
  8610. int foo(void) {}
  8611. _ACEOF
  8612. if ac_fn_c_try_link "$LINENO"; then :
  8613. 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'
  8614. fi
  8615. rm -f core conftest.err conftest.$ac_objext \
  8616. conftest$ac_exeext conftest.$ac_ext
  8617. LDFLAGS="$save_LDFLAGS"
  8618. else
  8619. 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'
  8620. 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'
  8621. fi
  8622. archive_cmds_need_lc='no'
  8623. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8624. hardcode_libdir_separator=:
  8625. inherit_rpath=yes
  8626. link_all_deplibs=yes
  8627. ;;
  8628. netbsd*)
  8629. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8630. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8631. else
  8632. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8633. fi
  8634. hardcode_libdir_flag_spec='-R$libdir'
  8635. hardcode_direct=yes
  8636. hardcode_shlibpath_var=no
  8637. ;;
  8638. newsos6)
  8639. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8640. hardcode_direct=yes
  8641. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8642. hardcode_libdir_separator=:
  8643. hardcode_shlibpath_var=no
  8644. ;;
  8645. *nto* | *qnx*)
  8646. ;;
  8647. openbsd*)
  8648. if test -f /usr/libexec/ld.so; then
  8649. hardcode_direct=yes
  8650. hardcode_shlibpath_var=no
  8651. hardcode_direct_absolute=yes
  8652. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8653. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8654. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8655. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8656. export_dynamic_flag_spec='${wl}-E'
  8657. else
  8658. case $host_os in
  8659. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8660. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8661. hardcode_libdir_flag_spec='-R$libdir'
  8662. ;;
  8663. *)
  8664. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8665. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8666. ;;
  8667. esac
  8668. fi
  8669. else
  8670. ld_shlibs=no
  8671. fi
  8672. ;;
  8673. os2*)
  8674. hardcode_libdir_flag_spec='-L$libdir'
  8675. hardcode_minus_L=yes
  8676. allow_undefined_flag=unsupported
  8677. 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'
  8678. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8679. ;;
  8680. osf3*)
  8681. if test "$GCC" = yes; then
  8682. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8683. 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'
  8684. else
  8685. allow_undefined_flag=' -expect_unresolved \*'
  8686. 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'
  8687. fi
  8688. archive_cmds_need_lc='no'
  8689. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8690. hardcode_libdir_separator=:
  8691. ;;
  8692. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8693. if test "$GCC" = yes; then
  8694. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8695. 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'
  8696. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8697. else
  8698. allow_undefined_flag=' -expect_unresolved \*'
  8699. 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'
  8700. 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~
  8701. $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'
  8702. # Both c and cxx compiler support -rpath directly
  8703. hardcode_libdir_flag_spec='-rpath $libdir'
  8704. fi
  8705. archive_cmds_need_lc='no'
  8706. hardcode_libdir_separator=:
  8707. ;;
  8708. solaris*)
  8709. no_undefined_flag=' -z defs'
  8710. if test "$GCC" = yes; then
  8711. wlarc='${wl}'
  8712. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8713. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8714. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8715. else
  8716. case `$CC -V 2>&1` in
  8717. *"Compilers 5.0"*)
  8718. wlarc=''
  8719. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8720. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8721. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8722. ;;
  8723. *)
  8724. wlarc='${wl}'
  8725. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8726. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8727. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8728. ;;
  8729. esac
  8730. fi
  8731. hardcode_libdir_flag_spec='-R$libdir'
  8732. hardcode_shlibpath_var=no
  8733. case $host_os in
  8734. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8735. *)
  8736. # The compiler driver will combine and reorder linker options,
  8737. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8738. # but is careful enough not to reorder.
  8739. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8740. if test "$GCC" = yes; then
  8741. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8742. else
  8743. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8744. fi
  8745. ;;
  8746. esac
  8747. link_all_deplibs=yes
  8748. ;;
  8749. sunos4*)
  8750. if test "x$host_vendor" = xsequent; then
  8751. # Use $CC to link under sequent, because it throws in some extra .o
  8752. # files that make .init and .fini sections work.
  8753. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8754. else
  8755. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8756. fi
  8757. hardcode_libdir_flag_spec='-L$libdir'
  8758. hardcode_direct=yes
  8759. hardcode_minus_L=yes
  8760. hardcode_shlibpath_var=no
  8761. ;;
  8762. sysv4)
  8763. case $host_vendor in
  8764. sni)
  8765. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8766. hardcode_direct=yes # is this really true???
  8767. ;;
  8768. siemens)
  8769. ## LD is ld it makes a PLAMLIB
  8770. ## CC just makes a GrossModule.
  8771. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8772. reload_cmds='$CC -r -o $output$reload_objs'
  8773. hardcode_direct=no
  8774. ;;
  8775. motorola)
  8776. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8777. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8778. ;;
  8779. esac
  8780. runpath_var='LD_RUN_PATH'
  8781. hardcode_shlibpath_var=no
  8782. ;;
  8783. sysv4.3*)
  8784. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8785. hardcode_shlibpath_var=no
  8786. export_dynamic_flag_spec='-Bexport'
  8787. ;;
  8788. sysv4*MP*)
  8789. if test -d /usr/nec; then
  8790. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8791. hardcode_shlibpath_var=no
  8792. runpath_var=LD_RUN_PATH
  8793. hardcode_runpath_var=yes
  8794. ld_shlibs=yes
  8795. fi
  8796. ;;
  8797. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8798. no_undefined_flag='${wl}-z,text'
  8799. archive_cmds_need_lc=no
  8800. hardcode_shlibpath_var=no
  8801. runpath_var='LD_RUN_PATH'
  8802. if test "$GCC" = yes; then
  8803. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8804. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8805. else
  8806. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8807. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8808. fi
  8809. ;;
  8810. sysv5* | sco3.2v5* | sco5v6*)
  8811. # Note: We can NOT use -z defs as we might desire, because we do not
  8812. # link with -lc, and that would cause any symbols used from libc to
  8813. # always be unresolved, which means just about no library would
  8814. # ever link correctly. If we're not using GNU ld we use -z text
  8815. # though, which does catch some bad symbols but isn't as heavy-handed
  8816. # as -z defs.
  8817. no_undefined_flag='${wl}-z,text'
  8818. allow_undefined_flag='${wl}-z,nodefs'
  8819. archive_cmds_need_lc=no
  8820. hardcode_shlibpath_var=no
  8821. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8822. hardcode_libdir_separator=':'
  8823. link_all_deplibs=yes
  8824. export_dynamic_flag_spec='${wl}-Bexport'
  8825. runpath_var='LD_RUN_PATH'
  8826. if test "$GCC" = yes; then
  8827. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8828. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8829. else
  8830. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8831. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8832. fi
  8833. ;;
  8834. uts4*)
  8835. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8836. hardcode_libdir_flag_spec='-L$libdir'
  8837. hardcode_shlibpath_var=no
  8838. ;;
  8839. *)
  8840. ld_shlibs=no
  8841. ;;
  8842. esac
  8843. if test x$host_vendor = xsni; then
  8844. case $host in
  8845. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8846. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8847. ;;
  8848. esac
  8849. fi
  8850. fi
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8852. $as_echo "$ld_shlibs" >&6; }
  8853. test "$ld_shlibs" = no && can_build_shared=no
  8854. with_gnu_ld=$with_gnu_ld
  8855. #
  8856. # Do we need to explicitly link libc?
  8857. #
  8858. case "x$archive_cmds_need_lc" in
  8859. x|xyes)
  8860. # Assume -lc should be added
  8861. archive_cmds_need_lc=yes
  8862. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8863. case $archive_cmds in
  8864. *'~'*)
  8865. # FIXME: we may have to deal with multi-command sequences.
  8866. ;;
  8867. '$CC '*)
  8868. # Test whether the compiler implicitly links with -lc since on some
  8869. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8870. # to ld, don't add -lc before -lgcc.
  8871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8872. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8873. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8874. $as_echo_n "(cached) " >&6
  8875. else
  8876. $RM conftest*
  8877. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8878. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8879. (eval $ac_compile) 2>&5
  8880. ac_status=$?
  8881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8882. test $ac_status = 0; } 2>conftest.err; then
  8883. soname=conftest
  8884. lib=conftest
  8885. libobjs=conftest.$ac_objext
  8886. deplibs=
  8887. wl=$lt_prog_compiler_wl
  8888. pic_flag=$lt_prog_compiler_pic
  8889. compiler_flags=-v
  8890. linker_flags=-v
  8891. verstring=
  8892. output_objdir=.
  8893. libname=conftest
  8894. lt_save_allow_undefined_flag=$allow_undefined_flag
  8895. allow_undefined_flag=
  8896. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8897. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8898. ac_status=$?
  8899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8900. test $ac_status = 0; }
  8901. then
  8902. lt_cv_archive_cmds_need_lc=no
  8903. else
  8904. lt_cv_archive_cmds_need_lc=yes
  8905. fi
  8906. allow_undefined_flag=$lt_save_allow_undefined_flag
  8907. else
  8908. cat conftest.err 1>&5
  8909. fi
  8910. $RM conftest*
  8911. fi
  8912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8913. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8914. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8915. ;;
  8916. esac
  8917. fi
  8918. ;;
  8919. esac
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8921. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8922. if test "$GCC" = yes; then
  8923. case $host_os in
  8924. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8925. *) lt_awk_arg="/^libraries:/" ;;
  8926. esac
  8927. case $host_os in
  8928. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8929. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8930. esac
  8931. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8932. case $lt_search_path_spec in
  8933. *\;*)
  8934. # if the path contains ";" then we assume it to be the separator
  8935. # otherwise default to the standard path separator (i.e. ":") - it is
  8936. # assumed that no part of a normal pathname contains ";" but that should
  8937. # okay in the real world where ";" in dirpaths is itself problematic.
  8938. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8939. ;;
  8940. *)
  8941. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8942. ;;
  8943. esac
  8944. # Ok, now we have the path, separated by spaces, we can step through it
  8945. # and add multilib dir if necessary.
  8946. lt_tmp_lt_search_path_spec=
  8947. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8948. for lt_sys_path in $lt_search_path_spec; do
  8949. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8950. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8951. else
  8952. test -d "$lt_sys_path" && \
  8953. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8954. fi
  8955. done
  8956. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8957. BEGIN {RS=" "; FS="/|\n";} {
  8958. lt_foo="";
  8959. lt_count=0;
  8960. for (lt_i = NF; lt_i > 0; lt_i--) {
  8961. if ($lt_i != "" && $lt_i != ".") {
  8962. if ($lt_i == "..") {
  8963. lt_count++;
  8964. } else {
  8965. if (lt_count == 0) {
  8966. lt_foo="/" $lt_i lt_foo;
  8967. } else {
  8968. lt_count--;
  8969. }
  8970. }
  8971. }
  8972. }
  8973. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8974. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8975. }'`
  8976. # AWK program above erroneously prepends '/' to C:/dos/paths
  8977. # for these hosts.
  8978. case $host_os in
  8979. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8980. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8981. esac
  8982. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8983. else
  8984. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8985. fi
  8986. library_names_spec=
  8987. libname_spec='lib$name'
  8988. soname_spec=
  8989. shrext_cmds=".so"
  8990. postinstall_cmds=
  8991. postuninstall_cmds=
  8992. finish_cmds=
  8993. finish_eval=
  8994. shlibpath_var=
  8995. shlibpath_overrides_runpath=unknown
  8996. version_type=none
  8997. dynamic_linker="$host_os ld.so"
  8998. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8999. need_lib_prefix=unknown
  9000. hardcode_into_libs=no
  9001. # when you set need_version to no, make sure it does not cause -set_version
  9002. # flags to be left without arguments
  9003. need_version=unknown
  9004. case $host_os in
  9005. aix3*)
  9006. version_type=linux
  9007. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9008. shlibpath_var=LIBPATH
  9009. # AIX 3 has no versioning support, so we append a major version to the name.
  9010. soname_spec='${libname}${release}${shared_ext}$major'
  9011. ;;
  9012. aix[4-9]*)
  9013. version_type=linux
  9014. need_lib_prefix=no
  9015. need_version=no
  9016. hardcode_into_libs=yes
  9017. if test "$host_cpu" = ia64; then
  9018. # AIX 5 supports IA64
  9019. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. else
  9022. # With GCC up to 2.95.x, collect2 would create an import file
  9023. # for dependence libraries. The import file would start with
  9024. # the line `#! .'. This would cause the generated library to
  9025. # depend on `.', always an invalid library. This was fixed in
  9026. # development snapshots of GCC prior to 3.0.
  9027. case $host_os in
  9028. aix4 | aix4.[01] | aix4.[01].*)
  9029. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9030. echo ' yes '
  9031. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9032. :
  9033. else
  9034. can_build_shared=no
  9035. fi
  9036. ;;
  9037. esac
  9038. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9039. # soname into executable. Probably we can add versioning support to
  9040. # collect2, so additional links can be useful in future.
  9041. if test "$aix_use_runtimelinking" = yes; then
  9042. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9043. # instead of lib<name>.a to let people know that these are not
  9044. # typical AIX shared libraries.
  9045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9046. else
  9047. # We preserve .a as extension for shared libraries through AIX4.2
  9048. # and later when we are not doing run time linking.
  9049. library_names_spec='${libname}${release}.a $libname.a'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. fi
  9052. shlibpath_var=LIBPATH
  9053. fi
  9054. ;;
  9055. amigaos*)
  9056. case $host_cpu in
  9057. powerpc)
  9058. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9059. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9061. ;;
  9062. m68k)
  9063. library_names_spec='$libname.ixlibrary $libname.a'
  9064. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9065. 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'
  9066. ;;
  9067. esac
  9068. ;;
  9069. beos*)
  9070. library_names_spec='${libname}${shared_ext}'
  9071. dynamic_linker="$host_os ld.so"
  9072. shlibpath_var=LIBRARY_PATH
  9073. ;;
  9074. bsdi[45]*)
  9075. version_type=linux
  9076. need_version=no
  9077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9078. soname_spec='${libname}${release}${shared_ext}$major'
  9079. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9080. shlibpath_var=LD_LIBRARY_PATH
  9081. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9082. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9083. # the default ld.so.conf also contains /usr/contrib/lib and
  9084. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9085. # libtool to hard-code these into programs
  9086. ;;
  9087. cygwin* | mingw* | pw32* | cegcc*)
  9088. version_type=windows
  9089. shrext_cmds=".dll"
  9090. need_version=no
  9091. need_lib_prefix=no
  9092. case $GCC,$host_os in
  9093. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9094. library_names_spec='$libname.dll.a'
  9095. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9096. postinstall_cmds='base_file=`basename \${file}`~
  9097. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9098. dldir=$destdir/`dirname \$dlpath`~
  9099. test -d \$dldir || mkdir -p \$dldir~
  9100. $install_prog $dir/$dlname \$dldir/$dlname~
  9101. chmod a+x \$dldir/$dlname~
  9102. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9103. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9104. fi'
  9105. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9106. dlpath=$dir/\$dldll~
  9107. $RM \$dlpath'
  9108. shlibpath_overrides_runpath=yes
  9109. case $host_os in
  9110. cygwin*)
  9111. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9112. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9113. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9114. ;;
  9115. mingw* | cegcc*)
  9116. # MinGW DLLs use traditional 'lib' prefix
  9117. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9118. ;;
  9119. pw32*)
  9120. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9121. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9122. ;;
  9123. esac
  9124. ;;
  9125. *)
  9126. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9127. ;;
  9128. esac
  9129. dynamic_linker='Win32 ld.exe'
  9130. # FIXME: first we should search . and the directory the executable is in
  9131. shlibpath_var=PATH
  9132. ;;
  9133. darwin* | rhapsody*)
  9134. dynamic_linker="$host_os dyld"
  9135. version_type=darwin
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9139. soname_spec='${libname}${release}${major}$shared_ext'
  9140. shlibpath_overrides_runpath=yes
  9141. shlibpath_var=DYLD_LIBRARY_PATH
  9142. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9143. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9144. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9145. ;;
  9146. dgux*)
  9147. version_type=linux
  9148. need_lib_prefix=no
  9149. need_version=no
  9150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9151. soname_spec='${libname}${release}${shared_ext}$major'
  9152. shlibpath_var=LD_LIBRARY_PATH
  9153. ;;
  9154. freebsd* | dragonfly*)
  9155. # DragonFly does not have aout. When/if they implement a new
  9156. # versioning mechanism, adjust this.
  9157. if test -x /usr/bin/objformat; then
  9158. objformat=`/usr/bin/objformat`
  9159. else
  9160. case $host_os in
  9161. freebsd[23].*) objformat=aout ;;
  9162. *) objformat=elf ;;
  9163. esac
  9164. fi
  9165. version_type=freebsd-$objformat
  9166. case $version_type in
  9167. freebsd-elf*)
  9168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9169. need_version=no
  9170. need_lib_prefix=no
  9171. ;;
  9172. freebsd-*)
  9173. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9174. need_version=yes
  9175. ;;
  9176. esac
  9177. shlibpath_var=LD_LIBRARY_PATH
  9178. case $host_os in
  9179. freebsd2.*)
  9180. shlibpath_overrides_runpath=yes
  9181. ;;
  9182. freebsd3.[01]* | freebsdelf3.[01]*)
  9183. shlibpath_overrides_runpath=yes
  9184. hardcode_into_libs=yes
  9185. ;;
  9186. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9187. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9188. shlibpath_overrides_runpath=no
  9189. hardcode_into_libs=yes
  9190. ;;
  9191. *) # from 4.6 on, and DragonFly
  9192. shlibpath_overrides_runpath=yes
  9193. hardcode_into_libs=yes
  9194. ;;
  9195. esac
  9196. ;;
  9197. gnu*)
  9198. version_type=linux
  9199. need_lib_prefix=no
  9200. need_version=no
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9202. soname_spec='${libname}${release}${shared_ext}$major'
  9203. shlibpath_var=LD_LIBRARY_PATH
  9204. hardcode_into_libs=yes
  9205. ;;
  9206. haiku*)
  9207. version_type=linux
  9208. need_lib_prefix=no
  9209. need_version=no
  9210. dynamic_linker="$host_os runtime_loader"
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9212. soname_spec='${libname}${release}${shared_ext}$major'
  9213. shlibpath_var=LIBRARY_PATH
  9214. shlibpath_overrides_runpath=yes
  9215. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9216. hardcode_into_libs=yes
  9217. ;;
  9218. hpux9* | hpux10* | hpux11*)
  9219. # Give a soname corresponding to the major version so that dld.sl refuses to
  9220. # link against other versions.
  9221. version_type=sunos
  9222. need_lib_prefix=no
  9223. need_version=no
  9224. case $host_cpu in
  9225. ia64*)
  9226. shrext_cmds='.so'
  9227. hardcode_into_libs=yes
  9228. dynamic_linker="$host_os dld.so"
  9229. shlibpath_var=LD_LIBRARY_PATH
  9230. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. if test "X$HPUX_IA64_MODE" = X32; then
  9234. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9235. else
  9236. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9237. fi
  9238. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9239. ;;
  9240. hppa*64*)
  9241. shrext_cmds='.sl'
  9242. hardcode_into_libs=yes
  9243. dynamic_linker="$host_os dld.sl"
  9244. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9245. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9247. soname_spec='${libname}${release}${shared_ext}$major'
  9248. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9249. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9250. ;;
  9251. *)
  9252. shrext_cmds='.sl'
  9253. dynamic_linker="$host_os dld.sl"
  9254. shlibpath_var=SHLIB_PATH
  9255. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9257. soname_spec='${libname}${release}${shared_ext}$major'
  9258. ;;
  9259. esac
  9260. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9261. postinstall_cmds='chmod 555 $lib'
  9262. # or fails outright, so override atomically:
  9263. install_override_mode=555
  9264. ;;
  9265. interix[3-9]*)
  9266. version_type=linux
  9267. need_lib_prefix=no
  9268. need_version=no
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9270. soname_spec='${libname}${release}${shared_ext}$major'
  9271. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9272. shlibpath_var=LD_LIBRARY_PATH
  9273. shlibpath_overrides_runpath=no
  9274. hardcode_into_libs=yes
  9275. ;;
  9276. irix5* | irix6* | nonstopux*)
  9277. case $host_os in
  9278. nonstopux*) version_type=nonstopux ;;
  9279. *)
  9280. if test "$lt_cv_prog_gnu_ld" = yes; then
  9281. version_type=linux
  9282. else
  9283. version_type=irix
  9284. fi ;;
  9285. esac
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9290. case $host_os in
  9291. irix5* | nonstopux*)
  9292. libsuff= shlibsuff=
  9293. ;;
  9294. *)
  9295. case $LD in # libtool.m4 will add one of these switches to LD
  9296. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9297. libsuff= shlibsuff= libmagic=32-bit;;
  9298. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9299. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9300. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9301. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9302. *) libsuff= shlibsuff= libmagic=never-match;;
  9303. esac
  9304. ;;
  9305. esac
  9306. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9307. shlibpath_overrides_runpath=no
  9308. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9309. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9310. hardcode_into_libs=yes
  9311. ;;
  9312. # No shared lib support for Linux oldld, aout, or coff.
  9313. linux*oldld* | linux*aout* | linux*coff*)
  9314. dynamic_linker=no
  9315. ;;
  9316. # This must be Linux ELF.
  9317. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9318. version_type=linux
  9319. need_lib_prefix=no
  9320. need_version=no
  9321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9322. soname_spec='${libname}${release}${shared_ext}$major'
  9323. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9324. shlibpath_var=LD_LIBRARY_PATH
  9325. shlibpath_overrides_runpath=no
  9326. # Some binutils ld are patched to set DT_RUNPATH
  9327. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9328. $as_echo_n "(cached) " >&6
  9329. else
  9330. lt_cv_shlibpath_overrides_runpath=no
  9331. save_LDFLAGS=$LDFLAGS
  9332. save_libdir=$libdir
  9333. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9334. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9336. /* end confdefs.h. */
  9337. int
  9338. main ()
  9339. {
  9340. ;
  9341. return 0;
  9342. }
  9343. _ACEOF
  9344. if ac_fn_c_try_link "$LINENO"; then :
  9345. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9346. lt_cv_shlibpath_overrides_runpath=yes
  9347. fi
  9348. fi
  9349. rm -f core conftest.err conftest.$ac_objext \
  9350. conftest$ac_exeext conftest.$ac_ext
  9351. LDFLAGS=$save_LDFLAGS
  9352. libdir=$save_libdir
  9353. fi
  9354. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9355. # This implies no fast_install, which is unacceptable.
  9356. # Some rework will be needed to allow for fast_install
  9357. # before this can be enabled.
  9358. hardcode_into_libs=yes
  9359. # Append ld.so.conf contents to the search path
  9360. if test -f /etc/ld.so.conf; then
  9361. 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' ' '`
  9362. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9363. fi
  9364. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9365. # powerpc, because MkLinux only supported shared libraries with the
  9366. # GNU dynamic linker. Since this was broken with cross compilers,
  9367. # most powerpc-linux boxes support dynamic linking these days and
  9368. # people can always --disable-shared, the test was removed, and we
  9369. # assume the GNU/Linux dynamic linker is in use.
  9370. dynamic_linker='GNU/Linux ld.so'
  9371. ;;
  9372. netbsd*)
  9373. version_type=sunos
  9374. need_lib_prefix=no
  9375. need_version=no
  9376. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9378. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9379. dynamic_linker='NetBSD (a.out) ld.so'
  9380. else
  9381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9382. soname_spec='${libname}${release}${shared_ext}$major'
  9383. dynamic_linker='NetBSD ld.elf_so'
  9384. fi
  9385. shlibpath_var=LD_LIBRARY_PATH
  9386. shlibpath_overrides_runpath=yes
  9387. hardcode_into_libs=yes
  9388. ;;
  9389. newsos6)
  9390. version_type=linux
  9391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9392. shlibpath_var=LD_LIBRARY_PATH
  9393. shlibpath_overrides_runpath=yes
  9394. ;;
  9395. *nto* | *qnx*)
  9396. version_type=qnx
  9397. need_lib_prefix=no
  9398. need_version=no
  9399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9400. soname_spec='${libname}${release}${shared_ext}$major'
  9401. shlibpath_var=LD_LIBRARY_PATH
  9402. shlibpath_overrides_runpath=no
  9403. hardcode_into_libs=yes
  9404. dynamic_linker='ldqnx.so'
  9405. ;;
  9406. openbsd*)
  9407. version_type=sunos
  9408. sys_lib_dlsearch_path_spec="/usr/lib"
  9409. need_lib_prefix=no
  9410. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9411. case $host_os in
  9412. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9413. *) need_version=no ;;
  9414. esac
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9416. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9417. shlibpath_var=LD_LIBRARY_PATH
  9418. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9419. case $host_os in
  9420. openbsd2.[89] | openbsd2.[89].*)
  9421. shlibpath_overrides_runpath=no
  9422. ;;
  9423. *)
  9424. shlibpath_overrides_runpath=yes
  9425. ;;
  9426. esac
  9427. else
  9428. shlibpath_overrides_runpath=yes
  9429. fi
  9430. ;;
  9431. os2*)
  9432. libname_spec='$name'
  9433. shrext_cmds=".dll"
  9434. need_lib_prefix=no
  9435. library_names_spec='$libname${shared_ext} $libname.a'
  9436. dynamic_linker='OS/2 ld.exe'
  9437. shlibpath_var=LIBPATH
  9438. ;;
  9439. osf3* | osf4* | osf5*)
  9440. version_type=osf
  9441. need_lib_prefix=no
  9442. need_version=no
  9443. soname_spec='${libname}${release}${shared_ext}$major'
  9444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9445. shlibpath_var=LD_LIBRARY_PATH
  9446. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9447. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9448. ;;
  9449. rdos*)
  9450. dynamic_linker=no
  9451. ;;
  9452. solaris*)
  9453. version_type=linux
  9454. need_lib_prefix=no
  9455. need_version=no
  9456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9457. soname_spec='${libname}${release}${shared_ext}$major'
  9458. shlibpath_var=LD_LIBRARY_PATH
  9459. shlibpath_overrides_runpath=yes
  9460. hardcode_into_libs=yes
  9461. # ldd complains unless libraries are executable
  9462. postinstall_cmds='chmod +x $lib'
  9463. ;;
  9464. sunos4*)
  9465. version_type=sunos
  9466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9467. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9468. shlibpath_var=LD_LIBRARY_PATH
  9469. shlibpath_overrides_runpath=yes
  9470. if test "$with_gnu_ld" = yes; then
  9471. need_lib_prefix=no
  9472. fi
  9473. need_version=yes
  9474. ;;
  9475. sysv4 | sysv4.3*)
  9476. version_type=linux
  9477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9478. soname_spec='${libname}${release}${shared_ext}$major'
  9479. shlibpath_var=LD_LIBRARY_PATH
  9480. case $host_vendor in
  9481. sni)
  9482. shlibpath_overrides_runpath=no
  9483. need_lib_prefix=no
  9484. runpath_var=LD_RUN_PATH
  9485. ;;
  9486. siemens)
  9487. need_lib_prefix=no
  9488. ;;
  9489. motorola)
  9490. need_lib_prefix=no
  9491. need_version=no
  9492. shlibpath_overrides_runpath=no
  9493. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9494. ;;
  9495. esac
  9496. ;;
  9497. sysv4*MP*)
  9498. if test -d /usr/nec ;then
  9499. version_type=linux
  9500. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9501. soname_spec='$libname${shared_ext}.$major'
  9502. shlibpath_var=LD_LIBRARY_PATH
  9503. fi
  9504. ;;
  9505. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9506. version_type=freebsd-elf
  9507. need_lib_prefix=no
  9508. need_version=no
  9509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9510. soname_spec='${libname}${release}${shared_ext}$major'
  9511. shlibpath_var=LD_LIBRARY_PATH
  9512. shlibpath_overrides_runpath=yes
  9513. hardcode_into_libs=yes
  9514. if test "$with_gnu_ld" = yes; then
  9515. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9516. else
  9517. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9518. case $host_os in
  9519. sco3.2v5*)
  9520. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9521. ;;
  9522. esac
  9523. fi
  9524. sys_lib_dlsearch_path_spec='/usr/lib'
  9525. ;;
  9526. tpf*)
  9527. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9528. version_type=linux
  9529. need_lib_prefix=no
  9530. need_version=no
  9531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9532. shlibpath_var=LD_LIBRARY_PATH
  9533. shlibpath_overrides_runpath=no
  9534. hardcode_into_libs=yes
  9535. ;;
  9536. uts4*)
  9537. version_type=linux
  9538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9539. soname_spec='${libname}${release}${shared_ext}$major'
  9540. shlibpath_var=LD_LIBRARY_PATH
  9541. ;;
  9542. *)
  9543. dynamic_linker=no
  9544. ;;
  9545. esac
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9547. $as_echo "$dynamic_linker" >&6; }
  9548. test "$dynamic_linker" = no && can_build_shared=no
  9549. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9550. if test "$GCC" = yes; then
  9551. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9552. fi
  9553. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9554. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9555. fi
  9556. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9557. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9558. fi
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9560. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9561. hardcode_action=
  9562. if test -n "$hardcode_libdir_flag_spec" ||
  9563. test -n "$runpath_var" ||
  9564. test "X$hardcode_automatic" = "Xyes" ; then
  9565. # We can hardcode non-existent directories.
  9566. if test "$hardcode_direct" != no &&
  9567. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9568. # have to relink, otherwise we might link with an installed library
  9569. # when we should be linking with a yet-to-be-installed one
  9570. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9571. test "$hardcode_minus_L" != no; then
  9572. # Linking always hardcodes the temporary library directory.
  9573. hardcode_action=relink
  9574. else
  9575. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9576. hardcode_action=immediate
  9577. fi
  9578. else
  9579. # We cannot hardcode anything, or else we can only hardcode existing
  9580. # directories.
  9581. hardcode_action=unsupported
  9582. fi
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9584. $as_echo "$hardcode_action" >&6; }
  9585. if test "$hardcode_action" = relink ||
  9586. test "$inherit_rpath" = yes; then
  9587. # Fast installation is not supported
  9588. enable_fast_install=no
  9589. elif test "$shlibpath_overrides_runpath" = yes ||
  9590. test "$enable_shared" = no; then
  9591. # Fast installation is not necessary
  9592. enable_fast_install=needless
  9593. fi
  9594. if test "x$enable_dlopen" != xyes; then
  9595. enable_dlopen=unknown
  9596. enable_dlopen_self=unknown
  9597. enable_dlopen_self_static=unknown
  9598. else
  9599. lt_cv_dlopen=no
  9600. lt_cv_dlopen_libs=
  9601. case $host_os in
  9602. beos*)
  9603. lt_cv_dlopen="load_add_on"
  9604. lt_cv_dlopen_libs=
  9605. lt_cv_dlopen_self=yes
  9606. ;;
  9607. mingw* | pw32* | cegcc*)
  9608. lt_cv_dlopen="LoadLibrary"
  9609. lt_cv_dlopen_libs=
  9610. ;;
  9611. cygwin*)
  9612. lt_cv_dlopen="dlopen"
  9613. lt_cv_dlopen_libs=
  9614. ;;
  9615. darwin*)
  9616. # if libdl is installed we need to link against it
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9618. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9619. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9620. $as_echo_n "(cached) " >&6
  9621. else
  9622. ac_check_lib_save_LIBS=$LIBS
  9623. LIBS="-ldl $LIBS"
  9624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9625. /* end confdefs.h. */
  9626. /* Override any GCC internal prototype to avoid an error.
  9627. Use char because int might match the return type of a GCC
  9628. builtin and then its argument prototype would still apply. */
  9629. #ifdef __cplusplus
  9630. extern "C"
  9631. #endif
  9632. char dlopen ();
  9633. int
  9634. main ()
  9635. {
  9636. return dlopen ();
  9637. ;
  9638. return 0;
  9639. }
  9640. _ACEOF
  9641. if ac_fn_c_try_link "$LINENO"; then :
  9642. ac_cv_lib_dl_dlopen=yes
  9643. else
  9644. ac_cv_lib_dl_dlopen=no
  9645. fi
  9646. rm -f core conftest.err conftest.$ac_objext \
  9647. conftest$ac_exeext conftest.$ac_ext
  9648. LIBS=$ac_check_lib_save_LIBS
  9649. fi
  9650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9651. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9652. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9653. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9654. else
  9655. lt_cv_dlopen="dyld"
  9656. lt_cv_dlopen_libs=
  9657. lt_cv_dlopen_self=yes
  9658. fi
  9659. ;;
  9660. *)
  9661. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9662. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9663. lt_cv_dlopen="shl_load"
  9664. else
  9665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9666. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9667. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9668. $as_echo_n "(cached) " >&6
  9669. else
  9670. ac_check_lib_save_LIBS=$LIBS
  9671. LIBS="-ldld $LIBS"
  9672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9673. /* end confdefs.h. */
  9674. /* Override any GCC internal prototype to avoid an error.
  9675. Use char because int might match the return type of a GCC
  9676. builtin and then its argument prototype would still apply. */
  9677. #ifdef __cplusplus
  9678. extern "C"
  9679. #endif
  9680. char shl_load ();
  9681. int
  9682. main ()
  9683. {
  9684. return shl_load ();
  9685. ;
  9686. return 0;
  9687. }
  9688. _ACEOF
  9689. if ac_fn_c_try_link "$LINENO"; then :
  9690. ac_cv_lib_dld_shl_load=yes
  9691. else
  9692. ac_cv_lib_dld_shl_load=no
  9693. fi
  9694. rm -f core conftest.err conftest.$ac_objext \
  9695. conftest$ac_exeext conftest.$ac_ext
  9696. LIBS=$ac_check_lib_save_LIBS
  9697. fi
  9698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9699. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9700. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9701. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9702. else
  9703. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9704. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9705. lt_cv_dlopen="dlopen"
  9706. else
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9708. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9709. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9710. $as_echo_n "(cached) " >&6
  9711. else
  9712. ac_check_lib_save_LIBS=$LIBS
  9713. LIBS="-ldl $LIBS"
  9714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9715. /* end confdefs.h. */
  9716. /* Override any GCC internal prototype to avoid an error.
  9717. Use char because int might match the return type of a GCC
  9718. builtin and then its argument prototype would still apply. */
  9719. #ifdef __cplusplus
  9720. extern "C"
  9721. #endif
  9722. char dlopen ();
  9723. int
  9724. main ()
  9725. {
  9726. return dlopen ();
  9727. ;
  9728. return 0;
  9729. }
  9730. _ACEOF
  9731. if ac_fn_c_try_link "$LINENO"; then :
  9732. ac_cv_lib_dl_dlopen=yes
  9733. else
  9734. ac_cv_lib_dl_dlopen=no
  9735. fi
  9736. rm -f core conftest.err conftest.$ac_objext \
  9737. conftest$ac_exeext conftest.$ac_ext
  9738. LIBS=$ac_check_lib_save_LIBS
  9739. fi
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9741. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9742. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9743. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9744. else
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9746. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9747. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9748. $as_echo_n "(cached) " >&6
  9749. else
  9750. ac_check_lib_save_LIBS=$LIBS
  9751. LIBS="-lsvld $LIBS"
  9752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9753. /* end confdefs.h. */
  9754. /* Override any GCC internal prototype to avoid an error.
  9755. Use char because int might match the return type of a GCC
  9756. builtin and then its argument prototype would still apply. */
  9757. #ifdef __cplusplus
  9758. extern "C"
  9759. #endif
  9760. char dlopen ();
  9761. int
  9762. main ()
  9763. {
  9764. return dlopen ();
  9765. ;
  9766. return 0;
  9767. }
  9768. _ACEOF
  9769. if ac_fn_c_try_link "$LINENO"; then :
  9770. ac_cv_lib_svld_dlopen=yes
  9771. else
  9772. ac_cv_lib_svld_dlopen=no
  9773. fi
  9774. rm -f core conftest.err conftest.$ac_objext \
  9775. conftest$ac_exeext conftest.$ac_ext
  9776. LIBS=$ac_check_lib_save_LIBS
  9777. fi
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9779. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9780. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9781. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9782. else
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9784. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9785. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9786. $as_echo_n "(cached) " >&6
  9787. else
  9788. ac_check_lib_save_LIBS=$LIBS
  9789. LIBS="-ldld $LIBS"
  9790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9791. /* end confdefs.h. */
  9792. /* Override any GCC internal prototype to avoid an error.
  9793. Use char because int might match the return type of a GCC
  9794. builtin and then its argument prototype would still apply. */
  9795. #ifdef __cplusplus
  9796. extern "C"
  9797. #endif
  9798. char dld_link ();
  9799. int
  9800. main ()
  9801. {
  9802. return dld_link ();
  9803. ;
  9804. return 0;
  9805. }
  9806. _ACEOF
  9807. if ac_fn_c_try_link "$LINENO"; then :
  9808. ac_cv_lib_dld_dld_link=yes
  9809. else
  9810. ac_cv_lib_dld_dld_link=no
  9811. fi
  9812. rm -f core conftest.err conftest.$ac_objext \
  9813. conftest$ac_exeext conftest.$ac_ext
  9814. LIBS=$ac_check_lib_save_LIBS
  9815. fi
  9816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9817. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9818. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9819. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9820. fi
  9821. fi
  9822. fi
  9823. fi
  9824. fi
  9825. fi
  9826. ;;
  9827. esac
  9828. if test "x$lt_cv_dlopen" != xno; then
  9829. enable_dlopen=yes
  9830. else
  9831. enable_dlopen=no
  9832. fi
  9833. case $lt_cv_dlopen in
  9834. dlopen)
  9835. save_CPPFLAGS="$CPPFLAGS"
  9836. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9837. save_LDFLAGS="$LDFLAGS"
  9838. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9839. save_LIBS="$LIBS"
  9840. LIBS="$lt_cv_dlopen_libs $LIBS"
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9842. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9843. if test "${lt_cv_dlopen_self+set}" = set; then :
  9844. $as_echo_n "(cached) " >&6
  9845. else
  9846. if test "$cross_compiling" = yes; then :
  9847. lt_cv_dlopen_self=cross
  9848. else
  9849. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9850. lt_status=$lt_dlunknown
  9851. cat > conftest.$ac_ext <<_LT_EOF
  9852. #line 11426 "configure"
  9853. #include "confdefs.h"
  9854. #if HAVE_DLFCN_H
  9855. #include <dlfcn.h>
  9856. #endif
  9857. #include <stdio.h>
  9858. #ifdef RTLD_GLOBAL
  9859. # define LT_DLGLOBAL RTLD_GLOBAL
  9860. #else
  9861. # ifdef DL_GLOBAL
  9862. # define LT_DLGLOBAL DL_GLOBAL
  9863. # else
  9864. # define LT_DLGLOBAL 0
  9865. # endif
  9866. #endif
  9867. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9868. find out it does not work in some platform. */
  9869. #ifndef LT_DLLAZY_OR_NOW
  9870. # ifdef RTLD_LAZY
  9871. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9872. # else
  9873. # ifdef DL_LAZY
  9874. # define LT_DLLAZY_OR_NOW DL_LAZY
  9875. # else
  9876. # ifdef RTLD_NOW
  9877. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9878. # else
  9879. # ifdef DL_NOW
  9880. # define LT_DLLAZY_OR_NOW DL_NOW
  9881. # else
  9882. # define LT_DLLAZY_OR_NOW 0
  9883. # endif
  9884. # endif
  9885. # endif
  9886. # endif
  9887. #endif
  9888. /* When -fvisbility=hidden is used, assume the code has been annotated
  9889. correspondingly for the symbols needed. */
  9890. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9891. void fnord () __attribute__((visibility("default")));
  9892. #endif
  9893. void fnord () { int i=42; }
  9894. int main ()
  9895. {
  9896. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9897. int status = $lt_dlunknown;
  9898. if (self)
  9899. {
  9900. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9901. else
  9902. {
  9903. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9904. else puts (dlerror ());
  9905. }
  9906. /* dlclose (self); */
  9907. }
  9908. else
  9909. puts (dlerror ());
  9910. return status;
  9911. }
  9912. _LT_EOF
  9913. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9914. (eval $ac_link) 2>&5
  9915. ac_status=$?
  9916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9917. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9918. (./conftest; exit; ) >&5 2>/dev/null
  9919. lt_status=$?
  9920. case x$lt_status in
  9921. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9922. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9923. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9924. esac
  9925. else :
  9926. # compilation failed
  9927. lt_cv_dlopen_self=no
  9928. fi
  9929. fi
  9930. rm -fr conftest*
  9931. fi
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9933. $as_echo "$lt_cv_dlopen_self" >&6; }
  9934. if test "x$lt_cv_dlopen_self" = xyes; then
  9935. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9937. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9938. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9939. $as_echo_n "(cached) " >&6
  9940. else
  9941. if test "$cross_compiling" = yes; then :
  9942. lt_cv_dlopen_self_static=cross
  9943. else
  9944. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9945. lt_status=$lt_dlunknown
  9946. cat > conftest.$ac_ext <<_LT_EOF
  9947. #line 11532 "configure"
  9948. #include "confdefs.h"
  9949. #if HAVE_DLFCN_H
  9950. #include <dlfcn.h>
  9951. #endif
  9952. #include <stdio.h>
  9953. #ifdef RTLD_GLOBAL
  9954. # define LT_DLGLOBAL RTLD_GLOBAL
  9955. #else
  9956. # ifdef DL_GLOBAL
  9957. # define LT_DLGLOBAL DL_GLOBAL
  9958. # else
  9959. # define LT_DLGLOBAL 0
  9960. # endif
  9961. #endif
  9962. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9963. find out it does not work in some platform. */
  9964. #ifndef LT_DLLAZY_OR_NOW
  9965. # ifdef RTLD_LAZY
  9966. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9967. # else
  9968. # ifdef DL_LAZY
  9969. # define LT_DLLAZY_OR_NOW DL_LAZY
  9970. # else
  9971. # ifdef RTLD_NOW
  9972. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9973. # else
  9974. # ifdef DL_NOW
  9975. # define LT_DLLAZY_OR_NOW DL_NOW
  9976. # else
  9977. # define LT_DLLAZY_OR_NOW 0
  9978. # endif
  9979. # endif
  9980. # endif
  9981. # endif
  9982. #endif
  9983. /* When -fvisbility=hidden is used, assume the code has been annotated
  9984. correspondingly for the symbols needed. */
  9985. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9986. void fnord () __attribute__((visibility("default")));
  9987. #endif
  9988. void fnord () { int i=42; }
  9989. int main ()
  9990. {
  9991. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9992. int status = $lt_dlunknown;
  9993. if (self)
  9994. {
  9995. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9996. else
  9997. {
  9998. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9999. else puts (dlerror ());
  10000. }
  10001. /* dlclose (self); */
  10002. }
  10003. else
  10004. puts (dlerror ());
  10005. return status;
  10006. }
  10007. _LT_EOF
  10008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10009. (eval $ac_link) 2>&5
  10010. ac_status=$?
  10011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10012. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10013. (./conftest; exit; ) >&5 2>/dev/null
  10014. lt_status=$?
  10015. case x$lt_status in
  10016. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10017. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10018. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10019. esac
  10020. else :
  10021. # compilation failed
  10022. lt_cv_dlopen_self_static=no
  10023. fi
  10024. fi
  10025. rm -fr conftest*
  10026. fi
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10028. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10029. fi
  10030. CPPFLAGS="$save_CPPFLAGS"
  10031. LDFLAGS="$save_LDFLAGS"
  10032. LIBS="$save_LIBS"
  10033. ;;
  10034. esac
  10035. case $lt_cv_dlopen_self in
  10036. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10037. *) enable_dlopen_self=unknown ;;
  10038. esac
  10039. case $lt_cv_dlopen_self_static in
  10040. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10041. *) enable_dlopen_self_static=unknown ;;
  10042. esac
  10043. fi
  10044. striplib=
  10045. old_striplib=
  10046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10047. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10048. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10049. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10050. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10052. $as_echo "yes" >&6; }
  10053. else
  10054. # FIXME - insert some real tests, host_os isn't really good enough
  10055. case $host_os in
  10056. darwin*)
  10057. if test -n "$STRIP" ; then
  10058. striplib="$STRIP -x"
  10059. old_striplib="$STRIP -S"
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10061. $as_echo "yes" >&6; }
  10062. else
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10064. $as_echo "no" >&6; }
  10065. fi
  10066. ;;
  10067. *)
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10069. $as_echo "no" >&6; }
  10070. ;;
  10071. esac
  10072. fi
  10073. # Report which library types will actually be built
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10075. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10077. $as_echo "$can_build_shared" >&6; }
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10079. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10080. test "$can_build_shared" = "no" && enable_shared=no
  10081. # On AIX, shared libraries and static libraries use the same namespace, and
  10082. # are all built from PIC.
  10083. case $host_os in
  10084. aix3*)
  10085. test "$enable_shared" = yes && enable_static=no
  10086. if test -n "$RANLIB"; then
  10087. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10088. postinstall_cmds='$RANLIB $lib'
  10089. fi
  10090. ;;
  10091. aix[4-9]*)
  10092. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10093. test "$enable_shared" = yes && enable_static=no
  10094. fi
  10095. ;;
  10096. esac
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10098. $as_echo "$enable_shared" >&6; }
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10100. $as_echo_n "checking whether to build static libraries... " >&6; }
  10101. # Make sure either enable_shared or enable_static is yes.
  10102. test "$enable_shared" = yes || enable_static=yes
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10104. $as_echo "$enable_static" >&6; }
  10105. fi
  10106. ac_ext=c
  10107. ac_cpp='$CPP $CPPFLAGS'
  10108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10111. CC="$lt_save_CC"
  10112. ac_config_commands="$ac_config_commands libtool"
  10113. # Only expand once:
  10114. # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
  10115. # The tests for host and target for $enable_largefile require
  10116. # canonical names.
  10117. # As the $enable_largefile decision depends on --enable-plugins we must set it
  10118. # even in directories otherwise not depending on the $plugins option.
  10119. maybe_plugins=no
  10120. for ac_header in dlfcn.h
  10121. do :
  10122. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  10123. "
  10124. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  10125. cat >>confdefs.h <<_ACEOF
  10126. #define HAVE_DLFCN_H 1
  10127. _ACEOF
  10128. maybe_plugins=yes
  10129. fi
  10130. done
  10131. for ac_header in windows.h
  10132. do :
  10133. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  10134. "
  10135. if test "x$ac_cv_header_windows_h" = x""yes; then :
  10136. cat >>confdefs.h <<_ACEOF
  10137. #define HAVE_WINDOWS_H 1
  10138. _ACEOF
  10139. maybe_plugins=yes
  10140. fi
  10141. done
  10142. # Check whether --enable-plugins was given.
  10143. if test "${enable_plugins+set}" = set; then :
  10144. enableval=$enable_plugins; case "${enableval}" in
  10145. no) plugins=no ;;
  10146. *) plugins=yes
  10147. if test "$maybe_plugins" != "yes" ; then
  10148. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  10149. fi ;;
  10150. esac
  10151. else
  10152. plugins=$maybe_plugins
  10153. fi
  10154. if test "$plugins" = "yes"; then
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  10156. $as_echo_n "checking for library containing dlopen... " >&6; }
  10157. if test "${ac_cv_search_dlopen+set}" = set; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. ac_func_search_save_LIBS=$LIBS
  10161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10162. /* end confdefs.h. */
  10163. /* Override any GCC internal prototype to avoid an error.
  10164. Use char because int might match the return type of a GCC
  10165. builtin and then its argument prototype would still apply. */
  10166. #ifdef __cplusplus
  10167. extern "C"
  10168. #endif
  10169. char dlopen ();
  10170. int
  10171. main ()
  10172. {
  10173. return dlopen ();
  10174. ;
  10175. return 0;
  10176. }
  10177. _ACEOF
  10178. for ac_lib in '' dl; do
  10179. if test -z "$ac_lib"; then
  10180. ac_res="none required"
  10181. else
  10182. ac_res=-l$ac_lib
  10183. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10184. fi
  10185. if ac_fn_c_try_link "$LINENO"; then :
  10186. ac_cv_search_dlopen=$ac_res
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext \
  10189. conftest$ac_exeext
  10190. if test "${ac_cv_search_dlopen+set}" = set; then :
  10191. break
  10192. fi
  10193. done
  10194. if test "${ac_cv_search_dlopen+set}" = set; then :
  10195. else
  10196. ac_cv_search_dlopen=no
  10197. fi
  10198. rm conftest.$ac_ext
  10199. LIBS=$ac_func_search_save_LIBS
  10200. fi
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  10202. $as_echo "$ac_cv_search_dlopen" >&6; }
  10203. ac_res=$ac_cv_search_dlopen
  10204. if test "$ac_res" != no; then :
  10205. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10206. fi
  10207. fi
  10208. case "${host}" in
  10209. sparc-*-solaris*|i[3-7]86-*-solaris*)
  10210. # On native 32bit sparc and ia32 solaris, large-file and procfs support
  10211. # are mutually exclusive; and without procfs support, the bfd/ elf module
  10212. # cannot provide certain routines such as elfcore_write_prpsinfo
  10213. # or elfcore_write_prstatus. So unless the user explicitly requested
  10214. # large-file support through the --enable-largefile switch, disable
  10215. # large-file support in favor of procfs support.
  10216. test "${target}" = "${host}" -a "x$plugins" = xno \
  10217. && : ${enable_largefile="no"}
  10218. ;;
  10219. esac
  10220. # Check whether --enable-largefile was given.
  10221. if test "${enable_largefile+set}" = set; then :
  10222. enableval=$enable_largefile;
  10223. fi
  10224. if test "$enable_largefile" != no; then
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10226. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10227. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  10228. $as_echo_n "(cached) " >&6
  10229. else
  10230. ac_cv_sys_largefile_CC=no
  10231. if test "$GCC" != yes; then
  10232. ac_save_CC=$CC
  10233. while :; do
  10234. # IRIX 6.2 and later do not support large files by default,
  10235. # so use the C compiler's -n32 option if that helps.
  10236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10237. /* end confdefs.h. */
  10238. #include <sys/types.h>
  10239. /* Check that off_t can represent 2**63 - 1 correctly.
  10240. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10241. since some C++ compilers masquerading as C compilers
  10242. incorrectly reject 9223372036854775807. */
  10243. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10244. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10245. && LARGE_OFF_T % 2147483647 == 1)
  10246. ? 1 : -1];
  10247. int
  10248. main ()
  10249. {
  10250. ;
  10251. return 0;
  10252. }
  10253. _ACEOF
  10254. if ac_fn_c_try_compile "$LINENO"; then :
  10255. break
  10256. fi
  10257. rm -f core conftest.err conftest.$ac_objext
  10258. CC="$CC -n32"
  10259. if ac_fn_c_try_compile "$LINENO"; then :
  10260. ac_cv_sys_largefile_CC=' -n32'; break
  10261. fi
  10262. rm -f core conftest.err conftest.$ac_objext
  10263. break
  10264. done
  10265. CC=$ac_save_CC
  10266. rm -f conftest.$ac_ext
  10267. fi
  10268. fi
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10270. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10271. if test "$ac_cv_sys_largefile_CC" != no; then
  10272. CC=$CC$ac_cv_sys_largefile_CC
  10273. fi
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10275. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10276. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  10277. $as_echo_n "(cached) " >&6
  10278. else
  10279. while :; do
  10280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10281. /* end confdefs.h. */
  10282. #include <sys/types.h>
  10283. /* Check that off_t can represent 2**63 - 1 correctly.
  10284. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10285. since some C++ compilers masquerading as C compilers
  10286. incorrectly reject 9223372036854775807. */
  10287. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10288. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10289. && LARGE_OFF_T % 2147483647 == 1)
  10290. ? 1 : -1];
  10291. int
  10292. main ()
  10293. {
  10294. ;
  10295. return 0;
  10296. }
  10297. _ACEOF
  10298. if ac_fn_c_try_compile "$LINENO"; then :
  10299. ac_cv_sys_file_offset_bits=no; break
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10303. /* end confdefs.h. */
  10304. #define _FILE_OFFSET_BITS 64
  10305. #include <sys/types.h>
  10306. /* Check that off_t can represent 2**63 - 1 correctly.
  10307. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10308. since some C++ compilers masquerading as C compilers
  10309. incorrectly reject 9223372036854775807. */
  10310. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10311. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10312. && LARGE_OFF_T % 2147483647 == 1)
  10313. ? 1 : -1];
  10314. int
  10315. main ()
  10316. {
  10317. ;
  10318. return 0;
  10319. }
  10320. _ACEOF
  10321. if ac_fn_c_try_compile "$LINENO"; then :
  10322. ac_cv_sys_file_offset_bits=64; break
  10323. fi
  10324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10325. ac_cv_sys_file_offset_bits=unknown
  10326. break
  10327. done
  10328. fi
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10330. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10331. case $ac_cv_sys_file_offset_bits in #(
  10332. no | unknown) ;;
  10333. *)
  10334. cat >>confdefs.h <<_ACEOF
  10335. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10336. _ACEOF
  10337. ;;
  10338. esac
  10339. rm -rf conftest*
  10340. if test $ac_cv_sys_file_offset_bits = unknown; then
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10342. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10343. if test "${ac_cv_sys_large_files+set}" = set; then :
  10344. $as_echo_n "(cached) " >&6
  10345. else
  10346. while :; do
  10347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10348. /* end confdefs.h. */
  10349. #include <sys/types.h>
  10350. /* Check that off_t can represent 2**63 - 1 correctly.
  10351. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10352. since some C++ compilers masquerading as C compilers
  10353. incorrectly reject 9223372036854775807. */
  10354. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10355. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10356. && LARGE_OFF_T % 2147483647 == 1)
  10357. ? 1 : -1];
  10358. int
  10359. main ()
  10360. {
  10361. ;
  10362. return 0;
  10363. }
  10364. _ACEOF
  10365. if ac_fn_c_try_compile "$LINENO"; then :
  10366. ac_cv_sys_large_files=no; break
  10367. fi
  10368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10370. /* end confdefs.h. */
  10371. #define _LARGE_FILES 1
  10372. #include <sys/types.h>
  10373. /* Check that off_t can represent 2**63 - 1 correctly.
  10374. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10375. since some C++ compilers masquerading as C compilers
  10376. incorrectly reject 9223372036854775807. */
  10377. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10378. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10379. && LARGE_OFF_T % 2147483647 == 1)
  10380. ? 1 : -1];
  10381. int
  10382. main ()
  10383. {
  10384. ;
  10385. return 0;
  10386. }
  10387. _ACEOF
  10388. if ac_fn_c_try_compile "$LINENO"; then :
  10389. ac_cv_sys_large_files=1; break
  10390. fi
  10391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10392. ac_cv_sys_large_files=unknown
  10393. break
  10394. done
  10395. fi
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10397. $as_echo "$ac_cv_sys_large_files" >&6; }
  10398. case $ac_cv_sys_large_files in #(
  10399. no | unknown) ;;
  10400. *)
  10401. cat >>confdefs.h <<_ACEOF
  10402. #define _LARGE_FILES $ac_cv_sys_large_files
  10403. _ACEOF
  10404. ;;
  10405. esac
  10406. rm -rf conftest*
  10407. fi
  10408. fi
  10409. if test "$plugins" = "yes"; then
  10410. PLUGINS_TRUE=
  10411. PLUGINS_FALSE='#'
  10412. else
  10413. PLUGINS_TRUE='#'
  10414. PLUGINS_FALSE=
  10415. fi
  10416. if test "$plugins" = "yes"; then
  10417. enable_targets="$enable_targets plugin"
  10418. fi
  10419. # Check whether --enable-64-bit-bfd was given.
  10420. if test "${enable_64_bit_bfd+set}" = set; then :
  10421. enableval=$enable_64_bit_bfd; case "${enableval}" in
  10422. yes) want64=true ;;
  10423. no) want64=false ;;
  10424. *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
  10425. esac
  10426. else
  10427. want64=false
  10428. fi
  10429. # Check whether --enable-targets was given.
  10430. if test "${enable_targets+set}" = set; then :
  10431. enableval=$enable_targets; case "${enableval}" in
  10432. yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
  10433. ;;
  10434. no) enable_targets= ;;
  10435. *) enable_targets=$enableval ;;
  10436. esac
  10437. fi
  10438. # Check whether --with-mmap was given.
  10439. if test "${with_mmap+set}" = set; then :
  10440. withval=$with_mmap; case "${withval}" in
  10441. yes) want_mmap=true ;;
  10442. no) want_mmap=false ;;
  10443. *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
  10444. esac
  10445. else
  10446. want_mmap=false
  10447. fi
  10448. # Check whether --enable-secureplt was given.
  10449. if test "${enable_secureplt+set}" = set; then :
  10450. enableval=$enable_secureplt; case "${enableval}" in
  10451. yes) use_secureplt=true ;;
  10452. no) use_secureplt=false ;;
  10453. *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
  10454. esac
  10455. else
  10456. use_secureplt=true
  10457. fi
  10458. if test $use_secureplt = true; then
  10459. $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
  10460. fi
  10461. # Check whether --enable-leading-mingw64-underscores was given.
  10462. if test "${enable_leading_mingw64_underscores+set}" = set; then :
  10463. enableval=$enable_leading_mingw64_underscores;
  10464. fi
  10465. if test x"$enable_leading_mingw64_underscores" = xyes ; then :
  10466. $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
  10467. fi
  10468. DEBUGDIR=${libdir}/debug
  10469. # Check whether --with-separate-debug-dir was given.
  10470. if test "${with_separate_debug_dir+set}" = set; then :
  10471. withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
  10472. fi
  10473. # Check to see if we should allow the generation of
  10474. # symbols with the ELF standard's STT_COMMON type.
  10475. # Check whether --enable-elf-stt-common was given.
  10476. if test "${enable_elf_stt_common+set}" = set; then :
  10477. enableval=$enable_elf_stt_common; case "${enableval}" in
  10478. yes) want_elf_stt_common=true ;;
  10479. no) want_elf_stt_common=false ;;
  10480. *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
  10481. esac
  10482. else
  10483. # We have to choose a default behaviour. For native builds we could
  10484. # test whether the loader supports the STT_COMMON type, but that would
  10485. # mean that built binaries could not be exported to older systems where
  10486. # the loader does not support it. So by default we always choose to
  10487. # disable this feature.
  10488. want_elf_stt_common=false
  10489. fi
  10490. if test $want_elf_stt_common = true; then
  10491. $as_echo "#define USE_STT_COMMON 1" >>confdefs.h
  10492. fi
  10493. # Check whether --with-pkgversion was given.
  10494. if test "${with_pkgversion+set}" = set; then :
  10495. withval=$with_pkgversion; case "$withval" in
  10496. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10497. no) PKGVERSION= ;;
  10498. *) PKGVERSION="($withval) " ;;
  10499. esac
  10500. else
  10501. PKGVERSION="(GNU Binutils) "
  10502. fi
  10503. # Check whether --with-bugurl was given.
  10504. if test "${with_bugurl+set}" = set; then :
  10505. withval=$with_bugurl; case "$withval" in
  10506. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10507. no) BUGURL=
  10508. ;;
  10509. *) BUGURL="$withval"
  10510. ;;
  10511. esac
  10512. else
  10513. BUGURL="http://www.sourceware.org/bugzilla/"
  10514. fi
  10515. case ${BUGURL} in
  10516. "")
  10517. REPORT_BUGS_TO=
  10518. REPORT_BUGS_TEXI=
  10519. ;;
  10520. *)
  10521. REPORT_BUGS_TO="<$BUGURL>"
  10522. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10523. ;;
  10524. esac;
  10525. # Set the 'development' global.
  10526. . $srcdir/../bfd/development.sh
  10527. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10529. /* end confdefs.h. */
  10530. __GNUC__
  10531. _ACEOF
  10532. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10533. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  10534. else
  10535. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  10536. fi
  10537. rm -f conftest*
  10538. # Check whether --enable-werror was given.
  10539. if test "${enable_werror+set}" = set; then :
  10540. enableval=$enable_werror; case "${enableval}" in
  10541. yes | y) ERROR_ON_WARNING="yes" ;;
  10542. no | n) ERROR_ON_WARNING="no" ;;
  10543. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10544. esac
  10545. fi
  10546. # Disable -Wformat by default when using gcc on mingw
  10547. case "${host}" in
  10548. *-*-mingw32*)
  10549. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10550. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  10551. fi
  10552. ;;
  10553. *) ;;
  10554. esac
  10555. # Enable -Werror by default when using gcc. Turn it off for releases.
  10556. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  10557. ERROR_ON_WARNING=yes
  10558. fi
  10559. NO_WERROR=
  10560. if test "${ERROR_ON_WARNING}" = yes ; then
  10561. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  10562. NO_WERROR="-Wno-error"
  10563. fi
  10564. if test "${GCC}" = yes ; then
  10565. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10566. fi
  10567. # Check whether --enable-build-warnings was given.
  10568. if test "${enable_build_warnings+set}" = set; then :
  10569. enableval=$enable_build_warnings; case "${enableval}" in
  10570. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
  10571. no) if test "${GCC}" = yes ; then
  10572. WARN_CFLAGS="-w"
  10573. fi;;
  10574. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10575. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
  10576. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10577. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
  10578. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10579. esac
  10580. fi
  10581. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  10582. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  10583. fi
  10584. ac_config_headers="$ac_config_headers config.h:config.in"
  10585. # PR 14072
  10586. if test -z "$target" ; then
  10587. as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
  10588. fi
  10589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10590. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10591. # Check whether --enable-maintainer-mode was given.
  10592. if test "${enable_maintainer_mode+set}" = set; then :
  10593. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10594. else
  10595. USE_MAINTAINER_MODE=no
  10596. fi
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10598. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10599. if test $USE_MAINTAINER_MODE = yes; then
  10600. MAINTAINER_MODE_TRUE=
  10601. MAINTAINER_MODE_FALSE='#'
  10602. else
  10603. MAINTAINER_MODE_TRUE='#'
  10604. MAINTAINER_MODE_FALSE=
  10605. fi
  10606. MAINT=$MAINTAINER_MODE_TRUE
  10607. if false; then
  10608. GENINSRC_NEVER_TRUE=
  10609. GENINSRC_NEVER_FALSE='#'
  10610. else
  10611. GENINSRC_NEVER_TRUE='#'
  10612. GENINSRC_NEVER_FALSE=
  10613. fi
  10614. case ${build_alias} in
  10615. "") build_noncanonical=${build} ;;
  10616. *) build_noncanonical=${build_alias} ;;
  10617. esac
  10618. case ${host_alias} in
  10619. "") host_noncanonical=${build_noncanonical} ;;
  10620. *) host_noncanonical=${host_alias} ;;
  10621. esac
  10622. case ${target_alias} in
  10623. "") target_noncanonical=${host_noncanonical} ;;
  10624. *) target_noncanonical=${target_alias} ;;
  10625. esac
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
  10627. $as_echo_n "checking whether to install libbfd... " >&6; }
  10628. # Check whether --enable-install-libbfd was given.
  10629. if test "${enable_install_libbfd+set}" = set; then :
  10630. enableval=$enable_install_libbfd; install_libbfd_p=$enableval
  10631. else
  10632. if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
  10633. install_libbfd_p=yes
  10634. else
  10635. install_libbfd_p=no
  10636. fi
  10637. fi
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
  10639. $as_echo "$install_libbfd_p" >&6; }
  10640. if test $install_libbfd_p = yes; then
  10641. INSTALL_LIBBFD_TRUE=
  10642. INSTALL_LIBBFD_FALSE='#'
  10643. else
  10644. INSTALL_LIBBFD_TRUE='#'
  10645. INSTALL_LIBBFD_FALSE=
  10646. fi
  10647. # Need _noncanonical variables for this.
  10648. # libbfd.a is a host library containing target dependent code
  10649. bfdlibdir='$(libdir)'
  10650. bfdincludedir='$(includedir)'
  10651. if test "${host}" != "${target}"; then
  10652. bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
  10653. bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
  10654. fi
  10655. host64=false
  10656. target64=false
  10657. bfd_default_target_size=32
  10658. # host stuff:
  10659. ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru uk"
  10660. # If we haven't got the data from the intl directory,
  10661. # assume NLS is disabled.
  10662. USE_NLS=no
  10663. LIBINTL=
  10664. LIBINTL_DEP=
  10665. INCINTL=
  10666. XGETTEXT=
  10667. GMSGFMT=
  10668. POSUB=
  10669. if test -f ../intl/config.intl; then
  10670. . ../intl/config.intl
  10671. fi
  10672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10673. $as_echo_n "checking whether NLS is requested... " >&6; }
  10674. if test x"$USE_NLS" != xyes; then
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10676. $as_echo "no" >&6; }
  10677. else
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10679. $as_echo "yes" >&6; }
  10680. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  10682. $as_echo_n "checking for catalogs to be installed... " >&6; }
  10683. # Look for .po and .gmo files in the source directory.
  10684. CATALOGS=
  10685. XLINGUAS=
  10686. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  10687. # If there aren't any .gmo files the shell will give us the
  10688. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  10689. # weeded out.
  10690. case "$cat" in *\**)
  10691. continue;;
  10692. esac
  10693. # The quadruple backslash is collapsed to a double backslash
  10694. # by the backticks, then collapsed again by the double quotes,
  10695. # leaving us with one backslash in the sed expression (right
  10696. # before the dot that mustn't act as a wildcard).
  10697. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  10698. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  10699. # The user is allowed to set LINGUAS to a list of languages to
  10700. # install catalogs for. If it's empty that means "all of them."
  10701. if test "x$LINGUAS" = x; then
  10702. CATALOGS="$CATALOGS $cat"
  10703. XLINGUAS="$XLINGUAS $lang"
  10704. else
  10705. case "$LINGUAS" in *$lang*)
  10706. CATALOGS="$CATALOGS $cat"
  10707. XLINGUAS="$XLINGUAS $lang"
  10708. ;;
  10709. esac
  10710. fi
  10711. done
  10712. LINGUAS="$XLINGUAS"
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  10714. $as_echo "$LINGUAS" >&6; }
  10715. DATADIRNAME=share
  10716. INSTOBJEXT=.mo
  10717. GENCAT=gencat
  10718. CATOBJEXT=.gmo
  10719. fi
  10720. MKINSTALLDIRS=
  10721. if test -n "$ac_aux_dir"; then
  10722. case "$ac_aux_dir" in
  10723. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  10724. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  10725. esac
  10726. fi
  10727. if test -z "$MKINSTALLDIRS"; then
  10728. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  10729. fi
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10731. $as_echo_n "checking whether NLS is requested... " >&6; }
  10732. # Check whether --enable-nls was given.
  10733. if test "${enable_nls+set}" = set; then :
  10734. enableval=$enable_nls; USE_NLS=$enableval
  10735. else
  10736. USE_NLS=yes
  10737. fi
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  10739. $as_echo "$USE_NLS" >&6; }
  10740. # Prepare PATH_SEPARATOR.
  10741. # The user is always right.
  10742. if test "${PATH_SEPARATOR+set}" != set; then
  10743. echo "#! /bin/sh" >conf$$.sh
  10744. echo "exit 0" >>conf$$.sh
  10745. chmod +x conf$$.sh
  10746. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10747. PATH_SEPARATOR=';'
  10748. else
  10749. PATH_SEPARATOR=:
  10750. fi
  10751. rm -f conf$$.sh
  10752. fi
  10753. # Find out how to test for executable files. Don't use a zero-byte file,
  10754. # as systems may use methods other than mode bits to determine executability.
  10755. cat >conf$$.file <<_ASEOF
  10756. #! /bin/sh
  10757. exit 0
  10758. _ASEOF
  10759. chmod +x conf$$.file
  10760. if test -x conf$$.file >/dev/null 2>&1; then
  10761. ac_executable_p="test -x"
  10762. else
  10763. ac_executable_p="test -f"
  10764. fi
  10765. rm -f conf$$.file
  10766. # Extract the first word of "msgfmt", so it can be a program name with args.
  10767. set dummy msgfmt; ac_word=$2
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10769. $as_echo_n "checking for $ac_word... " >&6; }
  10770. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  10771. $as_echo_n "(cached) " >&6
  10772. else
  10773. case "$MSGFMT" in
  10774. [\\/]* | ?:[\\/]*)
  10775. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10776. ;;
  10777. *)
  10778. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10779. for ac_dir in $PATH; do
  10780. IFS="$ac_save_IFS"
  10781. test -z "$ac_dir" && ac_dir=.
  10782. for ac_exec_ext in '' $ac_executable_extensions; do
  10783. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10784. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  10785. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10786. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10787. break 2
  10788. fi
  10789. fi
  10790. done
  10791. done
  10792. IFS="$ac_save_IFS"
  10793. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10794. ;;
  10795. esac
  10796. fi
  10797. MSGFMT="$ac_cv_path_MSGFMT"
  10798. if test "$MSGFMT" != ":"; then
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  10800. $as_echo "$MSGFMT" >&6; }
  10801. else
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10803. $as_echo "no" >&6; }
  10804. fi
  10805. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10806. set dummy gmsgfmt; ac_word=$2
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10808. $as_echo_n "checking for $ac_word... " >&6; }
  10809. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  10810. $as_echo_n "(cached) " >&6
  10811. else
  10812. case $GMSGFMT in
  10813. [\\/]* | ?:[\\/]*)
  10814. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10815. ;;
  10816. *)
  10817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10818. for as_dir in $PATH
  10819. do
  10820. IFS=$as_save_IFS
  10821. test -z "$as_dir" && as_dir=.
  10822. for ac_exec_ext in '' $ac_executable_extensions; do
  10823. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10824. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10826. break 2
  10827. fi
  10828. done
  10829. done
  10830. IFS=$as_save_IFS
  10831. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10832. ;;
  10833. esac
  10834. fi
  10835. GMSGFMT=$ac_cv_path_GMSGFMT
  10836. if test -n "$GMSGFMT"; then
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  10838. $as_echo "$GMSGFMT" >&6; }
  10839. else
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10841. $as_echo "no" >&6; }
  10842. fi
  10843. # Prepare PATH_SEPARATOR.
  10844. # The user is always right.
  10845. if test "${PATH_SEPARATOR+set}" != set; then
  10846. echo "#! /bin/sh" >conf$$.sh
  10847. echo "exit 0" >>conf$$.sh
  10848. chmod +x conf$$.sh
  10849. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10850. PATH_SEPARATOR=';'
  10851. else
  10852. PATH_SEPARATOR=:
  10853. fi
  10854. rm -f conf$$.sh
  10855. fi
  10856. # Find out how to test for executable files. Don't use a zero-byte file,
  10857. # as systems may use methods other than mode bits to determine executability.
  10858. cat >conf$$.file <<_ASEOF
  10859. #! /bin/sh
  10860. exit 0
  10861. _ASEOF
  10862. chmod +x conf$$.file
  10863. if test -x conf$$.file >/dev/null 2>&1; then
  10864. ac_executable_p="test -x"
  10865. else
  10866. ac_executable_p="test -f"
  10867. fi
  10868. rm -f conf$$.file
  10869. # Extract the first word of "xgettext", so it can be a program name with args.
  10870. set dummy xgettext; ac_word=$2
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10872. $as_echo_n "checking for $ac_word... " >&6; }
  10873. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  10874. $as_echo_n "(cached) " >&6
  10875. else
  10876. case "$XGETTEXT" in
  10877. [\\/]* | ?:[\\/]*)
  10878. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10879. ;;
  10880. *)
  10881. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10882. for ac_dir in $PATH; do
  10883. IFS="$ac_save_IFS"
  10884. test -z "$ac_dir" && ac_dir=.
  10885. for ac_exec_ext in '' $ac_executable_extensions; do
  10886. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10887. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10888. (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
  10889. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10890. break 2
  10891. fi
  10892. fi
  10893. done
  10894. done
  10895. IFS="$ac_save_IFS"
  10896. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10897. ;;
  10898. esac
  10899. fi
  10900. XGETTEXT="$ac_cv_path_XGETTEXT"
  10901. if test "$XGETTEXT" != ":"; then
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  10903. $as_echo "$XGETTEXT" >&6; }
  10904. else
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10906. $as_echo "no" >&6; }
  10907. fi
  10908. rm -f messages.po
  10909. # Prepare PATH_SEPARATOR.
  10910. # The user is always right.
  10911. if test "${PATH_SEPARATOR+set}" != set; then
  10912. echo "#! /bin/sh" >conf$$.sh
  10913. echo "exit 0" >>conf$$.sh
  10914. chmod +x conf$$.sh
  10915. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10916. PATH_SEPARATOR=';'
  10917. else
  10918. PATH_SEPARATOR=:
  10919. fi
  10920. rm -f conf$$.sh
  10921. fi
  10922. # Find out how to test for executable files. Don't use a zero-byte file,
  10923. # as systems may use methods other than mode bits to determine executability.
  10924. cat >conf$$.file <<_ASEOF
  10925. #! /bin/sh
  10926. exit 0
  10927. _ASEOF
  10928. chmod +x conf$$.file
  10929. if test -x conf$$.file >/dev/null 2>&1; then
  10930. ac_executable_p="test -x"
  10931. else
  10932. ac_executable_p="test -f"
  10933. fi
  10934. rm -f conf$$.file
  10935. # Extract the first word of "msgmerge", so it can be a program name with args.
  10936. set dummy msgmerge; ac_word=$2
  10937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10938. $as_echo_n "checking for $ac_word... " >&6; }
  10939. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  10940. $as_echo_n "(cached) " >&6
  10941. else
  10942. case "$MSGMERGE" in
  10943. [\\/]* | ?:[\\/]*)
  10944. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10945. ;;
  10946. *)
  10947. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10948. for ac_dir in $PATH; do
  10949. IFS="$ac_save_IFS"
  10950. test -z "$ac_dir" && ac_dir=.
  10951. for ac_exec_ext in '' $ac_executable_extensions; do
  10952. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10953. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  10954. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10955. break 2
  10956. fi
  10957. fi
  10958. done
  10959. done
  10960. IFS="$ac_save_IFS"
  10961. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10962. ;;
  10963. esac
  10964. fi
  10965. MSGMERGE="$ac_cv_path_MSGMERGE"
  10966. if test "$MSGMERGE" != ":"; then
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  10968. $as_echo "$MSGMERGE" >&6; }
  10969. else
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10971. $as_echo "no" >&6; }
  10972. fi
  10973. if test "$GMSGFMT" != ":"; then
  10974. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  10975. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10976. : ;
  10977. else
  10978. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  10980. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  10981. GMSGFMT=":"
  10982. fi
  10983. fi
  10984. if test "$XGETTEXT" != ":"; then
  10985. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10986. (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
  10987. : ;
  10988. else
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  10990. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  10991. XGETTEXT=":"
  10992. fi
  10993. rm -f messages.po
  10994. fi
  10995. ac_config_commands="$ac_config_commands default-1"
  10996. # Permit host specific settings.
  10997. . ${srcdir}/configure.host
  10998. BFD_HOST_64BIT_LONG=0
  10999. BFD_HOST_64BIT_LONG_LONG=0
  11000. BFD_HOST_64_BIT_DEFINED=0
  11001. BFD_HOST_64_BIT=
  11002. BFD_HOST_U_64_BIT=
  11003. BFD_HOSTPTR_T="unsigned long"
  11004. # The cast to long int works around a bug in the HP C Compiler
  11005. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11006. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11007. # This bug is HP SR number 8606223364.
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  11009. $as_echo_n "checking size of long long... " >&6; }
  11010. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  11011. $as_echo_n "(cached) " >&6
  11012. else
  11013. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  11014. else
  11015. if test "$ac_cv_type_long_long" = yes; then
  11016. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11017. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11018. { as_fn_set_status 77
  11019. as_fn_error "cannot compute sizeof (long long)
  11020. See \`config.log' for more details." "$LINENO" 5; }; }
  11021. else
  11022. ac_cv_sizeof_long_long=0
  11023. fi
  11024. fi
  11025. fi
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  11027. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11028. cat >>confdefs.h <<_ACEOF
  11029. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11030. _ACEOF
  11031. # The cast to long int works around a bug in the HP C Compiler
  11032. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11033. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11034. # This bug is HP SR number 8606223364.
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  11036. $as_echo_n "checking size of void *... " >&6; }
  11037. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  11038. $as_echo_n "(cached) " >&6
  11039. else
  11040. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  11041. else
  11042. if test "$ac_cv_type_void_p" = yes; then
  11043. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11044. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11045. { as_fn_set_status 77
  11046. as_fn_error "cannot compute sizeof (void *)
  11047. See \`config.log' for more details." "$LINENO" 5; }; }
  11048. else
  11049. ac_cv_sizeof_void_p=0
  11050. fi
  11051. fi
  11052. fi
  11053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  11054. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  11055. cat >>confdefs.h <<_ACEOF
  11056. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  11057. _ACEOF
  11058. # The cast to long int works around a bug in the HP C Compiler
  11059. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11060. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11061. # This bug is HP SR number 8606223364.
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11063. $as_echo_n "checking size of long... " >&6; }
  11064. if test "${ac_cv_sizeof_long+set}" = set; then :
  11065. $as_echo_n "(cached) " >&6
  11066. else
  11067. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11068. else
  11069. if test "$ac_cv_type_long" = yes; then
  11070. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11071. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11072. { as_fn_set_status 77
  11073. as_fn_error "cannot compute sizeof (long)
  11074. See \`config.log' for more details." "$LINENO" 5; }; }
  11075. else
  11076. ac_cv_sizeof_long=0
  11077. fi
  11078. fi
  11079. fi
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11081. $as_echo "$ac_cv_sizeof_long" >&6; }
  11082. cat >>confdefs.h <<_ACEOF
  11083. #define SIZEOF_LONG $ac_cv_sizeof_long
  11084. _ACEOF
  11085. if test "x${ac_cv_sizeof_void_p}" = "x8"; then
  11086. host64=true
  11087. fi
  11088. if test "x${ac_cv_sizeof_long}" = "x8"; then
  11089. BFD_HOST_64BIT_LONG=1
  11090. test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
  11091. test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
  11092. elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
  11093. BFD_HOST_64BIT_LONG_LONG=1
  11094. test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
  11095. test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
  11096. if test "x${ac_cv_sizeof_void_p}" = "x8"; then
  11097. BFD_HOSTPTR_T="unsigned long long"
  11098. fi
  11099. fi
  11100. if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
  11101. BFD_HOST_64_BIT_DEFINED=1
  11102. BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
  11103. BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
  11104. fi
  11105. # Put a plausible default for CC_FOR_BUILD in Makefile.
  11106. if test -z "$CC_FOR_BUILD"; then
  11107. if test "x$cross_compiling" = "xno"; then
  11108. CC_FOR_BUILD='$(CC)'
  11109. else
  11110. CC_FOR_BUILD=gcc
  11111. fi
  11112. fi
  11113. # Also set EXEEXT_FOR_BUILD.
  11114. if test "x$cross_compiling" = "xno"; then
  11115. EXEEXT_FOR_BUILD='$(EXEEXT)'
  11116. else
  11117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
  11118. $as_echo_n "checking for build system executable suffix... " >&6; }
  11119. if test "${bfd_cv_build_exeext+set}" = set; then :
  11120. $as_echo_n "(cached) " >&6
  11121. else
  11122. rm -f conftest*
  11123. echo 'int main () { return 0; }' > conftest.c
  11124. bfd_cv_build_exeext=
  11125. ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
  11126. for file in conftest.*; do
  11127. case $file in
  11128. *.c | *.o | *.obj | *.ilk | *.pdb) ;;
  11129. *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  11130. esac
  11131. done
  11132. rm -f conftest*
  11133. test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
  11134. fi
  11135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
  11136. $as_echo "$bfd_cv_build_exeext" >&6; }
  11137. EXEEXT_FOR_BUILD=""
  11138. test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
  11139. fi
  11140. for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h
  11141. do :
  11142. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11143. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11144. eval as_val=\$$as_ac_Header
  11145. if test "x$as_val" = x""yes; then :
  11146. cat >>confdefs.h <<_ACEOF
  11147. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11148. _ACEOF
  11149. fi
  11150. done
  11151. for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h
  11152. do :
  11153. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11154. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11155. eval as_val=\$$as_ac_Header
  11156. if test "x$as_val" = x""yes; then :
  11157. cat >>confdefs.h <<_ACEOF
  11158. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11159. _ACEOF
  11160. fi
  11161. done
  11162. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  11163. acx_cv_header_stdint=stddef.h
  11164. acx_cv_header_stdint_kind="(already complete)"
  11165. for i in stdint.h $inttype_headers; do
  11166. unset ac_cv_type_uintptr_t
  11167. unset ac_cv_type_uintmax_t
  11168. unset ac_cv_type_int_least32_t
  11169. unset ac_cv_type_int_fast32_t
  11170. unset ac_cv_type_uint64_t
  11171. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  11172. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  11173. #include <$i>
  11174. "
  11175. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  11176. acx_cv_header_stdint=$i
  11177. else
  11178. continue
  11179. fi
  11180. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  11181. #include <$i>
  11182. "
  11183. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  11184. else
  11185. acx_cv_header_stdint_kind="(mostly complete)"
  11186. fi
  11187. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  11188. #include <$i>
  11189. "
  11190. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  11191. else
  11192. acx_cv_header_stdint_kind="(mostly complete)"
  11193. fi
  11194. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  11195. #include <$i>
  11196. "
  11197. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  11198. else
  11199. acx_cv_header_stdint_kind="(mostly complete)"
  11200. fi
  11201. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  11202. #include <$i>
  11203. "
  11204. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  11205. else
  11206. acx_cv_header_stdint_kind="(lacks uint64_t)"
  11207. fi
  11208. break
  11209. done
  11210. if test "$acx_cv_header_stdint" = stddef.h; then
  11211. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  11212. for i in stdint.h $inttype_headers; do
  11213. unset ac_cv_type_uintptr_t
  11214. unset ac_cv_type_uint32_t
  11215. unset ac_cv_type_uint64_t
  11216. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  11217. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  11218. #include <$i>
  11219. "
  11220. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  11221. acx_cv_header_stdint=$i
  11222. else
  11223. continue
  11224. fi
  11225. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  11226. #include <$i>
  11227. "
  11228. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  11229. fi
  11230. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  11231. #include <$i>
  11232. "
  11233. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  11234. fi
  11235. break
  11236. done
  11237. fi
  11238. if test "$acx_cv_header_stdint" = stddef.h; then
  11239. acx_cv_header_stdint_kind="(u_intXX_t style)"
  11240. for i in sys/types.h $inttype_headers; do
  11241. unset ac_cv_type_u_int32_t
  11242. unset ac_cv_type_u_int64_t
  11243. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  11244. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  11245. #include <$i>
  11246. "
  11247. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  11248. acx_cv_header_stdint=$i
  11249. else
  11250. continue
  11251. fi
  11252. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  11253. #include <$i>
  11254. "
  11255. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  11256. fi
  11257. break
  11258. done
  11259. fi
  11260. if test "$acx_cv_header_stdint" = stddef.h; then
  11261. acx_cv_header_stdint_kind="(using manual detection)"
  11262. fi
  11263. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  11264. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  11265. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  11266. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  11267. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  11268. # ----------------- Summarize what we found so far
  11269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
  11270. $as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
  11271. case `$as_basename -- bfd_stdint.h ||
  11272. $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
  11273. Xbfd_stdint.h : 'X\(//\)$' \| \
  11274. Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
  11275. $as_echo X/bfd_stdint.h |
  11276. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11277. s//\1/
  11278. q
  11279. }
  11280. /^X\/\(\/\/\)$/{
  11281. s//\1/
  11282. q
  11283. }
  11284. /^X\/\(\/\).*/{
  11285. s//\1/
  11286. q
  11287. }
  11288. s/.*/./; q'` in
  11289. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  11290. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  11291. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  11292. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  11293. *) ;;
  11294. esac
  11295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  11296. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  11297. # ----------------- done included file, check C basic types --------
  11298. # Lacking an uintptr_t? Test size of void *
  11299. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  11300. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  11301. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11302. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11303. # This bug is HP SR number 8606223364.
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  11305. $as_echo_n "checking size of void *... " >&6; }
  11306. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  11307. $as_echo_n "(cached) " >&6
  11308. else
  11309. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  11310. else
  11311. if test "$ac_cv_type_void_p" = yes; then
  11312. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11313. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11314. { as_fn_set_status 77
  11315. as_fn_error "cannot compute sizeof (void *)
  11316. See \`config.log' for more details." "$LINENO" 5; }; }
  11317. else
  11318. ac_cv_sizeof_void_p=0
  11319. fi
  11320. fi
  11321. fi
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  11323. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  11324. cat >>confdefs.h <<_ACEOF
  11325. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  11326. _ACEOF
  11327. ;;
  11328. esac
  11329. # Lacking an uint64_t? Test size of long
  11330. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  11331. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  11332. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11333. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11334. # This bug is HP SR number 8606223364.
  11335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11336. $as_echo_n "checking size of long... " >&6; }
  11337. if test "${ac_cv_sizeof_long+set}" = set; then :
  11338. $as_echo_n "(cached) " >&6
  11339. else
  11340. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11341. else
  11342. if test "$ac_cv_type_long" = yes; then
  11343. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11345. { as_fn_set_status 77
  11346. as_fn_error "cannot compute sizeof (long)
  11347. See \`config.log' for more details." "$LINENO" 5; }; }
  11348. else
  11349. ac_cv_sizeof_long=0
  11350. fi
  11351. fi
  11352. fi
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11354. $as_echo "$ac_cv_sizeof_long" >&6; }
  11355. cat >>confdefs.h <<_ACEOF
  11356. #define SIZEOF_LONG $ac_cv_sizeof_long
  11357. _ACEOF
  11358. ;;
  11359. esac
  11360. if test $acx_cv_header_stdint = stddef.h; then
  11361. # Lacking a good header? Test size of everything and deduce all types.
  11362. # The cast to long int works around a bug in the HP C Compiler
  11363. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11364. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11365. # This bug is HP SR number 8606223364.
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11367. $as_echo_n "checking size of int... " >&6; }
  11368. if test "${ac_cv_sizeof_int+set}" = set; then :
  11369. $as_echo_n "(cached) " >&6
  11370. else
  11371. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11372. else
  11373. if test "$ac_cv_type_int" = yes; then
  11374. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11375. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11376. { as_fn_set_status 77
  11377. as_fn_error "cannot compute sizeof (int)
  11378. See \`config.log' for more details." "$LINENO" 5; }; }
  11379. else
  11380. ac_cv_sizeof_int=0
  11381. fi
  11382. fi
  11383. fi
  11384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11385. $as_echo "$ac_cv_sizeof_int" >&6; }
  11386. cat >>confdefs.h <<_ACEOF
  11387. #define SIZEOF_INT $ac_cv_sizeof_int
  11388. _ACEOF
  11389. # The cast to long int works around a bug in the HP C Compiler
  11390. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11391. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11392. # This bug is HP SR number 8606223364.
  11393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  11394. $as_echo_n "checking size of short... " >&6; }
  11395. if test "${ac_cv_sizeof_short+set}" = set; then :
  11396. $as_echo_n "(cached) " >&6
  11397. else
  11398. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  11399. else
  11400. if test "$ac_cv_type_short" = yes; then
  11401. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11402. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11403. { as_fn_set_status 77
  11404. as_fn_error "cannot compute sizeof (short)
  11405. See \`config.log' for more details." "$LINENO" 5; }; }
  11406. else
  11407. ac_cv_sizeof_short=0
  11408. fi
  11409. fi
  11410. fi
  11411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  11412. $as_echo "$ac_cv_sizeof_short" >&6; }
  11413. cat >>confdefs.h <<_ACEOF
  11414. #define SIZEOF_SHORT $ac_cv_sizeof_short
  11415. _ACEOF
  11416. # The cast to long int works around a bug in the HP C Compiler
  11417. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11418. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11419. # This bug is HP SR number 8606223364.
  11420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  11421. $as_echo_n "checking size of char... " >&6; }
  11422. if test "${ac_cv_sizeof_char+set}" = set; then :
  11423. $as_echo_n "(cached) " >&6
  11424. else
  11425. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  11426. else
  11427. if test "$ac_cv_type_char" = yes; then
  11428. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11430. { as_fn_set_status 77
  11431. as_fn_error "cannot compute sizeof (char)
  11432. See \`config.log' for more details." "$LINENO" 5; }; }
  11433. else
  11434. ac_cv_sizeof_char=0
  11435. fi
  11436. fi
  11437. fi
  11438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  11439. $as_echo "$ac_cv_sizeof_char" >&6; }
  11440. cat >>confdefs.h <<_ACEOF
  11441. #define SIZEOF_CHAR $ac_cv_sizeof_char
  11442. _ACEOF
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  11444. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  11445. case "$ac_cv_sizeof_char" in
  11446. 1) acx_cv_type_int8_t=char ;;
  11447. *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
  11448. esac
  11449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  11450. $as_echo "$acx_cv_type_int8_t" >&6; }
  11451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  11452. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  11453. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  11454. 2:*) acx_cv_type_int16_t=int ;;
  11455. *:2) acx_cv_type_int16_t=short ;;
  11456. *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
  11457. esac
  11458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  11459. $as_echo "$acx_cv_type_int16_t" >&6; }
  11460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  11461. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  11462. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  11463. 4:*) acx_cv_type_int32_t=int ;;
  11464. *:4) acx_cv_type_int32_t=long ;;
  11465. *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
  11466. esac
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  11468. $as_echo "$acx_cv_type_int32_t" >&6; }
  11469. fi
  11470. # These tests are here to make the output prettier
  11471. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  11472. case "$ac_cv_sizeof_long" in
  11473. 8) acx_cv_type_int64_t=long ;;
  11474. esac
  11475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  11476. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  11478. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  11479. fi
  11480. # Now we can use the above types
  11481. if test "$ac_cv_type_uintptr_t" != yes; then
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  11483. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  11484. case $ac_cv_sizeof_void_p in
  11485. 2) acx_cv_type_intptr_t=int16_t ;;
  11486. 4) acx_cv_type_intptr_t=int32_t ;;
  11487. 8) acx_cv_type_intptr_t=int64_t ;;
  11488. *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  11489. esac
  11490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  11491. $as_echo "$acx_cv_type_intptr_t" >&6; }
  11492. fi
  11493. # ----------------- done all checks, emit header -------------
  11494. ac_config_commands="$ac_config_commands bfd_stdint.h"
  11495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  11496. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  11497. if test "${ac_cv_header_time+set}" = set; then :
  11498. $as_echo_n "(cached) " >&6
  11499. else
  11500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11501. /* end confdefs.h. */
  11502. #include <sys/types.h>
  11503. #include <sys/time.h>
  11504. #include <time.h>
  11505. int
  11506. main ()
  11507. {
  11508. if ((struct tm *) 0)
  11509. return 0;
  11510. ;
  11511. return 0;
  11512. }
  11513. _ACEOF
  11514. if ac_fn_c_try_compile "$LINENO"; then :
  11515. ac_cv_header_time=yes
  11516. else
  11517. ac_cv_header_time=no
  11518. fi
  11519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11520. fi
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  11522. $as_echo "$ac_cv_header_time" >&6; }
  11523. if test $ac_cv_header_time = yes; then
  11524. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  11525. fi
  11526. ac_header_dirent=no
  11527. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  11528. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  11529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  11530. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  11531. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  11532. $as_echo_n "(cached) " >&6
  11533. else
  11534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11535. /* end confdefs.h. */
  11536. #include <sys/types.h>
  11537. #include <$ac_hdr>
  11538. int
  11539. main ()
  11540. {
  11541. if ((DIR *) 0)
  11542. return 0;
  11543. ;
  11544. return 0;
  11545. }
  11546. _ACEOF
  11547. if ac_fn_c_try_compile "$LINENO"; then :
  11548. eval "$as_ac_Header=yes"
  11549. else
  11550. eval "$as_ac_Header=no"
  11551. fi
  11552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11553. fi
  11554. eval ac_res=\$$as_ac_Header
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11556. $as_echo "$ac_res" >&6; }
  11557. eval as_val=\$$as_ac_Header
  11558. if test "x$as_val" = x""yes; then :
  11559. cat >>confdefs.h <<_ACEOF
  11560. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  11561. _ACEOF
  11562. ac_header_dirent=$ac_hdr; break
  11563. fi
  11564. done
  11565. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  11566. if test $ac_header_dirent = dirent.h; then
  11567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  11568. $as_echo_n "checking for library containing opendir... " >&6; }
  11569. if test "${ac_cv_search_opendir+set}" = set; then :
  11570. $as_echo_n "(cached) " >&6
  11571. else
  11572. ac_func_search_save_LIBS=$LIBS
  11573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11574. /* end confdefs.h. */
  11575. /* Override any GCC internal prototype to avoid an error.
  11576. Use char because int might match the return type of a GCC
  11577. builtin and then its argument prototype would still apply. */
  11578. #ifdef __cplusplus
  11579. extern "C"
  11580. #endif
  11581. char opendir ();
  11582. int
  11583. main ()
  11584. {
  11585. return opendir ();
  11586. ;
  11587. return 0;
  11588. }
  11589. _ACEOF
  11590. for ac_lib in '' dir; do
  11591. if test -z "$ac_lib"; then
  11592. ac_res="none required"
  11593. else
  11594. ac_res=-l$ac_lib
  11595. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11596. fi
  11597. if ac_fn_c_try_link "$LINENO"; then :
  11598. ac_cv_search_opendir=$ac_res
  11599. fi
  11600. rm -f core conftest.err conftest.$ac_objext \
  11601. conftest$ac_exeext
  11602. if test "${ac_cv_search_opendir+set}" = set; then :
  11603. break
  11604. fi
  11605. done
  11606. if test "${ac_cv_search_opendir+set}" = set; then :
  11607. else
  11608. ac_cv_search_opendir=no
  11609. fi
  11610. rm conftest.$ac_ext
  11611. LIBS=$ac_func_search_save_LIBS
  11612. fi
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  11614. $as_echo "$ac_cv_search_opendir" >&6; }
  11615. ac_res=$ac_cv_search_opendir
  11616. if test "$ac_res" != no; then :
  11617. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11618. fi
  11619. else
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  11621. $as_echo_n "checking for library containing opendir... " >&6; }
  11622. if test "${ac_cv_search_opendir+set}" = set; then :
  11623. $as_echo_n "(cached) " >&6
  11624. else
  11625. ac_func_search_save_LIBS=$LIBS
  11626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11627. /* end confdefs.h. */
  11628. /* Override any GCC internal prototype to avoid an error.
  11629. Use char because int might match the return type of a GCC
  11630. builtin and then its argument prototype would still apply. */
  11631. #ifdef __cplusplus
  11632. extern "C"
  11633. #endif
  11634. char opendir ();
  11635. int
  11636. main ()
  11637. {
  11638. return opendir ();
  11639. ;
  11640. return 0;
  11641. }
  11642. _ACEOF
  11643. for ac_lib in '' x; do
  11644. if test -z "$ac_lib"; then
  11645. ac_res="none required"
  11646. else
  11647. ac_res=-l$ac_lib
  11648. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11649. fi
  11650. if ac_fn_c_try_link "$LINENO"; then :
  11651. ac_cv_search_opendir=$ac_res
  11652. fi
  11653. rm -f core conftest.err conftest.$ac_objext \
  11654. conftest$ac_exeext
  11655. if test "${ac_cv_search_opendir+set}" = set; then :
  11656. break
  11657. fi
  11658. done
  11659. if test "${ac_cv_search_opendir+set}" = set; then :
  11660. else
  11661. ac_cv_search_opendir=no
  11662. fi
  11663. rm conftest.$ac_ext
  11664. LIBS=$ac_func_search_save_LIBS
  11665. fi
  11666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  11667. $as_echo "$ac_cv_search_opendir" >&6; }
  11668. ac_res=$ac_cv_search_opendir
  11669. if test "$ac_res" != no; then :
  11670. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11671. fi
  11672. fi
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  11674. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  11675. if test "${gcc_cv_header_string+set}" = set; then :
  11676. $as_echo_n "(cached) " >&6
  11677. else
  11678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11679. /* end confdefs.h. */
  11680. #include <string.h>
  11681. #include <strings.h>
  11682. int
  11683. main ()
  11684. {
  11685. ;
  11686. return 0;
  11687. }
  11688. _ACEOF
  11689. if ac_fn_c_try_compile "$LINENO"; then :
  11690. gcc_cv_header_string=yes
  11691. else
  11692. gcc_cv_header_string=no
  11693. fi
  11694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11695. fi
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  11697. $as_echo "$gcc_cv_header_string" >&6; }
  11698. if test $gcc_cv_header_string = yes; then
  11699. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  11700. fi
  11701. for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
  11702. do :
  11703. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11704. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11705. eval as_val=\$$as_ac_var
  11706. if test "x$as_val" = x""yes; then :
  11707. cat >>confdefs.h <<_ACEOF
  11708. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11709. _ACEOF
  11710. fi
  11711. done
  11712. for ac_func in strtoull getrlimit
  11713. do :
  11714. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11715. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11716. eval as_val=\$$as_ac_var
  11717. if test "x$as_val" = x""yes; then :
  11718. cat >>confdefs.h <<_ACEOF
  11719. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11720. _ACEOF
  11721. fi
  11722. done
  11723. ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
  11724. if test "x$ac_cv_have_decl_basename" = x""yes; then :
  11725. ac_have_decl=1
  11726. else
  11727. ac_have_decl=0
  11728. fi
  11729. cat >>confdefs.h <<_ACEOF
  11730. #define HAVE_DECL_BASENAME $ac_have_decl
  11731. _ACEOF
  11732. ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
  11733. if test "x$ac_cv_have_decl_ftello" = x""yes; then :
  11734. ac_have_decl=1
  11735. else
  11736. ac_have_decl=0
  11737. fi
  11738. cat >>confdefs.h <<_ACEOF
  11739. #define HAVE_DECL_FTELLO $ac_have_decl
  11740. _ACEOF
  11741. ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
  11742. if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
  11743. ac_have_decl=1
  11744. else
  11745. ac_have_decl=0
  11746. fi
  11747. cat >>confdefs.h <<_ACEOF
  11748. #define HAVE_DECL_FTELLO64 $ac_have_decl
  11749. _ACEOF
  11750. ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
  11751. if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
  11752. ac_have_decl=1
  11753. else
  11754. ac_have_decl=0
  11755. fi
  11756. cat >>confdefs.h <<_ACEOF
  11757. #define HAVE_DECL_FSEEKO $ac_have_decl
  11758. _ACEOF
  11759. ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
  11760. if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
  11761. ac_have_decl=1
  11762. else
  11763. ac_have_decl=0
  11764. fi
  11765. cat >>confdefs.h <<_ACEOF
  11766. #define HAVE_DECL_FSEEKO64 $ac_have_decl
  11767. _ACEOF
  11768. case "${host}" in
  11769. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  11770. $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
  11771. ;;
  11772. esac
  11773. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  11774. if test "x$ac_cv_have_decl_ffs" = x""yes; then :
  11775. ac_have_decl=1
  11776. else
  11777. ac_have_decl=0
  11778. fi
  11779. cat >>confdefs.h <<_ACEOF
  11780. #define HAVE_DECL_FFS $ac_have_decl
  11781. _ACEOF
  11782. ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
  11783. if test "x$ac_cv_have_decl_free" = x""yes; then :
  11784. ac_have_decl=1
  11785. else
  11786. ac_have_decl=0
  11787. fi
  11788. cat >>confdefs.h <<_ACEOF
  11789. #define HAVE_DECL_FREE $ac_have_decl
  11790. _ACEOF
  11791. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  11792. if test "x$ac_cv_have_decl_getenv" = x""yes; then :
  11793. ac_have_decl=1
  11794. else
  11795. ac_have_decl=0
  11796. fi
  11797. cat >>confdefs.h <<_ACEOF
  11798. #define HAVE_DECL_GETENV $ac_have_decl
  11799. _ACEOF
  11800. ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
  11801. if test "x$ac_cv_have_decl_malloc" = x""yes; then :
  11802. ac_have_decl=1
  11803. else
  11804. ac_have_decl=0
  11805. fi
  11806. cat >>confdefs.h <<_ACEOF
  11807. #define HAVE_DECL_MALLOC $ac_have_decl
  11808. _ACEOF
  11809. ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
  11810. if test "x$ac_cv_have_decl_realloc" = x""yes; then :
  11811. ac_have_decl=1
  11812. else
  11813. ac_have_decl=0
  11814. fi
  11815. cat >>confdefs.h <<_ACEOF
  11816. #define HAVE_DECL_REALLOC $ac_have_decl
  11817. _ACEOF
  11818. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  11819. if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
  11820. ac_have_decl=1
  11821. else
  11822. ac_have_decl=0
  11823. fi
  11824. cat >>confdefs.h <<_ACEOF
  11825. #define HAVE_DECL_STPCPY $ac_have_decl
  11826. _ACEOF
  11827. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  11828. if test "x$ac_cv_have_decl_strstr" = x""yes; then :
  11829. ac_have_decl=1
  11830. else
  11831. ac_have_decl=0
  11832. fi
  11833. cat >>confdefs.h <<_ACEOF
  11834. #define HAVE_DECL_STRSTR $ac_have_decl
  11835. _ACEOF
  11836. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  11837. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  11838. ac_have_decl=1
  11839. else
  11840. ac_have_decl=0
  11841. fi
  11842. cat >>confdefs.h <<_ACEOF
  11843. #define HAVE_DECL_ASPRINTF $ac_have_decl
  11844. _ACEOF
  11845. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  11846. if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
  11847. ac_have_decl=1
  11848. else
  11849. ac_have_decl=0
  11850. fi
  11851. cat >>confdefs.h <<_ACEOF
  11852. #define HAVE_DECL_VASPRINTF $ac_have_decl
  11853. _ACEOF
  11854. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  11855. if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
  11856. ac_have_decl=1
  11857. else
  11858. ac_have_decl=0
  11859. fi
  11860. cat >>confdefs.h <<_ACEOF
  11861. #define HAVE_DECL_SNPRINTF $ac_have_decl
  11862. _ACEOF
  11863. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  11864. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  11865. ac_have_decl=1
  11866. else
  11867. ac_have_decl=0
  11868. fi
  11869. cat >>confdefs.h <<_ACEOF
  11870. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  11871. _ACEOF
  11872. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  11873. if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
  11874. ac_have_decl=1
  11875. else
  11876. ac_have_decl=0
  11877. fi
  11878. cat >>confdefs.h <<_ACEOF
  11879. #define HAVE_DECL_STRNLEN $ac_have_decl
  11880. _ACEOF
  11881. # Link in zlib if we can. This allows us to read compressed debug sections.
  11882. # This is used only by compress.c.
  11883. # Use the system's zlib library.
  11884. zlibdir="-L\$(top_builddir)/../zlib"
  11885. zlibinc="-I\$(top_srcdir)/../zlib"
  11886. # Check whether --with-system-zlib was given.
  11887. if test "${with_system_zlib+set}" = set; then :
  11888. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  11889. zlibdir=
  11890. zlibinc=
  11891. fi
  11892. fi
  11893. # If we are configured native, pick a core file support file.
  11894. COREFILE=
  11895. COREFLAG=
  11896. CORE_HEADER=
  11897. TRAD_HEADER=
  11898. if test "${target}" = "${host}"; then
  11899. case "${host}" in
  11900. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
  11901. COREFILE=''
  11902. ;;
  11903. alpha*-*-linux-*)
  11904. COREFILE=trad-core.lo
  11905. TRAD_HEADER='"hosts/alphalinux.h"'
  11906. ;;
  11907. alpha*-*-netbsd* | alpha*-*-openbsd*)
  11908. COREFILE=netbsd-core.lo
  11909. ;;
  11910. alpha*-*-*)
  11911. COREFILE=osf-core.lo
  11912. ;;
  11913. arm-*-freebsd* | arm-*-kfreebsd*-gnu)
  11914. COREFILE='' ;;
  11915. arm-*-netbsd* | arm-*-openbsd*)
  11916. COREFILE=netbsd-core.lo
  11917. ;;
  11918. arm-*-riscix) COREFILE=trad-core.lo ;;
  11919. hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
  11920. hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
  11921. hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
  11922. hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
  11923. COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
  11924. hppa*-*-netbsd* | hppa*-*-openbsd*)
  11925. COREFILE=netbsd-core.lo
  11926. ;;
  11927. i370-*-*)
  11928. COREFILE=trad-core.lo
  11929. TRAD_HEADER='"hosts/i370linux.h"'
  11930. ;;
  11931. i[3-7]86-sequent-bsd*)
  11932. COREFILE=trad-core.lo
  11933. TRAD_HEADER='"hosts/symmetry.h"'
  11934. ;;
  11935. i[3-7]86-sequent-sysv4*) ;;
  11936. i[3-7]86-sequent-sysv*)
  11937. COREFILE=trad-core.lo
  11938. TRAD_HEADER='"hosts/symmetry.h"'
  11939. ;;
  11940. i[3-7]86-*-bsdi)
  11941. COREFILE=
  11942. ;;
  11943. 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*)
  11944. COREFILE=trad-core.lo
  11945. TRAD_HEADER='"hosts/i386bsd.h"'
  11946. ;;
  11947. i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
  11948. COREFILE=''
  11949. TRAD_HEADER='"hosts/i386bsd.h"'
  11950. ;;
  11951. i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
  11952. COREFILE=netbsd-core.lo
  11953. ;;
  11954. i[3-7]86-esix-sysv3*)
  11955. COREFILE=trad-core.lo
  11956. TRAD_HEADER='"hosts/esix.h"'
  11957. ;;
  11958. i[3-7]86-*-sco3.2v5*)
  11959. COREFILE=sco5-core.lo
  11960. ;;
  11961. i[3-7]86-*-sco* | i[3-7]86-*-isc*)
  11962. COREFILE=trad-core.lo
  11963. TRAD_HEADER='"hosts/i386sco.h"'
  11964. ;;
  11965. i[3-7]86-*-mach3*)
  11966. COREFILE=trad-core.lo
  11967. TRAD_HEADER='"hosts/i386mach3.h"'
  11968. ;;
  11969. i[3-7]86-*-linux-*)
  11970. COREFILE=trad-core.lo
  11971. TRAD_HEADER='"hosts/i386linux.h"'
  11972. case "$enable_targets"-"$want64" in
  11973. *x86_64-*linux*|*-true)
  11974. CORE_HEADER='"hosts/x86-64linux.h"'
  11975. esac
  11976. ;;
  11977. i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
  11978. i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
  11979. i860-*-mach3* | i860-*-osf1*)
  11980. COREFILE=trad-core.lo
  11981. TRAD_HEADER='"hosts/i860mach3.h"'
  11982. ;;
  11983. mips-*-netbsd* | mips*-*-openbsd*)
  11984. COREFILE=netbsd-core.lo
  11985. ;;
  11986. mips-dec-*)
  11987. COREFILE=trad-core.lo
  11988. TRAD_HEADER='"hosts/decstation.h"'
  11989. ;;
  11990. mips-sgi-irix4*) COREFILE=irix-core.lo ;;
  11991. mips-sgi-irix5*) COREFILE=irix-core.lo ;;
  11992. mips-sgi-irix6*) COREFILE=irix-core.lo ;;
  11993. mips-*-sysv4*) ;;
  11994. mips-*-sysv* | mips-*-riscos*)
  11995. COREFILE=trad-core.lo
  11996. TRAD_HEADER='"hosts/riscos.h"'
  11997. ;;
  11998. mips-sony-bsd*)
  11999. COREFILE=trad-core.lo
  12000. TRAD_HEADER='"hosts/news-mips.h"'
  12001. ;;
  12002. m68*-bull*-sysv*)
  12003. COREFILE=trad-core.lo
  12004. TRAD_HEADER='"hosts/dpx2.h"'
  12005. ;;
  12006. m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
  12007. m68*-hp-bsd*)
  12008. COREFILE=trad-core.lo
  12009. TRAD_HEADER='"hosts/hp300bsd.h"'
  12010. ;;
  12011. m68*-*-linux-*)
  12012. COREFILE=trad-core.lo
  12013. TRAD_HEADER='"hosts/m68klinux.h"'
  12014. ;;
  12015. m68*-motorola-sysv*)
  12016. COREFILE=trad-core.lo
  12017. TRAD_HEADER='"hosts/delta68.h"'
  12018. ;;
  12019. m68*-sony-*)
  12020. COREFILE=trad-core.lo
  12021. TRAD_HEADER='"hosts/news.h"'
  12022. ;;
  12023. m68*-*-netbsd* | m68*-*-openbsd*)
  12024. COREFILE=netbsd-core.lo
  12025. ;;
  12026. m68*-apple-aux*)
  12027. COREFILE=trad-core.lo
  12028. TRAD_HEADER='"hosts/m68kaux.h"'
  12029. ;;
  12030. m88*-*-sysv4*)
  12031. ;;
  12032. m88*-motorola-sysv*)
  12033. COREFILE=ptrace-core.lo
  12034. ;;
  12035. m88*-*-mach3*)
  12036. COREFILE=trad-core.lo
  12037. TRAD_HEADER='"hosts/m88kmach3.h"'
  12038. ;;
  12039. m88*-*-openbsd*)
  12040. COREFILE=netbsd-core.lo
  12041. ;;
  12042. ns32k-pc532-mach)
  12043. COREFILE=trad-core.lo
  12044. TRAD_HEADER='"hosts/pc532mach.h"'
  12045. ;;
  12046. ns32k-*-netbsd* | ns32k-*-openbsd*)
  12047. COREFILE=netbsd-core.lo
  12048. ;;
  12049. rs6000-*-lynx*)
  12050. COREFILE=lynx-core.lo
  12051. ;;
  12052. rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
  12053. COREFILE=rs6000-core.lo
  12054. COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
  12055. ;;
  12056. rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
  12057. COREFILE=rs6000-core.lo
  12058. COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
  12059. # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
  12060. # have c_impl as a member of struct core_dumpx
  12061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
  12062. $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
  12063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12064. /* end confdefs.h. */
  12065. #include <core.h>
  12066. int
  12067. main ()
  12068. {
  12069. struct core_dumpx c; c.c_impl = 0;
  12070. ;
  12071. return 0;
  12072. }
  12073. _ACEOF
  12074. if ac_fn_c_try_compile "$LINENO"; then :
  12075. $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12077. $as_echo "yes" >&6; }
  12078. else
  12079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12080. $as_echo "no" >&6; }
  12081. fi
  12082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12083. ;;
  12084. rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
  12085. rs6000-*-*) COREFILE=rs6000-core.lo ;;
  12086. powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
  12087. powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
  12088. powerpc-*-beos*) ;;
  12089. powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
  12090. COREFILE='' ;;
  12091. powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
  12092. powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
  12093. s390*-*-*) COREFILE=trad-core.lo ;;
  12094. sh*-*-netbsd* | sh*-*-openbsd*)
  12095. COREFILE=netbsd-core.lo
  12096. ;;
  12097. sparc-*-netbsd* | sparc*-*-openbsd*)
  12098. COREFILE=netbsd-core.lo
  12099. ;;
  12100. tahoe-*-*)
  12101. COREFILE=trad-core.lo
  12102. TRAD_HEADER='"hosts/tahoe.h"'
  12103. ;;
  12104. vax-*-netbsd* | vax-*-openbsd*)
  12105. COREFILE=netbsd-core.lo
  12106. ;;
  12107. vax-*-ultrix2*)
  12108. COREFILE=trad-core.lo
  12109. TRAD_HEADER='"hosts/vaxult2.h"'
  12110. ;;
  12111. vax-*-ultrix*)
  12112. COREFILE=trad-core.lo
  12113. TRAD_HEADER='"hosts/vaxult2.h"'
  12114. ;;
  12115. vax-*-linux-*)
  12116. COREFILE=trad-core.lo
  12117. TRAD_HEADER='"hosts/vaxlinux.h"'
  12118. ;;
  12119. vax-*-*)
  12120. COREFILE=trad-core.lo
  12121. TRAD_HEADER='"hosts/vaxbsd.h"'
  12122. ;;
  12123. x86_64-*-linux*)
  12124. CORE_HEADER='"hosts/x86-64linux.h"'
  12125. ;;
  12126. x86_64-*-netbsd* | x86_64-*-openbsd*)
  12127. COREFILE=netbsd-core.lo
  12128. ;;
  12129. esac
  12130. case "$COREFILE" in
  12131. aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
  12132. hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
  12133. hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
  12134. irix-core.lo) COREFLAG=-DIRIX_CORE ;;
  12135. lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
  12136. netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
  12137. osf-core.lo) COREFLAG=-DOSF_CORE ;;
  12138. ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
  12139. rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
  12140. sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
  12141. trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
  12142. esac
  12143. # ELF corefile support has several flavors, but all of
  12144. # them use something called <sys/procfs.h>
  12145. for ac_header in sys/procfs.h
  12146. do :
  12147. ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
  12148. if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
  12149. cat >>confdefs.h <<_ACEOF
  12150. #define HAVE_SYS_PROCFS_H 1
  12151. _ACEOF
  12152. fi
  12153. done
  12154. if test "$ac_cv_header_sys_procfs_h" = yes; then
  12155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
  12156. $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
  12157. if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
  12158. $as_echo_n "(cached) " >&6
  12159. else
  12160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12161. /* end confdefs.h. */
  12162. #define _SYSCALL32
  12163. /* Needed for new procfs interface on sparc-solaris. */
  12164. #define _STRUCTURED_PROC 1
  12165. #include <sys/procfs.h>
  12166. int
  12167. main ()
  12168. {
  12169. prstatus_t avar
  12170. ;
  12171. return 0;
  12172. }
  12173. _ACEOF
  12174. if ac_fn_c_try_compile "$LINENO"; then :
  12175. bfd_cv_have_sys_procfs_type_prstatus_t=yes
  12176. else
  12177. bfd_cv_have_sys_procfs_type_prstatus_t=no
  12178. fi
  12179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12180. fi
  12181. if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
  12182. $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
  12183. fi
  12184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
  12185. $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
  12186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
  12187. $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
  12188. if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
  12189. $as_echo_n "(cached) " >&6
  12190. else
  12191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12192. /* end confdefs.h. */
  12193. #define _SYSCALL32
  12194. /* Needed for new procfs interface on sparc-solaris. */
  12195. #define _STRUCTURED_PROC 1
  12196. #include <sys/procfs.h>
  12197. int
  12198. main ()
  12199. {
  12200. prstatus32_t avar
  12201. ;
  12202. return 0;
  12203. }
  12204. _ACEOF
  12205. if ac_fn_c_try_compile "$LINENO"; then :
  12206. bfd_cv_have_sys_procfs_type_prstatus32_t=yes
  12207. else
  12208. bfd_cv_have_sys_procfs_type_prstatus32_t=no
  12209. fi
  12210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12211. fi
  12212. if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
  12213. $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
  12214. fi
  12215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
  12216. $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
  12218. $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
  12219. if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
  12220. $as_echo_n "(cached) " >&6
  12221. else
  12222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12223. /* end confdefs.h. */
  12224. #define _SYSCALL32
  12225. /* Needed for new procfs interface on sparc-solaris. */
  12226. #define _STRUCTURED_PROC 1
  12227. #include <sys/procfs.h>
  12228. int
  12229. main ()
  12230. {
  12231. prstatus_t avar; void* aref = (void*) &avar.pr_who
  12232. ;
  12233. return 0;
  12234. }
  12235. _ACEOF
  12236. if ac_fn_c_try_compile "$LINENO"; then :
  12237. bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
  12238. else
  12239. bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
  12240. fi
  12241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12242. fi
  12243. if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
  12244. $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
  12245. fi
  12246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
  12247. $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
  12248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
  12249. $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
  12250. if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
  12251. $as_echo_n "(cached) " >&6
  12252. else
  12253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12254. /* end confdefs.h. */
  12255. #define _SYSCALL32
  12256. /* Needed for new procfs interface on sparc-solaris. */
  12257. #define _STRUCTURED_PROC 1
  12258. #include <sys/procfs.h>
  12259. int
  12260. main ()
  12261. {
  12262. prstatus32_t avar; void* aref = (void*) &avar.pr_who
  12263. ;
  12264. return 0;
  12265. }
  12266. _ACEOF
  12267. if ac_fn_c_try_compile "$LINENO"; then :
  12268. bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
  12269. else
  12270. bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
  12271. fi
  12272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12273. fi
  12274. if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
  12275. $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
  12276. fi
  12277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
  12278. $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
  12279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
  12280. $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
  12281. if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
  12282. $as_echo_n "(cached) " >&6
  12283. else
  12284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12285. /* end confdefs.h. */
  12286. #define _SYSCALL32
  12287. /* Needed for new procfs interface on sparc-solaris. */
  12288. #define _STRUCTURED_PROC 1
  12289. #include <sys/procfs.h>
  12290. int
  12291. main ()
  12292. {
  12293. pstatus_t avar
  12294. ;
  12295. return 0;
  12296. }
  12297. _ACEOF
  12298. if ac_fn_c_try_compile "$LINENO"; then :
  12299. bfd_cv_have_sys_procfs_type_pstatus_t=yes
  12300. else
  12301. bfd_cv_have_sys_procfs_type_pstatus_t=no
  12302. fi
  12303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12304. fi
  12305. if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
  12306. $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
  12307. fi
  12308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
  12309. $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
  12310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
  12311. $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
  12312. if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
  12313. $as_echo_n "(cached) " >&6
  12314. else
  12315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12316. /* end confdefs.h. */
  12317. #define _SYSCALL32
  12318. /* Needed for new procfs interface on sparc-solaris. */
  12319. #define _STRUCTURED_PROC 1
  12320. #include <sys/procfs.h>
  12321. int
  12322. main ()
  12323. {
  12324. pxstatus_t avar
  12325. ;
  12326. return 0;
  12327. }
  12328. _ACEOF
  12329. if ac_fn_c_try_compile "$LINENO"; then :
  12330. bfd_cv_have_sys_procfs_type_pxstatus_t=yes
  12331. else
  12332. bfd_cv_have_sys_procfs_type_pxstatus_t=no
  12333. fi
  12334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12335. fi
  12336. if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
  12337. $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
  12338. fi
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
  12340. $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
  12342. $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
  12343. if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
  12344. $as_echo_n "(cached) " >&6
  12345. else
  12346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12347. /* end confdefs.h. */
  12348. #define _SYSCALL32
  12349. /* Needed for new procfs interface on sparc-solaris. */
  12350. #define _STRUCTURED_PROC 1
  12351. #include <sys/procfs.h>
  12352. int
  12353. main ()
  12354. {
  12355. pstatus32_t avar
  12356. ;
  12357. return 0;
  12358. }
  12359. _ACEOF
  12360. if ac_fn_c_try_compile "$LINENO"; then :
  12361. bfd_cv_have_sys_procfs_type_pstatus32_t=yes
  12362. else
  12363. bfd_cv_have_sys_procfs_type_pstatus32_t=no
  12364. fi
  12365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12366. fi
  12367. if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
  12368. $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
  12369. fi
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
  12371. $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
  12372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
  12373. $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
  12374. if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
  12375. $as_echo_n "(cached) " >&6
  12376. else
  12377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12378. /* end confdefs.h. */
  12379. #define _SYSCALL32
  12380. /* Needed for new procfs interface on sparc-solaris. */
  12381. #define _STRUCTURED_PROC 1
  12382. #include <sys/procfs.h>
  12383. int
  12384. main ()
  12385. {
  12386. prpsinfo_t avar
  12387. ;
  12388. return 0;
  12389. }
  12390. _ACEOF
  12391. if ac_fn_c_try_compile "$LINENO"; then :
  12392. bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
  12393. else
  12394. bfd_cv_have_sys_procfs_type_prpsinfo_t=no
  12395. fi
  12396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12397. fi
  12398. if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
  12399. $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
  12400. fi
  12401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
  12402. $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
  12404. $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
  12405. if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+set}" = set; then :
  12406. $as_echo_n "(cached) " >&6
  12407. else
  12408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12409. /* end confdefs.h. */
  12410. #define _SYSCALL32
  12411. /* Needed for new procfs interface on sparc-solaris. */
  12412. #define _STRUCTURED_PROC 1
  12413. #include <sys/procfs.h>
  12414. int
  12415. main ()
  12416. {
  12417. prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
  12418. ;
  12419. return 0;
  12420. }
  12421. _ACEOF
  12422. if ac_fn_c_try_compile "$LINENO"; then :
  12423. bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
  12424. else
  12425. bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
  12426. fi
  12427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12428. fi
  12429. if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
  12430. $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
  12431. fi
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
  12433. $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
  12435. $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
  12436. if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
  12437. $as_echo_n "(cached) " >&6
  12438. else
  12439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12440. /* end confdefs.h. */
  12441. #define _SYSCALL32
  12442. /* Needed for new procfs interface on sparc-solaris. */
  12443. #define _STRUCTURED_PROC 1
  12444. #include <sys/procfs.h>
  12445. int
  12446. main ()
  12447. {
  12448. prpsinfo32_t avar
  12449. ;
  12450. return 0;
  12451. }
  12452. _ACEOF
  12453. if ac_fn_c_try_compile "$LINENO"; then :
  12454. bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
  12455. else
  12456. bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
  12457. fi
  12458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12459. fi
  12460. if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
  12461. $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
  12462. fi
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
  12464. $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
  12465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
  12466. $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
  12467. if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+set}" = set; then :
  12468. $as_echo_n "(cached) " >&6
  12469. else
  12470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12471. /* end confdefs.h. */
  12472. #define _SYSCALL32
  12473. /* Needed for new procfs interface on sparc-solaris. */
  12474. #define _STRUCTURED_PROC 1
  12475. #include <sys/procfs.h>
  12476. int
  12477. main ()
  12478. {
  12479. prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
  12480. ;
  12481. return 0;
  12482. }
  12483. _ACEOF
  12484. if ac_fn_c_try_compile "$LINENO"; then :
  12485. bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
  12486. else
  12487. bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
  12488. fi
  12489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12490. fi
  12491. if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
  12492. $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
  12493. fi
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
  12495. $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
  12497. $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
  12498. if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
  12499. $as_echo_n "(cached) " >&6
  12500. else
  12501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12502. /* end confdefs.h. */
  12503. #define _SYSCALL32
  12504. /* Needed for new procfs interface on sparc-solaris. */
  12505. #define _STRUCTURED_PROC 1
  12506. #include <sys/procfs.h>
  12507. int
  12508. main ()
  12509. {
  12510. psinfo_t avar
  12511. ;
  12512. return 0;
  12513. }
  12514. _ACEOF
  12515. if ac_fn_c_try_compile "$LINENO"; then :
  12516. bfd_cv_have_sys_procfs_type_psinfo_t=yes
  12517. else
  12518. bfd_cv_have_sys_procfs_type_psinfo_t=no
  12519. fi
  12520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12521. fi
  12522. if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
  12523. $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
  12524. fi
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
  12526. $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
  12528. $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
  12529. if test "${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+set}" = set; then :
  12530. $as_echo_n "(cached) " >&6
  12531. else
  12532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12533. /* end confdefs.h. */
  12534. #define _SYSCALL32
  12535. /* Needed for new procfs interface on sparc-solaris. */
  12536. #define _STRUCTURED_PROC 1
  12537. #include <sys/procfs.h>
  12538. int
  12539. main ()
  12540. {
  12541. psinfo_t avar; void* aref = (void*) &avar.pr_pid
  12542. ;
  12543. return 0;
  12544. }
  12545. _ACEOF
  12546. if ac_fn_c_try_compile "$LINENO"; then :
  12547. bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
  12548. else
  12549. bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
  12550. fi
  12551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12552. fi
  12553. if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
  12554. $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
  12555. fi
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
  12557. $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
  12558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
  12559. $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
  12560. if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
  12561. $as_echo_n "(cached) " >&6
  12562. else
  12563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12564. /* end confdefs.h. */
  12565. #define _SYSCALL32
  12566. /* Needed for new procfs interface on sparc-solaris. */
  12567. #define _STRUCTURED_PROC 1
  12568. #include <sys/procfs.h>
  12569. int
  12570. main ()
  12571. {
  12572. psinfo32_t avar
  12573. ;
  12574. return 0;
  12575. }
  12576. _ACEOF
  12577. if ac_fn_c_try_compile "$LINENO"; then :
  12578. bfd_cv_have_sys_procfs_type_psinfo32_t=yes
  12579. else
  12580. bfd_cv_have_sys_procfs_type_psinfo32_t=no
  12581. fi
  12582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12583. fi
  12584. if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
  12585. $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
  12586. fi
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
  12588. $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
  12589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
  12590. $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
  12591. if test "${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+set}" = set; then :
  12592. $as_echo_n "(cached) " >&6
  12593. else
  12594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12595. /* end confdefs.h. */
  12596. #define _SYSCALL32
  12597. /* Needed for new procfs interface on sparc-solaris. */
  12598. #define _STRUCTURED_PROC 1
  12599. #include <sys/procfs.h>
  12600. int
  12601. main ()
  12602. {
  12603. psinfo32_t avar; void* aref = (void*) &avar.pr_pid
  12604. ;
  12605. return 0;
  12606. }
  12607. _ACEOF
  12608. if ac_fn_c_try_compile "$LINENO"; then :
  12609. bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
  12610. else
  12611. bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
  12612. fi
  12613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12614. fi
  12615. if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
  12616. $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
  12617. fi
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
  12619. $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
  12621. $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
  12622. if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
  12623. $as_echo_n "(cached) " >&6
  12624. else
  12625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12626. /* end confdefs.h. */
  12627. #define _SYSCALL32
  12628. /* Needed for new procfs interface on sparc-solaris. */
  12629. #define _STRUCTURED_PROC 1
  12630. #include <sys/procfs.h>
  12631. int
  12632. main ()
  12633. {
  12634. lwpstatus_t avar
  12635. ;
  12636. return 0;
  12637. }
  12638. _ACEOF
  12639. if ac_fn_c_try_compile "$LINENO"; then :
  12640. bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
  12641. else
  12642. bfd_cv_have_sys_procfs_type_lwpstatus_t=no
  12643. fi
  12644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12645. fi
  12646. if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
  12647. $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
  12648. fi
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
  12650. $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
  12652. $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
  12653. if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
  12654. $as_echo_n "(cached) " >&6
  12655. else
  12656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12657. /* end confdefs.h. */
  12658. #define _SYSCALL32
  12659. /* Needed for new procfs interface on sparc-solaris. */
  12660. #define _STRUCTURED_PROC 1
  12661. #include <sys/procfs.h>
  12662. int
  12663. main ()
  12664. {
  12665. lwpxstatus_t avar
  12666. ;
  12667. return 0;
  12668. }
  12669. _ACEOF
  12670. if ac_fn_c_try_compile "$LINENO"; then :
  12671. bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
  12672. else
  12673. bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
  12674. fi
  12675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12676. fi
  12677. if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
  12678. $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
  12679. fi
  12680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
  12681. $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
  12682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
  12683. $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
  12684. if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
  12685. $as_echo_n "(cached) " >&6
  12686. else
  12687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12688. /* end confdefs.h. */
  12689. #define _SYSCALL32
  12690. /* Needed for new procfs interface on sparc-solaris. */
  12691. #define _STRUCTURED_PROC 1
  12692. #include <sys/procfs.h>
  12693. int
  12694. main ()
  12695. {
  12696. lwpstatus_t avar; void* aref = (void*) &avar.pr_context
  12697. ;
  12698. return 0;
  12699. }
  12700. _ACEOF
  12701. if ac_fn_c_try_compile "$LINENO"; then :
  12702. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
  12703. else
  12704. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
  12705. fi
  12706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12707. fi
  12708. if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
  12709. $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
  12710. fi
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
  12712. $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
  12714. $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
  12715. if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
  12716. $as_echo_n "(cached) " >&6
  12717. else
  12718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12719. /* end confdefs.h. */
  12720. #define _SYSCALL32
  12721. /* Needed for new procfs interface on sparc-solaris. */
  12722. #define _STRUCTURED_PROC 1
  12723. #include <sys/procfs.h>
  12724. int
  12725. main ()
  12726. {
  12727. lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
  12728. ;
  12729. return 0;
  12730. }
  12731. _ACEOF
  12732. if ac_fn_c_try_compile "$LINENO"; then :
  12733. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
  12734. else
  12735. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
  12736. fi
  12737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12738. fi
  12739. if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
  12740. $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
  12741. fi
  12742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
  12743. $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
  12745. $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
  12746. if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
  12747. $as_echo_n "(cached) " >&6
  12748. else
  12749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12750. /* end confdefs.h. */
  12751. #define _SYSCALL32
  12752. /* Needed for new procfs interface on sparc-solaris. */
  12753. #define _STRUCTURED_PROC 1
  12754. #include <sys/procfs.h>
  12755. int
  12756. main ()
  12757. {
  12758. lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
  12759. ;
  12760. return 0;
  12761. }
  12762. _ACEOF
  12763. if ac_fn_c_try_compile "$LINENO"; then :
  12764. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
  12765. else
  12766. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
  12767. fi
  12768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12769. fi
  12770. if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
  12771. $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
  12772. fi
  12773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
  12774. $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
  12776. $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
  12777. if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
  12778. $as_echo_n "(cached) " >&6
  12779. else
  12780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12781. /* end confdefs.h. */
  12782. #define _SYSCALL32
  12783. /* Needed for new procfs interface on sparc-solaris. */
  12784. #define _STRUCTURED_PROC 1
  12785. #include <sys/procfs.h>
  12786. int
  12787. main ()
  12788. {
  12789. win32_pstatus_t avar
  12790. ;
  12791. return 0;
  12792. }
  12793. _ACEOF
  12794. if ac_fn_c_try_compile "$LINENO"; then :
  12795. bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
  12796. else
  12797. bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
  12798. fi
  12799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12800. fi
  12801. if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
  12802. $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
  12803. fi
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
  12805. $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
  12806. fi
  12807. fi
  12808. if test -n "$CORE_HEADER"; then
  12809. cat >>confdefs.h <<_ACEOF
  12810. #define CORE_HEADER $CORE_HEADER
  12811. _ACEOF
  12812. fi
  12813. if test -n "$TRAD_HEADER"; then
  12814. cat >>confdefs.h <<_ACEOF
  12815. #define TRAD_HEADER $TRAD_HEADER
  12816. _ACEOF
  12817. fi
  12818. # Check if linker supports --as-needed and --no-as-needed options
  12819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
  12820. $as_echo_n "checking linker --as-needed support... " >&6; }
  12821. if test "${bfd_cv_ld_as_needed+set}" = set; then :
  12822. $as_echo_n "(cached) " >&6
  12823. else
  12824. bfd_cv_ld_as_needed=no
  12825. if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
  12826. bfd_cv_ld_as_needed=yes
  12827. fi
  12828. fi
  12829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
  12830. $as_echo "$bfd_cv_ld_as_needed" >&6; }
  12831. LIBM=
  12832. case $host in
  12833. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  12834. # These system don't have libm, or don't need it
  12835. ;;
  12836. *-ncr-sysv4.3*)
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  12838. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  12839. if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
  12840. $as_echo_n "(cached) " >&6
  12841. else
  12842. ac_check_lib_save_LIBS=$LIBS
  12843. LIBS="-lmw $LIBS"
  12844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12845. /* end confdefs.h. */
  12846. /* Override any GCC internal prototype to avoid an error.
  12847. Use char because int might match the return type of a GCC
  12848. builtin and then its argument prototype would still apply. */
  12849. #ifdef __cplusplus
  12850. extern "C"
  12851. #endif
  12852. char _mwvalidcheckl ();
  12853. int
  12854. main ()
  12855. {
  12856. return _mwvalidcheckl ();
  12857. ;
  12858. return 0;
  12859. }
  12860. _ACEOF
  12861. if ac_fn_c_try_link "$LINENO"; then :
  12862. ac_cv_lib_mw__mwvalidcheckl=yes
  12863. else
  12864. ac_cv_lib_mw__mwvalidcheckl=no
  12865. fi
  12866. rm -f core conftest.err conftest.$ac_objext \
  12867. conftest$ac_exeext conftest.$ac_ext
  12868. LIBS=$ac_check_lib_save_LIBS
  12869. fi
  12870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  12871. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  12872. if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
  12873. LIBM="-lmw"
  12874. fi
  12875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  12876. $as_echo_n "checking for cos in -lm... " >&6; }
  12877. if test "${ac_cv_lib_m_cos+set}" = set; then :
  12878. $as_echo_n "(cached) " >&6
  12879. else
  12880. ac_check_lib_save_LIBS=$LIBS
  12881. LIBS="-lm $LIBS"
  12882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12883. /* end confdefs.h. */
  12884. /* Override any GCC internal prototype to avoid an error.
  12885. Use char because int might match the return type of a GCC
  12886. builtin and then its argument prototype would still apply. */
  12887. #ifdef __cplusplus
  12888. extern "C"
  12889. #endif
  12890. char cos ();
  12891. int
  12892. main ()
  12893. {
  12894. return cos ();
  12895. ;
  12896. return 0;
  12897. }
  12898. _ACEOF
  12899. if ac_fn_c_try_link "$LINENO"; then :
  12900. ac_cv_lib_m_cos=yes
  12901. else
  12902. ac_cv_lib_m_cos=no
  12903. fi
  12904. rm -f core conftest.err conftest.$ac_objext \
  12905. conftest$ac_exeext conftest.$ac_ext
  12906. LIBS=$ac_check_lib_save_LIBS
  12907. fi
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  12909. $as_echo "$ac_cv_lib_m_cos" >&6; }
  12910. if test "x$ac_cv_lib_m_cos" = x""yes; then :
  12911. LIBM="$LIBM -lm"
  12912. fi
  12913. ;;
  12914. *)
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  12916. $as_echo_n "checking for cos in -lm... " >&6; }
  12917. if test "${ac_cv_lib_m_cos+set}" = set; then :
  12918. $as_echo_n "(cached) " >&6
  12919. else
  12920. ac_check_lib_save_LIBS=$LIBS
  12921. LIBS="-lm $LIBS"
  12922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12923. /* end confdefs.h. */
  12924. /* Override any GCC internal prototype to avoid an error.
  12925. Use char because int might match the return type of a GCC
  12926. builtin and then its argument prototype would still apply. */
  12927. #ifdef __cplusplus
  12928. extern "C"
  12929. #endif
  12930. char cos ();
  12931. int
  12932. main ()
  12933. {
  12934. return cos ();
  12935. ;
  12936. return 0;
  12937. }
  12938. _ACEOF
  12939. if ac_fn_c_try_link "$LINENO"; then :
  12940. ac_cv_lib_m_cos=yes
  12941. else
  12942. ac_cv_lib_m_cos=no
  12943. fi
  12944. rm -f core conftest.err conftest.$ac_objext \
  12945. conftest$ac_exeext conftest.$ac_ext
  12946. LIBS=$ac_check_lib_save_LIBS
  12947. fi
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  12949. $as_echo "$ac_cv_lib_m_cos" >&6; }
  12950. if test "x$ac_cv_lib_m_cos" = x""yes; then :
  12951. LIBM="-lm"
  12952. fi
  12953. ;;
  12954. esac
  12955. # When building a shared libbfd, link against the pic version of libiberty
  12956. # so that apps that use libbfd won't need libiberty just to satisfy any
  12957. # libbfd references.
  12958. # We can't do that if a pic libiberty is unavailable since including non-pic
  12959. # code would insert text relocations into libbfd.
  12960. SHARED_LIBADD=
  12961. SHARED_LDFLAGS=
  12962. if test "$enable_shared" = "yes"; then
  12963. x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
  12964. if test -n "$x"; then
  12965. SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
  12966. fi
  12967. # More hacks to build DLLs on Windows.
  12968. case "${host}" in
  12969. *-*-cygwin*)
  12970. SHARED_LDFLAGS="-no-undefined"
  12971. SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
  12972. ;;
  12973. # Hack to build or1k-src on OSX
  12974. or1k*-*-darwin*)
  12975. SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
  12976. ;;
  12977. esac
  12978. if test -n "$SHARED_LIBADD"; then
  12979. if test -n "$LIBM"; then
  12980. if test x"$bfd_cv_ld_as_needed" = xyes; then
  12981. # Link against libm only when needed. Put -lc, -lm inside -Wl
  12982. # to stop libtool reordering these options.
  12983. SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
  12984. else
  12985. SHARED_LIBADD="$SHARED_LIBADD $LIBM"
  12986. fi
  12987. fi
  12988. fi
  12989. fi
  12990. # target stuff:
  12991. # Canonicalize the secondary target names.
  12992. if test -n "$enable_targets" ; then
  12993. for targ in `echo $enable_targets | sed 's/,/ /g'`
  12994. do
  12995. result=`$ac_config_sub $targ 2>/dev/null`
  12996. if test -n "$result" ; then
  12997. canon_targets="$canon_targets $result"
  12998. else
  12999. # Allow targets that config.sub doesn't recognize, like "all".
  13000. canon_targets="$canon_targets $targ"
  13001. fi
  13002. done
  13003. fi
  13004. all_targets=false
  13005. defvec=
  13006. selvecs=
  13007. assocvecs=
  13008. selarchs=
  13009. TDEFINES=
  13010. for targ in $target $canon_targets
  13011. do
  13012. if test "x$targ" = "xall"; then
  13013. all_targets=true
  13014. assocvecs="$assocvecs $targ_defvec $targ_selvecs"
  13015. else
  13016. . $srcdir/config.bfd
  13017. if test "x$targ" = "x$target"; then
  13018. defvec=$targ_defvec
  13019. fi
  13020. selvecs="$selvecs $targ_defvec $targ_selvecs"
  13021. selarchs="$selarchs $targ_archs"
  13022. TDEFINES="$TDEFINES $targ_cflags"
  13023. fi
  13024. done
  13025. # This processing still needs to be done if we're to decide properly whether
  13026. # 64-bit support needs to be compiled in. Currently, it will be included if
  13027. # the default or any other explicitly requested target requires it; it
  13028. # will not be included on a 32-bit host if no 64-bit target is requested, and
  13029. # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
  13030. # used.
  13031. # uniq the default and selected vectors in all the configured targets.
  13032. f=""
  13033. for i in $selvecs ; do
  13034. case " $f " in
  13035. *" $i "*) ;;
  13036. *) f="$f $i" ;;
  13037. esac
  13038. done
  13039. selvecs="$f"
  13040. # uniq the associated vectors in all the configured targets.
  13041. f=""
  13042. for i in $assocvecs ; do
  13043. case " $f " in
  13044. *" $i "*) ;;
  13045. *) f="$f $i" ;;
  13046. esac
  13047. done
  13048. assocvecs="$f"
  13049. # uniq the architectures in all the configured targets.
  13050. f=""
  13051. for i in $selarchs ; do
  13052. case " $f " in
  13053. *" $i "*) ;;
  13054. *) f="$f $i" ;;
  13055. esac
  13056. done
  13057. selarchs="$f"
  13058. # Target backend .o files.
  13059. tb=
  13060. elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
  13061. elf-eh-frame.lo dwarf1.lo dwarf2.lo"
  13062. coffgen="coffgen.lo dwarf2.lo"
  13063. coff="cofflink.lo $coffgen"
  13064. ecoff="ecofflink.lo $coffgen"
  13065. xcoff="xcofflink.lo $coffgen"
  13066. for vec in $selvecs
  13067. do
  13068. target_size=32
  13069. case "$vec" in
  13070. # This list is alphabetized to make it easy to compare
  13071. # with the two vector lists in targets.c. For the same reason,
  13072. # use one entry per line, even though this leads to long lines.
  13073. aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
  13074. aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
  13075. aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
  13076. aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
  13077. alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
  13078. alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
  13079. alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
  13080. alpha_nlm32_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
  13081. alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
  13082. alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
  13083. am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
  13084. aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
  13085. aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
  13086. aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
  13087. aout_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
  13088. arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
  13089. arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
  13090. arm_aout_be_vec) tb="$tb aout-arm.lo aout32.lo" ;;
  13091. arm_aout_le_vec) tb="$tb aout-arm.lo aout32.lo" ;;
  13092. arm_aout_nbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
  13093. arm_aout_riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
  13094. arm_coff_be_vec) tb="$tb coff-arm.lo $coff" ;;
  13095. arm_coff_le_vec) tb="$tb coff-arm.lo $coff" ;;
  13096. arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  13097. arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  13098. arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  13099. arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  13100. arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  13101. arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  13102. arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  13103. arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
  13104. arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
  13105. arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
  13106. arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
  13107. arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
  13108. arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
  13109. arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
  13110. arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
  13111. arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
  13112. arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
  13113. arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
  13114. arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
  13115. arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
  13116. avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
  13117. bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
  13118. bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
  13119. bout_be_vec) tb="$tb bout.lo aout32.lo" ;;
  13120. bout_le_vec) tb="$tb bout.lo aout32.lo" ;;
  13121. cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
  13122. cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
  13123. cris_aout_vec) tb="$tb aout-cris.lo" ;;
  13124. cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
  13125. cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
  13126. crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
  13127. d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
  13128. d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
  13129. dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
  13130. elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
  13131. elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
  13132. elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  13133. elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  13134. epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
  13135. fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
  13136. frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
  13137. frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
  13138. h8300_coff_vec) tb="$tb coff-h8300.lo reloc16.lo $coffgen" ;;
  13139. h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
  13140. h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
  13141. h8500_coff_vec) tb="$tb coff-h8500.lo reloc16.lo $coffgen" ;;
  13142. hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  13143. hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  13144. hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  13145. hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
  13146. hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
  13147. hppa_som_vec) tb="$tb som.lo" ;;
  13148. i370_elf32_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
  13149. i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
  13150. i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
  13151. i386_aout_dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
  13152. i386_aout_fbsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
  13153. i386_aout_linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
  13154. i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
  13155. i386_aout_mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
  13156. i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
  13157. i386_aout_os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
  13158. i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
  13159. i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
  13160. i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
  13161. i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
  13162. i386_elf32_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
  13163. i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
  13164. i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
  13165. i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
  13166. i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
  13167. i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
  13168. i386_msdos_vec) tb="$tb i386msdos.lo" ;;
  13169. i386_nlm32_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
  13170. i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
  13171. i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
  13172. iamcu_elf32_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
  13173. i860_coff_vec) tb="$tb coff-i860.lo $coff" ;;
  13174. i860_elf32_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
  13175. i860_elf32_le_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
  13176. i960_elf32_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
  13177. ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
  13178. ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
  13179. ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
  13180. ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
  13181. ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
  13182. 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 ;;
  13183. ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
  13184. icoff_be_vec) tb="$tb coff-i960.lo $coff" ;;
  13185. icoff_le_vec) tb="$tb coff-i960.lo $coff" ;;
  13186. ieee_vec) tb="$tb ieee.lo" ;;
  13187. ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
  13188. iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
  13189. k1om_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13190. k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13191. l1om_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13192. l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13193. lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
  13194. lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
  13195. m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
  13196. m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  13197. m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  13198. m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  13199. m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  13200. m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
  13201. m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
  13202. m68k_aout_4knbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
  13203. m68k_aout_hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
  13204. m68k_aout_hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
  13205. m68k_aout_linux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
  13206. m68k_aout_nbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
  13207. m68k_aout_newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
  13208. m68k_coff_vec) tb="$tb coff-m68k.lo $coff" ;;
  13209. m68k_coff_apollo_vec) tb="$tb coff-apollo.lo $coffgen" ;;
  13210. m68k_coff_aux_vec) tb="$tb coff-aux.lo coff-m68k.lo $coff" ;;
  13211. m68k_coff_sysv_vec) tb="$tb coff-svm68k.lo $coff" ;;
  13212. m68k_coff_un_vec) tb="$tb coff-u68k.lo coff-m68k.lo $coff" ;;
  13213. m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
  13214. m68k_versados_vec) tb="$tb versados.lo" ;;
  13215. m88k_aout_mach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
  13216. m88k_aout_obsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
  13217. m88k_coff_bcs_vec) tb="$tb coff-m88k.lo $coffgen" ;;
  13218. m88k_elf32_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
  13219. mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
  13220. mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
  13221. mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
  13222. mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
  13223. mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
  13224. mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
  13225. mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
  13226. mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
  13227. mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
  13228. mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
  13229. mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
  13230. metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
  13231. microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
  13232. microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
  13233. mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
  13234. mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
  13235. mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
  13236. mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  13237. mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  13238. mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  13239. mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  13240. mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  13241. mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  13242. mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  13243. mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  13244. mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  13245. mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  13246. mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  13247. mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  13248. mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  13249. mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
  13250. mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  13251. mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
  13252. 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 ;;
  13253. 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 ;;
  13254. 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 ;;
  13255. 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 ;;
  13256. mips_pe_le_vec) tb="$tb pe-mips.lo peigen.lo $coff" ;;
  13257. mips_pei_le_vec) tb="$tb pei-mips.lo peigen.lo $coff" ;;
  13258. mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
  13259. mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
  13260. mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
  13261. mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
  13262. moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
  13263. moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
  13264. msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
  13265. msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
  13266. mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
  13267. nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
  13268. nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
  13269. nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
  13270. nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
  13271. nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
  13272. nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
  13273. ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
  13274. ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
  13275. or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
  13276. pdp11_aout_vec) tb="$tb pdp11.lo" ;;
  13277. pef_vec) tb="$tb pef.lo" ;;
  13278. pef_xlib_vec) tb="$tb pef.lo" ;;
  13279. pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
  13280. pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
  13281. plugin_vec) tb="$tb plugin.lo" ;;
  13282. powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
  13283. powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  13284. powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  13285. powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  13286. powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  13287. powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  13288. powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
  13289. powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
  13290. powerpc_nlm32_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
  13291. powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
  13292. powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
  13293. powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
  13294. powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
  13295. powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
  13296. rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
  13297. rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
  13298. rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
  13299. rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
  13300. rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
  13301. rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
  13302. rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
  13303. s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
  13304. s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
  13305. score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
  13306. score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
  13307. sh64_elf32_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
  13308. sh64_elf32_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
  13309. sh64_elf32_linux_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
  13310. sh64_elf32_linux_be_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
  13311. sh64_elf32_nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
  13312. sh64_elf32_nbsd_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
  13313. sh64_elf64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  13314. sh64_elf64_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  13315. sh64_elf64_linux_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  13316. sh64_elf64_linux_be_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  13317. sh64_elf64_nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  13318. sh64_elf64_nbsd_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  13319. sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
  13320. sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
  13321. sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
  13322. sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
  13323. sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13324. sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13325. sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13326. sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13327. sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13328. sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13329. sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13330. sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13331. sh_elf32_symbian_le_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13332. sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13333. sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
  13334. sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
  13335. sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
  13336. sparc_aout_le_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
  13337. sparc_aout_linux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
  13338. sparc_aout_lynx_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
  13339. sparc_aout_nbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
  13340. sparc_aout_sunos_be_vec) tb="$tb sunos.lo aout32.lo" ;;
  13341. sparc_coff_vec) tb="$tb coff-sparc.lo $coffgen" ;;
  13342. sparc_coff_lynx_vec) tb="$tb cf-sparclynx.lo lynx-core.lo $coffgen" ;;
  13343. sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
  13344. sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
  13345. sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
  13346. sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
  13347. sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
  13348. sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
  13349. sparc_nlm32_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
  13350. spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
  13351. sym_vec) tb="$tb xsym.lo" ;;
  13352. tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
  13353. tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
  13354. tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  13355. tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  13356. tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  13357. tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  13358. tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  13359. tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
  13360. tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  13361. tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  13362. tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  13363. tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  13364. tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  13365. tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
  13366. tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  13367. tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  13368. tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  13369. tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  13370. tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  13371. tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
  13372. tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
  13373. tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
  13374. tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
  13375. tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
  13376. tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
  13377. tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
  13378. v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
  13379. v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
  13380. vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
  13381. vax_aout_bsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
  13382. vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
  13383. vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
  13384. ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
  13385. visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
  13386. w65_coff_vec) tb="$tb coff-w65.lo reloc16.lo $coffgen" ;;
  13387. we32k_coff_vec) tb="$tb coff-we32k.lo $coffgen" ;;
  13388. x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
  13389. x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
  13390. x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
  13391. x86_64_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13392. x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13393. x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13394. x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13395. x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
  13396. x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
  13397. x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
  13398. x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
  13399. x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
  13400. xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
  13401. xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
  13402. xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
  13403. xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
  13404. xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
  13405. z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
  13406. z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
  13407. # These appear out of order in targets.c
  13408. srec_vec) tb="$tb srec.lo" ;;
  13409. symbolsrec_vec) tb="$tb srec.lo" ;;
  13410. tekhex_vec) tb="$tb tekhex.lo" ;;
  13411. core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
  13412. core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
  13413. "") ;;
  13414. *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
  13415. esac
  13416. if test ${target_size} = 64; then
  13417. target64=true
  13418. fi
  13419. if test x"${vec}" = x"${defvec}"; then
  13420. bfd_default_target_size=${target_size}
  13421. fi
  13422. done
  13423. # Target architecture .o files.
  13424. # A couple of CPUs use shorter file names to avoid problems on DOS
  13425. # filesystems.
  13426. ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
  13427. # Weed out duplicate .o files.
  13428. f=""
  13429. for i in $tb ; do
  13430. case " $f " in
  13431. *" $i "*) ;;
  13432. *) f="$f $i" ;;
  13433. esac
  13434. done
  13435. tb="$f"
  13436. f=""
  13437. for i in $ta ; do
  13438. case " $f " in
  13439. *" $i "*) ;;
  13440. *) f="$f $i" ;;
  13441. esac
  13442. done
  13443. ta="$f"
  13444. bfd_backends="$tb"
  13445. bfd_machines="$ta"
  13446. if test x${all_targets} = xtrue ; then
  13447. bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
  13448. bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
  13449. selvecs=
  13450. havevecs=-DHAVE_all_vecs
  13451. selarchs=
  13452. test -n "$assocvecs" &&
  13453. assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  13454. else # all_targets is true
  13455. # Only set these if they will be nonempty, for the clever echo.
  13456. havevecs=
  13457. assocvecs=
  13458. test -n "$selvecs" &&
  13459. havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
  13460. test -n "$selvecs" &&
  13461. selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  13462. test -n "$selarchs" &&
  13463. selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  13464. fi # all_targets is true
  13465. case ${host64}-${target64}-${want64} in
  13466. *true*)
  13467. wordsize=64
  13468. bfd64_libs='$(BFD64_LIBS)'
  13469. all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
  13470. if test $BFD_HOST_64_BIT_DEFINED = 0; then
  13471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
  13472. $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
  13474. $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
  13475. fi
  13476. if test -n "$GCC" ; then
  13477. bad_64bit_gcc=no;
  13478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
  13479. $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
  13480. # Add more tests for gcc versions with non-working 64-bit support here.
  13481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13482. /* end confdefs.h. */
  13483. :__GNUC__:__GNUC_MINOR__:__i386__:
  13484. _ACEOF
  13485. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13486. $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
  13487. bad_64bit_gcc=yes;
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
  13489. $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
  13490. else
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13492. $as_echo "no" >&6; }
  13493. fi
  13494. rm -f conftest*
  13495. if test $bad_64bit_gcc = yes ; then
  13496. as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
  13497. fi
  13498. fi
  13499. ;;
  13500. false-false-false)
  13501. wordsize=32
  13502. all_backends='$(BFD32_BACKENDS)'
  13503. ;;
  13504. esac
  13505. if test "$plugins" = "yes"; then
  13506. supports_plugins=1
  13507. else
  13508. supports_plugins=0
  13509. fi
  13510. # Determine the host dependant file_ptr a.k.a. off_t type. In order
  13511. # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
  13512. # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
  13513. # Hopefully a reasonable assumption since fseeko et.al. should be
  13514. # upward compatible.
  13515. for ac_func in ftello ftello64 fseeko fseeko64 fopen64
  13516. do :
  13517. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13518. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13519. eval as_val=\$$as_ac_var
  13520. if test "x$as_val" = x""yes; then :
  13521. cat >>confdefs.h <<_ACEOF
  13522. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13523. _ACEOF
  13524. fi
  13525. done
  13526. if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
  13527. # The cast to long int works around a bug in the HP C Compiler
  13528. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13529. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13530. # This bug is HP SR number 8606223364.
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  13532. $as_echo_n "checking size of off_t... " >&6; }
  13533. if test "${ac_cv_sizeof_off_t+set}" = set; then :
  13534. $as_echo_n "(cached) " >&6
  13535. else
  13536. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  13537. else
  13538. if test "$ac_cv_type_off_t" = yes; then
  13539. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13541. { as_fn_set_status 77
  13542. as_fn_error "cannot compute sizeof (off_t)
  13543. See \`config.log' for more details." "$LINENO" 5; }; }
  13544. else
  13545. ac_cv_sizeof_off_t=0
  13546. fi
  13547. fi
  13548. fi
  13549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  13550. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  13551. cat >>confdefs.h <<_ACEOF
  13552. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  13553. _ACEOF
  13554. fi
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
  13556. $as_echo_n "checking file_ptr type... " >&6; }
  13557. bfd_file_ptr="long"
  13558. bfd_ufile_ptr="unsigned long"
  13559. if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
  13560. -o x"${ac_cv_sizeof_off_t}" = x8; then
  13561. bfd_file_ptr=BFD_HOST_64_BIT
  13562. bfd_ufile_ptr=BFD_HOST_U_64_BIT
  13563. fi
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
  13565. $as_echo "$bfd_file_ptr" >&6; }
  13566. tdefaults=""
  13567. test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
  13568. test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
  13569. test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
  13570. test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
  13571. for ac_header in stdlib.h unistd.h
  13572. do :
  13573. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13574. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13575. eval as_val=\$$as_ac_Header
  13576. if test "x$as_val" = x""yes; then :
  13577. cat >>confdefs.h <<_ACEOF
  13578. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13579. _ACEOF
  13580. fi
  13581. done
  13582. for ac_func in getpagesize
  13583. do :
  13584. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  13585. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  13586. cat >>confdefs.h <<_ACEOF
  13587. #define HAVE_GETPAGESIZE 1
  13588. _ACEOF
  13589. fi
  13590. done
  13591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  13592. $as_echo_n "checking for working mmap... " >&6; }
  13593. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  13594. $as_echo_n "(cached) " >&6
  13595. else
  13596. if test "$cross_compiling" = yes; then :
  13597. ac_cv_func_mmap_fixed_mapped=no
  13598. else
  13599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13600. /* end confdefs.h. */
  13601. $ac_includes_default
  13602. /* malloc might have been renamed as rpl_malloc. */
  13603. #undef malloc
  13604. /* Thanks to Mike Haertel and Jim Avera for this test.
  13605. Here is a matrix of mmap possibilities:
  13606. mmap private not fixed
  13607. mmap private fixed at somewhere currently unmapped
  13608. mmap private fixed at somewhere already mapped
  13609. mmap shared not fixed
  13610. mmap shared fixed at somewhere currently unmapped
  13611. mmap shared fixed at somewhere already mapped
  13612. For private mappings, we should verify that changes cannot be read()
  13613. back from the file, nor mmap's back from the file at a different
  13614. address. (There have been systems where private was not correctly
  13615. implemented like the infamous i386 svr4.0, and systems where the
  13616. VM page cache was not coherent with the file system buffer cache
  13617. like early versions of FreeBSD and possibly contemporary NetBSD.)
  13618. For shared mappings, we should conversely verify that changes get
  13619. propagated back to all the places they're supposed to be.
  13620. Grep wants private fixed already mapped.
  13621. The main things grep needs to know about mmap are:
  13622. * does it exist and is it safe to write into the mmap'd area
  13623. * how to use it (BSD variants) */
  13624. #include <fcntl.h>
  13625. #include <sys/mman.h>
  13626. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  13627. char *malloc ();
  13628. #endif
  13629. /* This mess was copied from the GNU getpagesize.h. */
  13630. #ifndef HAVE_GETPAGESIZE
  13631. /* Assume that all systems that can run configure have sys/param.h. */
  13632. # ifndef HAVE_SYS_PARAM_H
  13633. # define HAVE_SYS_PARAM_H 1
  13634. # endif
  13635. # ifdef _SC_PAGESIZE
  13636. # define getpagesize() sysconf(_SC_PAGESIZE)
  13637. # else /* no _SC_PAGESIZE */
  13638. # ifdef HAVE_SYS_PARAM_H
  13639. # include <sys/param.h>
  13640. # ifdef EXEC_PAGESIZE
  13641. # define getpagesize() EXEC_PAGESIZE
  13642. # else /* no EXEC_PAGESIZE */
  13643. # ifdef NBPG
  13644. # define getpagesize() NBPG * CLSIZE
  13645. # ifndef CLSIZE
  13646. # define CLSIZE 1
  13647. # endif /* no CLSIZE */
  13648. # else /* no NBPG */
  13649. # ifdef NBPC
  13650. # define getpagesize() NBPC
  13651. # else /* no NBPC */
  13652. # ifdef PAGESIZE
  13653. # define getpagesize() PAGESIZE
  13654. # endif /* PAGESIZE */
  13655. # endif /* no NBPC */
  13656. # endif /* no NBPG */
  13657. # endif /* no EXEC_PAGESIZE */
  13658. # else /* no HAVE_SYS_PARAM_H */
  13659. # define getpagesize() 8192 /* punt totally */
  13660. # endif /* no HAVE_SYS_PARAM_H */
  13661. # endif /* no _SC_PAGESIZE */
  13662. #endif /* no HAVE_GETPAGESIZE */
  13663. int
  13664. main ()
  13665. {
  13666. char *data, *data2, *data3;
  13667. int i, pagesize;
  13668. int fd;
  13669. pagesize = getpagesize ();
  13670. /* First, make a file with some known garbage in it. */
  13671. data = (char *) malloc (pagesize);
  13672. if (!data)
  13673. return 1;
  13674. for (i = 0; i < pagesize; ++i)
  13675. *(data + i) = rand ();
  13676. umask (0);
  13677. fd = creat ("conftest.mmap", 0600);
  13678. if (fd < 0)
  13679. return 1;
  13680. if (write (fd, data, pagesize) != pagesize)
  13681. return 1;
  13682. close (fd);
  13683. /* Next, try to mmap the file at a fixed address which already has
  13684. something else allocated at it. If we can, also make sure that
  13685. we see the same garbage. */
  13686. fd = open ("conftest.mmap", O_RDWR);
  13687. if (fd < 0)
  13688. return 1;
  13689. data2 = (char *) malloc (2 * pagesize);
  13690. if (!data2)
  13691. return 1;
  13692. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  13693. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  13694. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  13695. return 1;
  13696. for (i = 0; i < pagesize; ++i)
  13697. if (*(data + i) != *(data2 + i))
  13698. return 1;
  13699. /* Finally, make sure that changes to the mapped area do not
  13700. percolate back to the file as seen by read(). (This is a bug on
  13701. some variants of i386 svr4.0.) */
  13702. for (i = 0; i < pagesize; ++i)
  13703. *(data2 + i) = *(data2 + i) + 1;
  13704. data3 = (char *) malloc (pagesize);
  13705. if (!data3)
  13706. return 1;
  13707. if (read (fd, data3, pagesize) != pagesize)
  13708. return 1;
  13709. for (i = 0; i < pagesize; ++i)
  13710. if (*(data + i) != *(data3 + i))
  13711. return 1;
  13712. close (fd);
  13713. return 0;
  13714. }
  13715. _ACEOF
  13716. if ac_fn_c_try_run "$LINENO"; then :
  13717. ac_cv_func_mmap_fixed_mapped=yes
  13718. else
  13719. ac_cv_func_mmap_fixed_mapped=no
  13720. fi
  13721. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13722. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13723. fi
  13724. fi
  13725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  13726. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  13727. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  13728. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  13729. fi
  13730. rm -f conftest.mmap
  13731. for ac_func in madvise mprotect
  13732. do :
  13733. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13734. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13735. eval as_val=\$$as_ac_var
  13736. if test "x$as_val" = x""yes; then :
  13737. cat >>confdefs.h <<_ACEOF
  13738. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13739. _ACEOF
  13740. fi
  13741. done
  13742. case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
  13743. true+yes )
  13744. $as_echo "#define USE_MMAP 1" >>confdefs.h
  13745. ;;
  13746. esac
  13747. rm -f doc/config.status
  13748. ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
  13749. ac_config_commands="$ac_config_commands default"
  13750. cat >confcache <<\_ACEOF
  13751. # This file is a shell script that caches the results of configure
  13752. # tests run on this system so they can be shared between configure
  13753. # scripts and configure runs, see configure's option --config-cache.
  13754. # It is not useful on other systems. If it contains results you don't
  13755. # want to keep, you may remove or edit it.
  13756. #
  13757. # config.status only pays attention to the cache file if you give it
  13758. # the --recheck option to rerun configure.
  13759. #
  13760. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13761. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13762. # following values.
  13763. _ACEOF
  13764. # The following way of writing the cache mishandles newlines in values,
  13765. # but we know of no workaround that is simple, portable, and efficient.
  13766. # So, we kill variables containing newlines.
  13767. # Ultrix sh set writes to stderr and can't be redirected directly,
  13768. # and sets the high bit in the cache file unless we assign to the vars.
  13769. (
  13770. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13771. eval ac_val=\$$ac_var
  13772. case $ac_val in #(
  13773. *${as_nl}*)
  13774. case $ac_var in #(
  13775. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13776. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13777. esac
  13778. case $ac_var in #(
  13779. _ | IFS | as_nl) ;; #(
  13780. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13781. *) { eval $ac_var=; unset $ac_var;} ;;
  13782. esac ;;
  13783. esac
  13784. done
  13785. (set) 2>&1 |
  13786. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13787. *${as_nl}ac_space=\ *)
  13788. # `set' does not quote correctly, so add quotes: double-quote
  13789. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13790. sed -n \
  13791. "s/'/'\\\\''/g;
  13792. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13793. ;; #(
  13794. *)
  13795. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13796. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13797. ;;
  13798. esac |
  13799. sort
  13800. ) |
  13801. sed '
  13802. /^ac_cv_env_/b end
  13803. t clear
  13804. :clear
  13805. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13806. t end
  13807. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13808. :end' >>confcache
  13809. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13810. if test -w "$cache_file"; then
  13811. test "x$cache_file" != "x/dev/null" &&
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13813. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13814. cat confcache >$cache_file
  13815. else
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13817. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13818. fi
  13819. fi
  13820. rm -f confcache
  13821. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13822. # Let make expand exec_prefix.
  13823. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13824. DEFS=-DHAVE_CONFIG_H
  13825. ac_libobjs=
  13826. ac_ltlibobjs=
  13827. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13828. # 1. Remove the extension, and $U if already installed.
  13829. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13830. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13831. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13832. # will be set to the directory where LIBOBJS objects are built.
  13833. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13834. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13835. done
  13836. LIBOBJS=$ac_libobjs
  13837. LTLIBOBJS=$ac_ltlibobjs
  13838. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13839. as_fn_error "conditional \"AMDEP\" was never defined.
  13840. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13841. fi
  13842. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13843. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13844. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13845. fi
  13846. if test -n "$EXEEXT"; then
  13847. am__EXEEXT_TRUE=
  13848. am__EXEEXT_FALSE='#'
  13849. else
  13850. am__EXEEXT_TRUE='#'
  13851. am__EXEEXT_FALSE=
  13852. fi
  13853. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  13854. as_fn_error "conditional \"PLUGINS\" was never defined.
  13855. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13856. fi
  13857. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13858. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  13859. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13860. fi
  13861. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  13862. as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
  13863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13864. fi
  13865. if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
  13866. as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
  13867. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13868. fi
  13869. : ${CONFIG_STATUS=./config.status}
  13870. ac_write_fail=0
  13871. ac_clean_files_save=$ac_clean_files
  13872. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13874. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13875. as_write_fail=0
  13876. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13877. #! $SHELL
  13878. # Generated by $as_me.
  13879. # Run this file to recreate the current configuration.
  13880. # Compiler output produced by configure, useful for debugging
  13881. # configure, is in config.log if it exists.
  13882. debug=false
  13883. ac_cs_recheck=false
  13884. ac_cs_silent=false
  13885. SHELL=\${CONFIG_SHELL-$SHELL}
  13886. export SHELL
  13887. _ASEOF
  13888. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13889. ## -------------------- ##
  13890. ## M4sh Initialization. ##
  13891. ## -------------------- ##
  13892. # Be more Bourne compatible
  13893. DUALCASE=1; export DUALCASE # for MKS sh
  13894. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13895. emulate sh
  13896. NULLCMD=:
  13897. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13898. # is contrary to our usage. Disable this feature.
  13899. alias -g '${1+"$@"}'='"$@"'
  13900. setopt NO_GLOB_SUBST
  13901. else
  13902. case `(set -o) 2>/dev/null` in #(
  13903. *posix*) :
  13904. set -o posix ;; #(
  13905. *) :
  13906. ;;
  13907. esac
  13908. fi
  13909. as_nl='
  13910. '
  13911. export as_nl
  13912. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13913. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13914. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13915. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13916. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13917. # but without wasting forks for bash or zsh.
  13918. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13919. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13920. as_echo='print -r --'
  13921. as_echo_n='print -rn --'
  13922. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13923. as_echo='printf %s\n'
  13924. as_echo_n='printf %s'
  13925. else
  13926. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13927. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13928. as_echo_n='/usr/ucb/echo -n'
  13929. else
  13930. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13931. as_echo_n_body='eval
  13932. arg=$1;
  13933. case $arg in #(
  13934. *"$as_nl"*)
  13935. expr "X$arg" : "X\\(.*\\)$as_nl";
  13936. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13937. esac;
  13938. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13939. '
  13940. export as_echo_n_body
  13941. as_echo_n='sh -c $as_echo_n_body as_echo'
  13942. fi
  13943. export as_echo_body
  13944. as_echo='sh -c $as_echo_body as_echo'
  13945. fi
  13946. # The user is always right.
  13947. if test "${PATH_SEPARATOR+set}" != set; then
  13948. PATH_SEPARATOR=:
  13949. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13950. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13951. PATH_SEPARATOR=';'
  13952. }
  13953. fi
  13954. # IFS
  13955. # We need space, tab and new line, in precisely that order. Quoting is
  13956. # there to prevent editors from complaining about space-tab.
  13957. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13958. # splitting by setting IFS to empty value.)
  13959. IFS=" "" $as_nl"
  13960. # Find who we are. Look in the path if we contain no directory separator.
  13961. case $0 in #((
  13962. *[\\/]* ) as_myself=$0 ;;
  13963. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13964. for as_dir in $PATH
  13965. do
  13966. IFS=$as_save_IFS
  13967. test -z "$as_dir" && as_dir=.
  13968. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13969. done
  13970. IFS=$as_save_IFS
  13971. ;;
  13972. esac
  13973. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13974. # in which case we are not to be found in the path.
  13975. if test "x$as_myself" = x; then
  13976. as_myself=$0
  13977. fi
  13978. if test ! -f "$as_myself"; then
  13979. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13980. exit 1
  13981. fi
  13982. # Unset variables that we do not need and which cause bugs (e.g. in
  13983. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13984. # suppresses any "Segmentation fault" message there. '((' could
  13985. # trigger a bug in pdksh 5.2.14.
  13986. for as_var in BASH_ENV ENV MAIL MAILPATH
  13987. do eval test x\${$as_var+set} = xset \
  13988. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13989. done
  13990. PS1='$ '
  13991. PS2='> '
  13992. PS4='+ '
  13993. # NLS nuisances.
  13994. LC_ALL=C
  13995. export LC_ALL
  13996. LANGUAGE=C
  13997. export LANGUAGE
  13998. # CDPATH.
  13999. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14000. # as_fn_error ERROR [LINENO LOG_FD]
  14001. # ---------------------------------
  14002. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14003. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14004. # script with status $?, using 1 if that was 0.
  14005. as_fn_error ()
  14006. {
  14007. as_status=$?; test $as_status -eq 0 && as_status=1
  14008. if test "$3"; then
  14009. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14010. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14011. fi
  14012. $as_echo "$as_me: error: $1" >&2
  14013. as_fn_exit $as_status
  14014. } # as_fn_error
  14015. # as_fn_set_status STATUS
  14016. # -----------------------
  14017. # Set $? to STATUS, without forking.
  14018. as_fn_set_status ()
  14019. {
  14020. return $1
  14021. } # as_fn_set_status
  14022. # as_fn_exit STATUS
  14023. # -----------------
  14024. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14025. as_fn_exit ()
  14026. {
  14027. set +e
  14028. as_fn_set_status $1
  14029. exit $1
  14030. } # as_fn_exit
  14031. # as_fn_unset VAR
  14032. # ---------------
  14033. # Portably unset VAR.
  14034. as_fn_unset ()
  14035. {
  14036. { eval $1=; unset $1;}
  14037. }
  14038. as_unset=as_fn_unset
  14039. # as_fn_append VAR VALUE
  14040. # ----------------------
  14041. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14042. # advantage of any shell optimizations that allow amortized linear growth over
  14043. # repeated appends, instead of the typical quadratic growth present in naive
  14044. # implementations.
  14045. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14046. eval 'as_fn_append ()
  14047. {
  14048. eval $1+=\$2
  14049. }'
  14050. else
  14051. as_fn_append ()
  14052. {
  14053. eval $1=\$$1\$2
  14054. }
  14055. fi # as_fn_append
  14056. # as_fn_arith ARG...
  14057. # ------------------
  14058. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14059. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14060. # must be portable across $(()) and expr.
  14061. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14062. eval 'as_fn_arith ()
  14063. {
  14064. as_val=$(( $* ))
  14065. }'
  14066. else
  14067. as_fn_arith ()
  14068. {
  14069. as_val=`expr "$@" || test $? -eq 1`
  14070. }
  14071. fi # as_fn_arith
  14072. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14073. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14074. as_expr=expr
  14075. else
  14076. as_expr=false
  14077. fi
  14078. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14079. as_basename=basename
  14080. else
  14081. as_basename=false
  14082. fi
  14083. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14084. as_dirname=dirname
  14085. else
  14086. as_dirname=false
  14087. fi
  14088. as_me=`$as_basename -- "$0" ||
  14089. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14090. X"$0" : 'X\(//\)$' \| \
  14091. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14092. $as_echo X/"$0" |
  14093. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14094. s//\1/
  14095. q
  14096. }
  14097. /^X\/\(\/\/\)$/{
  14098. s//\1/
  14099. q
  14100. }
  14101. /^X\/\(\/\).*/{
  14102. s//\1/
  14103. q
  14104. }
  14105. s/.*/./; q'`
  14106. # Avoid depending upon Character Ranges.
  14107. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14108. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14109. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14110. as_cr_digits='0123456789'
  14111. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14112. ECHO_C= ECHO_N= ECHO_T=
  14113. case `echo -n x` in #(((((
  14114. -n*)
  14115. case `echo 'xy\c'` in
  14116. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14117. xy) ECHO_C='\c';;
  14118. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14119. ECHO_T=' ';;
  14120. esac;;
  14121. *)
  14122. ECHO_N='-n';;
  14123. esac
  14124. rm -f conf$$ conf$$.exe conf$$.file
  14125. if test -d conf$$.dir; then
  14126. rm -f conf$$.dir/conf$$.file
  14127. else
  14128. rm -f conf$$.dir
  14129. mkdir conf$$.dir 2>/dev/null
  14130. fi
  14131. if (echo >conf$$.file) 2>/dev/null; then
  14132. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14133. as_ln_s='ln -s'
  14134. # ... but there are two gotchas:
  14135. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14136. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14137. # In both cases, we have to default to `cp -p'.
  14138. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14139. as_ln_s='cp -p'
  14140. elif ln conf$$.file conf$$ 2>/dev/null; then
  14141. as_ln_s=ln
  14142. else
  14143. as_ln_s='cp -p'
  14144. fi
  14145. else
  14146. as_ln_s='cp -p'
  14147. fi
  14148. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14149. rmdir conf$$.dir 2>/dev/null
  14150. # as_fn_mkdir_p
  14151. # -------------
  14152. # Create "$as_dir" as a directory, including parents if necessary.
  14153. as_fn_mkdir_p ()
  14154. {
  14155. case $as_dir in #(
  14156. -*) as_dir=./$as_dir;;
  14157. esac
  14158. test -d "$as_dir" || eval $as_mkdir_p || {
  14159. as_dirs=
  14160. while :; do
  14161. case $as_dir in #(
  14162. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14163. *) as_qdir=$as_dir;;
  14164. esac
  14165. as_dirs="'$as_qdir' $as_dirs"
  14166. as_dir=`$as_dirname -- "$as_dir" ||
  14167. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14168. X"$as_dir" : 'X\(//\)[^/]' \| \
  14169. X"$as_dir" : 'X\(//\)$' \| \
  14170. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14171. $as_echo X"$as_dir" |
  14172. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14173. s//\1/
  14174. q
  14175. }
  14176. /^X\(\/\/\)[^/].*/{
  14177. s//\1/
  14178. q
  14179. }
  14180. /^X\(\/\/\)$/{
  14181. s//\1/
  14182. q
  14183. }
  14184. /^X\(\/\).*/{
  14185. s//\1/
  14186. q
  14187. }
  14188. s/.*/./; q'`
  14189. test -d "$as_dir" && break
  14190. done
  14191. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14192. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14193. } # as_fn_mkdir_p
  14194. if mkdir -p . 2>/dev/null; then
  14195. as_mkdir_p='mkdir -p "$as_dir"'
  14196. else
  14197. test -d ./-p && rmdir ./-p
  14198. as_mkdir_p=false
  14199. fi
  14200. if test -x / >/dev/null 2>&1; then
  14201. as_test_x='test -x'
  14202. else
  14203. if ls -dL / >/dev/null 2>&1; then
  14204. as_ls_L_option=L
  14205. else
  14206. as_ls_L_option=
  14207. fi
  14208. as_test_x='
  14209. eval sh -c '\''
  14210. if test -d "$1"; then
  14211. test -d "$1/.";
  14212. else
  14213. case $1 in #(
  14214. -*)set "./$1";;
  14215. esac;
  14216. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14217. ???[sx]*):;;*)false;;esac;fi
  14218. '\'' sh
  14219. '
  14220. fi
  14221. as_executable_p=$as_test_x
  14222. # Sed expression to map a string onto a valid CPP name.
  14223. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14224. # Sed expression to map a string onto a valid variable name.
  14225. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14226. exec 6>&1
  14227. ## ----------------------------------- ##
  14228. ## Main body of $CONFIG_STATUS script. ##
  14229. ## ----------------------------------- ##
  14230. _ASEOF
  14231. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14232. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14233. # Save the log message, to keep $0 and so on meaningful, and to
  14234. # report actual input values of CONFIG_FILES etc. instead of their
  14235. # values after options handling.
  14236. ac_log="
  14237. This file was extended by bfd $as_me 2.25.51, which was
  14238. generated by GNU Autoconf 2.64. Invocation command line was
  14239. CONFIG_FILES = $CONFIG_FILES
  14240. CONFIG_HEADERS = $CONFIG_HEADERS
  14241. CONFIG_LINKS = $CONFIG_LINKS
  14242. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14243. $ $0 $@
  14244. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14245. "
  14246. _ACEOF
  14247. case $ac_config_files in *"
  14248. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14249. esac
  14250. case $ac_config_headers in *"
  14251. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14252. esac
  14253. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14254. # Files that config.status was made for.
  14255. config_files="$ac_config_files"
  14256. config_headers="$ac_config_headers"
  14257. config_commands="$ac_config_commands"
  14258. _ACEOF
  14259. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14260. ac_cs_usage="\
  14261. \`$as_me' instantiates files and other configuration actions
  14262. from templates according to the current configuration. Unless the files
  14263. and actions are specified as TAGs, all are instantiated by default.
  14264. Usage: $0 [OPTION]... [TAG]...
  14265. -h, --help print this help, then exit
  14266. -V, --version print version number and configuration settings, then exit
  14267. -q, --quiet, --silent
  14268. do not print progress messages
  14269. -d, --debug don't remove temporary files
  14270. --recheck update $as_me by reconfiguring in the same conditions
  14271. --file=FILE[:TEMPLATE]
  14272. instantiate the configuration file FILE
  14273. --header=FILE[:TEMPLATE]
  14274. instantiate the configuration header FILE
  14275. Configuration files:
  14276. $config_files
  14277. Configuration headers:
  14278. $config_headers
  14279. Configuration commands:
  14280. $config_commands
  14281. Report bugs to the package provider."
  14282. _ACEOF
  14283. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14284. ac_cs_version="\\
  14285. bfd config.status 2.25.51
  14286. configured by $0, generated by GNU Autoconf 2.64,
  14287. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14288. Copyright (C) 2009 Free Software Foundation, Inc.
  14289. This config.status script is free software; the Free Software Foundation
  14290. gives unlimited permission to copy, distribute and modify it."
  14291. ac_pwd='$ac_pwd'
  14292. srcdir='$srcdir'
  14293. INSTALL='$INSTALL'
  14294. MKDIR_P='$MKDIR_P'
  14295. AWK='$AWK'
  14296. test -n "\$AWK" || AWK=awk
  14297. _ACEOF
  14298. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14299. # The default lists apply if the user does not specify any file.
  14300. ac_need_defaults=:
  14301. while test $# != 0
  14302. do
  14303. case $1 in
  14304. --*=*)
  14305. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14306. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14307. ac_shift=:
  14308. ;;
  14309. *)
  14310. ac_option=$1
  14311. ac_optarg=$2
  14312. ac_shift=shift
  14313. ;;
  14314. esac
  14315. case $ac_option in
  14316. # Handling of the options.
  14317. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14318. ac_cs_recheck=: ;;
  14319. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14320. $as_echo "$ac_cs_version"; exit ;;
  14321. --debug | --debu | --deb | --de | --d | -d )
  14322. debug=: ;;
  14323. --file | --fil | --fi | --f )
  14324. $ac_shift
  14325. case $ac_optarg in
  14326. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14327. esac
  14328. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14329. ac_need_defaults=false;;
  14330. --header | --heade | --head | --hea )
  14331. $ac_shift
  14332. case $ac_optarg in
  14333. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14334. esac
  14335. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14336. ac_need_defaults=false;;
  14337. --he | --h)
  14338. # Conflict between --help and --header
  14339. as_fn_error "ambiguous option: \`$1'
  14340. Try \`$0 --help' for more information.";;
  14341. --help | --hel | -h )
  14342. $as_echo "$ac_cs_usage"; exit ;;
  14343. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14344. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14345. ac_cs_silent=: ;;
  14346. # This is an error.
  14347. -*) as_fn_error "unrecognized option: \`$1'
  14348. Try \`$0 --help' for more information." ;;
  14349. *) as_fn_append ac_config_targets " $1"
  14350. ac_need_defaults=false ;;
  14351. esac
  14352. shift
  14353. done
  14354. ac_configure_extra_args=
  14355. if $ac_cs_silent; then
  14356. exec 6>/dev/null
  14357. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14358. fi
  14359. _ACEOF
  14360. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14361. if \$ac_cs_recheck; then
  14362. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14363. shift
  14364. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14365. CONFIG_SHELL='$SHELL'
  14366. export CONFIG_SHELL
  14367. exec "\$@"
  14368. fi
  14369. _ACEOF
  14370. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14371. exec 5>>config.log
  14372. {
  14373. echo
  14374. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14375. ## Running $as_me. ##
  14376. _ASBOX
  14377. $as_echo "$ac_log"
  14378. } >&5
  14379. _ACEOF
  14380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14381. #
  14382. # INIT-COMMANDS
  14383. #
  14384. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14385. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14386. # if CDPATH is set.
  14387. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14388. sed_quote_subst='$sed_quote_subst'
  14389. double_quote_subst='$double_quote_subst'
  14390. delay_variable_subst='$delay_variable_subst'
  14391. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14392. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14393. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14394. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14395. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14396. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14397. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14398. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14399. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14400. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14401. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14402. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14403. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14404. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14405. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14406. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14407. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14408. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14409. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14410. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14411. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14412. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14413. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14414. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14415. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14416. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14417. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14418. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14419. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14420. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14421. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14422. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14423. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14424. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14425. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14426. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14427. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14428. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14429. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14430. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14431. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14432. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14433. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14434. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14435. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14436. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14437. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14438. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14439. 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"`'
  14440. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14441. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14442. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14443. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14444. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14445. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14446. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14447. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14448. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14449. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14450. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14451. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14452. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14453. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14454. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14455. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14456. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14457. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14458. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14459. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14460. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14461. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14462. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14463. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14464. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14465. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14466. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14467. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14468. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14469. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14470. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14471. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14472. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14473. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14474. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14475. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14476. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14477. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14478. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14479. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14480. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14481. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14482. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14483. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14484. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14485. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14486. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14487. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14488. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14489. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14490. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14491. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14492. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14493. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14494. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14495. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14496. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14497. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14498. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14499. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14500. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14501. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14502. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14503. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14504. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14505. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14506. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14507. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14508. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14509. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14510. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14511. LTCC='$LTCC'
  14512. LTCFLAGS='$LTCFLAGS'
  14513. compiler='$compiler_DEFAULT'
  14514. # A function that is used when there is no print builtin or printf.
  14515. func_fallback_echo ()
  14516. {
  14517. eval 'cat <<_LTECHO_EOF
  14518. \$1
  14519. _LTECHO_EOF'
  14520. }
  14521. # Quote evaled strings.
  14522. for var in SHELL \
  14523. ECHO \
  14524. SED \
  14525. GREP \
  14526. EGREP \
  14527. FGREP \
  14528. LD \
  14529. NM \
  14530. LN_S \
  14531. lt_SP2NL \
  14532. lt_NL2SP \
  14533. reload_flag \
  14534. OBJDUMP \
  14535. deplibs_check_method \
  14536. file_magic_cmd \
  14537. AR \
  14538. AR_FLAGS \
  14539. STRIP \
  14540. RANLIB \
  14541. CC \
  14542. CFLAGS \
  14543. compiler \
  14544. lt_cv_sys_global_symbol_pipe \
  14545. lt_cv_sys_global_symbol_to_cdecl \
  14546. lt_cv_sys_global_symbol_to_c_name_address \
  14547. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14548. lt_prog_compiler_no_builtin_flag \
  14549. lt_prog_compiler_wl \
  14550. lt_prog_compiler_pic \
  14551. lt_prog_compiler_static \
  14552. lt_cv_prog_compiler_c_o \
  14553. need_locks \
  14554. DSYMUTIL \
  14555. NMEDIT \
  14556. LIPO \
  14557. OTOOL \
  14558. OTOOL64 \
  14559. shrext_cmds \
  14560. export_dynamic_flag_spec \
  14561. whole_archive_flag_spec \
  14562. compiler_needs_object \
  14563. with_gnu_ld \
  14564. allow_undefined_flag \
  14565. no_undefined_flag \
  14566. hardcode_libdir_flag_spec \
  14567. hardcode_libdir_flag_spec_ld \
  14568. hardcode_libdir_separator \
  14569. fix_srcfile_path \
  14570. exclude_expsyms \
  14571. include_expsyms \
  14572. file_list_spec \
  14573. variables_saved_for_relink \
  14574. libname_spec \
  14575. library_names_spec \
  14576. soname_spec \
  14577. install_override_mode \
  14578. finish_eval \
  14579. old_striplib \
  14580. striplib; do
  14581. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14582. *[\\\\\\\`\\"\\\$]*)
  14583. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14584. ;;
  14585. *)
  14586. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14587. ;;
  14588. esac
  14589. done
  14590. # Double-quote double-evaled strings.
  14591. for var in reload_cmds \
  14592. old_postinstall_cmds \
  14593. old_postuninstall_cmds \
  14594. old_archive_cmds \
  14595. extract_expsyms_cmds \
  14596. old_archive_from_new_cmds \
  14597. old_archive_from_expsyms_cmds \
  14598. archive_cmds \
  14599. archive_expsym_cmds \
  14600. module_cmds \
  14601. module_expsym_cmds \
  14602. export_symbols_cmds \
  14603. prelink_cmds \
  14604. postinstall_cmds \
  14605. postuninstall_cmds \
  14606. finish_cmds \
  14607. sys_lib_search_path_spec \
  14608. sys_lib_dlsearch_path_spec; do
  14609. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14610. *[\\\\\\\`\\"\\\$]*)
  14611. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14612. ;;
  14613. *)
  14614. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14615. ;;
  14616. esac
  14617. done
  14618. ac_aux_dir='$ac_aux_dir'
  14619. xsi_shell='$xsi_shell'
  14620. lt_shell_append='$lt_shell_append'
  14621. # See if we are running on zsh, and set the options which allow our
  14622. # commands through without removal of \ escapes INIT.
  14623. if test -n "\${ZSH_VERSION+set}" ; then
  14624. setopt NO_GLOB_SUBST
  14625. fi
  14626. PACKAGE='$PACKAGE'
  14627. VERSION='$VERSION'
  14628. TIMESTAMP='$TIMESTAMP'
  14629. RM='$RM'
  14630. ofile='$ofile'
  14631. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14632. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  14633. # from automake.
  14634. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14635. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14636. LINGUAS="${LINGUAS-%UNSET%}"
  14637. GCC="$GCC"
  14638. CC="$CC"
  14639. acx_cv_header_stdint="$acx_cv_header_stdint"
  14640. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  14641. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  14642. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  14643. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  14644. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  14645. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  14646. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  14647. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  14648. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  14649. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  14650. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  14651. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  14652. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  14653. _ACEOF
  14654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14655. # Handling of arguments.
  14656. for ac_config_target in $ac_config_targets
  14657. do
  14658. case $ac_config_target in
  14659. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14660. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14661. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  14662. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14663. "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
  14664. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14665. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14666. "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
  14667. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  14668. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  14669. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14670. esac
  14671. done
  14672. # If the user did not use the arguments to specify the items to instantiate,
  14673. # then the envvar interface is used. Set only those that are not.
  14674. # We use the long form for the default assignment because of an extremely
  14675. # bizarre bug on SunOS 4.1.3.
  14676. if $ac_need_defaults; then
  14677. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14678. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14679. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14680. fi
  14681. # Have a temporary directory for convenience. Make it in the build tree
  14682. # simply because there is no reason against having it here, and in addition,
  14683. # creating and moving files from /tmp can sometimes cause problems.
  14684. # Hook for its removal unless debugging.
  14685. # Note that there is a small window in which the directory will not be cleaned:
  14686. # after its creation but before its name has been assigned to `$tmp'.
  14687. $debug ||
  14688. {
  14689. tmp=
  14690. trap 'exit_status=$?
  14691. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14692. ' 0
  14693. trap 'as_fn_exit 1' 1 2 13 15
  14694. }
  14695. # Create a (secure) tmp directory for tmp files.
  14696. {
  14697. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14698. test -n "$tmp" && test -d "$tmp"
  14699. } ||
  14700. {
  14701. tmp=./conf$$-$RANDOM
  14702. (umask 077 && mkdir "$tmp")
  14703. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14704. # Set up the scripts for CONFIG_FILES section.
  14705. # No need to generate them if there are no CONFIG_FILES.
  14706. # This happens for instance with `./config.status config.h'.
  14707. if test -n "$CONFIG_FILES"; then
  14708. ac_cr=`echo X | tr X '\015'`
  14709. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14710. # But we know of no other shell where ac_cr would be empty at this
  14711. # point, so we can use a bashism as a fallback.
  14712. if test "x$ac_cr" = x; then
  14713. eval ac_cr=\$\'\\r\'
  14714. fi
  14715. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14716. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14717. ac_cs_awk_cr='\r'
  14718. else
  14719. ac_cs_awk_cr=$ac_cr
  14720. fi
  14721. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14722. _ACEOF
  14723. {
  14724. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14725. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14726. echo "_ACEOF"
  14727. } >conf$$subs.sh ||
  14728. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14729. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14730. ac_delim='%!_!# '
  14731. for ac_last_try in false false false false false :; do
  14732. . ./conf$$subs.sh ||
  14733. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14734. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14735. if test $ac_delim_n = $ac_delim_num; then
  14736. break
  14737. elif $ac_last_try; then
  14738. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14739. else
  14740. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14741. fi
  14742. done
  14743. rm -f conf$$subs.sh
  14744. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14745. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14746. _ACEOF
  14747. sed -n '
  14748. h
  14749. s/^/S["/; s/!.*/"]=/
  14750. p
  14751. g
  14752. s/^[^!]*!//
  14753. :repl
  14754. t repl
  14755. s/'"$ac_delim"'$//
  14756. t delim
  14757. :nl
  14758. h
  14759. s/\(.\{148\}\).*/\1/
  14760. t more1
  14761. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14762. p
  14763. n
  14764. b repl
  14765. :more1
  14766. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14767. p
  14768. g
  14769. s/.\{148\}//
  14770. t nl
  14771. :delim
  14772. h
  14773. s/\(.\{148\}\).*/\1/
  14774. t more2
  14775. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14776. p
  14777. b
  14778. :more2
  14779. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14780. p
  14781. g
  14782. s/.\{148\}//
  14783. t delim
  14784. ' <conf$$subs.awk | sed '
  14785. /^[^""]/{
  14786. N
  14787. s/\n//
  14788. }
  14789. ' >>$CONFIG_STATUS || ac_write_fail=1
  14790. rm -f conf$$subs.awk
  14791. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14792. _ACAWK
  14793. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14794. for (key in S) S_is_set[key] = 1
  14795. FS = ""
  14796. }
  14797. {
  14798. line = $ 0
  14799. nfields = split(line, field, "@")
  14800. substed = 0
  14801. len = length(field[1])
  14802. for (i = 2; i < nfields; i++) {
  14803. key = field[i]
  14804. keylen = length(key)
  14805. if (S_is_set[key]) {
  14806. value = S[key]
  14807. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14808. len += length(value) + length(field[++i])
  14809. substed = 1
  14810. } else
  14811. len += 1 + keylen
  14812. }
  14813. print line
  14814. }
  14815. _ACAWK
  14816. _ACEOF
  14817. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14818. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14819. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14820. else
  14821. cat
  14822. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14823. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14824. _ACEOF
  14825. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14826. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14827. # trailing colons and then remove the whole line if VPATH becomes empty
  14828. # (actually we leave an empty line to preserve line numbers).
  14829. if test "x$srcdir" = x.; then
  14830. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14831. s/:*\$(srcdir):*/:/
  14832. s/:*\${srcdir}:*/:/
  14833. s/:*@srcdir@:*/:/
  14834. s/^\([^=]*=[ ]*\):*/\1/
  14835. s/:*$//
  14836. s/^[^=]*=[ ]*$//
  14837. }'
  14838. fi
  14839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14840. fi # test -n "$CONFIG_FILES"
  14841. # Set up the scripts for CONFIG_HEADERS section.
  14842. # No need to generate them if there are no CONFIG_HEADERS.
  14843. # This happens for instance with `./config.status Makefile'.
  14844. if test -n "$CONFIG_HEADERS"; then
  14845. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14846. BEGIN {
  14847. _ACEOF
  14848. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14849. # here-document in config.status, that substitutes the proper values into
  14850. # config.h.in to produce config.h.
  14851. # Create a delimiter string that does not exist in confdefs.h, to ease
  14852. # handling of long lines.
  14853. ac_delim='%!_!# '
  14854. for ac_last_try in false false :; do
  14855. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14856. if test -z "$ac_t"; then
  14857. break
  14858. elif $ac_last_try; then
  14859. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14860. else
  14861. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14862. fi
  14863. done
  14864. # For the awk script, D is an array of macro values keyed by name,
  14865. # likewise P contains macro parameters if any. Preserve backslash
  14866. # newline sequences.
  14867. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14868. sed -n '
  14869. s/.\{148\}/&'"$ac_delim"'/g
  14870. t rset
  14871. :rset
  14872. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14873. t def
  14874. d
  14875. :def
  14876. s/\\$//
  14877. t bsnl
  14878. s/["\\]/\\&/g
  14879. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14880. D["\1"]=" \3"/p
  14881. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14882. d
  14883. :bsnl
  14884. s/["\\]/\\&/g
  14885. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14886. D["\1"]=" \3\\\\\\n"\\/p
  14887. t cont
  14888. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14889. t cont
  14890. d
  14891. :cont
  14892. n
  14893. s/.\{148\}/&'"$ac_delim"'/g
  14894. t clear
  14895. :clear
  14896. s/\\$//
  14897. t bsnlc
  14898. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14899. d
  14900. :bsnlc
  14901. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14902. b cont
  14903. ' <confdefs.h | sed '
  14904. s/'"$ac_delim"'/"\\\
  14905. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14907. for (key in D) D_is_set[key] = 1
  14908. FS = ""
  14909. }
  14910. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14911. line = \$ 0
  14912. split(line, arg, " ")
  14913. if (arg[1] == "#") {
  14914. defundef = arg[2]
  14915. mac1 = arg[3]
  14916. } else {
  14917. defundef = substr(arg[1], 2)
  14918. mac1 = arg[2]
  14919. }
  14920. split(mac1, mac2, "(") #)
  14921. macro = mac2[1]
  14922. prefix = substr(line, 1, index(line, defundef) - 1)
  14923. if (D_is_set[macro]) {
  14924. # Preserve the white space surrounding the "#".
  14925. print prefix "define", macro P[macro] D[macro]
  14926. next
  14927. } else {
  14928. # Replace #undef with comments. This is necessary, for example,
  14929. # in the case of _POSIX_SOURCE, which is predefined and required
  14930. # on some systems where configure will not decide to define it.
  14931. if (defundef == "undef") {
  14932. print "/*", prefix defundef, macro, "*/"
  14933. next
  14934. }
  14935. }
  14936. }
  14937. { print }
  14938. _ACAWK
  14939. _ACEOF
  14940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14941. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14942. fi # test -n "$CONFIG_HEADERS"
  14943. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14944. shift
  14945. for ac_tag
  14946. do
  14947. case $ac_tag in
  14948. :[FHLC]) ac_mode=$ac_tag; continue;;
  14949. esac
  14950. case $ac_mode$ac_tag in
  14951. :[FHL]*:*);;
  14952. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14953. :[FH]-) ac_tag=-:-;;
  14954. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14955. esac
  14956. ac_save_IFS=$IFS
  14957. IFS=:
  14958. set x $ac_tag
  14959. IFS=$ac_save_IFS
  14960. shift
  14961. ac_file=$1
  14962. shift
  14963. case $ac_mode in
  14964. :L) ac_source=$1;;
  14965. :[FH])
  14966. ac_file_inputs=
  14967. for ac_f
  14968. do
  14969. case $ac_f in
  14970. -) ac_f="$tmp/stdin";;
  14971. *) # Look for the file first in the build tree, then in the source tree
  14972. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14973. # because $ac_f cannot contain `:'.
  14974. test -f "$ac_f" ||
  14975. case $ac_f in
  14976. [\\/$]*) false;;
  14977. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14978. esac ||
  14979. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14980. esac
  14981. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14982. as_fn_append ac_file_inputs " '$ac_f'"
  14983. done
  14984. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14985. # use $as_me), people would be surprised to read:
  14986. # /* config.h. Generated by config.status. */
  14987. configure_input='Generated from '`
  14988. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14989. `' by configure.'
  14990. if test x"$ac_file" != x-; then
  14991. configure_input="$ac_file. $configure_input"
  14992. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14993. $as_echo "$as_me: creating $ac_file" >&6;}
  14994. fi
  14995. # Neutralize special characters interpreted by sed in replacement strings.
  14996. case $configure_input in #(
  14997. *\&* | *\|* | *\\* )
  14998. ac_sed_conf_input=`$as_echo "$configure_input" |
  14999. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15000. *) ac_sed_conf_input=$configure_input;;
  15001. esac
  15002. case $ac_tag in
  15003. *:-:* | *:-) cat >"$tmp/stdin" \
  15004. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15005. esac
  15006. ;;
  15007. esac
  15008. ac_dir=`$as_dirname -- "$ac_file" ||
  15009. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15010. X"$ac_file" : 'X\(//\)[^/]' \| \
  15011. X"$ac_file" : 'X\(//\)$' \| \
  15012. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15013. $as_echo X"$ac_file" |
  15014. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15015. s//\1/
  15016. q
  15017. }
  15018. /^X\(\/\/\)[^/].*/{
  15019. s//\1/
  15020. q
  15021. }
  15022. /^X\(\/\/\)$/{
  15023. s//\1/
  15024. q
  15025. }
  15026. /^X\(\/\).*/{
  15027. s//\1/
  15028. q
  15029. }
  15030. s/.*/./; q'`
  15031. as_dir="$ac_dir"; as_fn_mkdir_p
  15032. ac_builddir=.
  15033. case "$ac_dir" in
  15034. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15035. *)
  15036. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15037. # A ".." for each directory in $ac_dir_suffix.
  15038. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15039. case $ac_top_builddir_sub in
  15040. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15041. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15042. esac ;;
  15043. esac
  15044. ac_abs_top_builddir=$ac_pwd
  15045. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15046. # for backward compatibility:
  15047. ac_top_builddir=$ac_top_build_prefix
  15048. case $srcdir in
  15049. .) # We are building in place.
  15050. ac_srcdir=.
  15051. ac_top_srcdir=$ac_top_builddir_sub
  15052. ac_abs_top_srcdir=$ac_pwd ;;
  15053. [\\/]* | ?:[\\/]* ) # Absolute name.
  15054. ac_srcdir=$srcdir$ac_dir_suffix;
  15055. ac_top_srcdir=$srcdir
  15056. ac_abs_top_srcdir=$srcdir ;;
  15057. *) # Relative name.
  15058. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15059. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15060. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15061. esac
  15062. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15063. case $ac_mode in
  15064. :F)
  15065. #
  15066. # CONFIG_FILE
  15067. #
  15068. case $INSTALL in
  15069. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15070. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15071. esac
  15072. ac_MKDIR_P=$MKDIR_P
  15073. case $MKDIR_P in
  15074. [\\/$]* | ?:[\\/]* ) ;;
  15075. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15076. esac
  15077. _ACEOF
  15078. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15079. # If the template does not know about datarootdir, expand it.
  15080. # FIXME: This hack should be removed a few years after 2.60.
  15081. ac_datarootdir_hack=; ac_datarootdir_seen=
  15082. ac_sed_dataroot='
  15083. /datarootdir/ {
  15084. p
  15085. q
  15086. }
  15087. /@datadir@/p
  15088. /@docdir@/p
  15089. /@infodir@/p
  15090. /@localedir@/p
  15091. /@mandir@/p'
  15092. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15093. *datarootdir*) ac_datarootdir_seen=yes;;
  15094. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15096. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15097. _ACEOF
  15098. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15099. ac_datarootdir_hack='
  15100. s&@datadir@&$datadir&g
  15101. s&@docdir@&$docdir&g
  15102. s&@infodir@&$infodir&g
  15103. s&@localedir@&$localedir&g
  15104. s&@mandir@&$mandir&g
  15105. s&\\\${datarootdir}&$datarootdir&g' ;;
  15106. esac
  15107. _ACEOF
  15108. # Neutralize VPATH when `$srcdir' = `.'.
  15109. # Shell code in configure.ac might set extrasub.
  15110. # FIXME: do we really want to maintain this feature?
  15111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15112. ac_sed_extra="$ac_vpsub
  15113. $extrasub
  15114. _ACEOF
  15115. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15116. :t
  15117. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15118. s|@configure_input@|$ac_sed_conf_input|;t t
  15119. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15120. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15121. s&@srcdir@&$ac_srcdir&;t t
  15122. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15123. s&@top_srcdir@&$ac_top_srcdir&;t t
  15124. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15125. s&@builddir@&$ac_builddir&;t t
  15126. s&@abs_builddir@&$ac_abs_builddir&;t t
  15127. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15128. s&@INSTALL@&$ac_INSTALL&;t t
  15129. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15130. $ac_datarootdir_hack
  15131. "
  15132. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15133. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15134. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15135. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15136. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15138. which seems to be undefined. Please make sure it is defined." >&5
  15139. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15140. which seems to be undefined. Please make sure it is defined." >&2;}
  15141. rm -f "$tmp/stdin"
  15142. case $ac_file in
  15143. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15144. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15145. esac \
  15146. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15147. ;;
  15148. :H)
  15149. #
  15150. # CONFIG_HEADER
  15151. #
  15152. if test x"$ac_file" != x-; then
  15153. {
  15154. $as_echo "/* $configure_input */" \
  15155. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15156. } >"$tmp/config.h" \
  15157. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15158. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15159. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15160. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15161. else
  15162. rm -f "$ac_file"
  15163. mv "$tmp/config.h" "$ac_file" \
  15164. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15165. fi
  15166. else
  15167. $as_echo "/* $configure_input */" \
  15168. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  15169. || as_fn_error "could not create -" "$LINENO" 5
  15170. fi
  15171. # Compute "$ac_file"'s index in $config_headers.
  15172. _am_arg="$ac_file"
  15173. _am_stamp_count=1
  15174. for _am_header in $config_headers :; do
  15175. case $_am_header in
  15176. $_am_arg | $_am_arg:* )
  15177. break ;;
  15178. * )
  15179. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15180. esac
  15181. done
  15182. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15183. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15184. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15185. X"$_am_arg" : 'X\(//\)$' \| \
  15186. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15187. $as_echo X"$_am_arg" |
  15188. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15189. s//\1/
  15190. q
  15191. }
  15192. /^X\(\/\/\)[^/].*/{
  15193. s//\1/
  15194. q
  15195. }
  15196. /^X\(\/\/\)$/{
  15197. s//\1/
  15198. q
  15199. }
  15200. /^X\(\/\).*/{
  15201. s//\1/
  15202. q
  15203. }
  15204. s/.*/./; q'`/stamp-h$_am_stamp_count
  15205. ;;
  15206. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15207. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15208. ;;
  15209. esac
  15210. case $ac_file$ac_mode in
  15211. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15212. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15213. # are listed without --file. Let's play safe and only enable the eval
  15214. # if we detect the quoting.
  15215. case $CONFIG_FILES in
  15216. *\'*) eval set x "$CONFIG_FILES" ;;
  15217. *) set x $CONFIG_FILES ;;
  15218. esac
  15219. shift
  15220. for mf
  15221. do
  15222. # Strip MF so we end up with the name of the file.
  15223. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15224. # Check whether this is an Automake generated Makefile or not.
  15225. # We used to match only the files named `Makefile.in', but
  15226. # some people rename them; so instead we look at the file content.
  15227. # Grep'ing the first line is not enough: some people post-process
  15228. # each Makefile.in and add a new line on top of each file to say so.
  15229. # Grep'ing the whole file is not good either: AIX grep has a line
  15230. # limit of 2048, but all sed's we know have understand at least 4000.
  15231. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15232. dirpart=`$as_dirname -- "$mf" ||
  15233. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15234. X"$mf" : 'X\(//\)[^/]' \| \
  15235. X"$mf" : 'X\(//\)$' \| \
  15236. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15237. $as_echo X"$mf" |
  15238. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15239. s//\1/
  15240. q
  15241. }
  15242. /^X\(\/\/\)[^/].*/{
  15243. s//\1/
  15244. q
  15245. }
  15246. /^X\(\/\/\)$/{
  15247. s//\1/
  15248. q
  15249. }
  15250. /^X\(\/\).*/{
  15251. s//\1/
  15252. q
  15253. }
  15254. s/.*/./; q'`
  15255. else
  15256. continue
  15257. fi
  15258. # Extract the definition of DEPDIR, am__include, and am__quote
  15259. # from the Makefile without running `make'.
  15260. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15261. test -z "$DEPDIR" && continue
  15262. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15263. test -z "am__include" && continue
  15264. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15265. # When using ansi2knr, U may be empty or an underscore; expand it
  15266. U=`sed -n 's/^U = //p' < "$mf"`
  15267. # Find all dependency output files, they are included files with
  15268. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15269. # simplest approach to changing $(DEPDIR) to its actual value in the
  15270. # expansion.
  15271. for file in `sed -n "
  15272. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15273. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15274. # Make sure the directory exists.
  15275. test -f "$dirpart/$file" && continue
  15276. fdir=`$as_dirname -- "$file" ||
  15277. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15278. X"$file" : 'X\(//\)[^/]' \| \
  15279. X"$file" : 'X\(//\)$' \| \
  15280. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15281. $as_echo X"$file" |
  15282. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15283. s//\1/
  15284. q
  15285. }
  15286. /^X\(\/\/\)[^/].*/{
  15287. s//\1/
  15288. q
  15289. }
  15290. /^X\(\/\/\)$/{
  15291. s//\1/
  15292. q
  15293. }
  15294. /^X\(\/\).*/{
  15295. s//\1/
  15296. q
  15297. }
  15298. s/.*/./; q'`
  15299. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15300. # echo "creating $dirpart/$file"
  15301. echo '# dummy' > "$dirpart/$file"
  15302. done
  15303. done
  15304. }
  15305. ;;
  15306. "libtool":C)
  15307. # See if we are running on zsh, and set the options which allow our
  15308. # commands through without removal of \ escapes.
  15309. if test -n "${ZSH_VERSION+set}" ; then
  15310. setopt NO_GLOB_SUBST
  15311. fi
  15312. cfgfile="${ofile}T"
  15313. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15314. $RM "$cfgfile"
  15315. cat <<_LT_EOF >> "$cfgfile"
  15316. #! $SHELL
  15317. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15318. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15319. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15320. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15321. #
  15322. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15323. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15324. # Written by Gordon Matzigkeit, 1996
  15325. #
  15326. # This file is part of GNU Libtool.
  15327. #
  15328. # GNU Libtool is free software; you can redistribute it and/or
  15329. # modify it under the terms of the GNU General Public License as
  15330. # published by the Free Software Foundation; either version 2 of
  15331. # the License, or (at your option) any later version.
  15332. #
  15333. # As a special exception to the GNU General Public License,
  15334. # if you distribute this file as part of a program or library that
  15335. # is built using GNU Libtool, you may include this file under the
  15336. # same distribution terms that you use for the rest of that program.
  15337. #
  15338. # GNU Libtool is distributed in the hope that it will be useful,
  15339. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15340. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15341. # GNU General Public License for more details.
  15342. #
  15343. # You should have received a copy of the GNU General Public License
  15344. # along with GNU Libtool; see the file COPYING. If not, a copy
  15345. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15346. # obtained by writing to the Free Software Foundation, Inc.,
  15347. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15348. # The names of the tagged configurations supported by this script.
  15349. available_tags=""
  15350. # ### BEGIN LIBTOOL CONFIG
  15351. # Whether or not to build shared libraries.
  15352. build_libtool_libs=$enable_shared
  15353. # Which release of libtool.m4 was used?
  15354. macro_version=$macro_version
  15355. macro_revision=$macro_revision
  15356. # Whether or not to build static libraries.
  15357. build_old_libs=$enable_static
  15358. # What type of objects to build.
  15359. pic_mode=$pic_mode
  15360. # Whether or not to optimize for fast installation.
  15361. fast_install=$enable_fast_install
  15362. # Shell to use when invoking shell scripts.
  15363. SHELL=$lt_SHELL
  15364. # An echo program that protects backslashes.
  15365. ECHO=$lt_ECHO
  15366. # The host system.
  15367. host_alias=$host_alias
  15368. host=$host
  15369. host_os=$host_os
  15370. # The build system.
  15371. build_alias=$build_alias
  15372. build=$build
  15373. build_os=$build_os
  15374. # A sed program that does not truncate output.
  15375. SED=$lt_SED
  15376. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15377. Xsed="\$SED -e 1s/^X//"
  15378. # A grep program that handles long lines.
  15379. GREP=$lt_GREP
  15380. # An ERE matcher.
  15381. EGREP=$lt_EGREP
  15382. # A literal string matcher.
  15383. FGREP=$lt_FGREP
  15384. # A BSD- or MS-compatible name lister.
  15385. NM=$lt_NM
  15386. # Whether we need soft or hard links.
  15387. LN_S=$lt_LN_S
  15388. # What is the maximum length of a command?
  15389. max_cmd_len=$max_cmd_len
  15390. # Object file suffix (normally "o").
  15391. objext=$ac_objext
  15392. # Executable file suffix (normally "").
  15393. exeext=$exeext
  15394. # whether the shell understands "unset".
  15395. lt_unset=$lt_unset
  15396. # turn spaces into newlines.
  15397. SP2NL=$lt_lt_SP2NL
  15398. # turn newlines into spaces.
  15399. NL2SP=$lt_lt_NL2SP
  15400. # An object symbol dumper.
  15401. OBJDUMP=$lt_OBJDUMP
  15402. # Method to check whether dependent libraries are shared objects.
  15403. deplibs_check_method=$lt_deplibs_check_method
  15404. # Command to use when deplibs_check_method == "file_magic".
  15405. file_magic_cmd=$lt_file_magic_cmd
  15406. # The archiver.
  15407. AR=$lt_AR
  15408. AR_FLAGS=$lt_AR_FLAGS
  15409. # A symbol stripping program.
  15410. STRIP=$lt_STRIP
  15411. # Commands used to install an old-style archive.
  15412. RANLIB=$lt_RANLIB
  15413. old_postinstall_cmds=$lt_old_postinstall_cmds
  15414. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15415. # Whether to use a lock for old archive extraction.
  15416. lock_old_archive_extraction=$lock_old_archive_extraction
  15417. # A C compiler.
  15418. LTCC=$lt_CC
  15419. # LTCC compiler flags.
  15420. LTCFLAGS=$lt_CFLAGS
  15421. # Take the output of nm and produce a listing of raw symbols and C names.
  15422. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15423. # Transform the output of nm in a proper C declaration.
  15424. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15425. # Transform the output of nm in a C name address pair.
  15426. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15427. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15428. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15429. # The name of the directory that contains temporary libtool files.
  15430. objdir=$objdir
  15431. # Used to examine libraries when file_magic_cmd begins with "file".
  15432. MAGIC_CMD=$MAGIC_CMD
  15433. # Must we lock files when doing compilation?
  15434. need_locks=$lt_need_locks
  15435. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15436. DSYMUTIL=$lt_DSYMUTIL
  15437. # Tool to change global to local symbols on Mac OS X.
  15438. NMEDIT=$lt_NMEDIT
  15439. # Tool to manipulate fat objects and archives on Mac OS X.
  15440. LIPO=$lt_LIPO
  15441. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15442. OTOOL=$lt_OTOOL
  15443. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15444. OTOOL64=$lt_OTOOL64
  15445. # Old archive suffix (normally "a").
  15446. libext=$libext
  15447. # Shared library suffix (normally ".so").
  15448. shrext_cmds=$lt_shrext_cmds
  15449. # The commands to extract the exported symbol list from a shared archive.
  15450. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15451. # Variables whose values should be saved in libtool wrapper scripts and
  15452. # restored at link time.
  15453. variables_saved_for_relink=$lt_variables_saved_for_relink
  15454. # Do we need the "lib" prefix for modules?
  15455. need_lib_prefix=$need_lib_prefix
  15456. # Do we need a version for libraries?
  15457. need_version=$need_version
  15458. # Library versioning type.
  15459. version_type=$version_type
  15460. # Shared library runtime path variable.
  15461. runpath_var=$runpath_var
  15462. # Shared library path variable.
  15463. shlibpath_var=$shlibpath_var
  15464. # Is shlibpath searched before the hard-coded library search path?
  15465. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15466. # Format of library name prefix.
  15467. libname_spec=$lt_libname_spec
  15468. # List of archive names. First name is the real one, the rest are links.
  15469. # The last name is the one that the linker finds with -lNAME
  15470. library_names_spec=$lt_library_names_spec
  15471. # The coded name of the library, if different from the real name.
  15472. soname_spec=$lt_soname_spec
  15473. # Permission mode override for installation of shared libraries.
  15474. install_override_mode=$lt_install_override_mode
  15475. # Command to use after installation of a shared archive.
  15476. postinstall_cmds=$lt_postinstall_cmds
  15477. # Command to use after uninstallation of a shared archive.
  15478. postuninstall_cmds=$lt_postuninstall_cmds
  15479. # Commands used to finish a libtool library installation in a directory.
  15480. finish_cmds=$lt_finish_cmds
  15481. # As "finish_cmds", except a single script fragment to be evaled but
  15482. # not shown.
  15483. finish_eval=$lt_finish_eval
  15484. # Whether we should hardcode library paths into libraries.
  15485. hardcode_into_libs=$hardcode_into_libs
  15486. # Compile-time system search path for libraries.
  15487. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15488. # Run-time system search path for libraries.
  15489. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15490. # Whether dlopen is supported.
  15491. dlopen_support=$enable_dlopen
  15492. # Whether dlopen of programs is supported.
  15493. dlopen_self=$enable_dlopen_self
  15494. # Whether dlopen of statically linked programs is supported.
  15495. dlopen_self_static=$enable_dlopen_self_static
  15496. # Commands to strip libraries.
  15497. old_striplib=$lt_old_striplib
  15498. striplib=$lt_striplib
  15499. # The linker used to build libraries.
  15500. LD=$lt_LD
  15501. # How to create reloadable object files.
  15502. reload_flag=$lt_reload_flag
  15503. reload_cmds=$lt_reload_cmds
  15504. # Commands used to build an old-style archive.
  15505. old_archive_cmds=$lt_old_archive_cmds
  15506. # A language specific compiler.
  15507. CC=$lt_compiler
  15508. # Is the compiler the GNU compiler?
  15509. with_gcc=$GCC
  15510. # Compiler flag to turn off builtin functions.
  15511. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15512. # How to pass a linker flag through the compiler.
  15513. wl=$lt_lt_prog_compiler_wl
  15514. # Additional compiler flags for building library objects.
  15515. pic_flag=$lt_lt_prog_compiler_pic
  15516. # Compiler flag to prevent dynamic linking.
  15517. link_static_flag=$lt_lt_prog_compiler_static
  15518. # Does compiler simultaneously support -c and -o options?
  15519. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15520. # Whether or not to add -lc for building shared libraries.
  15521. build_libtool_need_lc=$archive_cmds_need_lc
  15522. # Whether or not to disallow shared libs when runtime libs are static.
  15523. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15524. # Compiler flag to allow reflexive dlopens.
  15525. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15526. # Compiler flag to generate shared objects directly from archives.
  15527. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15528. # Whether the compiler copes with passing no objects directly.
  15529. compiler_needs_object=$lt_compiler_needs_object
  15530. # Create an old-style archive from a shared archive.
  15531. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15532. # Create a temporary old-style archive to link instead of a shared archive.
  15533. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15534. # Commands used to build a shared archive.
  15535. archive_cmds=$lt_archive_cmds
  15536. archive_expsym_cmds=$lt_archive_expsym_cmds
  15537. # Commands used to build a loadable module if different from building
  15538. # a shared archive.
  15539. module_cmds=$lt_module_cmds
  15540. module_expsym_cmds=$lt_module_expsym_cmds
  15541. # Whether we are building with GNU ld or not.
  15542. with_gnu_ld=$lt_with_gnu_ld
  15543. # Flag that allows shared libraries with undefined symbols to be built.
  15544. allow_undefined_flag=$lt_allow_undefined_flag
  15545. # Flag that enforces no undefined symbols.
  15546. no_undefined_flag=$lt_no_undefined_flag
  15547. # Flag to hardcode \$libdir into a binary during linking.
  15548. # This must work even if \$libdir does not exist
  15549. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15550. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15551. # during linking. This must work even if \$libdir does not exist.
  15552. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15553. # Whether we need a single "-rpath" flag with a separated argument.
  15554. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15555. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15556. # DIR into the resulting binary.
  15557. hardcode_direct=$hardcode_direct
  15558. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15559. # DIR into the resulting binary and the resulting library dependency is
  15560. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15561. # library is relocated.
  15562. hardcode_direct_absolute=$hardcode_direct_absolute
  15563. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15564. # into the resulting binary.
  15565. hardcode_minus_L=$hardcode_minus_L
  15566. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15567. # into the resulting binary.
  15568. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15569. # Set to "yes" if building a shared library automatically hardcodes DIR
  15570. # into the library and all subsequent libraries and executables linked
  15571. # against it.
  15572. hardcode_automatic=$hardcode_automatic
  15573. # Set to yes if linker adds runtime paths of dependent libraries
  15574. # to runtime path list.
  15575. inherit_rpath=$inherit_rpath
  15576. # Whether libtool must link a program against all its dependency libraries.
  15577. link_all_deplibs=$link_all_deplibs
  15578. # Fix the shell variable \$srcfile for the compiler.
  15579. fix_srcfile_path=$lt_fix_srcfile_path
  15580. # Set to "yes" if exported symbols are required.
  15581. always_export_symbols=$always_export_symbols
  15582. # The commands to list exported symbols.
  15583. export_symbols_cmds=$lt_export_symbols_cmds
  15584. # Symbols that should not be listed in the preloaded symbols.
  15585. exclude_expsyms=$lt_exclude_expsyms
  15586. # Symbols that must always be exported.
  15587. include_expsyms=$lt_include_expsyms
  15588. # Commands necessary for linking programs (against libraries) with templates.
  15589. prelink_cmds=$lt_prelink_cmds
  15590. # Specify filename containing input files.
  15591. file_list_spec=$lt_file_list_spec
  15592. # How to hardcode a shared library path into an executable.
  15593. hardcode_action=$hardcode_action
  15594. # ### END LIBTOOL CONFIG
  15595. _LT_EOF
  15596. case $host_os in
  15597. aix3*)
  15598. cat <<\_LT_EOF >> "$cfgfile"
  15599. # AIX sometimes has problems with the GCC collect2 program. For some
  15600. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15601. # vanish in a puff of smoke.
  15602. if test "X${COLLECT_NAMES+set}" != Xset; then
  15603. COLLECT_NAMES=
  15604. export COLLECT_NAMES
  15605. fi
  15606. _LT_EOF
  15607. ;;
  15608. esac
  15609. ltmain="$ac_aux_dir/ltmain.sh"
  15610. # We use sed instead of cat because bash on DJGPP gets confused if
  15611. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15612. # text mode, it properly converts lines to CR/LF. This bash problem
  15613. # is reportedly fixed, but why not run on old versions too?
  15614. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15615. || (rm -f "$cfgfile"; exit 1)
  15616. case $xsi_shell in
  15617. yes)
  15618. cat << \_LT_EOF >> "$cfgfile"
  15619. # func_dirname file append nondir_replacement
  15620. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15621. # otherwise set result to NONDIR_REPLACEMENT.
  15622. func_dirname ()
  15623. {
  15624. case ${1} in
  15625. */*) func_dirname_result="${1%/*}${2}" ;;
  15626. * ) func_dirname_result="${3}" ;;
  15627. esac
  15628. }
  15629. # func_basename file
  15630. func_basename ()
  15631. {
  15632. func_basename_result="${1##*/}"
  15633. }
  15634. # func_dirname_and_basename file append nondir_replacement
  15635. # perform func_basename and func_dirname in a single function
  15636. # call:
  15637. # dirname: Compute the dirname of FILE. If nonempty,
  15638. # add APPEND to the result, otherwise set result
  15639. # to NONDIR_REPLACEMENT.
  15640. # value returned in "$func_dirname_result"
  15641. # basename: Compute filename of FILE.
  15642. # value retuned in "$func_basename_result"
  15643. # Implementation must be kept synchronized with func_dirname
  15644. # and func_basename. For efficiency, we do not delegate to
  15645. # those functions but instead duplicate the functionality here.
  15646. func_dirname_and_basename ()
  15647. {
  15648. case ${1} in
  15649. */*) func_dirname_result="${1%/*}${2}" ;;
  15650. * ) func_dirname_result="${3}" ;;
  15651. esac
  15652. func_basename_result="${1##*/}"
  15653. }
  15654. # func_stripname prefix suffix name
  15655. # strip PREFIX and SUFFIX off of NAME.
  15656. # PREFIX and SUFFIX must not contain globbing or regex special
  15657. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15658. # dot (in which case that matches only a dot).
  15659. func_stripname ()
  15660. {
  15661. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15662. # positional parameters, so assign one to ordinary parameter first.
  15663. func_stripname_result=${3}
  15664. func_stripname_result=${func_stripname_result#"${1}"}
  15665. func_stripname_result=${func_stripname_result%"${2}"}
  15666. }
  15667. # func_opt_split
  15668. func_opt_split ()
  15669. {
  15670. func_opt_split_opt=${1%%=*}
  15671. func_opt_split_arg=${1#*=}
  15672. }
  15673. # func_lo2o object
  15674. func_lo2o ()
  15675. {
  15676. case ${1} in
  15677. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15678. *) func_lo2o_result=${1} ;;
  15679. esac
  15680. }
  15681. # func_xform libobj-or-source
  15682. func_xform ()
  15683. {
  15684. func_xform_result=${1%.*}.lo
  15685. }
  15686. # func_arith arithmetic-term...
  15687. func_arith ()
  15688. {
  15689. func_arith_result=$(( $* ))
  15690. }
  15691. # func_len string
  15692. # STRING may not start with a hyphen.
  15693. func_len ()
  15694. {
  15695. func_len_result=${#1}
  15696. }
  15697. _LT_EOF
  15698. ;;
  15699. *) # Bourne compatible functions.
  15700. cat << \_LT_EOF >> "$cfgfile"
  15701. # func_dirname file append nondir_replacement
  15702. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15703. # otherwise set result to NONDIR_REPLACEMENT.
  15704. func_dirname ()
  15705. {
  15706. # Extract subdirectory from the argument.
  15707. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15708. if test "X$func_dirname_result" = "X${1}"; then
  15709. func_dirname_result="${3}"
  15710. else
  15711. func_dirname_result="$func_dirname_result${2}"
  15712. fi
  15713. }
  15714. # func_basename file
  15715. func_basename ()
  15716. {
  15717. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15718. }
  15719. # func_stripname prefix suffix name
  15720. # strip PREFIX and SUFFIX off of NAME.
  15721. # PREFIX and SUFFIX must not contain globbing or regex special
  15722. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15723. # dot (in which case that matches only a dot).
  15724. # func_strip_suffix prefix name
  15725. func_stripname ()
  15726. {
  15727. case ${2} in
  15728. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15729. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15730. esac
  15731. }
  15732. # sed scripts:
  15733. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15734. my_sed_long_arg='1s/^-[^=]*=//'
  15735. # func_opt_split
  15736. func_opt_split ()
  15737. {
  15738. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15739. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15740. }
  15741. # func_lo2o object
  15742. func_lo2o ()
  15743. {
  15744. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15745. }
  15746. # func_xform libobj-or-source
  15747. func_xform ()
  15748. {
  15749. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15750. }
  15751. # func_arith arithmetic-term...
  15752. func_arith ()
  15753. {
  15754. func_arith_result=`expr "$@"`
  15755. }
  15756. # func_len string
  15757. # STRING may not start with a hyphen.
  15758. func_len ()
  15759. {
  15760. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15761. }
  15762. _LT_EOF
  15763. esac
  15764. case $lt_shell_append in
  15765. yes)
  15766. cat << \_LT_EOF >> "$cfgfile"
  15767. # func_append var value
  15768. # Append VALUE to the end of shell variable VAR.
  15769. func_append ()
  15770. {
  15771. eval "$1+=\$2"
  15772. }
  15773. _LT_EOF
  15774. ;;
  15775. *)
  15776. cat << \_LT_EOF >> "$cfgfile"
  15777. # func_append var value
  15778. # Append VALUE to the end of shell variable VAR.
  15779. func_append ()
  15780. {
  15781. eval "$1=\$$1\$2"
  15782. }
  15783. _LT_EOF
  15784. ;;
  15785. esac
  15786. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15787. || (rm -f "$cfgfile"; exit 1)
  15788. mv -f "$cfgfile" "$ofile" ||
  15789. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15790. chmod +x "$ofile"
  15791. ;;
  15792. "default-1":C)
  15793. for ac_file in $CONFIG_FILES; do
  15794. # Support "outfile[:infile[:infile...]]"
  15795. case "$ac_file" in
  15796. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  15797. esac
  15798. # PO directories have a Makefile.in generated from Makefile.in.in.
  15799. case "$ac_file" in */Makefile.in)
  15800. # Adjust a relative srcdir.
  15801. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  15802. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  15803. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  15804. # In autoconf-2.13 it is called $ac_given_srcdir.
  15805. # In autoconf-2.50 it is called $srcdir.
  15806. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  15807. case "$ac_given_srcdir" in
  15808. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  15809. /*) top_srcdir="$ac_given_srcdir" ;;
  15810. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  15811. esac
  15812. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  15813. rm -f "$ac_dir/POTFILES"
  15814. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  15815. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  15816. POMAKEFILEDEPS="POTFILES.in"
  15817. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  15818. # on $ac_dir but don't depend on user-specified configuration
  15819. # parameters.
  15820. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  15821. # The LINGUAS file contains the set of available languages.
  15822. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  15823. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  15824. fi
  15825. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  15826. # Hide the ALL_LINGUAS assigment from automake.
  15827. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  15828. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  15829. else
  15830. # The set of available languages was given in configure.ac.
  15831. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  15832. fi
  15833. case "$ac_given_srcdir" in
  15834. .) srcdirpre= ;;
  15835. *) srcdirpre='$(srcdir)/' ;;
  15836. esac
  15837. POFILES=
  15838. GMOFILES=
  15839. UPDATEPOFILES=
  15840. DUMMYPOFILES=
  15841. for lang in $ALL_LINGUAS; do
  15842. POFILES="$POFILES $srcdirpre$lang.po"
  15843. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15844. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15845. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15846. done
  15847. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15848. # environment variable.
  15849. INST_LINGUAS=
  15850. if test -n "$ALL_LINGUAS"; then
  15851. for presentlang in $ALL_LINGUAS; do
  15852. useit=no
  15853. if test "%UNSET%" != "$LINGUAS"; then
  15854. desiredlanguages="$LINGUAS"
  15855. else
  15856. desiredlanguages="$ALL_LINGUAS"
  15857. fi
  15858. for desiredlang in $desiredlanguages; do
  15859. # Use the presentlang catalog if desiredlang is
  15860. # a. equal to presentlang, or
  15861. # b. a variant of presentlang (because in this case,
  15862. # presentlang can be used as a fallback for messages
  15863. # which are not translated in the desiredlang catalog).
  15864. case "$desiredlang" in
  15865. "$presentlang"*) useit=yes;;
  15866. esac
  15867. done
  15868. if test $useit = yes; then
  15869. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15870. fi
  15871. done
  15872. fi
  15873. CATALOGS=
  15874. if test -n "$INST_LINGUAS"; then
  15875. for lang in $INST_LINGUAS; do
  15876. CATALOGS="$CATALOGS $lang.gmo"
  15877. done
  15878. fi
  15879. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15880. 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"
  15881. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15882. if test -f "$f"; then
  15883. case "$f" in
  15884. *.orig | *.bak | *~) ;;
  15885. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15886. esac
  15887. fi
  15888. done
  15889. fi
  15890. ;;
  15891. esac
  15892. done ;;
  15893. "bfd_stdint.h":C)
  15894. if test "$GCC" = yes; then
  15895. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  15896. else
  15897. echo "/* generated for $CC */" > tmp-stdint.h
  15898. fi
  15899. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15900. #ifndef GCC_GENERATED_STDINT_H
  15901. #define GCC_GENERATED_STDINT_H 1
  15902. #include <sys/types.h>
  15903. EOF
  15904. if test "$acx_cv_header_stdint" != stdint.h; then
  15905. echo "#include <stddef.h>" >> tmp-stdint.h
  15906. fi
  15907. if test "$acx_cv_header_stdint" != stddef.h; then
  15908. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  15909. fi
  15910. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15911. /* glibc uses these symbols as guards to prevent redefinitions. */
  15912. #ifdef __int8_t_defined
  15913. #define _INT8_T
  15914. #define _INT16_T
  15915. #define _INT32_T
  15916. #endif
  15917. #ifdef __uint32_t_defined
  15918. #define _UINT32_T
  15919. #endif
  15920. EOF
  15921. # ----------------- done header, emit basic int types -------------
  15922. if test "$acx_cv_header_stdint" = stddef.h; then
  15923. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15924. #ifndef _UINT8_T
  15925. #define _UINT8_T
  15926. #ifndef __uint8_t_defined
  15927. #define __uint8_t_defined
  15928. #ifndef uint8_t
  15929. typedef unsigned $acx_cv_type_int8_t uint8_t;
  15930. #endif
  15931. #endif
  15932. #endif
  15933. #ifndef _UINT16_T
  15934. #define _UINT16_T
  15935. #ifndef __uint16_t_defined
  15936. #define __uint16_t_defined
  15937. #ifndef uint16_t
  15938. typedef unsigned $acx_cv_type_int16_t uint16_t;
  15939. #endif
  15940. #endif
  15941. #endif
  15942. #ifndef _UINT32_T
  15943. #define _UINT32_T
  15944. #ifndef __uint32_t_defined
  15945. #define __uint32_t_defined
  15946. #ifndef uint32_t
  15947. typedef unsigned $acx_cv_type_int32_t uint32_t;
  15948. #endif
  15949. #endif
  15950. #endif
  15951. #ifndef _INT8_T
  15952. #define _INT8_T
  15953. #ifndef __int8_t_defined
  15954. #define __int8_t_defined
  15955. #ifndef int8_t
  15956. typedef $acx_cv_type_int8_t int8_t;
  15957. #endif
  15958. #endif
  15959. #endif
  15960. #ifndef _INT16_T
  15961. #define _INT16_T
  15962. #ifndef __int16_t_defined
  15963. #define __int16_t_defined
  15964. #ifndef int16_t
  15965. typedef $acx_cv_type_int16_t int16_t;
  15966. #endif
  15967. #endif
  15968. #endif
  15969. #ifndef _INT32_T
  15970. #define _INT32_T
  15971. #ifndef __int32_t_defined
  15972. #define __int32_t_defined
  15973. #ifndef int32_t
  15974. typedef $acx_cv_type_int32_t int32_t;
  15975. #endif
  15976. #endif
  15977. #endif
  15978. EOF
  15979. elif test "$ac_cv_type_u_int32_t" = yes; then
  15980. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15981. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  15982. #ifndef _INT8_T
  15983. #define _INT8_T
  15984. #endif
  15985. #ifndef _INT16_T
  15986. #define _INT16_T
  15987. #endif
  15988. #ifndef _INT32_T
  15989. #define _INT32_T
  15990. #endif
  15991. #ifndef _UINT8_T
  15992. #define _UINT8_T
  15993. #ifndef __uint8_t_defined
  15994. #define __uint8_t_defined
  15995. #ifndef uint8_t
  15996. typedef u_int8_t uint8_t;
  15997. #endif
  15998. #endif
  15999. #endif
  16000. #ifndef _UINT16_T
  16001. #define _UINT16_T
  16002. #ifndef __uint16_t_defined
  16003. #define __uint16_t_defined
  16004. #ifndef uint16_t
  16005. typedef u_int16_t uint16_t;
  16006. #endif
  16007. #endif
  16008. #endif
  16009. #ifndef _UINT32_T
  16010. #define _UINT32_T
  16011. #ifndef __uint32_t_defined
  16012. #define __uint32_t_defined
  16013. #ifndef uint32_t
  16014. typedef u_int32_t uint32_t;
  16015. #endif
  16016. #endif
  16017. #endif
  16018. EOF
  16019. else
  16020. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16021. /* Some systems have guard macros to prevent redefinitions, define them. */
  16022. #ifndef _INT8_T
  16023. #define _INT8_T
  16024. #endif
  16025. #ifndef _INT16_T
  16026. #define _INT16_T
  16027. #endif
  16028. #ifndef _INT32_T
  16029. #define _INT32_T
  16030. #endif
  16031. #ifndef _UINT8_T
  16032. #define _UINT8_T
  16033. #endif
  16034. #ifndef _UINT16_T
  16035. #define _UINT16_T
  16036. #endif
  16037. #ifndef _UINT32_T
  16038. #define _UINT32_T
  16039. #endif
  16040. EOF
  16041. fi
  16042. # ------------- done basic int types, emit int64_t types ------------
  16043. if test "$ac_cv_type_uint64_t" = yes; then
  16044. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16045. /* system headers have good uint64_t and int64_t */
  16046. #ifndef _INT64_T
  16047. #define _INT64_T
  16048. #endif
  16049. #ifndef _UINT64_T
  16050. #define _UINT64_T
  16051. #endif
  16052. EOF
  16053. elif test "$ac_cv_type_u_int64_t" = yes; then
  16054. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16055. /* system headers have an u_int64_t (and int64_t) */
  16056. #ifndef _INT64_T
  16057. #define _INT64_T
  16058. #endif
  16059. #ifndef _UINT64_T
  16060. #define _UINT64_T
  16061. #ifndef __uint64_t_defined
  16062. #define __uint64_t_defined
  16063. #ifndef uint64_t
  16064. typedef u_int64_t uint64_t;
  16065. #endif
  16066. #endif
  16067. #endif
  16068. EOF
  16069. elif test -n "$acx_cv_type_int64_t"; then
  16070. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16071. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  16072. #ifndef _INT64_T
  16073. #define _INT64_T
  16074. #ifndef int64_t
  16075. typedef $acx_cv_type_int64_t int64_t;
  16076. #endif
  16077. #endif
  16078. #ifndef _UINT64_T
  16079. #define _UINT64_T
  16080. #ifndef __uint64_t_defined
  16081. #define __uint64_t_defined
  16082. #ifndef uint64_t
  16083. typedef unsigned $acx_cv_type_int64_t uint64_t;
  16084. #endif
  16085. #endif
  16086. #endif
  16087. EOF
  16088. else
  16089. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16090. /* some common heuristics for int64_t, using compiler-specific tests */
  16091. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  16092. #ifndef _INT64_T
  16093. #define _INT64_T
  16094. #ifndef __int64_t_defined
  16095. #ifndef int64_t
  16096. typedef long long int64_t;
  16097. #endif
  16098. #endif
  16099. #endif
  16100. #ifndef _UINT64_T
  16101. #define _UINT64_T
  16102. #ifndef uint64_t
  16103. typedef unsigned long long uint64_t;
  16104. #endif
  16105. #endif
  16106. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  16107. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  16108. does not implement __extension__. But that compiler doesn't define
  16109. __GNUC_MINOR__. */
  16110. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  16111. # define __extension__
  16112. # endif
  16113. # ifndef _INT64_T
  16114. # define _INT64_T
  16115. # ifndef int64_t
  16116. __extension__ typedef long long int64_t;
  16117. # endif
  16118. # endif
  16119. # ifndef _UINT64_T
  16120. # define _UINT64_T
  16121. # ifndef uint64_t
  16122. __extension__ typedef unsigned long long uint64_t;
  16123. # endif
  16124. # endif
  16125. #elif !defined __STRICT_ANSI__
  16126. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  16127. # ifndef _INT64_T
  16128. # define _INT64_T
  16129. # ifndef int64_t
  16130. typedef __int64 int64_t;
  16131. # endif
  16132. # endif
  16133. # ifndef _UINT64_T
  16134. # define _UINT64_T
  16135. # ifndef uint64_t
  16136. typedef unsigned __int64 uint64_t;
  16137. # endif
  16138. # endif
  16139. # endif /* compiler */
  16140. #endif /* ANSI version */
  16141. EOF
  16142. fi
  16143. # ------------- done int64_t types, emit intptr types ------------
  16144. if test "$ac_cv_type_uintptr_t" != yes; then
  16145. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16146. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  16147. #ifndef __uintptr_t_defined
  16148. #ifndef uintptr_t
  16149. typedef u$acx_cv_type_intptr_t uintptr_t;
  16150. #endif
  16151. #endif
  16152. #ifndef __intptr_t_defined
  16153. #ifndef intptr_t
  16154. typedef $acx_cv_type_intptr_t intptr_t;
  16155. #endif
  16156. #endif
  16157. EOF
  16158. fi
  16159. # ------------- done intptr types, emit int_least types ------------
  16160. if test "$ac_cv_type_int_least32_t" != yes; then
  16161. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16162. /* Define int_least types */
  16163. typedef int8_t int_least8_t;
  16164. typedef int16_t int_least16_t;
  16165. typedef int32_t int_least32_t;
  16166. #ifdef _INT64_T
  16167. typedef int64_t int_least64_t;
  16168. #endif
  16169. typedef uint8_t uint_least8_t;
  16170. typedef uint16_t uint_least16_t;
  16171. typedef uint32_t uint_least32_t;
  16172. #ifdef _UINT64_T
  16173. typedef uint64_t uint_least64_t;
  16174. #endif
  16175. EOF
  16176. fi
  16177. # ------------- done intptr types, emit int_fast types ------------
  16178. if test "$ac_cv_type_int_fast32_t" != yes; then
  16179. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16180. /* Define int_fast types. short is often slow */
  16181. typedef int8_t int_fast8_t;
  16182. typedef int int_fast16_t;
  16183. typedef int32_t int_fast32_t;
  16184. #ifdef _INT64_T
  16185. typedef int64_t int_fast64_t;
  16186. #endif
  16187. typedef uint8_t uint_fast8_t;
  16188. typedef unsigned int uint_fast16_t;
  16189. typedef uint32_t uint_fast32_t;
  16190. #ifdef _UINT64_T
  16191. typedef uint64_t uint_fast64_t;
  16192. #endif
  16193. EOF
  16194. fi
  16195. if test "$ac_cv_type_uintmax_t" != yes; then
  16196. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16197. /* Define intmax based on what we found */
  16198. #ifndef intmax_t
  16199. #ifdef _INT64_T
  16200. typedef int64_t intmax_t;
  16201. #else
  16202. typedef long intmax_t;
  16203. #endif
  16204. #endif
  16205. #ifndef uintmax_t
  16206. #ifdef _UINT64_T
  16207. typedef uint64_t uintmax_t;
  16208. #else
  16209. typedef unsigned long uintmax_t;
  16210. #endif
  16211. #endif
  16212. EOF
  16213. fi
  16214. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16215. #endif /* GCC_GENERATED_STDINT_H */
  16216. EOF
  16217. if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
  16218. rm -f tmp-stdint.h
  16219. else
  16220. mv -f tmp-stdint.h bfd_stdint.h
  16221. fi
  16222. ;;
  16223. "default":C)
  16224. case "$srcdir" in
  16225. .) srcdirpre= ;;
  16226. *) srcdirpre='$(srcdir)/' ;;
  16227. esac
  16228. POFILES=
  16229. GMOFILES=
  16230. for lang in dummy $OBSOLETE_ALL_LINGUAS; do
  16231. if test $lang != dummy; then
  16232. POFILES="$POFILES $srcdirpre$lang.po"
  16233. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  16234. fi
  16235. done
  16236. sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
  16237. -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
  16238. -e "s,@POFILES@,$POFILES," \
  16239. -e "s,@GMOFILES@,$GMOFILES," \
  16240. po/Makefile.in > po/Makefile ;;
  16241. esac
  16242. done # for ac_tag
  16243. as_fn_exit 0
  16244. _ACEOF
  16245. ac_clean_files=$ac_clean_files_save
  16246. test $ac_write_fail = 0 ||
  16247. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16248. # configure is writing to config.log, and then calls config.status.
  16249. # config.status does its own redirection, appending to config.log.
  16250. # Unfortunately, on DOS this fails, as config.log is still kept open
  16251. # by configure, so config.status won't be able to write to it; its
  16252. # output is simply discarded. So we exec the FD to /dev/null,
  16253. # effectively closing config.log, so it can be properly (re)opened and
  16254. # appended to by config.status. When coming back to configure, we
  16255. # need to make the FD available again.
  16256. if test "$no_create" != yes; then
  16257. ac_cs_success=:
  16258. ac_config_status_args=
  16259. test "$silent" = yes &&
  16260. ac_config_status_args="$ac_config_status_args --quiet"
  16261. exec 5>/dev/null
  16262. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16263. exec 5>>config.log
  16264. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16265. # would make configure fail if this is the last instruction.
  16266. $ac_cs_success || as_fn_exit $?
  16267. fi
  16268. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16270. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16271. fi