configure 498 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for binutils 2.38.50.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='binutils'
  539. PACKAGE_TARNAME='binutils'
  540. PACKAGE_VERSION='2.38.50'
  541. PACKAGE_STRING='binutils 2.38.50'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="ar.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_header_list=
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. LIBOBJS
  585. EMULATION_VECTOR
  586. EMULATION
  587. OBJDUMP_PRIVATE_OFILES
  588. OBJDUMP_DEFS
  589. BUILD_INSTALL_MISC
  590. BUILD_MISC
  591. BUILD_DLLWRAP
  592. BUILD_WINDMC
  593. BUILD_WINDRES
  594. DLLTOOL_DEFS
  595. BUILD_DLLTOOL
  596. BUILD_SRCONV
  597. LTLIBICONV
  598. LIBICONV
  599. MSGPACK_LIBS
  600. MSGPACK_CFLAGS
  601. zlibinc
  602. zlibdir
  603. DEMANGLER_NAME
  604. EXEEXT_FOR_BUILD
  605. CC_FOR_BUILD
  606. HDEFINES
  607. GENINSRC_NEVER_FALSE
  608. GENINSRC_NEVER_TRUE
  609. MAINT
  610. MAINTAINER_MODE_FALSE
  611. MAINTAINER_MODE_TRUE
  612. MSGMERGE
  613. MSGFMT
  614. MKINSTALLDIRS
  615. CATOBJEXT
  616. GENCAT
  617. INSTOBJEXT
  618. DATADIRNAME
  619. CATALOGS
  620. POSUB
  621. GMSGFMT
  622. XGETTEXT
  623. INCINTL
  624. LIBINTL_DEP
  625. LIBINTL
  626. USE_NLS
  627. LEXLIB
  628. LEX_OUTPUT_ROOT
  629. LEX
  630. YFLAGS
  631. YACC
  632. WARN_WRITE_STRINGS
  633. NO_WERROR
  634. WARN_CFLAGS_FOR_BUILD
  635. WARN_CFLAGS
  636. ENABLE_LIBCTF_FALSE
  637. ENABLE_LIBCTF_TRUE
  638. DEBUGINFOD_LIBS
  639. DEBUGINFOD_CFLAGS
  640. PKG_CONFIG_LIBDIR
  641. PKG_CONFIG_PATH
  642. PKG_CONFIG
  643. LARGEFILE_CPPFLAGS
  644. OTOOL64
  645. OTOOL
  646. LIPO
  647. NMEDIT
  648. DSYMUTIL
  649. RANLIB
  650. AR
  651. OBJDUMP
  652. LN_S
  653. NM
  654. ac_ct_DUMPBIN
  655. DUMPBIN
  656. LD
  657. FGREP
  658. SED
  659. LIBTOOL
  660. EGREP
  661. GREP
  662. CPP
  663. am__fastdepCC_FALSE
  664. am__fastdepCC_TRUE
  665. CCDEPMODE
  666. am__nodep
  667. AMDEPBACKSLASH
  668. AMDEP_FALSE
  669. AMDEP_TRUE
  670. am__quote
  671. am__include
  672. DEPDIR
  673. OBJEXT
  674. EXEEXT
  675. ac_ct_CC
  676. CPPFLAGS
  677. LDFLAGS
  678. CFLAGS
  679. CC
  680. AM_BACKSLASH
  681. AM_DEFAULT_VERBOSITY
  682. AM_DEFAULT_V
  683. AM_V
  684. am__untar
  685. am__tar
  686. AMTAR
  687. am__leading_dot
  688. SET_MAKE
  689. AWK
  690. mkdir_p
  691. MKDIR_P
  692. INSTALL_STRIP_PROGRAM
  693. STRIP
  694. install_sh
  695. MAKEINFO
  696. AUTOHEADER
  697. AUTOMAKE
  698. AUTOCONF
  699. ACLOCAL
  700. VERSION
  701. PACKAGE
  702. CYGPATH_W
  703. am__isrc
  704. INSTALL_DATA
  705. INSTALL_SCRIPT
  706. INSTALL_PROGRAM
  707. target_os
  708. target_vendor
  709. target_cpu
  710. target
  711. host_os
  712. host_vendor
  713. host_cpu
  714. host
  715. build_os
  716. build_vendor
  717. build_cpu
  718. build
  719. target_alias
  720. host_alias
  721. build_alias
  722. LIBS
  723. ECHO_T
  724. ECHO_N
  725. ECHO_C
  726. DEFS
  727. mandir
  728. localedir
  729. libdir
  730. psdir
  731. pdfdir
  732. dvidir
  733. htmldir
  734. infodir
  735. docdir
  736. oldincludedir
  737. includedir
  738. localstatedir
  739. sharedstatedir
  740. sysconfdir
  741. datadir
  742. datarootdir
  743. libexecdir
  744. sbindir
  745. bindir
  746. program_transform_name
  747. prefix
  748. exec_prefix
  749. PACKAGE_URL
  750. PACKAGE_BUGREPORT
  751. PACKAGE_STRING
  752. PACKAGE_VERSION
  753. PACKAGE_TARNAME
  754. PACKAGE_NAME
  755. PATH_SEPARATOR
  756. SHELL'
  757. ac_subst_files=''
  758. ac_user_opts='
  759. enable_option_checking
  760. enable_silent_rules
  761. enable_dependency_tracking
  762. enable_shared
  763. enable_static
  764. with_pic
  765. enable_fast_install
  766. with_gnu_ld
  767. enable_libtool_lock
  768. enable_plugins
  769. enable_largefile
  770. enable_checking
  771. enable_targets
  772. enable_deterministic_archives
  773. enable_default_strings_all
  774. enable_f_for_ifunc_symbols
  775. enable_follow_debug_links
  776. with_debuginfod
  777. enable_libctf
  778. enable_werror
  779. enable_build_warnings
  780. enable_nls
  781. enable_maintainer_mode
  782. with_system_zlib
  783. with_msgpack
  784. enable_rpath
  785. with_libiconv_prefix
  786. with_libiconv_type
  787. '
  788. ac_precious_vars='build_alias
  789. host_alias
  790. target_alias
  791. CC
  792. CFLAGS
  793. LDFLAGS
  794. LIBS
  795. CPPFLAGS
  796. CPP
  797. PKG_CONFIG
  798. PKG_CONFIG_PATH
  799. PKG_CONFIG_LIBDIR
  800. DEBUGINFOD_CFLAGS
  801. DEBUGINFOD_LIBS
  802. YACC
  803. YFLAGS
  804. MSGPACK_CFLAGS
  805. MSGPACK_LIBS'
  806. # Initialize some variables set by options.
  807. ac_init_help=
  808. ac_init_version=false
  809. ac_unrecognized_opts=
  810. ac_unrecognized_sep=
  811. # The variables have the same names as the options, with
  812. # dashes changed to underlines.
  813. cache_file=/dev/null
  814. exec_prefix=NONE
  815. no_create=
  816. no_recursion=
  817. prefix=NONE
  818. program_prefix=NONE
  819. program_suffix=NONE
  820. program_transform_name=s,x,x,
  821. silent=
  822. site=
  823. srcdir=
  824. verbose=
  825. x_includes=NONE
  826. x_libraries=NONE
  827. # Installation directory options.
  828. # These are left unexpanded so users can "make install exec_prefix=/foo"
  829. # and all the variables that are supposed to be based on exec_prefix
  830. # by default will actually change.
  831. # Use braces instead of parens because sh, perl, etc. also accept them.
  832. # (The list follows the same order as the GNU Coding Standards.)
  833. bindir='${exec_prefix}/bin'
  834. sbindir='${exec_prefix}/sbin'
  835. libexecdir='${exec_prefix}/libexec'
  836. datarootdir='${prefix}/share'
  837. datadir='${datarootdir}'
  838. sysconfdir='${prefix}/etc'
  839. sharedstatedir='${prefix}/com'
  840. localstatedir='${prefix}/var'
  841. includedir='${prefix}/include'
  842. oldincludedir='/usr/include'
  843. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  844. infodir='${datarootdir}/info'
  845. htmldir='${docdir}'
  846. dvidir='${docdir}'
  847. pdfdir='${docdir}'
  848. psdir='${docdir}'
  849. libdir='${exec_prefix}/lib'
  850. localedir='${datarootdir}/locale'
  851. mandir='${datarootdir}/man'
  852. ac_prev=
  853. ac_dashdash=
  854. for ac_option
  855. do
  856. # If the previous option needs an argument, assign it.
  857. if test -n "$ac_prev"; then
  858. eval $ac_prev=\$ac_option
  859. ac_prev=
  860. continue
  861. fi
  862. case $ac_option in
  863. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  864. *=) ac_optarg= ;;
  865. *) ac_optarg=yes ;;
  866. esac
  867. # Accept the important Cygnus configure options, so we can diagnose typos.
  868. case $ac_dashdash$ac_option in
  869. --)
  870. ac_dashdash=yes ;;
  871. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  872. ac_prev=bindir ;;
  873. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  874. bindir=$ac_optarg ;;
  875. -build | --build | --buil | --bui | --bu)
  876. ac_prev=build_alias ;;
  877. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  878. build_alias=$ac_optarg ;;
  879. -cache-file | --cache-file | --cache-fil | --cache-fi \
  880. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  881. ac_prev=cache_file ;;
  882. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  883. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  884. cache_file=$ac_optarg ;;
  885. --config-cache | -C)
  886. cache_file=config.cache ;;
  887. -datadir | --datadir | --datadi | --datad)
  888. ac_prev=datadir ;;
  889. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  890. datadir=$ac_optarg ;;
  891. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  892. | --dataroo | --dataro | --datar)
  893. ac_prev=datarootdir ;;
  894. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  895. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  896. datarootdir=$ac_optarg ;;
  897. -disable-* | --disable-*)
  898. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  899. # Reject names that are not valid shell variable names.
  900. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  901. as_fn_error $? "invalid feature name: $ac_useropt"
  902. ac_useropt_orig=$ac_useropt
  903. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  904. case $ac_user_opts in
  905. *"
  906. "enable_$ac_useropt"
  907. "*) ;;
  908. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  909. ac_unrecognized_sep=', ';;
  910. esac
  911. eval enable_$ac_useropt=no ;;
  912. -docdir | --docdir | --docdi | --doc | --do)
  913. ac_prev=docdir ;;
  914. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  915. docdir=$ac_optarg ;;
  916. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  917. ac_prev=dvidir ;;
  918. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  919. dvidir=$ac_optarg ;;
  920. -enable-* | --enable-*)
  921. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  922. # Reject names that are not valid shell variable names.
  923. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  924. as_fn_error $? "invalid feature name: $ac_useropt"
  925. ac_useropt_orig=$ac_useropt
  926. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  927. case $ac_user_opts in
  928. *"
  929. "enable_$ac_useropt"
  930. "*) ;;
  931. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  932. ac_unrecognized_sep=', ';;
  933. esac
  934. eval enable_$ac_useropt=\$ac_optarg ;;
  935. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  936. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  937. | --exec | --exe | --ex)
  938. ac_prev=exec_prefix ;;
  939. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  940. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  941. | --exec=* | --exe=* | --ex=*)
  942. exec_prefix=$ac_optarg ;;
  943. -gas | --gas | --ga | --g)
  944. # Obsolete; use --with-gas.
  945. with_gas=yes ;;
  946. -help | --help | --hel | --he | -h)
  947. ac_init_help=long ;;
  948. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  949. ac_init_help=recursive ;;
  950. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  951. ac_init_help=short ;;
  952. -host | --host | --hos | --ho)
  953. ac_prev=host_alias ;;
  954. -host=* | --host=* | --hos=* | --ho=*)
  955. host_alias=$ac_optarg ;;
  956. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  957. ac_prev=htmldir ;;
  958. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  959. | --ht=*)
  960. htmldir=$ac_optarg ;;
  961. -includedir | --includedir | --includedi | --included | --include \
  962. | --includ | --inclu | --incl | --inc)
  963. ac_prev=includedir ;;
  964. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  965. | --includ=* | --inclu=* | --incl=* | --inc=*)
  966. includedir=$ac_optarg ;;
  967. -infodir | --infodir | --infodi | --infod | --info | --inf)
  968. ac_prev=infodir ;;
  969. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  970. infodir=$ac_optarg ;;
  971. -libdir | --libdir | --libdi | --libd)
  972. ac_prev=libdir ;;
  973. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  974. libdir=$ac_optarg ;;
  975. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  976. | --libexe | --libex | --libe)
  977. ac_prev=libexecdir ;;
  978. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  979. | --libexe=* | --libex=* | --libe=*)
  980. libexecdir=$ac_optarg ;;
  981. -localedir | --localedir | --localedi | --localed | --locale)
  982. ac_prev=localedir ;;
  983. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  984. localedir=$ac_optarg ;;
  985. -localstatedir | --localstatedir | --localstatedi | --localstated \
  986. | --localstate | --localstat | --localsta | --localst | --locals)
  987. ac_prev=localstatedir ;;
  988. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  989. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  990. localstatedir=$ac_optarg ;;
  991. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  992. ac_prev=mandir ;;
  993. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  994. mandir=$ac_optarg ;;
  995. -nfp | --nfp | --nf)
  996. # Obsolete; use --without-fp.
  997. with_fp=no ;;
  998. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  999. | --no-cr | --no-c | -n)
  1000. no_create=yes ;;
  1001. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1002. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1003. no_recursion=yes ;;
  1004. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1005. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1006. | --oldin | --oldi | --old | --ol | --o)
  1007. ac_prev=oldincludedir ;;
  1008. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1009. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1010. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1011. oldincludedir=$ac_optarg ;;
  1012. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1013. ac_prev=prefix ;;
  1014. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1015. prefix=$ac_optarg ;;
  1016. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1017. | --program-pre | --program-pr | --program-p)
  1018. ac_prev=program_prefix ;;
  1019. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1020. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1021. program_prefix=$ac_optarg ;;
  1022. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1023. | --program-suf | --program-su | --program-s)
  1024. ac_prev=program_suffix ;;
  1025. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1026. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1027. program_suffix=$ac_optarg ;;
  1028. -program-transform-name | --program-transform-name \
  1029. | --program-transform-nam | --program-transform-na \
  1030. | --program-transform-n | --program-transform- \
  1031. | --program-transform | --program-transfor \
  1032. | --program-transfo | --program-transf \
  1033. | --program-trans | --program-tran \
  1034. | --progr-tra | --program-tr | --program-t)
  1035. ac_prev=program_transform_name ;;
  1036. -program-transform-name=* | --program-transform-name=* \
  1037. | --program-transform-nam=* | --program-transform-na=* \
  1038. | --program-transform-n=* | --program-transform-=* \
  1039. | --program-transform=* | --program-transfor=* \
  1040. | --program-transfo=* | --program-transf=* \
  1041. | --program-trans=* | --program-tran=* \
  1042. | --progr-tra=* | --program-tr=* | --program-t=*)
  1043. program_transform_name=$ac_optarg ;;
  1044. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1045. ac_prev=pdfdir ;;
  1046. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1047. pdfdir=$ac_optarg ;;
  1048. -psdir | --psdir | --psdi | --psd | --ps)
  1049. ac_prev=psdir ;;
  1050. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1051. psdir=$ac_optarg ;;
  1052. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1053. | -silent | --silent | --silen | --sile | --sil)
  1054. silent=yes ;;
  1055. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1056. ac_prev=sbindir ;;
  1057. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1058. | --sbi=* | --sb=*)
  1059. sbindir=$ac_optarg ;;
  1060. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1061. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1062. | --sharedst | --shareds | --shared | --share | --shar \
  1063. | --sha | --sh)
  1064. ac_prev=sharedstatedir ;;
  1065. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1066. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1067. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1068. | --sha=* | --sh=*)
  1069. sharedstatedir=$ac_optarg ;;
  1070. -site | --site | --sit)
  1071. ac_prev=site ;;
  1072. -site=* | --site=* | --sit=*)
  1073. site=$ac_optarg ;;
  1074. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1075. ac_prev=srcdir ;;
  1076. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1077. srcdir=$ac_optarg ;;
  1078. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1079. | --syscon | --sysco | --sysc | --sys | --sy)
  1080. ac_prev=sysconfdir ;;
  1081. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1082. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1083. sysconfdir=$ac_optarg ;;
  1084. -target | --target | --targe | --targ | --tar | --ta | --t)
  1085. ac_prev=target_alias ;;
  1086. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1087. target_alias=$ac_optarg ;;
  1088. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1089. verbose=yes ;;
  1090. -version | --version | --versio | --versi | --vers | -V)
  1091. ac_init_version=: ;;
  1092. -with-* | --with-*)
  1093. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1094. # Reject names that are not valid shell variable names.
  1095. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1096. as_fn_error $? "invalid package name: $ac_useropt"
  1097. ac_useropt_orig=$ac_useropt
  1098. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1099. case $ac_user_opts in
  1100. *"
  1101. "with_$ac_useropt"
  1102. "*) ;;
  1103. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1104. ac_unrecognized_sep=', ';;
  1105. esac
  1106. eval with_$ac_useropt=\$ac_optarg ;;
  1107. -without-* | --without-*)
  1108. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1109. # Reject names that are not valid shell variable names.
  1110. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1111. as_fn_error $? "invalid package name: $ac_useropt"
  1112. ac_useropt_orig=$ac_useropt
  1113. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1114. case $ac_user_opts in
  1115. *"
  1116. "with_$ac_useropt"
  1117. "*) ;;
  1118. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1119. ac_unrecognized_sep=', ';;
  1120. esac
  1121. eval with_$ac_useropt=no ;;
  1122. --x)
  1123. # Obsolete; use --with-x.
  1124. with_x=yes ;;
  1125. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1126. | --x-incl | --x-inc | --x-in | --x-i)
  1127. ac_prev=x_includes ;;
  1128. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1129. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1130. x_includes=$ac_optarg ;;
  1131. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1132. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1133. ac_prev=x_libraries ;;
  1134. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1135. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1136. x_libraries=$ac_optarg ;;
  1137. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1138. Try \`$0 --help' for more information"
  1139. ;;
  1140. *=*)
  1141. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1142. # Reject names that are not valid shell variable names.
  1143. case $ac_envvar in #(
  1144. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1145. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1146. esac
  1147. eval $ac_envvar=\$ac_optarg
  1148. export $ac_envvar ;;
  1149. *)
  1150. # FIXME: should be removed in autoconf 3.0.
  1151. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1152. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1153. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1154. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1155. ;;
  1156. esac
  1157. done
  1158. if test -n "$ac_prev"; then
  1159. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1160. as_fn_error $? "missing argument to $ac_option"
  1161. fi
  1162. if test -n "$ac_unrecognized_opts"; then
  1163. case $enable_option_checking in
  1164. no) ;;
  1165. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1166. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1167. esac
  1168. fi
  1169. # Check all directory arguments for consistency.
  1170. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1171. datadir sysconfdir sharedstatedir localstatedir includedir \
  1172. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1173. libdir localedir mandir
  1174. do
  1175. eval ac_val=\$$ac_var
  1176. # Remove trailing slashes.
  1177. case $ac_val in
  1178. */ )
  1179. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1180. eval $ac_var=\$ac_val;;
  1181. esac
  1182. # Be sure to have absolute directory names.
  1183. case $ac_val in
  1184. [\\/$]* | ?:[\\/]* ) continue;;
  1185. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1186. esac
  1187. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1188. done
  1189. # There might be people who depend on the old broken behavior: `$host'
  1190. # used to hold the argument of --host etc.
  1191. # FIXME: To remove some day.
  1192. build=$build_alias
  1193. host=$host_alias
  1194. target=$target_alias
  1195. # FIXME: To remove some day.
  1196. if test "x$host_alias" != x; then
  1197. if test "x$build_alias" = x; then
  1198. cross_compiling=maybe
  1199. elif test "x$build_alias" != "x$host_alias"; then
  1200. cross_compiling=yes
  1201. fi
  1202. fi
  1203. ac_tool_prefix=
  1204. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1205. test "$silent" = yes && exec 6>/dev/null
  1206. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1207. ac_ls_di=`ls -di .` &&
  1208. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1209. as_fn_error $? "working directory cannot be determined"
  1210. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1211. as_fn_error $? "pwd does not report name of working directory"
  1212. # Find the source files, if location was not specified.
  1213. if test -z "$srcdir"; then
  1214. ac_srcdir_defaulted=yes
  1215. # Try the directory containing this script, then the parent directory.
  1216. ac_confdir=`$as_dirname -- "$as_myself" ||
  1217. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1218. X"$as_myself" : 'X\(//\)[^/]' \| \
  1219. X"$as_myself" : 'X\(//\)$' \| \
  1220. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1221. $as_echo X"$as_myself" |
  1222. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1223. s//\1/
  1224. q
  1225. }
  1226. /^X\(\/\/\)[^/].*/{
  1227. s//\1/
  1228. q
  1229. }
  1230. /^X\(\/\/\)$/{
  1231. s//\1/
  1232. q
  1233. }
  1234. /^X\(\/\).*/{
  1235. s//\1/
  1236. q
  1237. }
  1238. s/.*/./; q'`
  1239. srcdir=$ac_confdir
  1240. if test ! -r "$srcdir/$ac_unique_file"; then
  1241. srcdir=..
  1242. fi
  1243. else
  1244. ac_srcdir_defaulted=no
  1245. fi
  1246. if test ! -r "$srcdir/$ac_unique_file"; then
  1247. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1248. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1249. fi
  1250. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1251. ac_abs_confdir=`(
  1252. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1253. pwd)`
  1254. # When building in place, set srcdir=.
  1255. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1256. srcdir=.
  1257. fi
  1258. # Remove unnecessary trailing slashes from srcdir.
  1259. # Double slashes in file names in object file debugging info
  1260. # mess up M-x gdb in Emacs.
  1261. case $srcdir in
  1262. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1263. esac
  1264. for ac_var in $ac_precious_vars; do
  1265. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_env_${ac_var}_value=\$${ac_var}
  1267. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1268. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1269. done
  1270. #
  1271. # Report the --help message.
  1272. #
  1273. if test "$ac_init_help" = "long"; then
  1274. # Omit some internal or obsolete options to make the list less imposing.
  1275. # This message is too long to be a string in the A/UX 3.1 sh.
  1276. cat <<_ACEOF
  1277. \`configure' configures binutils 2.38.50 to adapt to many kinds of systems.
  1278. Usage: $0 [OPTION]... [VAR=VALUE]...
  1279. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1280. VAR=VALUE. See below for descriptions of some of the useful variables.
  1281. Defaults for the options are specified in brackets.
  1282. Configuration:
  1283. -h, --help display this help and exit
  1284. --help=short display options specific to this package
  1285. --help=recursive display the short help of all the included packages
  1286. -V, --version display version information and exit
  1287. -q, --quiet, --silent do not print \`checking ...' messages
  1288. --cache-file=FILE cache test results in FILE [disabled]
  1289. -C, --config-cache alias for \`--cache-file=config.cache'
  1290. -n, --no-create do not create output files
  1291. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1292. Installation directories:
  1293. --prefix=PREFIX install architecture-independent files in PREFIX
  1294. [$ac_default_prefix]
  1295. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1296. [PREFIX]
  1297. By default, \`make install' will install all the files in
  1298. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1299. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1300. for instance \`--prefix=\$HOME'.
  1301. For better control, use the options below.
  1302. Fine tuning of the installation directories:
  1303. --bindir=DIR user executables [EPREFIX/bin]
  1304. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1305. --libexecdir=DIR program executables [EPREFIX/libexec]
  1306. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1307. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1308. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1309. --libdir=DIR object code libraries [EPREFIX/lib]
  1310. --includedir=DIR C header files [PREFIX/include]
  1311. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1312. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1313. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1314. --infodir=DIR info documentation [DATAROOTDIR/info]
  1315. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1316. --mandir=DIR man documentation [DATAROOTDIR/man]
  1317. --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
  1318. --htmldir=DIR html documentation [DOCDIR]
  1319. --dvidir=DIR dvi documentation [DOCDIR]
  1320. --pdfdir=DIR pdf documentation [DOCDIR]
  1321. --psdir=DIR ps documentation [DOCDIR]
  1322. _ACEOF
  1323. cat <<\_ACEOF
  1324. Program names:
  1325. --program-prefix=PREFIX prepend PREFIX to installed program names
  1326. --program-suffix=SUFFIX append SUFFIX to installed program names
  1327. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1328. System types:
  1329. --build=BUILD configure for building on BUILD [guessed]
  1330. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1331. --target=TARGET configure for building compilers for TARGET [HOST]
  1332. _ACEOF
  1333. fi
  1334. if test -n "$ac_init_help"; then
  1335. case $ac_init_help in
  1336. short | recursive ) echo "Configuration of binutils 2.38.50:";;
  1337. esac
  1338. cat <<\_ACEOF
  1339. Optional Features:
  1340. --disable-option-checking ignore unrecognized --enable/--with options
  1341. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1342. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1343. --enable-silent-rules less verbose build output (undo: "make V=1")
  1344. --disable-silent-rules verbose build output (undo: "make V=0")
  1345. --enable-dependency-tracking
  1346. do not reject slow dependency extractors
  1347. --disable-dependency-tracking
  1348. speeds up one-time build
  1349. --enable-shared[=PKGS] build shared libraries [default=yes]
  1350. --enable-static[=PKGS] build static libraries [default=yes]
  1351. --enable-fast-install[=PKGS]
  1352. optimize for fast installation [default=yes]
  1353. --disable-libtool-lock avoid locking (might break parallel builds)
  1354. --enable-plugins Enable support for plugins
  1355. --disable-largefile omit support for large files
  1356. --enable-checking enable run-time checks
  1357. --enable-targets alternative target configurations
  1358. --enable-deterministic-archives
  1359. ar and ranlib default to -D behavior
  1360. --disable-default-strings-all
  1361. strings defaults to --data behavior
  1362. --enable-f-for-ifunc-symbols
  1363. Have nm use F and f for global and local ifunc
  1364. symbols
  1365. --enable-follow-debug-links
  1366. Have readelf and objdump follow debug links by
  1367. default
  1368. --enable-libctf Handle .ctf type-info sections [default=yes]
  1369. --enable-werror treat compile warnings as errors
  1370. --enable-build-warnings enable build-time compiler warnings
  1371. --disable-nls do not use Native Language Support
  1372. --enable-maintainer-mode
  1373. enable make rules and dependencies not useful (and
  1374. sometimes confusing) to the casual installer
  1375. --disable-rpath do not hardcode runtime library paths
  1376. Optional Packages:
  1377. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1378. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1379. --with-pic try to use only PIC/non-PIC objects [default=use
  1380. both]
  1381. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1382. --with-debuginfod Enable debuginfo lookups with debuginfod
  1383. (auto/yes/no)
  1384. --with-system-zlib use installed libz
  1385. --with-msgpack Enable msgpack support (auto/yes/no)
  1386. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1387. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1388. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1389. --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
  1390. Some influential environment variables:
  1391. CC C compiler command
  1392. CFLAGS C compiler flags
  1393. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1394. nonstandard directory <lib dir>
  1395. LIBS libraries to pass to the linker, e.g. -l<library>
  1396. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1397. you have headers in a nonstandard directory <include dir>
  1398. CPP C preprocessor
  1399. PKG_CONFIG path to pkg-config utility
  1400. PKG_CONFIG_PATH
  1401. directories to add to pkg-config's search path
  1402. PKG_CONFIG_LIBDIR
  1403. path overriding pkg-config's built-in search path
  1404. DEBUGINFOD_CFLAGS
  1405. C compiler flags for DEBUGINFOD, overriding pkg-config
  1406. DEBUGINFOD_LIBS
  1407. linker flags for DEBUGINFOD, overriding pkg-config
  1408. YACC The `Yet Another Compiler Compiler' implementation to use.
  1409. Defaults to the first program found out of: `bison -y', `byacc',
  1410. `yacc'.
  1411. YFLAGS The list of arguments that will be passed by default to $YACC.
  1412. This script will default YFLAGS to the empty string to avoid a
  1413. default value of `-d' given by some make applications.
  1414. MSGPACK_CFLAGS
  1415. C compiler flags for MSGPACK, overriding pkg-config
  1416. MSGPACK_LIBS
  1417. linker flags for MSGPACK, overriding pkg-config
  1418. Use these variables to override the choices made by `configure' or to help
  1419. it to find libraries and programs with nonstandard names/locations.
  1420. Report bugs to the package provider.
  1421. _ACEOF
  1422. ac_status=$?
  1423. fi
  1424. if test "$ac_init_help" = "recursive"; then
  1425. # If there are subdirs, report their specific --help.
  1426. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1427. test -d "$ac_dir" ||
  1428. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1429. continue
  1430. ac_builddir=.
  1431. case "$ac_dir" in
  1432. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1433. *)
  1434. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1435. # A ".." for each directory in $ac_dir_suffix.
  1436. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1437. case $ac_top_builddir_sub in
  1438. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1439. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1440. esac ;;
  1441. esac
  1442. ac_abs_top_builddir=$ac_pwd
  1443. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1444. # for backward compatibility:
  1445. ac_top_builddir=$ac_top_build_prefix
  1446. case $srcdir in
  1447. .) # We are building in place.
  1448. ac_srcdir=.
  1449. ac_top_srcdir=$ac_top_builddir_sub
  1450. ac_abs_top_srcdir=$ac_pwd ;;
  1451. [\\/]* | ?:[\\/]* ) # Absolute name.
  1452. ac_srcdir=$srcdir$ac_dir_suffix;
  1453. ac_top_srcdir=$srcdir
  1454. ac_abs_top_srcdir=$srcdir ;;
  1455. *) # Relative name.
  1456. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1457. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1458. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1459. esac
  1460. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1461. cd "$ac_dir" || { ac_status=$?; continue; }
  1462. # Check for guested configure.
  1463. if test -f "$ac_srcdir/configure.gnu"; then
  1464. echo &&
  1465. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1466. elif test -f "$ac_srcdir/configure"; then
  1467. echo &&
  1468. $SHELL "$ac_srcdir/configure" --help=recursive
  1469. else
  1470. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1471. fi || ac_status=$?
  1472. cd "$ac_pwd" || { ac_status=$?; break; }
  1473. done
  1474. fi
  1475. test -n "$ac_init_help" && exit $ac_status
  1476. if $ac_init_version; then
  1477. cat <<\_ACEOF
  1478. binutils configure 2.38.50
  1479. generated by GNU Autoconf 2.69
  1480. Copyright (C) 2012 Free Software Foundation, Inc.
  1481. This configure script is free software; the Free Software Foundation
  1482. gives unlimited permission to copy, distribute and modify it.
  1483. _ACEOF
  1484. exit
  1485. fi
  1486. ## ------------------------ ##
  1487. ## Autoconf initialization. ##
  1488. ## ------------------------ ##
  1489. # ac_fn_c_try_compile LINENO
  1490. # --------------------------
  1491. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_compile ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext
  1496. if { { ac_try="$ac_compile"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_compile") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac_status = 0; } && {
  1512. test -z "$ac_c_werror_flag" ||
  1513. test ! -s conftest.err
  1514. } && test -s conftest.$ac_objext; then :
  1515. ac_retval=0
  1516. else
  1517. $as_echo "$as_me: failed program was:" >&5
  1518. sed 's/^/| /' conftest.$ac_ext >&5
  1519. ac_retval=1
  1520. fi
  1521. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1522. as_fn_set_status $ac_retval
  1523. } # ac_fn_c_try_compile
  1524. # ac_fn_c_try_cpp LINENO
  1525. # ----------------------
  1526. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1527. ac_fn_c_try_cpp ()
  1528. {
  1529. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1530. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1531. case "(($ac_try" in
  1532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1533. *) ac_try_echo=$ac_try;;
  1534. esac
  1535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1536. $as_echo "$ac_try_echo"; } >&5
  1537. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1538. ac_status=$?
  1539. if test -s conftest.err; then
  1540. grep -v '^ *+' conftest.err >conftest.er1
  1541. cat conftest.er1 >&5
  1542. mv -f conftest.er1 conftest.err
  1543. fi
  1544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1545. test $ac_status = 0; } > conftest.i && {
  1546. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1547. test ! -s conftest.err
  1548. }; then :
  1549. ac_retval=0
  1550. else
  1551. $as_echo "$as_me: failed program was:" >&5
  1552. sed 's/^/| /' conftest.$ac_ext >&5
  1553. ac_retval=1
  1554. fi
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. as_fn_set_status $ac_retval
  1557. } # ac_fn_c_try_cpp
  1558. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1559. # -------------------------------------------------------
  1560. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1561. # the include files in INCLUDES and setting the cache variable VAR
  1562. # accordingly.
  1563. ac_fn_c_check_header_mongrel ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. if eval \${$3+:} false; then :
  1567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1568. $as_echo_n "checking for $2... " >&6; }
  1569. if eval \${$3+:} false; then :
  1570. $as_echo_n "(cached) " >&6
  1571. fi
  1572. eval ac_res=\$$3
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1574. $as_echo "$ac_res" >&6; }
  1575. else
  1576. # Is the header compilable?
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1578. $as_echo_n "checking $2 usability... " >&6; }
  1579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1580. /* end confdefs.h. */
  1581. $4
  1582. #include <$2>
  1583. _ACEOF
  1584. if ac_fn_c_try_compile "$LINENO"; then :
  1585. ac_header_compiler=yes
  1586. else
  1587. ac_header_compiler=no
  1588. fi
  1589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1591. $as_echo "$ac_header_compiler" >&6; }
  1592. # Is the header present?
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1594. $as_echo_n "checking $2 presence... " >&6; }
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. #include <$2>
  1598. _ACEOF
  1599. if ac_fn_c_try_cpp "$LINENO"; then :
  1600. ac_header_preproc=yes
  1601. else
  1602. ac_header_preproc=no
  1603. fi
  1604. rm -f conftest.err conftest.i conftest.$ac_ext
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1606. $as_echo "$ac_header_preproc" >&6; }
  1607. # So? What about this header?
  1608. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1609. yes:no: )
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1611. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1613. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1614. ;;
  1615. no:yes:* )
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1617. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1619. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1621. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1623. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1625. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1626. ;;
  1627. esac
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1629. $as_echo_n "checking for $2... " >&6; }
  1630. if eval \${$3+:} false; then :
  1631. $as_echo_n "(cached) " >&6
  1632. else
  1633. eval "$3=\$ac_header_compiler"
  1634. fi
  1635. eval ac_res=\$$3
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1637. $as_echo "$ac_res" >&6; }
  1638. fi
  1639. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1640. } # ac_fn_c_check_header_mongrel
  1641. # ac_fn_c_try_run LINENO
  1642. # ----------------------
  1643. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1644. # that executables *can* be run.
  1645. ac_fn_c_try_run ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. if { { ac_try="$ac_link"
  1649. case "(($ac_try" in
  1650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1651. *) ac_try_echo=$ac_try;;
  1652. esac
  1653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1654. $as_echo "$ac_try_echo"; } >&5
  1655. (eval "$ac_link") 2>&5
  1656. ac_status=$?
  1657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1658. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1659. { { case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_try") 2>&5
  1666. ac_status=$?
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1668. test $ac_status = 0; }; }; then :
  1669. ac_retval=0
  1670. else
  1671. $as_echo "$as_me: program exited with status $ac_status" >&5
  1672. $as_echo "$as_me: failed program was:" >&5
  1673. sed 's/^/| /' conftest.$ac_ext >&5
  1674. ac_retval=$ac_status
  1675. fi
  1676. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1677. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1678. as_fn_set_status $ac_retval
  1679. } # ac_fn_c_try_run
  1680. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1681. # -------------------------------------------------------
  1682. # Tests whether HEADER exists and can be compiled using the include files in
  1683. # INCLUDES, setting the cache variable VAR accordingly.
  1684. ac_fn_c_check_header_compile ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1688. $as_echo_n "checking for $2... " >&6; }
  1689. if eval \${$3+:} false; then :
  1690. $as_echo_n "(cached) " >&6
  1691. else
  1692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1693. /* end confdefs.h. */
  1694. $4
  1695. #include <$2>
  1696. _ACEOF
  1697. if ac_fn_c_try_compile "$LINENO"; then :
  1698. eval "$3=yes"
  1699. else
  1700. eval "$3=no"
  1701. fi
  1702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1703. fi
  1704. eval ac_res=\$$3
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1706. $as_echo "$ac_res" >&6; }
  1707. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1708. } # ac_fn_c_check_header_compile
  1709. # ac_fn_c_try_link LINENO
  1710. # -----------------------
  1711. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1712. ac_fn_c_try_link ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. rm -f conftest.$ac_objext conftest$ac_exeext
  1716. if { { ac_try="$ac_link"
  1717. case "(($ac_try" in
  1718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1719. *) ac_try_echo=$ac_try;;
  1720. esac
  1721. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1722. $as_echo "$ac_try_echo"; } >&5
  1723. (eval "$ac_link") 2>conftest.err
  1724. ac_status=$?
  1725. if test -s conftest.err; then
  1726. grep -v '^ *+' conftest.err >conftest.er1
  1727. cat conftest.er1 >&5
  1728. mv -f conftest.er1 conftest.err
  1729. fi
  1730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731. test $ac_status = 0; } && {
  1732. test -z "$ac_c_werror_flag" ||
  1733. test ! -s conftest.err
  1734. } && test -s conftest$ac_exeext && {
  1735. test "$cross_compiling" = yes ||
  1736. test -x conftest$ac_exeext
  1737. }; then :
  1738. ac_retval=0
  1739. else
  1740. $as_echo "$as_me: failed program was:" >&5
  1741. sed 's/^/| /' conftest.$ac_ext >&5
  1742. ac_retval=1
  1743. fi
  1744. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1745. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1746. # interfere with the next link command; also delete a directory that is
  1747. # left behind by Apple's compiler. We do this before executing the actions.
  1748. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1749. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1750. as_fn_set_status $ac_retval
  1751. } # ac_fn_c_try_link
  1752. # ac_fn_c_check_func LINENO FUNC VAR
  1753. # ----------------------------------
  1754. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1755. ac_fn_c_check_func ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1759. $as_echo_n "checking for $2... " >&6; }
  1760. if eval \${$3+:} false; then :
  1761. $as_echo_n "(cached) " >&6
  1762. else
  1763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end confdefs.h. */
  1765. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1766. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1767. #define $2 innocuous_$2
  1768. /* System header to define __stub macros and hopefully few prototypes,
  1769. which can conflict with char $2 (); below.
  1770. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1771. <limits.h> exists even on freestanding compilers. */
  1772. #ifdef __STDC__
  1773. # include <limits.h>
  1774. #else
  1775. # include <assert.h>
  1776. #endif
  1777. #undef $2
  1778. /* Override any GCC internal prototype to avoid an error.
  1779. Use char because int might match the return type of a GCC
  1780. builtin and then its argument prototype would still apply. */
  1781. #ifdef __cplusplus
  1782. extern "C"
  1783. #endif
  1784. char $2 ();
  1785. /* The GNU C library defines this for functions which it implements
  1786. to always fail with ENOSYS. Some functions are actually named
  1787. something starting with __ and the normal name is an alias. */
  1788. #if defined __stub_$2 || defined __stub___$2
  1789. choke me
  1790. #endif
  1791. int
  1792. main ()
  1793. {
  1794. return $2 ();
  1795. ;
  1796. return 0;
  1797. }
  1798. _ACEOF
  1799. if ac_fn_c_try_link "$LINENO"; then :
  1800. eval "$3=yes"
  1801. else
  1802. eval "$3=no"
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext \
  1805. conftest$ac_exeext conftest.$ac_ext
  1806. fi
  1807. eval ac_res=\$$3
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1809. $as_echo "$ac_res" >&6; }
  1810. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1811. } # ac_fn_c_check_func
  1812. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1813. # --------------------------------------------
  1814. # Tries to find the compile-time value of EXPR in a program that includes
  1815. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1816. # computed
  1817. ac_fn_c_compute_int ()
  1818. {
  1819. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1820. if test "$cross_compiling" = yes; then
  1821. # Depending upon the size, compute the lo and hi bounds.
  1822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1823. /* end confdefs.h. */
  1824. $4
  1825. int
  1826. main ()
  1827. {
  1828. static int test_array [1 - 2 * !(($2) >= 0)];
  1829. test_array [0] = 0;
  1830. return test_array [0];
  1831. ;
  1832. return 0;
  1833. }
  1834. _ACEOF
  1835. if ac_fn_c_try_compile "$LINENO"; then :
  1836. ac_lo=0 ac_mid=0
  1837. while :; do
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. int
  1842. main ()
  1843. {
  1844. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1845. test_array [0] = 0;
  1846. return test_array [0];
  1847. ;
  1848. return 0;
  1849. }
  1850. _ACEOF
  1851. if ac_fn_c_try_compile "$LINENO"; then :
  1852. ac_hi=$ac_mid; break
  1853. else
  1854. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1855. if test $ac_lo -le $ac_mid; then
  1856. ac_lo= ac_hi=
  1857. break
  1858. fi
  1859. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1860. fi
  1861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1862. done
  1863. else
  1864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1865. /* end confdefs.h. */
  1866. $4
  1867. int
  1868. main ()
  1869. {
  1870. static int test_array [1 - 2 * !(($2) < 0)];
  1871. test_array [0] = 0;
  1872. return test_array [0];
  1873. ;
  1874. return 0;
  1875. }
  1876. _ACEOF
  1877. if ac_fn_c_try_compile "$LINENO"; then :
  1878. ac_hi=-1 ac_mid=-1
  1879. while :; do
  1880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1881. /* end confdefs.h. */
  1882. $4
  1883. int
  1884. main ()
  1885. {
  1886. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1887. test_array [0] = 0;
  1888. return test_array [0];
  1889. ;
  1890. return 0;
  1891. }
  1892. _ACEOF
  1893. if ac_fn_c_try_compile "$LINENO"; then :
  1894. ac_lo=$ac_mid; break
  1895. else
  1896. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1897. if test $ac_mid -le $ac_hi; then
  1898. ac_lo= ac_hi=
  1899. break
  1900. fi
  1901. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1902. fi
  1903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1904. done
  1905. else
  1906. ac_lo= ac_hi=
  1907. fi
  1908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1909. fi
  1910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1911. # Binary search between lo and hi bounds.
  1912. while test "x$ac_lo" != "x$ac_hi"; do
  1913. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1915. /* end confdefs.h. */
  1916. $4
  1917. int
  1918. main ()
  1919. {
  1920. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1921. test_array [0] = 0;
  1922. return test_array [0];
  1923. ;
  1924. return 0;
  1925. }
  1926. _ACEOF
  1927. if ac_fn_c_try_compile "$LINENO"; then :
  1928. ac_hi=$ac_mid
  1929. else
  1930. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1931. fi
  1932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1933. done
  1934. case $ac_lo in #((
  1935. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1936. '') ac_retval=1 ;;
  1937. esac
  1938. else
  1939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1940. /* end confdefs.h. */
  1941. $4
  1942. static long int longval () { return $2; }
  1943. static unsigned long int ulongval () { return $2; }
  1944. #include <stdio.h>
  1945. #include <stdlib.h>
  1946. int
  1947. main ()
  1948. {
  1949. FILE *f = fopen ("conftest.val", "w");
  1950. if (! f)
  1951. return 1;
  1952. if (($2) < 0)
  1953. {
  1954. long int i = longval ();
  1955. if (i != ($2))
  1956. return 1;
  1957. fprintf (f, "%ld", i);
  1958. }
  1959. else
  1960. {
  1961. unsigned long int i = ulongval ();
  1962. if (i != ($2))
  1963. return 1;
  1964. fprintf (f, "%lu", i);
  1965. }
  1966. /* Do not output a trailing newline, as this causes \r\n confusion
  1967. on some platforms. */
  1968. return ferror (f) || fclose (f) != 0;
  1969. ;
  1970. return 0;
  1971. }
  1972. _ACEOF
  1973. if ac_fn_c_try_run "$LINENO"; then :
  1974. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1975. else
  1976. ac_retval=1
  1977. fi
  1978. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1979. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1980. rm -f conftest.val
  1981. fi
  1982. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1983. as_fn_set_status $ac_retval
  1984. } # ac_fn_c_compute_int
  1985. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1986. # ----------------------------------------------------
  1987. # Tries to find if the field MEMBER exists in type AGGR, after including
  1988. # INCLUDES, setting cache variable VAR accordingly.
  1989. ac_fn_c_check_member ()
  1990. {
  1991. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1993. $as_echo_n "checking for $2.$3... " >&6; }
  1994. if eval \${$4+:} false; then :
  1995. $as_echo_n "(cached) " >&6
  1996. else
  1997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1998. /* end confdefs.h. */
  1999. $5
  2000. int
  2001. main ()
  2002. {
  2003. static $2 ac_aggr;
  2004. if (ac_aggr.$3)
  2005. return 0;
  2006. ;
  2007. return 0;
  2008. }
  2009. _ACEOF
  2010. if ac_fn_c_try_compile "$LINENO"; then :
  2011. eval "$4=yes"
  2012. else
  2013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2014. /* end confdefs.h. */
  2015. $5
  2016. int
  2017. main ()
  2018. {
  2019. static $2 ac_aggr;
  2020. if (sizeof ac_aggr.$3)
  2021. return 0;
  2022. ;
  2023. return 0;
  2024. }
  2025. _ACEOF
  2026. if ac_fn_c_try_compile "$LINENO"; then :
  2027. eval "$4=yes"
  2028. else
  2029. eval "$4=no"
  2030. fi
  2031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2032. fi
  2033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2034. fi
  2035. eval ac_res=\$$4
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2037. $as_echo "$ac_res" >&6; }
  2038. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2039. } # ac_fn_c_check_member
  2040. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2041. # ---------------------------------------------
  2042. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2043. # accordingly.
  2044. ac_fn_c_check_decl ()
  2045. {
  2046. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2047. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2048. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2050. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2051. if eval \${$3+:} false; then :
  2052. $as_echo_n "(cached) " >&6
  2053. else
  2054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2055. /* end confdefs.h. */
  2056. $4
  2057. int
  2058. main ()
  2059. {
  2060. #ifndef $as_decl_name
  2061. #ifdef __cplusplus
  2062. (void) $as_decl_use;
  2063. #else
  2064. (void) $as_decl_name;
  2065. #endif
  2066. #endif
  2067. ;
  2068. return 0;
  2069. }
  2070. _ACEOF
  2071. if ac_fn_c_try_compile "$LINENO"; then :
  2072. eval "$3=yes"
  2073. else
  2074. eval "$3=no"
  2075. fi
  2076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2077. fi
  2078. eval ac_res=\$$3
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2080. $as_echo "$ac_res" >&6; }
  2081. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2082. } # ac_fn_c_check_decl
  2083. cat >config.log <<_ACEOF
  2084. This file contains any messages produced by compilers while
  2085. running configure, to aid debugging if configure makes a mistake.
  2086. It was created by binutils $as_me 2.38.50, which was
  2087. generated by GNU Autoconf 2.69. Invocation command line was
  2088. $ $0 $@
  2089. _ACEOF
  2090. exec 5>>config.log
  2091. {
  2092. cat <<_ASUNAME
  2093. ## --------- ##
  2094. ## Platform. ##
  2095. ## --------- ##
  2096. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2097. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2098. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2099. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2100. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2101. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2102. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2103. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2104. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2105. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2106. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2107. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2108. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2109. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2110. _ASUNAME
  2111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2112. for as_dir in $PATH
  2113. do
  2114. IFS=$as_save_IFS
  2115. test -z "$as_dir" && as_dir=.
  2116. $as_echo "PATH: $as_dir"
  2117. done
  2118. IFS=$as_save_IFS
  2119. } >&5
  2120. cat >&5 <<_ACEOF
  2121. ## ----------- ##
  2122. ## Core tests. ##
  2123. ## ----------- ##
  2124. _ACEOF
  2125. # Keep a trace of the command line.
  2126. # Strip out --no-create and --no-recursion so they do not pile up.
  2127. # Strip out --silent because we don't want to record it for future runs.
  2128. # Also quote any args containing shell meta-characters.
  2129. # Make two passes to allow for proper duplicate-argument suppression.
  2130. ac_configure_args=
  2131. ac_configure_args0=
  2132. ac_configure_args1=
  2133. ac_must_keep_next=false
  2134. for ac_pass in 1 2
  2135. do
  2136. for ac_arg
  2137. do
  2138. case $ac_arg in
  2139. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2140. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2141. | -silent | --silent | --silen | --sile | --sil)
  2142. continue ;;
  2143. *\'*)
  2144. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2145. esac
  2146. case $ac_pass in
  2147. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2148. 2)
  2149. as_fn_append ac_configure_args1 " '$ac_arg'"
  2150. if test $ac_must_keep_next = true; then
  2151. ac_must_keep_next=false # Got value, back to normal.
  2152. else
  2153. case $ac_arg in
  2154. *=* | --config-cache | -C | -disable-* | --disable-* \
  2155. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2156. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2157. | -with-* | --with-* | -without-* | --without-* | --x)
  2158. case "$ac_configure_args0 " in
  2159. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2160. esac
  2161. ;;
  2162. -* ) ac_must_keep_next=true ;;
  2163. esac
  2164. fi
  2165. as_fn_append ac_configure_args " '$ac_arg'"
  2166. ;;
  2167. esac
  2168. done
  2169. done
  2170. { ac_configure_args0=; unset ac_configure_args0;}
  2171. { ac_configure_args1=; unset ac_configure_args1;}
  2172. # When interrupted or exit'd, cleanup temporary files, and complete
  2173. # config.log. We remove comments because anyway the quotes in there
  2174. # would cause problems or look ugly.
  2175. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2176. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2177. trap 'exit_status=$?
  2178. # Save into config.log some information that might help in debugging.
  2179. {
  2180. echo
  2181. $as_echo "## ---------------- ##
  2182. ## Cache variables. ##
  2183. ## ---------------- ##"
  2184. echo
  2185. # The following way of writing the cache mishandles newlines in values,
  2186. (
  2187. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2188. eval ac_val=\$$ac_var
  2189. case $ac_val in #(
  2190. *${as_nl}*)
  2191. case $ac_var in #(
  2192. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2193. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2194. esac
  2195. case $ac_var in #(
  2196. _ | IFS | as_nl) ;; #(
  2197. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2198. *) { eval $ac_var=; unset $ac_var;} ;;
  2199. esac ;;
  2200. esac
  2201. done
  2202. (set) 2>&1 |
  2203. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2204. *${as_nl}ac_space=\ *)
  2205. sed -n \
  2206. "s/'\''/'\''\\\\'\'''\''/g;
  2207. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2208. ;; #(
  2209. *)
  2210. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2211. ;;
  2212. esac |
  2213. sort
  2214. )
  2215. echo
  2216. $as_echo "## ----------------- ##
  2217. ## Output variables. ##
  2218. ## ----------------- ##"
  2219. echo
  2220. for ac_var in $ac_subst_vars
  2221. do
  2222. eval ac_val=\$$ac_var
  2223. case $ac_val in
  2224. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2225. esac
  2226. $as_echo "$ac_var='\''$ac_val'\''"
  2227. done | sort
  2228. echo
  2229. if test -n "$ac_subst_files"; then
  2230. $as_echo "## ------------------- ##
  2231. ## File substitutions. ##
  2232. ## ------------------- ##"
  2233. echo
  2234. for ac_var in $ac_subst_files
  2235. do
  2236. eval ac_val=\$$ac_var
  2237. case $ac_val in
  2238. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2239. esac
  2240. $as_echo "$ac_var='\''$ac_val'\''"
  2241. done | sort
  2242. echo
  2243. fi
  2244. if test -s confdefs.h; then
  2245. $as_echo "## ----------- ##
  2246. ## confdefs.h. ##
  2247. ## ----------- ##"
  2248. echo
  2249. cat confdefs.h
  2250. echo
  2251. fi
  2252. test "$ac_signal" != 0 &&
  2253. $as_echo "$as_me: caught signal $ac_signal"
  2254. $as_echo "$as_me: exit $exit_status"
  2255. } >&5
  2256. rm -f core *.core core.conftest.* &&
  2257. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2258. exit $exit_status
  2259. ' 0
  2260. for ac_signal in 1 2 13 15; do
  2261. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2262. done
  2263. ac_signal=0
  2264. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2265. rm -f -r conftest* confdefs.h
  2266. $as_echo "/* confdefs.h */" > confdefs.h
  2267. # Predefined preprocessor variables.
  2268. cat >>confdefs.h <<_ACEOF
  2269. #define PACKAGE_NAME "$PACKAGE_NAME"
  2270. _ACEOF
  2271. cat >>confdefs.h <<_ACEOF
  2272. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2273. _ACEOF
  2274. cat >>confdefs.h <<_ACEOF
  2275. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2276. _ACEOF
  2277. cat >>confdefs.h <<_ACEOF
  2278. #define PACKAGE_STRING "$PACKAGE_STRING"
  2279. _ACEOF
  2280. cat >>confdefs.h <<_ACEOF
  2281. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2282. _ACEOF
  2283. cat >>confdefs.h <<_ACEOF
  2284. #define PACKAGE_URL "$PACKAGE_URL"
  2285. _ACEOF
  2286. # Let the site file select an alternate cache file if it wants to.
  2287. # Prefer an explicitly selected file to automatically selected ones.
  2288. ac_site_file1=NONE
  2289. ac_site_file2=NONE
  2290. if test -n "$CONFIG_SITE"; then
  2291. # We do not want a PATH search for config.site.
  2292. case $CONFIG_SITE in #((
  2293. -*) ac_site_file1=./$CONFIG_SITE;;
  2294. */*) ac_site_file1=$CONFIG_SITE;;
  2295. *) ac_site_file1=./$CONFIG_SITE;;
  2296. esac
  2297. elif test "x$prefix" != xNONE; then
  2298. ac_site_file1=$prefix/share/config.site
  2299. ac_site_file2=$prefix/etc/config.site
  2300. else
  2301. ac_site_file1=$ac_default_prefix/share/config.site
  2302. ac_site_file2=$ac_default_prefix/etc/config.site
  2303. fi
  2304. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2305. do
  2306. test "x$ac_site_file" = xNONE && continue
  2307. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2309. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2310. sed 's/^/| /' "$ac_site_file" >&5
  2311. . "$ac_site_file" \
  2312. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2313. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2314. as_fn_error $? "failed to load site script $ac_site_file
  2315. See \`config.log' for more details" "$LINENO" 5; }
  2316. fi
  2317. done
  2318. if test -r "$cache_file"; then
  2319. # Some versions of bash will fail to source /dev/null (special files
  2320. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2321. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2323. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2324. case $cache_file in
  2325. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2326. *) . "./$cache_file";;
  2327. esac
  2328. fi
  2329. else
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2331. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2332. >$cache_file
  2333. fi
  2334. as_fn_append ac_header_list " stdlib.h"
  2335. as_fn_append ac_header_list " unistd.h"
  2336. as_fn_append ac_header_list " sys/param.h"
  2337. # Check that the precious variables saved in the cache have kept the same
  2338. # value.
  2339. ac_cache_corrupted=false
  2340. for ac_var in $ac_precious_vars; do
  2341. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2342. eval ac_new_set=\$ac_env_${ac_var}_set
  2343. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2344. eval ac_new_val=\$ac_env_${ac_var}_value
  2345. case $ac_old_set,$ac_new_set in
  2346. set,)
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2348. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2349. ac_cache_corrupted=: ;;
  2350. ,set)
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2352. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2353. ac_cache_corrupted=: ;;
  2354. ,);;
  2355. *)
  2356. if test "x$ac_old_val" != "x$ac_new_val"; then
  2357. # differences in whitespace do not lead to failure.
  2358. ac_old_val_w=`echo x $ac_old_val`
  2359. ac_new_val_w=`echo x $ac_new_val`
  2360. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2362. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2363. ac_cache_corrupted=:
  2364. else
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2366. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2367. eval $ac_var=\$ac_old_val
  2368. fi
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2370. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2372. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2373. fi;;
  2374. esac
  2375. # Pass precious variables to config.status.
  2376. if test "$ac_new_set" = set; then
  2377. case $ac_new_val in
  2378. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2379. *) ac_arg=$ac_var=$ac_new_val ;;
  2380. esac
  2381. case " $ac_configure_args " in
  2382. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2383. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2384. esac
  2385. fi
  2386. done
  2387. if $ac_cache_corrupted; then
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2391. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2392. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2393. fi
  2394. ## -------------------- ##
  2395. ## Main body of script. ##
  2396. ## -------------------- ##
  2397. ac_ext=c
  2398. ac_cpp='$CPP $CPPFLAGS'
  2399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2402. ac_aux_dir=
  2403. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2404. if test -f "$ac_dir/install-sh"; then
  2405. ac_aux_dir=$ac_dir
  2406. ac_install_sh="$ac_aux_dir/install-sh -c"
  2407. break
  2408. elif test -f "$ac_dir/install.sh"; then
  2409. ac_aux_dir=$ac_dir
  2410. ac_install_sh="$ac_aux_dir/install.sh -c"
  2411. break
  2412. elif test -f "$ac_dir/shtool"; then
  2413. ac_aux_dir=$ac_dir
  2414. ac_install_sh="$ac_aux_dir/shtool install -c"
  2415. break
  2416. fi
  2417. done
  2418. if test -z "$ac_aux_dir"; then
  2419. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2420. fi
  2421. # These three variables are undocumented and unsupported,
  2422. # and are intended to be withdrawn in a future Autoconf release.
  2423. # They can cause serious problems if a builder's source tree is in a directory
  2424. # whose full name contains unusual characters.
  2425. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2426. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2427. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2428. # Make sure we can run config.sub.
  2429. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2430. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2432. $as_echo_n "checking build system type... " >&6; }
  2433. if ${ac_cv_build+:} false; then :
  2434. $as_echo_n "(cached) " >&6
  2435. else
  2436. ac_build_alias=$build_alias
  2437. test "x$ac_build_alias" = x &&
  2438. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2439. test "x$ac_build_alias" = x &&
  2440. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2441. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2442. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2443. fi
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2445. $as_echo "$ac_cv_build" >&6; }
  2446. case $ac_cv_build in
  2447. *-*-*) ;;
  2448. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2449. esac
  2450. build=$ac_cv_build
  2451. ac_save_IFS=$IFS; IFS='-'
  2452. set x $ac_cv_build
  2453. shift
  2454. build_cpu=$1
  2455. build_vendor=$2
  2456. shift; shift
  2457. # Remember, the first character of IFS is used to create $*,
  2458. # except with old shells:
  2459. build_os=$*
  2460. IFS=$ac_save_IFS
  2461. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2463. $as_echo_n "checking host system type... " >&6; }
  2464. if ${ac_cv_host+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if test "x$host_alias" = x; then
  2468. ac_cv_host=$ac_cv_build
  2469. else
  2470. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2471. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2472. fi
  2473. fi
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2475. $as_echo "$ac_cv_host" >&6; }
  2476. case $ac_cv_host in
  2477. *-*-*) ;;
  2478. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2479. esac
  2480. host=$ac_cv_host
  2481. ac_save_IFS=$IFS; IFS='-'
  2482. set x $ac_cv_host
  2483. shift
  2484. host_cpu=$1
  2485. host_vendor=$2
  2486. shift; shift
  2487. # Remember, the first character of IFS is used to create $*,
  2488. # except with old shells:
  2489. host_os=$*
  2490. IFS=$ac_save_IFS
  2491. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2493. $as_echo_n "checking target system type... " >&6; }
  2494. if ${ac_cv_target+:} false; then :
  2495. $as_echo_n "(cached) " >&6
  2496. else
  2497. if test "x$target_alias" = x; then
  2498. ac_cv_target=$ac_cv_host
  2499. else
  2500. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2501. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2502. fi
  2503. fi
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2505. $as_echo "$ac_cv_target" >&6; }
  2506. case $ac_cv_target in
  2507. *-*-*) ;;
  2508. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2509. esac
  2510. target=$ac_cv_target
  2511. ac_save_IFS=$IFS; IFS='-'
  2512. set x $ac_cv_target
  2513. shift
  2514. target_cpu=$1
  2515. target_vendor=$2
  2516. shift; shift
  2517. # Remember, the first character of IFS is used to create $*,
  2518. # except with old shells:
  2519. target_os=$*
  2520. IFS=$ac_save_IFS
  2521. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2522. # The aliases save the names the user supplied, while $host etc.
  2523. # will get canonicalized.
  2524. test -n "$target_alias" &&
  2525. test "$program_prefix$program_suffix$program_transform_name" = \
  2526. NONENONEs,x,x, &&
  2527. program_prefix=${target_alias}-
  2528. am__api_version='1.15'
  2529. # Find a good install program. We prefer a C program (faster),
  2530. # so one script is as good as another. But avoid the broken or
  2531. # incompatible versions:
  2532. # SysV /etc/install, /usr/sbin/install
  2533. # SunOS /usr/etc/install
  2534. # IRIX /sbin/install
  2535. # AIX /bin/install
  2536. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2537. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2538. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2539. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2540. # OS/2's system install, which has a completely different semantic
  2541. # ./install, which can be erroneously created by make from ./install.sh.
  2542. # Reject install programs that cannot install multiple files.
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2544. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2545. if test -z "$INSTALL"; then
  2546. if ${ac_cv_path_install+:} false; then :
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2550. for as_dir in $PATH
  2551. do
  2552. IFS=$as_save_IFS
  2553. test -z "$as_dir" && as_dir=.
  2554. # Account for people who put trailing slashes in PATH elements.
  2555. case $as_dir/ in #((
  2556. ./ | .// | /[cC]/* | \
  2557. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2558. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2559. /usr/ucb/* ) ;;
  2560. *)
  2561. # OSF1 and SCO ODT 3.0 have their own names for install.
  2562. # Don't use installbsd from OSF since it installs stuff as root
  2563. # by default.
  2564. for ac_prog in ginstall scoinst install; do
  2565. for ac_exec_ext in '' $ac_executable_extensions; do
  2566. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2567. if test $ac_prog = install &&
  2568. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2569. # AIX install. It has an incompatible calling convention.
  2570. :
  2571. elif test $ac_prog = install &&
  2572. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2573. # program-specific install script used by HP pwplus--don't use.
  2574. :
  2575. else
  2576. rm -rf conftest.one conftest.two conftest.dir
  2577. echo one > conftest.one
  2578. echo two > conftest.two
  2579. mkdir conftest.dir
  2580. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2581. test -s conftest.one && test -s conftest.two &&
  2582. test -s conftest.dir/conftest.one &&
  2583. test -s conftest.dir/conftest.two
  2584. then
  2585. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2586. break 3
  2587. fi
  2588. fi
  2589. fi
  2590. done
  2591. done
  2592. ;;
  2593. esac
  2594. done
  2595. IFS=$as_save_IFS
  2596. rm -rf conftest.one conftest.two conftest.dir
  2597. fi
  2598. if test "${ac_cv_path_install+set}" = set; then
  2599. INSTALL=$ac_cv_path_install
  2600. else
  2601. # As a last resort, use the slow shell script. Don't cache a
  2602. # value for INSTALL within a source directory, because that will
  2603. # break other packages using the cache if that directory is
  2604. # removed, or if the value is a relative name.
  2605. INSTALL=$ac_install_sh
  2606. fi
  2607. fi
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2609. $as_echo "$INSTALL" >&6; }
  2610. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2611. # It thinks the first close brace ends the variable substitution.
  2612. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2613. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2614. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2616. $as_echo_n "checking whether build environment is sane... " >&6; }
  2617. # Reject unsafe characters in $srcdir or the absolute working directory
  2618. # name. Accept space and tab only in the latter.
  2619. am_lf='
  2620. '
  2621. case `pwd` in
  2622. *[\\\"\#\$\&\'\`$am_lf]*)
  2623. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2624. esac
  2625. case $srcdir in
  2626. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2627. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2628. esac
  2629. # Do 'set' in a subshell so we don't clobber the current shell's
  2630. # arguments. Must try -L first in case configure is actually a
  2631. # symlink; some systems play weird games with the mod time of symlinks
  2632. # (eg FreeBSD returns the mod time of the symlink's containing
  2633. # directory).
  2634. if (
  2635. am_has_slept=no
  2636. for am_try in 1 2; do
  2637. echo "timestamp, slept: $am_has_slept" > conftest.file
  2638. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2639. if test "$*" = "X"; then
  2640. # -L didn't work.
  2641. set X `ls -t "$srcdir/configure" conftest.file`
  2642. fi
  2643. if test "$*" != "X $srcdir/configure conftest.file" \
  2644. && test "$*" != "X conftest.file $srcdir/configure"; then
  2645. # If neither matched, then we have a broken ls. This can happen
  2646. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2647. # broken ls alias from the environment. This has actually
  2648. # happened. Such a system could not be considered "sane".
  2649. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2650. alias in your environment" "$LINENO" 5
  2651. fi
  2652. if test "$2" = conftest.file || test $am_try -eq 2; then
  2653. break
  2654. fi
  2655. # Just in case.
  2656. sleep 1
  2657. am_has_slept=yes
  2658. done
  2659. test "$2" = conftest.file
  2660. )
  2661. then
  2662. # Ok.
  2663. :
  2664. else
  2665. as_fn_error $? "newly created file is older than distributed files!
  2666. Check your system clock" "$LINENO" 5
  2667. fi
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2669. $as_echo "yes" >&6; }
  2670. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2671. # generated files are strictly newer.
  2672. am_sleep_pid=
  2673. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2674. ( sleep 1 ) &
  2675. am_sleep_pid=$!
  2676. fi
  2677. rm -f conftest.file
  2678. test "$program_prefix" != NONE &&
  2679. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2680. # Use a double $ so make ignores it.
  2681. test "$program_suffix" != NONE &&
  2682. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2683. # Double any \ or $.
  2684. # By default was `s,x,x', remove it if useless.
  2685. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2686. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2687. # Expand $ac_aux_dir to an absolute path.
  2688. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2689. if test x"${MISSING+set}" != xset; then
  2690. case $am_aux_dir in
  2691. *\ * | *\ *)
  2692. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2693. *)
  2694. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2695. esac
  2696. fi
  2697. # Use eval to expand $SHELL
  2698. if eval "$MISSING --is-lightweight"; then
  2699. am_missing_run="$MISSING "
  2700. else
  2701. am_missing_run=
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2703. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2704. fi
  2705. if test x"${install_sh+set}" != xset; then
  2706. case $am_aux_dir in
  2707. *\ * | *\ *)
  2708. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2709. *)
  2710. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2711. esac
  2712. fi
  2713. # Installed binaries are usually stripped using 'strip' when the user
  2714. # run "make install-strip". However 'strip' might not be the right
  2715. # tool to use in cross-compilation environments, therefore Automake
  2716. # will honor the 'STRIP' environment variable to overrule this program.
  2717. if test "$cross_compiling" != no; then
  2718. if test -n "$ac_tool_prefix"; then
  2719. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2720. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2722. $as_echo_n "checking for $ac_word... " >&6; }
  2723. if ${ac_cv_prog_STRIP+:} false; then :
  2724. $as_echo_n "(cached) " >&6
  2725. else
  2726. if test -n "$STRIP"; then
  2727. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2728. else
  2729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2730. for as_dir in $PATH
  2731. do
  2732. IFS=$as_save_IFS
  2733. test -z "$as_dir" && as_dir=.
  2734. for ac_exec_ext in '' $ac_executable_extensions; do
  2735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2736. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2738. break 2
  2739. fi
  2740. done
  2741. done
  2742. IFS=$as_save_IFS
  2743. fi
  2744. fi
  2745. STRIP=$ac_cv_prog_STRIP
  2746. if test -n "$STRIP"; then
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2748. $as_echo "$STRIP" >&6; }
  2749. else
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi
  2753. fi
  2754. if test -z "$ac_cv_prog_STRIP"; then
  2755. ac_ct_STRIP=$STRIP
  2756. # Extract the first word of "strip", so it can be a program name with args.
  2757. set dummy strip; ac_word=$2
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2759. $as_echo_n "checking for $ac_word... " >&6; }
  2760. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2761. $as_echo_n "(cached) " >&6
  2762. else
  2763. if test -n "$ac_ct_STRIP"; then
  2764. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2765. else
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2773. ac_cv_prog_ac_ct_STRIP="strip"
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. done
  2779. IFS=$as_save_IFS
  2780. fi
  2781. fi
  2782. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2783. if test -n "$ac_ct_STRIP"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2785. $as_echo "$ac_ct_STRIP" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. if test "x$ac_ct_STRIP" = x; then
  2791. STRIP=":"
  2792. else
  2793. case $cross_compiling:$ac_tool_warned in
  2794. yes:)
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2797. ac_tool_warned=yes ;;
  2798. esac
  2799. STRIP=$ac_ct_STRIP
  2800. fi
  2801. else
  2802. STRIP="$ac_cv_prog_STRIP"
  2803. fi
  2804. fi
  2805. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2807. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2808. if test -z "$MKDIR_P"; then
  2809. if ${ac_cv_path_mkdir+:} false; then :
  2810. $as_echo_n "(cached) " >&6
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_prog in mkdir gmkdir; do
  2818. for ac_exec_ext in '' $ac_executable_extensions; do
  2819. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2820. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2821. 'mkdir (GNU coreutils) '* | \
  2822. 'mkdir (coreutils) '* | \
  2823. 'mkdir (fileutils) '4.1*)
  2824. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2825. break 3;;
  2826. esac
  2827. done
  2828. done
  2829. done
  2830. IFS=$as_save_IFS
  2831. fi
  2832. test -d ./--version && rmdir ./--version
  2833. if test "${ac_cv_path_mkdir+set}" = set; then
  2834. MKDIR_P="$ac_cv_path_mkdir -p"
  2835. else
  2836. # As a last resort, use the slow shell script. Don't cache a
  2837. # value for MKDIR_P within a source directory, because that will
  2838. # break other packages using the cache if that directory is
  2839. # removed, or if the value is a relative name.
  2840. MKDIR_P="$ac_install_sh -d"
  2841. fi
  2842. fi
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2844. $as_echo "$MKDIR_P" >&6; }
  2845. for ac_prog in gawk mawk nawk awk
  2846. do
  2847. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2848. set dummy $ac_prog; ac_word=$2
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2850. $as_echo_n "checking for $ac_word... " >&6; }
  2851. if ${ac_cv_prog_AWK+:} false; then :
  2852. $as_echo_n "(cached) " >&6
  2853. else
  2854. if test -n "$AWK"; then
  2855. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2856. else
  2857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858. for as_dir in $PATH
  2859. do
  2860. IFS=$as_save_IFS
  2861. test -z "$as_dir" && as_dir=.
  2862. for ac_exec_ext in '' $ac_executable_extensions; do
  2863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2864. ac_cv_prog_AWK="$ac_prog"
  2865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2866. break 2
  2867. fi
  2868. done
  2869. done
  2870. IFS=$as_save_IFS
  2871. fi
  2872. fi
  2873. AWK=$ac_cv_prog_AWK
  2874. if test -n "$AWK"; then
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2876. $as_echo "$AWK" >&6; }
  2877. else
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2879. $as_echo "no" >&6; }
  2880. fi
  2881. test -n "$AWK" && break
  2882. done
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2884. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2885. set x ${MAKE-make}
  2886. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2887. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2888. $as_echo_n "(cached) " >&6
  2889. else
  2890. cat >conftest.make <<\_ACEOF
  2891. SHELL = /bin/sh
  2892. all:
  2893. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2894. _ACEOF
  2895. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2896. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2897. *@@@%%%=?*=@@@%%%*)
  2898. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2899. *)
  2900. eval ac_cv_prog_make_${ac_make}_set=no;;
  2901. esac
  2902. rm -f conftest.make
  2903. fi
  2904. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2906. $as_echo "yes" >&6; }
  2907. SET_MAKE=
  2908. else
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2910. $as_echo "no" >&6; }
  2911. SET_MAKE="MAKE=${MAKE-make}"
  2912. fi
  2913. rm -rf .tst 2>/dev/null
  2914. mkdir .tst 2>/dev/null
  2915. if test -d .tst; then
  2916. am__leading_dot=.
  2917. else
  2918. am__leading_dot=_
  2919. fi
  2920. rmdir .tst 2>/dev/null
  2921. # Check whether --enable-silent-rules was given.
  2922. if test "${enable_silent_rules+set}" = set; then :
  2923. enableval=$enable_silent_rules;
  2924. fi
  2925. case $enable_silent_rules in # (((
  2926. yes) AM_DEFAULT_VERBOSITY=0;;
  2927. no) AM_DEFAULT_VERBOSITY=1;;
  2928. *) AM_DEFAULT_VERBOSITY=1;;
  2929. esac
  2930. am_make=${MAKE-make}
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2932. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2933. if ${am_cv_make_support_nested_variables+:} false; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. if $as_echo 'TRUE=$(BAR$(V))
  2937. BAR0=false
  2938. BAR1=true
  2939. V=1
  2940. am__doit:
  2941. @$(TRUE)
  2942. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2943. am_cv_make_support_nested_variables=yes
  2944. else
  2945. am_cv_make_support_nested_variables=no
  2946. fi
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2949. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2950. if test $am_cv_make_support_nested_variables = yes; then
  2951. AM_V='$(V)'
  2952. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2953. else
  2954. AM_V=$AM_DEFAULT_VERBOSITY
  2955. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2956. fi
  2957. AM_BACKSLASH='\'
  2958. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2959. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2960. # is not polluted with repeated "-I."
  2961. am__isrc=' -I$(srcdir)'
  2962. # test to see if srcdir already configured
  2963. if test -f $srcdir/config.status; then
  2964. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2965. fi
  2966. fi
  2967. # test whether we have cygpath
  2968. if test -z "$CYGPATH_W"; then
  2969. if (cygpath --version) >/dev/null 2>/dev/null; then
  2970. CYGPATH_W='cygpath -w'
  2971. else
  2972. CYGPATH_W=echo
  2973. fi
  2974. fi
  2975. # Define the identity of the package.
  2976. PACKAGE='binutils'
  2977. VERSION='2.38.50'
  2978. cat >>confdefs.h <<_ACEOF
  2979. #define PACKAGE "$PACKAGE"
  2980. _ACEOF
  2981. cat >>confdefs.h <<_ACEOF
  2982. #define VERSION "$VERSION"
  2983. _ACEOF
  2984. # Some tools Automake needs.
  2985. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2986. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2987. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2988. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2989. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2990. # For better backward compatibility. To be removed once Automake 1.9.x
  2991. # dies out for good. For more background, see:
  2992. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2993. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2994. mkdir_p='$(MKDIR_P)'
  2995. # We need awk for the "check" target (and possibly the TAP driver). The
  2996. # system "awk" is bad on some platforms.
  2997. # Always define AMTAR for backward compatibility. Yes, it's still used
  2998. # in the wild :-( We should find a proper way to deprecate it ...
  2999. AMTAR='$${TAR-tar}'
  3000. # We'll loop over all known methods to create a tar archive until one works.
  3001. _am_tools='gnutar pax cpio none'
  3002. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3003. # POSIX will say in a future version that running "rm -f" with no argument
  3004. # is OK; and we want to be able to make that assumption in our Makefile
  3005. # recipes. So use an aggressive probe to check that the usage we want is
  3006. # actually supported "in the wild" to an acceptable degree.
  3007. # See automake bug#10828.
  3008. # To make any issue more visible, cause the running configure to be aborted
  3009. # by default if the 'rm' program in use doesn't match our expectations; the
  3010. # user can still override this though.
  3011. if rm -f && rm -fr && rm -rf; then : OK; else
  3012. cat >&2 <<'END'
  3013. Oops!
  3014. Your 'rm' program seems unable to run without file operands specified
  3015. on the command line, even when the '-f' option is present. This is contrary
  3016. to the behaviour of most rm programs out there, and not conforming with
  3017. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3018. Please tell bug-automake@gnu.org about your system, including the value
  3019. of your $PATH and any error possibly output before this message. This
  3020. can help us improve future automake versions.
  3021. END
  3022. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3023. echo 'Configuration will proceed anyway, since you have set the' >&2
  3024. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3025. echo >&2
  3026. else
  3027. cat >&2 <<'END'
  3028. Aborting the configuration process, to ensure you take notice of the issue.
  3029. You can download and install GNU coreutils to get an 'rm' implementation
  3030. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3031. If you want to complete the configuration process using your problematic
  3032. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3033. to "yes", and re-run configure.
  3034. END
  3035. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3036. fi
  3037. fi
  3038. # Check whether --enable-silent-rules was given.
  3039. if test "${enable_silent_rules+set}" = set; then :
  3040. enableval=$enable_silent_rules;
  3041. fi
  3042. case $enable_silent_rules in # (((
  3043. yes) AM_DEFAULT_VERBOSITY=0;;
  3044. no) AM_DEFAULT_VERBOSITY=1;;
  3045. *) AM_DEFAULT_VERBOSITY=0;;
  3046. esac
  3047. am_make=${MAKE-make}
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3049. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3050. if ${am_cv_make_support_nested_variables+:} false; then :
  3051. $as_echo_n "(cached) " >&6
  3052. else
  3053. if $as_echo 'TRUE=$(BAR$(V))
  3054. BAR0=false
  3055. BAR1=true
  3056. V=1
  3057. am__doit:
  3058. @$(TRUE)
  3059. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3060. am_cv_make_support_nested_variables=yes
  3061. else
  3062. am_cv_make_support_nested_variables=no
  3063. fi
  3064. fi
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3066. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3067. if test $am_cv_make_support_nested_variables = yes; then
  3068. AM_V='$(V)'
  3069. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3070. else
  3071. AM_V=$AM_DEFAULT_VERBOSITY
  3072. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3073. fi
  3074. AM_BACKSLASH='\'
  3075. ac_ext=c
  3076. ac_cpp='$CPP $CPPFLAGS'
  3077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3080. if test -n "$ac_tool_prefix"; then
  3081. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3082. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3084. $as_echo_n "checking for $ac_word... " >&6; }
  3085. if ${ac_cv_prog_CC+:} false; then :
  3086. $as_echo_n "(cached) " >&6
  3087. else
  3088. if test -n "$CC"; then
  3089. ac_cv_prog_CC="$CC" # Let the user override the test.
  3090. else
  3091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3092. for as_dir in $PATH
  3093. do
  3094. IFS=$as_save_IFS
  3095. test -z "$as_dir" && as_dir=.
  3096. for ac_exec_ext in '' $ac_executable_extensions; do
  3097. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3098. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3100. break 2
  3101. fi
  3102. done
  3103. done
  3104. IFS=$as_save_IFS
  3105. fi
  3106. fi
  3107. CC=$ac_cv_prog_CC
  3108. if test -n "$CC"; then
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3110. $as_echo "$CC" >&6; }
  3111. else
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3113. $as_echo "no" >&6; }
  3114. fi
  3115. fi
  3116. if test -z "$ac_cv_prog_CC"; then
  3117. ac_ct_CC=$CC
  3118. # Extract the first word of "gcc", so it can be a program name with args.
  3119. set dummy gcc; ac_word=$2
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3121. $as_echo_n "checking for $ac_word... " >&6; }
  3122. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. if test -n "$ac_ct_CC"; then
  3126. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3127. else
  3128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3129. for as_dir in $PATH
  3130. do
  3131. IFS=$as_save_IFS
  3132. test -z "$as_dir" && as_dir=.
  3133. for ac_exec_ext in '' $ac_executable_extensions; do
  3134. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3135. ac_cv_prog_ac_ct_CC="gcc"
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3137. break 2
  3138. fi
  3139. done
  3140. done
  3141. IFS=$as_save_IFS
  3142. fi
  3143. fi
  3144. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3145. if test -n "$ac_ct_CC"; then
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3147. $as_echo "$ac_ct_CC" >&6; }
  3148. else
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3150. $as_echo "no" >&6; }
  3151. fi
  3152. if test "x$ac_ct_CC" = x; then
  3153. CC=""
  3154. else
  3155. case $cross_compiling:$ac_tool_warned in
  3156. yes:)
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3158. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3159. ac_tool_warned=yes ;;
  3160. esac
  3161. CC=$ac_ct_CC
  3162. fi
  3163. else
  3164. CC="$ac_cv_prog_CC"
  3165. fi
  3166. if test -z "$CC"; then
  3167. if test -n "$ac_tool_prefix"; then
  3168. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3169. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3171. $as_echo_n "checking for $ac_word... " >&6; }
  3172. if ${ac_cv_prog_CC+:} false; then :
  3173. $as_echo_n "(cached) " >&6
  3174. else
  3175. if test -n "$CC"; then
  3176. ac_cv_prog_CC="$CC" # Let the user override the test.
  3177. else
  3178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3179. for as_dir in $PATH
  3180. do
  3181. IFS=$as_save_IFS
  3182. test -z "$as_dir" && as_dir=.
  3183. for ac_exec_ext in '' $ac_executable_extensions; do
  3184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3185. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3187. break 2
  3188. fi
  3189. done
  3190. done
  3191. IFS=$as_save_IFS
  3192. fi
  3193. fi
  3194. CC=$ac_cv_prog_CC
  3195. if test -n "$CC"; then
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3197. $as_echo "$CC" >&6; }
  3198. else
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3200. $as_echo "no" >&6; }
  3201. fi
  3202. fi
  3203. fi
  3204. if test -z "$CC"; then
  3205. # Extract the first word of "cc", so it can be a program name with args.
  3206. set dummy cc; ac_word=$2
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3208. $as_echo_n "checking for $ac_word... " >&6; }
  3209. if ${ac_cv_prog_CC+:} false; then :
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. if test -n "$CC"; then
  3213. ac_cv_prog_CC="$CC" # Let the user override the test.
  3214. else
  3215. ac_prog_rejected=no
  3216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3217. for as_dir in $PATH
  3218. do
  3219. IFS=$as_save_IFS
  3220. test -z "$as_dir" && as_dir=.
  3221. for ac_exec_ext in '' $ac_executable_extensions; do
  3222. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3223. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3224. ac_prog_rejected=yes
  3225. continue
  3226. fi
  3227. ac_cv_prog_CC="cc"
  3228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3229. break 2
  3230. fi
  3231. done
  3232. done
  3233. IFS=$as_save_IFS
  3234. if test $ac_prog_rejected = yes; then
  3235. # We found a bogon in the path, so make sure we never use it.
  3236. set dummy $ac_cv_prog_CC
  3237. shift
  3238. if test $# != 0; then
  3239. # We chose a different compiler from the bogus one.
  3240. # However, it has the same basename, so the bogon will be chosen
  3241. # first if we set CC to just the basename; use the full file name.
  3242. shift
  3243. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3244. fi
  3245. fi
  3246. fi
  3247. fi
  3248. CC=$ac_cv_prog_CC
  3249. if test -n "$CC"; then
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3251. $as_echo "$CC" >&6; }
  3252. else
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3254. $as_echo "no" >&6; }
  3255. fi
  3256. fi
  3257. if test -z "$CC"; then
  3258. if test -n "$ac_tool_prefix"; then
  3259. for ac_prog in cl.exe
  3260. do
  3261. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3262. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3264. $as_echo_n "checking for $ac_word... " >&6; }
  3265. if ${ac_cv_prog_CC+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. if test -n "$CC"; then
  3269. ac_cv_prog_CC="$CC" # Let the user override the test.
  3270. else
  3271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3272. for as_dir in $PATH
  3273. do
  3274. IFS=$as_save_IFS
  3275. test -z "$as_dir" && as_dir=.
  3276. for ac_exec_ext in '' $ac_executable_extensions; do
  3277. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3278. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3280. break 2
  3281. fi
  3282. done
  3283. done
  3284. IFS=$as_save_IFS
  3285. fi
  3286. fi
  3287. CC=$ac_cv_prog_CC
  3288. if test -n "$CC"; then
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3290. $as_echo "$CC" >&6; }
  3291. else
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3293. $as_echo "no" >&6; }
  3294. fi
  3295. test -n "$CC" && break
  3296. done
  3297. fi
  3298. if test -z "$CC"; then
  3299. ac_ct_CC=$CC
  3300. for ac_prog in cl.exe
  3301. do
  3302. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3303. set dummy $ac_prog; ac_word=$2
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3305. $as_echo_n "checking for $ac_word... " >&6; }
  3306. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3307. $as_echo_n "(cached) " >&6
  3308. else
  3309. if test -n "$ac_ct_CC"; then
  3310. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3311. else
  3312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3313. for as_dir in $PATH
  3314. do
  3315. IFS=$as_save_IFS
  3316. test -z "$as_dir" && as_dir=.
  3317. for ac_exec_ext in '' $ac_executable_extensions; do
  3318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3319. ac_cv_prog_ac_ct_CC="$ac_prog"
  3320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3321. break 2
  3322. fi
  3323. done
  3324. done
  3325. IFS=$as_save_IFS
  3326. fi
  3327. fi
  3328. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3329. if test -n "$ac_ct_CC"; then
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3331. $as_echo "$ac_ct_CC" >&6; }
  3332. else
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3334. $as_echo "no" >&6; }
  3335. fi
  3336. test -n "$ac_ct_CC" && break
  3337. done
  3338. if test "x$ac_ct_CC" = x; then
  3339. CC=""
  3340. else
  3341. case $cross_compiling:$ac_tool_warned in
  3342. yes:)
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3345. ac_tool_warned=yes ;;
  3346. esac
  3347. CC=$ac_ct_CC
  3348. fi
  3349. fi
  3350. fi
  3351. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3352. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3353. as_fn_error $? "no acceptable C compiler found in \$PATH
  3354. See \`config.log' for more details" "$LINENO" 5; }
  3355. # Provide some information about the compiler.
  3356. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3357. set X $ac_compile
  3358. ac_compiler=$2
  3359. for ac_option in --version -v -V -qversion; do
  3360. { { ac_try="$ac_compiler $ac_option >&5"
  3361. case "(($ac_try" in
  3362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3363. *) ac_try_echo=$ac_try;;
  3364. esac
  3365. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3366. $as_echo "$ac_try_echo"; } >&5
  3367. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3368. ac_status=$?
  3369. if test -s conftest.err; then
  3370. sed '10a\
  3371. ... rest of stderr output deleted ...
  3372. 10q' conftest.err >conftest.er1
  3373. cat conftest.er1 >&5
  3374. fi
  3375. rm -f conftest.er1 conftest.err
  3376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3377. test $ac_status = 0; }
  3378. done
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. int
  3382. main ()
  3383. {
  3384. ;
  3385. return 0;
  3386. }
  3387. _ACEOF
  3388. ac_clean_files_save=$ac_clean_files
  3389. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3390. # Try to create an executable without -o first, disregard a.out.
  3391. # It will help us diagnose broken compilers, and finding out an intuition
  3392. # of exeext.
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3394. $as_echo_n "checking whether the C compiler works... " >&6; }
  3395. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3396. # The possible output files:
  3397. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3398. ac_rmfiles=
  3399. for ac_file in $ac_files
  3400. do
  3401. case $ac_file in
  3402. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3403. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3404. esac
  3405. done
  3406. rm -f $ac_rmfiles
  3407. if { { ac_try="$ac_link_default"
  3408. case "(($ac_try" in
  3409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3410. *) ac_try_echo=$ac_try;;
  3411. esac
  3412. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3413. $as_echo "$ac_try_echo"; } >&5
  3414. (eval "$ac_link_default") 2>&5
  3415. ac_status=$?
  3416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3417. test $ac_status = 0; }; then :
  3418. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3419. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3420. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3421. # so that the user can short-circuit this test for compilers unknown to
  3422. # Autoconf.
  3423. for ac_file in $ac_files ''
  3424. do
  3425. test -f "$ac_file" || continue
  3426. case $ac_file in
  3427. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3428. ;;
  3429. [ab].out )
  3430. # We found the default executable, but exeext='' is most
  3431. # certainly right.
  3432. break;;
  3433. *.* )
  3434. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3435. then :; else
  3436. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3437. fi
  3438. # We set ac_cv_exeext here because the later test for it is not
  3439. # safe: cross compilers may not add the suffix if given an `-o'
  3440. # argument, so we may need to know it at that point already.
  3441. # Even if this section looks crufty: it has the advantage of
  3442. # actually working.
  3443. break;;
  3444. * )
  3445. break;;
  3446. esac
  3447. done
  3448. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3449. else
  3450. ac_file=''
  3451. fi
  3452. if test -z "$ac_file"; then :
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3454. $as_echo "no" >&6; }
  3455. $as_echo "$as_me: failed program was:" >&5
  3456. sed 's/^/| /' conftest.$ac_ext >&5
  3457. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3458. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3459. as_fn_error 77 "C compiler cannot create executables
  3460. See \`config.log' for more details" "$LINENO" 5; }
  3461. else
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3463. $as_echo "yes" >&6; }
  3464. fi
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3466. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3468. $as_echo "$ac_file" >&6; }
  3469. ac_exeext=$ac_cv_exeext
  3470. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3471. ac_clean_files=$ac_clean_files_save
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3473. $as_echo_n "checking for suffix of executables... " >&6; }
  3474. if { { ac_try="$ac_link"
  3475. case "(($ac_try" in
  3476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3477. *) ac_try_echo=$ac_try;;
  3478. esac
  3479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3480. $as_echo "$ac_try_echo"; } >&5
  3481. (eval "$ac_link") 2>&5
  3482. ac_status=$?
  3483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3484. test $ac_status = 0; }; then :
  3485. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3486. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3487. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3488. # `rm'.
  3489. for ac_file in conftest.exe conftest conftest.*; do
  3490. test -f "$ac_file" || continue
  3491. case $ac_file in
  3492. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3493. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3494. break;;
  3495. * ) break;;
  3496. esac
  3497. done
  3498. else
  3499. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3500. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3501. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3502. See \`config.log' for more details" "$LINENO" 5; }
  3503. fi
  3504. rm -f conftest conftest$ac_cv_exeext
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3506. $as_echo "$ac_cv_exeext" >&6; }
  3507. rm -f conftest.$ac_ext
  3508. EXEEXT=$ac_cv_exeext
  3509. ac_exeext=$EXEEXT
  3510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3511. /* end confdefs.h. */
  3512. #include <stdio.h>
  3513. int
  3514. main ()
  3515. {
  3516. FILE *f = fopen ("conftest.out", "w");
  3517. return ferror (f) || fclose (f) != 0;
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. ac_clean_files="$ac_clean_files conftest.out"
  3523. # Check that the compiler produces executables we can run. If not, either
  3524. # the compiler is broken, or we cross compile.
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3526. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3527. if test "$cross_compiling" != yes; then
  3528. { { ac_try="$ac_link"
  3529. case "(($ac_try" in
  3530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3531. *) ac_try_echo=$ac_try;;
  3532. esac
  3533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3534. $as_echo "$ac_try_echo"; } >&5
  3535. (eval "$ac_link") 2>&5
  3536. ac_status=$?
  3537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3538. test $ac_status = 0; }
  3539. if { ac_try='./conftest$ac_cv_exeext'
  3540. { { case "(($ac_try" in
  3541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3542. *) ac_try_echo=$ac_try;;
  3543. esac
  3544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3545. $as_echo "$ac_try_echo"; } >&5
  3546. (eval "$ac_try") 2>&5
  3547. ac_status=$?
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3549. test $ac_status = 0; }; }; then
  3550. cross_compiling=no
  3551. else
  3552. if test "$cross_compiling" = maybe; then
  3553. cross_compiling=yes
  3554. else
  3555. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3556. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3557. as_fn_error $? "cannot run C compiled programs.
  3558. If you meant to cross compile, use \`--host'.
  3559. See \`config.log' for more details" "$LINENO" 5; }
  3560. fi
  3561. fi
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3564. $as_echo "$cross_compiling" >&6; }
  3565. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3566. ac_clean_files=$ac_clean_files_save
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3568. $as_echo_n "checking for suffix of object files... " >&6; }
  3569. if ${ac_cv_objext+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3573. /* end confdefs.h. */
  3574. int
  3575. main ()
  3576. {
  3577. ;
  3578. return 0;
  3579. }
  3580. _ACEOF
  3581. rm -f conftest.o conftest.obj
  3582. if { { ac_try="$ac_compile"
  3583. case "(($ac_try" in
  3584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3585. *) ac_try_echo=$ac_try;;
  3586. esac
  3587. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3588. $as_echo "$ac_try_echo"; } >&5
  3589. (eval "$ac_compile") 2>&5
  3590. ac_status=$?
  3591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3592. test $ac_status = 0; }; then :
  3593. for ac_file in conftest.o conftest.obj conftest.*; do
  3594. test -f "$ac_file" || continue;
  3595. case $ac_file in
  3596. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3597. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3598. break;;
  3599. esac
  3600. done
  3601. else
  3602. $as_echo "$as_me: failed program was:" >&5
  3603. sed 's/^/| /' conftest.$ac_ext >&5
  3604. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3605. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3606. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3607. See \`config.log' for more details" "$LINENO" 5; }
  3608. fi
  3609. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3610. fi
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3612. $as_echo "$ac_cv_objext" >&6; }
  3613. OBJEXT=$ac_cv_objext
  3614. ac_objext=$OBJEXT
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3616. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3617. if ${ac_cv_c_compiler_gnu+:} false; then :
  3618. $as_echo_n "(cached) " >&6
  3619. else
  3620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3621. /* end confdefs.h. */
  3622. int
  3623. main ()
  3624. {
  3625. #ifndef __GNUC__
  3626. choke me
  3627. #endif
  3628. ;
  3629. return 0;
  3630. }
  3631. _ACEOF
  3632. if ac_fn_c_try_compile "$LINENO"; then :
  3633. ac_compiler_gnu=yes
  3634. else
  3635. ac_compiler_gnu=no
  3636. fi
  3637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3638. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3639. fi
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3641. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3642. if test $ac_compiler_gnu = yes; then
  3643. GCC=yes
  3644. else
  3645. GCC=
  3646. fi
  3647. ac_test_CFLAGS=${CFLAGS+set}
  3648. ac_save_CFLAGS=$CFLAGS
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3650. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3651. if ${ac_cv_prog_cc_g+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. ac_save_c_werror_flag=$ac_c_werror_flag
  3655. ac_c_werror_flag=yes
  3656. ac_cv_prog_cc_g=no
  3657. CFLAGS="-g"
  3658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3659. /* end confdefs.h. */
  3660. int
  3661. main ()
  3662. {
  3663. ;
  3664. return 0;
  3665. }
  3666. _ACEOF
  3667. if ac_fn_c_try_compile "$LINENO"; then :
  3668. ac_cv_prog_cc_g=yes
  3669. else
  3670. CFLAGS=""
  3671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3672. /* end confdefs.h. */
  3673. int
  3674. main ()
  3675. {
  3676. ;
  3677. return 0;
  3678. }
  3679. _ACEOF
  3680. if ac_fn_c_try_compile "$LINENO"; then :
  3681. else
  3682. ac_c_werror_flag=$ac_save_c_werror_flag
  3683. CFLAGS="-g"
  3684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3685. /* end confdefs.h. */
  3686. int
  3687. main ()
  3688. {
  3689. ;
  3690. return 0;
  3691. }
  3692. _ACEOF
  3693. if ac_fn_c_try_compile "$LINENO"; then :
  3694. ac_cv_prog_cc_g=yes
  3695. fi
  3696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3697. fi
  3698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3699. fi
  3700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3701. ac_c_werror_flag=$ac_save_c_werror_flag
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3704. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3705. if test "$ac_test_CFLAGS" = set; then
  3706. CFLAGS=$ac_save_CFLAGS
  3707. elif test $ac_cv_prog_cc_g = yes; then
  3708. if test "$GCC" = yes; then
  3709. CFLAGS="-g -O2"
  3710. else
  3711. CFLAGS="-g"
  3712. fi
  3713. else
  3714. if test "$GCC" = yes; then
  3715. CFLAGS="-O2"
  3716. else
  3717. CFLAGS=
  3718. fi
  3719. fi
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3721. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3722. if ${ac_cv_prog_cc_c89+:} false; then :
  3723. $as_echo_n "(cached) " >&6
  3724. else
  3725. ac_cv_prog_cc_c89=no
  3726. ac_save_CC=$CC
  3727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3728. /* end confdefs.h. */
  3729. #include <stdarg.h>
  3730. #include <stdio.h>
  3731. struct stat;
  3732. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3733. struct buf { int x; };
  3734. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3735. static char *e (p, i)
  3736. char **p;
  3737. int i;
  3738. {
  3739. return p[i];
  3740. }
  3741. static char *f (char * (*g) (char **, int), char **p, ...)
  3742. {
  3743. char *s;
  3744. va_list v;
  3745. va_start (v,p);
  3746. s = g (p, va_arg (v,int));
  3747. va_end (v);
  3748. return s;
  3749. }
  3750. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3751. function prototypes and stuff, but not '\xHH' hex character constants.
  3752. These don't provoke an error unfortunately, instead are silently treated
  3753. as 'x'. The following induces an error, until -std is added to get
  3754. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3755. array size at least. It's necessary to write '\x00'==0 to get something
  3756. that's true only with -std. */
  3757. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3758. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3759. inside strings and character constants. */
  3760. #define FOO(x) 'x'
  3761. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3762. int test (int i, double x);
  3763. struct s1 {int (*f) (int a);};
  3764. struct s2 {int (*f) (double a);};
  3765. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3766. int argc;
  3767. char **argv;
  3768. int
  3769. main ()
  3770. {
  3771. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3777. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3778. do
  3779. CC="$ac_save_CC $ac_arg"
  3780. if ac_fn_c_try_compile "$LINENO"; then :
  3781. ac_cv_prog_cc_c89=$ac_arg
  3782. fi
  3783. rm -f core conftest.err conftest.$ac_objext
  3784. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3785. done
  3786. rm -f conftest.$ac_ext
  3787. CC=$ac_save_CC
  3788. fi
  3789. # AC_CACHE_VAL
  3790. case "x$ac_cv_prog_cc_c89" in
  3791. x)
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3793. $as_echo "none needed" >&6; } ;;
  3794. xno)
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3796. $as_echo "unsupported" >&6; } ;;
  3797. *)
  3798. CC="$CC $ac_cv_prog_cc_c89"
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3800. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3801. esac
  3802. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3803. fi
  3804. ac_ext=c
  3805. ac_cpp='$CPP $CPPFLAGS'
  3806. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3807. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3808. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3809. ac_ext=c
  3810. ac_cpp='$CPP $CPPFLAGS'
  3811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3815. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3816. if ${am_cv_prog_cc_c_o+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3820. /* end confdefs.h. */
  3821. int
  3822. main ()
  3823. {
  3824. ;
  3825. return 0;
  3826. }
  3827. _ACEOF
  3828. # Make sure it works both with $CC and with simple cc.
  3829. # Following AC_PROG_CC_C_O, we do the test twice because some
  3830. # compilers refuse to overwrite an existing .o file with -o,
  3831. # though they will create one.
  3832. am_cv_prog_cc_c_o=yes
  3833. for am_i in 1 2; do
  3834. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3835. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3836. ac_status=$?
  3837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3838. (exit $ac_status); } \
  3839. && test -f conftest2.$ac_objext; then
  3840. : OK
  3841. else
  3842. am_cv_prog_cc_c_o=no
  3843. break
  3844. fi
  3845. done
  3846. rm -f core conftest*
  3847. unset am_i
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3850. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3851. if test "$am_cv_prog_cc_c_o" != yes; then
  3852. # Losing compiler, so override with the script.
  3853. # FIXME: It is wrong to rewrite CC.
  3854. # But if we don't then we get into trouble of one sort or another.
  3855. # A longer-term fix would be to have automake use am__CC in this case,
  3856. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3857. CC="$am_aux_dir/compile $CC"
  3858. fi
  3859. ac_ext=c
  3860. ac_cpp='$CPP $CPPFLAGS'
  3861. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3862. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3863. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3864. DEPDIR="${am__leading_dot}deps"
  3865. ac_config_commands="$ac_config_commands depfiles"
  3866. am_make=${MAKE-make}
  3867. cat > confinc << 'END'
  3868. am__doit:
  3869. @echo this is the am__doit target
  3870. .PHONY: am__doit
  3871. END
  3872. # If we don't find an include directive, just comment out the code.
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3874. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3875. am__include="#"
  3876. am__quote=
  3877. _am_result=none
  3878. # First try GNU make style include.
  3879. echo "include confinc" > confmf
  3880. # Ignore all kinds of additional output from 'make'.
  3881. case `$am_make -s -f confmf 2> /dev/null` in #(
  3882. *the\ am__doit\ target*)
  3883. am__include=include
  3884. am__quote=
  3885. _am_result=GNU
  3886. ;;
  3887. esac
  3888. # Now try BSD make style include.
  3889. if test "$am__include" = "#"; then
  3890. echo '.include "confinc"' > confmf
  3891. case `$am_make -s -f confmf 2> /dev/null` in #(
  3892. *the\ am__doit\ target*)
  3893. am__include=.include
  3894. am__quote="\""
  3895. _am_result=BSD
  3896. ;;
  3897. esac
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3900. $as_echo "$_am_result" >&6; }
  3901. rm -f confinc confmf
  3902. # Check whether --enable-dependency-tracking was given.
  3903. if test "${enable_dependency_tracking+set}" = set; then :
  3904. enableval=$enable_dependency_tracking;
  3905. fi
  3906. if test "x$enable_dependency_tracking" != xno; then
  3907. am_depcomp="$ac_aux_dir/depcomp"
  3908. AMDEPBACKSLASH='\'
  3909. am__nodep='_no'
  3910. fi
  3911. if test "x$enable_dependency_tracking" != xno; then
  3912. AMDEP_TRUE=
  3913. AMDEP_FALSE='#'
  3914. else
  3915. AMDEP_TRUE='#'
  3916. AMDEP_FALSE=
  3917. fi
  3918. depcc="$CC" am_compiler_list=
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3920. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3921. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3922. $as_echo_n "(cached) " >&6
  3923. else
  3924. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3925. # We make a subdir and do the tests there. Otherwise we can end up
  3926. # making bogus files that we don't know about and never remove. For
  3927. # instance it was reported that on HP-UX the gcc test will end up
  3928. # making a dummy file named 'D' -- because '-MD' means "put the output
  3929. # in D".
  3930. rm -rf conftest.dir
  3931. mkdir conftest.dir
  3932. # Copy depcomp to subdir because otherwise we won't find it if we're
  3933. # using a relative directory.
  3934. cp "$am_depcomp" conftest.dir
  3935. cd conftest.dir
  3936. # We will build objects and dependencies in a subdirectory because
  3937. # it helps to detect inapplicable dependency modes. For instance
  3938. # both Tru64's cc and ICC support -MD to output dependencies as a
  3939. # side effect of compilation, but ICC will put the dependencies in
  3940. # the current directory while Tru64 will put them in the object
  3941. # directory.
  3942. mkdir sub
  3943. am_cv_CC_dependencies_compiler_type=none
  3944. if test "$am_compiler_list" = ""; then
  3945. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3946. fi
  3947. am__universal=false
  3948. case " $depcc " in #(
  3949. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3950. esac
  3951. for depmode in $am_compiler_list; do
  3952. # Setup a source with many dependencies, because some compilers
  3953. # like to wrap large dependency lists on column 80 (with \), and
  3954. # we should not choose a depcomp mode which is confused by this.
  3955. #
  3956. # We need to recreate these files for each test, as the compiler may
  3957. # overwrite some of them when testing with obscure command lines.
  3958. # This happens at least with the AIX C compiler.
  3959. : > sub/conftest.c
  3960. for i in 1 2 3 4 5 6; do
  3961. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3962. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3963. # Solaris 10 /bin/sh.
  3964. echo '/* dummy */' > sub/conftst$i.h
  3965. done
  3966. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3967. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3968. # mode. It turns out that the SunPro C++ compiler does not properly
  3969. # handle '-M -o', and we need to detect this. Also, some Intel
  3970. # versions had trouble with output in subdirs.
  3971. am__obj=sub/conftest.${OBJEXT-o}
  3972. am__minus_obj="-o $am__obj"
  3973. case $depmode in
  3974. gcc)
  3975. # This depmode causes a compiler race in universal mode.
  3976. test "$am__universal" = false || continue
  3977. ;;
  3978. nosideeffect)
  3979. # After this tag, mechanisms are not by side-effect, so they'll
  3980. # only be used when explicitly requested.
  3981. if test "x$enable_dependency_tracking" = xyes; then
  3982. continue
  3983. else
  3984. break
  3985. fi
  3986. ;;
  3987. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3988. # This compiler won't grok '-c -o', but also, the minuso test has
  3989. # not run yet. These depmodes are late enough in the game, and
  3990. # so weak that their functioning should not be impacted.
  3991. am__obj=conftest.${OBJEXT-o}
  3992. am__minus_obj=
  3993. ;;
  3994. none) break ;;
  3995. esac
  3996. if depmode=$depmode \
  3997. source=sub/conftest.c object=$am__obj \
  3998. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3999. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4000. >/dev/null 2>conftest.err &&
  4001. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4002. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4003. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4004. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4005. # icc doesn't choke on unknown options, it will just issue warnings
  4006. # or remarks (even with -Werror). So we grep stderr for any message
  4007. # that says an option was ignored or not supported.
  4008. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4009. # icc: Command line warning: ignoring option '-M'; no argument required
  4010. # The diagnosis changed in icc 8.0:
  4011. # icc: Command line remark: option '-MP' not supported
  4012. if (grep 'ignoring option' conftest.err ||
  4013. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4014. am_cv_CC_dependencies_compiler_type=$depmode
  4015. break
  4016. fi
  4017. fi
  4018. done
  4019. cd ..
  4020. rm -rf conftest.dir
  4021. else
  4022. am_cv_CC_dependencies_compiler_type=none
  4023. fi
  4024. fi
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4026. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4027. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4028. if
  4029. test "x$enable_dependency_tracking" != xno \
  4030. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4031. am__fastdepCC_TRUE=
  4032. am__fastdepCC_FALSE='#'
  4033. else
  4034. am__fastdepCC_TRUE='#'
  4035. am__fastdepCC_FALSE=
  4036. fi
  4037. ac_ext=c
  4038. ac_cpp='$CPP $CPPFLAGS'
  4039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4043. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4044. # On Suns, sometimes $CPP names a directory.
  4045. if test -n "$CPP" && test -d "$CPP"; then
  4046. CPP=
  4047. fi
  4048. if test -z "$CPP"; then
  4049. if ${ac_cv_prog_CPP+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. # Double quotes because CPP needs to be expanded
  4053. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4054. do
  4055. ac_preproc_ok=false
  4056. for ac_c_preproc_warn_flag in '' yes
  4057. do
  4058. # Use a header file that comes with gcc, so configuring glibc
  4059. # with a fresh cross-compiler works.
  4060. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4061. # <limits.h> exists even on freestanding compilers.
  4062. # On the NeXT, cc -E runs the code through the compiler's parser,
  4063. # not just through cpp. "Syntax error" is here to catch this case.
  4064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4065. /* end confdefs.h. */
  4066. #ifdef __STDC__
  4067. # include <limits.h>
  4068. #else
  4069. # include <assert.h>
  4070. #endif
  4071. Syntax error
  4072. _ACEOF
  4073. if ac_fn_c_try_cpp "$LINENO"; then :
  4074. else
  4075. # Broken: fails on valid input.
  4076. continue
  4077. fi
  4078. rm -f conftest.err conftest.i conftest.$ac_ext
  4079. # OK, works on sane cases. Now check whether nonexistent headers
  4080. # can be detected and how.
  4081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4082. /* end confdefs.h. */
  4083. #include <ac_nonexistent.h>
  4084. _ACEOF
  4085. if ac_fn_c_try_cpp "$LINENO"; then :
  4086. # Broken: success on invalid input.
  4087. continue
  4088. else
  4089. # Passes both tests.
  4090. ac_preproc_ok=:
  4091. break
  4092. fi
  4093. rm -f conftest.err conftest.i conftest.$ac_ext
  4094. done
  4095. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4096. rm -f conftest.i conftest.err conftest.$ac_ext
  4097. if $ac_preproc_ok; then :
  4098. break
  4099. fi
  4100. done
  4101. ac_cv_prog_CPP=$CPP
  4102. fi
  4103. CPP=$ac_cv_prog_CPP
  4104. else
  4105. ac_cv_prog_CPP=$CPP
  4106. fi
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4108. $as_echo "$CPP" >&6; }
  4109. ac_preproc_ok=false
  4110. for ac_c_preproc_warn_flag in '' yes
  4111. do
  4112. # Use a header file that comes with gcc, so configuring glibc
  4113. # with a fresh cross-compiler works.
  4114. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4115. # <limits.h> exists even on freestanding compilers.
  4116. # On the NeXT, cc -E runs the code through the compiler's parser,
  4117. # not just through cpp. "Syntax error" is here to catch this case.
  4118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4119. /* end confdefs.h. */
  4120. #ifdef __STDC__
  4121. # include <limits.h>
  4122. #else
  4123. # include <assert.h>
  4124. #endif
  4125. Syntax error
  4126. _ACEOF
  4127. if ac_fn_c_try_cpp "$LINENO"; then :
  4128. else
  4129. # Broken: fails on valid input.
  4130. continue
  4131. fi
  4132. rm -f conftest.err conftest.i conftest.$ac_ext
  4133. # OK, works on sane cases. Now check whether nonexistent headers
  4134. # can be detected and how.
  4135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4136. /* end confdefs.h. */
  4137. #include <ac_nonexistent.h>
  4138. _ACEOF
  4139. if ac_fn_c_try_cpp "$LINENO"; then :
  4140. # Broken: success on invalid input.
  4141. continue
  4142. else
  4143. # Passes both tests.
  4144. ac_preproc_ok=:
  4145. break
  4146. fi
  4147. rm -f conftest.err conftest.i conftest.$ac_ext
  4148. done
  4149. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4150. rm -f conftest.i conftest.err conftest.$ac_ext
  4151. if $ac_preproc_ok; then :
  4152. else
  4153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4155. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4156. See \`config.log' for more details" "$LINENO" 5; }
  4157. fi
  4158. ac_ext=c
  4159. ac_cpp='$CPP $CPPFLAGS'
  4160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4164. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4165. if ${ac_cv_path_GREP+:} false; then :
  4166. $as_echo_n "(cached) " >&6
  4167. else
  4168. if test -z "$GREP"; then
  4169. ac_path_GREP_found=false
  4170. # Loop through the user's path and test for each of PROGNAME-LIST
  4171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4172. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4173. do
  4174. IFS=$as_save_IFS
  4175. test -z "$as_dir" && as_dir=.
  4176. for ac_prog in grep ggrep; do
  4177. for ac_exec_ext in '' $ac_executable_extensions; do
  4178. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4179. as_fn_executable_p "$ac_path_GREP" || continue
  4180. # Check for GNU ac_path_GREP and select it if it is found.
  4181. # Check for GNU $ac_path_GREP
  4182. case `"$ac_path_GREP" --version 2>&1` in
  4183. *GNU*)
  4184. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4185. *)
  4186. ac_count=0
  4187. $as_echo_n 0123456789 >"conftest.in"
  4188. while :
  4189. do
  4190. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4191. mv "conftest.tmp" "conftest.in"
  4192. cp "conftest.in" "conftest.nl"
  4193. $as_echo 'GREP' >> "conftest.nl"
  4194. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4195. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4196. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4197. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4198. # Best one so far, save it but keep looking for a better one
  4199. ac_cv_path_GREP="$ac_path_GREP"
  4200. ac_path_GREP_max=$ac_count
  4201. fi
  4202. # 10*(2^10) chars as input seems more than enough
  4203. test $ac_count -gt 10 && break
  4204. done
  4205. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4206. esac
  4207. $ac_path_GREP_found && break 3
  4208. done
  4209. done
  4210. done
  4211. IFS=$as_save_IFS
  4212. if test -z "$ac_cv_path_GREP"; then
  4213. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4214. fi
  4215. else
  4216. ac_cv_path_GREP=$GREP
  4217. fi
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4220. $as_echo "$ac_cv_path_GREP" >&6; }
  4221. GREP="$ac_cv_path_GREP"
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4223. $as_echo_n "checking for egrep... " >&6; }
  4224. if ${ac_cv_path_EGREP+:} false; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4228. then ac_cv_path_EGREP="$GREP -E"
  4229. else
  4230. if test -z "$EGREP"; then
  4231. ac_path_EGREP_found=false
  4232. # Loop through the user's path and test for each of PROGNAME-LIST
  4233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4234. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4235. do
  4236. IFS=$as_save_IFS
  4237. test -z "$as_dir" && as_dir=.
  4238. for ac_prog in egrep; do
  4239. for ac_exec_ext in '' $ac_executable_extensions; do
  4240. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4241. as_fn_executable_p "$ac_path_EGREP" || continue
  4242. # Check for GNU ac_path_EGREP and select it if it is found.
  4243. # Check for GNU $ac_path_EGREP
  4244. case `"$ac_path_EGREP" --version 2>&1` in
  4245. *GNU*)
  4246. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4247. *)
  4248. ac_count=0
  4249. $as_echo_n 0123456789 >"conftest.in"
  4250. while :
  4251. do
  4252. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4253. mv "conftest.tmp" "conftest.in"
  4254. cp "conftest.in" "conftest.nl"
  4255. $as_echo 'EGREP' >> "conftest.nl"
  4256. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4257. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4258. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4259. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4260. # Best one so far, save it but keep looking for a better one
  4261. ac_cv_path_EGREP="$ac_path_EGREP"
  4262. ac_path_EGREP_max=$ac_count
  4263. fi
  4264. # 10*(2^10) chars as input seems more than enough
  4265. test $ac_count -gt 10 && break
  4266. done
  4267. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4268. esac
  4269. $ac_path_EGREP_found && break 3
  4270. done
  4271. done
  4272. done
  4273. IFS=$as_save_IFS
  4274. if test -z "$ac_cv_path_EGREP"; then
  4275. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4276. fi
  4277. else
  4278. ac_cv_path_EGREP=$EGREP
  4279. fi
  4280. fi
  4281. fi
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4283. $as_echo "$ac_cv_path_EGREP" >&6; }
  4284. EGREP="$ac_cv_path_EGREP"
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4286. $as_echo_n "checking for ANSI C header files... " >&6; }
  4287. if ${ac_cv_header_stdc+:} false; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4291. /* end confdefs.h. */
  4292. #include <stdlib.h>
  4293. #include <stdarg.h>
  4294. #include <string.h>
  4295. #include <float.h>
  4296. int
  4297. main ()
  4298. {
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. if ac_fn_c_try_compile "$LINENO"; then :
  4304. ac_cv_header_stdc=yes
  4305. else
  4306. ac_cv_header_stdc=no
  4307. fi
  4308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4309. if test $ac_cv_header_stdc = yes; then
  4310. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4312. /* end confdefs.h. */
  4313. #include <string.h>
  4314. _ACEOF
  4315. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4316. $EGREP "memchr" >/dev/null 2>&1; then :
  4317. else
  4318. ac_cv_header_stdc=no
  4319. fi
  4320. rm -f conftest*
  4321. fi
  4322. if test $ac_cv_header_stdc = yes; then
  4323. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4325. /* end confdefs.h. */
  4326. #include <stdlib.h>
  4327. _ACEOF
  4328. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4329. $EGREP "free" >/dev/null 2>&1; then :
  4330. else
  4331. ac_cv_header_stdc=no
  4332. fi
  4333. rm -f conftest*
  4334. fi
  4335. if test $ac_cv_header_stdc = yes; then
  4336. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4337. if test "$cross_compiling" = yes; then :
  4338. :
  4339. else
  4340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4341. /* end confdefs.h. */
  4342. #include <ctype.h>
  4343. #include <stdlib.h>
  4344. #if ((' ' & 0x0FF) == 0x020)
  4345. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4346. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4347. #else
  4348. # define ISLOWER(c) \
  4349. (('a' <= (c) && (c) <= 'i') \
  4350. || ('j' <= (c) && (c) <= 'r') \
  4351. || ('s' <= (c) && (c) <= 'z'))
  4352. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4353. #endif
  4354. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4355. int
  4356. main ()
  4357. {
  4358. int i;
  4359. for (i = 0; i < 256; i++)
  4360. if (XOR (islower (i), ISLOWER (i))
  4361. || toupper (i) != TOUPPER (i))
  4362. return 2;
  4363. return 0;
  4364. }
  4365. _ACEOF
  4366. if ac_fn_c_try_run "$LINENO"; then :
  4367. else
  4368. ac_cv_header_stdc=no
  4369. fi
  4370. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4371. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4372. fi
  4373. fi
  4374. fi
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4376. $as_echo "$ac_cv_header_stdc" >&6; }
  4377. if test $ac_cv_header_stdc = yes; then
  4378. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4379. fi
  4380. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4381. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4382. inttypes.h stdint.h unistd.h
  4383. do :
  4384. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4385. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4386. "
  4387. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4388. cat >>confdefs.h <<_ACEOF
  4389. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4390. _ACEOF
  4391. fi
  4392. done
  4393. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4394. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4395. MINIX=yes
  4396. else
  4397. MINIX=
  4398. fi
  4399. if test "$MINIX" = yes; then
  4400. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4401. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4402. $as_echo "#define _MINIX 1" >>confdefs.h
  4403. fi
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4405. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4406. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4407. $as_echo_n "(cached) " >&6
  4408. else
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. # define __EXTENSIONS__ 1
  4412. $ac_includes_default
  4413. int
  4414. main ()
  4415. {
  4416. ;
  4417. return 0;
  4418. }
  4419. _ACEOF
  4420. if ac_fn_c_try_compile "$LINENO"; then :
  4421. ac_cv_safe_to_define___extensions__=yes
  4422. else
  4423. ac_cv_safe_to_define___extensions__=no
  4424. fi
  4425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4426. fi
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4428. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4429. test $ac_cv_safe_to_define___extensions__ = yes &&
  4430. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4431. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4432. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4433. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4434. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4435. case `pwd` in
  4436. *\ * | *\ *)
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4438. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4439. esac
  4440. macro_version='2.2.7a'
  4441. macro_revision='1.3134'
  4442. ltmain="$ac_aux_dir/ltmain.sh"
  4443. # Backslashify metacharacters that are still active within
  4444. # double-quoted strings.
  4445. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4446. # Same as above, but do not quote variable references.
  4447. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4448. # Sed substitution to delay expansion of an escaped shell variable in a
  4449. # double_quote_subst'ed string.
  4450. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4451. # Sed substitution to delay expansion of an escaped single quote.
  4452. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4453. # Sed substitution to avoid accidental globbing in evaled expressions
  4454. no_glob_subst='s/\*/\\\*/g'
  4455. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4456. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4457. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4459. $as_echo_n "checking how to print strings... " >&6; }
  4460. # Test print first, because it will be a builtin if present.
  4461. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4462. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4463. ECHO='print -r --'
  4464. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4465. ECHO='printf %s\n'
  4466. else
  4467. # Use this function as a fallback that always works.
  4468. func_fallback_echo ()
  4469. {
  4470. eval 'cat <<_LTECHO_EOF
  4471. $1
  4472. _LTECHO_EOF'
  4473. }
  4474. ECHO='func_fallback_echo'
  4475. fi
  4476. # func_echo_all arg...
  4477. # Invoke $ECHO with all args, space-separated.
  4478. func_echo_all ()
  4479. {
  4480. $ECHO ""
  4481. }
  4482. case "$ECHO" in
  4483. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4484. $as_echo "printf" >&6; } ;;
  4485. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4486. $as_echo "print -r" >&6; } ;;
  4487. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4488. $as_echo "cat" >&6; } ;;
  4489. esac
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4491. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4492. if ${ac_cv_path_SED+:} false; then :
  4493. $as_echo_n "(cached) " >&6
  4494. else
  4495. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4496. for ac_i in 1 2 3 4 5 6 7; do
  4497. ac_script="$ac_script$as_nl$ac_script"
  4498. done
  4499. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4500. { ac_script=; unset ac_script;}
  4501. if test -z "$SED"; then
  4502. ac_path_SED_found=false
  4503. # Loop through the user's path and test for each of PROGNAME-LIST
  4504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4505. for as_dir in $PATH
  4506. do
  4507. IFS=$as_save_IFS
  4508. test -z "$as_dir" && as_dir=.
  4509. for ac_prog in sed gsed; do
  4510. for ac_exec_ext in '' $ac_executable_extensions; do
  4511. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4512. as_fn_executable_p "$ac_path_SED" || continue
  4513. # Check for GNU ac_path_SED and select it if it is found.
  4514. # Check for GNU $ac_path_SED
  4515. case `"$ac_path_SED" --version 2>&1` in
  4516. *GNU*)
  4517. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4518. *)
  4519. ac_count=0
  4520. $as_echo_n 0123456789 >"conftest.in"
  4521. while :
  4522. do
  4523. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4524. mv "conftest.tmp" "conftest.in"
  4525. cp "conftest.in" "conftest.nl"
  4526. $as_echo '' >> "conftest.nl"
  4527. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4528. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4529. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4530. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4531. # Best one so far, save it but keep looking for a better one
  4532. ac_cv_path_SED="$ac_path_SED"
  4533. ac_path_SED_max=$ac_count
  4534. fi
  4535. # 10*(2^10) chars as input seems more than enough
  4536. test $ac_count -gt 10 && break
  4537. done
  4538. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4539. esac
  4540. $ac_path_SED_found && break 3
  4541. done
  4542. done
  4543. done
  4544. IFS=$as_save_IFS
  4545. if test -z "$ac_cv_path_SED"; then
  4546. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4547. fi
  4548. else
  4549. ac_cv_path_SED=$SED
  4550. fi
  4551. fi
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4553. $as_echo "$ac_cv_path_SED" >&6; }
  4554. SED="$ac_cv_path_SED"
  4555. rm -f conftest.sed
  4556. test -z "$SED" && SED=sed
  4557. Xsed="$SED -e 1s/^X//"
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4559. $as_echo_n "checking for fgrep... " >&6; }
  4560. if ${ac_cv_path_FGREP+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4564. then ac_cv_path_FGREP="$GREP -F"
  4565. else
  4566. if test -z "$FGREP"; then
  4567. ac_path_FGREP_found=false
  4568. # Loop through the user's path and test for each of PROGNAME-LIST
  4569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4570. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4571. do
  4572. IFS=$as_save_IFS
  4573. test -z "$as_dir" && as_dir=.
  4574. for ac_prog in fgrep; do
  4575. for ac_exec_ext in '' $ac_executable_extensions; do
  4576. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4577. as_fn_executable_p "$ac_path_FGREP" || continue
  4578. # Check for GNU ac_path_FGREP and select it if it is found.
  4579. # Check for GNU $ac_path_FGREP
  4580. case `"$ac_path_FGREP" --version 2>&1` in
  4581. *GNU*)
  4582. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4583. *)
  4584. ac_count=0
  4585. $as_echo_n 0123456789 >"conftest.in"
  4586. while :
  4587. do
  4588. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4589. mv "conftest.tmp" "conftest.in"
  4590. cp "conftest.in" "conftest.nl"
  4591. $as_echo 'FGREP' >> "conftest.nl"
  4592. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4593. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4594. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4595. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4596. # Best one so far, save it but keep looking for a better one
  4597. ac_cv_path_FGREP="$ac_path_FGREP"
  4598. ac_path_FGREP_max=$ac_count
  4599. fi
  4600. # 10*(2^10) chars as input seems more than enough
  4601. test $ac_count -gt 10 && break
  4602. done
  4603. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4604. esac
  4605. $ac_path_FGREP_found && break 3
  4606. done
  4607. done
  4608. done
  4609. IFS=$as_save_IFS
  4610. if test -z "$ac_cv_path_FGREP"; then
  4611. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4612. fi
  4613. else
  4614. ac_cv_path_FGREP=$FGREP
  4615. fi
  4616. fi
  4617. fi
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4619. $as_echo "$ac_cv_path_FGREP" >&6; }
  4620. FGREP="$ac_cv_path_FGREP"
  4621. test -z "$GREP" && GREP=grep
  4622. # Check whether --with-gnu-ld was given.
  4623. if test "${with_gnu_ld+set}" = set; then :
  4624. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4625. else
  4626. with_gnu_ld=no
  4627. fi
  4628. ac_prog=ld
  4629. if test "$GCC" = yes; then
  4630. # Check if gcc -print-prog-name=ld gives a path.
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4632. $as_echo_n "checking for ld used by $CC... " >&6; }
  4633. case $host in
  4634. *-*-mingw*)
  4635. # gcc leaves a trailing carriage return which upsets mingw
  4636. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4637. *)
  4638. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4639. esac
  4640. case $ac_prog in
  4641. # Accept absolute paths.
  4642. [\\/]* | ?:[\\/]*)
  4643. re_direlt='/[^/][^/]*/\.\./'
  4644. # Canonicalize the pathname of ld
  4645. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4646. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4647. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4648. done
  4649. test -z "$LD" && LD="$ac_prog"
  4650. ;;
  4651. "")
  4652. # If it fails, then pretend we aren't using GCC.
  4653. ac_prog=ld
  4654. ;;
  4655. *)
  4656. # If it is relative, then search for the first ld in PATH.
  4657. with_gnu_ld=unknown
  4658. ;;
  4659. esac
  4660. elif test "$with_gnu_ld" = yes; then
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4662. $as_echo_n "checking for GNU ld... " >&6; }
  4663. else
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4665. $as_echo_n "checking for non-GNU ld... " >&6; }
  4666. fi
  4667. if ${lt_cv_path_LD+:} false; then :
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. if test -z "$LD"; then
  4671. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4672. for ac_dir in $PATH; do
  4673. IFS="$lt_save_ifs"
  4674. test -z "$ac_dir" && ac_dir=.
  4675. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4676. lt_cv_path_LD="$ac_dir/$ac_prog"
  4677. # Check to see if the program is GNU ld. I'd rather use --version,
  4678. # but apparently some variants of GNU ld only accept -v.
  4679. # Break only if it was the GNU/non-GNU ld that we prefer.
  4680. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4681. *GNU* | *'with BFD'*)
  4682. test "$with_gnu_ld" != no && break
  4683. ;;
  4684. *)
  4685. test "$with_gnu_ld" != yes && break
  4686. ;;
  4687. esac
  4688. fi
  4689. done
  4690. IFS="$lt_save_ifs"
  4691. else
  4692. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4693. fi
  4694. fi
  4695. LD="$lt_cv_path_LD"
  4696. if test -n "$LD"; then
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4698. $as_echo "$LD" >&6; }
  4699. else
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4701. $as_echo "no" >&6; }
  4702. fi
  4703. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4705. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4706. if ${lt_cv_prog_gnu_ld+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4710. case `$LD -v 2>&1 </dev/null` in
  4711. *GNU* | *'with BFD'*)
  4712. lt_cv_prog_gnu_ld=yes
  4713. ;;
  4714. *)
  4715. lt_cv_prog_gnu_ld=no
  4716. ;;
  4717. esac
  4718. fi
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4720. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4721. with_gnu_ld=$lt_cv_prog_gnu_ld
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4723. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4724. if ${lt_cv_path_NM+:} false; then :
  4725. $as_echo_n "(cached) " >&6
  4726. else
  4727. if test -n "$NM"; then
  4728. # Let the user override the nm to test.
  4729. lt_nm_to_check="$NM"
  4730. else
  4731. lt_nm_to_check="${ac_tool_prefix}nm"
  4732. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4733. lt_nm_to_check="$lt_nm_to_check nm"
  4734. fi
  4735. fi
  4736. for lt_tmp_nm in "$lt_nm_to_check"; do
  4737. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4738. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4739. IFS="$lt_save_ifs"
  4740. test -z "$ac_dir" && ac_dir=.
  4741. # Strip out any user-provided options from the nm to test twice,
  4742. # the first time to test to see if nm (rather than its options) has
  4743. # an explicit path, the second time to yield a file which can be
  4744. # nm'ed itself.
  4745. tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
  4746. case "$tmp_nm_path" in
  4747. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  4748. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  4749. esac
  4750. tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
  4751. if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
  4752. # Check to see if the nm accepts a BSD-compat flag.
  4753. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4754. # nm: unknown option "B" ignored
  4755. case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  4756. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  4757. break
  4758. ;;
  4759. *)
  4760. case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  4761. *$tmp_nm*)
  4762. lt_cv_path_NM="$tmp_nm -p"
  4763. break
  4764. ;;
  4765. *)
  4766. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4767. continue # so that we can try to find one that supports BSD flags
  4768. ;;
  4769. esac
  4770. ;;
  4771. esac
  4772. fi
  4773. done
  4774. IFS="$lt_save_ifs"
  4775. done
  4776. : ${lt_cv_path_NM=no}
  4777. fi
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4779. $as_echo "$lt_cv_path_NM" >&6; }
  4780. if test "$lt_cv_path_NM" != "no"; then
  4781. NM="$lt_cv_path_NM"
  4782. else
  4783. # Didn't find any BSD compatible name lister, look for dumpbin.
  4784. if test -n "$DUMPBIN"; then :
  4785. # Let the user override the test.
  4786. else
  4787. if test -n "$ac_tool_prefix"; then
  4788. for ac_prog in dumpbin "link -dump"
  4789. do
  4790. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4791. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4793. $as_echo_n "checking for $ac_word... " >&6; }
  4794. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4795. $as_echo_n "(cached) " >&6
  4796. else
  4797. if test -n "$DUMPBIN"; then
  4798. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4799. else
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4807. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4809. break 2
  4810. fi
  4811. done
  4812. done
  4813. IFS=$as_save_IFS
  4814. fi
  4815. fi
  4816. DUMPBIN=$ac_cv_prog_DUMPBIN
  4817. if test -n "$DUMPBIN"; then
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4819. $as_echo "$DUMPBIN" >&6; }
  4820. else
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4822. $as_echo "no" >&6; }
  4823. fi
  4824. test -n "$DUMPBIN" && break
  4825. done
  4826. fi
  4827. if test -z "$DUMPBIN"; then
  4828. ac_ct_DUMPBIN=$DUMPBIN
  4829. for ac_prog in dumpbin "link -dump"
  4830. do
  4831. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4832. set dummy $ac_prog; ac_word=$2
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4834. $as_echo_n "checking for $ac_word... " >&6; }
  4835. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. if test -n "$ac_ct_DUMPBIN"; then
  4839. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4840. else
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4848. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. fi
  4856. fi
  4857. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4858. if test -n "$ac_ct_DUMPBIN"; then
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4860. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4861. else
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4863. $as_echo "no" >&6; }
  4864. fi
  4865. test -n "$ac_ct_DUMPBIN" && break
  4866. done
  4867. if test "x$ac_ct_DUMPBIN" = x; then
  4868. DUMPBIN=":"
  4869. else
  4870. case $cross_compiling:$ac_tool_warned in
  4871. yes:)
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4874. ac_tool_warned=yes ;;
  4875. esac
  4876. DUMPBIN=$ac_ct_DUMPBIN
  4877. fi
  4878. fi
  4879. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4880. *COFF*)
  4881. DUMPBIN="$DUMPBIN -symbols"
  4882. ;;
  4883. *)
  4884. DUMPBIN=:
  4885. ;;
  4886. esac
  4887. fi
  4888. if test "$DUMPBIN" != ":"; then
  4889. NM="$DUMPBIN"
  4890. fi
  4891. fi
  4892. test -z "$NM" && NM=nm
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4894. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4895. if ${lt_cv_nm_interface+:} false; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. lt_cv_nm_interface="BSD nm"
  4899. echo "int some_variable = 0;" > conftest.$ac_ext
  4900. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4901. (eval "$ac_compile" 2>conftest.err)
  4902. cat conftest.err >&5
  4903. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4904. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4905. cat conftest.err >&5
  4906. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4907. cat conftest.out >&5
  4908. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4909. lt_cv_nm_interface="MS dumpbin"
  4910. fi
  4911. rm -f conftest*
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4914. $as_echo "$lt_cv_nm_interface" >&6; }
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4916. $as_echo_n "checking whether ln -s works... " >&6; }
  4917. LN_S=$as_ln_s
  4918. if test "$LN_S" = "ln -s"; then
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4920. $as_echo "yes" >&6; }
  4921. else
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4923. $as_echo "no, using $LN_S" >&6; }
  4924. fi
  4925. # find the maximum length of command line arguments
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4927. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4928. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. i=0
  4932. teststring="ABCD"
  4933. case $build_os in
  4934. msdosdjgpp*)
  4935. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4936. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4937. # during glob expansion). Even if it were fixed, the result of this
  4938. # check would be larger than it should be.
  4939. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4940. ;;
  4941. gnu*)
  4942. # Under GNU Hurd, this test is not required because there is
  4943. # no limit to the length of command line arguments.
  4944. # Libtool will interpret -1 as no limit whatsoever
  4945. lt_cv_sys_max_cmd_len=-1;
  4946. ;;
  4947. cygwin* | mingw* | cegcc*)
  4948. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4949. # about 5 minutes as the teststring grows exponentially.
  4950. # Worse, since 9x/ME are not pre-emptively multitasking,
  4951. # you end up with a "frozen" computer, even though with patience
  4952. # the test eventually succeeds (with a max line length of 256k).
  4953. # Instead, let's just punt: use the minimum linelength reported by
  4954. # all of the supported platforms: 8192 (on NT/2K/XP).
  4955. lt_cv_sys_max_cmd_len=8192;
  4956. ;;
  4957. mint*)
  4958. # On MiNT this can take a long time and run out of memory.
  4959. lt_cv_sys_max_cmd_len=8192;
  4960. ;;
  4961. amigaos*)
  4962. # On AmigaOS with pdksh, this test takes hours, literally.
  4963. # So we just punt and use a minimum line length of 8192.
  4964. lt_cv_sys_max_cmd_len=8192;
  4965. ;;
  4966. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4967. # This has been around since 386BSD, at least. Likely further.
  4968. if test -x /sbin/sysctl; then
  4969. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4970. elif test -x /usr/sbin/sysctl; then
  4971. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4972. else
  4973. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4974. fi
  4975. # And add a safety zone
  4976. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4977. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4978. ;;
  4979. interix*)
  4980. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4981. lt_cv_sys_max_cmd_len=196608
  4982. ;;
  4983. osf*)
  4984. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4985. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4986. # nice to cause kernel panics so lets avoid the loop below.
  4987. # First set a reasonable default.
  4988. lt_cv_sys_max_cmd_len=16384
  4989. #
  4990. if test -x /sbin/sysconfig; then
  4991. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4992. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4993. esac
  4994. fi
  4995. ;;
  4996. sco3.2v5*)
  4997. lt_cv_sys_max_cmd_len=102400
  4998. ;;
  4999. sysv5* | sco5v6* | sysv4.2uw2*)
  5000. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5001. if test -n "$kargmax"; then
  5002. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5003. else
  5004. lt_cv_sys_max_cmd_len=32768
  5005. fi
  5006. ;;
  5007. *)
  5008. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5009. if test -n "$lt_cv_sys_max_cmd_len"; then
  5010. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5011. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5012. else
  5013. # Make teststring a little bigger before we do anything with it.
  5014. # a 1K string should be a reasonable start.
  5015. for i in 1 2 3 4 5 6 7 8 ; do
  5016. teststring=$teststring$teststring
  5017. done
  5018. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5019. # If test is not a shell built-in, we'll probably end up computing a
  5020. # maximum length that is only half of the actual maximum length, but
  5021. # we can't tell.
  5022. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5023. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5024. test $i != 17 # 1/2 MB should be enough
  5025. do
  5026. i=`expr $i + 1`
  5027. teststring=$teststring$teststring
  5028. done
  5029. # Only check the string length outside the loop.
  5030. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5031. teststring=
  5032. # Add a significant safety factor because C++ compilers can tack on
  5033. # massive amounts of additional arguments before passing them to the
  5034. # linker. It appears as though 1/2 is a usable value.
  5035. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5036. fi
  5037. ;;
  5038. esac
  5039. fi
  5040. if test -n $lt_cv_sys_max_cmd_len ; then
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5042. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5043. else
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5045. $as_echo "none" >&6; }
  5046. fi
  5047. max_cmd_len=$lt_cv_sys_max_cmd_len
  5048. : ${CP="cp -f"}
  5049. : ${MV="mv -f"}
  5050. : ${RM="rm -f"}
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5052. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5053. # Try some XSI features
  5054. xsi_shell=no
  5055. ( _lt_dummy="a/b/c"
  5056. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5057. = c,a/b,, \
  5058. && eval 'test $(( 1 + 1 )) -eq 2 \
  5059. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5060. && xsi_shell=yes
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5062. $as_echo "$xsi_shell" >&6; }
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5064. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5065. lt_shell_append=no
  5066. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5067. >/dev/null 2>&1 \
  5068. && lt_shell_append=yes
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5070. $as_echo "$lt_shell_append" >&6; }
  5071. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5072. lt_unset=unset
  5073. else
  5074. lt_unset=false
  5075. fi
  5076. # test EBCDIC or ASCII
  5077. case `echo X|tr X '\101'` in
  5078. A) # ASCII based system
  5079. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5080. lt_SP2NL='tr \040 \012'
  5081. lt_NL2SP='tr \015\012 \040\040'
  5082. ;;
  5083. *) # EBCDIC based system
  5084. lt_SP2NL='tr \100 \n'
  5085. lt_NL2SP='tr \r\n \100\100'
  5086. ;;
  5087. esac
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5089. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5090. if ${lt_cv_ld_reload_flag+:} false; then :
  5091. $as_echo_n "(cached) " >&6
  5092. else
  5093. lt_cv_ld_reload_flag='-r'
  5094. fi
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5096. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5097. reload_flag=$lt_cv_ld_reload_flag
  5098. case $reload_flag in
  5099. "" | " "*) ;;
  5100. *) reload_flag=" $reload_flag" ;;
  5101. esac
  5102. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5103. case $host_os in
  5104. darwin*)
  5105. if test "$GCC" = yes; then
  5106. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5107. else
  5108. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5109. fi
  5110. ;;
  5111. esac
  5112. if test -n "$ac_tool_prefix"; then
  5113. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5114. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5116. $as_echo_n "checking for $ac_word... " >&6; }
  5117. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5118. $as_echo_n "(cached) " >&6
  5119. else
  5120. if test -n "$OBJDUMP"; then
  5121. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5122. else
  5123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5124. for as_dir in $PATH
  5125. do
  5126. IFS=$as_save_IFS
  5127. test -z "$as_dir" && as_dir=.
  5128. for ac_exec_ext in '' $ac_executable_extensions; do
  5129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5130. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5132. break 2
  5133. fi
  5134. done
  5135. done
  5136. IFS=$as_save_IFS
  5137. fi
  5138. fi
  5139. OBJDUMP=$ac_cv_prog_OBJDUMP
  5140. if test -n "$OBJDUMP"; then
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5142. $as_echo "$OBJDUMP" >&6; }
  5143. else
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5145. $as_echo "no" >&6; }
  5146. fi
  5147. fi
  5148. if test -z "$ac_cv_prog_OBJDUMP"; then
  5149. ac_ct_OBJDUMP=$OBJDUMP
  5150. # Extract the first word of "objdump", so it can be a program name with args.
  5151. set dummy objdump; ac_word=$2
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5153. $as_echo_n "checking for $ac_word... " >&6; }
  5154. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5155. $as_echo_n "(cached) " >&6
  5156. else
  5157. if test -n "$ac_ct_OBJDUMP"; then
  5158. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5159. else
  5160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5161. for as_dir in $PATH
  5162. do
  5163. IFS=$as_save_IFS
  5164. test -z "$as_dir" && as_dir=.
  5165. for ac_exec_ext in '' $ac_executable_extensions; do
  5166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5167. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5169. break 2
  5170. fi
  5171. done
  5172. done
  5173. IFS=$as_save_IFS
  5174. fi
  5175. fi
  5176. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5177. if test -n "$ac_ct_OBJDUMP"; then
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5179. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5180. else
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5182. $as_echo "no" >&6; }
  5183. fi
  5184. if test "x$ac_ct_OBJDUMP" = x; then
  5185. OBJDUMP="false"
  5186. else
  5187. case $cross_compiling:$ac_tool_warned in
  5188. yes:)
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5191. ac_tool_warned=yes ;;
  5192. esac
  5193. OBJDUMP=$ac_ct_OBJDUMP
  5194. fi
  5195. else
  5196. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5197. fi
  5198. test -z "$OBJDUMP" && OBJDUMP=objdump
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5200. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5201. if ${lt_cv_deplibs_check_method+:} false; then :
  5202. $as_echo_n "(cached) " >&6
  5203. else
  5204. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5205. lt_cv_file_magic_test_file=
  5206. lt_cv_deplibs_check_method='unknown'
  5207. # Need to set the preceding variable on all platforms that support
  5208. # interlibrary dependencies.
  5209. # 'none' -- dependencies not supported.
  5210. # `unknown' -- same as none, but documents that we really don't know.
  5211. # 'pass_all' -- all dependencies passed with no checks.
  5212. # 'test_compile' -- check by making test program.
  5213. # 'file_magic [[regex]]' -- check by looking for files in library path
  5214. # which responds to the $file_magic_cmd with a given extended regex.
  5215. # If you have `file' or equivalent on your system and you're not sure
  5216. # whether `pass_all' will *always* work, you probably want this one.
  5217. case $host_os in
  5218. aix[4-9]*)
  5219. lt_cv_deplibs_check_method=pass_all
  5220. ;;
  5221. beos*)
  5222. lt_cv_deplibs_check_method=pass_all
  5223. ;;
  5224. bsdi[45]*)
  5225. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5226. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5227. lt_cv_file_magic_test_file=/shlib/libc.so
  5228. ;;
  5229. cygwin*)
  5230. # func_win32_libid is a shell function defined in ltmain.sh
  5231. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5232. lt_cv_file_magic_cmd='func_win32_libid'
  5233. ;;
  5234. mingw* | pw32*)
  5235. # Base MSYS/MinGW do not provide the 'file' command needed by
  5236. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5237. # unless we find 'file', for example because we are cross-compiling.
  5238. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5239. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5240. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5241. lt_cv_file_magic_cmd='func_win32_libid'
  5242. else
  5243. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5244. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5245. fi
  5246. ;;
  5247. cegcc*)
  5248. # use the weaker test based on 'objdump'. See mingw*.
  5249. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5250. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5251. ;;
  5252. darwin* | rhapsody*)
  5253. lt_cv_deplibs_check_method=pass_all
  5254. ;;
  5255. freebsd* | dragonfly*)
  5256. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5257. case $host_cpu in
  5258. i*86 )
  5259. # Not sure whether the presence of OpenBSD here was a mistake.
  5260. # Let's accept both of them until this is cleared up.
  5261. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5262. lt_cv_file_magic_cmd=/usr/bin/file
  5263. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5264. ;;
  5265. esac
  5266. else
  5267. lt_cv_deplibs_check_method=pass_all
  5268. fi
  5269. ;;
  5270. gnu*)
  5271. lt_cv_deplibs_check_method=pass_all
  5272. ;;
  5273. haiku*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. hpux10.20* | hpux11*)
  5277. lt_cv_file_magic_cmd=/usr/bin/file
  5278. case $host_cpu in
  5279. ia64*)
  5280. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5281. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5282. ;;
  5283. hppa*64*)
  5284. 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]'
  5285. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5286. ;;
  5287. *)
  5288. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5289. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5290. ;;
  5291. esac
  5292. ;;
  5293. interix[3-9]*)
  5294. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5295. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5296. ;;
  5297. irix5* | irix6* | nonstopux*)
  5298. case $LD in
  5299. *-32|*"-32 ") libmagic=32-bit;;
  5300. *-n32|*"-n32 ") libmagic=N32;;
  5301. *-64|*"-64 ") libmagic=64-bit;;
  5302. *) libmagic=never-match;;
  5303. esac
  5304. lt_cv_deplibs_check_method=pass_all
  5305. ;;
  5306. # This must be Linux ELF.
  5307. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. netbsd*)
  5311. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5313. else
  5314. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5315. fi
  5316. ;;
  5317. newos6*)
  5318. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5319. lt_cv_file_magic_cmd=/usr/bin/file
  5320. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5321. ;;
  5322. *nto* | *qnx*)
  5323. lt_cv_deplibs_check_method=pass_all
  5324. ;;
  5325. openbsd*)
  5326. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5328. else
  5329. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5330. fi
  5331. ;;
  5332. osf3* | osf4* | osf5*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. rdos*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. solaris*)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. sysv4 | sysv4.3*)
  5345. case $host_vendor in
  5346. motorola)
  5347. 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]'
  5348. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5349. ;;
  5350. ncr)
  5351. lt_cv_deplibs_check_method=pass_all
  5352. ;;
  5353. sequent)
  5354. lt_cv_file_magic_cmd='/bin/file'
  5355. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5356. ;;
  5357. sni)
  5358. lt_cv_file_magic_cmd='/bin/file'
  5359. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5360. lt_cv_file_magic_test_file=/lib/libc.so
  5361. ;;
  5362. siemens)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. pc)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. esac
  5369. ;;
  5370. tpf*)
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. esac
  5374. fi
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5376. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5377. file_magic_cmd=$lt_cv_file_magic_cmd
  5378. deplibs_check_method=$lt_cv_deplibs_check_method
  5379. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5380. plugin_option=
  5381. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  5382. for plugin in $plugin_names; do
  5383. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  5384. if test x$plugin_so = x$plugin; then
  5385. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  5386. fi
  5387. if test x$plugin_so != x$plugin; then
  5388. plugin_option="--plugin $plugin_so"
  5389. break
  5390. fi
  5391. done
  5392. if test -n "$ac_tool_prefix"; then
  5393. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5394. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5396. $as_echo_n "checking for $ac_word... " >&6; }
  5397. if ${ac_cv_prog_AR+:} false; then :
  5398. $as_echo_n "(cached) " >&6
  5399. else
  5400. if test -n "$AR"; then
  5401. ac_cv_prog_AR="$AR" # Let the user override the test.
  5402. else
  5403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5404. for as_dir in $PATH
  5405. do
  5406. IFS=$as_save_IFS
  5407. test -z "$as_dir" && as_dir=.
  5408. for ac_exec_ext in '' $ac_executable_extensions; do
  5409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5410. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5412. break 2
  5413. fi
  5414. done
  5415. done
  5416. IFS=$as_save_IFS
  5417. fi
  5418. fi
  5419. AR=$ac_cv_prog_AR
  5420. if test -n "$AR"; then
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5422. $as_echo "$AR" >&6; }
  5423. else
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5425. $as_echo "no" >&6; }
  5426. fi
  5427. fi
  5428. if test -z "$ac_cv_prog_AR"; then
  5429. ac_ct_AR=$AR
  5430. # Extract the first word of "ar", so it can be a program name with args.
  5431. set dummy ar; ac_word=$2
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5433. $as_echo_n "checking for $ac_word... " >&6; }
  5434. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. if test -n "$ac_ct_AR"; then
  5438. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5439. else
  5440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5441. for as_dir in $PATH
  5442. do
  5443. IFS=$as_save_IFS
  5444. test -z "$as_dir" && as_dir=.
  5445. for ac_exec_ext in '' $ac_executable_extensions; do
  5446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5447. ac_cv_prog_ac_ct_AR="ar"
  5448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5449. break 2
  5450. fi
  5451. done
  5452. done
  5453. IFS=$as_save_IFS
  5454. fi
  5455. fi
  5456. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5457. if test -n "$ac_ct_AR"; then
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5459. $as_echo "$ac_ct_AR" >&6; }
  5460. else
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5462. $as_echo "no" >&6; }
  5463. fi
  5464. if test "x$ac_ct_AR" = x; then
  5465. AR="false"
  5466. else
  5467. case $cross_compiling:$ac_tool_warned in
  5468. yes:)
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5471. ac_tool_warned=yes ;;
  5472. esac
  5473. AR=$ac_ct_AR
  5474. fi
  5475. else
  5476. AR="$ac_cv_prog_AR"
  5477. fi
  5478. test -z "$AR" && AR=ar
  5479. if test -n "$plugin_option"; then
  5480. if $AR --help 2>&1 | grep -q "\--plugin"; then
  5481. touch conftest.c
  5482. $AR $plugin_option rc conftest.a conftest.c
  5483. if test "$?" != 0; then
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  5485. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  5486. else
  5487. AR="$AR $plugin_option"
  5488. fi
  5489. rm -f conftest.*
  5490. fi
  5491. fi
  5492. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5493. if test -n "$ac_tool_prefix"; then
  5494. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5495. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. $as_echo_n "checking for $ac_word... " >&6; }
  5498. if ${ac_cv_prog_STRIP+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if test -n "$STRIP"; then
  5502. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5511. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. IFS=$as_save_IFS
  5518. fi
  5519. fi
  5520. STRIP=$ac_cv_prog_STRIP
  5521. if test -n "$STRIP"; then
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5523. $as_echo "$STRIP" >&6; }
  5524. else
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. fi
  5528. fi
  5529. if test -z "$ac_cv_prog_STRIP"; then
  5530. ac_ct_STRIP=$STRIP
  5531. # Extract the first word of "strip", so it can be a program name with args.
  5532. set dummy strip; ac_word=$2
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5534. $as_echo_n "checking for $ac_word... " >&6; }
  5535. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. if test -n "$ac_ct_STRIP"; then
  5539. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5540. else
  5541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5542. for as_dir in $PATH
  5543. do
  5544. IFS=$as_save_IFS
  5545. test -z "$as_dir" && as_dir=.
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_ac_ct_STRIP="strip"
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5558. if test -n "$ac_ct_STRIP"; then
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5560. $as_echo "$ac_ct_STRIP" >&6; }
  5561. else
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. $as_echo "no" >&6; }
  5564. fi
  5565. if test "x$ac_ct_STRIP" = x; then
  5566. STRIP=":"
  5567. else
  5568. case $cross_compiling:$ac_tool_warned in
  5569. yes:)
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5572. ac_tool_warned=yes ;;
  5573. esac
  5574. STRIP=$ac_ct_STRIP
  5575. fi
  5576. else
  5577. STRIP="$ac_cv_prog_STRIP"
  5578. fi
  5579. test -z "$STRIP" && STRIP=:
  5580. if test -n "$ac_tool_prefix"; then
  5581. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5582. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5584. $as_echo_n "checking for $ac_word... " >&6; }
  5585. if ${ac_cv_prog_RANLIB+:} false; then :
  5586. $as_echo_n "(cached) " >&6
  5587. else
  5588. if test -n "$RANLIB"; then
  5589. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5590. else
  5591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5592. for as_dir in $PATH
  5593. do
  5594. IFS=$as_save_IFS
  5595. test -z "$as_dir" && as_dir=.
  5596. for ac_exec_ext in '' $ac_executable_extensions; do
  5597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5598. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5600. break 2
  5601. fi
  5602. done
  5603. done
  5604. IFS=$as_save_IFS
  5605. fi
  5606. fi
  5607. RANLIB=$ac_cv_prog_RANLIB
  5608. if test -n "$RANLIB"; then
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5610. $as_echo "$RANLIB" >&6; }
  5611. else
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5613. $as_echo "no" >&6; }
  5614. fi
  5615. fi
  5616. if test -z "$ac_cv_prog_RANLIB"; then
  5617. ac_ct_RANLIB=$RANLIB
  5618. # Extract the first word of "ranlib", so it can be a program name with args.
  5619. set dummy ranlib; ac_word=$2
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5621. $as_echo_n "checking for $ac_word... " >&6; }
  5622. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5623. $as_echo_n "(cached) " >&6
  5624. else
  5625. if test -n "$ac_ct_RANLIB"; then
  5626. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5627. else
  5628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5629. for as_dir in $PATH
  5630. do
  5631. IFS=$as_save_IFS
  5632. test -z "$as_dir" && as_dir=.
  5633. for ac_exec_ext in '' $ac_executable_extensions; do
  5634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5635. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5637. break 2
  5638. fi
  5639. done
  5640. done
  5641. IFS=$as_save_IFS
  5642. fi
  5643. fi
  5644. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5645. if test -n "$ac_ct_RANLIB"; then
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5647. $as_echo "$ac_ct_RANLIB" >&6; }
  5648. else
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5650. $as_echo "no" >&6; }
  5651. fi
  5652. if test "x$ac_ct_RANLIB" = x; then
  5653. RANLIB=":"
  5654. else
  5655. case $cross_compiling:$ac_tool_warned in
  5656. yes:)
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5658. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5659. ac_tool_warned=yes ;;
  5660. esac
  5661. RANLIB=$ac_ct_RANLIB
  5662. fi
  5663. else
  5664. RANLIB="$ac_cv_prog_RANLIB"
  5665. fi
  5666. test -z "$RANLIB" && RANLIB=:
  5667. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  5668. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  5669. RANLIB="$RANLIB $plugin_option"
  5670. fi
  5671. fi
  5672. # Determine commands to create old-style static archives.
  5673. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5674. old_postinstall_cmds='chmod 644 $oldlib'
  5675. old_postuninstall_cmds=
  5676. if test -n "$RANLIB"; then
  5677. case $host_os in
  5678. openbsd*)
  5679. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5680. ;;
  5681. *)
  5682. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5683. ;;
  5684. esac
  5685. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5686. fi
  5687. case $host_os in
  5688. darwin*)
  5689. lock_old_archive_extraction=yes ;;
  5690. *)
  5691. lock_old_archive_extraction=no ;;
  5692. esac
  5693. # If no C compiler was specified, use CC.
  5694. LTCC=${LTCC-"$CC"}
  5695. # If no C compiler flags were specified, use CFLAGS.
  5696. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5697. # Allow CC to be a program name with arguments.
  5698. compiler=$CC
  5699. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5701. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5702. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. # These are sane defaults that work on at least a few old systems.
  5706. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5707. # Character class describing NM global symbol codes.
  5708. symcode='[BCDEGRST]'
  5709. # Regexp to match symbols that can be accessed directly from C.
  5710. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5711. # Define system-specific variables.
  5712. case $host_os in
  5713. aix*)
  5714. symcode='[BCDT]'
  5715. ;;
  5716. cygwin* | mingw* | pw32* | cegcc*)
  5717. symcode='[ABCDGISTW]'
  5718. ;;
  5719. hpux*)
  5720. if test "$host_cpu" = ia64; then
  5721. symcode='[ABCDEGRST]'
  5722. fi
  5723. ;;
  5724. irix* | nonstopux*)
  5725. symcode='[BCDEGRST]'
  5726. ;;
  5727. osf*)
  5728. symcode='[BCDEGQRST]'
  5729. ;;
  5730. solaris*)
  5731. symcode='[BCDRT]'
  5732. ;;
  5733. sco3.2v5*)
  5734. symcode='[DT]'
  5735. ;;
  5736. sysv4.2uw2*)
  5737. symcode='[DT]'
  5738. ;;
  5739. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5740. symcode='[ABDT]'
  5741. ;;
  5742. sysv4)
  5743. symcode='[DFNSTU]'
  5744. ;;
  5745. esac
  5746. # If we're using GNU nm, then use its standard symbol codes.
  5747. case `$NM -V 2>&1` in
  5748. *GNU* | *'with BFD'*)
  5749. symcode='[ABCDGIRSTW]' ;;
  5750. esac
  5751. # Transform an extracted symbol line into a proper C declaration.
  5752. # Some systems (esp. on ia64) link data and code symbols differently,
  5753. # so use this general approach.
  5754. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5755. # Transform an extracted symbol line into symbol name and symbol address
  5756. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5757. 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'"
  5758. # Handle CRLF in mingw tool chain
  5759. opt_cr=
  5760. case $build_os in
  5761. mingw*)
  5762. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5763. ;;
  5764. esac
  5765. # Try without a prefix underscore, then with it.
  5766. for ac_symprfx in "" "_"; do
  5767. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5768. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5769. # Write the raw and C identifiers.
  5770. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5771. # Fake it for dumpbin and say T for any non-static function
  5772. # and D for any global variable.
  5773. # Also find C++ and __fastcall symbols from MSVC++,
  5774. # which start with @ or ?.
  5775. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5776. " {last_section=section; section=\$ 3};"\
  5777. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5778. " \$ 0!~/External *\|/{next};"\
  5779. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5780. " {if(hide[section]) next};"\
  5781. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5782. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5783. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5784. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5785. " ' prfx=^$ac_symprfx"
  5786. else
  5787. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5788. fi
  5789. # Check to see that the pipe works correctly.
  5790. pipe_works=no
  5791. rm -f conftest*
  5792. cat > conftest.$ac_ext <<_LT_EOF
  5793. #ifdef __cplusplus
  5794. extern "C" {
  5795. #endif
  5796. char nm_test_var;
  5797. void nm_test_func(void);
  5798. void nm_test_func(void){}
  5799. #ifdef __cplusplus
  5800. }
  5801. #endif
  5802. int main(){nm_test_var='a';nm_test_func();return(0);}
  5803. _LT_EOF
  5804. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5805. (eval $ac_compile) 2>&5
  5806. ac_status=$?
  5807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5808. test $ac_status = 0; }; then
  5809. # Now try to grab the symbols.
  5810. nlist=conftest.nm
  5811. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5812. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5813. ac_status=$?
  5814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5815. test $ac_status = 0; } && test -s "$nlist"; then
  5816. # Try sorting and uniquifying the output.
  5817. if sort "$nlist" | uniq > "$nlist"T; then
  5818. mv -f "$nlist"T "$nlist"
  5819. else
  5820. rm -f "$nlist"T
  5821. fi
  5822. # Make sure that we snagged all the symbols we need.
  5823. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5824. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5825. cat <<_LT_EOF > conftest.$ac_ext
  5826. #ifdef __cplusplus
  5827. extern "C" {
  5828. #endif
  5829. _LT_EOF
  5830. # Now generate the symbol file.
  5831. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5832. cat <<_LT_EOF >> conftest.$ac_ext
  5833. /* The mapping between symbol names and symbols. */
  5834. const struct {
  5835. const char *name;
  5836. void *address;
  5837. }
  5838. lt__PROGRAM__LTX_preloaded_symbols[] =
  5839. {
  5840. { "@PROGRAM@", (void *) 0 },
  5841. _LT_EOF
  5842. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5843. cat <<\_LT_EOF >> conftest.$ac_ext
  5844. {0, (void *) 0}
  5845. };
  5846. /* This works around a problem in FreeBSD linker */
  5847. #ifdef FREEBSD_WORKAROUND
  5848. static const void *lt_preloaded_setup() {
  5849. return lt__PROGRAM__LTX_preloaded_symbols;
  5850. }
  5851. #endif
  5852. #ifdef __cplusplus
  5853. }
  5854. #endif
  5855. _LT_EOF
  5856. # Now try linking the two files.
  5857. mv conftest.$ac_objext conftstm.$ac_objext
  5858. lt_save_LIBS="$LIBS"
  5859. lt_save_CFLAGS="$CFLAGS"
  5860. LIBS="conftstm.$ac_objext"
  5861. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5862. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5863. (eval $ac_link) 2>&5
  5864. ac_status=$?
  5865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5866. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5867. pipe_works=yes
  5868. fi
  5869. LIBS="$lt_save_LIBS"
  5870. CFLAGS="$lt_save_CFLAGS"
  5871. else
  5872. echo "cannot find nm_test_func in $nlist" >&5
  5873. fi
  5874. else
  5875. echo "cannot find nm_test_var in $nlist" >&5
  5876. fi
  5877. else
  5878. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5879. fi
  5880. else
  5881. echo "$progname: failed program was:" >&5
  5882. cat conftest.$ac_ext >&5
  5883. fi
  5884. rm -rf conftest* conftst*
  5885. # Do not use the global_symbol_pipe unless it works.
  5886. if test "$pipe_works" = yes; then
  5887. break
  5888. else
  5889. lt_cv_sys_global_symbol_pipe=
  5890. fi
  5891. done
  5892. fi
  5893. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5894. lt_cv_sys_global_symbol_to_cdecl=
  5895. fi
  5896. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5898. $as_echo "failed" >&6; }
  5899. else
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5901. $as_echo "ok" >&6; }
  5902. fi
  5903. # Check whether --enable-libtool-lock was given.
  5904. if test "${enable_libtool_lock+set}" = set; then :
  5905. enableval=$enable_libtool_lock;
  5906. fi
  5907. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5908. # Some flags need to be propagated to the compiler or linker for good
  5909. # libtool support.
  5910. case $host in
  5911. ia64-*-hpux*)
  5912. # Find out which ABI we are using.
  5913. echo 'int i;' > conftest.$ac_ext
  5914. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5915. (eval $ac_compile) 2>&5
  5916. ac_status=$?
  5917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5918. test $ac_status = 0; }; then
  5919. case `/usr/bin/file conftest.$ac_objext` in
  5920. *ELF-32*)
  5921. HPUX_IA64_MODE="32"
  5922. ;;
  5923. *ELF-64*)
  5924. HPUX_IA64_MODE="64"
  5925. ;;
  5926. esac
  5927. fi
  5928. rm -rf conftest*
  5929. ;;
  5930. *-*-irix6*)
  5931. # Find out which ABI we are using.
  5932. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5933. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5934. (eval $ac_compile) 2>&5
  5935. ac_status=$?
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5937. test $ac_status = 0; }; then
  5938. if test "$lt_cv_prog_gnu_ld" = yes; then
  5939. case `/usr/bin/file conftest.$ac_objext` in
  5940. *32-bit*)
  5941. LD="${LD-ld} -melf32bsmip"
  5942. ;;
  5943. *N32*)
  5944. LD="${LD-ld} -melf32bmipn32"
  5945. ;;
  5946. *64-bit*)
  5947. LD="${LD-ld} -melf64bmip"
  5948. ;;
  5949. esac
  5950. else
  5951. case `/usr/bin/file conftest.$ac_objext` in
  5952. *32-bit*)
  5953. LD="${LD-ld} -32"
  5954. ;;
  5955. *N32*)
  5956. LD="${LD-ld} -n32"
  5957. ;;
  5958. *64-bit*)
  5959. LD="${LD-ld} -64"
  5960. ;;
  5961. esac
  5962. fi
  5963. fi
  5964. rm -rf conftest*
  5965. ;;
  5966. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5967. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5968. # Find out which ABI we are using.
  5969. echo 'int i;' > conftest.$ac_ext
  5970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5971. (eval $ac_compile) 2>&5
  5972. ac_status=$?
  5973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5974. test $ac_status = 0; }; then
  5975. case `/usr/bin/file conftest.o` in
  5976. *32-bit*)
  5977. case $host in
  5978. x86_64-*kfreebsd*-gnu)
  5979. LD="${LD-ld} -m elf_i386_fbsd"
  5980. ;;
  5981. x86_64-*linux*)
  5982. case `/usr/bin/file conftest.o` in
  5983. *x86-64*)
  5984. LD="${LD-ld} -m elf32_x86_64"
  5985. ;;
  5986. *)
  5987. LD="${LD-ld} -m elf_i386"
  5988. ;;
  5989. esac
  5990. ;;
  5991. powerpc64le-*linux*)
  5992. LD="${LD-ld} -m elf32lppclinux"
  5993. ;;
  5994. powerpc64-*linux*)
  5995. LD="${LD-ld} -m elf32ppclinux"
  5996. ;;
  5997. s390x-*linux*)
  5998. LD="${LD-ld} -m elf_s390"
  5999. ;;
  6000. sparc64-*linux*)
  6001. LD="${LD-ld} -m elf32_sparc"
  6002. ;;
  6003. esac
  6004. ;;
  6005. *64-bit*)
  6006. case $host in
  6007. x86_64-*kfreebsd*-gnu)
  6008. LD="${LD-ld} -m elf_x86_64_fbsd"
  6009. ;;
  6010. x86_64-*linux*)
  6011. LD="${LD-ld} -m elf_x86_64"
  6012. ;;
  6013. powerpcle-*linux*)
  6014. LD="${LD-ld} -m elf64lppc"
  6015. ;;
  6016. powerpc-*linux*)
  6017. LD="${LD-ld} -m elf64ppc"
  6018. ;;
  6019. s390*-*linux*|s390*-*tpf*)
  6020. LD="${LD-ld} -m elf64_s390"
  6021. ;;
  6022. sparc*-*linux*)
  6023. LD="${LD-ld} -m elf64_sparc"
  6024. ;;
  6025. esac
  6026. ;;
  6027. esac
  6028. fi
  6029. rm -rf conftest*
  6030. ;;
  6031. *-*-sco3.2v5*)
  6032. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6033. SAVE_CFLAGS="$CFLAGS"
  6034. CFLAGS="$CFLAGS -belf"
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6036. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6037. if ${lt_cv_cc_needs_belf+:} false; then :
  6038. $as_echo_n "(cached) " >&6
  6039. else
  6040. ac_ext=c
  6041. ac_cpp='$CPP $CPPFLAGS'
  6042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6046. /* end confdefs.h. */
  6047. int
  6048. main ()
  6049. {
  6050. ;
  6051. return 0;
  6052. }
  6053. _ACEOF
  6054. if ac_fn_c_try_link "$LINENO"; then :
  6055. lt_cv_cc_needs_belf=yes
  6056. else
  6057. lt_cv_cc_needs_belf=no
  6058. fi
  6059. rm -f core conftest.err conftest.$ac_objext \
  6060. conftest$ac_exeext conftest.$ac_ext
  6061. ac_ext=c
  6062. ac_cpp='$CPP $CPPFLAGS'
  6063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6066. fi
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6068. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6069. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6070. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6071. CFLAGS="$SAVE_CFLAGS"
  6072. fi
  6073. ;;
  6074. sparc*-*solaris*)
  6075. # Find out which ABI we are using.
  6076. echo 'int i;' > conftest.$ac_ext
  6077. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6078. (eval $ac_compile) 2>&5
  6079. ac_status=$?
  6080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6081. test $ac_status = 0; }; then
  6082. case `/usr/bin/file conftest.o` in
  6083. *64-bit*)
  6084. case $lt_cv_prog_gnu_ld in
  6085. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6086. *)
  6087. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6088. LD="${LD-ld} -64"
  6089. fi
  6090. ;;
  6091. esac
  6092. ;;
  6093. esac
  6094. fi
  6095. rm -rf conftest*
  6096. ;;
  6097. esac
  6098. need_locks="$enable_libtool_lock"
  6099. case $host_os in
  6100. rhapsody* | darwin*)
  6101. if test -n "$ac_tool_prefix"; then
  6102. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6103. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6105. $as_echo_n "checking for $ac_word... " >&6; }
  6106. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6107. $as_echo_n "(cached) " >&6
  6108. else
  6109. if test -n "$DSYMUTIL"; then
  6110. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6111. else
  6112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6113. for as_dir in $PATH
  6114. do
  6115. IFS=$as_save_IFS
  6116. test -z "$as_dir" && as_dir=.
  6117. for ac_exec_ext in '' $ac_executable_extensions; do
  6118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6119. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6121. break 2
  6122. fi
  6123. done
  6124. done
  6125. IFS=$as_save_IFS
  6126. fi
  6127. fi
  6128. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6129. if test -n "$DSYMUTIL"; then
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6131. $as_echo "$DSYMUTIL" >&6; }
  6132. else
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6134. $as_echo "no" >&6; }
  6135. fi
  6136. fi
  6137. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6138. ac_ct_DSYMUTIL=$DSYMUTIL
  6139. # Extract the first word of "dsymutil", so it can be a program name with args.
  6140. set dummy dsymutil; ac_word=$2
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6142. $as_echo_n "checking for $ac_word... " >&6; }
  6143. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. if test -n "$ac_ct_DSYMUTIL"; then
  6147. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6148. else
  6149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6150. for as_dir in $PATH
  6151. do
  6152. IFS=$as_save_IFS
  6153. test -z "$as_dir" && as_dir=.
  6154. for ac_exec_ext in '' $ac_executable_extensions; do
  6155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6156. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6158. break 2
  6159. fi
  6160. done
  6161. done
  6162. IFS=$as_save_IFS
  6163. fi
  6164. fi
  6165. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6166. if test -n "$ac_ct_DSYMUTIL"; then
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6168. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6169. else
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6171. $as_echo "no" >&6; }
  6172. fi
  6173. if test "x$ac_ct_DSYMUTIL" = x; then
  6174. DSYMUTIL=":"
  6175. else
  6176. case $cross_compiling:$ac_tool_warned in
  6177. yes:)
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6179. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6180. ac_tool_warned=yes ;;
  6181. esac
  6182. DSYMUTIL=$ac_ct_DSYMUTIL
  6183. fi
  6184. else
  6185. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6186. fi
  6187. if test -n "$ac_tool_prefix"; then
  6188. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6189. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6191. $as_echo_n "checking for $ac_word... " >&6; }
  6192. if ${ac_cv_prog_NMEDIT+:} false; then :
  6193. $as_echo_n "(cached) " >&6
  6194. else
  6195. if test -n "$NMEDIT"; then
  6196. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6197. else
  6198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6199. for as_dir in $PATH
  6200. do
  6201. IFS=$as_save_IFS
  6202. test -z "$as_dir" && as_dir=.
  6203. for ac_exec_ext in '' $ac_executable_extensions; do
  6204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6205. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6207. break 2
  6208. fi
  6209. done
  6210. done
  6211. IFS=$as_save_IFS
  6212. fi
  6213. fi
  6214. NMEDIT=$ac_cv_prog_NMEDIT
  6215. if test -n "$NMEDIT"; then
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6217. $as_echo "$NMEDIT" >&6; }
  6218. else
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6220. $as_echo "no" >&6; }
  6221. fi
  6222. fi
  6223. if test -z "$ac_cv_prog_NMEDIT"; then
  6224. ac_ct_NMEDIT=$NMEDIT
  6225. # Extract the first word of "nmedit", so it can be a program name with args.
  6226. set dummy nmedit; ac_word=$2
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6228. $as_echo_n "checking for $ac_word... " >&6; }
  6229. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6230. $as_echo_n "(cached) " >&6
  6231. else
  6232. if test -n "$ac_ct_NMEDIT"; then
  6233. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6234. else
  6235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6236. for as_dir in $PATH
  6237. do
  6238. IFS=$as_save_IFS
  6239. test -z "$as_dir" && as_dir=.
  6240. for ac_exec_ext in '' $ac_executable_extensions; do
  6241. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6242. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6244. break 2
  6245. fi
  6246. done
  6247. done
  6248. IFS=$as_save_IFS
  6249. fi
  6250. fi
  6251. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6252. if test -n "$ac_ct_NMEDIT"; then
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6254. $as_echo "$ac_ct_NMEDIT" >&6; }
  6255. else
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6257. $as_echo "no" >&6; }
  6258. fi
  6259. if test "x$ac_ct_NMEDIT" = x; then
  6260. NMEDIT=":"
  6261. else
  6262. case $cross_compiling:$ac_tool_warned in
  6263. yes:)
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6266. ac_tool_warned=yes ;;
  6267. esac
  6268. NMEDIT=$ac_ct_NMEDIT
  6269. fi
  6270. else
  6271. NMEDIT="$ac_cv_prog_NMEDIT"
  6272. fi
  6273. if test -n "$ac_tool_prefix"; then
  6274. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6275. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6277. $as_echo_n "checking for $ac_word... " >&6; }
  6278. if ${ac_cv_prog_LIPO+:} false; then :
  6279. $as_echo_n "(cached) " >&6
  6280. else
  6281. if test -n "$LIPO"; then
  6282. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6283. else
  6284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6285. for as_dir in $PATH
  6286. do
  6287. IFS=$as_save_IFS
  6288. test -z "$as_dir" && as_dir=.
  6289. for ac_exec_ext in '' $ac_executable_extensions; do
  6290. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6291. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6293. break 2
  6294. fi
  6295. done
  6296. done
  6297. IFS=$as_save_IFS
  6298. fi
  6299. fi
  6300. LIPO=$ac_cv_prog_LIPO
  6301. if test -n "$LIPO"; then
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6303. $as_echo "$LIPO" >&6; }
  6304. else
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6306. $as_echo "no" >&6; }
  6307. fi
  6308. fi
  6309. if test -z "$ac_cv_prog_LIPO"; then
  6310. ac_ct_LIPO=$LIPO
  6311. # Extract the first word of "lipo", so it can be a program name with args.
  6312. set dummy lipo; ac_word=$2
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6314. $as_echo_n "checking for $ac_word... " >&6; }
  6315. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6316. $as_echo_n "(cached) " >&6
  6317. else
  6318. if test -n "$ac_ct_LIPO"; then
  6319. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6320. else
  6321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6322. for as_dir in $PATH
  6323. do
  6324. IFS=$as_save_IFS
  6325. test -z "$as_dir" && as_dir=.
  6326. for ac_exec_ext in '' $ac_executable_extensions; do
  6327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6328. ac_cv_prog_ac_ct_LIPO="lipo"
  6329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6330. break 2
  6331. fi
  6332. done
  6333. done
  6334. IFS=$as_save_IFS
  6335. fi
  6336. fi
  6337. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6338. if test -n "$ac_ct_LIPO"; then
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6340. $as_echo "$ac_ct_LIPO" >&6; }
  6341. else
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6343. $as_echo "no" >&6; }
  6344. fi
  6345. if test "x$ac_ct_LIPO" = x; then
  6346. LIPO=":"
  6347. else
  6348. case $cross_compiling:$ac_tool_warned in
  6349. yes:)
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6351. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6352. ac_tool_warned=yes ;;
  6353. esac
  6354. LIPO=$ac_ct_LIPO
  6355. fi
  6356. else
  6357. LIPO="$ac_cv_prog_LIPO"
  6358. fi
  6359. if test -n "$ac_tool_prefix"; then
  6360. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6361. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6363. $as_echo_n "checking for $ac_word... " >&6; }
  6364. if ${ac_cv_prog_OTOOL+:} false; then :
  6365. $as_echo_n "(cached) " >&6
  6366. else
  6367. if test -n "$OTOOL"; then
  6368. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6369. else
  6370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6371. for as_dir in $PATH
  6372. do
  6373. IFS=$as_save_IFS
  6374. test -z "$as_dir" && as_dir=.
  6375. for ac_exec_ext in '' $ac_executable_extensions; do
  6376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6377. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6379. break 2
  6380. fi
  6381. done
  6382. done
  6383. IFS=$as_save_IFS
  6384. fi
  6385. fi
  6386. OTOOL=$ac_cv_prog_OTOOL
  6387. if test -n "$OTOOL"; then
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6389. $as_echo "$OTOOL" >&6; }
  6390. else
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6392. $as_echo "no" >&6; }
  6393. fi
  6394. fi
  6395. if test -z "$ac_cv_prog_OTOOL"; then
  6396. ac_ct_OTOOL=$OTOOL
  6397. # Extract the first word of "otool", so it can be a program name with args.
  6398. set dummy otool; ac_word=$2
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6400. $as_echo_n "checking for $ac_word... " >&6; }
  6401. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6402. $as_echo_n "(cached) " >&6
  6403. else
  6404. if test -n "$ac_ct_OTOOL"; then
  6405. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6406. else
  6407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6408. for as_dir in $PATH
  6409. do
  6410. IFS=$as_save_IFS
  6411. test -z "$as_dir" && as_dir=.
  6412. for ac_exec_ext in '' $ac_executable_extensions; do
  6413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6414. ac_cv_prog_ac_ct_OTOOL="otool"
  6415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6416. break 2
  6417. fi
  6418. done
  6419. done
  6420. IFS=$as_save_IFS
  6421. fi
  6422. fi
  6423. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6424. if test -n "$ac_ct_OTOOL"; then
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6426. $as_echo "$ac_ct_OTOOL" >&6; }
  6427. else
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6429. $as_echo "no" >&6; }
  6430. fi
  6431. if test "x$ac_ct_OTOOL" = x; then
  6432. OTOOL=":"
  6433. else
  6434. case $cross_compiling:$ac_tool_warned in
  6435. yes:)
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6438. ac_tool_warned=yes ;;
  6439. esac
  6440. OTOOL=$ac_ct_OTOOL
  6441. fi
  6442. else
  6443. OTOOL="$ac_cv_prog_OTOOL"
  6444. fi
  6445. if test -n "$ac_tool_prefix"; then
  6446. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6447. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6449. $as_echo_n "checking for $ac_word... " >&6; }
  6450. if ${ac_cv_prog_OTOOL64+:} false; then :
  6451. $as_echo_n "(cached) " >&6
  6452. else
  6453. if test -n "$OTOOL64"; then
  6454. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6455. else
  6456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6457. for as_dir in $PATH
  6458. do
  6459. IFS=$as_save_IFS
  6460. test -z "$as_dir" && as_dir=.
  6461. for ac_exec_ext in '' $ac_executable_extensions; do
  6462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6463. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6465. break 2
  6466. fi
  6467. done
  6468. done
  6469. IFS=$as_save_IFS
  6470. fi
  6471. fi
  6472. OTOOL64=$ac_cv_prog_OTOOL64
  6473. if test -n "$OTOOL64"; then
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6475. $as_echo "$OTOOL64" >&6; }
  6476. else
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6478. $as_echo "no" >&6; }
  6479. fi
  6480. fi
  6481. if test -z "$ac_cv_prog_OTOOL64"; then
  6482. ac_ct_OTOOL64=$OTOOL64
  6483. # Extract the first word of "otool64", so it can be a program name with args.
  6484. set dummy otool64; ac_word=$2
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6486. $as_echo_n "checking for $ac_word... " >&6; }
  6487. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6488. $as_echo_n "(cached) " >&6
  6489. else
  6490. if test -n "$ac_ct_OTOOL64"; then
  6491. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6492. else
  6493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6494. for as_dir in $PATH
  6495. do
  6496. IFS=$as_save_IFS
  6497. test -z "$as_dir" && as_dir=.
  6498. for ac_exec_ext in '' $ac_executable_extensions; do
  6499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6500. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6502. break 2
  6503. fi
  6504. done
  6505. done
  6506. IFS=$as_save_IFS
  6507. fi
  6508. fi
  6509. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6510. if test -n "$ac_ct_OTOOL64"; then
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6512. $as_echo "$ac_ct_OTOOL64" >&6; }
  6513. else
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6515. $as_echo "no" >&6; }
  6516. fi
  6517. if test "x$ac_ct_OTOOL64" = x; then
  6518. OTOOL64=":"
  6519. else
  6520. case $cross_compiling:$ac_tool_warned in
  6521. yes:)
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6523. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6524. ac_tool_warned=yes ;;
  6525. esac
  6526. OTOOL64=$ac_ct_OTOOL64
  6527. fi
  6528. else
  6529. OTOOL64="$ac_cv_prog_OTOOL64"
  6530. fi
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6532. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6533. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6534. $as_echo_n "(cached) " >&6
  6535. else
  6536. lt_cv_apple_cc_single_mod=no
  6537. if test -z "${LT_MULTI_MODULE}"; then
  6538. # By default we will add the -single_module flag. You can override
  6539. # by either setting the environment variable LT_MULTI_MODULE
  6540. # non-empty at configure time, or by adding -multi_module to the
  6541. # link flags.
  6542. rm -rf libconftest.dylib*
  6543. echo "int foo(void){return 1;}" > conftest.c
  6544. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6545. -dynamiclib -Wl,-single_module conftest.c" >&5
  6546. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6547. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6548. _lt_result=$?
  6549. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6550. lt_cv_apple_cc_single_mod=yes
  6551. else
  6552. cat conftest.err >&5
  6553. fi
  6554. rm -rf libconftest.dylib*
  6555. rm -f conftest.*
  6556. fi
  6557. fi
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6559. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6561. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6562. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6563. $as_echo_n "(cached) " >&6
  6564. else
  6565. lt_cv_ld_exported_symbols_list=no
  6566. save_LDFLAGS=$LDFLAGS
  6567. echo "_main" > conftest.sym
  6568. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6570. /* end confdefs.h. */
  6571. int
  6572. main ()
  6573. {
  6574. ;
  6575. return 0;
  6576. }
  6577. _ACEOF
  6578. if ac_fn_c_try_link "$LINENO"; then :
  6579. lt_cv_ld_exported_symbols_list=yes
  6580. else
  6581. lt_cv_ld_exported_symbols_list=no
  6582. fi
  6583. rm -f core conftest.err conftest.$ac_objext \
  6584. conftest$ac_exeext conftest.$ac_ext
  6585. LDFLAGS="$save_LDFLAGS"
  6586. fi
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6588. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6590. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6591. if ${lt_cv_ld_force_load+:} false; then :
  6592. $as_echo_n "(cached) " >&6
  6593. else
  6594. lt_cv_ld_force_load=no
  6595. cat > conftest.c << _LT_EOF
  6596. int forced_loaded() { return 2;}
  6597. _LT_EOF
  6598. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6599. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6600. echo "$AR cru libconftest.a conftest.o" >&5
  6601. $AR cru libconftest.a conftest.o 2>&5
  6602. cat > conftest.c << _LT_EOF
  6603. int main() { return 0;}
  6604. _LT_EOF
  6605. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6606. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6607. _lt_result=$?
  6608. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6609. lt_cv_ld_force_load=yes
  6610. else
  6611. cat conftest.err >&5
  6612. fi
  6613. rm -f conftest.err libconftest.a conftest conftest.c
  6614. rm -rf conftest.dSYM
  6615. fi
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6617. $as_echo "$lt_cv_ld_force_load" >&6; }
  6618. case $host_os in
  6619. rhapsody* | darwin1.[012])
  6620. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6621. darwin1.*)
  6622. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6623. darwin*) # darwin 5.x on
  6624. # if running on 10.5 or later, the deployment target defaults
  6625. # to the OS version, if on x86, and 10.4, the deployment
  6626. # target defaults to 10.4. Don't you love it?
  6627. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6628. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6629. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6630. 10.[012][,.]*)
  6631. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6632. 10.*)
  6633. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6634. esac
  6635. ;;
  6636. esac
  6637. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6638. _lt_dar_single_mod='$single_module'
  6639. fi
  6640. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6641. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6642. else
  6643. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6644. fi
  6645. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6646. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6647. else
  6648. _lt_dsymutil=
  6649. fi
  6650. ;;
  6651. esac
  6652. for ac_header in dlfcn.h
  6653. do :
  6654. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6655. "
  6656. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6657. cat >>confdefs.h <<_ACEOF
  6658. #define HAVE_DLFCN_H 1
  6659. _ACEOF
  6660. fi
  6661. done
  6662. # Set options
  6663. enable_dlopen=no
  6664. enable_win32_dll=no
  6665. # Check whether --enable-shared was given.
  6666. if test "${enable_shared+set}" = set; then :
  6667. enableval=$enable_shared; p=${PACKAGE-default}
  6668. case $enableval in
  6669. yes) enable_shared=yes ;;
  6670. no) enable_shared=no ;;
  6671. *)
  6672. enable_shared=no
  6673. # Look at the argument we got. We use all the common list separators.
  6674. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6675. for pkg in $enableval; do
  6676. IFS="$lt_save_ifs"
  6677. if test "X$pkg" = "X$p"; then
  6678. enable_shared=yes
  6679. fi
  6680. done
  6681. IFS="$lt_save_ifs"
  6682. ;;
  6683. esac
  6684. else
  6685. enable_shared=yes
  6686. fi
  6687. # Check whether --enable-static was given.
  6688. if test "${enable_static+set}" = set; then :
  6689. enableval=$enable_static; p=${PACKAGE-default}
  6690. case $enableval in
  6691. yes) enable_static=yes ;;
  6692. no) enable_static=no ;;
  6693. *)
  6694. enable_static=no
  6695. # Look at the argument we got. We use all the common list separators.
  6696. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6697. for pkg in $enableval; do
  6698. IFS="$lt_save_ifs"
  6699. if test "X$pkg" = "X$p"; then
  6700. enable_static=yes
  6701. fi
  6702. done
  6703. IFS="$lt_save_ifs"
  6704. ;;
  6705. esac
  6706. else
  6707. enable_static=yes
  6708. fi
  6709. # Check whether --with-pic was given.
  6710. if test "${with_pic+set}" = set; then :
  6711. withval=$with_pic; pic_mode="$withval"
  6712. else
  6713. pic_mode=default
  6714. fi
  6715. test -z "$pic_mode" && pic_mode=default
  6716. # Check whether --enable-fast-install was given.
  6717. if test "${enable_fast_install+set}" = set; then :
  6718. enableval=$enable_fast_install; p=${PACKAGE-default}
  6719. case $enableval in
  6720. yes) enable_fast_install=yes ;;
  6721. no) enable_fast_install=no ;;
  6722. *)
  6723. enable_fast_install=no
  6724. # Look at the argument we got. We use all the common list separators.
  6725. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6726. for pkg in $enableval; do
  6727. IFS="$lt_save_ifs"
  6728. if test "X$pkg" = "X$p"; then
  6729. enable_fast_install=yes
  6730. fi
  6731. done
  6732. IFS="$lt_save_ifs"
  6733. ;;
  6734. esac
  6735. else
  6736. enable_fast_install=yes
  6737. fi
  6738. # This can be used to rebuild libtool when needed
  6739. LIBTOOL_DEPS="$ltmain"
  6740. # Always use our own libtool.
  6741. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6742. test -z "$LN_S" && LN_S="ln -s"
  6743. if test -n "${ZSH_VERSION+set}" ; then
  6744. setopt NO_GLOB_SUBST
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6747. $as_echo_n "checking for objdir... " >&6; }
  6748. if ${lt_cv_objdir+:} false; then :
  6749. $as_echo_n "(cached) " >&6
  6750. else
  6751. rm -f .libs 2>/dev/null
  6752. mkdir .libs 2>/dev/null
  6753. if test -d .libs; then
  6754. lt_cv_objdir=.libs
  6755. else
  6756. # MS-DOS does not allow filenames that begin with a dot.
  6757. lt_cv_objdir=_libs
  6758. fi
  6759. rmdir .libs 2>/dev/null
  6760. fi
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6762. $as_echo "$lt_cv_objdir" >&6; }
  6763. objdir=$lt_cv_objdir
  6764. cat >>confdefs.h <<_ACEOF
  6765. #define LT_OBJDIR "$lt_cv_objdir/"
  6766. _ACEOF
  6767. case $host_os in
  6768. aix3*)
  6769. # AIX sometimes has problems with the GCC collect2 program. For some
  6770. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6771. # vanish in a puff of smoke.
  6772. if test "X${COLLECT_NAMES+set}" != Xset; then
  6773. COLLECT_NAMES=
  6774. export COLLECT_NAMES
  6775. fi
  6776. ;;
  6777. esac
  6778. # Global variables:
  6779. ofile=libtool
  6780. can_build_shared=yes
  6781. # All known linkers require a `.a' archive for static linking (except MSVC,
  6782. # which needs '.lib').
  6783. libext=a
  6784. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6785. old_CC="$CC"
  6786. old_CFLAGS="$CFLAGS"
  6787. # Set sane defaults for various variables
  6788. test -z "$CC" && CC=cc
  6789. test -z "$LTCC" && LTCC=$CC
  6790. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6791. test -z "$LD" && LD=ld
  6792. test -z "$ac_objext" && ac_objext=o
  6793. for cc_temp in $compiler""; do
  6794. case $cc_temp in
  6795. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6796. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6797. \-*) ;;
  6798. *) break;;
  6799. esac
  6800. done
  6801. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6802. # Only perform the check for file, if the check method requires it
  6803. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6804. case $deplibs_check_method in
  6805. file_magic*)
  6806. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6808. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6809. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6810. $as_echo_n "(cached) " >&6
  6811. else
  6812. case $MAGIC_CMD in
  6813. [\\/*] | ?:[\\/]*)
  6814. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6815. ;;
  6816. *)
  6817. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6818. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6819. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6820. for ac_dir in $ac_dummy; do
  6821. IFS="$lt_save_ifs"
  6822. test -z "$ac_dir" && ac_dir=.
  6823. if test -f $ac_dir/${ac_tool_prefix}file; then
  6824. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6825. if test -n "$file_magic_test_file"; then
  6826. case $deplibs_check_method in
  6827. "file_magic "*)
  6828. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6829. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6830. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6831. $EGREP "$file_magic_regex" > /dev/null; then
  6832. :
  6833. else
  6834. cat <<_LT_EOF 1>&2
  6835. *** Warning: the command libtool uses to detect shared libraries,
  6836. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6837. *** The result is that libtool may fail to recognize shared libraries
  6838. *** as such. This will affect the creation of libtool libraries that
  6839. *** depend on shared libraries, but programs linked with such libtool
  6840. *** libraries will work regardless of this problem. Nevertheless, you
  6841. *** may want to report the problem to your system manager and/or to
  6842. *** bug-libtool@gnu.org
  6843. _LT_EOF
  6844. fi ;;
  6845. esac
  6846. fi
  6847. break
  6848. fi
  6849. done
  6850. IFS="$lt_save_ifs"
  6851. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6852. ;;
  6853. esac
  6854. fi
  6855. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6856. if test -n "$MAGIC_CMD"; then
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6858. $as_echo "$MAGIC_CMD" >&6; }
  6859. else
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6861. $as_echo "no" >&6; }
  6862. fi
  6863. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6864. if test -n "$ac_tool_prefix"; then
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6866. $as_echo_n "checking for file... " >&6; }
  6867. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6868. $as_echo_n "(cached) " >&6
  6869. else
  6870. case $MAGIC_CMD in
  6871. [\\/*] | ?:[\\/]*)
  6872. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6873. ;;
  6874. *)
  6875. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6876. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6877. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6878. for ac_dir in $ac_dummy; do
  6879. IFS="$lt_save_ifs"
  6880. test -z "$ac_dir" && ac_dir=.
  6881. if test -f $ac_dir/file; then
  6882. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6883. if test -n "$file_magic_test_file"; then
  6884. case $deplibs_check_method in
  6885. "file_magic "*)
  6886. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6887. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6888. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6889. $EGREP "$file_magic_regex" > /dev/null; then
  6890. :
  6891. else
  6892. cat <<_LT_EOF 1>&2
  6893. *** Warning: the command libtool uses to detect shared libraries,
  6894. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6895. *** The result is that libtool may fail to recognize shared libraries
  6896. *** as such. This will affect the creation of libtool libraries that
  6897. *** depend on shared libraries, but programs linked with such libtool
  6898. *** libraries will work regardless of this problem. Nevertheless, you
  6899. *** may want to report the problem to your system manager and/or to
  6900. *** bug-libtool@gnu.org
  6901. _LT_EOF
  6902. fi ;;
  6903. esac
  6904. fi
  6905. break
  6906. fi
  6907. done
  6908. IFS="$lt_save_ifs"
  6909. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6910. ;;
  6911. esac
  6912. fi
  6913. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6914. if test -n "$MAGIC_CMD"; then
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6916. $as_echo "$MAGIC_CMD" >&6; }
  6917. else
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6919. $as_echo "no" >&6; }
  6920. fi
  6921. else
  6922. MAGIC_CMD=:
  6923. fi
  6924. fi
  6925. fi
  6926. ;;
  6927. esac
  6928. # Use C for the default configuration in the libtool script
  6929. lt_save_CC="$CC"
  6930. ac_ext=c
  6931. ac_cpp='$CPP $CPPFLAGS'
  6932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6935. # Source file extension for C test sources.
  6936. ac_ext=c
  6937. # Object file extension for compiled C test sources.
  6938. objext=o
  6939. objext=$objext
  6940. # Code to be used in simple compile tests
  6941. lt_simple_compile_test_code="int some_variable = 0;"
  6942. # Code to be used in simple link tests
  6943. lt_simple_link_test_code='int main(){return(0);}'
  6944. # If no C compiler was specified, use CC.
  6945. LTCC=${LTCC-"$CC"}
  6946. # If no C compiler flags were specified, use CFLAGS.
  6947. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6948. # Allow CC to be a program name with arguments.
  6949. compiler=$CC
  6950. # Save the default compiler, since it gets overwritten when the other
  6951. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6952. compiler_DEFAULT=$CC
  6953. # save warnings/boilerplate of simple test code
  6954. ac_outfile=conftest.$ac_objext
  6955. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6956. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6957. _lt_compiler_boilerplate=`cat conftest.err`
  6958. $RM conftest*
  6959. ac_outfile=conftest.$ac_objext
  6960. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6961. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6962. _lt_linker_boilerplate=`cat conftest.err`
  6963. $RM -r conftest*
  6964. ## CAVEAT EMPTOR:
  6965. ## There is no encapsulation within the following macros, do not change
  6966. ## the running order or otherwise move them around unless you know exactly
  6967. ## what you are doing...
  6968. if test -n "$compiler"; then
  6969. lt_prog_compiler_no_builtin_flag=
  6970. if test "$GCC" = yes; then
  6971. case $cc_basename in
  6972. nvcc*)
  6973. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6974. *)
  6975. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6976. esac
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6978. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6979. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6980. $as_echo_n "(cached) " >&6
  6981. else
  6982. lt_cv_prog_compiler_rtti_exceptions=no
  6983. ac_outfile=conftest.$ac_objext
  6984. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6985. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6986. # Insert the option either (1) after the last *FLAGS variable, or
  6987. # (2) before a word containing "conftest.", or (3) at the end.
  6988. # Note that $ac_compile itself does not contain backslashes and begins
  6989. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6990. # The option is referenced via a variable to avoid confusing sed.
  6991. lt_compile=`echo "$ac_compile" | $SED \
  6992. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6993. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6994. -e 's:$: $lt_compiler_flag:'`
  6995. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6996. (eval "$lt_compile" 2>conftest.err)
  6997. ac_status=$?
  6998. cat conftest.err >&5
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. if (exit $ac_status) && test -s "$ac_outfile"; then
  7001. # The compiler can only warn and ignore the option if not recognized
  7002. # So say no if there are warnings other than the usual output.
  7003. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7004. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7005. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7006. lt_cv_prog_compiler_rtti_exceptions=yes
  7007. fi
  7008. fi
  7009. $RM conftest*
  7010. fi
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7012. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7013. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7014. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7015. else
  7016. :
  7017. fi
  7018. fi
  7019. lt_prog_compiler_wl=
  7020. lt_prog_compiler_pic=
  7021. lt_prog_compiler_static=
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7023. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7024. if test "$GCC" = yes; then
  7025. lt_prog_compiler_wl='-Wl,'
  7026. lt_prog_compiler_static='-static'
  7027. case $host_os in
  7028. aix*)
  7029. # All AIX code is PIC.
  7030. if test "$host_cpu" = ia64; then
  7031. # AIX 5 now supports IA64 processor
  7032. lt_prog_compiler_static='-Bstatic'
  7033. fi
  7034. lt_prog_compiler_pic='-fPIC'
  7035. ;;
  7036. amigaos*)
  7037. case $host_cpu in
  7038. powerpc)
  7039. # see comment about AmigaOS4 .so support
  7040. lt_prog_compiler_pic='-fPIC'
  7041. ;;
  7042. m68k)
  7043. # FIXME: we need at least 68020 code to build shared libraries, but
  7044. # adding the `-m68020' flag to GCC prevents building anything better,
  7045. # like `-m68040'.
  7046. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7047. ;;
  7048. esac
  7049. ;;
  7050. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7051. # PIC is the default for these OSes.
  7052. ;;
  7053. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7054. # This hack is so that the source file can tell whether it is being
  7055. # built for inclusion in a dll (and should export symbols for example).
  7056. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7057. # (--disable-auto-import) libraries
  7058. lt_prog_compiler_pic='-DDLL_EXPORT'
  7059. ;;
  7060. darwin* | rhapsody*)
  7061. # PIC is the default on this platform
  7062. # Common symbols not allowed in MH_DYLIB files
  7063. lt_prog_compiler_pic='-fno-common'
  7064. ;;
  7065. haiku*)
  7066. # PIC is the default for Haiku.
  7067. # The "-static" flag exists, but is broken.
  7068. lt_prog_compiler_static=
  7069. ;;
  7070. hpux*)
  7071. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7072. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7073. # sets the default TLS model and affects inlining.
  7074. case $host_cpu in
  7075. hppa*64*)
  7076. # +Z the default
  7077. ;;
  7078. *)
  7079. lt_prog_compiler_pic='-fPIC'
  7080. ;;
  7081. esac
  7082. ;;
  7083. interix[3-9]*)
  7084. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7085. # Instead, we relocate shared libraries at runtime.
  7086. ;;
  7087. msdosdjgpp*)
  7088. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7089. # on systems that don't support them.
  7090. lt_prog_compiler_can_build_shared=no
  7091. enable_shared=no
  7092. ;;
  7093. *nto* | *qnx*)
  7094. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7095. # it will coredump.
  7096. lt_prog_compiler_pic='-fPIC -shared'
  7097. ;;
  7098. sysv4*MP*)
  7099. if test -d /usr/nec; then
  7100. lt_prog_compiler_pic=-Kconform_pic
  7101. fi
  7102. ;;
  7103. *)
  7104. lt_prog_compiler_pic='-fPIC'
  7105. ;;
  7106. esac
  7107. case $cc_basename in
  7108. nvcc*) # Cuda Compiler Driver 2.2
  7109. lt_prog_compiler_wl='-Xlinker '
  7110. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7111. ;;
  7112. esac
  7113. else
  7114. # PORTME Check for flag to pass linker flags through the system compiler.
  7115. case $host_os in
  7116. aix*)
  7117. lt_prog_compiler_wl='-Wl,'
  7118. if test "$host_cpu" = ia64; then
  7119. # AIX 5 now supports IA64 processor
  7120. lt_prog_compiler_static='-Bstatic'
  7121. else
  7122. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7123. fi
  7124. ;;
  7125. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7126. # This hack is so that the source file can tell whether it is being
  7127. # built for inclusion in a dll (and should export symbols for example).
  7128. lt_prog_compiler_pic='-DDLL_EXPORT'
  7129. ;;
  7130. hpux9* | hpux10* | hpux11*)
  7131. lt_prog_compiler_wl='-Wl,'
  7132. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7133. # not for PA HP-UX.
  7134. case $host_cpu in
  7135. hppa*64*|ia64*)
  7136. # +Z the default
  7137. ;;
  7138. *)
  7139. lt_prog_compiler_pic='+Z'
  7140. ;;
  7141. esac
  7142. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7143. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7144. ;;
  7145. irix5* | irix6* | nonstopux*)
  7146. lt_prog_compiler_wl='-Wl,'
  7147. # PIC (with -KPIC) is the default.
  7148. lt_prog_compiler_static='-non_shared'
  7149. ;;
  7150. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7151. case $cc_basename in
  7152. # old Intel for x86_64 which still supported -KPIC.
  7153. ecc*)
  7154. lt_prog_compiler_wl='-Wl,'
  7155. lt_prog_compiler_pic='-KPIC'
  7156. lt_prog_compiler_static='-static'
  7157. ;;
  7158. # icc used to be incompatible with GCC.
  7159. # ICC 10 doesn't accept -KPIC any more.
  7160. icc* | ifort*)
  7161. lt_prog_compiler_wl='-Wl,'
  7162. lt_prog_compiler_pic='-fPIC'
  7163. lt_prog_compiler_static='-static'
  7164. ;;
  7165. # Lahey Fortran 8.1.
  7166. lf95*)
  7167. lt_prog_compiler_wl='-Wl,'
  7168. lt_prog_compiler_pic='--shared'
  7169. lt_prog_compiler_static='--static'
  7170. ;;
  7171. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7172. # Portland Group compilers (*not* the Pentium gcc compiler,
  7173. # which looks to be a dead project)
  7174. lt_prog_compiler_wl='-Wl,'
  7175. lt_prog_compiler_pic='-fpic'
  7176. lt_prog_compiler_static='-Bstatic'
  7177. ;;
  7178. ccc*)
  7179. lt_prog_compiler_wl='-Wl,'
  7180. # All Alpha code is PIC.
  7181. lt_prog_compiler_static='-non_shared'
  7182. ;;
  7183. xl* | bgxl* | bgf* | mpixl*)
  7184. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_pic='-qpic'
  7187. lt_prog_compiler_static='-qstaticlink'
  7188. ;;
  7189. *)
  7190. case `$CC -V 2>&1 | sed 5q` in
  7191. *Sun\ F* | *Sun*Fortran*)
  7192. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7193. lt_prog_compiler_pic='-KPIC'
  7194. lt_prog_compiler_static='-Bstatic'
  7195. lt_prog_compiler_wl=''
  7196. ;;
  7197. *Sun\ C*)
  7198. # Sun C 5.9
  7199. lt_prog_compiler_pic='-KPIC'
  7200. lt_prog_compiler_static='-Bstatic'
  7201. lt_prog_compiler_wl='-Wl,'
  7202. ;;
  7203. esac
  7204. ;;
  7205. esac
  7206. ;;
  7207. newsos6)
  7208. lt_prog_compiler_pic='-KPIC'
  7209. lt_prog_compiler_static='-Bstatic'
  7210. ;;
  7211. *nto* | *qnx*)
  7212. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7213. # it will coredump.
  7214. lt_prog_compiler_pic='-fPIC -shared'
  7215. ;;
  7216. osf3* | osf4* | osf5*)
  7217. lt_prog_compiler_wl='-Wl,'
  7218. # All OSF/1 code is PIC.
  7219. lt_prog_compiler_static='-non_shared'
  7220. ;;
  7221. rdos*)
  7222. lt_prog_compiler_static='-non_shared'
  7223. ;;
  7224. solaris*)
  7225. lt_prog_compiler_pic='-KPIC'
  7226. lt_prog_compiler_static='-Bstatic'
  7227. case $cc_basename in
  7228. f77* | f90* | f95*)
  7229. lt_prog_compiler_wl='-Qoption ld ';;
  7230. *)
  7231. lt_prog_compiler_wl='-Wl,';;
  7232. esac
  7233. ;;
  7234. sunos4*)
  7235. lt_prog_compiler_wl='-Qoption ld '
  7236. lt_prog_compiler_pic='-PIC'
  7237. lt_prog_compiler_static='-Bstatic'
  7238. ;;
  7239. sysv4 | sysv4.2uw2* | sysv4.3*)
  7240. lt_prog_compiler_wl='-Wl,'
  7241. lt_prog_compiler_pic='-KPIC'
  7242. lt_prog_compiler_static='-Bstatic'
  7243. ;;
  7244. sysv4*MP*)
  7245. if test -d /usr/nec ;then
  7246. lt_prog_compiler_pic='-Kconform_pic'
  7247. lt_prog_compiler_static='-Bstatic'
  7248. fi
  7249. ;;
  7250. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7251. lt_prog_compiler_wl='-Wl,'
  7252. lt_prog_compiler_pic='-KPIC'
  7253. lt_prog_compiler_static='-Bstatic'
  7254. ;;
  7255. unicos*)
  7256. lt_prog_compiler_wl='-Wl,'
  7257. lt_prog_compiler_can_build_shared=no
  7258. ;;
  7259. uts4*)
  7260. lt_prog_compiler_pic='-pic'
  7261. lt_prog_compiler_static='-Bstatic'
  7262. ;;
  7263. *)
  7264. lt_prog_compiler_can_build_shared=no
  7265. ;;
  7266. esac
  7267. fi
  7268. case $host_os in
  7269. # For platforms which do not support PIC, -DPIC is meaningless:
  7270. *djgpp*)
  7271. lt_prog_compiler_pic=
  7272. ;;
  7273. *)
  7274. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7275. ;;
  7276. esac
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7278. $as_echo "$lt_prog_compiler_pic" >&6; }
  7279. #
  7280. # Check to make sure the PIC flag actually works.
  7281. #
  7282. if test -n "$lt_prog_compiler_pic"; then
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7284. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7285. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7286. $as_echo_n "(cached) " >&6
  7287. else
  7288. lt_cv_prog_compiler_pic_works=no
  7289. ac_outfile=conftest.$ac_objext
  7290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7291. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7292. # Insert the option either (1) after the last *FLAGS variable, or
  7293. # (2) before a word containing "conftest.", or (3) at the end.
  7294. # Note that $ac_compile itself does not contain backslashes and begins
  7295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7296. # The option is referenced via a variable to avoid confusing sed.
  7297. lt_compile=`echo "$ac_compile" | $SED \
  7298. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7299. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7300. -e 's:$: $lt_compiler_flag:'`
  7301. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7302. (eval "$lt_compile" 2>conftest.err)
  7303. ac_status=$?
  7304. cat conftest.err >&5
  7305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7306. if (exit $ac_status) && test -s "$ac_outfile"; then
  7307. # The compiler can only warn and ignore the option if not recognized
  7308. # So say no if there are warnings other than the usual output.
  7309. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7311. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7312. lt_cv_prog_compiler_pic_works=yes
  7313. fi
  7314. fi
  7315. $RM conftest*
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7318. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7319. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7320. case $lt_prog_compiler_pic in
  7321. "" | " "*) ;;
  7322. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7323. esac
  7324. else
  7325. lt_prog_compiler_pic=
  7326. lt_prog_compiler_can_build_shared=no
  7327. fi
  7328. fi
  7329. #
  7330. # Check to make sure the static flag actually works.
  7331. #
  7332. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7334. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7335. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. lt_cv_prog_compiler_static_works=no
  7339. save_LDFLAGS="$LDFLAGS"
  7340. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7341. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7342. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7343. # The linker can only warn and ignore the option if not recognized
  7344. # So say no if there are warnings
  7345. if test -s conftest.err; then
  7346. # Append any errors to the config.log.
  7347. cat conftest.err 1>&5
  7348. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7349. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7350. if diff conftest.exp conftest.er2 >/dev/null; then
  7351. lt_cv_prog_compiler_static_works=yes
  7352. fi
  7353. else
  7354. lt_cv_prog_compiler_static_works=yes
  7355. fi
  7356. fi
  7357. $RM -r conftest*
  7358. LDFLAGS="$save_LDFLAGS"
  7359. fi
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7361. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7362. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7363. :
  7364. else
  7365. lt_prog_compiler_static=
  7366. fi
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7368. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7369. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7370. $as_echo_n "(cached) " >&6
  7371. else
  7372. lt_cv_prog_compiler_c_o=no
  7373. $RM -r conftest 2>/dev/null
  7374. mkdir conftest
  7375. cd conftest
  7376. mkdir out
  7377. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7378. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7379. # Insert the option either (1) after the last *FLAGS variable, or
  7380. # (2) before a word containing "conftest.", or (3) at the end.
  7381. # Note that $ac_compile itself does not contain backslashes and begins
  7382. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7383. lt_compile=`echo "$ac_compile" | $SED \
  7384. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7385. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7386. -e 's:$: $lt_compiler_flag:'`
  7387. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7388. (eval "$lt_compile" 2>out/conftest.err)
  7389. ac_status=$?
  7390. cat out/conftest.err >&5
  7391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7392. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7393. then
  7394. # The compiler can only warn and ignore the option if not recognized
  7395. # So say no if there are warnings
  7396. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7397. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7398. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7399. lt_cv_prog_compiler_c_o=yes
  7400. fi
  7401. fi
  7402. chmod u+w . 2>&5
  7403. $RM conftest*
  7404. # SGI C++ compiler will create directory out/ii_files/ for
  7405. # template instantiation
  7406. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7407. $RM out/* && rmdir out
  7408. cd ..
  7409. $RM -r conftest
  7410. $RM conftest*
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7413. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7415. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7416. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419. lt_cv_prog_compiler_c_o=no
  7420. $RM -r conftest 2>/dev/null
  7421. mkdir conftest
  7422. cd conftest
  7423. mkdir out
  7424. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7425. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7426. # Insert the option either (1) after the last *FLAGS variable, or
  7427. # (2) before a word containing "conftest.", or (3) at the end.
  7428. # Note that $ac_compile itself does not contain backslashes and begins
  7429. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7430. lt_compile=`echo "$ac_compile" | $SED \
  7431. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7432. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7433. -e 's:$: $lt_compiler_flag:'`
  7434. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7435. (eval "$lt_compile" 2>out/conftest.err)
  7436. ac_status=$?
  7437. cat out/conftest.err >&5
  7438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7440. then
  7441. # The compiler can only warn and ignore the option if not recognized
  7442. # So say no if there are warnings
  7443. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7444. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7445. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7446. lt_cv_prog_compiler_c_o=yes
  7447. fi
  7448. fi
  7449. chmod u+w . 2>&5
  7450. $RM conftest*
  7451. # SGI C++ compiler will create directory out/ii_files/ for
  7452. # template instantiation
  7453. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7454. $RM out/* && rmdir out
  7455. cd ..
  7456. $RM -r conftest
  7457. $RM conftest*
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7460. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7461. hard_links="nottested"
  7462. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7463. # do not overwrite the value of need_locks provided by the user
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7465. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7466. hard_links=yes
  7467. $RM conftest*
  7468. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7469. touch conftest.a
  7470. ln conftest.a conftest.b 2>&5 || hard_links=no
  7471. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7473. $as_echo "$hard_links" >&6; }
  7474. if test "$hard_links" = no; then
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7476. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7477. need_locks=warn
  7478. fi
  7479. else
  7480. need_locks=no
  7481. fi
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7483. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7484. runpath_var=
  7485. allow_undefined_flag=
  7486. always_export_symbols=no
  7487. archive_cmds=
  7488. archive_expsym_cmds=
  7489. compiler_needs_object=no
  7490. enable_shared_with_static_runtimes=no
  7491. export_dynamic_flag_spec=
  7492. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7493. hardcode_automatic=no
  7494. hardcode_direct=no
  7495. hardcode_direct_absolute=no
  7496. hardcode_libdir_flag_spec=
  7497. hardcode_libdir_flag_spec_ld=
  7498. hardcode_libdir_separator=
  7499. hardcode_minus_L=no
  7500. hardcode_shlibpath_var=unsupported
  7501. inherit_rpath=no
  7502. link_all_deplibs=unknown
  7503. module_cmds=
  7504. module_expsym_cmds=
  7505. old_archive_from_new_cmds=
  7506. old_archive_from_expsyms_cmds=
  7507. thread_safe_flag_spec=
  7508. whole_archive_flag_spec=
  7509. # include_expsyms should be a list of space-separated symbols to be *always*
  7510. # included in the symbol list
  7511. include_expsyms=
  7512. # exclude_expsyms can be an extended regexp of symbols to exclude
  7513. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7514. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7515. # as well as any symbol that contains `d'.
  7516. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7517. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7518. # platforms (ab)use it in PIC code, but their linkers get confused if
  7519. # the symbol is explicitly referenced. Since portable code cannot
  7520. # rely on this symbol name, it's probably fine to never include it in
  7521. # preloaded symbol tables.
  7522. # Exclude shared library initialization/finalization symbols.
  7523. extract_expsyms_cmds=
  7524. case $host_os in
  7525. cygwin* | mingw* | pw32* | cegcc*)
  7526. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7527. # When not using gcc, we currently assume that we are using
  7528. # Microsoft Visual C++.
  7529. if test "$GCC" != yes; then
  7530. with_gnu_ld=no
  7531. fi
  7532. ;;
  7533. interix*)
  7534. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7535. with_gnu_ld=yes
  7536. ;;
  7537. openbsd*)
  7538. with_gnu_ld=no
  7539. ;;
  7540. esac
  7541. ld_shlibs=yes
  7542. # On some targets, GNU ld is compatible enough with the native linker
  7543. # that we're better off using the native interface for both.
  7544. lt_use_gnu_ld_interface=no
  7545. if test "$with_gnu_ld" = yes; then
  7546. case $host_os in
  7547. aix*)
  7548. # The AIX port of GNU ld has always aspired to compatibility
  7549. # with the native linker. However, as the warning in the GNU ld
  7550. # block says, versions before 2.19.5* couldn't really create working
  7551. # shared libraries, regardless of the interface used.
  7552. case `$LD -v 2>&1` in
  7553. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7554. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7555. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7556. *)
  7557. lt_use_gnu_ld_interface=yes
  7558. ;;
  7559. esac
  7560. ;;
  7561. *)
  7562. lt_use_gnu_ld_interface=yes
  7563. ;;
  7564. esac
  7565. fi
  7566. if test "$lt_use_gnu_ld_interface" = yes; then
  7567. # If archive_cmds runs LD, not CC, wlarc should be empty
  7568. wlarc='${wl}'
  7569. # Set some defaults for GNU ld with shared library support. These
  7570. # are reset later if shared libraries are not supported. Putting them
  7571. # here allows them to be overridden if necessary.
  7572. runpath_var=LD_RUN_PATH
  7573. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7574. export_dynamic_flag_spec='${wl}--export-dynamic'
  7575. # ancient GNU ld didn't support --whole-archive et. al.
  7576. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7577. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7578. else
  7579. whole_archive_flag_spec=
  7580. fi
  7581. supports_anon_versioning=no
  7582. case `$LD -v 2>&1` in
  7583. *GNU\ gold*) supports_anon_versioning=yes ;;
  7584. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7585. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7586. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7587. *\ 2.11.*) ;; # other 2.11 versions
  7588. *) supports_anon_versioning=yes ;;
  7589. esac
  7590. # See if GNU ld supports shared libraries.
  7591. case $host_os in
  7592. aix[3-9]*)
  7593. # On AIX/PPC, the GNU linker is very broken
  7594. if test "$host_cpu" != ia64; then
  7595. ld_shlibs=no
  7596. cat <<_LT_EOF 1>&2
  7597. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7598. *** to be unable to reliably create shared libraries on AIX.
  7599. *** Therefore, libtool is disabling shared libraries support. If you
  7600. *** really care for shared libraries, you may want to install binutils
  7601. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7602. *** You will then need to restart the configuration process.
  7603. _LT_EOF
  7604. fi
  7605. ;;
  7606. amigaos*)
  7607. case $host_cpu in
  7608. powerpc)
  7609. # see comment about AmigaOS4 .so support
  7610. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7611. archive_expsym_cmds=''
  7612. ;;
  7613. m68k)
  7614. 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)'
  7615. hardcode_libdir_flag_spec='-L$libdir'
  7616. hardcode_minus_L=yes
  7617. ;;
  7618. esac
  7619. ;;
  7620. beos*)
  7621. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7622. allow_undefined_flag=unsupported
  7623. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7624. # support --undefined. This deserves some investigation. FIXME
  7625. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7626. else
  7627. ld_shlibs=no
  7628. fi
  7629. ;;
  7630. cygwin* | mingw* | pw32* | cegcc*)
  7631. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7632. # as there is no search path for DLLs.
  7633. hardcode_libdir_flag_spec='-L$libdir'
  7634. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7635. allow_undefined_flag=unsupported
  7636. always_export_symbols=no
  7637. enable_shared_with_static_runtimes=yes
  7638. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7639. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7640. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7641. # If the export-symbols file already is a .def file (1st line
  7642. # is EXPORTS), use it as is; otherwise, prepend...
  7643. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7644. cp $export_symbols $output_objdir/$soname.def;
  7645. else
  7646. echo EXPORTS > $output_objdir/$soname.def;
  7647. cat $export_symbols >> $output_objdir/$soname.def;
  7648. fi~
  7649. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7650. else
  7651. ld_shlibs=no
  7652. fi
  7653. ;;
  7654. haiku*)
  7655. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7656. link_all_deplibs=yes
  7657. ;;
  7658. interix[3-9]*)
  7659. hardcode_direct=no
  7660. hardcode_shlibpath_var=no
  7661. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7662. export_dynamic_flag_spec='${wl}-E'
  7663. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7664. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7665. # default) and relocated if they conflict, which is a slow very memory
  7666. # consuming and fragmenting process. To avoid this, we pick a random,
  7667. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7668. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7669. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7670. 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'
  7671. ;;
  7672. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7673. tmp_diet=no
  7674. if test "$host_os" = linux-dietlibc; then
  7675. case $cc_basename in
  7676. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7677. esac
  7678. fi
  7679. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7680. && test "$tmp_diet" = no
  7681. then
  7682. tmp_addflag=' $pic_flag'
  7683. tmp_sharedflag='-shared'
  7684. case $cc_basename,$host_cpu in
  7685. pgcc*) # Portland Group C compiler
  7686. 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'
  7687. tmp_addflag=' $pic_flag'
  7688. ;;
  7689. pgf77* | pgf90* | pgf95* | pgfortran*)
  7690. # Portland Group f77 and f90 compilers
  7691. 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'
  7692. tmp_addflag=' $pic_flag -Mnomain' ;;
  7693. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7694. tmp_addflag=' -i_dynamic' ;;
  7695. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7696. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7697. ifc* | ifort*) # Intel Fortran compiler
  7698. tmp_addflag=' -nofor_main' ;;
  7699. lf95*) # Lahey Fortran 8.1
  7700. whole_archive_flag_spec=
  7701. tmp_sharedflag='--shared' ;;
  7702. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7703. tmp_sharedflag='-qmkshrobj'
  7704. tmp_addflag= ;;
  7705. nvcc*) # Cuda Compiler Driver 2.2
  7706. 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'
  7707. compiler_needs_object=yes
  7708. ;;
  7709. esac
  7710. case `$CC -V 2>&1 | sed 5q` in
  7711. *Sun\ C*) # Sun C 5.9
  7712. 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'
  7713. compiler_needs_object=yes
  7714. tmp_sharedflag='-G' ;;
  7715. *Sun\ F*) # Sun Fortran 8.3
  7716. tmp_sharedflag='-G' ;;
  7717. esac
  7718. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7719. if test "x$supports_anon_versioning" = xyes; then
  7720. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7721. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7722. echo "local: *; };" >> $output_objdir/$libname.ver~
  7723. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7724. fi
  7725. case $cc_basename in
  7726. xlf* | bgf* | bgxlf* | mpixlf*)
  7727. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7728. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7729. hardcode_libdir_flag_spec=
  7730. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7731. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7732. if test "x$supports_anon_versioning" = xyes; then
  7733. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7734. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7735. echo "local: *; };" >> $output_objdir/$libname.ver~
  7736. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7737. fi
  7738. ;;
  7739. esac
  7740. else
  7741. ld_shlibs=no
  7742. fi
  7743. ;;
  7744. netbsd*)
  7745. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7746. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7747. wlarc=
  7748. else
  7749. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7750. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7751. fi
  7752. ;;
  7753. solaris*)
  7754. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7755. ld_shlibs=no
  7756. cat <<_LT_EOF 1>&2
  7757. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7758. *** create shared libraries on Solaris systems. Therefore, libtool
  7759. *** is disabling shared libraries support. We urge you to upgrade GNU
  7760. *** binutils to release 2.9.1 or newer. Another option is to modify
  7761. *** your PATH or compiler configuration so that the native linker is
  7762. *** used, and then restart.
  7763. _LT_EOF
  7764. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7765. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7766. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7767. else
  7768. ld_shlibs=no
  7769. fi
  7770. ;;
  7771. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7772. case `$LD -v 2>&1` in
  7773. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7774. ld_shlibs=no
  7775. cat <<_LT_EOF 1>&2
  7776. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7777. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7778. *** is disabling shared libraries support. We urge you to upgrade GNU
  7779. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7780. *** your PATH or compiler configuration so that the native linker is
  7781. *** used, and then restart.
  7782. _LT_EOF
  7783. ;;
  7784. *)
  7785. # For security reasons, it is highly recommended that you always
  7786. # use absolute paths for naming shared libraries, and exclude the
  7787. # DT_RUNPATH tag from executables and libraries. But doing so
  7788. # requires that you compile everything twice, which is a pain.
  7789. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7790. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7791. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7792. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7793. else
  7794. ld_shlibs=no
  7795. fi
  7796. ;;
  7797. esac
  7798. ;;
  7799. sunos4*)
  7800. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7801. wlarc=
  7802. hardcode_direct=yes
  7803. hardcode_shlibpath_var=no
  7804. ;;
  7805. *)
  7806. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7807. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7808. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7809. else
  7810. ld_shlibs=no
  7811. fi
  7812. ;;
  7813. esac
  7814. if test "$ld_shlibs" = no; then
  7815. runpath_var=
  7816. hardcode_libdir_flag_spec=
  7817. export_dynamic_flag_spec=
  7818. whole_archive_flag_spec=
  7819. fi
  7820. else
  7821. # PORTME fill in a description of your system's linker (not GNU ld)
  7822. case $host_os in
  7823. aix3*)
  7824. allow_undefined_flag=unsupported
  7825. always_export_symbols=yes
  7826. 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'
  7827. # Note: this linker hardcodes the directories in LIBPATH if there
  7828. # are no directories specified by -L.
  7829. hardcode_minus_L=yes
  7830. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7831. # Neither direct hardcoding nor static linking is supported with a
  7832. # broken collect2.
  7833. hardcode_direct=unsupported
  7834. fi
  7835. ;;
  7836. aix[4-9]*)
  7837. if test "$host_cpu" = ia64; then
  7838. # On IA64, the linker does run time linking by default, so we don't
  7839. # have to do anything special.
  7840. aix_use_runtimelinking=no
  7841. exp_sym_flag='-Bexport'
  7842. no_entry_flag=""
  7843. else
  7844. # If we're using GNU nm, then we don't want the "-C" option.
  7845. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7846. # Also, AIX nm treats weak defined symbols like other global
  7847. # defined symbols, whereas GNU nm marks them as "W".
  7848. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7849. 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'
  7850. else
  7851. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7852. fi
  7853. aix_use_runtimelinking=no
  7854. # Test if we are trying to use run time linking or normal
  7855. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7856. # need to do runtime linking.
  7857. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7858. for ld_flag in $LDFLAGS; do
  7859. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7860. aix_use_runtimelinking=yes
  7861. break
  7862. fi
  7863. done
  7864. ;;
  7865. esac
  7866. exp_sym_flag='-bexport'
  7867. no_entry_flag='-bnoentry'
  7868. fi
  7869. # When large executables or shared objects are built, AIX ld can
  7870. # have problems creating the table of contents. If linking a library
  7871. # or program results in "error TOC overflow" add -mminimal-toc to
  7872. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7873. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7874. archive_cmds=''
  7875. hardcode_direct=yes
  7876. hardcode_direct_absolute=yes
  7877. hardcode_libdir_separator=':'
  7878. link_all_deplibs=yes
  7879. file_list_spec='${wl}-f,'
  7880. if test "$GCC" = yes; then
  7881. case $host_os in aix4.[012]|aix4.[012].*)
  7882. # We only want to do this on AIX 4.2 and lower, the check
  7883. # below for broken collect2 doesn't work under 4.3+
  7884. collect2name=`${CC} -print-prog-name=collect2`
  7885. if test -f "$collect2name" &&
  7886. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7887. then
  7888. # We have reworked collect2
  7889. :
  7890. else
  7891. # We have old collect2
  7892. hardcode_direct=unsupported
  7893. # It fails to find uninstalled libraries when the uninstalled
  7894. # path is not listed in the libpath. Setting hardcode_minus_L
  7895. # to unsupported forces relinking
  7896. hardcode_minus_L=yes
  7897. hardcode_libdir_flag_spec='-L$libdir'
  7898. hardcode_libdir_separator=
  7899. fi
  7900. ;;
  7901. esac
  7902. shared_flag='-shared'
  7903. if test "$aix_use_runtimelinking" = yes; then
  7904. shared_flag="$shared_flag "'${wl}-G'
  7905. fi
  7906. else
  7907. # not using gcc
  7908. if test "$host_cpu" = ia64; then
  7909. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7910. # chokes on -Wl,-G. The following line is correct:
  7911. shared_flag='-G'
  7912. else
  7913. if test "$aix_use_runtimelinking" = yes; then
  7914. shared_flag='${wl}-G'
  7915. else
  7916. shared_flag='${wl}-bM:SRE'
  7917. fi
  7918. fi
  7919. fi
  7920. export_dynamic_flag_spec='${wl}-bexpall'
  7921. # It seems that -bexpall does not export symbols beginning with
  7922. # underscore (_), so it is better to generate a list of symbols to export.
  7923. always_export_symbols=yes
  7924. if test "$aix_use_runtimelinking" = yes; then
  7925. # Warning - without using the other runtime loading flags (-brtl),
  7926. # -berok will link without error, but may produce a broken library.
  7927. allow_undefined_flag='-berok'
  7928. # Determine the default libpath from the value encoded in an
  7929. # empty executable.
  7930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7931. /* end confdefs.h. */
  7932. int
  7933. main ()
  7934. {
  7935. ;
  7936. return 0;
  7937. }
  7938. _ACEOF
  7939. if ac_fn_c_try_link "$LINENO"; then :
  7940. lt_aix_libpath_sed='
  7941. /Import File Strings/,/^$/ {
  7942. /^0/ {
  7943. s/^0 *\(.*\)$/\1/
  7944. p
  7945. }
  7946. }'
  7947. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7948. # Check for a 64-bit object if we didn't find anything.
  7949. if test -z "$aix_libpath"; then
  7950. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7951. fi
  7952. fi
  7953. rm -f core conftest.err conftest.$ac_objext \
  7954. conftest$ac_exeext conftest.$ac_ext
  7955. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7956. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7957. 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"
  7958. else
  7959. if test "$host_cpu" = ia64; then
  7960. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7961. allow_undefined_flag="-z nodefs"
  7962. 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"
  7963. else
  7964. # Determine the default libpath from the value encoded in an
  7965. # empty executable.
  7966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7967. /* end confdefs.h. */
  7968. int
  7969. main ()
  7970. {
  7971. ;
  7972. return 0;
  7973. }
  7974. _ACEOF
  7975. if ac_fn_c_try_link "$LINENO"; then :
  7976. lt_aix_libpath_sed='
  7977. /Import File Strings/,/^$/ {
  7978. /^0/ {
  7979. s/^0 *\(.*\)$/\1/
  7980. p
  7981. }
  7982. }'
  7983. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7984. # Check for a 64-bit object if we didn't find anything.
  7985. if test -z "$aix_libpath"; then
  7986. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7987. fi
  7988. fi
  7989. rm -f core conftest.err conftest.$ac_objext \
  7990. conftest$ac_exeext conftest.$ac_ext
  7991. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7992. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7993. # Warning - without using the other run time loading flags,
  7994. # -berok will link without error, but may produce a broken library.
  7995. no_undefined_flag=' ${wl}-bernotok'
  7996. allow_undefined_flag=' ${wl}-berok'
  7997. if test "$with_gnu_ld" = yes; then
  7998. # We only use this code for GNU lds that support --whole-archive.
  7999. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8000. else
  8001. # Exported symbols can be pulled into shared objects from archives
  8002. whole_archive_flag_spec='$convenience'
  8003. fi
  8004. archive_cmds_need_lc=yes
  8005. # This is similar to how AIX traditionally builds its shared libraries.
  8006. 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'
  8007. fi
  8008. fi
  8009. ;;
  8010. amigaos*)
  8011. case $host_cpu in
  8012. powerpc)
  8013. # see comment about AmigaOS4 .so support
  8014. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8015. archive_expsym_cmds=''
  8016. ;;
  8017. m68k)
  8018. 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)'
  8019. hardcode_libdir_flag_spec='-L$libdir'
  8020. hardcode_minus_L=yes
  8021. ;;
  8022. esac
  8023. ;;
  8024. bsdi[45]*)
  8025. export_dynamic_flag_spec=-rdynamic
  8026. ;;
  8027. cygwin* | mingw* | pw32* | cegcc*)
  8028. # When not using gcc, we currently assume that we are using
  8029. # Microsoft Visual C++.
  8030. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8031. # no search path for DLLs.
  8032. hardcode_libdir_flag_spec=' '
  8033. allow_undefined_flag=unsupported
  8034. # Tell ltmain to make .lib files, not .a files.
  8035. libext=lib
  8036. # Tell ltmain to make .dll files, not .so files.
  8037. shrext_cmds=".dll"
  8038. # FIXME: Setting linknames here is a bad hack.
  8039. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8040. # The linker will automatically build a .lib file if we build a DLL.
  8041. old_archive_from_new_cmds='true'
  8042. # FIXME: Should let the user specify the lib program.
  8043. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8044. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8045. enable_shared_with_static_runtimes=yes
  8046. ;;
  8047. darwin* | rhapsody*)
  8048. archive_cmds_need_lc=no
  8049. hardcode_direct=no
  8050. hardcode_automatic=yes
  8051. hardcode_shlibpath_var=unsupported
  8052. if test "$lt_cv_ld_force_load" = "yes"; then
  8053. 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\"`'
  8054. else
  8055. whole_archive_flag_spec=''
  8056. fi
  8057. link_all_deplibs=yes
  8058. allow_undefined_flag="$_lt_dar_allow_undefined"
  8059. case $cc_basename in
  8060. ifort*) _lt_dar_can_shared=yes ;;
  8061. *) _lt_dar_can_shared=$GCC ;;
  8062. esac
  8063. if test "$_lt_dar_can_shared" = "yes"; then
  8064. output_verbose_link_cmd=func_echo_all
  8065. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8066. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8067. 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}"
  8068. 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}"
  8069. else
  8070. ld_shlibs=no
  8071. fi
  8072. ;;
  8073. dgux*)
  8074. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8075. hardcode_libdir_flag_spec='-L$libdir'
  8076. hardcode_shlibpath_var=no
  8077. ;;
  8078. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8079. # support. Future versions do this automatically, but an explicit c++rt0.o
  8080. # does not break anything, and helps significantly (at the cost of a little
  8081. # extra space).
  8082. freebsd2.2*)
  8083. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8084. hardcode_libdir_flag_spec='-R$libdir'
  8085. hardcode_direct=yes
  8086. hardcode_shlibpath_var=no
  8087. ;;
  8088. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8089. freebsd2.*)
  8090. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8091. hardcode_direct=yes
  8092. hardcode_minus_L=yes
  8093. hardcode_shlibpath_var=no
  8094. ;;
  8095. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8096. freebsd* | dragonfly*)
  8097. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8098. hardcode_libdir_flag_spec='-R$libdir'
  8099. hardcode_direct=yes
  8100. hardcode_shlibpath_var=no
  8101. ;;
  8102. hpux9*)
  8103. if test "$GCC" = yes; then
  8104. 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'
  8105. else
  8106. 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'
  8107. fi
  8108. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8109. hardcode_libdir_separator=:
  8110. hardcode_direct=yes
  8111. # hardcode_minus_L: Not really in the search PATH,
  8112. # but as the default location of the library.
  8113. hardcode_minus_L=yes
  8114. export_dynamic_flag_spec='${wl}-E'
  8115. ;;
  8116. hpux10*)
  8117. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8118. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8119. else
  8120. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8121. fi
  8122. if test "$with_gnu_ld" = no; then
  8123. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8124. hardcode_libdir_flag_spec_ld='+b $libdir'
  8125. hardcode_libdir_separator=:
  8126. hardcode_direct=yes
  8127. hardcode_direct_absolute=yes
  8128. export_dynamic_flag_spec='${wl}-E'
  8129. # hardcode_minus_L: Not really in the search PATH,
  8130. # but as the default location of the library.
  8131. hardcode_minus_L=yes
  8132. fi
  8133. ;;
  8134. hpux11*)
  8135. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8136. case $host_cpu in
  8137. hppa*64*)
  8138. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8139. ;;
  8140. ia64*)
  8141. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8142. ;;
  8143. *)
  8144. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8145. ;;
  8146. esac
  8147. else
  8148. case $host_cpu in
  8149. hppa*64*)
  8150. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8151. ;;
  8152. ia64*)
  8153. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8154. ;;
  8155. *)
  8156. # Older versions of the 11.00 compiler do not understand -b yet
  8157. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8159. $as_echo_n "checking if $CC understands -b... " >&6; }
  8160. if ${lt_cv_prog_compiler__b+:} false; then :
  8161. $as_echo_n "(cached) " >&6
  8162. else
  8163. lt_cv_prog_compiler__b=no
  8164. save_LDFLAGS="$LDFLAGS"
  8165. LDFLAGS="$LDFLAGS -b"
  8166. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8167. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8168. # The linker can only warn and ignore the option if not recognized
  8169. # So say no if there are warnings
  8170. if test -s conftest.err; then
  8171. # Append any errors to the config.log.
  8172. cat conftest.err 1>&5
  8173. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8174. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8175. if diff conftest.exp conftest.er2 >/dev/null; then
  8176. lt_cv_prog_compiler__b=yes
  8177. fi
  8178. else
  8179. lt_cv_prog_compiler__b=yes
  8180. fi
  8181. fi
  8182. $RM -r conftest*
  8183. LDFLAGS="$save_LDFLAGS"
  8184. fi
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8186. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8187. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8188. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8189. else
  8190. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8191. fi
  8192. ;;
  8193. esac
  8194. fi
  8195. if test "$with_gnu_ld" = no; then
  8196. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8197. hardcode_libdir_separator=:
  8198. case $host_cpu in
  8199. hppa*64*|ia64*)
  8200. hardcode_direct=no
  8201. hardcode_shlibpath_var=no
  8202. ;;
  8203. *)
  8204. hardcode_direct=yes
  8205. hardcode_direct_absolute=yes
  8206. export_dynamic_flag_spec='${wl}-E'
  8207. # hardcode_minus_L: Not really in the search PATH,
  8208. # but as the default location of the library.
  8209. hardcode_minus_L=yes
  8210. ;;
  8211. esac
  8212. fi
  8213. ;;
  8214. irix5* | irix6* | nonstopux*)
  8215. if test "$GCC" = yes; then
  8216. 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'
  8217. # Try to use the -exported_symbol ld option, if it does not
  8218. # work, assume that -exports_file does not work either and
  8219. # implicitly export all symbols.
  8220. save_LDFLAGS="$LDFLAGS"
  8221. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8223. /* end confdefs.h. */
  8224. int foo(void) {}
  8225. _ACEOF
  8226. if ac_fn_c_try_link "$LINENO"; then :
  8227. 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'
  8228. fi
  8229. rm -f core conftest.err conftest.$ac_objext \
  8230. conftest$ac_exeext conftest.$ac_ext
  8231. LDFLAGS="$save_LDFLAGS"
  8232. else
  8233. 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'
  8234. 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'
  8235. fi
  8236. archive_cmds_need_lc='no'
  8237. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8238. hardcode_libdir_separator=:
  8239. inherit_rpath=yes
  8240. link_all_deplibs=yes
  8241. ;;
  8242. netbsd*)
  8243. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8244. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8245. else
  8246. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8247. fi
  8248. hardcode_libdir_flag_spec='-R$libdir'
  8249. hardcode_direct=yes
  8250. hardcode_shlibpath_var=no
  8251. ;;
  8252. newsos6)
  8253. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8254. hardcode_direct=yes
  8255. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8256. hardcode_libdir_separator=:
  8257. hardcode_shlibpath_var=no
  8258. ;;
  8259. *nto* | *qnx*)
  8260. ;;
  8261. openbsd*)
  8262. if test -f /usr/libexec/ld.so; then
  8263. hardcode_direct=yes
  8264. hardcode_shlibpath_var=no
  8265. hardcode_direct_absolute=yes
  8266. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8267. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8268. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8269. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8270. export_dynamic_flag_spec='${wl}-E'
  8271. else
  8272. case $host_os in
  8273. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8274. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8275. hardcode_libdir_flag_spec='-R$libdir'
  8276. ;;
  8277. *)
  8278. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8279. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8280. ;;
  8281. esac
  8282. fi
  8283. else
  8284. ld_shlibs=no
  8285. fi
  8286. ;;
  8287. os2*)
  8288. hardcode_libdir_flag_spec='-L$libdir'
  8289. hardcode_minus_L=yes
  8290. allow_undefined_flag=unsupported
  8291. 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'
  8292. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8293. ;;
  8294. osf3*)
  8295. if test "$GCC" = yes; then
  8296. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8297. 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'
  8298. else
  8299. allow_undefined_flag=' -expect_unresolved \*'
  8300. 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'
  8301. fi
  8302. archive_cmds_need_lc='no'
  8303. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8304. hardcode_libdir_separator=:
  8305. ;;
  8306. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8307. if test "$GCC" = yes; then
  8308. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8309. 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'
  8310. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8311. else
  8312. allow_undefined_flag=' -expect_unresolved \*'
  8313. 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'
  8314. 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~
  8315. $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'
  8316. # Both c and cxx compiler support -rpath directly
  8317. hardcode_libdir_flag_spec='-rpath $libdir'
  8318. fi
  8319. archive_cmds_need_lc='no'
  8320. hardcode_libdir_separator=:
  8321. ;;
  8322. solaris*)
  8323. no_undefined_flag=' -z defs'
  8324. if test "$GCC" = yes; then
  8325. wlarc='${wl}'
  8326. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8327. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8328. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8329. else
  8330. case `$CC -V 2>&1` in
  8331. *"Compilers 5.0"*)
  8332. wlarc=''
  8333. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8334. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8335. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8336. ;;
  8337. *)
  8338. wlarc='${wl}'
  8339. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8340. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8341. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8342. ;;
  8343. esac
  8344. fi
  8345. hardcode_libdir_flag_spec='-R$libdir'
  8346. hardcode_shlibpath_var=no
  8347. case $host_os in
  8348. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8349. *)
  8350. # The compiler driver will combine and reorder linker options,
  8351. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8352. # but is careful enough not to reorder.
  8353. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8354. if test "$GCC" = yes; then
  8355. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8356. else
  8357. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8358. fi
  8359. ;;
  8360. esac
  8361. link_all_deplibs=yes
  8362. ;;
  8363. sunos4*)
  8364. if test "x$host_vendor" = xsequent; then
  8365. # Use $CC to link under sequent, because it throws in some extra .o
  8366. # files that make .init and .fini sections work.
  8367. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8368. else
  8369. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8370. fi
  8371. hardcode_libdir_flag_spec='-L$libdir'
  8372. hardcode_direct=yes
  8373. hardcode_minus_L=yes
  8374. hardcode_shlibpath_var=no
  8375. ;;
  8376. sysv4)
  8377. case $host_vendor in
  8378. sni)
  8379. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8380. hardcode_direct=yes # is this really true???
  8381. ;;
  8382. siemens)
  8383. ## LD is ld it makes a PLAMLIB
  8384. ## CC just makes a GrossModule.
  8385. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8386. reload_cmds='$CC -r -o $output$reload_objs'
  8387. hardcode_direct=no
  8388. ;;
  8389. motorola)
  8390. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8391. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8392. ;;
  8393. esac
  8394. runpath_var='LD_RUN_PATH'
  8395. hardcode_shlibpath_var=no
  8396. ;;
  8397. sysv4.3*)
  8398. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8399. hardcode_shlibpath_var=no
  8400. export_dynamic_flag_spec='-Bexport'
  8401. ;;
  8402. sysv4*MP*)
  8403. if test -d /usr/nec; then
  8404. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8405. hardcode_shlibpath_var=no
  8406. runpath_var=LD_RUN_PATH
  8407. hardcode_runpath_var=yes
  8408. ld_shlibs=yes
  8409. fi
  8410. ;;
  8411. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8412. no_undefined_flag='${wl}-z,text'
  8413. archive_cmds_need_lc=no
  8414. hardcode_shlibpath_var=no
  8415. runpath_var='LD_RUN_PATH'
  8416. if test "$GCC" = yes; then
  8417. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8418. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8419. else
  8420. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8421. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8422. fi
  8423. ;;
  8424. sysv5* | sco3.2v5* | sco5v6*)
  8425. # Note: We can NOT use -z defs as we might desire, because we do not
  8426. # link with -lc, and that would cause any symbols used from libc to
  8427. # always be unresolved, which means just about no library would
  8428. # ever link correctly. If we're not using GNU ld we use -z text
  8429. # though, which does catch some bad symbols but isn't as heavy-handed
  8430. # as -z defs.
  8431. no_undefined_flag='${wl}-z,text'
  8432. allow_undefined_flag='${wl}-z,nodefs'
  8433. archive_cmds_need_lc=no
  8434. hardcode_shlibpath_var=no
  8435. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8436. hardcode_libdir_separator=':'
  8437. link_all_deplibs=yes
  8438. export_dynamic_flag_spec='${wl}-Bexport'
  8439. runpath_var='LD_RUN_PATH'
  8440. if test "$GCC" = yes; then
  8441. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. else
  8444. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. fi
  8447. ;;
  8448. uts4*)
  8449. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8450. hardcode_libdir_flag_spec='-L$libdir'
  8451. hardcode_shlibpath_var=no
  8452. ;;
  8453. *)
  8454. ld_shlibs=no
  8455. ;;
  8456. esac
  8457. if test x$host_vendor = xsni; then
  8458. case $host in
  8459. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8460. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8461. ;;
  8462. esac
  8463. fi
  8464. fi
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8466. $as_echo "$ld_shlibs" >&6; }
  8467. test "$ld_shlibs" = no && can_build_shared=no
  8468. with_gnu_ld=$with_gnu_ld
  8469. #
  8470. # Do we need to explicitly link libc?
  8471. #
  8472. case "x$archive_cmds_need_lc" in
  8473. x|xyes)
  8474. # Assume -lc should be added
  8475. archive_cmds_need_lc=yes
  8476. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8477. case $archive_cmds in
  8478. *'~'*)
  8479. # FIXME: we may have to deal with multi-command sequences.
  8480. ;;
  8481. '$CC '*)
  8482. # Test whether the compiler implicitly links with -lc since on some
  8483. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8484. # to ld, don't add -lc before -lgcc.
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8486. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8487. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8488. $as_echo_n "(cached) " >&6
  8489. else
  8490. $RM conftest*
  8491. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8493. (eval $ac_compile) 2>&5
  8494. ac_status=$?
  8495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8496. test $ac_status = 0; } 2>conftest.err; then
  8497. soname=conftest
  8498. lib=conftest
  8499. libobjs=conftest.$ac_objext
  8500. deplibs=
  8501. wl=$lt_prog_compiler_wl
  8502. pic_flag=$lt_prog_compiler_pic
  8503. compiler_flags=-v
  8504. linker_flags=-v
  8505. verstring=
  8506. output_objdir=.
  8507. libname=conftest
  8508. lt_save_allow_undefined_flag=$allow_undefined_flag
  8509. allow_undefined_flag=
  8510. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8511. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8512. ac_status=$?
  8513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8514. test $ac_status = 0; }
  8515. then
  8516. lt_cv_archive_cmds_need_lc=no
  8517. else
  8518. lt_cv_archive_cmds_need_lc=yes
  8519. fi
  8520. allow_undefined_flag=$lt_save_allow_undefined_flag
  8521. else
  8522. cat conftest.err 1>&5
  8523. fi
  8524. $RM conftest*
  8525. fi
  8526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8527. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8528. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8529. ;;
  8530. esac
  8531. fi
  8532. ;;
  8533. esac
  8534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8535. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8536. if test "$GCC" = yes; then
  8537. case $host_os in
  8538. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8539. *) lt_awk_arg="/^libraries:/" ;;
  8540. esac
  8541. case $host_os in
  8542. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8543. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8544. esac
  8545. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8546. case $lt_search_path_spec in
  8547. *\;*)
  8548. # if the path contains ";" then we assume it to be the separator
  8549. # otherwise default to the standard path separator (i.e. ":") - it is
  8550. # assumed that no part of a normal pathname contains ";" but that should
  8551. # okay in the real world where ";" in dirpaths is itself problematic.
  8552. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8553. ;;
  8554. *)
  8555. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8556. ;;
  8557. esac
  8558. # Ok, now we have the path, separated by spaces, we can step through it
  8559. # and add multilib dir if necessary.
  8560. lt_tmp_lt_search_path_spec=
  8561. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8562. for lt_sys_path in $lt_search_path_spec; do
  8563. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8564. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8565. else
  8566. test -d "$lt_sys_path" && \
  8567. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8568. fi
  8569. done
  8570. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8571. BEGIN {RS=" "; FS="/|\n";} {
  8572. lt_foo="";
  8573. lt_count=0;
  8574. for (lt_i = NF; lt_i > 0; lt_i--) {
  8575. if ($lt_i != "" && $lt_i != ".") {
  8576. if ($lt_i == "..") {
  8577. lt_count++;
  8578. } else {
  8579. if (lt_count == 0) {
  8580. lt_foo="/" $lt_i lt_foo;
  8581. } else {
  8582. lt_count--;
  8583. }
  8584. }
  8585. }
  8586. }
  8587. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8588. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8589. }'`
  8590. # AWK program above erroneously prepends '/' to C:/dos/paths
  8591. # for these hosts.
  8592. case $host_os in
  8593. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8594. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8595. esac
  8596. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8597. else
  8598. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8599. fi
  8600. library_names_spec=
  8601. libname_spec='lib$name'
  8602. soname_spec=
  8603. shrext_cmds=".so"
  8604. postinstall_cmds=
  8605. postuninstall_cmds=
  8606. finish_cmds=
  8607. finish_eval=
  8608. shlibpath_var=
  8609. shlibpath_overrides_runpath=unknown
  8610. version_type=none
  8611. dynamic_linker="$host_os ld.so"
  8612. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8613. need_lib_prefix=unknown
  8614. hardcode_into_libs=no
  8615. # when you set need_version to no, make sure it does not cause -set_version
  8616. # flags to be left without arguments
  8617. need_version=unknown
  8618. case $host_os in
  8619. aix3*)
  8620. version_type=linux
  8621. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8622. shlibpath_var=LIBPATH
  8623. # AIX 3 has no versioning support, so we append a major version to the name.
  8624. soname_spec='${libname}${release}${shared_ext}$major'
  8625. ;;
  8626. aix[4-9]*)
  8627. version_type=linux
  8628. need_lib_prefix=no
  8629. need_version=no
  8630. hardcode_into_libs=yes
  8631. if test "$host_cpu" = ia64; then
  8632. # AIX 5 supports IA64
  8633. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8634. shlibpath_var=LD_LIBRARY_PATH
  8635. else
  8636. # With GCC up to 2.95.x, collect2 would create an import file
  8637. # for dependence libraries. The import file would start with
  8638. # the line `#! .'. This would cause the generated library to
  8639. # depend on `.', always an invalid library. This was fixed in
  8640. # development snapshots of GCC prior to 3.0.
  8641. case $host_os in
  8642. aix4 | aix4.[01] | aix4.[01].*)
  8643. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8644. echo ' yes '
  8645. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8646. :
  8647. else
  8648. can_build_shared=no
  8649. fi
  8650. ;;
  8651. esac
  8652. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8653. # soname into executable. Probably we can add versioning support to
  8654. # collect2, so additional links can be useful in future.
  8655. if test "$aix_use_runtimelinking" = yes; then
  8656. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8657. # instead of lib<name>.a to let people know that these are not
  8658. # typical AIX shared libraries.
  8659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8660. else
  8661. # We preserve .a as extension for shared libraries through AIX4.2
  8662. # and later when we are not doing run time linking.
  8663. library_names_spec='${libname}${release}.a $libname.a'
  8664. soname_spec='${libname}${release}${shared_ext}$major'
  8665. fi
  8666. shlibpath_var=LIBPATH
  8667. fi
  8668. ;;
  8669. amigaos*)
  8670. case $host_cpu in
  8671. powerpc)
  8672. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8673. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8675. ;;
  8676. m68k)
  8677. library_names_spec='$libname.ixlibrary $libname.a'
  8678. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8679. 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'
  8680. ;;
  8681. esac
  8682. ;;
  8683. beos*)
  8684. library_names_spec='${libname}${shared_ext}'
  8685. dynamic_linker="$host_os ld.so"
  8686. shlibpath_var=LIBRARY_PATH
  8687. ;;
  8688. bsdi[45]*)
  8689. version_type=linux
  8690. need_version=no
  8691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8692. soname_spec='${libname}${release}${shared_ext}$major'
  8693. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8694. shlibpath_var=LD_LIBRARY_PATH
  8695. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8696. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8697. # the default ld.so.conf also contains /usr/contrib/lib and
  8698. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8699. # libtool to hard-code these into programs
  8700. ;;
  8701. cygwin* | mingw* | pw32* | cegcc*)
  8702. version_type=windows
  8703. shrext_cmds=".dll"
  8704. need_version=no
  8705. need_lib_prefix=no
  8706. case $GCC,$host_os in
  8707. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8708. library_names_spec='$libname.dll.a'
  8709. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8710. postinstall_cmds='base_file=`basename \${file}`~
  8711. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8712. dldir=$destdir/`dirname \$dlpath`~
  8713. test -d \$dldir || mkdir -p \$dldir~
  8714. $install_prog $dir/$dlname \$dldir/$dlname~
  8715. chmod a+x \$dldir/$dlname~
  8716. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8717. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8718. fi'
  8719. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8720. dlpath=$dir/\$dldll~
  8721. $RM \$dlpath'
  8722. shlibpath_overrides_runpath=yes
  8723. case $host_os in
  8724. cygwin*)
  8725. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8726. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8727. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8728. ;;
  8729. mingw* | cegcc*)
  8730. # MinGW DLLs use traditional 'lib' prefix
  8731. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8732. ;;
  8733. pw32*)
  8734. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8735. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8736. ;;
  8737. esac
  8738. ;;
  8739. *)
  8740. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8741. ;;
  8742. esac
  8743. dynamic_linker='Win32 ld.exe'
  8744. # FIXME: first we should search . and the directory the executable is in
  8745. shlibpath_var=PATH
  8746. ;;
  8747. darwin* | rhapsody*)
  8748. dynamic_linker="$host_os dyld"
  8749. version_type=darwin
  8750. need_lib_prefix=no
  8751. need_version=no
  8752. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8753. soname_spec='${libname}${release}${major}$shared_ext'
  8754. shlibpath_overrides_runpath=yes
  8755. shlibpath_var=DYLD_LIBRARY_PATH
  8756. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8757. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8758. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8759. ;;
  8760. dgux*)
  8761. version_type=linux
  8762. need_lib_prefix=no
  8763. need_version=no
  8764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8765. soname_spec='${libname}${release}${shared_ext}$major'
  8766. shlibpath_var=LD_LIBRARY_PATH
  8767. ;;
  8768. freebsd* | dragonfly*)
  8769. # DragonFly does not have aout. When/if they implement a new
  8770. # versioning mechanism, adjust this.
  8771. if test -x /usr/bin/objformat; then
  8772. objformat=`/usr/bin/objformat`
  8773. else
  8774. case $host_os in
  8775. freebsd[23].*) objformat=aout ;;
  8776. *) objformat=elf ;;
  8777. esac
  8778. fi
  8779. version_type=freebsd-$objformat
  8780. case $version_type in
  8781. freebsd-elf*)
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8783. need_version=no
  8784. need_lib_prefix=no
  8785. ;;
  8786. freebsd-*)
  8787. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8788. need_version=yes
  8789. ;;
  8790. esac
  8791. shlibpath_var=LD_LIBRARY_PATH
  8792. case $host_os in
  8793. freebsd2.*)
  8794. shlibpath_overrides_runpath=yes
  8795. ;;
  8796. freebsd3.[01]* | freebsdelf3.[01]*)
  8797. shlibpath_overrides_runpath=yes
  8798. hardcode_into_libs=yes
  8799. ;;
  8800. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8801. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8802. shlibpath_overrides_runpath=no
  8803. hardcode_into_libs=yes
  8804. ;;
  8805. *) # from 4.6 on, and DragonFly
  8806. shlibpath_overrides_runpath=yes
  8807. hardcode_into_libs=yes
  8808. ;;
  8809. esac
  8810. ;;
  8811. haiku*)
  8812. version_type=linux
  8813. need_lib_prefix=no
  8814. need_version=no
  8815. dynamic_linker="$host_os runtime_loader"
  8816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8817. soname_spec='${libname}${release}${shared_ext}$major'
  8818. shlibpath_var=LIBRARY_PATH
  8819. shlibpath_overrides_runpath=yes
  8820. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8821. hardcode_into_libs=yes
  8822. ;;
  8823. hpux9* | hpux10* | hpux11*)
  8824. # Give a soname corresponding to the major version so that dld.sl refuses to
  8825. # link against other versions.
  8826. version_type=sunos
  8827. need_lib_prefix=no
  8828. need_version=no
  8829. case $host_cpu in
  8830. ia64*)
  8831. shrext_cmds='.so'
  8832. hardcode_into_libs=yes
  8833. dynamic_linker="$host_os dld.so"
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8837. soname_spec='${libname}${release}${shared_ext}$major'
  8838. if test "X$HPUX_IA64_MODE" = X32; then
  8839. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8840. else
  8841. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8842. fi
  8843. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8844. ;;
  8845. hppa*64*)
  8846. shrext_cmds='.sl'
  8847. hardcode_into_libs=yes
  8848. dynamic_linker="$host_os dld.sl"
  8849. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8850. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8852. soname_spec='${libname}${release}${shared_ext}$major'
  8853. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8854. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8855. ;;
  8856. *)
  8857. shrext_cmds='.sl'
  8858. dynamic_linker="$host_os dld.sl"
  8859. shlibpath_var=SHLIB_PATH
  8860. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8862. soname_spec='${libname}${release}${shared_ext}$major'
  8863. ;;
  8864. esac
  8865. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8866. postinstall_cmds='chmod 555 $lib'
  8867. # or fails outright, so override atomically:
  8868. install_override_mode=555
  8869. ;;
  8870. interix[3-9]*)
  8871. version_type=linux
  8872. need_lib_prefix=no
  8873. need_version=no
  8874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8875. soname_spec='${libname}${release}${shared_ext}$major'
  8876. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8877. shlibpath_var=LD_LIBRARY_PATH
  8878. shlibpath_overrides_runpath=no
  8879. hardcode_into_libs=yes
  8880. ;;
  8881. irix5* | irix6* | nonstopux*)
  8882. case $host_os in
  8883. nonstopux*) version_type=nonstopux ;;
  8884. *)
  8885. if test "$lt_cv_prog_gnu_ld" = yes; then
  8886. version_type=linux
  8887. else
  8888. version_type=irix
  8889. fi ;;
  8890. esac
  8891. need_lib_prefix=no
  8892. need_version=no
  8893. soname_spec='${libname}${release}${shared_ext}$major'
  8894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8895. case $host_os in
  8896. irix5* | nonstopux*)
  8897. libsuff= shlibsuff=
  8898. ;;
  8899. *)
  8900. case $LD in # libtool.m4 will add one of these switches to LD
  8901. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8902. libsuff= shlibsuff= libmagic=32-bit;;
  8903. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8904. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8905. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8906. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8907. *) libsuff= shlibsuff= libmagic=never-match;;
  8908. esac
  8909. ;;
  8910. esac
  8911. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8912. shlibpath_overrides_runpath=no
  8913. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8914. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8915. hardcode_into_libs=yes
  8916. ;;
  8917. # No shared lib support for Linux oldld, aout, or coff.
  8918. linux*oldld* | linux*aout* | linux*coff*)
  8919. dynamic_linker=no
  8920. ;;
  8921. # This must be Linux ELF.
  8922. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8923. version_type=linux
  8924. need_lib_prefix=no
  8925. need_version=no
  8926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8927. soname_spec='${libname}${release}${shared_ext}$major'
  8928. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8929. shlibpath_var=LD_LIBRARY_PATH
  8930. shlibpath_overrides_runpath=no
  8931. # Some binutils ld are patched to set DT_RUNPATH
  8932. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8933. $as_echo_n "(cached) " >&6
  8934. else
  8935. lt_cv_shlibpath_overrides_runpath=no
  8936. save_LDFLAGS=$LDFLAGS
  8937. save_libdir=$libdir
  8938. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8939. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8941. /* end confdefs.h. */
  8942. int
  8943. main ()
  8944. {
  8945. ;
  8946. return 0;
  8947. }
  8948. _ACEOF
  8949. if ac_fn_c_try_link "$LINENO"; then :
  8950. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8951. lt_cv_shlibpath_overrides_runpath=yes
  8952. fi
  8953. fi
  8954. rm -f core conftest.err conftest.$ac_objext \
  8955. conftest$ac_exeext conftest.$ac_ext
  8956. LDFLAGS=$save_LDFLAGS
  8957. libdir=$save_libdir
  8958. fi
  8959. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8960. # This implies no fast_install, which is unacceptable.
  8961. # Some rework will be needed to allow for fast_install
  8962. # before this can be enabled.
  8963. hardcode_into_libs=yes
  8964. # Append ld.so.conf contents to the search path
  8965. if test -f /etc/ld.so.conf; then
  8966. 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' ' '`
  8967. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8968. fi
  8969. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8970. # powerpc, because MkLinux only supported shared libraries with the
  8971. # GNU dynamic linker. Since this was broken with cross compilers,
  8972. # most powerpc-linux boxes support dynamic linking these days and
  8973. # people can always --disable-shared, the test was removed, and we
  8974. # assume the GNU/Linux dynamic linker is in use.
  8975. dynamic_linker='GNU/Linux ld.so'
  8976. ;;
  8977. netbsd*)
  8978. version_type=sunos
  8979. need_lib_prefix=no
  8980. need_version=no
  8981. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8983. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8984. dynamic_linker='NetBSD (a.out) ld.so'
  8985. else
  8986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8987. soname_spec='${libname}${release}${shared_ext}$major'
  8988. dynamic_linker='NetBSD ld.elf_so'
  8989. fi
  8990. shlibpath_var=LD_LIBRARY_PATH
  8991. shlibpath_overrides_runpath=yes
  8992. hardcode_into_libs=yes
  8993. ;;
  8994. newsos6)
  8995. version_type=linux
  8996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8997. shlibpath_var=LD_LIBRARY_PATH
  8998. shlibpath_overrides_runpath=yes
  8999. ;;
  9000. *nto* | *qnx*)
  9001. version_type=qnx
  9002. need_lib_prefix=no
  9003. need_version=no
  9004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9005. soname_spec='${libname}${release}${shared_ext}$major'
  9006. shlibpath_var=LD_LIBRARY_PATH
  9007. shlibpath_overrides_runpath=no
  9008. hardcode_into_libs=yes
  9009. dynamic_linker='ldqnx.so'
  9010. ;;
  9011. openbsd*)
  9012. version_type=sunos
  9013. sys_lib_dlsearch_path_spec="/usr/lib"
  9014. need_lib_prefix=no
  9015. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9016. case $host_os in
  9017. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9018. *) need_version=no ;;
  9019. esac
  9020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9021. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9022. shlibpath_var=LD_LIBRARY_PATH
  9023. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9024. case $host_os in
  9025. openbsd2.[89] | openbsd2.[89].*)
  9026. shlibpath_overrides_runpath=no
  9027. ;;
  9028. *)
  9029. shlibpath_overrides_runpath=yes
  9030. ;;
  9031. esac
  9032. else
  9033. shlibpath_overrides_runpath=yes
  9034. fi
  9035. ;;
  9036. os2*)
  9037. libname_spec='$name'
  9038. shrext_cmds=".dll"
  9039. need_lib_prefix=no
  9040. library_names_spec='$libname${shared_ext} $libname.a'
  9041. dynamic_linker='OS/2 ld.exe'
  9042. shlibpath_var=LIBPATH
  9043. ;;
  9044. osf3* | osf4* | osf5*)
  9045. version_type=osf
  9046. need_lib_prefix=no
  9047. need_version=no
  9048. soname_spec='${libname}${release}${shared_ext}$major'
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9050. shlibpath_var=LD_LIBRARY_PATH
  9051. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9052. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9053. ;;
  9054. rdos*)
  9055. dynamic_linker=no
  9056. ;;
  9057. solaris*)
  9058. version_type=linux
  9059. need_lib_prefix=no
  9060. need_version=no
  9061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9062. soname_spec='${libname}${release}${shared_ext}$major'
  9063. shlibpath_var=LD_LIBRARY_PATH
  9064. shlibpath_overrides_runpath=yes
  9065. hardcode_into_libs=yes
  9066. # ldd complains unless libraries are executable
  9067. postinstall_cmds='chmod +x $lib'
  9068. ;;
  9069. sunos4*)
  9070. version_type=sunos
  9071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9072. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. shlibpath_overrides_runpath=yes
  9075. if test "$with_gnu_ld" = yes; then
  9076. need_lib_prefix=no
  9077. fi
  9078. need_version=yes
  9079. ;;
  9080. sysv4 | sysv4.3*)
  9081. version_type=linux
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9083. soname_spec='${libname}${release}${shared_ext}$major'
  9084. shlibpath_var=LD_LIBRARY_PATH
  9085. case $host_vendor in
  9086. sni)
  9087. shlibpath_overrides_runpath=no
  9088. need_lib_prefix=no
  9089. runpath_var=LD_RUN_PATH
  9090. ;;
  9091. siemens)
  9092. need_lib_prefix=no
  9093. ;;
  9094. motorola)
  9095. need_lib_prefix=no
  9096. need_version=no
  9097. shlibpath_overrides_runpath=no
  9098. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9099. ;;
  9100. esac
  9101. ;;
  9102. sysv4*MP*)
  9103. if test -d /usr/nec ;then
  9104. version_type=linux
  9105. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9106. soname_spec='$libname${shared_ext}.$major'
  9107. shlibpath_var=LD_LIBRARY_PATH
  9108. fi
  9109. ;;
  9110. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9111. version_type=freebsd-elf
  9112. need_lib_prefix=no
  9113. need_version=no
  9114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9115. soname_spec='${libname}${release}${shared_ext}$major'
  9116. shlibpath_var=LD_LIBRARY_PATH
  9117. shlibpath_overrides_runpath=yes
  9118. hardcode_into_libs=yes
  9119. if test "$with_gnu_ld" = yes; then
  9120. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9121. else
  9122. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9123. case $host_os in
  9124. sco3.2v5*)
  9125. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9126. ;;
  9127. esac
  9128. fi
  9129. sys_lib_dlsearch_path_spec='/usr/lib'
  9130. ;;
  9131. tpf*)
  9132. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9133. version_type=linux
  9134. need_lib_prefix=no
  9135. need_version=no
  9136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9137. shlibpath_var=LD_LIBRARY_PATH
  9138. shlibpath_overrides_runpath=no
  9139. hardcode_into_libs=yes
  9140. ;;
  9141. uts4*)
  9142. version_type=linux
  9143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9144. soname_spec='${libname}${release}${shared_ext}$major'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. ;;
  9147. *)
  9148. dynamic_linker=no
  9149. ;;
  9150. esac
  9151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9152. $as_echo "$dynamic_linker" >&6; }
  9153. test "$dynamic_linker" = no && can_build_shared=no
  9154. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9155. if test "$GCC" = yes; then
  9156. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9157. fi
  9158. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9159. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9160. fi
  9161. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9162. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9163. fi
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9165. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9166. hardcode_action=
  9167. if test -n "$hardcode_libdir_flag_spec" ||
  9168. test -n "$runpath_var" ||
  9169. test "X$hardcode_automatic" = "Xyes" ; then
  9170. # We can hardcode non-existent directories.
  9171. if test "$hardcode_direct" != no &&
  9172. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9173. # have to relink, otherwise we might link with an installed library
  9174. # when we should be linking with a yet-to-be-installed one
  9175. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9176. test "$hardcode_minus_L" != no; then
  9177. # Linking always hardcodes the temporary library directory.
  9178. hardcode_action=relink
  9179. else
  9180. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9181. hardcode_action=immediate
  9182. fi
  9183. else
  9184. # We cannot hardcode anything, or else we can only hardcode existing
  9185. # directories.
  9186. hardcode_action=unsupported
  9187. fi
  9188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9189. $as_echo "$hardcode_action" >&6; }
  9190. if test "$hardcode_action" = relink ||
  9191. test "$inherit_rpath" = yes; then
  9192. # Fast installation is not supported
  9193. enable_fast_install=no
  9194. elif test "$shlibpath_overrides_runpath" = yes ||
  9195. test "$enable_shared" = no; then
  9196. # Fast installation is not necessary
  9197. enable_fast_install=needless
  9198. fi
  9199. if test "x$enable_dlopen" != xyes; then
  9200. enable_dlopen=unknown
  9201. enable_dlopen_self=unknown
  9202. enable_dlopen_self_static=unknown
  9203. else
  9204. lt_cv_dlopen=no
  9205. lt_cv_dlopen_libs=
  9206. case $host_os in
  9207. beos*)
  9208. lt_cv_dlopen="load_add_on"
  9209. lt_cv_dlopen_libs=
  9210. lt_cv_dlopen_self=yes
  9211. ;;
  9212. mingw* | pw32* | cegcc*)
  9213. lt_cv_dlopen="LoadLibrary"
  9214. lt_cv_dlopen_libs=
  9215. ;;
  9216. cygwin*)
  9217. lt_cv_dlopen="dlopen"
  9218. lt_cv_dlopen_libs=
  9219. ;;
  9220. darwin*)
  9221. # if libdl is installed we need to link against it
  9222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9223. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9224. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9225. $as_echo_n "(cached) " >&6
  9226. else
  9227. ac_check_lib_save_LIBS=$LIBS
  9228. LIBS="-ldl $LIBS"
  9229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9230. /* end confdefs.h. */
  9231. /* Override any GCC internal prototype to avoid an error.
  9232. Use char because int might match the return type of a GCC
  9233. builtin and then its argument prototype would still apply. */
  9234. #ifdef __cplusplus
  9235. extern "C"
  9236. #endif
  9237. char dlopen ();
  9238. int
  9239. main ()
  9240. {
  9241. return dlopen ();
  9242. ;
  9243. return 0;
  9244. }
  9245. _ACEOF
  9246. if ac_fn_c_try_link "$LINENO"; then :
  9247. ac_cv_lib_dl_dlopen=yes
  9248. else
  9249. ac_cv_lib_dl_dlopen=no
  9250. fi
  9251. rm -f core conftest.err conftest.$ac_objext \
  9252. conftest$ac_exeext conftest.$ac_ext
  9253. LIBS=$ac_check_lib_save_LIBS
  9254. fi
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9256. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9257. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9258. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9259. else
  9260. lt_cv_dlopen="dyld"
  9261. lt_cv_dlopen_libs=
  9262. lt_cv_dlopen_self=yes
  9263. fi
  9264. ;;
  9265. *)
  9266. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9267. if test "x$ac_cv_func_shl_load" = xyes; then :
  9268. lt_cv_dlopen="shl_load"
  9269. else
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9271. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9272. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9273. $as_echo_n "(cached) " >&6
  9274. else
  9275. ac_check_lib_save_LIBS=$LIBS
  9276. LIBS="-ldld $LIBS"
  9277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9278. /* end confdefs.h. */
  9279. /* Override any GCC internal prototype to avoid an error.
  9280. Use char because int might match the return type of a GCC
  9281. builtin and then its argument prototype would still apply. */
  9282. #ifdef __cplusplus
  9283. extern "C"
  9284. #endif
  9285. char shl_load ();
  9286. int
  9287. main ()
  9288. {
  9289. return shl_load ();
  9290. ;
  9291. return 0;
  9292. }
  9293. _ACEOF
  9294. if ac_fn_c_try_link "$LINENO"; then :
  9295. ac_cv_lib_dld_shl_load=yes
  9296. else
  9297. ac_cv_lib_dld_shl_load=no
  9298. fi
  9299. rm -f core conftest.err conftest.$ac_objext \
  9300. conftest$ac_exeext conftest.$ac_ext
  9301. LIBS=$ac_check_lib_save_LIBS
  9302. fi
  9303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9304. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9305. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9306. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9307. else
  9308. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9309. if test "x$ac_cv_func_dlopen" = xyes; then :
  9310. lt_cv_dlopen="dlopen"
  9311. else
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9313. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9314. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9315. $as_echo_n "(cached) " >&6
  9316. else
  9317. ac_check_lib_save_LIBS=$LIBS
  9318. LIBS="-ldl $LIBS"
  9319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9320. /* end confdefs.h. */
  9321. /* Override any GCC internal prototype to avoid an error.
  9322. Use char because int might match the return type of a GCC
  9323. builtin and then its argument prototype would still apply. */
  9324. #ifdef __cplusplus
  9325. extern "C"
  9326. #endif
  9327. char dlopen ();
  9328. int
  9329. main ()
  9330. {
  9331. return dlopen ();
  9332. ;
  9333. return 0;
  9334. }
  9335. _ACEOF
  9336. if ac_fn_c_try_link "$LINENO"; then :
  9337. ac_cv_lib_dl_dlopen=yes
  9338. else
  9339. ac_cv_lib_dl_dlopen=no
  9340. fi
  9341. rm -f core conftest.err conftest.$ac_objext \
  9342. conftest$ac_exeext conftest.$ac_ext
  9343. LIBS=$ac_check_lib_save_LIBS
  9344. fi
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9346. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9347. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9348. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9349. else
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9351. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9352. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9353. $as_echo_n "(cached) " >&6
  9354. else
  9355. ac_check_lib_save_LIBS=$LIBS
  9356. LIBS="-lsvld $LIBS"
  9357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9358. /* end confdefs.h. */
  9359. /* Override any GCC internal prototype to avoid an error.
  9360. Use char because int might match the return type of a GCC
  9361. builtin and then its argument prototype would still apply. */
  9362. #ifdef __cplusplus
  9363. extern "C"
  9364. #endif
  9365. char dlopen ();
  9366. int
  9367. main ()
  9368. {
  9369. return dlopen ();
  9370. ;
  9371. return 0;
  9372. }
  9373. _ACEOF
  9374. if ac_fn_c_try_link "$LINENO"; then :
  9375. ac_cv_lib_svld_dlopen=yes
  9376. else
  9377. ac_cv_lib_svld_dlopen=no
  9378. fi
  9379. rm -f core conftest.err conftest.$ac_objext \
  9380. conftest$ac_exeext conftest.$ac_ext
  9381. LIBS=$ac_check_lib_save_LIBS
  9382. fi
  9383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9384. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9385. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9386. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9387. else
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9389. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9390. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. ac_check_lib_save_LIBS=$LIBS
  9394. LIBS="-ldld $LIBS"
  9395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9396. /* end confdefs.h. */
  9397. /* Override any GCC internal prototype to avoid an error.
  9398. Use char because int might match the return type of a GCC
  9399. builtin and then its argument prototype would still apply. */
  9400. #ifdef __cplusplus
  9401. extern "C"
  9402. #endif
  9403. char dld_link ();
  9404. int
  9405. main ()
  9406. {
  9407. return dld_link ();
  9408. ;
  9409. return 0;
  9410. }
  9411. _ACEOF
  9412. if ac_fn_c_try_link "$LINENO"; then :
  9413. ac_cv_lib_dld_dld_link=yes
  9414. else
  9415. ac_cv_lib_dld_dld_link=no
  9416. fi
  9417. rm -f core conftest.err conftest.$ac_objext \
  9418. conftest$ac_exeext conftest.$ac_ext
  9419. LIBS=$ac_check_lib_save_LIBS
  9420. fi
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9422. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9423. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9424. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9425. fi
  9426. fi
  9427. fi
  9428. fi
  9429. fi
  9430. fi
  9431. ;;
  9432. esac
  9433. if test "x$lt_cv_dlopen" != xno; then
  9434. enable_dlopen=yes
  9435. else
  9436. enable_dlopen=no
  9437. fi
  9438. case $lt_cv_dlopen in
  9439. dlopen)
  9440. save_CPPFLAGS="$CPPFLAGS"
  9441. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9442. save_LDFLAGS="$LDFLAGS"
  9443. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9444. save_LIBS="$LIBS"
  9445. LIBS="$lt_cv_dlopen_libs $LIBS"
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9447. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9448. if ${lt_cv_dlopen_self+:} false; then :
  9449. $as_echo_n "(cached) " >&6
  9450. else
  9451. if test "$cross_compiling" = yes; then :
  9452. lt_cv_dlopen_self=cross
  9453. else
  9454. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9455. lt_status=$lt_dlunknown
  9456. cat > conftest.$ac_ext <<_LT_EOF
  9457. #line 10990 "configure"
  9458. #include "confdefs.h"
  9459. #if HAVE_DLFCN_H
  9460. #include <dlfcn.h>
  9461. #endif
  9462. #include <stdio.h>
  9463. #ifdef RTLD_GLOBAL
  9464. # define LT_DLGLOBAL RTLD_GLOBAL
  9465. #else
  9466. # ifdef DL_GLOBAL
  9467. # define LT_DLGLOBAL DL_GLOBAL
  9468. # else
  9469. # define LT_DLGLOBAL 0
  9470. # endif
  9471. #endif
  9472. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9473. find out it does not work in some platform. */
  9474. #ifndef LT_DLLAZY_OR_NOW
  9475. # ifdef RTLD_LAZY
  9476. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9477. # else
  9478. # ifdef DL_LAZY
  9479. # define LT_DLLAZY_OR_NOW DL_LAZY
  9480. # else
  9481. # ifdef RTLD_NOW
  9482. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9483. # else
  9484. # ifdef DL_NOW
  9485. # define LT_DLLAZY_OR_NOW DL_NOW
  9486. # else
  9487. # define LT_DLLAZY_OR_NOW 0
  9488. # endif
  9489. # endif
  9490. # endif
  9491. # endif
  9492. #endif
  9493. /* When -fvisbility=hidden is used, assume the code has been annotated
  9494. correspondingly for the symbols needed. */
  9495. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9496. void fnord () __attribute__((visibility("default")));
  9497. #endif
  9498. void fnord () { int i=42; }
  9499. int main ()
  9500. {
  9501. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9502. int status = $lt_dlunknown;
  9503. if (self)
  9504. {
  9505. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9506. else
  9507. {
  9508. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9509. else puts (dlerror ());
  9510. }
  9511. /* dlclose (self); */
  9512. }
  9513. else
  9514. puts (dlerror ());
  9515. return status;
  9516. }
  9517. _LT_EOF
  9518. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9519. (eval $ac_link) 2>&5
  9520. ac_status=$?
  9521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9522. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9523. (./conftest; exit; ) >&5 2>/dev/null
  9524. lt_status=$?
  9525. case x$lt_status in
  9526. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9527. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9528. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9529. esac
  9530. else :
  9531. # compilation failed
  9532. lt_cv_dlopen_self=no
  9533. fi
  9534. fi
  9535. rm -fr conftest*
  9536. fi
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9538. $as_echo "$lt_cv_dlopen_self" >&6; }
  9539. if test "x$lt_cv_dlopen_self" = xyes; then
  9540. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9542. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9543. if ${lt_cv_dlopen_self_static+:} false; then :
  9544. $as_echo_n "(cached) " >&6
  9545. else
  9546. if test "$cross_compiling" = yes; then :
  9547. lt_cv_dlopen_self_static=cross
  9548. else
  9549. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9550. lt_status=$lt_dlunknown
  9551. cat > conftest.$ac_ext <<_LT_EOF
  9552. #line 11096 "configure"
  9553. #include "confdefs.h"
  9554. #if HAVE_DLFCN_H
  9555. #include <dlfcn.h>
  9556. #endif
  9557. #include <stdio.h>
  9558. #ifdef RTLD_GLOBAL
  9559. # define LT_DLGLOBAL RTLD_GLOBAL
  9560. #else
  9561. # ifdef DL_GLOBAL
  9562. # define LT_DLGLOBAL DL_GLOBAL
  9563. # else
  9564. # define LT_DLGLOBAL 0
  9565. # endif
  9566. #endif
  9567. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9568. find out it does not work in some platform. */
  9569. #ifndef LT_DLLAZY_OR_NOW
  9570. # ifdef RTLD_LAZY
  9571. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9572. # else
  9573. # ifdef DL_LAZY
  9574. # define LT_DLLAZY_OR_NOW DL_LAZY
  9575. # else
  9576. # ifdef RTLD_NOW
  9577. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9578. # else
  9579. # ifdef DL_NOW
  9580. # define LT_DLLAZY_OR_NOW DL_NOW
  9581. # else
  9582. # define LT_DLLAZY_OR_NOW 0
  9583. # endif
  9584. # endif
  9585. # endif
  9586. # endif
  9587. #endif
  9588. /* When -fvisbility=hidden is used, assume the code has been annotated
  9589. correspondingly for the symbols needed. */
  9590. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9591. void fnord () __attribute__((visibility("default")));
  9592. #endif
  9593. void fnord () { int i=42; }
  9594. int main ()
  9595. {
  9596. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9597. int status = $lt_dlunknown;
  9598. if (self)
  9599. {
  9600. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9601. else
  9602. {
  9603. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9604. else puts (dlerror ());
  9605. }
  9606. /* dlclose (self); */
  9607. }
  9608. else
  9609. puts (dlerror ());
  9610. return status;
  9611. }
  9612. _LT_EOF
  9613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9614. (eval $ac_link) 2>&5
  9615. ac_status=$?
  9616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9617. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9618. (./conftest; exit; ) >&5 2>/dev/null
  9619. lt_status=$?
  9620. case x$lt_status in
  9621. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9622. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9623. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9624. esac
  9625. else :
  9626. # compilation failed
  9627. lt_cv_dlopen_self_static=no
  9628. fi
  9629. fi
  9630. rm -fr conftest*
  9631. fi
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9633. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9634. fi
  9635. CPPFLAGS="$save_CPPFLAGS"
  9636. LDFLAGS="$save_LDFLAGS"
  9637. LIBS="$save_LIBS"
  9638. ;;
  9639. esac
  9640. case $lt_cv_dlopen_self in
  9641. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9642. *) enable_dlopen_self=unknown ;;
  9643. esac
  9644. case $lt_cv_dlopen_self_static in
  9645. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9646. *) enable_dlopen_self_static=unknown ;;
  9647. esac
  9648. fi
  9649. striplib=
  9650. old_striplib=
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9652. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9653. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9654. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9655. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9657. $as_echo "yes" >&6; }
  9658. else
  9659. # FIXME - insert some real tests, host_os isn't really good enough
  9660. case $host_os in
  9661. darwin*)
  9662. if test -n "$STRIP" ; then
  9663. striplib="$STRIP -x"
  9664. old_striplib="$STRIP -S"
  9665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9666. $as_echo "yes" >&6; }
  9667. else
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9669. $as_echo "no" >&6; }
  9670. fi
  9671. ;;
  9672. *)
  9673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9674. $as_echo "no" >&6; }
  9675. ;;
  9676. esac
  9677. fi
  9678. # Report which library types will actually be built
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9680. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9682. $as_echo "$can_build_shared" >&6; }
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9684. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9685. test "$can_build_shared" = "no" && enable_shared=no
  9686. # On AIX, shared libraries and static libraries use the same namespace, and
  9687. # are all built from PIC.
  9688. case $host_os in
  9689. aix3*)
  9690. test "$enable_shared" = yes && enable_static=no
  9691. if test -n "$RANLIB"; then
  9692. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9693. postinstall_cmds='$RANLIB $lib'
  9694. fi
  9695. ;;
  9696. aix[4-9]*)
  9697. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9698. test "$enable_shared" = yes && enable_static=no
  9699. fi
  9700. ;;
  9701. esac
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9703. $as_echo "$enable_shared" >&6; }
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9705. $as_echo_n "checking whether to build static libraries... " >&6; }
  9706. # Make sure either enable_shared or enable_static is yes.
  9707. test "$enable_shared" = yes || enable_static=yes
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9709. $as_echo "$enable_static" >&6; }
  9710. fi
  9711. ac_ext=c
  9712. ac_cpp='$CPP $CPPFLAGS'
  9713. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9714. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9715. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9716. CC="$lt_save_CC"
  9717. ac_config_commands="$ac_config_commands libtool"
  9718. # Only expand once:
  9719. # The tests for host and target for $enable_largefile require
  9720. # canonical names.
  9721. # As the $enable_largefile decision depends on --enable-plugins we must set it
  9722. # even in directories otherwise not depending on the $plugins option.
  9723. maybe_plugins=no
  9724. for ac_header in dlfcn.h
  9725. do :
  9726. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9727. "
  9728. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9729. cat >>confdefs.h <<_ACEOF
  9730. #define HAVE_DLFCN_H 1
  9731. _ACEOF
  9732. maybe_plugins=yes
  9733. fi
  9734. done
  9735. for ac_header in windows.h
  9736. do :
  9737. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  9738. "
  9739. if test "x$ac_cv_header_windows_h" = xyes; then :
  9740. cat >>confdefs.h <<_ACEOF
  9741. #define HAVE_WINDOWS_H 1
  9742. _ACEOF
  9743. maybe_plugins=yes
  9744. fi
  9745. done
  9746. # Check whether --enable-plugins was given.
  9747. if test "${enable_plugins+set}" = set; then :
  9748. enableval=$enable_plugins; case "${enableval}" in
  9749. no) plugins=no ;;
  9750. *) plugins=yes
  9751. if test "$maybe_plugins" != "yes" ; then
  9752. as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  9753. fi ;;
  9754. esac
  9755. else
  9756. plugins=$maybe_plugins
  9757. fi
  9758. if test "$plugins" = "yes"; then
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  9760. $as_echo_n "checking for library containing dlsym... " >&6; }
  9761. if ${ac_cv_search_dlsym+:} false; then :
  9762. $as_echo_n "(cached) " >&6
  9763. else
  9764. ac_func_search_save_LIBS=$LIBS
  9765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9766. /* end confdefs.h. */
  9767. /* Override any GCC internal prototype to avoid an error.
  9768. Use char because int might match the return type of a GCC
  9769. builtin and then its argument prototype would still apply. */
  9770. #ifdef __cplusplus
  9771. extern "C"
  9772. #endif
  9773. char dlsym ();
  9774. int
  9775. main ()
  9776. {
  9777. return dlsym ();
  9778. ;
  9779. return 0;
  9780. }
  9781. _ACEOF
  9782. for ac_lib in '' dl; do
  9783. if test -z "$ac_lib"; then
  9784. ac_res="none required"
  9785. else
  9786. ac_res=-l$ac_lib
  9787. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9788. fi
  9789. if ac_fn_c_try_link "$LINENO"; then :
  9790. ac_cv_search_dlsym=$ac_res
  9791. fi
  9792. rm -f core conftest.err conftest.$ac_objext \
  9793. conftest$ac_exeext
  9794. if ${ac_cv_search_dlsym+:} false; then :
  9795. break
  9796. fi
  9797. done
  9798. if ${ac_cv_search_dlsym+:} false; then :
  9799. else
  9800. ac_cv_search_dlsym=no
  9801. fi
  9802. rm conftest.$ac_ext
  9803. LIBS=$ac_func_search_save_LIBS
  9804. fi
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  9806. $as_echo "$ac_cv_search_dlsym" >&6; }
  9807. ac_res=$ac_cv_search_dlsym
  9808. if test "$ac_res" != no; then :
  9809. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9810. fi
  9811. fi
  9812. case "${host}" in
  9813. sparc-*-solaris*|i?86-*-solaris*)
  9814. # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
  9815. # were mutually exclusive until Solaris 11.3. Without procfs support,
  9816. # the bfd/ elf module cannot provide certain routines such as
  9817. # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
  9818. # explicitly requested large-file support through the
  9819. # --enable-largefile switch, disable large-file support in favor of
  9820. # procfs support.
  9821. #
  9822. # Check if <sys/procfs.h> is incompatible with large-file support.
  9823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9824. /* end confdefs.h. */
  9825. #define _FILE_OFFSET_BITS 64
  9826. #define _STRUCTURED_PROC 1
  9827. #include <sys/procfs.h>
  9828. int
  9829. main ()
  9830. {
  9831. ;
  9832. return 0;
  9833. }
  9834. _ACEOF
  9835. if ac_fn_c_try_compile "$LINENO"; then :
  9836. acx_cv_procfs_lfs=yes
  9837. else
  9838. acx_cv_procfs_lfs=no
  9839. fi
  9840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9841. #
  9842. # Forcefully disable large-file support only if necessary, gdb is in
  9843. # tree and enabled.
  9844. if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
  9845. -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
  9846. : ${enable_largefile="no"}
  9847. if test "$plugins" = yes; then
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  9849. plugin support disabled; require large-file support which is incompatible with GDB." >&5
  9850. $as_echo "$as_me: WARNING:
  9851. plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
  9852. plugins=no
  9853. fi
  9854. fi
  9855. #
  9856. # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
  9857. # benefit of g++ 9+ which predefines it on Solaris.
  9858. if test "$enable_largefile" = no; then
  9859. LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
  9860. fi
  9861. ;;
  9862. esac
  9863. # Check whether --enable-largefile was given.
  9864. if test "${enable_largefile+set}" = set; then :
  9865. enableval=$enable_largefile;
  9866. fi
  9867. if test "$enable_largefile" != no; then
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  9869. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9870. if ${ac_cv_sys_largefile_CC+:} false; then :
  9871. $as_echo_n "(cached) " >&6
  9872. else
  9873. ac_cv_sys_largefile_CC=no
  9874. if test "$GCC" != yes; then
  9875. ac_save_CC=$CC
  9876. while :; do
  9877. # IRIX 6.2 and later do not support large files by default,
  9878. # so use the C compiler's -n32 option if that helps.
  9879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9880. /* end confdefs.h. */
  9881. #include <sys/types.h>
  9882. /* Check that off_t can represent 2**63 - 1 correctly.
  9883. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9884. since some C++ compilers masquerading as C compilers
  9885. incorrectly reject 9223372036854775807. */
  9886. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9887. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9888. && LARGE_OFF_T % 2147483647 == 1)
  9889. ? 1 : -1];
  9890. int
  9891. main ()
  9892. {
  9893. ;
  9894. return 0;
  9895. }
  9896. _ACEOF
  9897. if ac_fn_c_try_compile "$LINENO"; then :
  9898. break
  9899. fi
  9900. rm -f core conftest.err conftest.$ac_objext
  9901. CC="$CC -n32"
  9902. if ac_fn_c_try_compile "$LINENO"; then :
  9903. ac_cv_sys_largefile_CC=' -n32'; break
  9904. fi
  9905. rm -f core conftest.err conftest.$ac_objext
  9906. break
  9907. done
  9908. CC=$ac_save_CC
  9909. rm -f conftest.$ac_ext
  9910. fi
  9911. fi
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  9913. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9914. if test "$ac_cv_sys_largefile_CC" != no; then
  9915. CC=$CC$ac_cv_sys_largefile_CC
  9916. fi
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9918. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9919. if ${ac_cv_sys_file_offset_bits+:} false; then :
  9920. $as_echo_n "(cached) " >&6
  9921. else
  9922. while :; do
  9923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9924. /* end confdefs.h. */
  9925. #include <sys/types.h>
  9926. /* Check that off_t can represent 2**63 - 1 correctly.
  9927. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9928. since some C++ compilers masquerading as C compilers
  9929. incorrectly reject 9223372036854775807. */
  9930. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9931. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9932. && LARGE_OFF_T % 2147483647 == 1)
  9933. ? 1 : -1];
  9934. int
  9935. main ()
  9936. {
  9937. ;
  9938. return 0;
  9939. }
  9940. _ACEOF
  9941. if ac_fn_c_try_compile "$LINENO"; then :
  9942. ac_cv_sys_file_offset_bits=no; break
  9943. fi
  9944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9946. /* end confdefs.h. */
  9947. #define _FILE_OFFSET_BITS 64
  9948. #include <sys/types.h>
  9949. /* Check that off_t can represent 2**63 - 1 correctly.
  9950. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9951. since some C++ compilers masquerading as C compilers
  9952. incorrectly reject 9223372036854775807. */
  9953. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9954. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9955. && LARGE_OFF_T % 2147483647 == 1)
  9956. ? 1 : -1];
  9957. int
  9958. main ()
  9959. {
  9960. ;
  9961. return 0;
  9962. }
  9963. _ACEOF
  9964. if ac_fn_c_try_compile "$LINENO"; then :
  9965. ac_cv_sys_file_offset_bits=64; break
  9966. fi
  9967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9968. ac_cv_sys_file_offset_bits=unknown
  9969. break
  9970. done
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  9973. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9974. case $ac_cv_sys_file_offset_bits in #(
  9975. no | unknown) ;;
  9976. *)
  9977. cat >>confdefs.h <<_ACEOF
  9978. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9979. _ACEOF
  9980. ;;
  9981. esac
  9982. rm -rf conftest*
  9983. if test $ac_cv_sys_file_offset_bits = unknown; then
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  9985. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9986. if ${ac_cv_sys_large_files+:} false; then :
  9987. $as_echo_n "(cached) " >&6
  9988. else
  9989. while :; do
  9990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9991. /* end confdefs.h. */
  9992. #include <sys/types.h>
  9993. /* Check that off_t can represent 2**63 - 1 correctly.
  9994. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9995. since some C++ compilers masquerading as C compilers
  9996. incorrectly reject 9223372036854775807. */
  9997. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9998. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9999. && LARGE_OFF_T % 2147483647 == 1)
  10000. ? 1 : -1];
  10001. int
  10002. main ()
  10003. {
  10004. ;
  10005. return 0;
  10006. }
  10007. _ACEOF
  10008. if ac_fn_c_try_compile "$LINENO"; then :
  10009. ac_cv_sys_large_files=no; break
  10010. fi
  10011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10013. /* end confdefs.h. */
  10014. #define _LARGE_FILES 1
  10015. #include <sys/types.h>
  10016. /* Check that off_t can represent 2**63 - 1 correctly.
  10017. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10018. since some C++ compilers masquerading as C compilers
  10019. incorrectly reject 9223372036854775807. */
  10020. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10021. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10022. && LARGE_OFF_T % 2147483647 == 1)
  10023. ? 1 : -1];
  10024. int
  10025. main ()
  10026. {
  10027. ;
  10028. return 0;
  10029. }
  10030. _ACEOF
  10031. if ac_fn_c_try_compile "$LINENO"; then :
  10032. ac_cv_sys_large_files=1; break
  10033. fi
  10034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10035. ac_cv_sys_large_files=unknown
  10036. break
  10037. done
  10038. fi
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10040. $as_echo "$ac_cv_sys_large_files" >&6; }
  10041. case $ac_cv_sys_large_files in #(
  10042. no | unknown) ;;
  10043. *)
  10044. cat >>confdefs.h <<_ACEOF
  10045. #define _LARGE_FILES $ac_cv_sys_large_files
  10046. _ACEOF
  10047. ;;
  10048. esac
  10049. rm -rf conftest*
  10050. fi
  10051. fi
  10052. ac_checking=
  10053. . ${srcdir}/../bfd/development.sh
  10054. test "$development" = true && ac_checking=yes
  10055. # Check whether --enable-checking was given.
  10056. if test "${enable_checking+set}" = set; then :
  10057. enableval=$enable_checking; case "${enableval}" in
  10058. no|none) ac_checking= ;;
  10059. *) ac_checking=yes ;;
  10060. esac
  10061. fi
  10062. if test x$ac_checking != x ; then
  10063. $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
  10064. fi
  10065. # Check whether --enable-targets was given.
  10066. if test "${enable_targets+set}" = set; then :
  10067. enableval=$enable_targets; case "${enableval}" in
  10068. yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
  10069. ;;
  10070. no) enable_targets= ;;
  10071. *) enable_targets=$enableval ;;
  10072. esac
  10073. fi
  10074. # Check whether --enable-deterministic-archives was given.
  10075. if test "${enable_deterministic_archives+set}" = set; then :
  10076. enableval=$enable_deterministic_archives;
  10077. if test "${enableval}" = no; then
  10078. default_ar_deterministic=0
  10079. else
  10080. default_ar_deterministic=1
  10081. fi
  10082. else
  10083. default_ar_deterministic=0
  10084. fi
  10085. cat >>confdefs.h <<_ACEOF
  10086. #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
  10087. _ACEOF
  10088. # Check whether --enable-default-strings-all was given.
  10089. if test "${enable_default_strings_all+set}" = set; then :
  10090. enableval=$enable_default_strings_all;
  10091. if test "${enableval}" = no; then
  10092. default_strings_all=0
  10093. else
  10094. default_strings_all=1
  10095. fi
  10096. else
  10097. default_strings_all=1
  10098. fi
  10099. cat >>confdefs.h <<_ACEOF
  10100. #define DEFAULT_STRINGS_ALL $default_strings_all
  10101. _ACEOF
  10102. # Check whether --enable-f-for-ifunc-symbols was given.
  10103. if test "${enable_f_for_ifunc_symbols+set}" = set; then :
  10104. enableval=$enable_f_for_ifunc_symbols;
  10105. if test "${enableval}" = no; then
  10106. default_f_for_ifunc=0
  10107. else
  10108. default_f_for_ifunc=1
  10109. fi
  10110. else
  10111. default_f_for_ifunc=0
  10112. fi
  10113. cat >>confdefs.h <<_ACEOF
  10114. #define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
  10115. _ACEOF
  10116. # Check whether --enable-follow-debug-links was given.
  10117. if test "${enable_follow_debug_links+set}" = set; then :
  10118. enableval=$enable_follow_debug_links;
  10119. if test "${enableval}" = no; then
  10120. default_for_follow_links=0
  10121. else
  10122. default_for_follow_links=1
  10123. fi
  10124. else
  10125. default_for_follow_links=1
  10126. fi
  10127. cat >>confdefs.h <<_ACEOF
  10128. #define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
  10129. _ACEOF
  10130. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10131. if test -n "$ac_tool_prefix"; then
  10132. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10133. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10135. $as_echo_n "checking for $ac_word... " >&6; }
  10136. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10137. $as_echo_n "(cached) " >&6
  10138. else
  10139. case $PKG_CONFIG in
  10140. [\\/]* | ?:[\\/]*)
  10141. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10142. ;;
  10143. *)
  10144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10145. for as_dir in $PATH
  10146. do
  10147. IFS=$as_save_IFS
  10148. test -z "$as_dir" && as_dir=.
  10149. for ac_exec_ext in '' $ac_executable_extensions; do
  10150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10151. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10153. break 2
  10154. fi
  10155. done
  10156. done
  10157. IFS=$as_save_IFS
  10158. ;;
  10159. esac
  10160. fi
  10161. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10162. if test -n "$PKG_CONFIG"; then
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10164. $as_echo "$PKG_CONFIG" >&6; }
  10165. else
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10167. $as_echo "no" >&6; }
  10168. fi
  10169. fi
  10170. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10171. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10172. # Extract the first word of "pkg-config", so it can be a program name with args.
  10173. set dummy pkg-config; ac_word=$2
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10175. $as_echo_n "checking for $ac_word... " >&6; }
  10176. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10177. $as_echo_n "(cached) " >&6
  10178. else
  10179. case $ac_pt_PKG_CONFIG in
  10180. [\\/]* | ?:[\\/]*)
  10181. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10182. ;;
  10183. *)
  10184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10185. for as_dir in $PATH
  10186. do
  10187. IFS=$as_save_IFS
  10188. test -z "$as_dir" && as_dir=.
  10189. for ac_exec_ext in '' $ac_executable_extensions; do
  10190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10191. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10193. break 2
  10194. fi
  10195. done
  10196. done
  10197. IFS=$as_save_IFS
  10198. ;;
  10199. esac
  10200. fi
  10201. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10202. if test -n "$ac_pt_PKG_CONFIG"; then
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10204. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10205. else
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10207. $as_echo "no" >&6; }
  10208. fi
  10209. if test "x$ac_pt_PKG_CONFIG" = x; then
  10210. PKG_CONFIG=""
  10211. else
  10212. case $cross_compiling:$ac_tool_warned in
  10213. yes:)
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10216. ac_tool_warned=yes ;;
  10217. esac
  10218. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10219. fi
  10220. else
  10221. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10222. fi
  10223. fi
  10224. if test -n "$PKG_CONFIG"; then
  10225. _pkg_min_version=0.9.0
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10227. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10228. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10230. $as_echo "yes" >&6; }
  10231. else
  10232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10233. $as_echo "no" >&6; }
  10234. PKG_CONFIG=""
  10235. fi
  10236. fi
  10237. # Handle optional debuginfod support
  10238. # Check whether --with-debuginfod was given.
  10239. if test "${with_debuginfod+set}" = set; then :
  10240. withval=$with_debuginfod;
  10241. else
  10242. with_debuginfod=auto
  10243. fi
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
  10245. $as_echo_n "checking whether to use debuginfod... " >&6; }
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
  10247. $as_echo "$with_debuginfod" >&6; }
  10248. if test "x$with_debuginfod" != xno; then
  10249. pkg_failed=no
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
  10251. $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
  10252. if test -n "$DEBUGINFOD_CFLAGS"; then
  10253. pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
  10254. elif test -n "$PKG_CONFIG"; then
  10255. if test -n "$PKG_CONFIG" && \
  10256. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
  10257. ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
  10258. ac_status=$?
  10259. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10260. test $ac_status = 0; }; then
  10261. pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
  10262. test "x$?" != "x0" && pkg_failed=yes
  10263. else
  10264. pkg_failed=yes
  10265. fi
  10266. else
  10267. pkg_failed=untried
  10268. fi
  10269. if test -n "$DEBUGINFOD_LIBS"; then
  10270. pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
  10271. elif test -n "$PKG_CONFIG"; then
  10272. if test -n "$PKG_CONFIG" && \
  10273. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
  10274. ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
  10275. ac_status=$?
  10276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10277. test $ac_status = 0; }; then
  10278. pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
  10279. test "x$?" != "x0" && pkg_failed=yes
  10280. else
  10281. pkg_failed=yes
  10282. fi
  10283. else
  10284. pkg_failed=untried
  10285. fi
  10286. if test $pkg_failed = no; then
  10287. pkg_save_LDFLAGS="$LDFLAGS"
  10288. LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
  10289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10290. /* end confdefs.h. */
  10291. int
  10292. main ()
  10293. {
  10294. ;
  10295. return 0;
  10296. }
  10297. _ACEOF
  10298. if ac_fn_c_try_link "$LINENO"; then :
  10299. else
  10300. pkg_failed=yes
  10301. fi
  10302. rm -f core conftest.err conftest.$ac_objext \
  10303. conftest$ac_exeext conftest.$ac_ext
  10304. LDFLAGS=$pkg_save_LDFLAGS
  10305. fi
  10306. if test $pkg_failed = yes; then
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10308. $as_echo "no" >&6; }
  10309. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10310. _pkg_short_errors_supported=yes
  10311. else
  10312. _pkg_short_errors_supported=no
  10313. fi
  10314. if test $_pkg_short_errors_supported = yes; then
  10315. DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
  10316. else
  10317. DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
  10318. fi
  10319. # Put the nasty error message in config.log where it belongs
  10320. echo "$DEBUGINFOD_PKG_ERRORS" >&5
  10321. if test "x$with_debuginfod" = xyes; then
  10322. as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
  10323. else
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
  10325. $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
  10326. fi
  10327. elif test $pkg_failed = untried; then
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10329. $as_echo "no" >&6; }
  10330. if test "x$with_debuginfod" = xyes; then
  10331. as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
  10332. else
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
  10334. $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
  10335. fi
  10336. else
  10337. DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
  10338. DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10340. $as_echo "yes" >&6; }
  10341. $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
  10342. fi
  10343. else
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
  10345. $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
  10346. fi
  10347. # Check whether --enable-libctf was given.
  10348. if test "${enable_libctf+set}" = set; then :
  10349. enableval=$enable_libctf;
  10350. case "$enableval" in
  10351. yes|no) ;;
  10352. *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
  10353. esac
  10354. else
  10355. enable_libctf=yes
  10356. fi
  10357. if test "${enable_libctf}" = yes; then
  10358. $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
  10359. fi
  10360. if test "${enable_libctf}" = yes; then
  10361. ENABLE_LIBCTF_TRUE=
  10362. ENABLE_LIBCTF_FALSE='#'
  10363. else
  10364. ENABLE_LIBCTF_TRUE='#'
  10365. ENABLE_LIBCTF_FALSE=
  10366. fi
  10367. # Set the 'development' global.
  10368. . $srcdir/../bfd/development.sh
  10369. # Set acp_cpp_for_build variable
  10370. ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
  10371. # Default set of GCC warnings to enable.
  10372. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10373. GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10374. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  10375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10376. /* end confdefs.h. */
  10377. __GNUC__
  10378. _ACEOF
  10379. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10380. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10381. else
  10382. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  10383. fi
  10384. rm -f conftest*
  10385. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  10386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10387. /* end confdefs.h. */
  10388. __GNUC__
  10389. _ACEOF
  10390. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10391. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10392. else
  10393. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
  10394. fi
  10395. rm -f conftest*
  10396. # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
  10397. WARN_WRITE_STRINGS=""
  10398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10399. /* end confdefs.h. */
  10400. __GNUC__
  10401. _ACEOF
  10402. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10403. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10404. else
  10405. WARN_WRITE_STRINGS="-Wwrite-strings"
  10406. fi
  10407. rm -f conftest*
  10408. # Verify CC_FOR_BUILD to be compatible with warning flags
  10409. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  10410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10411. /* end confdefs.h. */
  10412. __GNUC__
  10413. _ACEOF
  10414. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  10415. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10416. else
  10417. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
  10418. fi
  10419. rm -f conftest*
  10420. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  10421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10422. /* end confdefs.h. */
  10423. __GNUC__
  10424. _ACEOF
  10425. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  10426. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10427. else
  10428. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
  10429. fi
  10430. rm -f conftest*
  10431. # Check whether --enable-werror was given.
  10432. if test "${enable_werror+set}" = set; then :
  10433. enableval=$enable_werror; case "${enableval}" in
  10434. yes | y) ERROR_ON_WARNING="yes" ;;
  10435. no | n) ERROR_ON_WARNING="no" ;;
  10436. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10437. esac
  10438. fi
  10439. # Disable -Wformat by default when using gcc on mingw
  10440. case "${host}" in
  10441. *-*-mingw32*)
  10442. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10443. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  10444. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
  10445. fi
  10446. ;;
  10447. *) ;;
  10448. esac
  10449. # Enable -Werror by default when using gcc. Turn it off for releases.
  10450. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  10451. ERROR_ON_WARNING=yes
  10452. fi
  10453. NO_WERROR=
  10454. if test "${ERROR_ON_WARNING}" = yes ; then
  10455. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  10456. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
  10457. NO_WERROR="-Wno-error"
  10458. fi
  10459. if test "${GCC}" = yes ; then
  10460. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10461. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
  10462. fi
  10463. # Check whether --enable-build-warnings was given.
  10464. if test "${enable_build_warnings+set}" = set; then :
  10465. enableval=$enable_build_warnings; case "${enableval}" in
  10466. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10467. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
  10468. no) if test "${GCC}" = yes ; then
  10469. WARN_CFLAGS="-w"
  10470. WARN_CFLAGS_FOR_BUILD="-w"
  10471. fi;;
  10472. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10473. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
  10474. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
  10475. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10476. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
  10477. WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
  10478. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
  10479. WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10480. esac
  10481. fi
  10482. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  10483. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  10484. fi
  10485. ac_config_headers="$ac_config_headers config.h:config.in"
  10486. if test -z "$target" ; then
  10487. as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
  10488. fi
  10489. if test -z "$host" ; then
  10490. as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
  10491. fi
  10492. for ac_prog in 'bison -y' byacc
  10493. do
  10494. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10495. set dummy $ac_prog; ac_word=$2
  10496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10497. $as_echo_n "checking for $ac_word... " >&6; }
  10498. if ${ac_cv_prog_YACC+:} false; then :
  10499. $as_echo_n "(cached) " >&6
  10500. else
  10501. if test -n "$YACC"; then
  10502. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  10503. else
  10504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10505. for as_dir in $PATH
  10506. do
  10507. IFS=$as_save_IFS
  10508. test -z "$as_dir" && as_dir=.
  10509. for ac_exec_ext in '' $ac_executable_extensions; do
  10510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10511. ac_cv_prog_YACC="$ac_prog"
  10512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10513. break 2
  10514. fi
  10515. done
  10516. done
  10517. IFS=$as_save_IFS
  10518. fi
  10519. fi
  10520. YACC=$ac_cv_prog_YACC
  10521. if test -n "$YACC"; then
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  10523. $as_echo "$YACC" >&6; }
  10524. else
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10526. $as_echo "no" >&6; }
  10527. fi
  10528. test -n "$YACC" && break
  10529. done
  10530. test -n "$YACC" || YACC="yacc"
  10531. for ac_prog in flex lex
  10532. do
  10533. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10534. set dummy $ac_prog; ac_word=$2
  10535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10536. $as_echo_n "checking for $ac_word... " >&6; }
  10537. if ${ac_cv_prog_LEX+:} false; then :
  10538. $as_echo_n "(cached) " >&6
  10539. else
  10540. if test -n "$LEX"; then
  10541. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  10542. else
  10543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10544. for as_dir in $PATH
  10545. do
  10546. IFS=$as_save_IFS
  10547. test -z "$as_dir" && as_dir=.
  10548. for ac_exec_ext in '' $ac_executable_extensions; do
  10549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10550. ac_cv_prog_LEX="$ac_prog"
  10551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10552. break 2
  10553. fi
  10554. done
  10555. done
  10556. IFS=$as_save_IFS
  10557. fi
  10558. fi
  10559. LEX=$ac_cv_prog_LEX
  10560. if test -n "$LEX"; then
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  10562. $as_echo "$LEX" >&6; }
  10563. else
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10565. $as_echo "no" >&6; }
  10566. fi
  10567. test -n "$LEX" && break
  10568. done
  10569. test -n "$LEX" || LEX=":"
  10570. case "$LEX" in
  10571. :|*"missing "*) ;;
  10572. *) cat >conftest.l <<_ACEOF
  10573. %%
  10574. a { ECHO; }
  10575. b { REJECT; }
  10576. c { yymore (); }
  10577. d { yyless (1); }
  10578. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  10579. yyless ((input () != 0)); }
  10580. f { unput (yytext[0]); }
  10581. . { BEGIN INITIAL; }
  10582. %%
  10583. #ifdef YYTEXT_POINTER
  10584. extern char *yytext;
  10585. #endif
  10586. int
  10587. main (void)
  10588. {
  10589. return ! yylex () + ! yywrap ();
  10590. }
  10591. _ACEOF
  10592. { { ac_try="$LEX conftest.l"
  10593. case "(($ac_try" in
  10594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10595. *) ac_try_echo=$ac_try;;
  10596. esac
  10597. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10598. $as_echo "$ac_try_echo"; } >&5
  10599. (eval "$LEX conftest.l") 2>&5
  10600. ac_status=$?
  10601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10602. test $ac_status = 0; }
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  10604. $as_echo_n "checking lex output file root... " >&6; }
  10605. if ${ac_cv_prog_lex_root+:} false; then :
  10606. $as_echo_n "(cached) " >&6
  10607. else
  10608. if test -f lex.yy.c; then
  10609. ac_cv_prog_lex_root=lex.yy
  10610. elif test -f lexyy.c; then
  10611. ac_cv_prog_lex_root=lexyy
  10612. else
  10613. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  10614. fi
  10615. fi
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  10617. $as_echo "$ac_cv_prog_lex_root" >&6; }
  10618. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  10619. if test -z "${LEXLIB+set}"; then
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  10621. $as_echo_n "checking lex library... " >&6; }
  10622. if ${ac_cv_lib_lex+:} false; then :
  10623. $as_echo_n "(cached) " >&6
  10624. else
  10625. ac_save_LIBS=$LIBS
  10626. ac_cv_lib_lex='none needed'
  10627. for ac_lib in '' -lfl -ll; do
  10628. LIBS="$ac_lib $ac_save_LIBS"
  10629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10630. /* end confdefs.h. */
  10631. `cat $LEX_OUTPUT_ROOT.c`
  10632. _ACEOF
  10633. if ac_fn_c_try_link "$LINENO"; then :
  10634. ac_cv_lib_lex=$ac_lib
  10635. fi
  10636. rm -f core conftest.err conftest.$ac_objext \
  10637. conftest$ac_exeext conftest.$ac_ext
  10638. test "$ac_cv_lib_lex" != 'none needed' && break
  10639. done
  10640. LIBS=$ac_save_LIBS
  10641. fi
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  10643. $as_echo "$ac_cv_lib_lex" >&6; }
  10644. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  10645. fi
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  10647. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  10648. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  10649. $as_echo_n "(cached) " >&6
  10650. else
  10651. # POSIX says lex can declare yytext either as a pointer or an array; the
  10652. # default is implementation-dependent. Figure out which it is, since
  10653. # not all implementations provide the %pointer and %array declarations.
  10654. ac_cv_prog_lex_yytext_pointer=no
  10655. ac_save_LIBS=$LIBS
  10656. LIBS="$LEXLIB $ac_save_LIBS"
  10657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10658. /* end confdefs.h. */
  10659. #define YYTEXT_POINTER 1
  10660. `cat $LEX_OUTPUT_ROOT.c`
  10661. _ACEOF
  10662. if ac_fn_c_try_link "$LINENO"; then :
  10663. ac_cv_prog_lex_yytext_pointer=yes
  10664. fi
  10665. rm -f core conftest.err conftest.$ac_objext \
  10666. conftest$ac_exeext conftest.$ac_ext
  10667. LIBS=$ac_save_LIBS
  10668. fi
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  10670. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  10671. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  10672. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  10673. fi
  10674. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  10675. ;;
  10676. esac
  10677. if test "$LEX" = :; then
  10678. LEX=${am_missing_run}flex
  10679. fi
  10680. ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
  10681. # If we haven't got the data from the intl directory,
  10682. # assume NLS is disabled.
  10683. USE_NLS=no
  10684. LIBINTL=
  10685. LIBINTL_DEP=
  10686. INCINTL=
  10687. XGETTEXT=
  10688. GMSGFMT=
  10689. POSUB=
  10690. if test -f ../intl/config.intl; then
  10691. . ../intl/config.intl
  10692. fi
  10693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10694. $as_echo_n "checking whether NLS is requested... " >&6; }
  10695. if test x"$USE_NLS" != xyes; then
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10697. $as_echo "no" >&6; }
  10698. else
  10699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10700. $as_echo "yes" >&6; }
  10701. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  10702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  10703. $as_echo_n "checking for catalogs to be installed... " >&6; }
  10704. # Look for .po and .gmo files in the source directory.
  10705. CATALOGS=
  10706. XLINGUAS=
  10707. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  10708. # If there aren't any .gmo files the shell will give us the
  10709. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  10710. # weeded out.
  10711. case "$cat" in *\**)
  10712. continue;;
  10713. esac
  10714. # The quadruple backslash is collapsed to a double backslash
  10715. # by the backticks, then collapsed again by the double quotes,
  10716. # leaving us with one backslash in the sed expression (right
  10717. # before the dot that mustn't act as a wildcard).
  10718. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  10719. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  10720. # The user is allowed to set LINGUAS to a list of languages to
  10721. # install catalogs for. If it's empty that means "all of them."
  10722. if test "x$LINGUAS" = x; then
  10723. CATALOGS="$CATALOGS $cat"
  10724. XLINGUAS="$XLINGUAS $lang"
  10725. else
  10726. case "$LINGUAS" in *$lang*)
  10727. CATALOGS="$CATALOGS $cat"
  10728. XLINGUAS="$XLINGUAS $lang"
  10729. ;;
  10730. esac
  10731. fi
  10732. done
  10733. LINGUAS="$XLINGUAS"
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  10735. $as_echo "$LINGUAS" >&6; }
  10736. DATADIRNAME=share
  10737. INSTOBJEXT=.mo
  10738. GENCAT=gencat
  10739. CATOBJEXT=.gmo
  10740. fi
  10741. MKINSTALLDIRS=
  10742. if test -n "$ac_aux_dir"; then
  10743. case "$ac_aux_dir" in
  10744. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  10745. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  10746. esac
  10747. fi
  10748. if test -z "$MKINSTALLDIRS"; then
  10749. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  10750. fi
  10751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10752. $as_echo_n "checking whether NLS is requested... " >&6; }
  10753. # Check whether --enable-nls was given.
  10754. if test "${enable_nls+set}" = set; then :
  10755. enableval=$enable_nls; USE_NLS=$enableval
  10756. else
  10757. USE_NLS=yes
  10758. fi
  10759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  10760. $as_echo "$USE_NLS" >&6; }
  10761. # Prepare PATH_SEPARATOR.
  10762. # The user is always right.
  10763. if test "${PATH_SEPARATOR+set}" != set; then
  10764. echo "#! /bin/sh" >conf$$.sh
  10765. echo "exit 0" >>conf$$.sh
  10766. chmod +x conf$$.sh
  10767. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10768. PATH_SEPARATOR=';'
  10769. else
  10770. PATH_SEPARATOR=:
  10771. fi
  10772. rm -f conf$$.sh
  10773. fi
  10774. # Find out how to test for executable files. Don't use a zero-byte file,
  10775. # as systems may use methods other than mode bits to determine executability.
  10776. cat >conf$$.file <<_ASEOF
  10777. #! /bin/sh
  10778. exit 0
  10779. _ASEOF
  10780. chmod +x conf$$.file
  10781. if test -x conf$$.file >/dev/null 2>&1; then
  10782. ac_executable_p="test -x"
  10783. else
  10784. ac_executable_p="test -f"
  10785. fi
  10786. rm -f conf$$.file
  10787. # Extract the first word of "msgfmt", so it can be a program name with args.
  10788. set dummy msgfmt; ac_word=$2
  10789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10790. $as_echo_n "checking for $ac_word... " >&6; }
  10791. if ${ac_cv_path_MSGFMT+:} false; then :
  10792. $as_echo_n "(cached) " >&6
  10793. else
  10794. case "$MSGFMT" in
  10795. [\\/]* | ?:[\\/]*)
  10796. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10797. ;;
  10798. *)
  10799. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10800. for ac_dir in $PATH; do
  10801. IFS="$ac_save_IFS"
  10802. test -z "$ac_dir" && ac_dir=.
  10803. for ac_exec_ext in '' $ac_executable_extensions; do
  10804. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10805. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  10806. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10807. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10808. break 2
  10809. fi
  10810. fi
  10811. done
  10812. done
  10813. IFS="$ac_save_IFS"
  10814. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10815. ;;
  10816. esac
  10817. fi
  10818. MSGFMT="$ac_cv_path_MSGFMT"
  10819. if test "$MSGFMT" != ":"; then
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  10821. $as_echo "$MSGFMT" >&6; }
  10822. else
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10824. $as_echo "no" >&6; }
  10825. fi
  10826. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10827. set dummy gmsgfmt; ac_word=$2
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10829. $as_echo_n "checking for $ac_word... " >&6; }
  10830. if ${ac_cv_path_GMSGFMT+:} false; then :
  10831. $as_echo_n "(cached) " >&6
  10832. else
  10833. case $GMSGFMT in
  10834. [\\/]* | ?:[\\/]*)
  10835. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10836. ;;
  10837. *)
  10838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10839. for as_dir in $PATH
  10840. do
  10841. IFS=$as_save_IFS
  10842. test -z "$as_dir" && as_dir=.
  10843. for ac_exec_ext in '' $ac_executable_extensions; do
  10844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10845. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10847. break 2
  10848. fi
  10849. done
  10850. done
  10851. IFS=$as_save_IFS
  10852. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10853. ;;
  10854. esac
  10855. fi
  10856. GMSGFMT=$ac_cv_path_GMSGFMT
  10857. if test -n "$GMSGFMT"; then
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  10859. $as_echo "$GMSGFMT" >&6; }
  10860. else
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10862. $as_echo "no" >&6; }
  10863. fi
  10864. # Prepare PATH_SEPARATOR.
  10865. # The user is always right.
  10866. if test "${PATH_SEPARATOR+set}" != set; then
  10867. echo "#! /bin/sh" >conf$$.sh
  10868. echo "exit 0" >>conf$$.sh
  10869. chmod +x conf$$.sh
  10870. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10871. PATH_SEPARATOR=';'
  10872. else
  10873. PATH_SEPARATOR=:
  10874. fi
  10875. rm -f conf$$.sh
  10876. fi
  10877. # Find out how to test for executable files. Don't use a zero-byte file,
  10878. # as systems may use methods other than mode bits to determine executability.
  10879. cat >conf$$.file <<_ASEOF
  10880. #! /bin/sh
  10881. exit 0
  10882. _ASEOF
  10883. chmod +x conf$$.file
  10884. if test -x conf$$.file >/dev/null 2>&1; then
  10885. ac_executable_p="test -x"
  10886. else
  10887. ac_executable_p="test -f"
  10888. fi
  10889. rm -f conf$$.file
  10890. # Extract the first word of "xgettext", so it can be a program name with args.
  10891. set dummy xgettext; ac_word=$2
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10893. $as_echo_n "checking for $ac_word... " >&6; }
  10894. if ${ac_cv_path_XGETTEXT+:} false; then :
  10895. $as_echo_n "(cached) " >&6
  10896. else
  10897. case "$XGETTEXT" in
  10898. [\\/]* | ?:[\\/]*)
  10899. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10900. ;;
  10901. *)
  10902. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10903. for ac_dir in $PATH; do
  10904. IFS="$ac_save_IFS"
  10905. test -z "$ac_dir" && ac_dir=.
  10906. for ac_exec_ext in '' $ac_executable_extensions; do
  10907. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10908. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10909. (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
  10910. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10911. break 2
  10912. fi
  10913. fi
  10914. done
  10915. done
  10916. IFS="$ac_save_IFS"
  10917. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10918. ;;
  10919. esac
  10920. fi
  10921. XGETTEXT="$ac_cv_path_XGETTEXT"
  10922. if test "$XGETTEXT" != ":"; then
  10923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  10924. $as_echo "$XGETTEXT" >&6; }
  10925. else
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10927. $as_echo "no" >&6; }
  10928. fi
  10929. rm -f messages.po
  10930. # Prepare PATH_SEPARATOR.
  10931. # The user is always right.
  10932. if test "${PATH_SEPARATOR+set}" != set; then
  10933. echo "#! /bin/sh" >conf$$.sh
  10934. echo "exit 0" >>conf$$.sh
  10935. chmod +x conf$$.sh
  10936. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10937. PATH_SEPARATOR=';'
  10938. else
  10939. PATH_SEPARATOR=:
  10940. fi
  10941. rm -f conf$$.sh
  10942. fi
  10943. # Find out how to test for executable files. Don't use a zero-byte file,
  10944. # as systems may use methods other than mode bits to determine executability.
  10945. cat >conf$$.file <<_ASEOF
  10946. #! /bin/sh
  10947. exit 0
  10948. _ASEOF
  10949. chmod +x conf$$.file
  10950. if test -x conf$$.file >/dev/null 2>&1; then
  10951. ac_executable_p="test -x"
  10952. else
  10953. ac_executable_p="test -f"
  10954. fi
  10955. rm -f conf$$.file
  10956. # Extract the first word of "msgmerge", so it can be a program name with args.
  10957. set dummy msgmerge; ac_word=$2
  10958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10959. $as_echo_n "checking for $ac_word... " >&6; }
  10960. if ${ac_cv_path_MSGMERGE+:} false; then :
  10961. $as_echo_n "(cached) " >&6
  10962. else
  10963. case "$MSGMERGE" in
  10964. [\\/]* | ?:[\\/]*)
  10965. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10966. ;;
  10967. *)
  10968. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10969. for ac_dir in $PATH; do
  10970. IFS="$ac_save_IFS"
  10971. test -z "$ac_dir" && ac_dir=.
  10972. for ac_exec_ext in '' $ac_executable_extensions; do
  10973. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10974. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  10975. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10976. break 2
  10977. fi
  10978. fi
  10979. done
  10980. done
  10981. IFS="$ac_save_IFS"
  10982. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10983. ;;
  10984. esac
  10985. fi
  10986. MSGMERGE="$ac_cv_path_MSGMERGE"
  10987. if test "$MSGMERGE" != ":"; then
  10988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  10989. $as_echo "$MSGMERGE" >&6; }
  10990. else
  10991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10992. $as_echo "no" >&6; }
  10993. fi
  10994. if test "$GMSGFMT" != ":"; then
  10995. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  10996. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10997. : ;
  10998. else
  10999. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  11001. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  11002. GMSGFMT=":"
  11003. fi
  11004. fi
  11005. if test "$XGETTEXT" != ":"; then
  11006. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  11007. (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
  11008. : ;
  11009. else
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  11011. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  11012. XGETTEXT=":"
  11013. fi
  11014. rm -f messages.po
  11015. fi
  11016. ac_config_commands="$ac_config_commands default-1"
  11017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11018. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  11019. # Check whether --enable-maintainer-mode was given.
  11020. if test "${enable_maintainer_mode+set}" = set; then :
  11021. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  11022. else
  11023. USE_MAINTAINER_MODE=no
  11024. fi
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  11026. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  11027. if test $USE_MAINTAINER_MODE = yes; then
  11028. MAINTAINER_MODE_TRUE=
  11029. MAINTAINER_MODE_FALSE='#'
  11030. else
  11031. MAINTAINER_MODE_TRUE='#'
  11032. MAINTAINER_MODE_FALSE=
  11033. fi
  11034. MAINT=$MAINTAINER_MODE_TRUE
  11035. if false; then
  11036. GENINSRC_NEVER_TRUE=
  11037. GENINSRC_NEVER_FALSE='#'
  11038. else
  11039. GENINSRC_NEVER_TRUE='#'
  11040. GENINSRC_NEVER_FALSE=
  11041. fi
  11042. if test -n "$EXEEXT"; then
  11043. $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
  11044. fi
  11045. cat >>confdefs.h <<_ACEOF
  11046. #define EXECUTABLE_SUFFIX "${EXEEXT}"
  11047. _ACEOF
  11048. # host-specific stuff:
  11049. HDEFINES=
  11050. . ${srcdir}/../bfd/configure.host
  11051. AR=${AR-ar}
  11052. if test -n "$ac_tool_prefix"; then
  11053. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  11054. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11056. $as_echo_n "checking for $ac_word... " >&6; }
  11057. if ${ac_cv_prog_RANLIB+:} false; then :
  11058. $as_echo_n "(cached) " >&6
  11059. else
  11060. if test -n "$RANLIB"; then
  11061. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  11062. else
  11063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11064. for as_dir in $PATH
  11065. do
  11066. IFS=$as_save_IFS
  11067. test -z "$as_dir" && as_dir=.
  11068. for ac_exec_ext in '' $ac_executable_extensions; do
  11069. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11070. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  11071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11072. break 2
  11073. fi
  11074. done
  11075. done
  11076. IFS=$as_save_IFS
  11077. fi
  11078. fi
  11079. RANLIB=$ac_cv_prog_RANLIB
  11080. if test -n "$RANLIB"; then
  11081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  11082. $as_echo "$RANLIB" >&6; }
  11083. else
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11085. $as_echo "no" >&6; }
  11086. fi
  11087. fi
  11088. if test -z "$ac_cv_prog_RANLIB"; then
  11089. ac_ct_RANLIB=$RANLIB
  11090. # Extract the first word of "ranlib", so it can be a program name with args.
  11091. set dummy ranlib; ac_word=$2
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11093. $as_echo_n "checking for $ac_word... " >&6; }
  11094. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  11095. $as_echo_n "(cached) " >&6
  11096. else
  11097. if test -n "$ac_ct_RANLIB"; then
  11098. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  11099. else
  11100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11101. for as_dir in $PATH
  11102. do
  11103. IFS=$as_save_IFS
  11104. test -z "$as_dir" && as_dir=.
  11105. for ac_exec_ext in '' $ac_executable_extensions; do
  11106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11107. ac_cv_prog_ac_ct_RANLIB="ranlib"
  11108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11109. break 2
  11110. fi
  11111. done
  11112. done
  11113. IFS=$as_save_IFS
  11114. fi
  11115. fi
  11116. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  11117. if test -n "$ac_ct_RANLIB"; then
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  11119. $as_echo "$ac_ct_RANLIB" >&6; }
  11120. else
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11122. $as_echo "no" >&6; }
  11123. fi
  11124. if test "x$ac_ct_RANLIB" = x; then
  11125. RANLIB=":"
  11126. else
  11127. case $cross_compiling:$ac_tool_warned in
  11128. yes:)
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11130. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11131. ac_tool_warned=yes ;;
  11132. esac
  11133. RANLIB=$ac_ct_RANLIB
  11134. fi
  11135. else
  11136. RANLIB="$ac_cv_prog_RANLIB"
  11137. fi
  11138. # Put a plausible default for CC_FOR_BUILD in Makefile.
  11139. if test -z "$CC_FOR_BUILD"; then
  11140. if test "x$cross_compiling" = "xno"; then
  11141. CC_FOR_BUILD='$(CC)'
  11142. else
  11143. CC_FOR_BUILD=gcc
  11144. fi
  11145. fi
  11146. # Also set EXEEXT_FOR_BUILD.
  11147. if test "x$cross_compiling" = "xno"; then
  11148. EXEEXT_FOR_BUILD='$(EXEEXT)'
  11149. else
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
  11151. $as_echo_n "checking for build system executable suffix... " >&6; }
  11152. if ${bfd_cv_build_exeext+:} false; then :
  11153. $as_echo_n "(cached) " >&6
  11154. else
  11155. rm -f conftest*
  11156. echo 'int main () { return 0; }' > conftest.c
  11157. bfd_cv_build_exeext=
  11158. ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
  11159. for file in conftest.*; do
  11160. case $file in
  11161. *.c | *.o | *.obj | *.ilk | *.pdb) ;;
  11162. *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  11163. esac
  11164. done
  11165. rm -f conftest*
  11166. test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
  11167. fi
  11168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
  11169. $as_echo "$bfd_cv_build_exeext" >&6; }
  11170. EXEEXT_FOR_BUILD=""
  11171. test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
  11172. fi
  11173. DEMANGLER_NAME=c++filt
  11174. case "${host}" in
  11175. *-*-go32* | *-*-msdos*)
  11176. DEMANGLER_NAME=cxxfilt
  11177. esac
  11178. # The cast to long int works around a bug in the HP C Compiler
  11179. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11180. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11181. # This bug is HP SR number 8606223364.
  11182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11183. $as_echo_n "checking size of long... " >&6; }
  11184. if ${ac_cv_sizeof_long+:} false; then :
  11185. $as_echo_n "(cached) " >&6
  11186. else
  11187. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11188. else
  11189. if test "$ac_cv_type_long" = yes; then
  11190. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11191. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11192. as_fn_error 77 "cannot compute sizeof (long)
  11193. See \`config.log' for more details" "$LINENO" 5; }
  11194. else
  11195. ac_cv_sizeof_long=0
  11196. fi
  11197. fi
  11198. fi
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11200. $as_echo "$ac_cv_sizeof_long" >&6; }
  11201. cat >>confdefs.h <<_ACEOF
  11202. #define SIZEOF_LONG $ac_cv_sizeof_long
  11203. _ACEOF
  11204. # The cast to long int works around a bug in the HP C Compiler
  11205. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11206. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11207. # This bug is HP SR number 8606223364.
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  11209. $as_echo_n "checking size of long long... " >&6; }
  11210. if ${ac_cv_sizeof_long_long+:} false; then :
  11211. $as_echo_n "(cached) " >&6
  11212. else
  11213. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  11214. else
  11215. if test "$ac_cv_type_long_long" = yes; then
  11216. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11218. as_fn_error 77 "cannot compute sizeof (long long)
  11219. See \`config.log' for more details" "$LINENO" 5; }
  11220. else
  11221. ac_cv_sizeof_long_long=0
  11222. fi
  11223. fi
  11224. fi
  11225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  11226. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11227. cat >>confdefs.h <<_ACEOF
  11228. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11229. _ACEOF
  11230. # We use headers from include/ that check various HAVE_*_H macros, thus
  11231. # should ensure they are set by configure. This is true even when C99
  11232. # guarantees they are available.
  11233. # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
  11234. # Besides those, we need to check anything used in binutils/ not in C99.
  11235. for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
  11236. sys/stat.h sys/time.h sys/types.h unistd.h
  11237. do :
  11238. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11239. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11240. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11241. cat >>confdefs.h <<_ACEOF
  11242. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11243. _ACEOF
  11244. fi
  11245. done
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11247. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11248. if ${ac_cv_header_sys_wait_h+:} false; then :
  11249. $as_echo_n "(cached) " >&6
  11250. else
  11251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11252. /* end confdefs.h. */
  11253. #include <sys/types.h>
  11254. #include <sys/wait.h>
  11255. #ifndef WEXITSTATUS
  11256. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11257. #endif
  11258. #ifndef WIFEXITED
  11259. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11260. #endif
  11261. int
  11262. main ()
  11263. {
  11264. int s;
  11265. wait (&s);
  11266. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11267. ;
  11268. return 0;
  11269. }
  11270. _ACEOF
  11271. if ac_fn_c_try_compile "$LINENO"; then :
  11272. ac_cv_header_sys_wait_h=yes
  11273. else
  11274. ac_cv_header_sys_wait_h=no
  11275. fi
  11276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11277. fi
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11279. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  11280. if test $ac_cv_header_sys_wait_h = yes; then
  11281. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11282. fi
  11283. for ac_header in $ac_header_list
  11284. do :
  11285. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11286. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11287. "
  11288. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11289. cat >>confdefs.h <<_ACEOF
  11290. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11291. _ACEOF
  11292. fi
  11293. done
  11294. for ac_func in getpagesize
  11295. do :
  11296. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11297. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11298. cat >>confdefs.h <<_ACEOF
  11299. #define HAVE_GETPAGESIZE 1
  11300. _ACEOF
  11301. fi
  11302. done
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11304. $as_echo_n "checking for working mmap... " >&6; }
  11305. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11306. $as_echo_n "(cached) " >&6
  11307. else
  11308. if test "$cross_compiling" = yes; then :
  11309. ac_cv_func_mmap_fixed_mapped=no
  11310. else
  11311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11312. /* end confdefs.h. */
  11313. $ac_includes_default
  11314. /* malloc might have been renamed as rpl_malloc. */
  11315. #undef malloc
  11316. /* Thanks to Mike Haertel and Jim Avera for this test.
  11317. Here is a matrix of mmap possibilities:
  11318. mmap private not fixed
  11319. mmap private fixed at somewhere currently unmapped
  11320. mmap private fixed at somewhere already mapped
  11321. mmap shared not fixed
  11322. mmap shared fixed at somewhere currently unmapped
  11323. mmap shared fixed at somewhere already mapped
  11324. For private mappings, we should verify that changes cannot be read()
  11325. back from the file, nor mmap's back from the file at a different
  11326. address. (There have been systems where private was not correctly
  11327. implemented like the infamous i386 svr4.0, and systems where the
  11328. VM page cache was not coherent with the file system buffer cache
  11329. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11330. For shared mappings, we should conversely verify that changes get
  11331. propagated back to all the places they're supposed to be.
  11332. Grep wants private fixed already mapped.
  11333. The main things grep needs to know about mmap are:
  11334. * does it exist and is it safe to write into the mmap'd area
  11335. * how to use it (BSD variants) */
  11336. #include <fcntl.h>
  11337. #include <sys/mman.h>
  11338. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11339. char *malloc ();
  11340. #endif
  11341. /* This mess was copied from the GNU getpagesize.h. */
  11342. #ifndef HAVE_GETPAGESIZE
  11343. # ifdef _SC_PAGESIZE
  11344. # define getpagesize() sysconf(_SC_PAGESIZE)
  11345. # else /* no _SC_PAGESIZE */
  11346. # ifdef HAVE_SYS_PARAM_H
  11347. # include <sys/param.h>
  11348. # ifdef EXEC_PAGESIZE
  11349. # define getpagesize() EXEC_PAGESIZE
  11350. # else /* no EXEC_PAGESIZE */
  11351. # ifdef NBPG
  11352. # define getpagesize() NBPG * CLSIZE
  11353. # ifndef CLSIZE
  11354. # define CLSIZE 1
  11355. # endif /* no CLSIZE */
  11356. # else /* no NBPG */
  11357. # ifdef NBPC
  11358. # define getpagesize() NBPC
  11359. # else /* no NBPC */
  11360. # ifdef PAGESIZE
  11361. # define getpagesize() PAGESIZE
  11362. # endif /* PAGESIZE */
  11363. # endif /* no NBPC */
  11364. # endif /* no NBPG */
  11365. # endif /* no EXEC_PAGESIZE */
  11366. # else /* no HAVE_SYS_PARAM_H */
  11367. # define getpagesize() 8192 /* punt totally */
  11368. # endif /* no HAVE_SYS_PARAM_H */
  11369. # endif /* no _SC_PAGESIZE */
  11370. #endif /* no HAVE_GETPAGESIZE */
  11371. int
  11372. main ()
  11373. {
  11374. char *data, *data2, *data3;
  11375. const char *cdata2;
  11376. int i, pagesize;
  11377. int fd, fd2;
  11378. pagesize = getpagesize ();
  11379. /* First, make a file with some known garbage in it. */
  11380. data = (char *) malloc (pagesize);
  11381. if (!data)
  11382. return 1;
  11383. for (i = 0; i < pagesize; ++i)
  11384. *(data + i) = rand ();
  11385. umask (0);
  11386. fd = creat ("conftest.mmap", 0600);
  11387. if (fd < 0)
  11388. return 2;
  11389. if (write (fd, data, pagesize) != pagesize)
  11390. return 3;
  11391. close (fd);
  11392. /* Next, check that the tail of a page is zero-filled. File must have
  11393. non-zero length, otherwise we risk SIGBUS for entire page. */
  11394. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11395. if (fd2 < 0)
  11396. return 4;
  11397. cdata2 = "";
  11398. if (write (fd2, cdata2, 1) != 1)
  11399. return 5;
  11400. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11401. if (data2 == MAP_FAILED)
  11402. return 6;
  11403. for (i = 0; i < pagesize; ++i)
  11404. if (*(data2 + i))
  11405. return 7;
  11406. close (fd2);
  11407. if (munmap (data2, pagesize))
  11408. return 8;
  11409. /* Next, try to mmap the file at a fixed address which already has
  11410. something else allocated at it. If we can, also make sure that
  11411. we see the same garbage. */
  11412. fd = open ("conftest.mmap", O_RDWR);
  11413. if (fd < 0)
  11414. return 9;
  11415. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11416. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11417. return 10;
  11418. for (i = 0; i < pagesize; ++i)
  11419. if (*(data + i) != *(data2 + i))
  11420. return 11;
  11421. /* Finally, make sure that changes to the mapped area do not
  11422. percolate back to the file as seen by read(). (This is a bug on
  11423. some variants of i386 svr4.0.) */
  11424. for (i = 0; i < pagesize; ++i)
  11425. *(data2 + i) = *(data2 + i) + 1;
  11426. data3 = (char *) malloc (pagesize);
  11427. if (!data3)
  11428. return 12;
  11429. if (read (fd, data3, pagesize) != pagesize)
  11430. return 13;
  11431. for (i = 0; i < pagesize; ++i)
  11432. if (*(data + i) != *(data3 + i))
  11433. return 14;
  11434. close (fd);
  11435. return 0;
  11436. }
  11437. _ACEOF
  11438. if ac_fn_c_try_run "$LINENO"; then :
  11439. ac_cv_func_mmap_fixed_mapped=yes
  11440. else
  11441. ac_cv_func_mmap_fixed_mapped=no
  11442. fi
  11443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11444. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11445. fi
  11446. fi
  11447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11448. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11449. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11450. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11451. fi
  11452. rm -f conftest.mmap conftest.txt
  11453. for ac_func in getc_unlocked mkdtemp mkstemp sbrk utimensat utimes
  11454. do :
  11455. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11456. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11457. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11458. cat >>confdefs.h <<_ACEOF
  11459. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11460. _ACEOF
  11461. fi
  11462. done
  11463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11464. $as_echo_n "checking for mbstate_t... " >&6; }
  11465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11466. /* end confdefs.h. */
  11467. #include <wchar.h>
  11468. int
  11469. main ()
  11470. {
  11471. mbstate_t teststate;
  11472. ;
  11473. return 0;
  11474. }
  11475. _ACEOF
  11476. if ac_fn_c_try_compile "$LINENO"; then :
  11477. have_mbstate_t=yes
  11478. else
  11479. have_mbstate_t=no
  11480. fi
  11481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
  11483. $as_echo "$have_mbstate_t" >&6; }
  11484. if test x"$have_mbstate_t" = xyes; then
  11485. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  11486. fi
  11487. # Copied from gnulib stat-time.m4.
  11488. # We should just switch over to using gnulib.
  11489. ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
  11490. #include <sys/stat.h>
  11491. "
  11492. if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
  11493. cat >>confdefs.h <<_ACEOF
  11494. #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
  11495. _ACEOF
  11496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
  11497. $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
  11498. if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
  11499. $as_echo_n "(cached) " >&6
  11500. else
  11501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11502. /* end confdefs.h. */
  11503. #include <sys/types.h>
  11504. #include <sys/stat.h>
  11505. #if HAVE_SYS_TIME_H
  11506. # include <sys/time.h>
  11507. #endif
  11508. #include <time.h>
  11509. struct timespec ts;
  11510. struct stat st;
  11511. int
  11512. main ()
  11513. {
  11514. st.st_atim = ts;
  11515. ;
  11516. return 0;
  11517. }
  11518. _ACEOF
  11519. if ac_fn_c_try_compile "$LINENO"; then :
  11520. ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
  11521. else
  11522. ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
  11523. fi
  11524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11525. fi
  11526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
  11527. $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
  11528. if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
  11529. $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
  11530. fi
  11531. else
  11532. ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
  11533. #include <sys/stat.h>
  11534. "
  11535. if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
  11536. cat >>confdefs.h <<_ACEOF
  11537. #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
  11538. _ACEOF
  11539. else
  11540. ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
  11541. #include <sys/stat.h>
  11542. "
  11543. if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
  11544. cat >>confdefs.h <<_ACEOF
  11545. #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
  11546. _ACEOF
  11547. else
  11548. ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
  11549. #include <sys/stat.h>
  11550. "
  11551. if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
  11552. cat >>confdefs.h <<_ACEOF
  11553. #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
  11554. _ACEOF
  11555. fi
  11556. fi
  11557. fi
  11558. fi
  11559. # Some systems have frexp only in -lm, not in -lc.
  11560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
  11561. $as_echo_n "checking for library containing frexp... " >&6; }
  11562. if ${ac_cv_search_frexp+:} false; then :
  11563. $as_echo_n "(cached) " >&6
  11564. else
  11565. ac_func_search_save_LIBS=$LIBS
  11566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11567. /* end confdefs.h. */
  11568. /* Override any GCC internal prototype to avoid an error.
  11569. Use char because int might match the return type of a GCC
  11570. builtin and then its argument prototype would still apply. */
  11571. #ifdef __cplusplus
  11572. extern "C"
  11573. #endif
  11574. char frexp ();
  11575. int
  11576. main ()
  11577. {
  11578. return frexp ();
  11579. ;
  11580. return 0;
  11581. }
  11582. _ACEOF
  11583. for ac_lib in '' m; do
  11584. if test -z "$ac_lib"; then
  11585. ac_res="none required"
  11586. else
  11587. ac_res=-l$ac_lib
  11588. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11589. fi
  11590. if ac_fn_c_try_link "$LINENO"; then :
  11591. ac_cv_search_frexp=$ac_res
  11592. fi
  11593. rm -f core conftest.err conftest.$ac_objext \
  11594. conftest$ac_exeext
  11595. if ${ac_cv_search_frexp+:} false; then :
  11596. break
  11597. fi
  11598. done
  11599. if ${ac_cv_search_frexp+:} false; then :
  11600. else
  11601. ac_cv_search_frexp=no
  11602. fi
  11603. rm conftest.$ac_ext
  11604. LIBS=$ac_func_search_save_LIBS
  11605. fi
  11606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
  11607. $as_echo "$ac_cv_search_frexp" >&6; }
  11608. ac_res=$ac_cv_search_frexp
  11609. if test "$ac_res" != no; then :
  11610. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11611. fi
  11612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11613. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11614. if ${am_cv_val_LC_MESSAGES+:} false; then :
  11615. $as_echo_n "(cached) " >&6
  11616. else
  11617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11618. /* end confdefs.h. */
  11619. #include <locale.h>
  11620. int
  11621. main ()
  11622. {
  11623. return LC_MESSAGES
  11624. ;
  11625. return 0;
  11626. }
  11627. _ACEOF
  11628. if ac_fn_c_try_link "$LINENO"; then :
  11629. am_cv_val_LC_MESSAGES=yes
  11630. else
  11631. am_cv_val_LC_MESSAGES=no
  11632. fi
  11633. rm -f core conftest.err conftest.$ac_objext \
  11634. conftest$ac_exeext conftest.$ac_ext
  11635. fi
  11636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  11637. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  11638. if test $am_cv_val_LC_MESSAGES = yes; then
  11639. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11640. fi
  11641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
  11642. $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
  11643. if ${bu_cv_decl_getopt_unistd_h+:} false; then :
  11644. $as_echo_n "(cached) " >&6
  11645. else
  11646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11647. /* end confdefs.h. */
  11648. #include <unistd.h>
  11649. int
  11650. main ()
  11651. {
  11652. extern int getopt (int, char *const*, const char *);
  11653. ;
  11654. return 0;
  11655. }
  11656. _ACEOF
  11657. if ac_fn_c_try_compile "$LINENO"; then :
  11658. bu_cv_decl_getopt_unistd_h=yes
  11659. else
  11660. bu_cv_decl_getopt_unistd_h=no
  11661. fi
  11662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11663. fi
  11664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
  11665. $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
  11666. if test $bu_cv_decl_getopt_unistd_h = yes; then
  11667. $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
  11668. fi
  11669. # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
  11670. # by default.
  11671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
  11672. $as_echo_n "checking for utime.h... " >&6; }
  11673. if ${bu_cv_header_utime_h+:} false; then :
  11674. $as_echo_n "(cached) " >&6
  11675. else
  11676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11677. /* end confdefs.h. */
  11678. #include <sys/types.h>
  11679. #ifdef HAVE_TIME_H
  11680. #include <time.h>
  11681. #endif
  11682. #include <utime.h>
  11683. int
  11684. main ()
  11685. {
  11686. struct utimbuf s;
  11687. ;
  11688. return 0;
  11689. }
  11690. _ACEOF
  11691. if ac_fn_c_try_compile "$LINENO"; then :
  11692. bu_cv_header_utime_h=yes
  11693. else
  11694. bu_cv_header_utime_h=no
  11695. fi
  11696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11697. fi
  11698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
  11699. $as_echo "$bu_cv_header_utime_h" >&6; }
  11700. if test $bu_cv_header_utime_h = yes; then
  11701. $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
  11702. fi
  11703. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  11704. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  11705. ac_have_decl=1
  11706. else
  11707. ac_have_decl=0
  11708. fi
  11709. cat >>confdefs.h <<_ACEOF
  11710. #define HAVE_DECL_ASPRINTF $ac_have_decl
  11711. _ACEOF
  11712. ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
  11713. if test "x$ac_cv_have_decl_environ" = xyes; then :
  11714. ac_have_decl=1
  11715. else
  11716. ac_have_decl=0
  11717. fi
  11718. cat >>confdefs.h <<_ACEOF
  11719. #define HAVE_DECL_ENVIRON $ac_have_decl
  11720. _ACEOF
  11721. ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
  11722. if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
  11723. ac_have_decl=1
  11724. else
  11725. ac_have_decl=0
  11726. fi
  11727. cat >>confdefs.h <<_ACEOF
  11728. #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
  11729. _ACEOF
  11730. ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
  11731. if test "x$ac_cv_have_decl_sbrk" = xyes; then :
  11732. ac_have_decl=1
  11733. else
  11734. ac_have_decl=0
  11735. fi
  11736. cat >>confdefs.h <<_ACEOF
  11737. #define HAVE_DECL_SBRK $ac_have_decl
  11738. _ACEOF
  11739. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  11740. if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
  11741. ac_have_decl=1
  11742. else
  11743. ac_have_decl=0
  11744. fi
  11745. cat >>confdefs.h <<_ACEOF
  11746. #define HAVE_DECL_STPCPY $ac_have_decl
  11747. _ACEOF
  11748. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  11749. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  11750. ac_have_decl=1
  11751. else
  11752. ac_have_decl=0
  11753. fi
  11754. cat >>confdefs.h <<_ACEOF
  11755. #define HAVE_DECL_STRNLEN $ac_have_decl
  11756. _ACEOF
  11757. # Link in zlib if we can. This allows us to read compressed debug
  11758. # sections. This is used only by readelf.c (objdump uses bfd for
  11759. # reading compressed sections).
  11760. # Use the system's zlib library.
  11761. zlibdir="-L\$(top_builddir)/../zlib"
  11762. zlibinc="-I\$(top_srcdir)/../zlib"
  11763. # Check whether --with-system-zlib was given.
  11764. if test "${with_system_zlib+set}" = set; then :
  11765. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  11766. zlibdir=
  11767. zlibinc=
  11768. fi
  11769. fi
  11770. case "${host}" in
  11771. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  11772. $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
  11773. ;;
  11774. esac
  11775. # Support for the msgpack C library.
  11776. # Check whether --with-msgpack was given.
  11777. if test "${with_msgpack+set}" = set; then :
  11778. withval=$with_msgpack;
  11779. else
  11780. with_msgpack=auto
  11781. fi
  11782. if test "$with_msgpack" != no; then
  11783. pkg_failed=no
  11784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
  11785. $as_echo_n "checking for msgpack... " >&6; }
  11786. if test -n "$MSGPACK_CFLAGS"; then
  11787. pkg_cv_MSGPACK_CFLAGS="$MSGPACK_CFLAGS"
  11788. elif test -n "$PKG_CONFIG"; then
  11789. if test -n "$PKG_CONFIG" && \
  11790. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
  11791. ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
  11792. ac_status=$?
  11793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11794. test $ac_status = 0; }; then
  11795. pkg_cv_MSGPACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
  11796. test "x$?" != "x0" && pkg_failed=yes
  11797. else
  11798. pkg_failed=yes
  11799. fi
  11800. else
  11801. pkg_failed=untried
  11802. fi
  11803. if test -n "$MSGPACK_LIBS"; then
  11804. pkg_cv_MSGPACK_LIBS="$MSGPACK_LIBS"
  11805. elif test -n "$PKG_CONFIG"; then
  11806. if test -n "$PKG_CONFIG" && \
  11807. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
  11808. ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
  11809. ac_status=$?
  11810. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11811. test $ac_status = 0; }; then
  11812. pkg_cv_MSGPACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
  11813. test "x$?" != "x0" && pkg_failed=yes
  11814. else
  11815. pkg_failed=yes
  11816. fi
  11817. else
  11818. pkg_failed=untried
  11819. fi
  11820. if test $pkg_failed = no; then
  11821. pkg_save_LDFLAGS="$LDFLAGS"
  11822. LDFLAGS="$LDFLAGS $pkg_cv_MSGPACK_LIBS"
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. int
  11826. main ()
  11827. {
  11828. ;
  11829. return 0;
  11830. }
  11831. _ACEOF
  11832. if ac_fn_c_try_link "$LINENO"; then :
  11833. else
  11834. pkg_failed=yes
  11835. fi
  11836. rm -f core conftest.err conftest.$ac_objext \
  11837. conftest$ac_exeext conftest.$ac_ext
  11838. LDFLAGS=$pkg_save_LDFLAGS
  11839. fi
  11840. if test $pkg_failed = yes; then
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11842. $as_echo "no" >&6; }
  11843. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11844. _pkg_short_errors_supported=yes
  11845. else
  11846. _pkg_short_errors_supported=no
  11847. fi
  11848. if test $_pkg_short_errors_supported = yes; then
  11849. MSGPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
  11850. else
  11851. MSGPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
  11852. fi
  11853. # Put the nasty error message in config.log where it belongs
  11854. echo "$MSGPACK_PKG_ERRORS" >&5
  11855. if test "$with_msgpack" = yes; then
  11856. as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
  11857. fi
  11858. elif test $pkg_failed = untried; then
  11859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11860. $as_echo "no" >&6; }
  11861. if test "$with_msgpack" = yes; then
  11862. as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
  11863. fi
  11864. else
  11865. MSGPACK_CFLAGS=$pkg_cv_MSGPACK_CFLAGS
  11866. MSGPACK_LIBS=$pkg_cv_MSGPACK_LIBS
  11867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11868. $as_echo "yes" >&6; }
  11869. $as_echo "#define HAVE_MSGPACK 1" >>confdefs.h
  11870. fi
  11871. fi
  11872. # target-specific stuff:
  11873. # Canonicalize the secondary target names.
  11874. if test -n "$enable_targets"; then
  11875. for targ in `echo $enable_targets | sed 's/,/ /g'`
  11876. do
  11877. result=`$ac_config_sub $targ 2>/dev/null`
  11878. if test -n "$result"; then
  11879. canon_targets="$canon_targets $result"
  11880. else
  11881. # Allow targets that config.sub doesn't recognize, like "all".
  11882. canon_targets="$canon_targets $targ"
  11883. fi
  11884. done
  11885. fi
  11886. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  11887. if test "x$ac_cv_header_iconv_h" = xyes; then :
  11888. fi
  11889. if test "X$prefix" = "XNONE"; then
  11890. acl_final_prefix="$ac_default_prefix"
  11891. else
  11892. acl_final_prefix="$prefix"
  11893. fi
  11894. if test "X$exec_prefix" = "XNONE"; then
  11895. acl_final_exec_prefix='${prefix}'
  11896. else
  11897. acl_final_exec_prefix="$exec_prefix"
  11898. fi
  11899. acl_save_prefix="$prefix"
  11900. prefix="$acl_final_prefix"
  11901. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11902. prefix="$acl_save_prefix"
  11903. # Check whether --with-gnu-ld was given.
  11904. if test "${with_gnu_ld+set}" = set; then :
  11905. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11906. else
  11907. with_gnu_ld=no
  11908. fi
  11909. # Prepare PATH_SEPARATOR.
  11910. # The user is always right.
  11911. if test "${PATH_SEPARATOR+set}" != set; then
  11912. echo "#! /bin/sh" >conf$$.sh
  11913. echo "exit 0" >>conf$$.sh
  11914. chmod +x conf$$.sh
  11915. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11916. PATH_SEPARATOR=';'
  11917. else
  11918. PATH_SEPARATOR=:
  11919. fi
  11920. rm -f conf$$.sh
  11921. fi
  11922. ac_prog=ld
  11923. if test "$GCC" = yes; then
  11924. # Check if gcc -print-prog-name=ld gives a path.
  11925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  11926. $as_echo_n "checking for ld used by GCC... " >&6; }
  11927. case $host in
  11928. *-*-mingw*)
  11929. # gcc leaves a trailing carriage return which upsets mingw
  11930. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11931. *)
  11932. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11933. esac
  11934. case $ac_prog in
  11935. # Accept absolute paths.
  11936. [\\/]* | [A-Za-z]:[\\/]*)
  11937. re_direlt='/[^/][^/]*/\.\./'
  11938. # Canonicalize the path of ld
  11939. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11940. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11941. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11942. done
  11943. test -z "$LD" && LD="$ac_prog"
  11944. ;;
  11945. "")
  11946. # If it fails, then pretend we aren't using GCC.
  11947. ac_prog=ld
  11948. ;;
  11949. *)
  11950. # If it is relative, then search for the first ld in PATH.
  11951. with_gnu_ld=unknown
  11952. ;;
  11953. esac
  11954. elif test "$with_gnu_ld" = yes; then
  11955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11956. $as_echo_n "checking for GNU ld... " >&6; }
  11957. else
  11958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11959. $as_echo_n "checking for non-GNU ld... " >&6; }
  11960. fi
  11961. if ${acl_cv_path_LD+:} false; then :
  11962. $as_echo_n "(cached) " >&6
  11963. else
  11964. if test -z "$LD"; then
  11965. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11966. for ac_dir in $PATH; do
  11967. test -z "$ac_dir" && ac_dir=.
  11968. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11969. acl_cv_path_LD="$ac_dir/$ac_prog"
  11970. # Check to see if the program is GNU ld. I'd rather use --version,
  11971. # but apparently some GNU ld's only accept -v.
  11972. # Break only if it was the GNU/non-GNU ld that we prefer.
  11973. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  11974. test "$with_gnu_ld" != no && break
  11975. else
  11976. test "$with_gnu_ld" != yes && break
  11977. fi
  11978. fi
  11979. done
  11980. IFS="$ac_save_ifs"
  11981. else
  11982. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11983. fi
  11984. fi
  11985. LD="$acl_cv_path_LD"
  11986. if test -n "$LD"; then
  11987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11988. $as_echo "$LD" >&6; }
  11989. else
  11990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11991. $as_echo "no" >&6; }
  11992. fi
  11993. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11995. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11996. if ${acl_cv_prog_gnu_ld+:} false; then :
  11997. $as_echo_n "(cached) " >&6
  11998. else
  11999. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  12000. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  12001. acl_cv_prog_gnu_ld=yes
  12002. else
  12003. acl_cv_prog_gnu_ld=no
  12004. fi
  12005. fi
  12006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  12007. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  12008. with_gnu_ld=$acl_cv_prog_gnu_ld
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  12010. $as_echo_n "checking for shared library run path origin... " >&6; }
  12011. if ${acl_cv_rpath+:} false; then :
  12012. $as_echo_n "(cached) " >&6
  12013. else
  12014. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  12015. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  12016. . ./conftest.sh
  12017. rm -f ./conftest.sh
  12018. acl_cv_rpath=done
  12019. fi
  12020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  12021. $as_echo "$acl_cv_rpath" >&6; }
  12022. wl="$acl_cv_wl"
  12023. libext="$acl_cv_libext"
  12024. shlibext="$acl_cv_shlibext"
  12025. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  12026. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  12027. hardcode_direct="$acl_cv_hardcode_direct"
  12028. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  12029. # Check whether --enable-rpath was given.
  12030. if test "${enable_rpath+set}" = set; then :
  12031. enableval=$enable_rpath; :
  12032. else
  12033. enable_rpath=yes
  12034. fi
  12035. use_additional=yes
  12036. acl_save_prefix="$prefix"
  12037. prefix="$acl_final_prefix"
  12038. acl_save_exec_prefix="$exec_prefix"
  12039. exec_prefix="$acl_final_exec_prefix"
  12040. eval additional_includedir=\"$includedir\"
  12041. eval additional_libdir=\"$libdir\"
  12042. exec_prefix="$acl_save_exec_prefix"
  12043. prefix="$acl_save_prefix"
  12044. # Check whether --with-libiconv-prefix was given.
  12045. if test "${with_libiconv_prefix+set}" = set; then :
  12046. withval=$with_libiconv_prefix;
  12047. if test "X$withval" = "Xno"; then
  12048. use_additional=no
  12049. else
  12050. if test "X$withval" = "X"; then
  12051. acl_save_prefix="$prefix"
  12052. prefix="$acl_final_prefix"
  12053. acl_save_exec_prefix="$exec_prefix"
  12054. exec_prefix="$acl_final_exec_prefix"
  12055. eval additional_includedir=\"$includedir\"
  12056. eval additional_libdir=\"$libdir\"
  12057. exec_prefix="$acl_save_exec_prefix"
  12058. prefix="$acl_save_prefix"
  12059. else
  12060. additional_includedir="$withval/include"
  12061. additional_libdir="$withval/lib"
  12062. fi
  12063. fi
  12064. fi
  12065. # Check whether --with-libiconv-type was given.
  12066. if test "${with_libiconv_type+set}" = set; then :
  12067. withval=$with_libiconv_type; with_libiconv_type=$withval
  12068. else
  12069. with_libiconv_type=auto
  12070. fi
  12071. lib_type=`eval echo \$with_libiconv_type`
  12072. LIBICONV=
  12073. LTLIBICONV=
  12074. INCICONV=
  12075. rpathdirs=
  12076. ltrpathdirs=
  12077. names_already_handled=
  12078. names_next_round='iconv '
  12079. while test -n "$names_next_round"; do
  12080. names_this_round="$names_next_round"
  12081. names_next_round=
  12082. for name in $names_this_round; do
  12083. already_handled=
  12084. for n in $names_already_handled; do
  12085. if test "$n" = "$name"; then
  12086. already_handled=yes
  12087. break
  12088. fi
  12089. done
  12090. if test -z "$already_handled"; then
  12091. names_already_handled="$names_already_handled $name"
  12092. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12093. eval value=\"\$HAVE_LIB$uppername\"
  12094. if test -n "$value"; then
  12095. if test "$value" = yes; then
  12096. eval value=\"\$LIB$uppername\"
  12097. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12098. eval value=\"\$LTLIB$uppername\"
  12099. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12100. else
  12101. :
  12102. fi
  12103. else
  12104. found_dir=
  12105. found_la=
  12106. found_so=
  12107. found_a=
  12108. if test $use_additional = yes; then
  12109. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  12110. found_dir="$additional_libdir"
  12111. found_so="$additional_libdir/lib$name.$shlibext"
  12112. if test -f "$additional_libdir/lib$name.la"; then
  12113. found_la="$additional_libdir/lib$name.la"
  12114. fi
  12115. elif test x$lib_type != xshared; then
  12116. if test -f "$additional_libdir/lib$name.$libext"; then
  12117. found_dir="$additional_libdir"
  12118. found_a="$additional_libdir/lib$name.$libext"
  12119. if test -f "$additional_libdir/lib$name.la"; then
  12120. found_la="$additional_libdir/lib$name.la"
  12121. fi
  12122. fi
  12123. fi
  12124. fi
  12125. if test "X$found_dir" = "X"; then
  12126. for x in $LDFLAGS $LTLIBICONV; do
  12127. acl_save_prefix="$prefix"
  12128. prefix="$acl_final_prefix"
  12129. acl_save_exec_prefix="$exec_prefix"
  12130. exec_prefix="$acl_final_exec_prefix"
  12131. eval x=\"$x\"
  12132. exec_prefix="$acl_save_exec_prefix"
  12133. prefix="$acl_save_prefix"
  12134. case "$x" in
  12135. -L*)
  12136. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12137. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  12138. found_dir="$dir"
  12139. found_so="$dir/lib$name.$shlibext"
  12140. if test -f "$dir/lib$name.la"; then
  12141. found_la="$dir/lib$name.la"
  12142. fi
  12143. elif test x$lib_type != xshared; then
  12144. if test -f "$dir/lib$name.$libext"; then
  12145. found_dir="$dir"
  12146. found_a="$dir/lib$name.$libext"
  12147. if test -f "$dir/lib$name.la"; then
  12148. found_la="$dir/lib$name.la"
  12149. fi
  12150. fi
  12151. fi
  12152. ;;
  12153. esac
  12154. if test "X$found_dir" != "X"; then
  12155. break
  12156. fi
  12157. done
  12158. fi
  12159. if test "X$found_dir" != "X"; then
  12160. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12161. if test "X$found_so" != "X"; then
  12162. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  12163. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12164. else
  12165. haveit=
  12166. for x in $ltrpathdirs; do
  12167. if test "X$x" = "X$found_dir"; then
  12168. haveit=yes
  12169. break
  12170. fi
  12171. done
  12172. if test -z "$haveit"; then
  12173. ltrpathdirs="$ltrpathdirs $found_dir"
  12174. fi
  12175. if test "$hardcode_direct" = yes; then
  12176. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12177. else
  12178. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  12179. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12180. haveit=
  12181. for x in $rpathdirs; do
  12182. if test "X$x" = "X$found_dir"; then
  12183. haveit=yes
  12184. break
  12185. fi
  12186. done
  12187. if test -z "$haveit"; then
  12188. rpathdirs="$rpathdirs $found_dir"
  12189. fi
  12190. else
  12191. haveit=
  12192. for x in $LDFLAGS $LIBICONV; do
  12193. acl_save_prefix="$prefix"
  12194. prefix="$acl_final_prefix"
  12195. acl_save_exec_prefix="$exec_prefix"
  12196. exec_prefix="$acl_final_exec_prefix"
  12197. eval x=\"$x\"
  12198. exec_prefix="$acl_save_exec_prefix"
  12199. prefix="$acl_save_prefix"
  12200. if test "X$x" = "X-L$found_dir"; then
  12201. haveit=yes
  12202. break
  12203. fi
  12204. done
  12205. if test -z "$haveit"; then
  12206. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12207. fi
  12208. if test "$hardcode_minus_L" != no; then
  12209. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12210. else
  12211. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12212. fi
  12213. fi
  12214. fi
  12215. fi
  12216. else
  12217. if test "X$found_a" != "X"; then
  12218. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12219. else
  12220. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12221. fi
  12222. fi
  12223. additional_includedir=
  12224. case "$found_dir" in
  12225. */lib | */lib/)
  12226. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  12227. additional_includedir="$basedir/include"
  12228. ;;
  12229. esac
  12230. if test "X$additional_includedir" != "X"; then
  12231. if test "X$additional_includedir" != "X/usr/include"; then
  12232. haveit=
  12233. if test "X$additional_includedir" = "X/usr/local/include"; then
  12234. if test -n "$GCC"; then
  12235. case $host_os in
  12236. linux*) haveit=yes;;
  12237. esac
  12238. fi
  12239. fi
  12240. if test -z "$haveit"; then
  12241. for x in $CPPFLAGS $INCICONV; do
  12242. acl_save_prefix="$prefix"
  12243. prefix="$acl_final_prefix"
  12244. acl_save_exec_prefix="$exec_prefix"
  12245. exec_prefix="$acl_final_exec_prefix"
  12246. eval x=\"$x\"
  12247. exec_prefix="$acl_save_exec_prefix"
  12248. prefix="$acl_save_prefix"
  12249. if test "X$x" = "X-I$additional_includedir"; then
  12250. haveit=yes
  12251. break
  12252. fi
  12253. done
  12254. if test -z "$haveit"; then
  12255. if test -d "$additional_includedir"; then
  12256. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12257. fi
  12258. fi
  12259. fi
  12260. fi
  12261. fi
  12262. if test -n "$found_la"; then
  12263. save_libdir="$libdir"
  12264. case "$found_la" in
  12265. */* | *\\*) . "$found_la" ;;
  12266. *) . "./$found_la" ;;
  12267. esac
  12268. libdir="$save_libdir"
  12269. for dep in $dependency_libs; do
  12270. case "$dep" in
  12271. -L*)
  12272. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12273. if test "X$additional_libdir" != "X/usr/lib"; then
  12274. haveit=
  12275. if test "X$additional_libdir" = "X/usr/local/lib"; then
  12276. if test -n "$GCC"; then
  12277. case $host_os in
  12278. linux*) haveit=yes;;
  12279. esac
  12280. fi
  12281. fi
  12282. if test -z "$haveit"; then
  12283. haveit=
  12284. for x in $LDFLAGS $LIBICONV; do
  12285. acl_save_prefix="$prefix"
  12286. prefix="$acl_final_prefix"
  12287. acl_save_exec_prefix="$exec_prefix"
  12288. exec_prefix="$acl_final_exec_prefix"
  12289. eval x=\"$x\"
  12290. exec_prefix="$acl_save_exec_prefix"
  12291. prefix="$acl_save_prefix"
  12292. if test "X$x" = "X-L$additional_libdir"; then
  12293. haveit=yes
  12294. break
  12295. fi
  12296. done
  12297. if test -z "$haveit"; then
  12298. if test -d "$additional_libdir"; then
  12299. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12300. fi
  12301. fi
  12302. haveit=
  12303. for x in $LDFLAGS $LTLIBICONV; do
  12304. acl_save_prefix="$prefix"
  12305. prefix="$acl_final_prefix"
  12306. acl_save_exec_prefix="$exec_prefix"
  12307. exec_prefix="$acl_final_exec_prefix"
  12308. eval x=\"$x\"
  12309. exec_prefix="$acl_save_exec_prefix"
  12310. prefix="$acl_save_prefix"
  12311. if test "X$x" = "X-L$additional_libdir"; then
  12312. haveit=yes
  12313. break
  12314. fi
  12315. done
  12316. if test -z "$haveit"; then
  12317. if test -d "$additional_libdir"; then
  12318. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12319. fi
  12320. fi
  12321. fi
  12322. fi
  12323. ;;
  12324. -R*)
  12325. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12326. if test "$enable_rpath" != no; then
  12327. haveit=
  12328. for x in $rpathdirs; do
  12329. if test "X$x" = "X$dir"; then
  12330. haveit=yes
  12331. break
  12332. fi
  12333. done
  12334. if test -z "$haveit"; then
  12335. rpathdirs="$rpathdirs $dir"
  12336. fi
  12337. haveit=
  12338. for x in $ltrpathdirs; do
  12339. if test "X$x" = "X$dir"; then
  12340. haveit=yes
  12341. break
  12342. fi
  12343. done
  12344. if test -z "$haveit"; then
  12345. ltrpathdirs="$ltrpathdirs $dir"
  12346. fi
  12347. fi
  12348. ;;
  12349. -l*)
  12350. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12351. ;;
  12352. *.la)
  12353. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12354. ;;
  12355. *)
  12356. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12357. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12358. ;;
  12359. esac
  12360. done
  12361. fi
  12362. else
  12363. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  12364. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12365. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12366. else
  12367. LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
  12368. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
  12369. fi
  12370. fi
  12371. fi
  12372. fi
  12373. done
  12374. done
  12375. if test "X$rpathdirs" != "X"; then
  12376. if test -n "$hardcode_libdir_separator"; then
  12377. alldirs=
  12378. for found_dir in $rpathdirs; do
  12379. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  12380. done
  12381. acl_save_libdir="$libdir"
  12382. libdir="$alldirs"
  12383. eval flag=\"$hardcode_libdir_flag_spec\"
  12384. libdir="$acl_save_libdir"
  12385. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12386. else
  12387. for found_dir in $rpathdirs; do
  12388. acl_save_libdir="$libdir"
  12389. libdir="$found_dir"
  12390. eval flag=\"$hardcode_libdir_flag_spec\"
  12391. libdir="$acl_save_libdir"
  12392. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12393. done
  12394. fi
  12395. fi
  12396. if test "X$ltrpathdirs" != "X"; then
  12397. for found_dir in $ltrpathdirs; do
  12398. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12399. done
  12400. fi
  12401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  12402. $as_echo_n "checking for iconv... " >&6; }
  12403. if ${am_cv_func_iconv+:} false; then :
  12404. $as_echo_n "(cached) " >&6
  12405. else
  12406. am_cv_func_iconv="no, consider installing GNU libiconv"
  12407. am_cv_lib_iconv=no
  12408. am_save_CPPFLAGS="$CPPFLAGS"
  12409. CPPFLAGS="$CPPFLAGS $INCICONV"
  12410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12411. /* end confdefs.h. */
  12412. #include <stdlib.h>
  12413. #include <iconv.h>
  12414. int
  12415. main ()
  12416. {
  12417. iconv_t cd = iconv_open("","");
  12418. iconv(cd,NULL,NULL,NULL,NULL);
  12419. iconv_close(cd);
  12420. ;
  12421. return 0;
  12422. }
  12423. _ACEOF
  12424. if ac_fn_c_try_link "$LINENO"; then :
  12425. am_cv_func_iconv=yes
  12426. fi
  12427. rm -f core conftest.err conftest.$ac_objext \
  12428. conftest$ac_exeext conftest.$ac_ext
  12429. CPPFLAGS="$am_save_CPPFLAGS"
  12430. if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
  12431. for _libs in .libs _libs; do
  12432. am_save_CPPFLAGS="$CPPFLAGS"
  12433. am_save_LIBS="$LIBS"
  12434. CPPFLAGS="$CPPFLAGS -I../libiconv/include"
  12435. LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
  12436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12437. /* end confdefs.h. */
  12438. #include <stdlib.h>
  12439. #include <iconv.h>
  12440. int
  12441. main ()
  12442. {
  12443. iconv_t cd = iconv_open("","");
  12444. iconv(cd,NULL,NULL,NULL,NULL);
  12445. iconv_close(cd);
  12446. ;
  12447. return 0;
  12448. }
  12449. _ACEOF
  12450. if ac_fn_c_try_link "$LINENO"; then :
  12451. INCICONV="-I../libiconv/include"
  12452. LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
  12453. LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
  12454. am_cv_lib_iconv=yes
  12455. am_cv_func_iconv=yes
  12456. fi
  12457. rm -f core conftest.err conftest.$ac_objext \
  12458. conftest$ac_exeext conftest.$ac_ext
  12459. CPPFLAGS="$am_save_CPPFLAGS"
  12460. LIBS="$am_save_LIBS"
  12461. if test "$am_cv_func_iconv" = "yes"; then
  12462. break
  12463. fi
  12464. done
  12465. fi
  12466. if test "$am_cv_func_iconv" != yes; then
  12467. am_save_CPPFLAGS="$CPPFLAGS"
  12468. am_save_LIBS="$LIBS"
  12469. CPPFLAGS="$CPPFLAGS $INCICONV"
  12470. LIBS="$LIBS $LIBICONV"
  12471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12472. /* end confdefs.h. */
  12473. #include <stdlib.h>
  12474. #include <iconv.h>
  12475. int
  12476. main ()
  12477. {
  12478. iconv_t cd = iconv_open("","");
  12479. iconv(cd,NULL,NULL,NULL,NULL);
  12480. iconv_close(cd);
  12481. ;
  12482. return 0;
  12483. }
  12484. _ACEOF
  12485. if ac_fn_c_try_link "$LINENO"; then :
  12486. am_cv_lib_iconv=yes
  12487. am_cv_func_iconv=yes
  12488. fi
  12489. rm -f core conftest.err conftest.$ac_objext \
  12490. conftest$ac_exeext conftest.$ac_ext
  12491. CPPFLAGS="$am_save_CPPFLAGS"
  12492. LIBS="$am_save_LIBS"
  12493. fi
  12494. fi
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  12496. $as_echo "$am_cv_func_iconv" >&6; }
  12497. if test "$am_cv_func_iconv" = yes; then
  12498. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  12499. fi
  12500. if test "$am_cv_lib_iconv" = yes; then
  12501. for element in $INCICONV; do
  12502. haveit=
  12503. for x in $CPPFLAGS; do
  12504. acl_save_prefix="$prefix"
  12505. prefix="$acl_final_prefix"
  12506. acl_save_exec_prefix="$exec_prefix"
  12507. exec_prefix="$acl_final_exec_prefix"
  12508. eval x=\"$x\"
  12509. exec_prefix="$acl_save_exec_prefix"
  12510. prefix="$acl_save_prefix"
  12511. if test "X$x" = "X$element"; then
  12512. haveit=yes
  12513. break
  12514. fi
  12515. done
  12516. if test -z "$haveit"; then
  12517. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12518. fi
  12519. done
  12520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  12521. $as_echo_n "checking how to link with libiconv... " >&6; }
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  12523. $as_echo "$LIBICONV" >&6; }
  12524. else
  12525. LIBICONV=
  12526. LTLIBICONV=
  12527. fi
  12528. if test "$am_cv_func_iconv" = yes; then
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  12530. $as_echo_n "checking for iconv declaration... " >&6; }
  12531. if ${am_cv_proto_iconv+:} false; then :
  12532. $as_echo_n "(cached) " >&6
  12533. else
  12534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12535. /* end confdefs.h. */
  12536. #include <stdlib.h>
  12537. #include <iconv.h>
  12538. extern
  12539. #ifdef __cplusplus
  12540. "C"
  12541. #endif
  12542. #if defined(__STDC__) || defined(__cplusplus)
  12543. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12544. #else
  12545. size_t iconv();
  12546. #endif
  12547. int
  12548. main ()
  12549. {
  12550. ;
  12551. return 0;
  12552. }
  12553. _ACEOF
  12554. if ac_fn_c_try_compile "$LINENO"; then :
  12555. am_cv_proto_iconv_arg1=""
  12556. else
  12557. am_cv_proto_iconv_arg1="const"
  12558. fi
  12559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12560. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  12561. fi
  12562. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  12564. }$am_cv_proto_iconv" >&5
  12565. $as_echo "${ac_t:-
  12566. }$am_cv_proto_iconv" >&6; }
  12567. cat >>confdefs.h <<_ACEOF
  12568. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12569. _ACEOF
  12570. fi
  12571. all_targets=false
  12572. BUILD_SRCONV=
  12573. BUILD_DLLTOOL=
  12574. DLLTOOL_DEFS=
  12575. DLLTOOL_DEFAULT=
  12576. BUILD_WINDRES=
  12577. BUILD_WINDMC=
  12578. BUILD_DLLWRAP=
  12579. BUILD_MISC=
  12580. BUILD_INSTALL_MISC=
  12581. OBJDUMP_DEFS=
  12582. OBJDUMP_PRIVATE_VECTORS=
  12583. OBJDUMP_PRIVATE_OFILES=
  12584. od_vectors=
  12585. for targ in $target $canon_targets
  12586. do
  12587. if test "x$targ" = "xall"; then
  12588. all_targets=true
  12589. BUILD_SRCONV='$(SRCONV_PROG)'
  12590. BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
  12591. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12592. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12593. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12594. if test -z "$DLLTOOL_DEFAULT"; then
  12595. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12596. fi
  12597. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12598. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12599. od_vectors="$od_vectors objdump_private_desc_xcoff"
  12600. else
  12601. case $targ in
  12602. *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
  12603. esac
  12604. case $targ in
  12605. arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
  12606. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12607. if test -z "$DLLTOOL_DEFAULT"; then
  12608. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
  12609. fi
  12610. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
  12611. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12612. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12613. ;;
  12614. arm-*-pe*)
  12615. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12616. if test -z "$DLLTOOL_DEFAULT"; then
  12617. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
  12618. fi
  12619. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
  12620. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12621. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12622. ;;
  12623. x86_64-*-mingw* | x86_64-*-cygwin*)
  12624. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12625. if test -z "$DLLTOOL_DEFAULT"; then
  12626. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
  12627. fi
  12628. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
  12629. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12630. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12631. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12632. ;;
  12633. i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32**)
  12634. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12635. if test -z "$DLLTOOL_DEFAULT"; then
  12636. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12637. fi
  12638. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12639. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12640. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12641. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12642. ;;
  12643. i[3-7]86-*-interix)
  12644. BUILD_DLLTOOL='$(DLLTOOL_PROG)'
  12645. if test -z "$DLLTOOL_DEFAULT"; then
  12646. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12647. fi
  12648. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12649. ;;
  12650. powerpc*-aix5.[01])
  12651. ;;
  12652. powerpc*-aix[5-9].*)
  12653. OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
  12654. ;;
  12655. powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
  12656. case "$BUILD_INSTALL_MISC" in
  12657. *embedspu*) ;;
  12658. *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
  12659. esac
  12660. ;;
  12661. sh*-*-pe)
  12662. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12663. if test -z "$DLLTOOL_DEFAULT"; then
  12664. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
  12665. fi
  12666. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
  12667. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12668. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12669. ;;
  12670. spu-*-*)
  12671. BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
  12672. ;;
  12673. mips*-*-pe)
  12674. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12675. if test -z "$DLLTOOL_DEFAULT"; then
  12676. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
  12677. fi
  12678. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
  12679. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12680. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12681. ;;
  12682. mcore-*-pe)
  12683. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12684. if test -z "$DLLTOOL_DEFAULT"; then
  12685. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
  12686. fi
  12687. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
  12688. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12689. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12690. ;;
  12691. mcore-*-elf)
  12692. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12693. if test -z "$DLLTOOL_DEFAULT"; then
  12694. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
  12695. fi
  12696. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
  12697. ;;
  12698. mep-*)
  12699. OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
  12700. ;;
  12701. esac
  12702. # Add objdump private vectors.
  12703. case $targ in
  12704. avr-*-*)
  12705. od_vectors="$od_vectors objdump_private_desc_elf32_avr"
  12706. ;;
  12707. powerpc*-*-aix* | rs6000-*-aix*)
  12708. od_vectors="$od_vectors objdump_private_desc_xcoff"
  12709. ;;
  12710. *-*-darwin*)
  12711. od_vectors="$od_vectors objdump_private_desc_mach_o"
  12712. ;;
  12713. esac
  12714. fi
  12715. done
  12716. # Uniq objdump private vector, build objdump target ofiles.
  12717. od_files=
  12718. f=""
  12719. for i in $od_vectors ; do
  12720. case " $f " in
  12721. *" $i "*) ;;
  12722. *)
  12723. f="$f $i"
  12724. OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
  12725. case $i in
  12726. objdump_private_desc_elf32_avr)
  12727. od_files="$od_files od-elf32_avr" ;;
  12728. objdump_private_desc_xcoff)
  12729. od_files="$od_files od-xcoff" ;;
  12730. objdump_private_desc_mach_o)
  12731. od_files="$od_files od-macho" ;;
  12732. *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
  12733. esac
  12734. ;;
  12735. esac
  12736. done
  12737. # Uniq objdump target ofiles
  12738. f=""
  12739. for i in $od_files ; do
  12740. case " $f " in
  12741. *" $i "*) ;;
  12742. *)
  12743. f="$f $i"
  12744. OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
  12745. ;;
  12746. esac
  12747. done
  12748. DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
  12749. if test "${with_windres+set}" = set; then
  12750. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12751. fi
  12752. if test "${with_windmc+set}" = set; then
  12753. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12754. fi
  12755. OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
  12756. cat >>confdefs.h <<_ACEOF
  12757. #define TARGET "${target}"
  12758. _ACEOF
  12759. targ=$target
  12760. . $srcdir/../bfd/config.bfd
  12761. if test "x$targ_underscore" = "xyes"; then
  12762. UNDERSCORE=1
  12763. else
  12764. UNDERSCORE=0
  12765. fi
  12766. cat >>confdefs.h <<_ACEOF
  12767. #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
  12768. _ACEOF
  12769. # Emulation
  12770. targ=$target
  12771. . ${srcdir}/configure.tgt
  12772. EMULATION=$targ_emul
  12773. EMULATION_VECTOR=$targ_emul_vector
  12774. # Required for html and install-html
  12775. ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
  12776. cat >confcache <<\_ACEOF
  12777. # This file is a shell script that caches the results of configure
  12778. # tests run on this system so they can be shared between configure
  12779. # scripts and configure runs, see configure's option --config-cache.
  12780. # It is not useful on other systems. If it contains results you don't
  12781. # want to keep, you may remove or edit it.
  12782. #
  12783. # config.status only pays attention to the cache file if you give it
  12784. # the --recheck option to rerun configure.
  12785. #
  12786. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12787. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12788. # following values.
  12789. _ACEOF
  12790. # The following way of writing the cache mishandles newlines in values,
  12791. # but we know of no workaround that is simple, portable, and efficient.
  12792. # So, we kill variables containing newlines.
  12793. # Ultrix sh set writes to stderr and can't be redirected directly,
  12794. # and sets the high bit in the cache file unless we assign to the vars.
  12795. (
  12796. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12797. eval ac_val=\$$ac_var
  12798. case $ac_val in #(
  12799. *${as_nl}*)
  12800. case $ac_var in #(
  12801. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12802. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12803. esac
  12804. case $ac_var in #(
  12805. _ | IFS | as_nl) ;; #(
  12806. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12807. *) { eval $ac_var=; unset $ac_var;} ;;
  12808. esac ;;
  12809. esac
  12810. done
  12811. (set) 2>&1 |
  12812. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12813. *${as_nl}ac_space=\ *)
  12814. # `set' does not quote correctly, so add quotes: double-quote
  12815. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12816. sed -n \
  12817. "s/'/'\\\\''/g;
  12818. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12819. ;; #(
  12820. *)
  12821. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12822. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12823. ;;
  12824. esac |
  12825. sort
  12826. ) |
  12827. sed '
  12828. /^ac_cv_env_/b end
  12829. t clear
  12830. :clear
  12831. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12832. t end
  12833. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12834. :end' >>confcache
  12835. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12836. if test -w "$cache_file"; then
  12837. if test "x$cache_file" != "x/dev/null"; then
  12838. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12839. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12840. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12841. cat confcache >"$cache_file"
  12842. else
  12843. case $cache_file in #(
  12844. */* | ?:*)
  12845. mv -f confcache "$cache_file"$$ &&
  12846. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12847. *)
  12848. mv -f confcache "$cache_file" ;;
  12849. esac
  12850. fi
  12851. fi
  12852. else
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12854. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12855. fi
  12856. fi
  12857. rm -f confcache
  12858. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12859. # Let make expand exec_prefix.
  12860. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12861. DEFS=-DHAVE_CONFIG_H
  12862. ac_libobjs=
  12863. ac_ltlibobjs=
  12864. U=
  12865. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12866. # 1. Remove the extension, and $U if already installed.
  12867. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12868. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12869. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12870. # will be set to the directory where LIBOBJS objects are built.
  12871. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12872. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12873. done
  12874. LIBOBJS=$ac_libobjs
  12875. LTLIBOBJS=$ac_ltlibobjs
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12877. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12878. if test -n "$am_sleep_pid"; then
  12879. # Hide warnings about reused PIDs.
  12880. wait $am_sleep_pid 2>/dev/null
  12881. fi
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12883. $as_echo "done" >&6; }
  12884. if test -n "$EXEEXT"; then
  12885. am__EXEEXT_TRUE=
  12886. am__EXEEXT_FALSE='#'
  12887. else
  12888. am__EXEEXT_TRUE='#'
  12889. am__EXEEXT_FALSE=
  12890. fi
  12891. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12892. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12893. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12894. fi
  12895. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12896. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12897. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12898. fi
  12899. if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
  12900. as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
  12901. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12902. fi
  12903. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12904. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  12905. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12906. fi
  12907. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  12908. as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
  12909. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12910. fi
  12911. : "${CONFIG_STATUS=./config.status}"
  12912. ac_write_fail=0
  12913. ac_clean_files_save=$ac_clean_files
  12914. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12916. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12917. as_write_fail=0
  12918. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12919. #! $SHELL
  12920. # Generated by $as_me.
  12921. # Run this file to recreate the current configuration.
  12922. # Compiler output produced by configure, useful for debugging
  12923. # configure, is in config.log if it exists.
  12924. debug=false
  12925. ac_cs_recheck=false
  12926. ac_cs_silent=false
  12927. SHELL=\${CONFIG_SHELL-$SHELL}
  12928. export SHELL
  12929. _ASEOF
  12930. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12931. ## -------------------- ##
  12932. ## M4sh Initialization. ##
  12933. ## -------------------- ##
  12934. # Be more Bourne compatible
  12935. DUALCASE=1; export DUALCASE # for MKS sh
  12936. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12937. emulate sh
  12938. NULLCMD=:
  12939. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12940. # is contrary to our usage. Disable this feature.
  12941. alias -g '${1+"$@"}'='"$@"'
  12942. setopt NO_GLOB_SUBST
  12943. else
  12944. case `(set -o) 2>/dev/null` in #(
  12945. *posix*) :
  12946. set -o posix ;; #(
  12947. *) :
  12948. ;;
  12949. esac
  12950. fi
  12951. as_nl='
  12952. '
  12953. export as_nl
  12954. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12955. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12956. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12957. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12958. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12959. # but without wasting forks for bash or zsh.
  12960. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12961. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12962. as_echo='print -r --'
  12963. as_echo_n='print -rn --'
  12964. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12965. as_echo='printf %s\n'
  12966. as_echo_n='printf %s'
  12967. else
  12968. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12969. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12970. as_echo_n='/usr/ucb/echo -n'
  12971. else
  12972. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12973. as_echo_n_body='eval
  12974. arg=$1;
  12975. case $arg in #(
  12976. *"$as_nl"*)
  12977. expr "X$arg" : "X\\(.*\\)$as_nl";
  12978. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12979. esac;
  12980. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12981. '
  12982. export as_echo_n_body
  12983. as_echo_n='sh -c $as_echo_n_body as_echo'
  12984. fi
  12985. export as_echo_body
  12986. as_echo='sh -c $as_echo_body as_echo'
  12987. fi
  12988. # The user is always right.
  12989. if test "${PATH_SEPARATOR+set}" != set; then
  12990. PATH_SEPARATOR=:
  12991. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12992. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12993. PATH_SEPARATOR=';'
  12994. }
  12995. fi
  12996. # IFS
  12997. # We need space, tab and new line, in precisely that order. Quoting is
  12998. # there to prevent editors from complaining about space-tab.
  12999. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13000. # splitting by setting IFS to empty value.)
  13001. IFS=" "" $as_nl"
  13002. # Find who we are. Look in the path if we contain no directory separator.
  13003. as_myself=
  13004. case $0 in #((
  13005. *[\\/]* ) as_myself=$0 ;;
  13006. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13007. for as_dir in $PATH
  13008. do
  13009. IFS=$as_save_IFS
  13010. test -z "$as_dir" && as_dir=.
  13011. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13012. done
  13013. IFS=$as_save_IFS
  13014. ;;
  13015. esac
  13016. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13017. # in which case we are not to be found in the path.
  13018. if test "x$as_myself" = x; then
  13019. as_myself=$0
  13020. fi
  13021. if test ! -f "$as_myself"; then
  13022. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13023. exit 1
  13024. fi
  13025. # Unset variables that we do not need and which cause bugs (e.g. in
  13026. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13027. # suppresses any "Segmentation fault" message there. '((' could
  13028. # trigger a bug in pdksh 5.2.14.
  13029. for as_var in BASH_ENV ENV MAIL MAILPATH
  13030. do eval test x\${$as_var+set} = xset \
  13031. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13032. done
  13033. PS1='$ '
  13034. PS2='> '
  13035. PS4='+ '
  13036. # NLS nuisances.
  13037. LC_ALL=C
  13038. export LC_ALL
  13039. LANGUAGE=C
  13040. export LANGUAGE
  13041. # CDPATH.
  13042. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13043. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13044. # ----------------------------------------
  13045. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13046. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13047. # script with STATUS, using 1 if that was 0.
  13048. as_fn_error ()
  13049. {
  13050. as_status=$1; test $as_status -eq 0 && as_status=1
  13051. if test "$4"; then
  13052. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13053. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13054. fi
  13055. $as_echo "$as_me: error: $2" >&2
  13056. as_fn_exit $as_status
  13057. } # as_fn_error
  13058. # as_fn_set_status STATUS
  13059. # -----------------------
  13060. # Set $? to STATUS, without forking.
  13061. as_fn_set_status ()
  13062. {
  13063. return $1
  13064. } # as_fn_set_status
  13065. # as_fn_exit STATUS
  13066. # -----------------
  13067. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13068. as_fn_exit ()
  13069. {
  13070. set +e
  13071. as_fn_set_status $1
  13072. exit $1
  13073. } # as_fn_exit
  13074. # as_fn_unset VAR
  13075. # ---------------
  13076. # Portably unset VAR.
  13077. as_fn_unset ()
  13078. {
  13079. { eval $1=; unset $1;}
  13080. }
  13081. as_unset=as_fn_unset
  13082. # as_fn_append VAR VALUE
  13083. # ----------------------
  13084. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13085. # advantage of any shell optimizations that allow amortized linear growth over
  13086. # repeated appends, instead of the typical quadratic growth present in naive
  13087. # implementations.
  13088. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13089. eval 'as_fn_append ()
  13090. {
  13091. eval $1+=\$2
  13092. }'
  13093. else
  13094. as_fn_append ()
  13095. {
  13096. eval $1=\$$1\$2
  13097. }
  13098. fi # as_fn_append
  13099. # as_fn_arith ARG...
  13100. # ------------------
  13101. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13102. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13103. # must be portable across $(()) and expr.
  13104. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13105. eval 'as_fn_arith ()
  13106. {
  13107. as_val=$(( $* ))
  13108. }'
  13109. else
  13110. as_fn_arith ()
  13111. {
  13112. as_val=`expr "$@" || test $? -eq 1`
  13113. }
  13114. fi # as_fn_arith
  13115. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13116. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13117. as_expr=expr
  13118. else
  13119. as_expr=false
  13120. fi
  13121. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13122. as_basename=basename
  13123. else
  13124. as_basename=false
  13125. fi
  13126. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13127. as_dirname=dirname
  13128. else
  13129. as_dirname=false
  13130. fi
  13131. as_me=`$as_basename -- "$0" ||
  13132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13133. X"$0" : 'X\(//\)$' \| \
  13134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13135. $as_echo X/"$0" |
  13136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13137. s//\1/
  13138. q
  13139. }
  13140. /^X\/\(\/\/\)$/{
  13141. s//\1/
  13142. q
  13143. }
  13144. /^X\/\(\/\).*/{
  13145. s//\1/
  13146. q
  13147. }
  13148. s/.*/./; q'`
  13149. # Avoid depending upon Character Ranges.
  13150. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13151. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13152. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13153. as_cr_digits='0123456789'
  13154. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13155. ECHO_C= ECHO_N= ECHO_T=
  13156. case `echo -n x` in #(((((
  13157. -n*)
  13158. case `echo 'xy\c'` in
  13159. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13160. xy) ECHO_C='\c';;
  13161. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13162. ECHO_T=' ';;
  13163. esac;;
  13164. *)
  13165. ECHO_N='-n';;
  13166. esac
  13167. rm -f conf$$ conf$$.exe conf$$.file
  13168. if test -d conf$$.dir; then
  13169. rm -f conf$$.dir/conf$$.file
  13170. else
  13171. rm -f conf$$.dir
  13172. mkdir conf$$.dir 2>/dev/null
  13173. fi
  13174. if (echo >conf$$.file) 2>/dev/null; then
  13175. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13176. as_ln_s='ln -s'
  13177. # ... but there are two gotchas:
  13178. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13179. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13180. # In both cases, we have to default to `cp -pR'.
  13181. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13182. as_ln_s='cp -pR'
  13183. elif ln conf$$.file conf$$ 2>/dev/null; then
  13184. as_ln_s=ln
  13185. else
  13186. as_ln_s='cp -pR'
  13187. fi
  13188. else
  13189. as_ln_s='cp -pR'
  13190. fi
  13191. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13192. rmdir conf$$.dir 2>/dev/null
  13193. # as_fn_mkdir_p
  13194. # -------------
  13195. # Create "$as_dir" as a directory, including parents if necessary.
  13196. as_fn_mkdir_p ()
  13197. {
  13198. case $as_dir in #(
  13199. -*) as_dir=./$as_dir;;
  13200. esac
  13201. test -d "$as_dir" || eval $as_mkdir_p || {
  13202. as_dirs=
  13203. while :; do
  13204. case $as_dir in #(
  13205. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13206. *) as_qdir=$as_dir;;
  13207. esac
  13208. as_dirs="'$as_qdir' $as_dirs"
  13209. as_dir=`$as_dirname -- "$as_dir" ||
  13210. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13211. X"$as_dir" : 'X\(//\)[^/]' \| \
  13212. X"$as_dir" : 'X\(//\)$' \| \
  13213. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13214. $as_echo X"$as_dir" |
  13215. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13216. s//\1/
  13217. q
  13218. }
  13219. /^X\(\/\/\)[^/].*/{
  13220. s//\1/
  13221. q
  13222. }
  13223. /^X\(\/\/\)$/{
  13224. s//\1/
  13225. q
  13226. }
  13227. /^X\(\/\).*/{
  13228. s//\1/
  13229. q
  13230. }
  13231. s/.*/./; q'`
  13232. test -d "$as_dir" && break
  13233. done
  13234. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13235. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13236. } # as_fn_mkdir_p
  13237. if mkdir -p . 2>/dev/null; then
  13238. as_mkdir_p='mkdir -p "$as_dir"'
  13239. else
  13240. test -d ./-p && rmdir ./-p
  13241. as_mkdir_p=false
  13242. fi
  13243. # as_fn_executable_p FILE
  13244. # -----------------------
  13245. # Test if FILE is an executable regular file.
  13246. as_fn_executable_p ()
  13247. {
  13248. test -f "$1" && test -x "$1"
  13249. } # as_fn_executable_p
  13250. as_test_x='test -x'
  13251. as_executable_p=as_fn_executable_p
  13252. # Sed expression to map a string onto a valid CPP name.
  13253. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13254. # Sed expression to map a string onto a valid variable name.
  13255. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13256. exec 6>&1
  13257. ## ----------------------------------- ##
  13258. ## Main body of $CONFIG_STATUS script. ##
  13259. ## ----------------------------------- ##
  13260. _ASEOF
  13261. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13262. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13263. # Save the log message, to keep $0 and so on meaningful, and to
  13264. # report actual input values of CONFIG_FILES etc. instead of their
  13265. # values after options handling.
  13266. ac_log="
  13267. This file was extended by binutils $as_me 2.38.50, which was
  13268. generated by GNU Autoconf 2.69. Invocation command line was
  13269. CONFIG_FILES = $CONFIG_FILES
  13270. CONFIG_HEADERS = $CONFIG_HEADERS
  13271. CONFIG_LINKS = $CONFIG_LINKS
  13272. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13273. $ $0 $@
  13274. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13275. "
  13276. _ACEOF
  13277. case $ac_config_files in *"
  13278. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13279. esac
  13280. case $ac_config_headers in *"
  13281. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13282. esac
  13283. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13284. # Files that config.status was made for.
  13285. config_files="$ac_config_files"
  13286. config_headers="$ac_config_headers"
  13287. config_commands="$ac_config_commands"
  13288. _ACEOF
  13289. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13290. ac_cs_usage="\
  13291. \`$as_me' instantiates files and other configuration actions
  13292. from templates according to the current configuration. Unless the files
  13293. and actions are specified as TAGs, all are instantiated by default.
  13294. Usage: $0 [OPTION]... [TAG]...
  13295. -h, --help print this help, then exit
  13296. -V, --version print version number and configuration settings, then exit
  13297. --config print configuration, then exit
  13298. -q, --quiet, --silent
  13299. do not print progress messages
  13300. -d, --debug don't remove temporary files
  13301. --recheck update $as_me by reconfiguring in the same conditions
  13302. --file=FILE[:TEMPLATE]
  13303. instantiate the configuration file FILE
  13304. --header=FILE[:TEMPLATE]
  13305. instantiate the configuration header FILE
  13306. Configuration files:
  13307. $config_files
  13308. Configuration headers:
  13309. $config_headers
  13310. Configuration commands:
  13311. $config_commands
  13312. Report bugs to the package provider."
  13313. _ACEOF
  13314. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13315. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13316. ac_cs_version="\\
  13317. binutils config.status 2.38.50
  13318. configured by $0, generated by GNU Autoconf 2.69,
  13319. with options \\"\$ac_cs_config\\"
  13320. Copyright (C) 2012 Free Software Foundation, Inc.
  13321. This config.status script is free software; the Free Software Foundation
  13322. gives unlimited permission to copy, distribute and modify it."
  13323. ac_pwd='$ac_pwd'
  13324. srcdir='$srcdir'
  13325. INSTALL='$INSTALL'
  13326. MKDIR_P='$MKDIR_P'
  13327. AWK='$AWK'
  13328. test -n "\$AWK" || AWK=awk
  13329. _ACEOF
  13330. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13331. # The default lists apply if the user does not specify any file.
  13332. ac_need_defaults=:
  13333. while test $# != 0
  13334. do
  13335. case $1 in
  13336. --*=?*)
  13337. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13338. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13339. ac_shift=:
  13340. ;;
  13341. --*=)
  13342. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13343. ac_optarg=
  13344. ac_shift=:
  13345. ;;
  13346. *)
  13347. ac_option=$1
  13348. ac_optarg=$2
  13349. ac_shift=shift
  13350. ;;
  13351. esac
  13352. case $ac_option in
  13353. # Handling of the options.
  13354. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13355. ac_cs_recheck=: ;;
  13356. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13357. $as_echo "$ac_cs_version"; exit ;;
  13358. --config | --confi | --conf | --con | --co | --c )
  13359. $as_echo "$ac_cs_config"; exit ;;
  13360. --debug | --debu | --deb | --de | --d | -d )
  13361. debug=: ;;
  13362. --file | --fil | --fi | --f )
  13363. $ac_shift
  13364. case $ac_optarg in
  13365. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13366. '') as_fn_error $? "missing file argument" ;;
  13367. esac
  13368. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13369. ac_need_defaults=false;;
  13370. --header | --heade | --head | --hea )
  13371. $ac_shift
  13372. case $ac_optarg in
  13373. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13374. esac
  13375. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13376. ac_need_defaults=false;;
  13377. --he | --h)
  13378. # Conflict between --help and --header
  13379. as_fn_error $? "ambiguous option: \`$1'
  13380. Try \`$0 --help' for more information.";;
  13381. --help | --hel | -h )
  13382. $as_echo "$ac_cs_usage"; exit ;;
  13383. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13384. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13385. ac_cs_silent=: ;;
  13386. # This is an error.
  13387. -*) as_fn_error $? "unrecognized option: \`$1'
  13388. Try \`$0 --help' for more information." ;;
  13389. *) as_fn_append ac_config_targets " $1"
  13390. ac_need_defaults=false ;;
  13391. esac
  13392. shift
  13393. done
  13394. ac_configure_extra_args=
  13395. if $ac_cs_silent; then
  13396. exec 6>/dev/null
  13397. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13398. fi
  13399. _ACEOF
  13400. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13401. if \$ac_cs_recheck; then
  13402. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13403. shift
  13404. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13405. CONFIG_SHELL='$SHELL'
  13406. export CONFIG_SHELL
  13407. exec "\$@"
  13408. fi
  13409. _ACEOF
  13410. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13411. exec 5>>config.log
  13412. {
  13413. echo
  13414. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13415. ## Running $as_me. ##
  13416. _ASBOX
  13417. $as_echo "$ac_log"
  13418. } >&5
  13419. _ACEOF
  13420. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13421. #
  13422. # INIT-COMMANDS
  13423. #
  13424. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13425. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13426. # if CDPATH is set.
  13427. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13428. sed_quote_subst='$sed_quote_subst'
  13429. double_quote_subst='$double_quote_subst'
  13430. delay_variable_subst='$delay_variable_subst'
  13431. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13432. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13433. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13434. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13435. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13436. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13437. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13438. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13439. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13440. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13441. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13442. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13443. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13444. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13445. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13446. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13447. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13448. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13449. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13450. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13451. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13452. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13453. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13454. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13455. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13456. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13457. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13458. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13459. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13460. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13461. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13462. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13463. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13464. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13465. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13466. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13467. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13468. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13469. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13470. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13471. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13472. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13473. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13474. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13475. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13476. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13477. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13478. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13479. 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"`'
  13480. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13481. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13482. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13483. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13484. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13485. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13486. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13487. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13488. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13489. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13490. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13491. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13492. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13493. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13494. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13495. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13496. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13497. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13498. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13499. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13500. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13501. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13502. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13503. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13504. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13505. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13506. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13507. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13508. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13509. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13510. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13511. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13512. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13513. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13514. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13515. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13516. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13517. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13518. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13519. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13520. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13521. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13522. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13523. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13524. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13525. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13526. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13527. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13528. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13529. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13530. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13531. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13532. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13533. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13534. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13535. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13536. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13537. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13538. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13539. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13540. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13541. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13542. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13543. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13544. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13545. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13546. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13547. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13548. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13549. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13550. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13551. LTCC='$LTCC'
  13552. LTCFLAGS='$LTCFLAGS'
  13553. compiler='$compiler_DEFAULT'
  13554. # A function that is used when there is no print builtin or printf.
  13555. func_fallback_echo ()
  13556. {
  13557. eval 'cat <<_LTECHO_EOF
  13558. \$1
  13559. _LTECHO_EOF'
  13560. }
  13561. # Quote evaled strings.
  13562. for var in SHELL \
  13563. ECHO \
  13564. SED \
  13565. GREP \
  13566. EGREP \
  13567. FGREP \
  13568. LD \
  13569. NM \
  13570. LN_S \
  13571. lt_SP2NL \
  13572. lt_NL2SP \
  13573. reload_flag \
  13574. OBJDUMP \
  13575. deplibs_check_method \
  13576. file_magic_cmd \
  13577. AR \
  13578. AR_FLAGS \
  13579. STRIP \
  13580. RANLIB \
  13581. CC \
  13582. CFLAGS \
  13583. compiler \
  13584. lt_cv_sys_global_symbol_pipe \
  13585. lt_cv_sys_global_symbol_to_cdecl \
  13586. lt_cv_sys_global_symbol_to_c_name_address \
  13587. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13588. lt_prog_compiler_no_builtin_flag \
  13589. lt_prog_compiler_wl \
  13590. lt_prog_compiler_pic \
  13591. lt_prog_compiler_static \
  13592. lt_cv_prog_compiler_c_o \
  13593. need_locks \
  13594. DSYMUTIL \
  13595. NMEDIT \
  13596. LIPO \
  13597. OTOOL \
  13598. OTOOL64 \
  13599. shrext_cmds \
  13600. export_dynamic_flag_spec \
  13601. whole_archive_flag_spec \
  13602. compiler_needs_object \
  13603. with_gnu_ld \
  13604. allow_undefined_flag \
  13605. no_undefined_flag \
  13606. hardcode_libdir_flag_spec \
  13607. hardcode_libdir_flag_spec_ld \
  13608. hardcode_libdir_separator \
  13609. fix_srcfile_path \
  13610. exclude_expsyms \
  13611. include_expsyms \
  13612. file_list_spec \
  13613. variables_saved_for_relink \
  13614. libname_spec \
  13615. library_names_spec \
  13616. soname_spec \
  13617. install_override_mode \
  13618. finish_eval \
  13619. old_striplib \
  13620. striplib; do
  13621. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13622. *[\\\\\\\`\\"\\\$]*)
  13623. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13624. ;;
  13625. *)
  13626. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13627. ;;
  13628. esac
  13629. done
  13630. # Double-quote double-evaled strings.
  13631. for var in reload_cmds \
  13632. old_postinstall_cmds \
  13633. old_postuninstall_cmds \
  13634. old_archive_cmds \
  13635. extract_expsyms_cmds \
  13636. old_archive_from_new_cmds \
  13637. old_archive_from_expsyms_cmds \
  13638. archive_cmds \
  13639. archive_expsym_cmds \
  13640. module_cmds \
  13641. module_expsym_cmds \
  13642. export_symbols_cmds \
  13643. prelink_cmds \
  13644. postinstall_cmds \
  13645. postuninstall_cmds \
  13646. finish_cmds \
  13647. sys_lib_search_path_spec \
  13648. sys_lib_dlsearch_path_spec; do
  13649. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13650. *[\\\\\\\`\\"\\\$]*)
  13651. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13652. ;;
  13653. *)
  13654. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13655. ;;
  13656. esac
  13657. done
  13658. ac_aux_dir='$ac_aux_dir'
  13659. xsi_shell='$xsi_shell'
  13660. lt_shell_append='$lt_shell_append'
  13661. # See if we are running on zsh, and set the options which allow our
  13662. # commands through without removal of \ escapes INIT.
  13663. if test -n "\${ZSH_VERSION+set}" ; then
  13664. setopt NO_GLOB_SUBST
  13665. fi
  13666. PACKAGE='$PACKAGE'
  13667. VERSION='$VERSION'
  13668. TIMESTAMP='$TIMESTAMP'
  13669. RM='$RM'
  13670. ofile='$ofile'
  13671. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13672. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  13673. # from automake.
  13674. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13675. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13676. LINGUAS="${LINGUAS-%UNSET%}"
  13677. _ACEOF
  13678. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13679. # Handling of arguments.
  13680. for ac_config_target in $ac_config_targets
  13681. do
  13682. case $ac_config_target in
  13683. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13684. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13685. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  13686. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13687. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13688. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  13689. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13690. esac
  13691. done
  13692. # If the user did not use the arguments to specify the items to instantiate,
  13693. # then the envvar interface is used. Set only those that are not.
  13694. # We use the long form for the default assignment because of an extremely
  13695. # bizarre bug on SunOS 4.1.3.
  13696. if $ac_need_defaults; then
  13697. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13698. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13699. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13700. fi
  13701. # Have a temporary directory for convenience. Make it in the build tree
  13702. # simply because there is no reason against having it here, and in addition,
  13703. # creating and moving files from /tmp can sometimes cause problems.
  13704. # Hook for its removal unless debugging.
  13705. # Note that there is a small window in which the directory will not be cleaned:
  13706. # after its creation but before its name has been assigned to `$tmp'.
  13707. $debug ||
  13708. {
  13709. tmp= ac_tmp=
  13710. trap 'exit_status=$?
  13711. : "${ac_tmp:=$tmp}"
  13712. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13713. ' 0
  13714. trap 'as_fn_exit 1' 1 2 13 15
  13715. }
  13716. # Create a (secure) tmp directory for tmp files.
  13717. {
  13718. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13719. test -d "$tmp"
  13720. } ||
  13721. {
  13722. tmp=./conf$$-$RANDOM
  13723. (umask 077 && mkdir "$tmp")
  13724. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13725. ac_tmp=$tmp
  13726. # Set up the scripts for CONFIG_FILES section.
  13727. # No need to generate them if there are no CONFIG_FILES.
  13728. # This happens for instance with `./config.status config.h'.
  13729. if test -n "$CONFIG_FILES"; then
  13730. ac_cr=`echo X | tr X '\015'`
  13731. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13732. # But we know of no other shell where ac_cr would be empty at this
  13733. # point, so we can use a bashism as a fallback.
  13734. if test "x$ac_cr" = x; then
  13735. eval ac_cr=\$\'\\r\'
  13736. fi
  13737. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13738. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13739. ac_cs_awk_cr='\\r'
  13740. else
  13741. ac_cs_awk_cr=$ac_cr
  13742. fi
  13743. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13744. _ACEOF
  13745. {
  13746. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13747. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13748. echo "_ACEOF"
  13749. } >conf$$subs.sh ||
  13750. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13751. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13752. ac_delim='%!_!# '
  13753. for ac_last_try in false false false false false :; do
  13754. . ./conf$$subs.sh ||
  13755. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13756. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13757. if test $ac_delim_n = $ac_delim_num; then
  13758. break
  13759. elif $ac_last_try; then
  13760. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13761. else
  13762. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13763. fi
  13764. done
  13765. rm -f conf$$subs.sh
  13766. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13767. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13768. _ACEOF
  13769. sed -n '
  13770. h
  13771. s/^/S["/; s/!.*/"]=/
  13772. p
  13773. g
  13774. s/^[^!]*!//
  13775. :repl
  13776. t repl
  13777. s/'"$ac_delim"'$//
  13778. t delim
  13779. :nl
  13780. h
  13781. s/\(.\{148\}\)..*/\1/
  13782. t more1
  13783. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13784. p
  13785. n
  13786. b repl
  13787. :more1
  13788. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13789. p
  13790. g
  13791. s/.\{148\}//
  13792. t nl
  13793. :delim
  13794. h
  13795. s/\(.\{148\}\)..*/\1/
  13796. t more2
  13797. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13798. p
  13799. b
  13800. :more2
  13801. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13802. p
  13803. g
  13804. s/.\{148\}//
  13805. t delim
  13806. ' <conf$$subs.awk | sed '
  13807. /^[^""]/{
  13808. N
  13809. s/\n//
  13810. }
  13811. ' >>$CONFIG_STATUS || ac_write_fail=1
  13812. rm -f conf$$subs.awk
  13813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13814. _ACAWK
  13815. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13816. for (key in S) S_is_set[key] = 1
  13817. FS = ""
  13818. }
  13819. {
  13820. line = $ 0
  13821. nfields = split(line, field, "@")
  13822. substed = 0
  13823. len = length(field[1])
  13824. for (i = 2; i < nfields; i++) {
  13825. key = field[i]
  13826. keylen = length(key)
  13827. if (S_is_set[key]) {
  13828. value = S[key]
  13829. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13830. len += length(value) + length(field[++i])
  13831. substed = 1
  13832. } else
  13833. len += 1 + keylen
  13834. }
  13835. print line
  13836. }
  13837. _ACAWK
  13838. _ACEOF
  13839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13840. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13841. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13842. else
  13843. cat
  13844. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13845. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13846. _ACEOF
  13847. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13848. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13849. # trailing colons and then remove the whole line if VPATH becomes empty
  13850. # (actually we leave an empty line to preserve line numbers).
  13851. if test "x$srcdir" = x.; then
  13852. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13853. h
  13854. s///
  13855. s/^/:/
  13856. s/[ ]*$/:/
  13857. s/:\$(srcdir):/:/g
  13858. s/:\${srcdir}:/:/g
  13859. s/:@srcdir@:/:/g
  13860. s/^:*//
  13861. s/:*$//
  13862. x
  13863. s/\(=[ ]*\).*/\1/
  13864. G
  13865. s/\n//
  13866. s/^[^=]*=[ ]*$//
  13867. }'
  13868. fi
  13869. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13870. fi # test -n "$CONFIG_FILES"
  13871. # Set up the scripts for CONFIG_HEADERS section.
  13872. # No need to generate them if there are no CONFIG_HEADERS.
  13873. # This happens for instance with `./config.status Makefile'.
  13874. if test -n "$CONFIG_HEADERS"; then
  13875. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13876. BEGIN {
  13877. _ACEOF
  13878. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13879. # here-document in config.status, that substitutes the proper values into
  13880. # config.h.in to produce config.h.
  13881. # Create a delimiter string that does not exist in confdefs.h, to ease
  13882. # handling of long lines.
  13883. ac_delim='%!_!# '
  13884. for ac_last_try in false false :; do
  13885. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13886. if test -z "$ac_tt"; then
  13887. break
  13888. elif $ac_last_try; then
  13889. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13890. else
  13891. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13892. fi
  13893. done
  13894. # For the awk script, D is an array of macro values keyed by name,
  13895. # likewise P contains macro parameters if any. Preserve backslash
  13896. # newline sequences.
  13897. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13898. sed -n '
  13899. s/.\{148\}/&'"$ac_delim"'/g
  13900. t rset
  13901. :rset
  13902. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13903. t def
  13904. d
  13905. :def
  13906. s/\\$//
  13907. t bsnl
  13908. s/["\\]/\\&/g
  13909. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13910. D["\1"]=" \3"/p
  13911. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13912. d
  13913. :bsnl
  13914. s/["\\]/\\&/g
  13915. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13916. D["\1"]=" \3\\\\\\n"\\/p
  13917. t cont
  13918. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13919. t cont
  13920. d
  13921. :cont
  13922. n
  13923. s/.\{148\}/&'"$ac_delim"'/g
  13924. t clear
  13925. :clear
  13926. s/\\$//
  13927. t bsnlc
  13928. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13929. d
  13930. :bsnlc
  13931. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13932. b cont
  13933. ' <confdefs.h | sed '
  13934. s/'"$ac_delim"'/"\\\
  13935. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13936. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13937. for (key in D) D_is_set[key] = 1
  13938. FS = ""
  13939. }
  13940. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13941. line = \$ 0
  13942. split(line, arg, " ")
  13943. if (arg[1] == "#") {
  13944. defundef = arg[2]
  13945. mac1 = arg[3]
  13946. } else {
  13947. defundef = substr(arg[1], 2)
  13948. mac1 = arg[2]
  13949. }
  13950. split(mac1, mac2, "(") #)
  13951. macro = mac2[1]
  13952. prefix = substr(line, 1, index(line, defundef) - 1)
  13953. if (D_is_set[macro]) {
  13954. # Preserve the white space surrounding the "#".
  13955. print prefix "define", macro P[macro] D[macro]
  13956. next
  13957. } else {
  13958. # Replace #undef with comments. This is necessary, for example,
  13959. # in the case of _POSIX_SOURCE, which is predefined and required
  13960. # on some systems where configure will not decide to define it.
  13961. if (defundef == "undef") {
  13962. print "/*", prefix defundef, macro, "*/"
  13963. next
  13964. }
  13965. }
  13966. }
  13967. { print }
  13968. _ACAWK
  13969. _ACEOF
  13970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13971. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13972. fi # test -n "$CONFIG_HEADERS"
  13973. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13974. shift
  13975. for ac_tag
  13976. do
  13977. case $ac_tag in
  13978. :[FHLC]) ac_mode=$ac_tag; continue;;
  13979. esac
  13980. case $ac_mode$ac_tag in
  13981. :[FHL]*:*);;
  13982. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13983. :[FH]-) ac_tag=-:-;;
  13984. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13985. esac
  13986. ac_save_IFS=$IFS
  13987. IFS=:
  13988. set x $ac_tag
  13989. IFS=$ac_save_IFS
  13990. shift
  13991. ac_file=$1
  13992. shift
  13993. case $ac_mode in
  13994. :L) ac_source=$1;;
  13995. :[FH])
  13996. ac_file_inputs=
  13997. for ac_f
  13998. do
  13999. case $ac_f in
  14000. -) ac_f="$ac_tmp/stdin";;
  14001. *) # Look for the file first in the build tree, then in the source tree
  14002. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14003. # because $ac_f cannot contain `:'.
  14004. test -f "$ac_f" ||
  14005. case $ac_f in
  14006. [\\/$]*) false;;
  14007. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14008. esac ||
  14009. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14010. esac
  14011. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14012. as_fn_append ac_file_inputs " '$ac_f'"
  14013. done
  14014. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14015. # use $as_me), people would be surprised to read:
  14016. # /* config.h. Generated by config.status. */
  14017. configure_input='Generated from '`
  14018. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14019. `' by configure.'
  14020. if test x"$ac_file" != x-; then
  14021. configure_input="$ac_file. $configure_input"
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14023. $as_echo "$as_me: creating $ac_file" >&6;}
  14024. fi
  14025. # Neutralize special characters interpreted by sed in replacement strings.
  14026. case $configure_input in #(
  14027. *\&* | *\|* | *\\* )
  14028. ac_sed_conf_input=`$as_echo "$configure_input" |
  14029. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14030. *) ac_sed_conf_input=$configure_input;;
  14031. esac
  14032. case $ac_tag in
  14033. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14034. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14035. esac
  14036. ;;
  14037. esac
  14038. ac_dir=`$as_dirname -- "$ac_file" ||
  14039. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14040. X"$ac_file" : 'X\(//\)[^/]' \| \
  14041. X"$ac_file" : 'X\(//\)$' \| \
  14042. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14043. $as_echo X"$ac_file" |
  14044. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14045. s//\1/
  14046. q
  14047. }
  14048. /^X\(\/\/\)[^/].*/{
  14049. s//\1/
  14050. q
  14051. }
  14052. /^X\(\/\/\)$/{
  14053. s//\1/
  14054. q
  14055. }
  14056. /^X\(\/\).*/{
  14057. s//\1/
  14058. q
  14059. }
  14060. s/.*/./; q'`
  14061. as_dir="$ac_dir"; as_fn_mkdir_p
  14062. ac_builddir=.
  14063. case "$ac_dir" in
  14064. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14065. *)
  14066. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14067. # A ".." for each directory in $ac_dir_suffix.
  14068. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14069. case $ac_top_builddir_sub in
  14070. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14071. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14072. esac ;;
  14073. esac
  14074. ac_abs_top_builddir=$ac_pwd
  14075. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14076. # for backward compatibility:
  14077. ac_top_builddir=$ac_top_build_prefix
  14078. case $srcdir in
  14079. .) # We are building in place.
  14080. ac_srcdir=.
  14081. ac_top_srcdir=$ac_top_builddir_sub
  14082. ac_abs_top_srcdir=$ac_pwd ;;
  14083. [\\/]* | ?:[\\/]* ) # Absolute name.
  14084. ac_srcdir=$srcdir$ac_dir_suffix;
  14085. ac_top_srcdir=$srcdir
  14086. ac_abs_top_srcdir=$srcdir ;;
  14087. *) # Relative name.
  14088. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14089. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14090. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14091. esac
  14092. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14093. case $ac_mode in
  14094. :F)
  14095. #
  14096. # CONFIG_FILE
  14097. #
  14098. case $INSTALL in
  14099. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14100. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14101. esac
  14102. ac_MKDIR_P=$MKDIR_P
  14103. case $MKDIR_P in
  14104. [\\/$]* | ?:[\\/]* ) ;;
  14105. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14106. esac
  14107. _ACEOF
  14108. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14109. # If the template does not know about datarootdir, expand it.
  14110. # FIXME: This hack should be removed a few years after 2.60.
  14111. ac_datarootdir_hack=; ac_datarootdir_seen=
  14112. ac_sed_dataroot='
  14113. /datarootdir/ {
  14114. p
  14115. q
  14116. }
  14117. /@datadir@/p
  14118. /@docdir@/p
  14119. /@infodir@/p
  14120. /@localedir@/p
  14121. /@mandir@/p'
  14122. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14123. *datarootdir*) ac_datarootdir_seen=yes;;
  14124. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14126. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14127. _ACEOF
  14128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14129. ac_datarootdir_hack='
  14130. s&@datadir@&$datadir&g
  14131. s&@docdir@&$docdir&g
  14132. s&@infodir@&$infodir&g
  14133. s&@localedir@&$localedir&g
  14134. s&@mandir@&$mandir&g
  14135. s&\\\${datarootdir}&$datarootdir&g' ;;
  14136. esac
  14137. _ACEOF
  14138. # Neutralize VPATH when `$srcdir' = `.'.
  14139. # Shell code in configure.ac might set extrasub.
  14140. # FIXME: do we really want to maintain this feature?
  14141. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14142. ac_sed_extra="$ac_vpsub
  14143. $extrasub
  14144. _ACEOF
  14145. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14146. :t
  14147. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14148. s|@configure_input@|$ac_sed_conf_input|;t t
  14149. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14150. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14151. s&@srcdir@&$ac_srcdir&;t t
  14152. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14153. s&@top_srcdir@&$ac_top_srcdir&;t t
  14154. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14155. s&@builddir@&$ac_builddir&;t t
  14156. s&@abs_builddir@&$ac_abs_builddir&;t t
  14157. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14158. s&@INSTALL@&$ac_INSTALL&;t t
  14159. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14160. $ac_datarootdir_hack
  14161. "
  14162. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14163. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14164. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14165. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14166. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14167. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14169. which seems to be undefined. Please make sure it is defined" >&5
  14170. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14171. which seems to be undefined. Please make sure it is defined" >&2;}
  14172. rm -f "$ac_tmp/stdin"
  14173. case $ac_file in
  14174. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14175. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14176. esac \
  14177. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14178. ;;
  14179. :H)
  14180. #
  14181. # CONFIG_HEADER
  14182. #
  14183. if test x"$ac_file" != x-; then
  14184. {
  14185. $as_echo "/* $configure_input */" \
  14186. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14187. } >"$ac_tmp/config.h" \
  14188. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14189. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14191. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14192. else
  14193. rm -f "$ac_file"
  14194. mv "$ac_tmp/config.h" "$ac_file" \
  14195. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14196. fi
  14197. else
  14198. $as_echo "/* $configure_input */" \
  14199. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14200. || as_fn_error $? "could not create -" "$LINENO" 5
  14201. fi
  14202. # Compute "$ac_file"'s index in $config_headers.
  14203. _am_arg="$ac_file"
  14204. _am_stamp_count=1
  14205. for _am_header in $config_headers :; do
  14206. case $_am_header in
  14207. $_am_arg | $_am_arg:* )
  14208. break ;;
  14209. * )
  14210. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14211. esac
  14212. done
  14213. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14214. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14215. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14216. X"$_am_arg" : 'X\(//\)$' \| \
  14217. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14218. $as_echo X"$_am_arg" |
  14219. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14220. s//\1/
  14221. q
  14222. }
  14223. /^X\(\/\/\)[^/].*/{
  14224. s//\1/
  14225. q
  14226. }
  14227. /^X\(\/\/\)$/{
  14228. s//\1/
  14229. q
  14230. }
  14231. /^X\(\/\).*/{
  14232. s//\1/
  14233. q
  14234. }
  14235. s/.*/./; q'`/stamp-h$_am_stamp_count
  14236. ;;
  14237. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14238. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14239. ;;
  14240. esac
  14241. case $ac_file$ac_mode in
  14242. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14243. # Older Autoconf quotes --file arguments for eval, but not when files
  14244. # are listed without --file. Let's play safe and only enable the eval
  14245. # if we detect the quoting.
  14246. case $CONFIG_FILES in
  14247. *\'*) eval set x "$CONFIG_FILES" ;;
  14248. *) set x $CONFIG_FILES ;;
  14249. esac
  14250. shift
  14251. for mf
  14252. do
  14253. # Strip MF so we end up with the name of the file.
  14254. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14255. # Check whether this is an Automake generated Makefile or not.
  14256. # We used to match only the files named 'Makefile.in', but
  14257. # some people rename them; so instead we look at the file content.
  14258. # Grep'ing the first line is not enough: some people post-process
  14259. # each Makefile.in and add a new line on top of each file to say so.
  14260. # Grep'ing the whole file is not good either: AIX grep has a line
  14261. # limit of 2048, but all sed's we know have understand at least 4000.
  14262. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14263. dirpart=`$as_dirname -- "$mf" ||
  14264. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14265. X"$mf" : 'X\(//\)[^/]' \| \
  14266. X"$mf" : 'X\(//\)$' \| \
  14267. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14268. $as_echo X"$mf" |
  14269. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14270. s//\1/
  14271. q
  14272. }
  14273. /^X\(\/\/\)[^/].*/{
  14274. s//\1/
  14275. q
  14276. }
  14277. /^X\(\/\/\)$/{
  14278. s//\1/
  14279. q
  14280. }
  14281. /^X\(\/\).*/{
  14282. s//\1/
  14283. q
  14284. }
  14285. s/.*/./; q'`
  14286. else
  14287. continue
  14288. fi
  14289. # Extract the definition of DEPDIR, am__include, and am__quote
  14290. # from the Makefile without running 'make'.
  14291. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14292. test -z "$DEPDIR" && continue
  14293. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14294. test -z "$am__include" && continue
  14295. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14296. # Find all dependency output files, they are included files with
  14297. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14298. # simplest approach to changing $(DEPDIR) to its actual value in the
  14299. # expansion.
  14300. for file in `sed -n "
  14301. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14302. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  14303. # Make sure the directory exists.
  14304. test -f "$dirpart/$file" && continue
  14305. fdir=`$as_dirname -- "$file" ||
  14306. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14307. X"$file" : 'X\(//\)[^/]' \| \
  14308. X"$file" : 'X\(//\)$' \| \
  14309. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14310. $as_echo X"$file" |
  14311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14312. s//\1/
  14313. q
  14314. }
  14315. /^X\(\/\/\)[^/].*/{
  14316. s//\1/
  14317. q
  14318. }
  14319. /^X\(\/\/\)$/{
  14320. s//\1/
  14321. q
  14322. }
  14323. /^X\(\/\).*/{
  14324. s//\1/
  14325. q
  14326. }
  14327. s/.*/./; q'`
  14328. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14329. # echo "creating $dirpart/$file"
  14330. echo '# dummy' > "$dirpart/$file"
  14331. done
  14332. done
  14333. }
  14334. ;;
  14335. "libtool":C)
  14336. # See if we are running on zsh, and set the options which allow our
  14337. # commands through without removal of \ escapes.
  14338. if test -n "${ZSH_VERSION+set}" ; then
  14339. setopt NO_GLOB_SUBST
  14340. fi
  14341. cfgfile="${ofile}T"
  14342. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14343. $RM "$cfgfile"
  14344. cat <<_LT_EOF >> "$cfgfile"
  14345. #! $SHELL
  14346. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14347. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14348. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14349. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14350. #
  14351. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14352. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14353. # Written by Gordon Matzigkeit, 1996
  14354. #
  14355. # This file is part of GNU Libtool.
  14356. #
  14357. # GNU Libtool is free software; you can redistribute it and/or
  14358. # modify it under the terms of the GNU General Public License as
  14359. # published by the Free Software Foundation; either version 2 of
  14360. # the License, or (at your option) any later version.
  14361. #
  14362. # As a special exception to the GNU General Public License,
  14363. # if you distribute this file as part of a program or library that
  14364. # is built using GNU Libtool, you may include this file under the
  14365. # same distribution terms that you use for the rest of that program.
  14366. #
  14367. # GNU Libtool is distributed in the hope that it will be useful,
  14368. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14369. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14370. # GNU General Public License for more details.
  14371. #
  14372. # You should have received a copy of the GNU General Public License
  14373. # along with GNU Libtool; see the file COPYING. If not, a copy
  14374. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14375. # obtained by writing to the Free Software Foundation, Inc.,
  14376. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14377. # The names of the tagged configurations supported by this script.
  14378. available_tags=""
  14379. # ### BEGIN LIBTOOL CONFIG
  14380. # Which release of libtool.m4 was used?
  14381. macro_version=$macro_version
  14382. macro_revision=$macro_revision
  14383. # Whether or not to build shared libraries.
  14384. build_libtool_libs=$enable_shared
  14385. # Whether or not to build static libraries.
  14386. build_old_libs=$enable_static
  14387. # What type of objects to build.
  14388. pic_mode=$pic_mode
  14389. # Whether or not to optimize for fast installation.
  14390. fast_install=$enable_fast_install
  14391. # Shell to use when invoking shell scripts.
  14392. SHELL=$lt_SHELL
  14393. # An echo program that protects backslashes.
  14394. ECHO=$lt_ECHO
  14395. # The host system.
  14396. host_alias=$host_alias
  14397. host=$host
  14398. host_os=$host_os
  14399. # The build system.
  14400. build_alias=$build_alias
  14401. build=$build
  14402. build_os=$build_os
  14403. # A sed program that does not truncate output.
  14404. SED=$lt_SED
  14405. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14406. Xsed="\$SED -e 1s/^X//"
  14407. # A grep program that handles long lines.
  14408. GREP=$lt_GREP
  14409. # An ERE matcher.
  14410. EGREP=$lt_EGREP
  14411. # A literal string matcher.
  14412. FGREP=$lt_FGREP
  14413. # A BSD- or MS-compatible name lister.
  14414. NM=$lt_NM
  14415. # Whether we need soft or hard links.
  14416. LN_S=$lt_LN_S
  14417. # What is the maximum length of a command?
  14418. max_cmd_len=$max_cmd_len
  14419. # Object file suffix (normally "o").
  14420. objext=$ac_objext
  14421. # Executable file suffix (normally "").
  14422. exeext=$exeext
  14423. # whether the shell understands "unset".
  14424. lt_unset=$lt_unset
  14425. # turn spaces into newlines.
  14426. SP2NL=$lt_lt_SP2NL
  14427. # turn newlines into spaces.
  14428. NL2SP=$lt_lt_NL2SP
  14429. # An object symbol dumper.
  14430. OBJDUMP=$lt_OBJDUMP
  14431. # Method to check whether dependent libraries are shared objects.
  14432. deplibs_check_method=$lt_deplibs_check_method
  14433. # Command to use when deplibs_check_method == "file_magic".
  14434. file_magic_cmd=$lt_file_magic_cmd
  14435. # The archiver.
  14436. AR=$lt_AR
  14437. AR_FLAGS=$lt_AR_FLAGS
  14438. # A symbol stripping program.
  14439. STRIP=$lt_STRIP
  14440. # Commands used to install an old-style archive.
  14441. RANLIB=$lt_RANLIB
  14442. old_postinstall_cmds=$lt_old_postinstall_cmds
  14443. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14444. # Whether to use a lock for old archive extraction.
  14445. lock_old_archive_extraction=$lock_old_archive_extraction
  14446. # A C compiler.
  14447. LTCC=$lt_CC
  14448. # LTCC compiler flags.
  14449. LTCFLAGS=$lt_CFLAGS
  14450. # Take the output of nm and produce a listing of raw symbols and C names.
  14451. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14452. # Transform the output of nm in a proper C declaration.
  14453. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14454. # Transform the output of nm in a C name address pair.
  14455. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14456. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14457. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14458. # The name of the directory that contains temporary libtool files.
  14459. objdir=$objdir
  14460. # Used to examine libraries when file_magic_cmd begins with "file".
  14461. MAGIC_CMD=$MAGIC_CMD
  14462. # Must we lock files when doing compilation?
  14463. need_locks=$lt_need_locks
  14464. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14465. DSYMUTIL=$lt_DSYMUTIL
  14466. # Tool to change global to local symbols on Mac OS X.
  14467. NMEDIT=$lt_NMEDIT
  14468. # Tool to manipulate fat objects and archives on Mac OS X.
  14469. LIPO=$lt_LIPO
  14470. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14471. OTOOL=$lt_OTOOL
  14472. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14473. OTOOL64=$lt_OTOOL64
  14474. # Old archive suffix (normally "a").
  14475. libext=$libext
  14476. # Shared library suffix (normally ".so").
  14477. shrext_cmds=$lt_shrext_cmds
  14478. # The commands to extract the exported symbol list from a shared archive.
  14479. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14480. # Variables whose values should be saved in libtool wrapper scripts and
  14481. # restored at link time.
  14482. variables_saved_for_relink=$lt_variables_saved_for_relink
  14483. # Do we need the "lib" prefix for modules?
  14484. need_lib_prefix=$need_lib_prefix
  14485. # Do we need a version for libraries?
  14486. need_version=$need_version
  14487. # Library versioning type.
  14488. version_type=$version_type
  14489. # Shared library runtime path variable.
  14490. runpath_var=$runpath_var
  14491. # Shared library path variable.
  14492. shlibpath_var=$shlibpath_var
  14493. # Is shlibpath searched before the hard-coded library search path?
  14494. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14495. # Format of library name prefix.
  14496. libname_spec=$lt_libname_spec
  14497. # List of archive names. First name is the real one, the rest are links.
  14498. # The last name is the one that the linker finds with -lNAME
  14499. library_names_spec=$lt_library_names_spec
  14500. # The coded name of the library, if different from the real name.
  14501. soname_spec=$lt_soname_spec
  14502. # Permission mode override for installation of shared libraries.
  14503. install_override_mode=$lt_install_override_mode
  14504. # Command to use after installation of a shared archive.
  14505. postinstall_cmds=$lt_postinstall_cmds
  14506. # Command to use after uninstallation of a shared archive.
  14507. postuninstall_cmds=$lt_postuninstall_cmds
  14508. # Commands used to finish a libtool library installation in a directory.
  14509. finish_cmds=$lt_finish_cmds
  14510. # As "finish_cmds", except a single script fragment to be evaled but
  14511. # not shown.
  14512. finish_eval=$lt_finish_eval
  14513. # Whether we should hardcode library paths into libraries.
  14514. hardcode_into_libs=$hardcode_into_libs
  14515. # Compile-time system search path for libraries.
  14516. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14517. # Run-time system search path for libraries.
  14518. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14519. # Whether dlopen is supported.
  14520. dlopen_support=$enable_dlopen
  14521. # Whether dlopen of programs is supported.
  14522. dlopen_self=$enable_dlopen_self
  14523. # Whether dlopen of statically linked programs is supported.
  14524. dlopen_self_static=$enable_dlopen_self_static
  14525. # Commands to strip libraries.
  14526. old_striplib=$lt_old_striplib
  14527. striplib=$lt_striplib
  14528. # The linker used to build libraries.
  14529. LD=$lt_LD
  14530. # How to create reloadable object files.
  14531. reload_flag=$lt_reload_flag
  14532. reload_cmds=$lt_reload_cmds
  14533. # Commands used to build an old-style archive.
  14534. old_archive_cmds=$lt_old_archive_cmds
  14535. # A language specific compiler.
  14536. CC=$lt_compiler
  14537. # Is the compiler the GNU compiler?
  14538. with_gcc=$GCC
  14539. # Compiler flag to turn off builtin functions.
  14540. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14541. # How to pass a linker flag through the compiler.
  14542. wl=$lt_lt_prog_compiler_wl
  14543. # Additional compiler flags for building library objects.
  14544. pic_flag=$lt_lt_prog_compiler_pic
  14545. # Compiler flag to prevent dynamic linking.
  14546. link_static_flag=$lt_lt_prog_compiler_static
  14547. # Does compiler simultaneously support -c and -o options?
  14548. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14549. # Whether or not to add -lc for building shared libraries.
  14550. build_libtool_need_lc=$archive_cmds_need_lc
  14551. # Whether or not to disallow shared libs when runtime libs are static.
  14552. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14553. # Compiler flag to allow reflexive dlopens.
  14554. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14555. # Compiler flag to generate shared objects directly from archives.
  14556. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14557. # Whether the compiler copes with passing no objects directly.
  14558. compiler_needs_object=$lt_compiler_needs_object
  14559. # Create an old-style archive from a shared archive.
  14560. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14561. # Create a temporary old-style archive to link instead of a shared archive.
  14562. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14563. # Commands used to build a shared archive.
  14564. archive_cmds=$lt_archive_cmds
  14565. archive_expsym_cmds=$lt_archive_expsym_cmds
  14566. # Commands used to build a loadable module if different from building
  14567. # a shared archive.
  14568. module_cmds=$lt_module_cmds
  14569. module_expsym_cmds=$lt_module_expsym_cmds
  14570. # Whether we are building with GNU ld or not.
  14571. with_gnu_ld=$lt_with_gnu_ld
  14572. # Flag that allows shared libraries with undefined symbols to be built.
  14573. allow_undefined_flag=$lt_allow_undefined_flag
  14574. # Flag that enforces no undefined symbols.
  14575. no_undefined_flag=$lt_no_undefined_flag
  14576. # Flag to hardcode \$libdir into a binary during linking.
  14577. # This must work even if \$libdir does not exist
  14578. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14579. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14580. # during linking. This must work even if \$libdir does not exist.
  14581. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14582. # Whether we need a single "-rpath" flag with a separated argument.
  14583. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14584. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14585. # DIR into the resulting binary.
  14586. hardcode_direct=$hardcode_direct
  14587. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14588. # DIR into the resulting binary and the resulting library dependency is
  14589. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14590. # library is relocated.
  14591. hardcode_direct_absolute=$hardcode_direct_absolute
  14592. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14593. # into the resulting binary.
  14594. hardcode_minus_L=$hardcode_minus_L
  14595. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14596. # into the resulting binary.
  14597. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14598. # Set to "yes" if building a shared library automatically hardcodes DIR
  14599. # into the library and all subsequent libraries and executables linked
  14600. # against it.
  14601. hardcode_automatic=$hardcode_automatic
  14602. # Set to yes if linker adds runtime paths of dependent libraries
  14603. # to runtime path list.
  14604. inherit_rpath=$inherit_rpath
  14605. # Whether libtool must link a program against all its dependency libraries.
  14606. link_all_deplibs=$link_all_deplibs
  14607. # Fix the shell variable \$srcfile for the compiler.
  14608. fix_srcfile_path=$lt_fix_srcfile_path
  14609. # Set to "yes" if exported symbols are required.
  14610. always_export_symbols=$always_export_symbols
  14611. # The commands to list exported symbols.
  14612. export_symbols_cmds=$lt_export_symbols_cmds
  14613. # Symbols that should not be listed in the preloaded symbols.
  14614. exclude_expsyms=$lt_exclude_expsyms
  14615. # Symbols that must always be exported.
  14616. include_expsyms=$lt_include_expsyms
  14617. # Commands necessary for linking programs (against libraries) with templates.
  14618. prelink_cmds=$lt_prelink_cmds
  14619. # Specify filename containing input files.
  14620. file_list_spec=$lt_file_list_spec
  14621. # How to hardcode a shared library path into an executable.
  14622. hardcode_action=$hardcode_action
  14623. # ### END LIBTOOL CONFIG
  14624. _LT_EOF
  14625. case $host_os in
  14626. aix3*)
  14627. cat <<\_LT_EOF >> "$cfgfile"
  14628. # AIX sometimes has problems with the GCC collect2 program. For some
  14629. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14630. # vanish in a puff of smoke.
  14631. if test "X${COLLECT_NAMES+set}" != Xset; then
  14632. COLLECT_NAMES=
  14633. export COLLECT_NAMES
  14634. fi
  14635. _LT_EOF
  14636. ;;
  14637. esac
  14638. ltmain="$ac_aux_dir/ltmain.sh"
  14639. # We use sed instead of cat because bash on DJGPP gets confused if
  14640. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14641. # text mode, it properly converts lines to CR/LF. This bash problem
  14642. # is reportedly fixed, but why not run on old versions too?
  14643. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14644. || (rm -f "$cfgfile"; exit 1)
  14645. case $xsi_shell in
  14646. yes)
  14647. cat << \_LT_EOF >> "$cfgfile"
  14648. # func_dirname file append nondir_replacement
  14649. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14650. # otherwise set result to NONDIR_REPLACEMENT.
  14651. func_dirname ()
  14652. {
  14653. case ${1} in
  14654. */*) func_dirname_result="${1%/*}${2}" ;;
  14655. * ) func_dirname_result="${3}" ;;
  14656. esac
  14657. }
  14658. # func_basename file
  14659. func_basename ()
  14660. {
  14661. func_basename_result="${1##*/}"
  14662. }
  14663. # func_dirname_and_basename file append nondir_replacement
  14664. # perform func_basename and func_dirname in a single function
  14665. # call:
  14666. # dirname: Compute the dirname of FILE. If nonempty,
  14667. # add APPEND to the result, otherwise set result
  14668. # to NONDIR_REPLACEMENT.
  14669. # value returned in "$func_dirname_result"
  14670. # basename: Compute filename of FILE.
  14671. # value retuned in "$func_basename_result"
  14672. # Implementation must be kept synchronized with func_dirname
  14673. # and func_basename. For efficiency, we do not delegate to
  14674. # those functions but instead duplicate the functionality here.
  14675. func_dirname_and_basename ()
  14676. {
  14677. case ${1} in
  14678. */*) func_dirname_result="${1%/*}${2}" ;;
  14679. * ) func_dirname_result="${3}" ;;
  14680. esac
  14681. func_basename_result="${1##*/}"
  14682. }
  14683. # func_stripname prefix suffix name
  14684. # strip PREFIX and SUFFIX off of NAME.
  14685. # PREFIX and SUFFIX must not contain globbing or regex special
  14686. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14687. # dot (in which case that matches only a dot).
  14688. func_stripname ()
  14689. {
  14690. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14691. # positional parameters, so assign one to ordinary parameter first.
  14692. func_stripname_result=${3}
  14693. func_stripname_result=${func_stripname_result#"${1}"}
  14694. func_stripname_result=${func_stripname_result%"${2}"}
  14695. }
  14696. # func_opt_split
  14697. func_opt_split ()
  14698. {
  14699. func_opt_split_opt=${1%%=*}
  14700. func_opt_split_arg=${1#*=}
  14701. }
  14702. # func_lo2o object
  14703. func_lo2o ()
  14704. {
  14705. case ${1} in
  14706. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14707. *) func_lo2o_result=${1} ;;
  14708. esac
  14709. }
  14710. # func_xform libobj-or-source
  14711. func_xform ()
  14712. {
  14713. func_xform_result=${1%.*}.lo
  14714. }
  14715. # func_arith arithmetic-term...
  14716. func_arith ()
  14717. {
  14718. func_arith_result=$(( $* ))
  14719. }
  14720. # func_len string
  14721. # STRING may not start with a hyphen.
  14722. func_len ()
  14723. {
  14724. func_len_result=${#1}
  14725. }
  14726. _LT_EOF
  14727. ;;
  14728. *) # Bourne compatible functions.
  14729. cat << \_LT_EOF >> "$cfgfile"
  14730. # func_dirname file append nondir_replacement
  14731. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14732. # otherwise set result to NONDIR_REPLACEMENT.
  14733. func_dirname ()
  14734. {
  14735. # Extract subdirectory from the argument.
  14736. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14737. if test "X$func_dirname_result" = "X${1}"; then
  14738. func_dirname_result="${3}"
  14739. else
  14740. func_dirname_result="$func_dirname_result${2}"
  14741. fi
  14742. }
  14743. # func_basename file
  14744. func_basename ()
  14745. {
  14746. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14747. }
  14748. # func_stripname prefix suffix name
  14749. # strip PREFIX and SUFFIX off of NAME.
  14750. # PREFIX and SUFFIX must not contain globbing or regex special
  14751. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14752. # dot (in which case that matches only a dot).
  14753. # func_strip_suffix prefix name
  14754. func_stripname ()
  14755. {
  14756. case ${2} in
  14757. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14758. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14759. esac
  14760. }
  14761. # sed scripts:
  14762. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14763. my_sed_long_arg='1s/^-[^=]*=//'
  14764. # func_opt_split
  14765. func_opt_split ()
  14766. {
  14767. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14768. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14769. }
  14770. # func_lo2o object
  14771. func_lo2o ()
  14772. {
  14773. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14774. }
  14775. # func_xform libobj-or-source
  14776. func_xform ()
  14777. {
  14778. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14779. }
  14780. # func_arith arithmetic-term...
  14781. func_arith ()
  14782. {
  14783. func_arith_result=`expr "$@"`
  14784. }
  14785. # func_len string
  14786. # STRING may not start with a hyphen.
  14787. func_len ()
  14788. {
  14789. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14790. }
  14791. _LT_EOF
  14792. esac
  14793. case $lt_shell_append in
  14794. yes)
  14795. cat << \_LT_EOF >> "$cfgfile"
  14796. # func_append var value
  14797. # Append VALUE to the end of shell variable VAR.
  14798. func_append ()
  14799. {
  14800. eval "$1+=\$2"
  14801. }
  14802. _LT_EOF
  14803. ;;
  14804. *)
  14805. cat << \_LT_EOF >> "$cfgfile"
  14806. # func_append var value
  14807. # Append VALUE to the end of shell variable VAR.
  14808. func_append ()
  14809. {
  14810. eval "$1=\$$1\$2"
  14811. }
  14812. _LT_EOF
  14813. ;;
  14814. esac
  14815. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14816. || (rm -f "$cfgfile"; exit 1)
  14817. mv -f "$cfgfile" "$ofile" ||
  14818. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14819. chmod +x "$ofile"
  14820. ;;
  14821. "default-1":C)
  14822. for ac_file in $CONFIG_FILES; do
  14823. # Support "outfile[:infile[:infile...]]"
  14824. case "$ac_file" in
  14825. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14826. esac
  14827. # PO directories have a Makefile.in generated from Makefile.in.in.
  14828. case "$ac_file" in */Makefile.in)
  14829. # Adjust a relative srcdir.
  14830. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14831. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  14832. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14833. # In autoconf-2.13 it is called $ac_given_srcdir.
  14834. # In autoconf-2.50 it is called $srcdir.
  14835. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14836. case "$ac_given_srcdir" in
  14837. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14838. /*) top_srcdir="$ac_given_srcdir" ;;
  14839. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14840. esac
  14841. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14842. rm -f "$ac_dir/POTFILES"
  14843. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14844. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14845. POMAKEFILEDEPS="POTFILES.in"
  14846. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  14847. # on $ac_dir but don't depend on user-specified configuration
  14848. # parameters.
  14849. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14850. # The LINGUAS file contains the set of available languages.
  14851. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14852. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  14853. fi
  14854. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14855. # Hide the ALL_LINGUAS assigment from automake.
  14856. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14857. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14858. else
  14859. # The set of available languages was given in configure.ac.
  14860. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14861. fi
  14862. case "$ac_given_srcdir" in
  14863. .) srcdirpre= ;;
  14864. *) srcdirpre='$(srcdir)/' ;;
  14865. esac
  14866. POFILES=
  14867. GMOFILES=
  14868. UPDATEPOFILES=
  14869. DUMMYPOFILES=
  14870. for lang in $ALL_LINGUAS; do
  14871. POFILES="$POFILES $srcdirpre$lang.po"
  14872. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14873. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14874. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14875. done
  14876. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14877. # environment variable.
  14878. INST_LINGUAS=
  14879. if test -n "$ALL_LINGUAS"; then
  14880. for presentlang in $ALL_LINGUAS; do
  14881. useit=no
  14882. if test "%UNSET%" != "$LINGUAS"; then
  14883. desiredlanguages="$LINGUAS"
  14884. else
  14885. desiredlanguages="$ALL_LINGUAS"
  14886. fi
  14887. for desiredlang in $desiredlanguages; do
  14888. # Use the presentlang catalog if desiredlang is
  14889. # a. equal to presentlang, or
  14890. # b. a variant of presentlang (because in this case,
  14891. # presentlang can be used as a fallback for messages
  14892. # which are not translated in the desiredlang catalog).
  14893. case "$desiredlang" in
  14894. "$presentlang"*) useit=yes;;
  14895. esac
  14896. done
  14897. if test $useit = yes; then
  14898. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14899. fi
  14900. done
  14901. fi
  14902. CATALOGS=
  14903. if test -n "$INST_LINGUAS"; then
  14904. for lang in $INST_LINGUAS; do
  14905. CATALOGS="$CATALOGS $lang.gmo"
  14906. done
  14907. fi
  14908. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14909. 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"
  14910. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14911. if test -f "$f"; then
  14912. case "$f" in
  14913. *.orig | *.bak | *~) ;;
  14914. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14915. esac
  14916. fi
  14917. done
  14918. fi
  14919. ;;
  14920. esac
  14921. done ;;
  14922. esac
  14923. done # for ac_tag
  14924. as_fn_exit 0
  14925. _ACEOF
  14926. ac_clean_files=$ac_clean_files_save
  14927. test $ac_write_fail = 0 ||
  14928. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14929. # configure is writing to config.log, and then calls config.status.
  14930. # config.status does its own redirection, appending to config.log.
  14931. # Unfortunately, on DOS this fails, as config.log is still kept open
  14932. # by configure, so config.status won't be able to write to it; its
  14933. # output is simply discarded. So we exec the FD to /dev/null,
  14934. # effectively closing config.log, so it can be properly (re)opened and
  14935. # appended to by config.status. When coming back to configure, we
  14936. # need to make the FD available again.
  14937. if test "$no_create" != yes; then
  14938. ac_cs_success=:
  14939. ac_config_status_args=
  14940. test "$silent" = yes &&
  14941. ac_config_status_args="$ac_config_status_args --quiet"
  14942. exec 5>/dev/null
  14943. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14944. exec 5>>config.log
  14945. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14946. # would make configure fail if this is the last instruction.
  14947. $ac_cs_success || as_fn_exit 1
  14948. fi
  14949. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14951. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14952. fi
  14953. touch config.status.tmp
  14954. if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
  14955. sed '/as_fn_exit 0/i \
  14956. sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
  14957. touch --reference=Makefile Makefile.tmp \
  14958. mv Makefile.tmp Makefile \
  14959. ' config.status > config.status.tmp
  14960. touch --reference=config.status config.status.tmp
  14961. mv config.status.tmp config.status
  14962. chmod +x config.status
  14963. sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
  14964. touch --reference=Makefile Makefile.tmp
  14965. mv Makefile.tmp Makefile
  14966. else
  14967. rm -f config.status.tmp
  14968. fi