configure 490 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for binutils 2.29.1.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='binutils'
  509. PACKAGE_TARNAME='binutils'
  510. PACKAGE_VERSION='2.29.1'
  511. PACKAGE_STRING='binutils 2.29.1'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="ar.c"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. EMULATION_VECTOR
  555. EMULATION
  556. OBJDUMP_PRIVATE_OFILES
  557. OBJDUMP_DEFS
  558. BUILD_INSTALL_MISC
  559. BUILD_MISC
  560. BUILD_DLLWRAP
  561. BUILD_WINDMC
  562. BUILD_WINDRES
  563. DLLTOOL_DEFS
  564. BUILD_DLLTOOL
  565. BUILD_SRCONV
  566. BUILD_NLMCONV
  567. NLMCONV_DEFS
  568. LTLIBICONV
  569. LIBICONV
  570. zlibinc
  571. zlibdir
  572. ALLOCA
  573. DEMANGLER_NAME
  574. EXEEXT_FOR_BUILD
  575. CC_FOR_BUILD
  576. HDEFINES
  577. GENINSRC_NEVER_FALSE
  578. GENINSRC_NEVER_TRUE
  579. MAINT
  580. MAINTAINER_MODE_FALSE
  581. MAINTAINER_MODE_TRUE
  582. MSGMERGE
  583. MSGFMT
  584. MKINSTALLDIRS
  585. CATOBJEXT
  586. GENCAT
  587. INSTOBJEXT
  588. DATADIRNAME
  589. CATALOGS
  590. POSUB
  591. GMSGFMT
  592. XGETTEXT
  593. INCINTL
  594. LIBINTL_DEP
  595. LIBINTL
  596. USE_NLS
  597. LEXLIB
  598. LEX_OUTPUT_ROOT
  599. LEX
  600. YFLAGS
  601. YACC
  602. WARN_WRITE_STRINGS
  603. NO_WERROR
  604. WARN_CFLAGS_FOR_BUILD
  605. WARN_CFLAGS
  606. OTOOL64
  607. OTOOL
  608. LIPO
  609. NMEDIT
  610. DSYMUTIL
  611. RANLIB
  612. AR
  613. OBJDUMP
  614. LN_S
  615. NM
  616. ac_ct_DUMPBIN
  617. DUMPBIN
  618. LD
  619. FGREP
  620. SED
  621. LIBTOOL
  622. EGREP
  623. GREP
  624. CPP
  625. am__fastdepCC_FALSE
  626. am__fastdepCC_TRUE
  627. CCDEPMODE
  628. am__nodep
  629. AMDEPBACKSLASH
  630. AMDEP_FALSE
  631. AMDEP_TRUE
  632. am__quote
  633. am__include
  634. DEPDIR
  635. am__untar
  636. am__tar
  637. AMTAR
  638. am__leading_dot
  639. SET_MAKE
  640. AWK
  641. mkdir_p
  642. MKDIR_P
  643. INSTALL_STRIP_PROGRAM
  644. STRIP
  645. install_sh
  646. MAKEINFO
  647. AUTOHEADER
  648. AUTOMAKE
  649. AUTOCONF
  650. ACLOCAL
  651. VERSION
  652. PACKAGE
  653. CYGPATH_W
  654. am__isrc
  655. INSTALL_DATA
  656. INSTALL_SCRIPT
  657. INSTALL_PROGRAM
  658. OBJEXT
  659. EXEEXT
  660. ac_ct_CC
  661. CPPFLAGS
  662. LDFLAGS
  663. CFLAGS
  664. CC
  665. target_os
  666. target_vendor
  667. target_cpu
  668. target
  669. host_os
  670. host_vendor
  671. host_cpu
  672. host
  673. build_os
  674. build_vendor
  675. build_cpu
  676. build
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_dependency_tracking
  719. enable_shared
  720. enable_static
  721. with_pic
  722. enable_fast_install
  723. with_gnu_ld
  724. enable_libtool_lock
  725. enable_plugins
  726. enable_largefile
  727. enable_targets
  728. enable_deterministic_archives
  729. enable_default_strings_all
  730. enable_werror
  731. enable_build_warnings
  732. enable_nls
  733. enable_maintainer_mode
  734. with_system_zlib
  735. enable_rpath
  736. with_libiconv_prefix
  737. '
  738. ac_precious_vars='build_alias
  739. host_alias
  740. target_alias
  741. CC
  742. CFLAGS
  743. LDFLAGS
  744. LIBS
  745. CPPFLAGS
  746. CPP
  747. YACC
  748. YFLAGS'
  749. # Initialize some variables set by options.
  750. ac_init_help=
  751. ac_init_version=false
  752. ac_unrecognized_opts=
  753. ac_unrecognized_sep=
  754. # The variables have the same names as the options, with
  755. # dashes changed to underlines.
  756. cache_file=/dev/null
  757. exec_prefix=NONE
  758. no_create=
  759. no_recursion=
  760. prefix=NONE
  761. program_prefix=NONE
  762. program_suffix=NONE
  763. program_transform_name=s,x,x,
  764. silent=
  765. site=
  766. srcdir=
  767. verbose=
  768. x_includes=NONE
  769. x_libraries=NONE
  770. # Installation directory options.
  771. # These are left unexpanded so users can "make install exec_prefix=/foo"
  772. # and all the variables that are supposed to be based on exec_prefix
  773. # by default will actually change.
  774. # Use braces instead of parens because sh, perl, etc. also accept them.
  775. # (The list follows the same order as the GNU Coding Standards.)
  776. bindir='${exec_prefix}/bin'
  777. sbindir='${exec_prefix}/sbin'
  778. libexecdir='${exec_prefix}/libexec'
  779. datarootdir='${prefix}/share'
  780. datadir='${datarootdir}'
  781. sysconfdir='${prefix}/etc'
  782. sharedstatedir='${prefix}/com'
  783. localstatedir='${prefix}/var'
  784. includedir='${prefix}/include'
  785. oldincludedir='/usr/include'
  786. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  787. infodir='${datarootdir}/info'
  788. htmldir='${docdir}'
  789. dvidir='${docdir}'
  790. pdfdir='${docdir}'
  791. psdir='${docdir}'
  792. libdir='${exec_prefix}/lib'
  793. localedir='${datarootdir}/locale'
  794. mandir='${datarootdir}/man'
  795. ac_prev=
  796. ac_dashdash=
  797. for ac_option
  798. do
  799. # If the previous option needs an argument, assign it.
  800. if test -n "$ac_prev"; then
  801. eval $ac_prev=\$ac_option
  802. ac_prev=
  803. continue
  804. fi
  805. case $ac_option in
  806. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  807. *) ac_optarg=yes ;;
  808. esac
  809. # Accept the important Cygnus configure options, so we can diagnose typos.
  810. case $ac_dashdash$ac_option in
  811. --)
  812. ac_dashdash=yes ;;
  813. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  814. ac_prev=bindir ;;
  815. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  816. bindir=$ac_optarg ;;
  817. -build | --build | --buil | --bui | --bu)
  818. ac_prev=build_alias ;;
  819. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  820. build_alias=$ac_optarg ;;
  821. -cache-file | --cache-file | --cache-fil | --cache-fi \
  822. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  823. ac_prev=cache_file ;;
  824. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  825. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  826. cache_file=$ac_optarg ;;
  827. --config-cache | -C)
  828. cache_file=config.cache ;;
  829. -datadir | --datadir | --datadi | --datad)
  830. ac_prev=datadir ;;
  831. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  832. datadir=$ac_optarg ;;
  833. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  834. | --dataroo | --dataro | --datar)
  835. ac_prev=datarootdir ;;
  836. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  837. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  838. datarootdir=$ac_optarg ;;
  839. -disable-* | --disable-*)
  840. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  841. # Reject names that are not valid shell variable names.
  842. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  843. as_fn_error "invalid feature name: $ac_useropt"
  844. ac_useropt_orig=$ac_useropt
  845. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  846. case $ac_user_opts in
  847. *"
  848. "enable_$ac_useropt"
  849. "*) ;;
  850. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  851. ac_unrecognized_sep=', ';;
  852. esac
  853. eval enable_$ac_useropt=no ;;
  854. -docdir | --docdir | --docdi | --doc | --do)
  855. ac_prev=docdir ;;
  856. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  857. docdir=$ac_optarg ;;
  858. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  859. ac_prev=dvidir ;;
  860. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  861. dvidir=$ac_optarg ;;
  862. -enable-* | --enable-*)
  863. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  864. # Reject names that are not valid shell variable names.
  865. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  866. as_fn_error "invalid feature name: $ac_useropt"
  867. ac_useropt_orig=$ac_useropt
  868. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  869. case $ac_user_opts in
  870. *"
  871. "enable_$ac_useropt"
  872. "*) ;;
  873. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  874. ac_unrecognized_sep=', ';;
  875. esac
  876. eval enable_$ac_useropt=\$ac_optarg ;;
  877. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  878. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  879. | --exec | --exe | --ex)
  880. ac_prev=exec_prefix ;;
  881. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  882. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  883. | --exec=* | --exe=* | --ex=*)
  884. exec_prefix=$ac_optarg ;;
  885. -gas | --gas | --ga | --g)
  886. # Obsolete; use --with-gas.
  887. with_gas=yes ;;
  888. -help | --help | --hel | --he | -h)
  889. ac_init_help=long ;;
  890. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  891. ac_init_help=recursive ;;
  892. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  893. ac_init_help=short ;;
  894. -host | --host | --hos | --ho)
  895. ac_prev=host_alias ;;
  896. -host=* | --host=* | --hos=* | --ho=*)
  897. host_alias=$ac_optarg ;;
  898. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  899. ac_prev=htmldir ;;
  900. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  901. | --ht=*)
  902. htmldir=$ac_optarg ;;
  903. -includedir | --includedir | --includedi | --included | --include \
  904. | --includ | --inclu | --incl | --inc)
  905. ac_prev=includedir ;;
  906. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  907. | --includ=* | --inclu=* | --incl=* | --inc=*)
  908. includedir=$ac_optarg ;;
  909. -infodir | --infodir | --infodi | --infod | --info | --inf)
  910. ac_prev=infodir ;;
  911. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  912. infodir=$ac_optarg ;;
  913. -libdir | --libdir | --libdi | --libd)
  914. ac_prev=libdir ;;
  915. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  916. libdir=$ac_optarg ;;
  917. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  918. | --libexe | --libex | --libe)
  919. ac_prev=libexecdir ;;
  920. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  921. | --libexe=* | --libex=* | --libe=*)
  922. libexecdir=$ac_optarg ;;
  923. -localedir | --localedir | --localedi | --localed | --locale)
  924. ac_prev=localedir ;;
  925. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  926. localedir=$ac_optarg ;;
  927. -localstatedir | --localstatedir | --localstatedi | --localstated \
  928. | --localstate | --localstat | --localsta | --localst | --locals)
  929. ac_prev=localstatedir ;;
  930. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  931. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  932. localstatedir=$ac_optarg ;;
  933. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  934. ac_prev=mandir ;;
  935. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  936. mandir=$ac_optarg ;;
  937. -nfp | --nfp | --nf)
  938. # Obsolete; use --without-fp.
  939. with_fp=no ;;
  940. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  941. | --no-cr | --no-c | -n)
  942. no_create=yes ;;
  943. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  944. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  945. no_recursion=yes ;;
  946. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  947. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  948. | --oldin | --oldi | --old | --ol | --o)
  949. ac_prev=oldincludedir ;;
  950. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  951. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  952. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  953. oldincludedir=$ac_optarg ;;
  954. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  955. ac_prev=prefix ;;
  956. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  957. prefix=$ac_optarg ;;
  958. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  959. | --program-pre | --program-pr | --program-p)
  960. ac_prev=program_prefix ;;
  961. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  962. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  963. program_prefix=$ac_optarg ;;
  964. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  965. | --program-suf | --program-su | --program-s)
  966. ac_prev=program_suffix ;;
  967. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  968. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  969. program_suffix=$ac_optarg ;;
  970. -program-transform-name | --program-transform-name \
  971. | --program-transform-nam | --program-transform-na \
  972. | --program-transform-n | --program-transform- \
  973. | --program-transform | --program-transfor \
  974. | --program-transfo | --program-transf \
  975. | --program-trans | --program-tran \
  976. | --progr-tra | --program-tr | --program-t)
  977. ac_prev=program_transform_name ;;
  978. -program-transform-name=* | --program-transform-name=* \
  979. | --program-transform-nam=* | --program-transform-na=* \
  980. | --program-transform-n=* | --program-transform-=* \
  981. | --program-transform=* | --program-transfor=* \
  982. | --program-transfo=* | --program-transf=* \
  983. | --program-trans=* | --program-tran=* \
  984. | --progr-tra=* | --program-tr=* | --program-t=*)
  985. program_transform_name=$ac_optarg ;;
  986. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  987. ac_prev=pdfdir ;;
  988. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  989. pdfdir=$ac_optarg ;;
  990. -psdir | --psdir | --psdi | --psd | --ps)
  991. ac_prev=psdir ;;
  992. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  993. psdir=$ac_optarg ;;
  994. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  995. | -silent | --silent | --silen | --sile | --sil)
  996. silent=yes ;;
  997. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  998. ac_prev=sbindir ;;
  999. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1000. | --sbi=* | --sb=*)
  1001. sbindir=$ac_optarg ;;
  1002. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1003. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1004. | --sharedst | --shareds | --shared | --share | --shar \
  1005. | --sha | --sh)
  1006. ac_prev=sharedstatedir ;;
  1007. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1008. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1009. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1010. | --sha=* | --sh=*)
  1011. sharedstatedir=$ac_optarg ;;
  1012. -site | --site | --sit)
  1013. ac_prev=site ;;
  1014. -site=* | --site=* | --sit=*)
  1015. site=$ac_optarg ;;
  1016. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1017. ac_prev=srcdir ;;
  1018. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1019. srcdir=$ac_optarg ;;
  1020. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1021. | --syscon | --sysco | --sysc | --sys | --sy)
  1022. ac_prev=sysconfdir ;;
  1023. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1024. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1025. sysconfdir=$ac_optarg ;;
  1026. -target | --target | --targe | --targ | --tar | --ta | --t)
  1027. ac_prev=target_alias ;;
  1028. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1029. target_alias=$ac_optarg ;;
  1030. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1031. verbose=yes ;;
  1032. -version | --version | --versio | --versi | --vers | -V)
  1033. ac_init_version=: ;;
  1034. -with-* | --with-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=\$ac_optarg ;;
  1049. -without-* | --without-*)
  1050. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1051. # Reject names that are not valid shell variable names.
  1052. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1053. as_fn_error "invalid package name: $ac_useropt"
  1054. ac_useropt_orig=$ac_useropt
  1055. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1056. case $ac_user_opts in
  1057. *"
  1058. "with_$ac_useropt"
  1059. "*) ;;
  1060. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1061. ac_unrecognized_sep=', ';;
  1062. esac
  1063. eval with_$ac_useropt=no ;;
  1064. --x)
  1065. # Obsolete; use --with-x.
  1066. with_x=yes ;;
  1067. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1068. | --x-incl | --x-inc | --x-in | --x-i)
  1069. ac_prev=x_includes ;;
  1070. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1071. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1072. x_includes=$ac_optarg ;;
  1073. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1074. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1075. ac_prev=x_libraries ;;
  1076. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1077. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1078. x_libraries=$ac_optarg ;;
  1079. -*) as_fn_error "unrecognized option: \`$ac_option'
  1080. Try \`$0 --help' for more information."
  1081. ;;
  1082. *=*)
  1083. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1084. # Reject names that are not valid shell variable names.
  1085. case $ac_envvar in #(
  1086. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1087. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1088. esac
  1089. eval $ac_envvar=\$ac_optarg
  1090. export $ac_envvar ;;
  1091. *)
  1092. # FIXME: should be removed in autoconf 3.0.
  1093. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1094. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1095. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1096. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1097. ;;
  1098. esac
  1099. done
  1100. if test -n "$ac_prev"; then
  1101. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1102. as_fn_error "missing argument to $ac_option"
  1103. fi
  1104. if test -n "$ac_unrecognized_opts"; then
  1105. case $enable_option_checking in
  1106. no) ;;
  1107. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1108. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1109. esac
  1110. fi
  1111. # Check all directory arguments for consistency.
  1112. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1113. datadir sysconfdir sharedstatedir localstatedir includedir \
  1114. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1115. libdir localedir mandir
  1116. do
  1117. eval ac_val=\$$ac_var
  1118. # Remove trailing slashes.
  1119. case $ac_val in
  1120. */ )
  1121. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1122. eval $ac_var=\$ac_val;;
  1123. esac
  1124. # Be sure to have absolute directory names.
  1125. case $ac_val in
  1126. [\\/$]* | ?:[\\/]* ) continue;;
  1127. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1128. esac
  1129. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1130. done
  1131. # There might be people who depend on the old broken behavior: `$host'
  1132. # used to hold the argument of --host etc.
  1133. # FIXME: To remove some day.
  1134. build=$build_alias
  1135. host=$host_alias
  1136. target=$target_alias
  1137. # FIXME: To remove some day.
  1138. if test "x$host_alias" != x; then
  1139. if test "x$build_alias" = x; then
  1140. cross_compiling=maybe
  1141. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1142. If a cross compiler is detected then cross compile mode will be used." >&2
  1143. elif test "x$build_alias" != "x$host_alias"; then
  1144. cross_compiling=yes
  1145. fi
  1146. fi
  1147. ac_tool_prefix=
  1148. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1149. test "$silent" = yes && exec 6>/dev/null
  1150. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1151. ac_ls_di=`ls -di .` &&
  1152. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1153. as_fn_error "working directory cannot be determined"
  1154. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1155. as_fn_error "pwd does not report name of working directory"
  1156. # Find the source files, if location was not specified.
  1157. if test -z "$srcdir"; then
  1158. ac_srcdir_defaulted=yes
  1159. # Try the directory containing this script, then the parent directory.
  1160. ac_confdir=`$as_dirname -- "$as_myself" ||
  1161. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1162. X"$as_myself" : 'X\(//\)[^/]' \| \
  1163. X"$as_myself" : 'X\(//\)$' \| \
  1164. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1165. $as_echo X"$as_myself" |
  1166. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1167. s//\1/
  1168. q
  1169. }
  1170. /^X\(\/\/\)[^/].*/{
  1171. s//\1/
  1172. q
  1173. }
  1174. /^X\(\/\/\)$/{
  1175. s//\1/
  1176. q
  1177. }
  1178. /^X\(\/\).*/{
  1179. s//\1/
  1180. q
  1181. }
  1182. s/.*/./; q'`
  1183. srcdir=$ac_confdir
  1184. if test ! -r "$srcdir/$ac_unique_file"; then
  1185. srcdir=..
  1186. fi
  1187. else
  1188. ac_srcdir_defaulted=no
  1189. fi
  1190. if test ! -r "$srcdir/$ac_unique_file"; then
  1191. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1192. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1193. fi
  1194. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1195. ac_abs_confdir=`(
  1196. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1197. pwd)`
  1198. # When building in place, set srcdir=.
  1199. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1200. srcdir=.
  1201. fi
  1202. # Remove unnecessary trailing slashes from srcdir.
  1203. # Double slashes in file names in object file debugging info
  1204. # mess up M-x gdb in Emacs.
  1205. case $srcdir in
  1206. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1207. esac
  1208. for ac_var in $ac_precious_vars; do
  1209. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1210. eval ac_env_${ac_var}_value=\$${ac_var}
  1211. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1212. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1213. done
  1214. #
  1215. # Report the --help message.
  1216. #
  1217. if test "$ac_init_help" = "long"; then
  1218. # Omit some internal or obsolete options to make the list less imposing.
  1219. # This message is too long to be a string in the A/UX 3.1 sh.
  1220. cat <<_ACEOF
  1221. \`configure' configures binutils 2.29.1 to adapt to many kinds of systems.
  1222. Usage: $0 [OPTION]... [VAR=VALUE]...
  1223. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1224. VAR=VALUE. See below for descriptions of some of the useful variables.
  1225. Defaults for the options are specified in brackets.
  1226. Configuration:
  1227. -h, --help display this help and exit
  1228. --help=short display options specific to this package
  1229. --help=recursive display the short help of all the included packages
  1230. -V, --version display version information and exit
  1231. -q, --quiet, --silent do not print \`checking...' messages
  1232. --cache-file=FILE cache test results in FILE [disabled]
  1233. -C, --config-cache alias for \`--cache-file=config.cache'
  1234. -n, --no-create do not create output files
  1235. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1236. Installation directories:
  1237. --prefix=PREFIX install architecture-independent files in PREFIX
  1238. [$ac_default_prefix]
  1239. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1240. [PREFIX]
  1241. By default, \`make install' will install all the files in
  1242. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1243. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1244. for instance \`--prefix=\$HOME'.
  1245. For better control, use the options below.
  1246. Fine tuning of the installation directories:
  1247. --bindir=DIR user executables [EPREFIX/bin]
  1248. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1249. --libexecdir=DIR program executables [EPREFIX/libexec]
  1250. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1251. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1252. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1253. --libdir=DIR object code libraries [EPREFIX/lib]
  1254. --includedir=DIR C header files [PREFIX/include]
  1255. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1256. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1257. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1258. --infodir=DIR info documentation [DATAROOTDIR/info]
  1259. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1260. --mandir=DIR man documentation [DATAROOTDIR/man]
  1261. --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
  1262. --htmldir=DIR html documentation [DOCDIR]
  1263. --dvidir=DIR dvi documentation [DOCDIR]
  1264. --pdfdir=DIR pdf documentation [DOCDIR]
  1265. --psdir=DIR ps documentation [DOCDIR]
  1266. _ACEOF
  1267. cat <<\_ACEOF
  1268. Program names:
  1269. --program-prefix=PREFIX prepend PREFIX to installed program names
  1270. --program-suffix=SUFFIX append SUFFIX to installed program names
  1271. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1272. System types:
  1273. --build=BUILD configure for building on BUILD [guessed]
  1274. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1275. --target=TARGET configure for building compilers for TARGET [HOST]
  1276. _ACEOF
  1277. fi
  1278. if test -n "$ac_init_help"; then
  1279. case $ac_init_help in
  1280. short | recursive ) echo "Configuration of binutils 2.29.1:";;
  1281. esac
  1282. cat <<\_ACEOF
  1283. Optional Features:
  1284. --disable-option-checking ignore unrecognized --enable/--with options
  1285. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1286. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1287. --disable-dependency-tracking speeds up one-time build
  1288. --enable-dependency-tracking do not reject slow dependency extractors
  1289. --enable-shared[=PKGS] build shared libraries [default=yes]
  1290. --enable-static[=PKGS] build static libraries [default=yes]
  1291. --enable-fast-install[=PKGS]
  1292. optimize for fast installation [default=yes]
  1293. --disable-libtool-lock avoid locking (might break parallel builds)
  1294. --enable-plugins Enable support for plugins
  1295. --disable-largefile omit support for large files
  1296. --enable-targets alternative target configurations
  1297. --enable-deterministic-archives
  1298. ar and ranlib default to -D behavior
  1299. --disable-default-strings-all
  1300. strings defaults to --data behavior
  1301. --enable-werror treat compile warnings as errors
  1302. --enable-build-warnings enable build-time compiler warnings
  1303. --disable-nls do not use Native Language Support
  1304. --enable-maintainer-mode enable make rules and dependencies not useful
  1305. (and sometimes confusing) to the casual installer
  1306. --disable-rpath do not hardcode runtime library paths
  1307. Optional Packages:
  1308. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1309. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1310. --with-pic try to use only PIC/non-PIC objects [default=use
  1311. both]
  1312. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1313. --with-system-zlib use installed libz
  1314. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1315. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1316. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1317. Some influential environment variables:
  1318. CC C compiler command
  1319. CFLAGS C compiler flags
  1320. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1321. nonstandard directory <lib dir>
  1322. LIBS libraries to pass to the linker, e.g. -l<library>
  1323. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1324. you have headers in a nonstandard directory <include dir>
  1325. CPP C preprocessor
  1326. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1327. the first program found out of: `bison -y', `byacc', `yacc'.
  1328. YFLAGS The list of arguments that will be passed by default to $YACC.
  1329. This script will default YFLAGS to the empty string to avoid a
  1330. default value of `-d' given by some make applications.
  1331. Use these variables to override the choices made by `configure' or to help
  1332. it to find libraries and programs with nonstandard names/locations.
  1333. Report bugs to the package provider.
  1334. _ACEOF
  1335. ac_status=$?
  1336. fi
  1337. if test "$ac_init_help" = "recursive"; then
  1338. # If there are subdirs, report their specific --help.
  1339. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1340. test -d "$ac_dir" ||
  1341. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1342. continue
  1343. ac_builddir=.
  1344. case "$ac_dir" in
  1345. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1346. *)
  1347. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1348. # A ".." for each directory in $ac_dir_suffix.
  1349. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1350. case $ac_top_builddir_sub in
  1351. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1352. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1353. esac ;;
  1354. esac
  1355. ac_abs_top_builddir=$ac_pwd
  1356. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1357. # for backward compatibility:
  1358. ac_top_builddir=$ac_top_build_prefix
  1359. case $srcdir in
  1360. .) # We are building in place.
  1361. ac_srcdir=.
  1362. ac_top_srcdir=$ac_top_builddir_sub
  1363. ac_abs_top_srcdir=$ac_pwd ;;
  1364. [\\/]* | ?:[\\/]* ) # Absolute name.
  1365. ac_srcdir=$srcdir$ac_dir_suffix;
  1366. ac_top_srcdir=$srcdir
  1367. ac_abs_top_srcdir=$srcdir ;;
  1368. *) # Relative name.
  1369. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1370. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1371. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1372. esac
  1373. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1374. cd "$ac_dir" || { ac_status=$?; continue; }
  1375. # Check for guested configure.
  1376. if test -f "$ac_srcdir/configure.gnu"; then
  1377. echo &&
  1378. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1379. elif test -f "$ac_srcdir/configure"; then
  1380. echo &&
  1381. $SHELL "$ac_srcdir/configure" --help=recursive
  1382. else
  1383. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1384. fi || ac_status=$?
  1385. cd "$ac_pwd" || { ac_status=$?; break; }
  1386. done
  1387. fi
  1388. test -n "$ac_init_help" && exit $ac_status
  1389. if $ac_init_version; then
  1390. cat <<\_ACEOF
  1391. binutils configure 2.29.1
  1392. generated by GNU Autoconf 2.64
  1393. Copyright (C) 2009 Free Software Foundation, Inc.
  1394. This configure script is free software; the Free Software Foundation
  1395. gives unlimited permission to copy, distribute and modify it.
  1396. _ACEOF
  1397. exit
  1398. fi
  1399. ## ------------------------ ##
  1400. ## Autoconf initialization. ##
  1401. ## ------------------------ ##
  1402. # ac_fn_c_try_compile LINENO
  1403. # --------------------------
  1404. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1405. ac_fn_c_try_compile ()
  1406. {
  1407. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1408. rm -f conftest.$ac_objext
  1409. if { { ac_try="$ac_compile"
  1410. case "(($ac_try" in
  1411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1412. *) ac_try_echo=$ac_try;;
  1413. esac
  1414. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1415. $as_echo "$ac_try_echo"; } >&5
  1416. (eval "$ac_compile") 2>conftest.err
  1417. ac_status=$?
  1418. if test -s conftest.err; then
  1419. grep -v '^ *+' conftest.err >conftest.er1
  1420. cat conftest.er1 >&5
  1421. mv -f conftest.er1 conftest.err
  1422. fi
  1423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1424. test $ac_status = 0; } && {
  1425. test -z "$ac_c_werror_flag" ||
  1426. test ! -s conftest.err
  1427. } && test -s conftest.$ac_objext; then :
  1428. ac_retval=0
  1429. else
  1430. $as_echo "$as_me: failed program was:" >&5
  1431. sed 's/^/| /' conftest.$ac_ext >&5
  1432. ac_retval=1
  1433. fi
  1434. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1435. return $ac_retval
  1436. } # ac_fn_c_try_compile
  1437. # ac_fn_c_try_link LINENO
  1438. # -----------------------
  1439. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1440. ac_fn_c_try_link ()
  1441. {
  1442. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1443. rm -f conftest.$ac_objext conftest$ac_exeext
  1444. if { { ac_try="$ac_link"
  1445. case "(($ac_try" in
  1446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1447. *) ac_try_echo=$ac_try;;
  1448. esac
  1449. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1450. $as_echo "$ac_try_echo"; } >&5
  1451. (eval "$ac_link") 2>conftest.err
  1452. ac_status=$?
  1453. if test -s conftest.err; then
  1454. grep -v '^ *+' conftest.err >conftest.er1
  1455. cat conftest.er1 >&5
  1456. mv -f conftest.er1 conftest.err
  1457. fi
  1458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1459. test $ac_status = 0; } && {
  1460. test -z "$ac_c_werror_flag" ||
  1461. test ! -s conftest.err
  1462. } && test -s conftest$ac_exeext && {
  1463. test "$cross_compiling" = yes ||
  1464. $as_test_x conftest$ac_exeext
  1465. }; then :
  1466. ac_retval=0
  1467. else
  1468. $as_echo "$as_me: failed program was:" >&5
  1469. sed 's/^/| /' conftest.$ac_ext >&5
  1470. ac_retval=1
  1471. fi
  1472. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1473. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1474. # interfere with the next link command; also delete a directory that is
  1475. # left behind by Apple's compiler. We do this before executing the actions.
  1476. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1477. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1478. return $ac_retval
  1479. } # ac_fn_c_try_link
  1480. # ac_fn_c_try_cpp LINENO
  1481. # ----------------------
  1482. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1483. ac_fn_c_try_cpp ()
  1484. {
  1485. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1486. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1487. case "(($ac_try" in
  1488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1489. *) ac_try_echo=$ac_try;;
  1490. esac
  1491. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1492. $as_echo "$ac_try_echo"; } >&5
  1493. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1494. ac_status=$?
  1495. if test -s conftest.err; then
  1496. grep -v '^ *+' conftest.err >conftest.er1
  1497. cat conftest.er1 >&5
  1498. mv -f conftest.er1 conftest.err
  1499. fi
  1500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1501. test $ac_status = 0; } >/dev/null && {
  1502. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1503. test ! -s conftest.err
  1504. }; then :
  1505. ac_retval=0
  1506. else
  1507. $as_echo "$as_me: failed program was:" >&5
  1508. sed 's/^/| /' conftest.$ac_ext >&5
  1509. ac_retval=1
  1510. fi
  1511. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1512. return $ac_retval
  1513. } # ac_fn_c_try_cpp
  1514. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1515. # -------------------------------------------------------
  1516. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1517. # the include files in INCLUDES and setting the cache variable VAR
  1518. # accordingly.
  1519. ac_fn_c_check_header_mongrel ()
  1520. {
  1521. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1522. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1524. $as_echo_n "checking for $2... " >&6; }
  1525. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1526. $as_echo_n "(cached) " >&6
  1527. fi
  1528. eval ac_res=\$$3
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1530. $as_echo "$ac_res" >&6; }
  1531. else
  1532. # Is the header compilable?
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1534. $as_echo_n "checking $2 usability... " >&6; }
  1535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1536. /* end confdefs.h. */
  1537. $4
  1538. #include <$2>
  1539. _ACEOF
  1540. if ac_fn_c_try_compile "$LINENO"; then :
  1541. ac_header_compiler=yes
  1542. else
  1543. ac_header_compiler=no
  1544. fi
  1545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1547. $as_echo "$ac_header_compiler" >&6; }
  1548. # Is the header present?
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1550. $as_echo_n "checking $2 presence... " >&6; }
  1551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1552. /* end confdefs.h. */
  1553. #include <$2>
  1554. _ACEOF
  1555. if ac_fn_c_try_cpp "$LINENO"; then :
  1556. ac_header_preproc=yes
  1557. else
  1558. ac_header_preproc=no
  1559. fi
  1560. rm -f conftest.err conftest.$ac_ext
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1562. $as_echo "$ac_header_preproc" >&6; }
  1563. # So? What about this header?
  1564. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1565. yes:no: )
  1566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1567. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1569. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1570. ;;
  1571. no:yes:* )
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1573. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1575. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1577. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1579. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1581. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1582. ;;
  1583. esac
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1585. $as_echo_n "checking for $2... " >&6; }
  1586. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1587. $as_echo_n "(cached) " >&6
  1588. else
  1589. eval "$3=\$ac_header_compiler"
  1590. fi
  1591. eval ac_res=\$$3
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1593. $as_echo "$ac_res" >&6; }
  1594. fi
  1595. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1596. } # ac_fn_c_check_header_mongrel
  1597. # ac_fn_c_try_run LINENO
  1598. # ----------------------
  1599. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1600. # that executables *can* be run.
  1601. ac_fn_c_try_run ()
  1602. {
  1603. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1604. if { { ac_try="$ac_link"
  1605. case "(($ac_try" in
  1606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1607. *) ac_try_echo=$ac_try;;
  1608. esac
  1609. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1610. $as_echo "$ac_try_echo"; } >&5
  1611. (eval "$ac_link") 2>&5
  1612. ac_status=$?
  1613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1614. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1615. { { case "(($ac_try" in
  1616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1617. *) ac_try_echo=$ac_try;;
  1618. esac
  1619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1620. $as_echo "$ac_try_echo"; } >&5
  1621. (eval "$ac_try") 2>&5
  1622. ac_status=$?
  1623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1624. test $ac_status = 0; }; }; then :
  1625. ac_retval=0
  1626. else
  1627. $as_echo "$as_me: program exited with status $ac_status" >&5
  1628. $as_echo "$as_me: failed program was:" >&5
  1629. sed 's/^/| /' conftest.$ac_ext >&5
  1630. ac_retval=$ac_status
  1631. fi
  1632. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1633. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1634. return $ac_retval
  1635. } # ac_fn_c_try_run
  1636. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1637. # -------------------------------------------------------
  1638. # Tests whether HEADER exists and can be compiled using the include files in
  1639. # INCLUDES, setting the cache variable VAR accordingly.
  1640. ac_fn_c_check_header_compile ()
  1641. {
  1642. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1644. $as_echo_n "checking for $2... " >&6; }
  1645. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1646. $as_echo_n "(cached) " >&6
  1647. else
  1648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1649. /* end confdefs.h. */
  1650. $4
  1651. #include <$2>
  1652. _ACEOF
  1653. if ac_fn_c_try_compile "$LINENO"; then :
  1654. eval "$3=yes"
  1655. else
  1656. eval "$3=no"
  1657. fi
  1658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1659. fi
  1660. eval ac_res=\$$3
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1662. $as_echo "$ac_res" >&6; }
  1663. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1664. } # ac_fn_c_check_header_compile
  1665. # ac_fn_c_check_func LINENO FUNC VAR
  1666. # ----------------------------------
  1667. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1668. ac_fn_c_check_func ()
  1669. {
  1670. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1679. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1680. #define $2 innocuous_$2
  1681. /* System header to define __stub macros and hopefully few prototypes,
  1682. which can conflict with char $2 (); below.
  1683. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1684. <limits.h> exists even on freestanding compilers. */
  1685. #ifdef __STDC__
  1686. # include <limits.h>
  1687. #else
  1688. # include <assert.h>
  1689. #endif
  1690. #undef $2
  1691. /* Override any GCC internal prototype to avoid an error.
  1692. Use char because int might match the return type of a GCC
  1693. builtin and then its argument prototype would still apply. */
  1694. #ifdef __cplusplus
  1695. extern "C"
  1696. #endif
  1697. char $2 ();
  1698. /* The GNU C library defines this for functions which it implements
  1699. to always fail with ENOSYS. Some functions are actually named
  1700. something starting with __ and the normal name is an alias. */
  1701. #if defined __stub_$2 || defined __stub___$2
  1702. choke me
  1703. #endif
  1704. int
  1705. main ()
  1706. {
  1707. return $2 ();
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_link "$LINENO"; then :
  1713. eval "$3=yes"
  1714. else
  1715. eval "$3=no"
  1716. fi
  1717. rm -f core conftest.err conftest.$ac_objext \
  1718. conftest$ac_exeext conftest.$ac_ext
  1719. fi
  1720. eval ac_res=\$$3
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1722. $as_echo "$ac_res" >&6; }
  1723. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1724. } # ac_fn_c_check_func
  1725. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1726. # --------------------------------------------
  1727. # Tries to find the compile-time value of EXPR in a program that includes
  1728. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1729. # computed
  1730. ac_fn_c_compute_int ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. if test "$cross_compiling" = yes; then
  1734. # Depending upon the size, compute the lo and hi bounds.
  1735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1736. /* end confdefs.h. */
  1737. $4
  1738. int
  1739. main ()
  1740. {
  1741. static int test_array [1 - 2 * !(($2) >= 0)];
  1742. test_array [0] = 0
  1743. ;
  1744. return 0;
  1745. }
  1746. _ACEOF
  1747. if ac_fn_c_try_compile "$LINENO"; then :
  1748. ac_lo=0 ac_mid=0
  1749. while :; do
  1750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1751. /* end confdefs.h. */
  1752. $4
  1753. int
  1754. main ()
  1755. {
  1756. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1757. test_array [0] = 0
  1758. ;
  1759. return 0;
  1760. }
  1761. _ACEOF
  1762. if ac_fn_c_try_compile "$LINENO"; then :
  1763. ac_hi=$ac_mid; break
  1764. else
  1765. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1766. if test $ac_lo -le $ac_mid; then
  1767. ac_lo= ac_hi=
  1768. break
  1769. fi
  1770. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1771. fi
  1772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1773. done
  1774. else
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. $4
  1778. int
  1779. main ()
  1780. {
  1781. static int test_array [1 - 2 * !(($2) < 0)];
  1782. test_array [0] = 0
  1783. ;
  1784. return 0;
  1785. }
  1786. _ACEOF
  1787. if ac_fn_c_try_compile "$LINENO"; then :
  1788. ac_hi=-1 ac_mid=-1
  1789. while :; do
  1790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1791. /* end confdefs.h. */
  1792. $4
  1793. int
  1794. main ()
  1795. {
  1796. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1797. test_array [0] = 0
  1798. ;
  1799. return 0;
  1800. }
  1801. _ACEOF
  1802. if ac_fn_c_try_compile "$LINENO"; then :
  1803. ac_lo=$ac_mid; break
  1804. else
  1805. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1806. if test $ac_mid -le $ac_hi; then
  1807. ac_lo= ac_hi=
  1808. break
  1809. fi
  1810. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1811. fi
  1812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1813. done
  1814. else
  1815. ac_lo= ac_hi=
  1816. fi
  1817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. # Binary search between lo and hi bounds.
  1821. while test "x$ac_lo" != "x$ac_hi"; do
  1822. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1824. /* end confdefs.h. */
  1825. $4
  1826. int
  1827. main ()
  1828. {
  1829. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1830. test_array [0] = 0
  1831. ;
  1832. return 0;
  1833. }
  1834. _ACEOF
  1835. if ac_fn_c_try_compile "$LINENO"; then :
  1836. ac_hi=$ac_mid
  1837. else
  1838. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1839. fi
  1840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1841. done
  1842. case $ac_lo in #((
  1843. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1844. '') ac_retval=1 ;;
  1845. esac
  1846. else
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. $4
  1850. static long int longval () { return $2; }
  1851. static unsigned long int ulongval () { return $2; }
  1852. #include <stdio.h>
  1853. #include <stdlib.h>
  1854. int
  1855. main ()
  1856. {
  1857. FILE *f = fopen ("conftest.val", "w");
  1858. if (! f)
  1859. return 1;
  1860. if (($2) < 0)
  1861. {
  1862. long int i = longval ();
  1863. if (i != ($2))
  1864. return 1;
  1865. fprintf (f, "%ld", i);
  1866. }
  1867. else
  1868. {
  1869. unsigned long int i = ulongval ();
  1870. if (i != ($2))
  1871. return 1;
  1872. fprintf (f, "%lu", i);
  1873. }
  1874. /* Do not output a trailing newline, as this causes \r\n confusion
  1875. on some platforms. */
  1876. return ferror (f) || fclose (f) != 0;
  1877. ;
  1878. return 0;
  1879. }
  1880. _ACEOF
  1881. if ac_fn_c_try_run "$LINENO"; then :
  1882. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1883. else
  1884. ac_retval=1
  1885. fi
  1886. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1887. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1888. rm -f conftest.val
  1889. fi
  1890. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1891. return $ac_retval
  1892. } # ac_fn_c_compute_int
  1893. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1894. # -------------------------------------------
  1895. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1896. # variable VAR accordingly.
  1897. ac_fn_c_check_type ()
  1898. {
  1899. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1901. $as_echo_n "checking for $2... " >&6; }
  1902. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1903. $as_echo_n "(cached) " >&6
  1904. else
  1905. eval "$3=no"
  1906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1907. /* end confdefs.h. */
  1908. $4
  1909. int
  1910. main ()
  1911. {
  1912. if (sizeof ($2))
  1913. return 0;
  1914. ;
  1915. return 0;
  1916. }
  1917. _ACEOF
  1918. if ac_fn_c_try_compile "$LINENO"; then :
  1919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1920. /* end confdefs.h. */
  1921. $4
  1922. int
  1923. main ()
  1924. {
  1925. if (sizeof (($2)))
  1926. return 0;
  1927. ;
  1928. return 0;
  1929. }
  1930. _ACEOF
  1931. if ac_fn_c_try_compile "$LINENO"; then :
  1932. else
  1933. eval "$3=yes"
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1936. fi
  1937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1938. fi
  1939. eval ac_res=\$$3
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1941. $as_echo "$ac_res" >&6; }
  1942. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1943. } # ac_fn_c_check_type
  1944. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1945. # ------------------------------------
  1946. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1947. ac_fn_c_check_decl ()
  1948. {
  1949. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1950. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1951. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1953. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1954. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1955. $as_echo_n "(cached) " >&6
  1956. else
  1957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1958. /* end confdefs.h. */
  1959. $4
  1960. int
  1961. main ()
  1962. {
  1963. #ifndef $as_decl_name
  1964. #ifdef __cplusplus
  1965. (void) $as_decl_use;
  1966. #else
  1967. (void) $as_decl_name;
  1968. #endif
  1969. #endif
  1970. ;
  1971. return 0;
  1972. }
  1973. _ACEOF
  1974. if ac_fn_c_try_compile "$LINENO"; then :
  1975. eval "$3=yes"
  1976. else
  1977. eval "$3=no"
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. fi
  1981. eval ac_res=\$$3
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1983. $as_echo "$ac_res" >&6; }
  1984. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1985. } # ac_fn_c_check_decl
  1986. cat >config.log <<_ACEOF
  1987. This file contains any messages produced by compilers while
  1988. running configure, to aid debugging if configure makes a mistake.
  1989. It was created by binutils $as_me 2.29.1, which was
  1990. generated by GNU Autoconf 2.64. Invocation command line was
  1991. $ $0 $@
  1992. _ACEOF
  1993. exec 5>>config.log
  1994. {
  1995. cat <<_ASUNAME
  1996. ## --------- ##
  1997. ## Platform. ##
  1998. ## --------- ##
  1999. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2000. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2001. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2002. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2003. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2004. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2005. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2006. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2007. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2008. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2009. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2010. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2011. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2012. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2013. _ASUNAME
  2014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2015. for as_dir in $PATH
  2016. do
  2017. IFS=$as_save_IFS
  2018. test -z "$as_dir" && as_dir=.
  2019. $as_echo "PATH: $as_dir"
  2020. done
  2021. IFS=$as_save_IFS
  2022. } >&5
  2023. cat >&5 <<_ACEOF
  2024. ## ----------- ##
  2025. ## Core tests. ##
  2026. ## ----------- ##
  2027. _ACEOF
  2028. # Keep a trace of the command line.
  2029. # Strip out --no-create and --no-recursion so they do not pile up.
  2030. # Strip out --silent because we don't want to record it for future runs.
  2031. # Also quote any args containing shell meta-characters.
  2032. # Make two passes to allow for proper duplicate-argument suppression.
  2033. ac_configure_args=
  2034. ac_configure_args0=
  2035. ac_configure_args1=
  2036. ac_must_keep_next=false
  2037. for ac_pass in 1 2
  2038. do
  2039. for ac_arg
  2040. do
  2041. case $ac_arg in
  2042. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2043. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2044. | -silent | --silent | --silen | --sile | --sil)
  2045. continue ;;
  2046. *\'*)
  2047. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2048. esac
  2049. case $ac_pass in
  2050. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2051. 2)
  2052. as_fn_append ac_configure_args1 " '$ac_arg'"
  2053. if test $ac_must_keep_next = true; then
  2054. ac_must_keep_next=false # Got value, back to normal.
  2055. else
  2056. case $ac_arg in
  2057. *=* | --config-cache | -C | -disable-* | --disable-* \
  2058. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2059. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2060. | -with-* | --with-* | -without-* | --without-* | --x)
  2061. case "$ac_configure_args0 " in
  2062. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2063. esac
  2064. ;;
  2065. -* ) ac_must_keep_next=true ;;
  2066. esac
  2067. fi
  2068. as_fn_append ac_configure_args " '$ac_arg'"
  2069. ;;
  2070. esac
  2071. done
  2072. done
  2073. { ac_configure_args0=; unset ac_configure_args0;}
  2074. { ac_configure_args1=; unset ac_configure_args1;}
  2075. # When interrupted or exit'd, cleanup temporary files, and complete
  2076. # config.log. We remove comments because anyway the quotes in there
  2077. # would cause problems or look ugly.
  2078. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2079. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2080. trap 'exit_status=$?
  2081. # Save into config.log some information that might help in debugging.
  2082. {
  2083. echo
  2084. cat <<\_ASBOX
  2085. ## ---------------- ##
  2086. ## Cache variables. ##
  2087. ## ---------------- ##
  2088. _ASBOX
  2089. echo
  2090. # The following way of writing the cache mishandles newlines in values,
  2091. (
  2092. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2093. eval ac_val=\$$ac_var
  2094. case $ac_val in #(
  2095. *${as_nl}*)
  2096. case $ac_var in #(
  2097. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2098. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2099. esac
  2100. case $ac_var in #(
  2101. _ | IFS | as_nl) ;; #(
  2102. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2103. *) { eval $ac_var=; unset $ac_var;} ;;
  2104. esac ;;
  2105. esac
  2106. done
  2107. (set) 2>&1 |
  2108. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2109. *${as_nl}ac_space=\ *)
  2110. sed -n \
  2111. "s/'\''/'\''\\\\'\'''\''/g;
  2112. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2113. ;; #(
  2114. *)
  2115. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2116. ;;
  2117. esac |
  2118. sort
  2119. )
  2120. echo
  2121. cat <<\_ASBOX
  2122. ## ----------------- ##
  2123. ## Output variables. ##
  2124. ## ----------------- ##
  2125. _ASBOX
  2126. echo
  2127. for ac_var in $ac_subst_vars
  2128. do
  2129. eval ac_val=\$$ac_var
  2130. case $ac_val in
  2131. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2132. esac
  2133. $as_echo "$ac_var='\''$ac_val'\''"
  2134. done | sort
  2135. echo
  2136. if test -n "$ac_subst_files"; then
  2137. cat <<\_ASBOX
  2138. ## ------------------- ##
  2139. ## File substitutions. ##
  2140. ## ------------------- ##
  2141. _ASBOX
  2142. echo
  2143. for ac_var in $ac_subst_files
  2144. do
  2145. eval ac_val=\$$ac_var
  2146. case $ac_val in
  2147. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2148. esac
  2149. $as_echo "$ac_var='\''$ac_val'\''"
  2150. done | sort
  2151. echo
  2152. fi
  2153. if test -s confdefs.h; then
  2154. cat <<\_ASBOX
  2155. ## ----------- ##
  2156. ## confdefs.h. ##
  2157. ## ----------- ##
  2158. _ASBOX
  2159. echo
  2160. cat confdefs.h
  2161. echo
  2162. fi
  2163. test "$ac_signal" != 0 &&
  2164. $as_echo "$as_me: caught signal $ac_signal"
  2165. $as_echo "$as_me: exit $exit_status"
  2166. } >&5
  2167. rm -f core *.core core.conftest.* &&
  2168. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2169. exit $exit_status
  2170. ' 0
  2171. for ac_signal in 1 2 13 15; do
  2172. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2173. done
  2174. ac_signal=0
  2175. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2176. rm -f -r conftest* confdefs.h
  2177. $as_echo "/* confdefs.h */" > confdefs.h
  2178. # Predefined preprocessor variables.
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_NAME "$PACKAGE_NAME"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2184. _ACEOF
  2185. cat >>confdefs.h <<_ACEOF
  2186. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2187. _ACEOF
  2188. cat >>confdefs.h <<_ACEOF
  2189. #define PACKAGE_STRING "$PACKAGE_STRING"
  2190. _ACEOF
  2191. cat >>confdefs.h <<_ACEOF
  2192. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2193. _ACEOF
  2194. cat >>confdefs.h <<_ACEOF
  2195. #define PACKAGE_URL "$PACKAGE_URL"
  2196. _ACEOF
  2197. # Let the site file select an alternate cache file if it wants to.
  2198. # Prefer an explicitly selected file to automatically selected ones.
  2199. ac_site_file1=NONE
  2200. ac_site_file2=NONE
  2201. if test -n "$CONFIG_SITE"; then
  2202. ac_site_file1=$CONFIG_SITE
  2203. elif test "x$prefix" != xNONE; then
  2204. ac_site_file1=$prefix/share/config.site
  2205. ac_site_file2=$prefix/etc/config.site
  2206. else
  2207. ac_site_file1=$ac_default_prefix/share/config.site
  2208. ac_site_file2=$ac_default_prefix/etc/config.site
  2209. fi
  2210. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2211. do
  2212. test "x$ac_site_file" = xNONE && continue
  2213. if test -r "$ac_site_file"; then
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2215. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2216. sed 's/^/| /' "$ac_site_file" >&5
  2217. . "$ac_site_file"
  2218. fi
  2219. done
  2220. if test -r "$cache_file"; then
  2221. # Some versions of bash will fail to source /dev/null (special
  2222. # files actually), so we avoid doing that.
  2223. if test -f "$cache_file"; then
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2225. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2226. case $cache_file in
  2227. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2228. *) . "./$cache_file";;
  2229. esac
  2230. fi
  2231. else
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2233. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2234. >$cache_file
  2235. fi
  2236. # Check that the precious variables saved in the cache have kept the same
  2237. # value.
  2238. ac_cache_corrupted=false
  2239. for ac_var in $ac_precious_vars; do
  2240. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2241. eval ac_new_set=\$ac_env_${ac_var}_set
  2242. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2243. eval ac_new_val=\$ac_env_${ac_var}_value
  2244. case $ac_old_set,$ac_new_set in
  2245. set,)
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2247. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2248. ac_cache_corrupted=: ;;
  2249. ,set)
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2251. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2252. ac_cache_corrupted=: ;;
  2253. ,);;
  2254. *)
  2255. if test "x$ac_old_val" != "x$ac_new_val"; then
  2256. # differences in whitespace do not lead to failure.
  2257. ac_old_val_w=`echo x $ac_old_val`
  2258. ac_new_val_w=`echo x $ac_new_val`
  2259. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2261. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2262. ac_cache_corrupted=:
  2263. else
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2265. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2266. eval $ac_var=\$ac_old_val
  2267. fi
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2269. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2271. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2272. fi;;
  2273. esac
  2274. # Pass precious variables to config.status.
  2275. if test "$ac_new_set" = set; then
  2276. case $ac_new_val in
  2277. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2278. *) ac_arg=$ac_var=$ac_new_val ;;
  2279. esac
  2280. case " $ac_configure_args " in
  2281. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2282. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2283. esac
  2284. fi
  2285. done
  2286. if $ac_cache_corrupted; then
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2288. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2290. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2291. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2292. fi
  2293. ## -------------------- ##
  2294. ## Main body of script. ##
  2295. ## -------------------- ##
  2296. ac_ext=c
  2297. ac_cpp='$CPP $CPPFLAGS'
  2298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2301. ac_aux_dir=
  2302. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2303. for ac_t in install-sh install.sh shtool; do
  2304. if test -f "$ac_dir/$ac_t"; then
  2305. ac_aux_dir=$ac_dir
  2306. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2307. break 2
  2308. fi
  2309. done
  2310. done
  2311. if test -z "$ac_aux_dir"; then
  2312. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2313. fi
  2314. # These three variables are undocumented and unsupported,
  2315. # and are intended to be withdrawn in a future Autoconf release.
  2316. # They can cause serious problems if a builder's source tree is in a directory
  2317. # whose full name contains unusual characters.
  2318. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2319. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2320. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2321. # Make sure we can run config.sub.
  2322. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2323. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2325. $as_echo_n "checking build system type... " >&6; }
  2326. if test "${ac_cv_build+set}" = set; then :
  2327. $as_echo_n "(cached) " >&6
  2328. else
  2329. ac_build_alias=$build_alias
  2330. test "x$ac_build_alias" = x &&
  2331. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2332. test "x$ac_build_alias" = x &&
  2333. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2334. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2335. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2336. fi
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2338. $as_echo "$ac_cv_build" >&6; }
  2339. case $ac_cv_build in
  2340. *-*-*) ;;
  2341. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2342. esac
  2343. build=$ac_cv_build
  2344. ac_save_IFS=$IFS; IFS='-'
  2345. set x $ac_cv_build
  2346. shift
  2347. build_cpu=$1
  2348. build_vendor=$2
  2349. shift; shift
  2350. # Remember, the first character of IFS is used to create $*,
  2351. # except with old shells:
  2352. build_os=$*
  2353. IFS=$ac_save_IFS
  2354. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2356. $as_echo_n "checking host system type... " >&6; }
  2357. if test "${ac_cv_host+set}" = set; then :
  2358. $as_echo_n "(cached) " >&6
  2359. else
  2360. if test "x$host_alias" = x; then
  2361. ac_cv_host=$ac_cv_build
  2362. else
  2363. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2364. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2365. fi
  2366. fi
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2368. $as_echo "$ac_cv_host" >&6; }
  2369. case $ac_cv_host in
  2370. *-*-*) ;;
  2371. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2372. esac
  2373. host=$ac_cv_host
  2374. ac_save_IFS=$IFS; IFS='-'
  2375. set x $ac_cv_host
  2376. shift
  2377. host_cpu=$1
  2378. host_vendor=$2
  2379. shift; shift
  2380. # Remember, the first character of IFS is used to create $*,
  2381. # except with old shells:
  2382. host_os=$*
  2383. IFS=$ac_save_IFS
  2384. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2386. $as_echo_n "checking target system type... " >&6; }
  2387. if test "${ac_cv_target+set}" = set; then :
  2388. $as_echo_n "(cached) " >&6
  2389. else
  2390. if test "x$target_alias" = x; then
  2391. ac_cv_target=$ac_cv_host
  2392. else
  2393. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2394. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2395. fi
  2396. fi
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2398. $as_echo "$ac_cv_target" >&6; }
  2399. case $ac_cv_target in
  2400. *-*-*) ;;
  2401. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2402. esac
  2403. target=$ac_cv_target
  2404. ac_save_IFS=$IFS; IFS='-'
  2405. set x $ac_cv_target
  2406. shift
  2407. target_cpu=$1
  2408. target_vendor=$2
  2409. shift; shift
  2410. # Remember, the first character of IFS is used to create $*,
  2411. # except with old shells:
  2412. target_os=$*
  2413. IFS=$ac_save_IFS
  2414. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2415. # The aliases save the names the user supplied, while $host etc.
  2416. # will get canonicalized.
  2417. test -n "$target_alias" &&
  2418. test "$program_prefix$program_suffix$program_transform_name" = \
  2419. NONENONEs,x,x, &&
  2420. program_prefix=${target_alias}-
  2421. ac_ext=c
  2422. ac_cpp='$CPP $CPPFLAGS'
  2423. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2424. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2425. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2426. if test -n "$ac_tool_prefix"; then
  2427. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2428. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2430. $as_echo_n "checking for $ac_word... " >&6; }
  2431. if test "${ac_cv_prog_CC+set}" = set; then :
  2432. $as_echo_n "(cached) " >&6
  2433. else
  2434. if test -n "$CC"; then
  2435. ac_cv_prog_CC="$CC" # Let the user override the test.
  2436. else
  2437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2438. for as_dir in $PATH
  2439. do
  2440. IFS=$as_save_IFS
  2441. test -z "$as_dir" && as_dir=.
  2442. for ac_exec_ext in '' $ac_executable_extensions; do
  2443. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2444. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2446. break 2
  2447. fi
  2448. done
  2449. done
  2450. IFS=$as_save_IFS
  2451. fi
  2452. fi
  2453. CC=$ac_cv_prog_CC
  2454. if test -n "$CC"; then
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2456. $as_echo "$CC" >&6; }
  2457. else
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2459. $as_echo "no" >&6; }
  2460. fi
  2461. fi
  2462. if test -z "$ac_cv_prog_CC"; then
  2463. ac_ct_CC=$CC
  2464. # Extract the first word of "gcc", so it can be a program name with args.
  2465. set dummy gcc; ac_word=$2
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2467. $as_echo_n "checking for $ac_word... " >&6; }
  2468. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2469. $as_echo_n "(cached) " >&6
  2470. else
  2471. if test -n "$ac_ct_CC"; then
  2472. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2473. else
  2474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2475. for as_dir in $PATH
  2476. do
  2477. IFS=$as_save_IFS
  2478. test -z "$as_dir" && as_dir=.
  2479. for ac_exec_ext in '' $ac_executable_extensions; do
  2480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2481. ac_cv_prog_ac_ct_CC="gcc"
  2482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2483. break 2
  2484. fi
  2485. done
  2486. done
  2487. IFS=$as_save_IFS
  2488. fi
  2489. fi
  2490. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2491. if test -n "$ac_ct_CC"; then
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2493. $as_echo "$ac_ct_CC" >&6; }
  2494. else
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2496. $as_echo "no" >&6; }
  2497. fi
  2498. if test "x$ac_ct_CC" = x; then
  2499. CC=""
  2500. else
  2501. case $cross_compiling:$ac_tool_warned in
  2502. yes:)
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2504. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2505. ac_tool_warned=yes ;;
  2506. esac
  2507. CC=$ac_ct_CC
  2508. fi
  2509. else
  2510. CC="$ac_cv_prog_CC"
  2511. fi
  2512. if test -z "$CC"; then
  2513. if test -n "$ac_tool_prefix"; then
  2514. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2515. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2517. $as_echo_n "checking for $ac_word... " >&6; }
  2518. if test "${ac_cv_prog_CC+set}" = set; then :
  2519. $as_echo_n "(cached) " >&6
  2520. else
  2521. if test -n "$CC"; then
  2522. ac_cv_prog_CC="$CC" # Let the user override the test.
  2523. else
  2524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2525. for as_dir in $PATH
  2526. do
  2527. IFS=$as_save_IFS
  2528. test -z "$as_dir" && as_dir=.
  2529. for ac_exec_ext in '' $ac_executable_extensions; do
  2530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2531. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2533. break 2
  2534. fi
  2535. done
  2536. done
  2537. IFS=$as_save_IFS
  2538. fi
  2539. fi
  2540. CC=$ac_cv_prog_CC
  2541. if test -n "$CC"; then
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2543. $as_echo "$CC" >&6; }
  2544. else
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2546. $as_echo "no" >&6; }
  2547. fi
  2548. fi
  2549. fi
  2550. if test -z "$CC"; then
  2551. # Extract the first word of "cc", so it can be a program name with args.
  2552. set dummy cc; ac_word=$2
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2554. $as_echo_n "checking for $ac_word... " >&6; }
  2555. if test "${ac_cv_prog_CC+set}" = set; then :
  2556. $as_echo_n "(cached) " >&6
  2557. else
  2558. if test -n "$CC"; then
  2559. ac_cv_prog_CC="$CC" # Let the user override the test.
  2560. else
  2561. ac_prog_rejected=no
  2562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2563. for as_dir in $PATH
  2564. do
  2565. IFS=$as_save_IFS
  2566. test -z "$as_dir" && as_dir=.
  2567. for ac_exec_ext in '' $ac_executable_extensions; do
  2568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2569. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2570. ac_prog_rejected=yes
  2571. continue
  2572. fi
  2573. ac_cv_prog_CC="cc"
  2574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2575. break 2
  2576. fi
  2577. done
  2578. done
  2579. IFS=$as_save_IFS
  2580. if test $ac_prog_rejected = yes; then
  2581. # We found a bogon in the path, so make sure we never use it.
  2582. set dummy $ac_cv_prog_CC
  2583. shift
  2584. if test $# != 0; then
  2585. # We chose a different compiler from the bogus one.
  2586. # However, it has the same basename, so the bogon will be chosen
  2587. # first if we set CC to just the basename; use the full file name.
  2588. shift
  2589. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2590. fi
  2591. fi
  2592. fi
  2593. fi
  2594. CC=$ac_cv_prog_CC
  2595. if test -n "$CC"; then
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2597. $as_echo "$CC" >&6; }
  2598. else
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2600. $as_echo "no" >&6; }
  2601. fi
  2602. fi
  2603. if test -z "$CC"; then
  2604. if test -n "$ac_tool_prefix"; then
  2605. for ac_prog in cl.exe
  2606. do
  2607. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2608. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2610. $as_echo_n "checking for $ac_word... " >&6; }
  2611. if test "${ac_cv_prog_CC+set}" = set; then :
  2612. $as_echo_n "(cached) " >&6
  2613. else
  2614. if test -n "$CC"; then
  2615. ac_cv_prog_CC="$CC" # Let the user override the test.
  2616. else
  2617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2618. for as_dir in $PATH
  2619. do
  2620. IFS=$as_save_IFS
  2621. test -z "$as_dir" && as_dir=.
  2622. for ac_exec_ext in '' $ac_executable_extensions; do
  2623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2624. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2626. break 2
  2627. fi
  2628. done
  2629. done
  2630. IFS=$as_save_IFS
  2631. fi
  2632. fi
  2633. CC=$ac_cv_prog_CC
  2634. if test -n "$CC"; then
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2636. $as_echo "$CC" >&6; }
  2637. else
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2639. $as_echo "no" >&6; }
  2640. fi
  2641. test -n "$CC" && break
  2642. done
  2643. fi
  2644. if test -z "$CC"; then
  2645. ac_ct_CC=$CC
  2646. for ac_prog in cl.exe
  2647. do
  2648. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2649. set dummy $ac_prog; ac_word=$2
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2651. $as_echo_n "checking for $ac_word... " >&6; }
  2652. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2653. $as_echo_n "(cached) " >&6
  2654. else
  2655. if test -n "$ac_ct_CC"; then
  2656. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2657. else
  2658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2659. for as_dir in $PATH
  2660. do
  2661. IFS=$as_save_IFS
  2662. test -z "$as_dir" && as_dir=.
  2663. for ac_exec_ext in '' $ac_executable_extensions; do
  2664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2665. ac_cv_prog_ac_ct_CC="$ac_prog"
  2666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2667. break 2
  2668. fi
  2669. done
  2670. done
  2671. IFS=$as_save_IFS
  2672. fi
  2673. fi
  2674. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2675. if test -n "$ac_ct_CC"; then
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2677. $as_echo "$ac_ct_CC" >&6; }
  2678. else
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2680. $as_echo "no" >&6; }
  2681. fi
  2682. test -n "$ac_ct_CC" && break
  2683. done
  2684. if test "x$ac_ct_CC" = x; then
  2685. CC=""
  2686. else
  2687. case $cross_compiling:$ac_tool_warned in
  2688. yes:)
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2690. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2691. ac_tool_warned=yes ;;
  2692. esac
  2693. CC=$ac_ct_CC
  2694. fi
  2695. fi
  2696. fi
  2697. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2698. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2699. as_fn_error "no acceptable C compiler found in \$PATH
  2700. See \`config.log' for more details." "$LINENO" 5; }
  2701. # Provide some information about the compiler.
  2702. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2703. set X $ac_compile
  2704. ac_compiler=$2
  2705. for ac_option in --version -v -V -qversion; do
  2706. { { ac_try="$ac_compiler $ac_option >&5"
  2707. case "(($ac_try" in
  2708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2709. *) ac_try_echo=$ac_try;;
  2710. esac
  2711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2712. $as_echo "$ac_try_echo"; } >&5
  2713. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2714. ac_status=$?
  2715. if test -s conftest.err; then
  2716. sed '10a\
  2717. ... rest of stderr output deleted ...
  2718. 10q' conftest.err >conftest.er1
  2719. cat conftest.er1 >&5
  2720. rm -f conftest.er1 conftest.err
  2721. fi
  2722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2723. test $ac_status = 0; }
  2724. done
  2725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2726. /* end confdefs.h. */
  2727. int
  2728. main ()
  2729. {
  2730. ;
  2731. return 0;
  2732. }
  2733. _ACEOF
  2734. ac_clean_files_save=$ac_clean_files
  2735. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2736. # Try to create an executable without -o first, disregard a.out.
  2737. # It will help us diagnose broken compilers, and finding out an intuition
  2738. # of exeext.
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2740. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2741. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2742. # The possible output files:
  2743. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2744. ac_rmfiles=
  2745. for ac_file in $ac_files
  2746. do
  2747. case $ac_file in
  2748. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2749. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2750. esac
  2751. done
  2752. rm -f $ac_rmfiles
  2753. if { { ac_try="$ac_link_default"
  2754. case "(($ac_try" in
  2755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2756. *) ac_try_echo=$ac_try;;
  2757. esac
  2758. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2759. $as_echo "$ac_try_echo"; } >&5
  2760. (eval "$ac_link_default") 2>&5
  2761. ac_status=$?
  2762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2763. test $ac_status = 0; }; then :
  2764. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2765. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2766. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2767. # so that the user can short-circuit this test for compilers unknown to
  2768. # Autoconf.
  2769. for ac_file in $ac_files ''
  2770. do
  2771. test -f "$ac_file" || continue
  2772. case $ac_file in
  2773. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2774. ;;
  2775. [ab].out )
  2776. # We found the default executable, but exeext='' is most
  2777. # certainly right.
  2778. break;;
  2779. *.* )
  2780. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2781. then :; else
  2782. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2783. fi
  2784. # We set ac_cv_exeext here because the later test for it is not
  2785. # safe: cross compilers may not add the suffix if given an `-o'
  2786. # argument, so we may need to know it at that point already.
  2787. # Even if this section looks crufty: it has the advantage of
  2788. # actually working.
  2789. break;;
  2790. * )
  2791. break;;
  2792. esac
  2793. done
  2794. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2795. else
  2796. ac_file=''
  2797. fi
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2799. $as_echo "$ac_file" >&6; }
  2800. if test -z "$ac_file"; then :
  2801. $as_echo "$as_me: failed program was:" >&5
  2802. sed 's/^/| /' conftest.$ac_ext >&5
  2803. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2804. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2805. { as_fn_set_status 77
  2806. as_fn_error "C compiler cannot create executables
  2807. See \`config.log' for more details." "$LINENO" 5; }; }
  2808. fi
  2809. ac_exeext=$ac_cv_exeext
  2810. # Check that the compiler produces executables we can run. If not, either
  2811. # the compiler is broken, or we cross compile.
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2813. $as_echo_n "checking whether the C compiler works... " >&6; }
  2814. # If not cross compiling, check that we can run a simple program.
  2815. if test "$cross_compiling" != yes; then
  2816. if { ac_try='./$ac_file'
  2817. { { case "(($ac_try" in
  2818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2819. *) ac_try_echo=$ac_try;;
  2820. esac
  2821. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2822. $as_echo "$ac_try_echo"; } >&5
  2823. (eval "$ac_try") 2>&5
  2824. ac_status=$?
  2825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2826. test $ac_status = 0; }; }; then
  2827. cross_compiling=no
  2828. else
  2829. if test "$cross_compiling" = maybe; then
  2830. cross_compiling=yes
  2831. else
  2832. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2833. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2834. as_fn_error "cannot run C compiled programs.
  2835. If you meant to cross compile, use \`--host'.
  2836. See \`config.log' for more details." "$LINENO" 5; }
  2837. fi
  2838. fi
  2839. fi
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2841. $as_echo "yes" >&6; }
  2842. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2843. ac_clean_files=$ac_clean_files_save
  2844. # Check that the compiler produces executables we can run. If not, either
  2845. # the compiler is broken, or we cross compile.
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2847. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2849. $as_echo "$cross_compiling" >&6; }
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2851. $as_echo_n "checking for suffix of executables... " >&6; }
  2852. if { { ac_try="$ac_link"
  2853. case "(($ac_try" in
  2854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2855. *) ac_try_echo=$ac_try;;
  2856. esac
  2857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2858. $as_echo "$ac_try_echo"; } >&5
  2859. (eval "$ac_link") 2>&5
  2860. ac_status=$?
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2862. test $ac_status = 0; }; then :
  2863. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2864. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2865. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2866. # `rm'.
  2867. for ac_file in conftest.exe conftest conftest.*; do
  2868. test -f "$ac_file" || continue
  2869. case $ac_file in
  2870. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2871. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2872. break;;
  2873. * ) break;;
  2874. esac
  2875. done
  2876. else
  2877. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2879. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2880. See \`config.log' for more details." "$LINENO" 5; }
  2881. fi
  2882. rm -f conftest$ac_cv_exeext
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2884. $as_echo "$ac_cv_exeext" >&6; }
  2885. rm -f conftest.$ac_ext
  2886. EXEEXT=$ac_cv_exeext
  2887. ac_exeext=$EXEEXT
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2889. $as_echo_n "checking for suffix of object files... " >&6; }
  2890. if test "${ac_cv_objext+set}" = set; then :
  2891. $as_echo_n "(cached) " >&6
  2892. else
  2893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2894. /* end confdefs.h. */
  2895. int
  2896. main ()
  2897. {
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. rm -f conftest.o conftest.obj
  2903. if { { ac_try="$ac_compile"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo"; } >&5
  2910. (eval "$ac_compile") 2>&5
  2911. ac_status=$?
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2913. test $ac_status = 0; }; then :
  2914. for ac_file in conftest.o conftest.obj conftest.*; do
  2915. test -f "$ac_file" || continue;
  2916. case $ac_file in
  2917. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2918. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2919. break;;
  2920. esac
  2921. done
  2922. else
  2923. $as_echo "$as_me: failed program was:" >&5
  2924. sed 's/^/| /' conftest.$ac_ext >&5
  2925. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2926. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2927. as_fn_error "cannot compute suffix of object files: cannot compile
  2928. See \`config.log' for more details." "$LINENO" 5; }
  2929. fi
  2930. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2931. fi
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2933. $as_echo "$ac_cv_objext" >&6; }
  2934. OBJEXT=$ac_cv_objext
  2935. ac_objext=$OBJEXT
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2937. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2938. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2939. $as_echo_n "(cached) " >&6
  2940. else
  2941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2942. /* end confdefs.h. */
  2943. int
  2944. main ()
  2945. {
  2946. #ifndef __GNUC__
  2947. choke me
  2948. #endif
  2949. ;
  2950. return 0;
  2951. }
  2952. _ACEOF
  2953. if ac_fn_c_try_compile "$LINENO"; then :
  2954. ac_compiler_gnu=yes
  2955. else
  2956. ac_compiler_gnu=no
  2957. fi
  2958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2959. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2960. fi
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2962. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2963. if test $ac_compiler_gnu = yes; then
  2964. GCC=yes
  2965. else
  2966. GCC=
  2967. fi
  2968. ac_test_CFLAGS=${CFLAGS+set}
  2969. ac_save_CFLAGS=$CFLAGS
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2971. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2972. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2973. $as_echo_n "(cached) " >&6
  2974. else
  2975. ac_save_c_werror_flag=$ac_c_werror_flag
  2976. ac_c_werror_flag=yes
  2977. ac_cv_prog_cc_g=no
  2978. CFLAGS="-g"
  2979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2980. /* end confdefs.h. */
  2981. int
  2982. main ()
  2983. {
  2984. ;
  2985. return 0;
  2986. }
  2987. _ACEOF
  2988. if ac_fn_c_try_compile "$LINENO"; then :
  2989. ac_cv_prog_cc_g=yes
  2990. else
  2991. CFLAGS=""
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. int
  2995. main ()
  2996. {
  2997. ;
  2998. return 0;
  2999. }
  3000. _ACEOF
  3001. if ac_fn_c_try_compile "$LINENO"; then :
  3002. else
  3003. ac_c_werror_flag=$ac_save_c_werror_flag
  3004. CFLAGS="-g"
  3005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3006. /* end confdefs.h. */
  3007. int
  3008. main ()
  3009. {
  3010. ;
  3011. return 0;
  3012. }
  3013. _ACEOF
  3014. if ac_fn_c_try_compile "$LINENO"; then :
  3015. ac_cv_prog_cc_g=yes
  3016. fi
  3017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3018. fi
  3019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3020. fi
  3021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3022. ac_c_werror_flag=$ac_save_c_werror_flag
  3023. fi
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3025. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3026. if test "$ac_test_CFLAGS" = set; then
  3027. CFLAGS=$ac_save_CFLAGS
  3028. elif test $ac_cv_prog_cc_g = yes; then
  3029. if test "$GCC" = yes; then
  3030. CFLAGS="-g -O2"
  3031. else
  3032. CFLAGS="-g"
  3033. fi
  3034. else
  3035. if test "$GCC" = yes; then
  3036. CFLAGS="-O2"
  3037. else
  3038. CFLAGS=
  3039. fi
  3040. fi
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3042. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3043. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3044. $as_echo_n "(cached) " >&6
  3045. else
  3046. ac_cv_prog_cc_c89=no
  3047. ac_save_CC=$CC
  3048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3049. /* end confdefs.h. */
  3050. #include <stdarg.h>
  3051. #include <stdio.h>
  3052. #include <sys/types.h>
  3053. #include <sys/stat.h>
  3054. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3055. struct buf { int x; };
  3056. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3057. static char *e (p, i)
  3058. char **p;
  3059. int i;
  3060. {
  3061. return p[i];
  3062. }
  3063. static char *f (char * (*g) (char **, int), char **p, ...)
  3064. {
  3065. char *s;
  3066. va_list v;
  3067. va_start (v,p);
  3068. s = g (p, va_arg (v,int));
  3069. va_end (v);
  3070. return s;
  3071. }
  3072. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3073. function prototypes and stuff, but not '\xHH' hex character constants.
  3074. These don't provoke an error unfortunately, instead are silently treated
  3075. as 'x'. The following induces an error, until -std is added to get
  3076. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3077. array size at least. It's necessary to write '\x00'==0 to get something
  3078. that's true only with -std. */
  3079. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3080. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3081. inside strings and character constants. */
  3082. #define FOO(x) 'x'
  3083. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3084. int test (int i, double x);
  3085. struct s1 {int (*f) (int a);};
  3086. struct s2 {int (*f) (double a);};
  3087. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3088. int argc;
  3089. char **argv;
  3090. int
  3091. main ()
  3092. {
  3093. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3094. ;
  3095. return 0;
  3096. }
  3097. _ACEOF
  3098. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3099. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3100. do
  3101. CC="$ac_save_CC $ac_arg"
  3102. if ac_fn_c_try_compile "$LINENO"; then :
  3103. ac_cv_prog_cc_c89=$ac_arg
  3104. fi
  3105. rm -f core conftest.err conftest.$ac_objext
  3106. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3107. done
  3108. rm -f conftest.$ac_ext
  3109. CC=$ac_save_CC
  3110. fi
  3111. # AC_CACHE_VAL
  3112. case "x$ac_cv_prog_cc_c89" in
  3113. x)
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3115. $as_echo "none needed" >&6; } ;;
  3116. xno)
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3118. $as_echo "unsupported" >&6; } ;;
  3119. *)
  3120. CC="$CC $ac_cv_prog_cc_c89"
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3122. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3123. esac
  3124. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3125. fi
  3126. ac_ext=c
  3127. ac_cpp='$CPP $CPPFLAGS'
  3128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3132. $as_echo_n "checking for library containing strerror... " >&6; }
  3133. if test "${ac_cv_search_strerror+set}" = set; then :
  3134. $as_echo_n "(cached) " >&6
  3135. else
  3136. ac_func_search_save_LIBS=$LIBS
  3137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3138. /* end confdefs.h. */
  3139. /* Override any GCC internal prototype to avoid an error.
  3140. Use char because int might match the return type of a GCC
  3141. builtin and then its argument prototype would still apply. */
  3142. #ifdef __cplusplus
  3143. extern "C"
  3144. #endif
  3145. char strerror ();
  3146. int
  3147. main ()
  3148. {
  3149. return strerror ();
  3150. ;
  3151. return 0;
  3152. }
  3153. _ACEOF
  3154. for ac_lib in '' cposix; do
  3155. if test -z "$ac_lib"; then
  3156. ac_res="none required"
  3157. else
  3158. ac_res=-l$ac_lib
  3159. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3160. fi
  3161. if ac_fn_c_try_link "$LINENO"; then :
  3162. ac_cv_search_strerror=$ac_res
  3163. fi
  3164. rm -f core conftest.err conftest.$ac_objext \
  3165. conftest$ac_exeext
  3166. if test "${ac_cv_search_strerror+set}" = set; then :
  3167. break
  3168. fi
  3169. done
  3170. if test "${ac_cv_search_strerror+set}" = set; then :
  3171. else
  3172. ac_cv_search_strerror=no
  3173. fi
  3174. rm conftest.$ac_ext
  3175. LIBS=$ac_func_search_save_LIBS
  3176. fi
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3178. $as_echo "$ac_cv_search_strerror" >&6; }
  3179. ac_res=$ac_cv_search_strerror
  3180. if test "$ac_res" != no; then :
  3181. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3182. fi
  3183. am__api_version='1.11'
  3184. # Find a good install program. We prefer a C program (faster),
  3185. # so one script is as good as another. But avoid the broken or
  3186. # incompatible versions:
  3187. # SysV /etc/install, /usr/sbin/install
  3188. # SunOS /usr/etc/install
  3189. # IRIX /sbin/install
  3190. # AIX /bin/install
  3191. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3192. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3193. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3194. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3195. # OS/2's system install, which has a completely different semantic
  3196. # ./install, which can be erroneously created by make from ./install.sh.
  3197. # Reject install programs that cannot install multiple files.
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3199. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3200. if test -z "$INSTALL"; then
  3201. if test "${ac_cv_path_install+set}" = set; then :
  3202. $as_echo_n "(cached) " >&6
  3203. else
  3204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3205. for as_dir in $PATH
  3206. do
  3207. IFS=$as_save_IFS
  3208. test -z "$as_dir" && as_dir=.
  3209. # Account for people who put trailing slashes in PATH elements.
  3210. case $as_dir/ in #((
  3211. ./ | .// | /[cC]/* | \
  3212. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3213. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3214. /usr/ucb/* ) ;;
  3215. *)
  3216. # OSF1 and SCO ODT 3.0 have their own names for install.
  3217. # Don't use installbsd from OSF since it installs stuff as root
  3218. # by default.
  3219. for ac_prog in ginstall scoinst install; do
  3220. for ac_exec_ext in '' $ac_executable_extensions; do
  3221. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3222. if test $ac_prog = install &&
  3223. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3224. # AIX install. It has an incompatible calling convention.
  3225. :
  3226. elif test $ac_prog = install &&
  3227. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3228. # program-specific install script used by HP pwplus--don't use.
  3229. :
  3230. else
  3231. rm -rf conftest.one conftest.two conftest.dir
  3232. echo one > conftest.one
  3233. echo two > conftest.two
  3234. mkdir conftest.dir
  3235. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3236. test -s conftest.one && test -s conftest.two &&
  3237. test -s conftest.dir/conftest.one &&
  3238. test -s conftest.dir/conftest.two
  3239. then
  3240. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3241. break 3
  3242. fi
  3243. fi
  3244. fi
  3245. done
  3246. done
  3247. ;;
  3248. esac
  3249. done
  3250. IFS=$as_save_IFS
  3251. rm -rf conftest.one conftest.two conftest.dir
  3252. fi
  3253. if test "${ac_cv_path_install+set}" = set; then
  3254. INSTALL=$ac_cv_path_install
  3255. else
  3256. # As a last resort, use the slow shell script. Don't cache a
  3257. # value for INSTALL within a source directory, because that will
  3258. # break other packages using the cache if that directory is
  3259. # removed, or if the value is a relative name.
  3260. INSTALL=$ac_install_sh
  3261. fi
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3264. $as_echo "$INSTALL" >&6; }
  3265. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3266. # It thinks the first close brace ends the variable substitution.
  3267. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3268. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3269. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3271. $as_echo_n "checking whether build environment is sane... " >&6; }
  3272. # Just in case
  3273. sleep 1
  3274. echo timestamp > conftest.file
  3275. # Reject unsafe characters in $srcdir or the absolute working directory
  3276. # name. Accept space and tab only in the latter.
  3277. am_lf='
  3278. '
  3279. case `pwd` in
  3280. *[\\\"\#\$\&\'\`$am_lf]*)
  3281. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3282. esac
  3283. case $srcdir in
  3284. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3285. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3286. esac
  3287. # Do `set' in a subshell so we don't clobber the current shell's
  3288. # arguments. Must try -L first in case configure is actually a
  3289. # symlink; some systems play weird games with the mod time of symlinks
  3290. # (eg FreeBSD returns the mod time of the symlink's containing
  3291. # directory).
  3292. if (
  3293. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3294. if test "$*" = "X"; then
  3295. # -L didn't work.
  3296. set X `ls -t "$srcdir/configure" conftest.file`
  3297. fi
  3298. rm -f conftest.file
  3299. if test "$*" != "X $srcdir/configure conftest.file" \
  3300. && test "$*" != "X conftest.file $srcdir/configure"; then
  3301. # If neither matched, then we have a broken ls. This can happen
  3302. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3303. # broken ls alias from the environment. This has actually
  3304. # happened. Such a system could not be considered "sane".
  3305. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3306. alias in your environment" "$LINENO" 5
  3307. fi
  3308. test "$2" = conftest.file
  3309. )
  3310. then
  3311. # Ok.
  3312. :
  3313. else
  3314. as_fn_error "newly created file is older than distributed files!
  3315. Check your system clock" "$LINENO" 5
  3316. fi
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3318. $as_echo "yes" >&6; }
  3319. test "$program_prefix" != NONE &&
  3320. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3321. # Use a double $ so make ignores it.
  3322. test "$program_suffix" != NONE &&
  3323. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3324. # Double any \ or $.
  3325. # By default was `s,x,x', remove it if useless.
  3326. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3327. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3328. # expand $ac_aux_dir to an absolute path
  3329. am_aux_dir=`cd $ac_aux_dir && pwd`
  3330. if test x"${MISSING+set}" != xset; then
  3331. case $am_aux_dir in
  3332. *\ * | *\ *)
  3333. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3334. *)
  3335. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3336. esac
  3337. fi
  3338. # Use eval to expand $SHELL
  3339. if eval "$MISSING --run true"; then
  3340. am_missing_run="$MISSING --run "
  3341. else
  3342. am_missing_run=
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3344. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3345. fi
  3346. if test x"${install_sh}" != xset; then
  3347. case $am_aux_dir in
  3348. *\ * | *\ *)
  3349. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3350. *)
  3351. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3352. esac
  3353. fi
  3354. # Installed binaries are usually stripped using `strip' when the user
  3355. # run `make install-strip'. However `strip' might not be the right
  3356. # tool to use in cross-compilation environments, therefore Automake
  3357. # will honor the `STRIP' environment variable to overrule this program.
  3358. if test "$cross_compiling" != no; then
  3359. if test -n "$ac_tool_prefix"; then
  3360. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3361. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3363. $as_echo_n "checking for $ac_word... " >&6; }
  3364. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3365. $as_echo_n "(cached) " >&6
  3366. else
  3367. if test -n "$STRIP"; then
  3368. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3369. else
  3370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3371. for as_dir in $PATH
  3372. do
  3373. IFS=$as_save_IFS
  3374. test -z "$as_dir" && as_dir=.
  3375. for ac_exec_ext in '' $ac_executable_extensions; do
  3376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3377. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3379. break 2
  3380. fi
  3381. done
  3382. done
  3383. IFS=$as_save_IFS
  3384. fi
  3385. fi
  3386. STRIP=$ac_cv_prog_STRIP
  3387. if test -n "$STRIP"; then
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3389. $as_echo "$STRIP" >&6; }
  3390. else
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3392. $as_echo "no" >&6; }
  3393. fi
  3394. fi
  3395. if test -z "$ac_cv_prog_STRIP"; then
  3396. ac_ct_STRIP=$STRIP
  3397. # Extract the first word of "strip", so it can be a program name with args.
  3398. set dummy strip; ac_word=$2
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3400. $as_echo_n "checking for $ac_word... " >&6; }
  3401. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3402. $as_echo_n "(cached) " >&6
  3403. else
  3404. if test -n "$ac_ct_STRIP"; then
  3405. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3406. else
  3407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3408. for as_dir in $PATH
  3409. do
  3410. IFS=$as_save_IFS
  3411. test -z "$as_dir" && as_dir=.
  3412. for ac_exec_ext in '' $ac_executable_extensions; do
  3413. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3414. ac_cv_prog_ac_ct_STRIP="strip"
  3415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3416. break 2
  3417. fi
  3418. done
  3419. done
  3420. IFS=$as_save_IFS
  3421. fi
  3422. fi
  3423. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3424. if test -n "$ac_ct_STRIP"; then
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3426. $as_echo "$ac_ct_STRIP" >&6; }
  3427. else
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3429. $as_echo "no" >&6; }
  3430. fi
  3431. if test "x$ac_ct_STRIP" = x; then
  3432. STRIP=":"
  3433. else
  3434. case $cross_compiling:$ac_tool_warned in
  3435. yes:)
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3438. ac_tool_warned=yes ;;
  3439. esac
  3440. STRIP=$ac_ct_STRIP
  3441. fi
  3442. else
  3443. STRIP="$ac_cv_prog_STRIP"
  3444. fi
  3445. fi
  3446. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3448. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3449. if test -z "$MKDIR_P"; then
  3450. if test "${ac_cv_path_mkdir+set}" = set; then :
  3451. $as_echo_n "(cached) " >&6
  3452. else
  3453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3454. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3455. do
  3456. IFS=$as_save_IFS
  3457. test -z "$as_dir" && as_dir=.
  3458. for ac_prog in mkdir gmkdir; do
  3459. for ac_exec_ext in '' $ac_executable_extensions; do
  3460. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3461. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3462. 'mkdir (GNU coreutils) '* | \
  3463. 'mkdir (coreutils) '* | \
  3464. 'mkdir (fileutils) '4.1*)
  3465. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3466. break 3;;
  3467. esac
  3468. done
  3469. done
  3470. done
  3471. IFS=$as_save_IFS
  3472. fi
  3473. if test "${ac_cv_path_mkdir+set}" = set; then
  3474. MKDIR_P="$ac_cv_path_mkdir -p"
  3475. else
  3476. # As a last resort, use the slow shell script. Don't cache a
  3477. # value for MKDIR_P within a source directory, because that will
  3478. # break other packages using the cache if that directory is
  3479. # removed, or if the value is a relative name.
  3480. test -d ./--version && rmdir ./--version
  3481. MKDIR_P="$ac_install_sh -d"
  3482. fi
  3483. fi
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3485. $as_echo "$MKDIR_P" >&6; }
  3486. mkdir_p="$MKDIR_P"
  3487. case $mkdir_p in
  3488. [\\/$]* | ?:[\\/]*) ;;
  3489. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3490. esac
  3491. for ac_prog in gawk mawk nawk awk
  3492. do
  3493. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3494. set dummy $ac_prog; ac_word=$2
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3496. $as_echo_n "checking for $ac_word... " >&6; }
  3497. if test "${ac_cv_prog_AWK+set}" = set; then :
  3498. $as_echo_n "(cached) " >&6
  3499. else
  3500. if test -n "$AWK"; then
  3501. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3502. else
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH
  3505. do
  3506. IFS=$as_save_IFS
  3507. test -z "$as_dir" && as_dir=.
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3510. ac_cv_prog_AWK="$ac_prog"
  3511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3512. break 2
  3513. fi
  3514. done
  3515. done
  3516. IFS=$as_save_IFS
  3517. fi
  3518. fi
  3519. AWK=$ac_cv_prog_AWK
  3520. if test -n "$AWK"; then
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3522. $as_echo "$AWK" >&6; }
  3523. else
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3525. $as_echo "no" >&6; }
  3526. fi
  3527. test -n "$AWK" && break
  3528. done
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3530. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3531. set x ${MAKE-make}
  3532. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3533. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3534. $as_echo_n "(cached) " >&6
  3535. else
  3536. cat >conftest.make <<\_ACEOF
  3537. SHELL = /bin/sh
  3538. all:
  3539. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3540. _ACEOF
  3541. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3542. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3543. *@@@%%%=?*=@@@%%%*)
  3544. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3545. *)
  3546. eval ac_cv_prog_make_${ac_make}_set=no;;
  3547. esac
  3548. rm -f conftest.make
  3549. fi
  3550. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3552. $as_echo "yes" >&6; }
  3553. SET_MAKE=
  3554. else
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3556. $as_echo "no" >&6; }
  3557. SET_MAKE="MAKE=${MAKE-make}"
  3558. fi
  3559. rm -rf .tst 2>/dev/null
  3560. mkdir .tst 2>/dev/null
  3561. if test -d .tst; then
  3562. am__leading_dot=.
  3563. else
  3564. am__leading_dot=_
  3565. fi
  3566. rmdir .tst 2>/dev/null
  3567. DEPDIR="${am__leading_dot}deps"
  3568. ac_config_commands="$ac_config_commands depfiles"
  3569. am_make=${MAKE-make}
  3570. cat > confinc << 'END'
  3571. am__doit:
  3572. @echo this is the am__doit target
  3573. .PHONY: am__doit
  3574. END
  3575. # If we don't find an include directive, just comment out the code.
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3577. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3578. am__include="#"
  3579. am__quote=
  3580. _am_result=none
  3581. # First try GNU make style include.
  3582. echo "include confinc" > confmf
  3583. # Ignore all kinds of additional output from `make'.
  3584. case `$am_make -s -f confmf 2> /dev/null` in #(
  3585. *the\ am__doit\ target*)
  3586. am__include=include
  3587. am__quote=
  3588. _am_result=GNU
  3589. ;;
  3590. esac
  3591. # Now try BSD make style include.
  3592. if test "$am__include" = "#"; then
  3593. echo '.include "confinc"' > confmf
  3594. case `$am_make -s -f confmf 2> /dev/null` in #(
  3595. *the\ am__doit\ target*)
  3596. am__include=.include
  3597. am__quote="\""
  3598. _am_result=BSD
  3599. ;;
  3600. esac
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3603. $as_echo "$_am_result" >&6; }
  3604. rm -f confinc confmf
  3605. # Check whether --enable-dependency-tracking was given.
  3606. if test "${enable_dependency_tracking+set}" = set; then :
  3607. enableval=$enable_dependency_tracking;
  3608. fi
  3609. if test "x$enable_dependency_tracking" != xno; then
  3610. am_depcomp="$ac_aux_dir/depcomp"
  3611. AMDEPBACKSLASH='\'
  3612. am__nodep='_no'
  3613. fi
  3614. if test "x$enable_dependency_tracking" != xno; then
  3615. AMDEP_TRUE=
  3616. AMDEP_FALSE='#'
  3617. else
  3618. AMDEP_TRUE='#'
  3619. AMDEP_FALSE=
  3620. fi
  3621. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3622. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3623. # is not polluted with repeated "-I."
  3624. am__isrc=' -I$(srcdir)'
  3625. # test to see if srcdir already configured
  3626. if test -f $srcdir/config.status; then
  3627. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3628. fi
  3629. fi
  3630. # test whether we have cygpath
  3631. if test -z "$CYGPATH_W"; then
  3632. if (cygpath --version) >/dev/null 2>/dev/null; then
  3633. CYGPATH_W='cygpath -w'
  3634. else
  3635. CYGPATH_W=echo
  3636. fi
  3637. fi
  3638. # Define the identity of the package.
  3639. PACKAGE='binutils'
  3640. VERSION='2.29.1'
  3641. cat >>confdefs.h <<_ACEOF
  3642. #define PACKAGE "$PACKAGE"
  3643. _ACEOF
  3644. cat >>confdefs.h <<_ACEOF
  3645. #define VERSION "$VERSION"
  3646. _ACEOF
  3647. # Some tools Automake needs.
  3648. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3649. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3650. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3651. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3652. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3653. # We need awk for the "check" target. The system "awk" is bad on
  3654. # some platforms.
  3655. # Always define AMTAR for backward compatibility. Yes, it's still used
  3656. # in the wild :-( We should find a proper way to deprecate it ...
  3657. AMTAR='$${TAR-tar}'
  3658. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3659. depcc="$CC" am_compiler_list=
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3661. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3662. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3666. # We make a subdir and do the tests there. Otherwise we can end up
  3667. # making bogus files that we don't know about and never remove. For
  3668. # instance it was reported that on HP-UX the gcc test will end up
  3669. # making a dummy file named `D' -- because `-MD' means `put the output
  3670. # in D'.
  3671. rm -rf conftest.dir
  3672. mkdir conftest.dir
  3673. # Copy depcomp to subdir because otherwise we won't find it if we're
  3674. # using a relative directory.
  3675. cp "$am_depcomp" conftest.dir
  3676. cd conftest.dir
  3677. # We will build objects and dependencies in a subdirectory because
  3678. # it helps to detect inapplicable dependency modes. For instance
  3679. # both Tru64's cc and ICC support -MD to output dependencies as a
  3680. # side effect of compilation, but ICC will put the dependencies in
  3681. # the current directory while Tru64 will put them in the object
  3682. # directory.
  3683. mkdir sub
  3684. am_cv_CC_dependencies_compiler_type=none
  3685. if test "$am_compiler_list" = ""; then
  3686. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3687. fi
  3688. am__universal=false
  3689. case " $depcc " in #(
  3690. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3691. esac
  3692. for depmode in $am_compiler_list; do
  3693. # Setup a source with many dependencies, because some compilers
  3694. # like to wrap large dependency lists on column 80 (with \), and
  3695. # we should not choose a depcomp mode which is confused by this.
  3696. #
  3697. # We need to recreate these files for each test, as the compiler may
  3698. # overwrite some of them when testing with obscure command lines.
  3699. # This happens at least with the AIX C compiler.
  3700. : > sub/conftest.c
  3701. for i in 1 2 3 4 5 6; do
  3702. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3703. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3704. # Solaris 8's {/usr,}/bin/sh.
  3705. touch sub/conftst$i.h
  3706. done
  3707. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3708. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3709. # mode. It turns out that the SunPro C++ compiler does not properly
  3710. # handle `-M -o', and we need to detect this. Also, some Intel
  3711. # versions had trouble with output in subdirs
  3712. am__obj=sub/conftest.${OBJEXT-o}
  3713. am__minus_obj="-o $am__obj"
  3714. case $depmode in
  3715. gcc)
  3716. # This depmode causes a compiler race in universal mode.
  3717. test "$am__universal" = false || continue
  3718. ;;
  3719. nosideeffect)
  3720. # after this tag, mechanisms are not by side-effect, so they'll
  3721. # only be used when explicitly requested
  3722. if test "x$enable_dependency_tracking" = xyes; then
  3723. continue
  3724. else
  3725. break
  3726. fi
  3727. ;;
  3728. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3729. # This compiler won't grok `-c -o', but also, the minuso test has
  3730. # not run yet. These depmodes are late enough in the game, and
  3731. # so weak that their functioning should not be impacted.
  3732. am__obj=conftest.${OBJEXT-o}
  3733. am__minus_obj=
  3734. ;;
  3735. none) break ;;
  3736. esac
  3737. if depmode=$depmode \
  3738. source=sub/conftest.c object=$am__obj \
  3739. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3740. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3741. >/dev/null 2>conftest.err &&
  3742. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3743. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3744. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3745. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3746. # icc doesn't choke on unknown options, it will just issue warnings
  3747. # or remarks (even with -Werror). So we grep stderr for any message
  3748. # that says an option was ignored or not supported.
  3749. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3750. # icc: Command line warning: ignoring option '-M'; no argument required
  3751. # The diagnosis changed in icc 8.0:
  3752. # icc: Command line remark: option '-MP' not supported
  3753. if (grep 'ignoring option' conftest.err ||
  3754. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3755. am_cv_CC_dependencies_compiler_type=$depmode
  3756. break
  3757. fi
  3758. fi
  3759. done
  3760. cd ..
  3761. rm -rf conftest.dir
  3762. else
  3763. am_cv_CC_dependencies_compiler_type=none
  3764. fi
  3765. fi
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3767. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3768. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3769. if
  3770. test "x$enable_dependency_tracking" != xno \
  3771. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3772. am__fastdepCC_TRUE=
  3773. am__fastdepCC_FALSE='#'
  3774. else
  3775. am__fastdepCC_TRUE='#'
  3776. am__fastdepCC_FALSE=
  3777. fi
  3778. ac_ext=c
  3779. ac_cpp='$CPP $CPPFLAGS'
  3780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3783. if test -n "$ac_tool_prefix"; then
  3784. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3785. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3787. $as_echo_n "checking for $ac_word... " >&6; }
  3788. if test "${ac_cv_prog_CC+set}" = set; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. if test -n "$CC"; then
  3792. ac_cv_prog_CC="$CC" # Let the user override the test.
  3793. else
  3794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3795. for as_dir in $PATH
  3796. do
  3797. IFS=$as_save_IFS
  3798. test -z "$as_dir" && as_dir=.
  3799. for ac_exec_ext in '' $ac_executable_extensions; do
  3800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3801. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3803. break 2
  3804. fi
  3805. done
  3806. done
  3807. IFS=$as_save_IFS
  3808. fi
  3809. fi
  3810. CC=$ac_cv_prog_CC
  3811. if test -n "$CC"; then
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3813. $as_echo "$CC" >&6; }
  3814. else
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3816. $as_echo "no" >&6; }
  3817. fi
  3818. fi
  3819. if test -z "$ac_cv_prog_CC"; then
  3820. ac_ct_CC=$CC
  3821. # Extract the first word of "gcc", so it can be a program name with args.
  3822. set dummy gcc; ac_word=$2
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3824. $as_echo_n "checking for $ac_word... " >&6; }
  3825. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3826. $as_echo_n "(cached) " >&6
  3827. else
  3828. if test -n "$ac_ct_CC"; then
  3829. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3830. else
  3831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3832. for as_dir in $PATH
  3833. do
  3834. IFS=$as_save_IFS
  3835. test -z "$as_dir" && as_dir=.
  3836. for ac_exec_ext in '' $ac_executable_extensions; do
  3837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3838. ac_cv_prog_ac_ct_CC="gcc"
  3839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3840. break 2
  3841. fi
  3842. done
  3843. done
  3844. IFS=$as_save_IFS
  3845. fi
  3846. fi
  3847. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3848. if test -n "$ac_ct_CC"; then
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3850. $as_echo "$ac_ct_CC" >&6; }
  3851. else
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3853. $as_echo "no" >&6; }
  3854. fi
  3855. if test "x$ac_ct_CC" = x; then
  3856. CC=""
  3857. else
  3858. case $cross_compiling:$ac_tool_warned in
  3859. yes:)
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3862. ac_tool_warned=yes ;;
  3863. esac
  3864. CC=$ac_ct_CC
  3865. fi
  3866. else
  3867. CC="$ac_cv_prog_CC"
  3868. fi
  3869. if test -z "$CC"; then
  3870. if test -n "$ac_tool_prefix"; then
  3871. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3872. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3874. $as_echo_n "checking for $ac_word... " >&6; }
  3875. if test "${ac_cv_prog_CC+set}" = set; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. if test -n "$CC"; then
  3879. ac_cv_prog_CC="$CC" # Let the user override the test.
  3880. else
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. for ac_exec_ext in '' $ac_executable_extensions; do
  3887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3888. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3890. break 2
  3891. fi
  3892. done
  3893. done
  3894. IFS=$as_save_IFS
  3895. fi
  3896. fi
  3897. CC=$ac_cv_prog_CC
  3898. if test -n "$CC"; then
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3900. $as_echo "$CC" >&6; }
  3901. else
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3903. $as_echo "no" >&6; }
  3904. fi
  3905. fi
  3906. fi
  3907. if test -z "$CC"; then
  3908. # Extract the first word of "cc", so it can be a program name with args.
  3909. set dummy cc; ac_word=$2
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3911. $as_echo_n "checking for $ac_word... " >&6; }
  3912. if test "${ac_cv_prog_CC+set}" = set; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if test -n "$CC"; then
  3916. ac_cv_prog_CC="$CC" # Let the user override the test.
  3917. else
  3918. ac_prog_rejected=no
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3926. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3927. ac_prog_rejected=yes
  3928. continue
  3929. fi
  3930. ac_cv_prog_CC="cc"
  3931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3932. break 2
  3933. fi
  3934. done
  3935. done
  3936. IFS=$as_save_IFS
  3937. if test $ac_prog_rejected = yes; then
  3938. # We found a bogon in the path, so make sure we never use it.
  3939. set dummy $ac_cv_prog_CC
  3940. shift
  3941. if test $# != 0; then
  3942. # We chose a different compiler from the bogus one.
  3943. # However, it has the same basename, so the bogon will be chosen
  3944. # first if we set CC to just the basename; use the full file name.
  3945. shift
  3946. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3947. fi
  3948. fi
  3949. fi
  3950. fi
  3951. CC=$ac_cv_prog_CC
  3952. if test -n "$CC"; then
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3954. $as_echo "$CC" >&6; }
  3955. else
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3957. $as_echo "no" >&6; }
  3958. fi
  3959. fi
  3960. if test -z "$CC"; then
  3961. if test -n "$ac_tool_prefix"; then
  3962. for ac_prog in cl.exe
  3963. do
  3964. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3965. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3967. $as_echo_n "checking for $ac_word... " >&6; }
  3968. if test "${ac_cv_prog_CC+set}" = set; then :
  3969. $as_echo_n "(cached) " >&6
  3970. else
  3971. if test -n "$CC"; then
  3972. ac_cv_prog_CC="$CC" # Let the user override the test.
  3973. else
  3974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3975. for as_dir in $PATH
  3976. do
  3977. IFS=$as_save_IFS
  3978. test -z "$as_dir" && as_dir=.
  3979. for ac_exec_ext in '' $ac_executable_extensions; do
  3980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3981. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3983. break 2
  3984. fi
  3985. done
  3986. done
  3987. IFS=$as_save_IFS
  3988. fi
  3989. fi
  3990. CC=$ac_cv_prog_CC
  3991. if test -n "$CC"; then
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3993. $as_echo "$CC" >&6; }
  3994. else
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3996. $as_echo "no" >&6; }
  3997. fi
  3998. test -n "$CC" && break
  3999. done
  4000. fi
  4001. if test -z "$CC"; then
  4002. ac_ct_CC=$CC
  4003. for ac_prog in cl.exe
  4004. do
  4005. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4006. set dummy $ac_prog; ac_word=$2
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4008. $as_echo_n "checking for $ac_word... " >&6; }
  4009. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4010. $as_echo_n "(cached) " >&6
  4011. else
  4012. if test -n "$ac_ct_CC"; then
  4013. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4014. else
  4015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4016. for as_dir in $PATH
  4017. do
  4018. IFS=$as_save_IFS
  4019. test -z "$as_dir" && as_dir=.
  4020. for ac_exec_ext in '' $ac_executable_extensions; do
  4021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4022. ac_cv_prog_ac_ct_CC="$ac_prog"
  4023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4024. break 2
  4025. fi
  4026. done
  4027. done
  4028. IFS=$as_save_IFS
  4029. fi
  4030. fi
  4031. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4032. if test -n "$ac_ct_CC"; then
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4034. $as_echo "$ac_ct_CC" >&6; }
  4035. else
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4037. $as_echo "no" >&6; }
  4038. fi
  4039. test -n "$ac_ct_CC" && break
  4040. done
  4041. if test "x$ac_ct_CC" = x; then
  4042. CC=""
  4043. else
  4044. case $cross_compiling:$ac_tool_warned in
  4045. yes:)
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4047. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4048. ac_tool_warned=yes ;;
  4049. esac
  4050. CC=$ac_ct_CC
  4051. fi
  4052. fi
  4053. fi
  4054. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4055. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4056. as_fn_error "no acceptable C compiler found in \$PATH
  4057. See \`config.log' for more details." "$LINENO" 5; }
  4058. # Provide some information about the compiler.
  4059. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4060. set X $ac_compile
  4061. ac_compiler=$2
  4062. for ac_option in --version -v -V -qversion; do
  4063. { { ac_try="$ac_compiler $ac_option >&5"
  4064. case "(($ac_try" in
  4065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4066. *) ac_try_echo=$ac_try;;
  4067. esac
  4068. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4069. $as_echo "$ac_try_echo"; } >&5
  4070. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4071. ac_status=$?
  4072. if test -s conftest.err; then
  4073. sed '10a\
  4074. ... rest of stderr output deleted ...
  4075. 10q' conftest.err >conftest.er1
  4076. cat conftest.er1 >&5
  4077. rm -f conftest.er1 conftest.err
  4078. fi
  4079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4080. test $ac_status = 0; }
  4081. done
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4083. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4084. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4085. $as_echo_n "(cached) " >&6
  4086. else
  4087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4088. /* end confdefs.h. */
  4089. int
  4090. main ()
  4091. {
  4092. #ifndef __GNUC__
  4093. choke me
  4094. #endif
  4095. ;
  4096. return 0;
  4097. }
  4098. _ACEOF
  4099. if ac_fn_c_try_compile "$LINENO"; then :
  4100. ac_compiler_gnu=yes
  4101. else
  4102. ac_compiler_gnu=no
  4103. fi
  4104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4105. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4106. fi
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4108. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4109. if test $ac_compiler_gnu = yes; then
  4110. GCC=yes
  4111. else
  4112. GCC=
  4113. fi
  4114. ac_test_CFLAGS=${CFLAGS+set}
  4115. ac_save_CFLAGS=$CFLAGS
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4117. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4118. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. ac_save_c_werror_flag=$ac_c_werror_flag
  4122. ac_c_werror_flag=yes
  4123. ac_cv_prog_cc_g=no
  4124. CFLAGS="-g"
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. int
  4128. main ()
  4129. {
  4130. ;
  4131. return 0;
  4132. }
  4133. _ACEOF
  4134. if ac_fn_c_try_compile "$LINENO"; then :
  4135. ac_cv_prog_cc_g=yes
  4136. else
  4137. CFLAGS=""
  4138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4139. /* end confdefs.h. */
  4140. int
  4141. main ()
  4142. {
  4143. ;
  4144. return 0;
  4145. }
  4146. _ACEOF
  4147. if ac_fn_c_try_compile "$LINENO"; then :
  4148. else
  4149. ac_c_werror_flag=$ac_save_c_werror_flag
  4150. CFLAGS="-g"
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. int
  4154. main ()
  4155. {
  4156. ;
  4157. return 0;
  4158. }
  4159. _ACEOF
  4160. if ac_fn_c_try_compile "$LINENO"; then :
  4161. ac_cv_prog_cc_g=yes
  4162. fi
  4163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4164. fi
  4165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4166. fi
  4167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4168. ac_c_werror_flag=$ac_save_c_werror_flag
  4169. fi
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4171. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4172. if test "$ac_test_CFLAGS" = set; then
  4173. CFLAGS=$ac_save_CFLAGS
  4174. elif test $ac_cv_prog_cc_g = yes; then
  4175. if test "$GCC" = yes; then
  4176. CFLAGS="-g -O2"
  4177. else
  4178. CFLAGS="-g"
  4179. fi
  4180. else
  4181. if test "$GCC" = yes; then
  4182. CFLAGS="-O2"
  4183. else
  4184. CFLAGS=
  4185. fi
  4186. fi
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4188. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4189. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. ac_cv_prog_cc_c89=no
  4193. ac_save_CC=$CC
  4194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4195. /* end confdefs.h. */
  4196. #include <stdarg.h>
  4197. #include <stdio.h>
  4198. #include <sys/types.h>
  4199. #include <sys/stat.h>
  4200. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4201. struct buf { int x; };
  4202. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4203. static char *e (p, i)
  4204. char **p;
  4205. int i;
  4206. {
  4207. return p[i];
  4208. }
  4209. static char *f (char * (*g) (char **, int), char **p, ...)
  4210. {
  4211. char *s;
  4212. va_list v;
  4213. va_start (v,p);
  4214. s = g (p, va_arg (v,int));
  4215. va_end (v);
  4216. return s;
  4217. }
  4218. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4219. function prototypes and stuff, but not '\xHH' hex character constants.
  4220. These don't provoke an error unfortunately, instead are silently treated
  4221. as 'x'. The following induces an error, until -std is added to get
  4222. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4223. array size at least. It's necessary to write '\x00'==0 to get something
  4224. that's true only with -std. */
  4225. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4226. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4227. inside strings and character constants. */
  4228. #define FOO(x) 'x'
  4229. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4230. int test (int i, double x);
  4231. struct s1 {int (*f) (int a);};
  4232. struct s2 {int (*f) (double a);};
  4233. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4234. int argc;
  4235. char **argv;
  4236. int
  4237. main ()
  4238. {
  4239. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4240. ;
  4241. return 0;
  4242. }
  4243. _ACEOF
  4244. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4245. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4246. do
  4247. CC="$ac_save_CC $ac_arg"
  4248. if ac_fn_c_try_compile "$LINENO"; then :
  4249. ac_cv_prog_cc_c89=$ac_arg
  4250. fi
  4251. rm -f core conftest.err conftest.$ac_objext
  4252. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4253. done
  4254. rm -f conftest.$ac_ext
  4255. CC=$ac_save_CC
  4256. fi
  4257. # AC_CACHE_VAL
  4258. case "x$ac_cv_prog_cc_c89" in
  4259. x)
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4261. $as_echo "none needed" >&6; } ;;
  4262. xno)
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4264. $as_echo "unsupported" >&6; } ;;
  4265. *)
  4266. CC="$CC $ac_cv_prog_cc_c89"
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4268. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4269. esac
  4270. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4271. fi
  4272. ac_ext=c
  4273. ac_cpp='$CPP $CPPFLAGS'
  4274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4277. ac_ext=c
  4278. ac_cpp='$CPP $CPPFLAGS'
  4279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4283. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4284. # On Suns, sometimes $CPP names a directory.
  4285. if test -n "$CPP" && test -d "$CPP"; then
  4286. CPP=
  4287. fi
  4288. if test -z "$CPP"; then
  4289. if test "${ac_cv_prog_CPP+set}" = set; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. # Double quotes because CPP needs to be expanded
  4293. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4294. do
  4295. ac_preproc_ok=false
  4296. for ac_c_preproc_warn_flag in '' yes
  4297. do
  4298. # Use a header file that comes with gcc, so configuring glibc
  4299. # with a fresh cross-compiler works.
  4300. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4301. # <limits.h> exists even on freestanding compilers.
  4302. # On the NeXT, cc -E runs the code through the compiler's parser,
  4303. # not just through cpp. "Syntax error" is here to catch this case.
  4304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4305. /* end confdefs.h. */
  4306. #ifdef __STDC__
  4307. # include <limits.h>
  4308. #else
  4309. # include <assert.h>
  4310. #endif
  4311. Syntax error
  4312. _ACEOF
  4313. if ac_fn_c_try_cpp "$LINENO"; then :
  4314. else
  4315. # Broken: fails on valid input.
  4316. continue
  4317. fi
  4318. rm -f conftest.err conftest.$ac_ext
  4319. # OK, works on sane cases. Now check whether nonexistent headers
  4320. # can be detected and how.
  4321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4322. /* end confdefs.h. */
  4323. #include <ac_nonexistent.h>
  4324. _ACEOF
  4325. if ac_fn_c_try_cpp "$LINENO"; then :
  4326. # Broken: success on invalid input.
  4327. continue
  4328. else
  4329. # Passes both tests.
  4330. ac_preproc_ok=:
  4331. break
  4332. fi
  4333. rm -f conftest.err conftest.$ac_ext
  4334. done
  4335. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4336. rm -f conftest.err conftest.$ac_ext
  4337. if $ac_preproc_ok; then :
  4338. break
  4339. fi
  4340. done
  4341. ac_cv_prog_CPP=$CPP
  4342. fi
  4343. CPP=$ac_cv_prog_CPP
  4344. else
  4345. ac_cv_prog_CPP=$CPP
  4346. fi
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4348. $as_echo "$CPP" >&6; }
  4349. ac_preproc_ok=false
  4350. for ac_c_preproc_warn_flag in '' yes
  4351. do
  4352. # Use a header file that comes with gcc, so configuring glibc
  4353. # with a fresh cross-compiler works.
  4354. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4355. # <limits.h> exists even on freestanding compilers.
  4356. # On the NeXT, cc -E runs the code through the compiler's parser,
  4357. # not just through cpp. "Syntax error" is here to catch this case.
  4358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4359. /* end confdefs.h. */
  4360. #ifdef __STDC__
  4361. # include <limits.h>
  4362. #else
  4363. # include <assert.h>
  4364. #endif
  4365. Syntax error
  4366. _ACEOF
  4367. if ac_fn_c_try_cpp "$LINENO"; then :
  4368. else
  4369. # Broken: fails on valid input.
  4370. continue
  4371. fi
  4372. rm -f conftest.err conftest.$ac_ext
  4373. # OK, works on sane cases. Now check whether nonexistent headers
  4374. # can be detected and how.
  4375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4376. /* end confdefs.h. */
  4377. #include <ac_nonexistent.h>
  4378. _ACEOF
  4379. if ac_fn_c_try_cpp "$LINENO"; then :
  4380. # Broken: success on invalid input.
  4381. continue
  4382. else
  4383. # Passes both tests.
  4384. ac_preproc_ok=:
  4385. break
  4386. fi
  4387. rm -f conftest.err conftest.$ac_ext
  4388. done
  4389. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4390. rm -f conftest.err conftest.$ac_ext
  4391. if $ac_preproc_ok; then :
  4392. else
  4393. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4394. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4395. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4396. See \`config.log' for more details." "$LINENO" 5; }
  4397. fi
  4398. ac_ext=c
  4399. ac_cpp='$CPP $CPPFLAGS'
  4400. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4401. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4402. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4404. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4405. if test "${ac_cv_path_GREP+set}" = set; then :
  4406. $as_echo_n "(cached) " >&6
  4407. else
  4408. if test -z "$GREP"; then
  4409. ac_path_GREP_found=false
  4410. # Loop through the user's path and test for each of PROGNAME-LIST
  4411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4412. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4413. do
  4414. IFS=$as_save_IFS
  4415. test -z "$as_dir" && as_dir=.
  4416. for ac_prog in grep ggrep; do
  4417. for ac_exec_ext in '' $ac_executable_extensions; do
  4418. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4419. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4420. # Check for GNU ac_path_GREP and select it if it is found.
  4421. # Check for GNU $ac_path_GREP
  4422. case `"$ac_path_GREP" --version 2>&1` in
  4423. *GNU*)
  4424. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4425. *)
  4426. ac_count=0
  4427. $as_echo_n 0123456789 >"conftest.in"
  4428. while :
  4429. do
  4430. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4431. mv "conftest.tmp" "conftest.in"
  4432. cp "conftest.in" "conftest.nl"
  4433. $as_echo 'GREP' >> "conftest.nl"
  4434. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4435. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4436. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4437. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4438. # Best one so far, save it but keep looking for a better one
  4439. ac_cv_path_GREP="$ac_path_GREP"
  4440. ac_path_GREP_max=$ac_count
  4441. fi
  4442. # 10*(2^10) chars as input seems more than enough
  4443. test $ac_count -gt 10 && break
  4444. done
  4445. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4446. esac
  4447. $ac_path_GREP_found && break 3
  4448. done
  4449. done
  4450. done
  4451. IFS=$as_save_IFS
  4452. if test -z "$ac_cv_path_GREP"; then
  4453. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4454. fi
  4455. else
  4456. ac_cv_path_GREP=$GREP
  4457. fi
  4458. fi
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4460. $as_echo "$ac_cv_path_GREP" >&6; }
  4461. GREP="$ac_cv_path_GREP"
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4463. $as_echo_n "checking for egrep... " >&6; }
  4464. if test "${ac_cv_path_EGREP+set}" = set; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4468. then ac_cv_path_EGREP="$GREP -E"
  4469. else
  4470. if test -z "$EGREP"; then
  4471. ac_path_EGREP_found=false
  4472. # Loop through the user's path and test for each of PROGNAME-LIST
  4473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4474. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4475. do
  4476. IFS=$as_save_IFS
  4477. test -z "$as_dir" && as_dir=.
  4478. for ac_prog in egrep; do
  4479. for ac_exec_ext in '' $ac_executable_extensions; do
  4480. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4481. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4482. # Check for GNU ac_path_EGREP and select it if it is found.
  4483. # Check for GNU $ac_path_EGREP
  4484. case `"$ac_path_EGREP" --version 2>&1` in
  4485. *GNU*)
  4486. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4487. *)
  4488. ac_count=0
  4489. $as_echo_n 0123456789 >"conftest.in"
  4490. while :
  4491. do
  4492. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4493. mv "conftest.tmp" "conftest.in"
  4494. cp "conftest.in" "conftest.nl"
  4495. $as_echo 'EGREP' >> "conftest.nl"
  4496. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4497. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4498. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4499. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4500. # Best one so far, save it but keep looking for a better one
  4501. ac_cv_path_EGREP="$ac_path_EGREP"
  4502. ac_path_EGREP_max=$ac_count
  4503. fi
  4504. # 10*(2^10) chars as input seems more than enough
  4505. test $ac_count -gt 10 && break
  4506. done
  4507. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4508. esac
  4509. $ac_path_EGREP_found && break 3
  4510. done
  4511. done
  4512. done
  4513. IFS=$as_save_IFS
  4514. if test -z "$ac_cv_path_EGREP"; then
  4515. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4516. fi
  4517. else
  4518. ac_cv_path_EGREP=$EGREP
  4519. fi
  4520. fi
  4521. fi
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4523. $as_echo "$ac_cv_path_EGREP" >&6; }
  4524. EGREP="$ac_cv_path_EGREP"
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4526. $as_echo_n "checking for ANSI C header files... " >&6; }
  4527. if test "${ac_cv_header_stdc+set}" = set; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4531. /* end confdefs.h. */
  4532. #include <stdlib.h>
  4533. #include <stdarg.h>
  4534. #include <string.h>
  4535. #include <float.h>
  4536. int
  4537. main ()
  4538. {
  4539. ;
  4540. return 0;
  4541. }
  4542. _ACEOF
  4543. if ac_fn_c_try_compile "$LINENO"; then :
  4544. ac_cv_header_stdc=yes
  4545. else
  4546. ac_cv_header_stdc=no
  4547. fi
  4548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4549. if test $ac_cv_header_stdc = yes; then
  4550. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4552. /* end confdefs.h. */
  4553. #include <string.h>
  4554. _ACEOF
  4555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4556. $EGREP "memchr" >/dev/null 2>&1; then :
  4557. else
  4558. ac_cv_header_stdc=no
  4559. fi
  4560. rm -f conftest*
  4561. fi
  4562. if test $ac_cv_header_stdc = yes; then
  4563. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4565. /* end confdefs.h. */
  4566. #include <stdlib.h>
  4567. _ACEOF
  4568. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4569. $EGREP "free" >/dev/null 2>&1; then :
  4570. else
  4571. ac_cv_header_stdc=no
  4572. fi
  4573. rm -f conftest*
  4574. fi
  4575. if test $ac_cv_header_stdc = yes; then
  4576. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4577. if test "$cross_compiling" = yes; then :
  4578. :
  4579. else
  4580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4581. /* end confdefs.h. */
  4582. #include <ctype.h>
  4583. #include <stdlib.h>
  4584. #if ((' ' & 0x0FF) == 0x020)
  4585. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4586. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4587. #else
  4588. # define ISLOWER(c) \
  4589. (('a' <= (c) && (c) <= 'i') \
  4590. || ('j' <= (c) && (c) <= 'r') \
  4591. || ('s' <= (c) && (c) <= 'z'))
  4592. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4593. #endif
  4594. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4595. int
  4596. main ()
  4597. {
  4598. int i;
  4599. for (i = 0; i < 256; i++)
  4600. if (XOR (islower (i), ISLOWER (i))
  4601. || toupper (i) != TOUPPER (i))
  4602. return 2;
  4603. return 0;
  4604. }
  4605. _ACEOF
  4606. if ac_fn_c_try_run "$LINENO"; then :
  4607. else
  4608. ac_cv_header_stdc=no
  4609. fi
  4610. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4611. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4612. fi
  4613. fi
  4614. fi
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4616. $as_echo "$ac_cv_header_stdc" >&6; }
  4617. if test $ac_cv_header_stdc = yes; then
  4618. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4619. fi
  4620. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4621. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4622. inttypes.h stdint.h unistd.h
  4623. do :
  4624. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4625. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4626. "
  4627. eval as_val=\$$as_ac_Header
  4628. if test "x$as_val" = x""yes; then :
  4629. cat >>confdefs.h <<_ACEOF
  4630. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4631. _ACEOF
  4632. fi
  4633. done
  4634. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4635. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4636. MINIX=yes
  4637. else
  4638. MINIX=
  4639. fi
  4640. if test "$MINIX" = yes; then
  4641. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4642. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4643. $as_echo "#define _MINIX 1" >>confdefs.h
  4644. fi
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4646. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4647. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4648. $as_echo_n "(cached) " >&6
  4649. else
  4650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4651. /* end confdefs.h. */
  4652. # define __EXTENSIONS__ 1
  4653. $ac_includes_default
  4654. int
  4655. main ()
  4656. {
  4657. ;
  4658. return 0;
  4659. }
  4660. _ACEOF
  4661. if ac_fn_c_try_compile "$LINENO"; then :
  4662. ac_cv_safe_to_define___extensions__=yes
  4663. else
  4664. ac_cv_safe_to_define___extensions__=no
  4665. fi
  4666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4667. fi
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4669. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4670. test $ac_cv_safe_to_define___extensions__ = yes &&
  4671. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4672. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4673. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4674. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4675. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4676. case `pwd` in
  4677. *\ * | *\ *)
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4679. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4680. esac
  4681. macro_version='2.2.7a'
  4682. macro_revision='1.3134'
  4683. ltmain="$ac_aux_dir/ltmain.sh"
  4684. # Backslashify metacharacters that are still active within
  4685. # double-quoted strings.
  4686. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4687. # Same as above, but do not quote variable references.
  4688. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4689. # Sed substitution to delay expansion of an escaped shell variable in a
  4690. # double_quote_subst'ed string.
  4691. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4692. # Sed substitution to delay expansion of an escaped single quote.
  4693. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4694. # Sed substitution to avoid accidental globbing in evaled expressions
  4695. no_glob_subst='s/\*/\\\*/g'
  4696. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4697. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4698. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4700. $as_echo_n "checking how to print strings... " >&6; }
  4701. # Test print first, because it will be a builtin if present.
  4702. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4703. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4704. ECHO='print -r --'
  4705. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4706. ECHO='printf %s\n'
  4707. else
  4708. # Use this function as a fallback that always works.
  4709. func_fallback_echo ()
  4710. {
  4711. eval 'cat <<_LTECHO_EOF
  4712. $1
  4713. _LTECHO_EOF'
  4714. }
  4715. ECHO='func_fallback_echo'
  4716. fi
  4717. # func_echo_all arg...
  4718. # Invoke $ECHO with all args, space-separated.
  4719. func_echo_all ()
  4720. {
  4721. $ECHO ""
  4722. }
  4723. case "$ECHO" in
  4724. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4725. $as_echo "printf" >&6; } ;;
  4726. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4727. $as_echo "print -r" >&6; } ;;
  4728. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4729. $as_echo "cat" >&6; } ;;
  4730. esac
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4732. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4733. if test "${ac_cv_path_SED+set}" = set; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4737. for ac_i in 1 2 3 4 5 6 7; do
  4738. ac_script="$ac_script$as_nl$ac_script"
  4739. done
  4740. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4741. { ac_script=; unset ac_script;}
  4742. if test -z "$SED"; then
  4743. ac_path_SED_found=false
  4744. # Loop through the user's path and test for each of PROGNAME-LIST
  4745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4746. for as_dir in $PATH
  4747. do
  4748. IFS=$as_save_IFS
  4749. test -z "$as_dir" && as_dir=.
  4750. for ac_prog in sed gsed; do
  4751. for ac_exec_ext in '' $ac_executable_extensions; do
  4752. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4753. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4754. # Check for GNU ac_path_SED and select it if it is found.
  4755. # Check for GNU $ac_path_SED
  4756. case `"$ac_path_SED" --version 2>&1` in
  4757. *GNU*)
  4758. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4759. *)
  4760. ac_count=0
  4761. $as_echo_n 0123456789 >"conftest.in"
  4762. while :
  4763. do
  4764. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4765. mv "conftest.tmp" "conftest.in"
  4766. cp "conftest.in" "conftest.nl"
  4767. $as_echo '' >> "conftest.nl"
  4768. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4769. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4770. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4771. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4772. # Best one so far, save it but keep looking for a better one
  4773. ac_cv_path_SED="$ac_path_SED"
  4774. ac_path_SED_max=$ac_count
  4775. fi
  4776. # 10*(2^10) chars as input seems more than enough
  4777. test $ac_count -gt 10 && break
  4778. done
  4779. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4780. esac
  4781. $ac_path_SED_found && break 3
  4782. done
  4783. done
  4784. done
  4785. IFS=$as_save_IFS
  4786. if test -z "$ac_cv_path_SED"; then
  4787. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4788. fi
  4789. else
  4790. ac_cv_path_SED=$SED
  4791. fi
  4792. fi
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4794. $as_echo "$ac_cv_path_SED" >&6; }
  4795. SED="$ac_cv_path_SED"
  4796. rm -f conftest.sed
  4797. test -z "$SED" && SED=sed
  4798. Xsed="$SED -e 1s/^X//"
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4800. $as_echo_n "checking for fgrep... " >&6; }
  4801. if test "${ac_cv_path_FGREP+set}" = set; then :
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4805. then ac_cv_path_FGREP="$GREP -F"
  4806. else
  4807. if test -z "$FGREP"; then
  4808. ac_path_FGREP_found=false
  4809. # Loop through the user's path and test for each of PROGNAME-LIST
  4810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4811. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4812. do
  4813. IFS=$as_save_IFS
  4814. test -z "$as_dir" && as_dir=.
  4815. for ac_prog in fgrep; do
  4816. for ac_exec_ext in '' $ac_executable_extensions; do
  4817. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4818. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4819. # Check for GNU ac_path_FGREP and select it if it is found.
  4820. # Check for GNU $ac_path_FGREP
  4821. case `"$ac_path_FGREP" --version 2>&1` in
  4822. *GNU*)
  4823. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4824. *)
  4825. ac_count=0
  4826. $as_echo_n 0123456789 >"conftest.in"
  4827. while :
  4828. do
  4829. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4830. mv "conftest.tmp" "conftest.in"
  4831. cp "conftest.in" "conftest.nl"
  4832. $as_echo 'FGREP' >> "conftest.nl"
  4833. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4834. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4835. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4836. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4837. # Best one so far, save it but keep looking for a better one
  4838. ac_cv_path_FGREP="$ac_path_FGREP"
  4839. ac_path_FGREP_max=$ac_count
  4840. fi
  4841. # 10*(2^10) chars as input seems more than enough
  4842. test $ac_count -gt 10 && break
  4843. done
  4844. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4845. esac
  4846. $ac_path_FGREP_found && break 3
  4847. done
  4848. done
  4849. done
  4850. IFS=$as_save_IFS
  4851. if test -z "$ac_cv_path_FGREP"; then
  4852. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4853. fi
  4854. else
  4855. ac_cv_path_FGREP=$FGREP
  4856. fi
  4857. fi
  4858. fi
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4860. $as_echo "$ac_cv_path_FGREP" >&6; }
  4861. FGREP="$ac_cv_path_FGREP"
  4862. test -z "$GREP" && GREP=grep
  4863. # Check whether --with-gnu-ld was given.
  4864. if test "${with_gnu_ld+set}" = set; then :
  4865. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4866. else
  4867. with_gnu_ld=no
  4868. fi
  4869. ac_prog=ld
  4870. if test "$GCC" = yes; then
  4871. # Check if gcc -print-prog-name=ld gives a path.
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4873. $as_echo_n "checking for ld used by $CC... " >&6; }
  4874. case $host in
  4875. *-*-mingw*)
  4876. # gcc leaves a trailing carriage return which upsets mingw
  4877. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4878. *)
  4879. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4880. esac
  4881. case $ac_prog in
  4882. # Accept absolute paths.
  4883. [\\/]* | ?:[\\/]*)
  4884. re_direlt='/[^/][^/]*/\.\./'
  4885. # Canonicalize the pathname of ld
  4886. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4887. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4888. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4889. done
  4890. test -z "$LD" && LD="$ac_prog"
  4891. ;;
  4892. "")
  4893. # If it fails, then pretend we aren't using GCC.
  4894. ac_prog=ld
  4895. ;;
  4896. *)
  4897. # If it is relative, then search for the first ld in PATH.
  4898. with_gnu_ld=unknown
  4899. ;;
  4900. esac
  4901. elif test "$with_gnu_ld" = yes; then
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4903. $as_echo_n "checking for GNU ld... " >&6; }
  4904. else
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4906. $as_echo_n "checking for non-GNU ld... " >&6; }
  4907. fi
  4908. if test "${lt_cv_path_LD+set}" = set; then :
  4909. $as_echo_n "(cached) " >&6
  4910. else
  4911. if test -z "$LD"; then
  4912. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4913. for ac_dir in $PATH; do
  4914. IFS="$lt_save_ifs"
  4915. test -z "$ac_dir" && ac_dir=.
  4916. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4917. lt_cv_path_LD="$ac_dir/$ac_prog"
  4918. # Check to see if the program is GNU ld. I'd rather use --version,
  4919. # but apparently some variants of GNU ld only accept -v.
  4920. # Break only if it was the GNU/non-GNU ld that we prefer.
  4921. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4922. *GNU* | *'with BFD'*)
  4923. test "$with_gnu_ld" != no && break
  4924. ;;
  4925. *)
  4926. test "$with_gnu_ld" != yes && break
  4927. ;;
  4928. esac
  4929. fi
  4930. done
  4931. IFS="$lt_save_ifs"
  4932. else
  4933. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4934. fi
  4935. fi
  4936. LD="$lt_cv_path_LD"
  4937. if test -n "$LD"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4939. $as_echo "$LD" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4946. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4947. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4951. case `$LD -v 2>&1 </dev/null` in
  4952. *GNU* | *'with BFD'*)
  4953. lt_cv_prog_gnu_ld=yes
  4954. ;;
  4955. *)
  4956. lt_cv_prog_gnu_ld=no
  4957. ;;
  4958. esac
  4959. fi
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4961. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4962. with_gnu_ld=$lt_cv_prog_gnu_ld
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4964. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4965. if test "${lt_cv_path_NM+set}" = set; then :
  4966. $as_echo_n "(cached) " >&6
  4967. else
  4968. if test -n "$NM"; then
  4969. # Let the user override the test.
  4970. lt_cv_path_NM="$NM"
  4971. else
  4972. lt_nm_to_check="${ac_tool_prefix}nm"
  4973. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4974. lt_nm_to_check="$lt_nm_to_check nm"
  4975. fi
  4976. for lt_tmp_nm in $lt_nm_to_check; do
  4977. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4978. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4979. IFS="$lt_save_ifs"
  4980. test -z "$ac_dir" && ac_dir=.
  4981. tmp_nm="$ac_dir/$lt_tmp_nm"
  4982. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4983. # Check to see if the nm accepts a BSD-compat flag.
  4984. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4985. # nm: unknown option "B" ignored
  4986. # Tru64's nm complains that /dev/null is an invalid object file
  4987. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4988. */dev/null* | *'Invalid file or object type'*)
  4989. lt_cv_path_NM="$tmp_nm -B"
  4990. break
  4991. ;;
  4992. *)
  4993. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4994. */dev/null*)
  4995. lt_cv_path_NM="$tmp_nm -p"
  4996. break
  4997. ;;
  4998. *)
  4999. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5000. continue # so that we can try to find one that supports BSD flags
  5001. ;;
  5002. esac
  5003. ;;
  5004. esac
  5005. fi
  5006. done
  5007. IFS="$lt_save_ifs"
  5008. done
  5009. : ${lt_cv_path_NM=no}
  5010. fi
  5011. fi
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5013. $as_echo "$lt_cv_path_NM" >&6; }
  5014. if test "$lt_cv_path_NM" != "no"; then
  5015. NM="$lt_cv_path_NM"
  5016. else
  5017. # Didn't find any BSD compatible name lister, look for dumpbin.
  5018. if test -n "$DUMPBIN"; then :
  5019. # Let the user override the test.
  5020. else
  5021. if test -n "$ac_tool_prefix"; then
  5022. for ac_prog in dumpbin "link -dump"
  5023. do
  5024. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5025. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5027. $as_echo_n "checking for $ac_word... " >&6; }
  5028. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5029. $as_echo_n "(cached) " >&6
  5030. else
  5031. if test -n "$DUMPBIN"; then
  5032. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5033. else
  5034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5035. for as_dir in $PATH
  5036. do
  5037. IFS=$as_save_IFS
  5038. test -z "$as_dir" && as_dir=.
  5039. for ac_exec_ext in '' $ac_executable_extensions; do
  5040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5041. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5043. break 2
  5044. fi
  5045. done
  5046. done
  5047. IFS=$as_save_IFS
  5048. fi
  5049. fi
  5050. DUMPBIN=$ac_cv_prog_DUMPBIN
  5051. if test -n "$DUMPBIN"; then
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5053. $as_echo "$DUMPBIN" >&6; }
  5054. else
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5056. $as_echo "no" >&6; }
  5057. fi
  5058. test -n "$DUMPBIN" && break
  5059. done
  5060. fi
  5061. if test -z "$DUMPBIN"; then
  5062. ac_ct_DUMPBIN=$DUMPBIN
  5063. for ac_prog in dumpbin "link -dump"
  5064. do
  5065. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5066. set dummy $ac_prog; ac_word=$2
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5068. $as_echo_n "checking for $ac_word... " >&6; }
  5069. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5070. $as_echo_n "(cached) " >&6
  5071. else
  5072. if test -n "$ac_ct_DUMPBIN"; then
  5073. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5074. else
  5075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5076. for as_dir in $PATH
  5077. do
  5078. IFS=$as_save_IFS
  5079. test -z "$as_dir" && as_dir=.
  5080. for ac_exec_ext in '' $ac_executable_extensions; do
  5081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5082. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5084. break 2
  5085. fi
  5086. done
  5087. done
  5088. IFS=$as_save_IFS
  5089. fi
  5090. fi
  5091. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5092. if test -n "$ac_ct_DUMPBIN"; then
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5094. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5095. else
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5097. $as_echo "no" >&6; }
  5098. fi
  5099. test -n "$ac_ct_DUMPBIN" && break
  5100. done
  5101. if test "x$ac_ct_DUMPBIN" = x; then
  5102. DUMPBIN=":"
  5103. else
  5104. case $cross_compiling:$ac_tool_warned in
  5105. yes:)
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5107. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5108. ac_tool_warned=yes ;;
  5109. esac
  5110. DUMPBIN=$ac_ct_DUMPBIN
  5111. fi
  5112. fi
  5113. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5114. *COFF*)
  5115. DUMPBIN="$DUMPBIN -symbols"
  5116. ;;
  5117. *)
  5118. DUMPBIN=:
  5119. ;;
  5120. esac
  5121. fi
  5122. if test "$DUMPBIN" != ":"; then
  5123. NM="$DUMPBIN"
  5124. fi
  5125. fi
  5126. test -z "$NM" && NM=nm
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5128. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5129. if test "${lt_cv_nm_interface+set}" = set; then :
  5130. $as_echo_n "(cached) " >&6
  5131. else
  5132. lt_cv_nm_interface="BSD nm"
  5133. echo "int some_variable = 0;" > conftest.$ac_ext
  5134. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5135. (eval "$ac_compile" 2>conftest.err)
  5136. cat conftest.err >&5
  5137. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5138. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5139. cat conftest.err >&5
  5140. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5141. cat conftest.out >&5
  5142. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5143. lt_cv_nm_interface="MS dumpbin"
  5144. fi
  5145. rm -f conftest*
  5146. fi
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5148. $as_echo "$lt_cv_nm_interface" >&6; }
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5150. $as_echo_n "checking whether ln -s works... " >&6; }
  5151. LN_S=$as_ln_s
  5152. if test "$LN_S" = "ln -s"; then
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5154. $as_echo "yes" >&6; }
  5155. else
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5157. $as_echo "no, using $LN_S" >&6; }
  5158. fi
  5159. # find the maximum length of command line arguments
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5161. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5162. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5163. $as_echo_n "(cached) " >&6
  5164. else
  5165. i=0
  5166. teststring="ABCD"
  5167. case $build_os in
  5168. msdosdjgpp*)
  5169. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5170. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5171. # during glob expansion). Even if it were fixed, the result of this
  5172. # check would be larger than it should be.
  5173. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5174. ;;
  5175. gnu*)
  5176. # Under GNU Hurd, this test is not required because there is
  5177. # no limit to the length of command line arguments.
  5178. # Libtool will interpret -1 as no limit whatsoever
  5179. lt_cv_sys_max_cmd_len=-1;
  5180. ;;
  5181. cygwin* | mingw* | cegcc*)
  5182. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5183. # about 5 minutes as the teststring grows exponentially.
  5184. # Worse, since 9x/ME are not pre-emptively multitasking,
  5185. # you end up with a "frozen" computer, even though with patience
  5186. # the test eventually succeeds (with a max line length of 256k).
  5187. # Instead, let's just punt: use the minimum linelength reported by
  5188. # all of the supported platforms: 8192 (on NT/2K/XP).
  5189. lt_cv_sys_max_cmd_len=8192;
  5190. ;;
  5191. mint*)
  5192. # On MiNT this can take a long time and run out of memory.
  5193. lt_cv_sys_max_cmd_len=8192;
  5194. ;;
  5195. amigaos*)
  5196. # On AmigaOS with pdksh, this test takes hours, literally.
  5197. # So we just punt and use a minimum line length of 8192.
  5198. lt_cv_sys_max_cmd_len=8192;
  5199. ;;
  5200. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5201. # This has been around since 386BSD, at least. Likely further.
  5202. if test -x /sbin/sysctl; then
  5203. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5204. elif test -x /usr/sbin/sysctl; then
  5205. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5206. else
  5207. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5208. fi
  5209. # And add a safety zone
  5210. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5211. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5212. ;;
  5213. interix*)
  5214. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5215. lt_cv_sys_max_cmd_len=196608
  5216. ;;
  5217. osf*)
  5218. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5219. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5220. # nice to cause kernel panics so lets avoid the loop below.
  5221. # First set a reasonable default.
  5222. lt_cv_sys_max_cmd_len=16384
  5223. #
  5224. if test -x /sbin/sysconfig; then
  5225. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5226. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5227. esac
  5228. fi
  5229. ;;
  5230. sco3.2v5*)
  5231. lt_cv_sys_max_cmd_len=102400
  5232. ;;
  5233. sysv5* | sco5v6* | sysv4.2uw2*)
  5234. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5235. if test -n "$kargmax"; then
  5236. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5237. else
  5238. lt_cv_sys_max_cmd_len=32768
  5239. fi
  5240. ;;
  5241. *)
  5242. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5243. if test -n "$lt_cv_sys_max_cmd_len"; then
  5244. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5245. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5246. else
  5247. # Make teststring a little bigger before we do anything with it.
  5248. # a 1K string should be a reasonable start.
  5249. for i in 1 2 3 4 5 6 7 8 ; do
  5250. teststring=$teststring$teststring
  5251. done
  5252. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5253. # If test is not a shell built-in, we'll probably end up computing a
  5254. # maximum length that is only half of the actual maximum length, but
  5255. # we can't tell.
  5256. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5257. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5258. test $i != 17 # 1/2 MB should be enough
  5259. do
  5260. i=`expr $i + 1`
  5261. teststring=$teststring$teststring
  5262. done
  5263. # Only check the string length outside the loop.
  5264. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5265. teststring=
  5266. # Add a significant safety factor because C++ compilers can tack on
  5267. # massive amounts of additional arguments before passing them to the
  5268. # linker. It appears as though 1/2 is a usable value.
  5269. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5270. fi
  5271. ;;
  5272. esac
  5273. fi
  5274. if test -n $lt_cv_sys_max_cmd_len ; then
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5276. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5277. else
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5279. $as_echo "none" >&6; }
  5280. fi
  5281. max_cmd_len=$lt_cv_sys_max_cmd_len
  5282. : ${CP="cp -f"}
  5283. : ${MV="mv -f"}
  5284. : ${RM="rm -f"}
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5286. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5287. # Try some XSI features
  5288. xsi_shell=no
  5289. ( _lt_dummy="a/b/c"
  5290. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5291. = c,a/b,, \
  5292. && eval 'test $(( 1 + 1 )) -eq 2 \
  5293. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5294. && xsi_shell=yes
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5296. $as_echo "$xsi_shell" >&6; }
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5298. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5299. lt_shell_append=no
  5300. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5301. >/dev/null 2>&1 \
  5302. && lt_shell_append=yes
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5304. $as_echo "$lt_shell_append" >&6; }
  5305. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5306. lt_unset=unset
  5307. else
  5308. lt_unset=false
  5309. fi
  5310. # test EBCDIC or ASCII
  5311. case `echo X|tr X '\101'` in
  5312. A) # ASCII based system
  5313. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5314. lt_SP2NL='tr \040 \012'
  5315. lt_NL2SP='tr \015\012 \040\040'
  5316. ;;
  5317. *) # EBCDIC based system
  5318. lt_SP2NL='tr \100 \n'
  5319. lt_NL2SP='tr \r\n \100\100'
  5320. ;;
  5321. esac
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5323. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5324. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5325. $as_echo_n "(cached) " >&6
  5326. else
  5327. lt_cv_ld_reload_flag='-r'
  5328. fi
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5330. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5331. reload_flag=$lt_cv_ld_reload_flag
  5332. case $reload_flag in
  5333. "" | " "*) ;;
  5334. *) reload_flag=" $reload_flag" ;;
  5335. esac
  5336. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5337. case $host_os in
  5338. darwin*)
  5339. if test "$GCC" = yes; then
  5340. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5341. else
  5342. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5343. fi
  5344. ;;
  5345. esac
  5346. if test -n "$ac_tool_prefix"; then
  5347. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5348. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5350. $as_echo_n "checking for $ac_word... " >&6; }
  5351. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. if test -n "$OBJDUMP"; then
  5355. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5356. else
  5357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5358. for as_dir in $PATH
  5359. do
  5360. IFS=$as_save_IFS
  5361. test -z "$as_dir" && as_dir=.
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5364. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5366. break 2
  5367. fi
  5368. done
  5369. done
  5370. IFS=$as_save_IFS
  5371. fi
  5372. fi
  5373. OBJDUMP=$ac_cv_prog_OBJDUMP
  5374. if test -n "$OBJDUMP"; then
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5376. $as_echo "$OBJDUMP" >&6; }
  5377. else
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5379. $as_echo "no" >&6; }
  5380. fi
  5381. fi
  5382. if test -z "$ac_cv_prog_OBJDUMP"; then
  5383. ac_ct_OBJDUMP=$OBJDUMP
  5384. # Extract the first word of "objdump", so it can be a program name with args.
  5385. set dummy objdump; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$ac_ct_OBJDUMP"; then
  5392. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5401. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5411. if test -n "$ac_ct_OBJDUMP"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5413. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. if test "x$ac_ct_OBJDUMP" = x; then
  5419. OBJDUMP="false"
  5420. else
  5421. case $cross_compiling:$ac_tool_warned in
  5422. yes:)
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5425. ac_tool_warned=yes ;;
  5426. esac
  5427. OBJDUMP=$ac_ct_OBJDUMP
  5428. fi
  5429. else
  5430. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5431. fi
  5432. test -z "$OBJDUMP" && OBJDUMP=objdump
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5434. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5435. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5439. lt_cv_file_magic_test_file=
  5440. lt_cv_deplibs_check_method='unknown'
  5441. # Need to set the preceding variable on all platforms that support
  5442. # interlibrary dependencies.
  5443. # 'none' -- dependencies not supported.
  5444. # `unknown' -- same as none, but documents that we really don't know.
  5445. # 'pass_all' -- all dependencies passed with no checks.
  5446. # 'test_compile' -- check by making test program.
  5447. # 'file_magic [[regex]]' -- check by looking for files in library path
  5448. # which responds to the $file_magic_cmd with a given extended regex.
  5449. # If you have `file' or equivalent on your system and you're not sure
  5450. # whether `pass_all' will *always* work, you probably want this one.
  5451. case $host_os in
  5452. aix[4-9]*)
  5453. lt_cv_deplibs_check_method=pass_all
  5454. ;;
  5455. beos*)
  5456. lt_cv_deplibs_check_method=pass_all
  5457. ;;
  5458. bsdi[45]*)
  5459. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5460. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5461. lt_cv_file_magic_test_file=/shlib/libc.so
  5462. ;;
  5463. cygwin*)
  5464. # func_win32_libid is a shell function defined in ltmain.sh
  5465. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5466. lt_cv_file_magic_cmd='func_win32_libid'
  5467. ;;
  5468. mingw* | pw32*)
  5469. # Base MSYS/MinGW do not provide the 'file' command needed by
  5470. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5471. # unless we find 'file', for example because we are cross-compiling.
  5472. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5473. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5474. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5475. lt_cv_file_magic_cmd='func_win32_libid'
  5476. else
  5477. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5478. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5479. fi
  5480. ;;
  5481. cegcc*)
  5482. # use the weaker test based on 'objdump'. See mingw*.
  5483. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5484. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5485. ;;
  5486. darwin* | rhapsody*)
  5487. lt_cv_deplibs_check_method=pass_all
  5488. ;;
  5489. freebsd* | dragonfly*)
  5490. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5491. case $host_cpu in
  5492. i*86 )
  5493. # Not sure whether the presence of OpenBSD here was a mistake.
  5494. # Let's accept both of them until this is cleared up.
  5495. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5496. lt_cv_file_magic_cmd=/usr/bin/file
  5497. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5498. ;;
  5499. esac
  5500. else
  5501. lt_cv_deplibs_check_method=pass_all
  5502. fi
  5503. ;;
  5504. gnu*)
  5505. lt_cv_deplibs_check_method=pass_all
  5506. ;;
  5507. haiku*)
  5508. lt_cv_deplibs_check_method=pass_all
  5509. ;;
  5510. hpux10.20* | hpux11*)
  5511. lt_cv_file_magic_cmd=/usr/bin/file
  5512. case $host_cpu in
  5513. ia64*)
  5514. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5515. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5516. ;;
  5517. hppa*64*)
  5518. 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]'
  5519. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5520. ;;
  5521. *)
  5522. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5523. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5524. ;;
  5525. esac
  5526. ;;
  5527. interix[3-9]*)
  5528. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5529. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5530. ;;
  5531. irix5* | irix6* | nonstopux*)
  5532. case $LD in
  5533. *-32|*"-32 ") libmagic=32-bit;;
  5534. *-n32|*"-n32 ") libmagic=N32;;
  5535. *-64|*"-64 ") libmagic=64-bit;;
  5536. *) libmagic=never-match;;
  5537. esac
  5538. lt_cv_deplibs_check_method=pass_all
  5539. ;;
  5540. # This must be Linux ELF.
  5541. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5542. lt_cv_deplibs_check_method=pass_all
  5543. ;;
  5544. netbsd*)
  5545. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5546. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5547. else
  5548. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5549. fi
  5550. ;;
  5551. newos6*)
  5552. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5553. lt_cv_file_magic_cmd=/usr/bin/file
  5554. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5555. ;;
  5556. *nto* | *qnx*)
  5557. lt_cv_deplibs_check_method=pass_all
  5558. ;;
  5559. openbsd*)
  5560. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5561. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5562. else
  5563. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5564. fi
  5565. ;;
  5566. osf3* | osf4* | osf5*)
  5567. lt_cv_deplibs_check_method=pass_all
  5568. ;;
  5569. rdos*)
  5570. lt_cv_deplibs_check_method=pass_all
  5571. ;;
  5572. solaris*)
  5573. lt_cv_deplibs_check_method=pass_all
  5574. ;;
  5575. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5576. lt_cv_deplibs_check_method=pass_all
  5577. ;;
  5578. sysv4 | sysv4.3*)
  5579. case $host_vendor in
  5580. motorola)
  5581. 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]'
  5582. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5583. ;;
  5584. ncr)
  5585. lt_cv_deplibs_check_method=pass_all
  5586. ;;
  5587. sequent)
  5588. lt_cv_file_magic_cmd='/bin/file'
  5589. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5590. ;;
  5591. sni)
  5592. lt_cv_file_magic_cmd='/bin/file'
  5593. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5594. lt_cv_file_magic_test_file=/lib/libc.so
  5595. ;;
  5596. siemens)
  5597. lt_cv_deplibs_check_method=pass_all
  5598. ;;
  5599. pc)
  5600. lt_cv_deplibs_check_method=pass_all
  5601. ;;
  5602. esac
  5603. ;;
  5604. tpf*)
  5605. lt_cv_deplibs_check_method=pass_all
  5606. ;;
  5607. esac
  5608. fi
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5610. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5611. file_magic_cmd=$lt_cv_file_magic_cmd
  5612. deplibs_check_method=$lt_cv_deplibs_check_method
  5613. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5614. if test -n "$ac_tool_prefix"; then
  5615. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5616. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5618. $as_echo_n "checking for $ac_word... " >&6; }
  5619. if test "${ac_cv_prog_AR+set}" = set; then :
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if test -n "$AR"; then
  5623. ac_cv_prog_AR="$AR" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5632. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. AR=$ac_cv_prog_AR
  5642. if test -n "$AR"; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5644. $as_echo "$AR" >&6; }
  5645. else
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. $as_echo "no" >&6; }
  5648. fi
  5649. fi
  5650. if test -z "$ac_cv_prog_AR"; then
  5651. ac_ct_AR=$AR
  5652. # Extract the first word of "ar", so it can be a program name with args.
  5653. set dummy ar; ac_word=$2
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5655. $as_echo_n "checking for $ac_word... " >&6; }
  5656. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5657. $as_echo_n "(cached) " >&6
  5658. else
  5659. if test -n "$ac_ct_AR"; then
  5660. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5661. else
  5662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663. for as_dir in $PATH
  5664. do
  5665. IFS=$as_save_IFS
  5666. test -z "$as_dir" && as_dir=.
  5667. for ac_exec_ext in '' $ac_executable_extensions; do
  5668. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5669. ac_cv_prog_ac_ct_AR="ar"
  5670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671. break 2
  5672. fi
  5673. done
  5674. done
  5675. IFS=$as_save_IFS
  5676. fi
  5677. fi
  5678. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5679. if test -n "$ac_ct_AR"; then
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5681. $as_echo "$ac_ct_AR" >&6; }
  5682. else
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5684. $as_echo "no" >&6; }
  5685. fi
  5686. if test "x$ac_ct_AR" = x; then
  5687. AR="false"
  5688. else
  5689. case $cross_compiling:$ac_tool_warned in
  5690. yes:)
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5693. ac_tool_warned=yes ;;
  5694. esac
  5695. AR=$ac_ct_AR
  5696. fi
  5697. else
  5698. AR="$ac_cv_prog_AR"
  5699. fi
  5700. test -z "$AR" && AR=ar
  5701. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5702. if test -n "$ac_tool_prefix"; then
  5703. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5704. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5706. $as_echo_n "checking for $ac_word... " >&6; }
  5707. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. if test -n "$STRIP"; then
  5711. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5712. else
  5713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5714. for as_dir in $PATH
  5715. do
  5716. IFS=$as_save_IFS
  5717. test -z "$as_dir" && as_dir=.
  5718. for ac_exec_ext in '' $ac_executable_extensions; do
  5719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5720. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5722. break 2
  5723. fi
  5724. done
  5725. done
  5726. IFS=$as_save_IFS
  5727. fi
  5728. fi
  5729. STRIP=$ac_cv_prog_STRIP
  5730. if test -n "$STRIP"; then
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5732. $as_echo "$STRIP" >&6; }
  5733. else
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5735. $as_echo "no" >&6; }
  5736. fi
  5737. fi
  5738. if test -z "$ac_cv_prog_STRIP"; then
  5739. ac_ct_STRIP=$STRIP
  5740. # Extract the first word of "strip", so it can be a program name with args.
  5741. set dummy strip; ac_word=$2
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5743. $as_echo_n "checking for $ac_word... " >&6; }
  5744. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. if test -n "$ac_ct_STRIP"; then
  5748. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5749. else
  5750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5751. for as_dir in $PATH
  5752. do
  5753. IFS=$as_save_IFS
  5754. test -z "$as_dir" && as_dir=.
  5755. for ac_exec_ext in '' $ac_executable_extensions; do
  5756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5757. ac_cv_prog_ac_ct_STRIP="strip"
  5758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5759. break 2
  5760. fi
  5761. done
  5762. done
  5763. IFS=$as_save_IFS
  5764. fi
  5765. fi
  5766. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5767. if test -n "$ac_ct_STRIP"; then
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5769. $as_echo "$ac_ct_STRIP" >&6; }
  5770. else
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5772. $as_echo "no" >&6; }
  5773. fi
  5774. if test "x$ac_ct_STRIP" = x; then
  5775. STRIP=":"
  5776. else
  5777. case $cross_compiling:$ac_tool_warned in
  5778. yes:)
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5781. ac_tool_warned=yes ;;
  5782. esac
  5783. STRIP=$ac_ct_STRIP
  5784. fi
  5785. else
  5786. STRIP="$ac_cv_prog_STRIP"
  5787. fi
  5788. test -z "$STRIP" && STRIP=:
  5789. if test -n "$ac_tool_prefix"; then
  5790. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5791. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5793. $as_echo_n "checking for $ac_word... " >&6; }
  5794. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. if test -n "$RANLIB"; then
  5798. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5799. else
  5800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5801. for as_dir in $PATH
  5802. do
  5803. IFS=$as_save_IFS
  5804. test -z "$as_dir" && as_dir=.
  5805. for ac_exec_ext in '' $ac_executable_extensions; do
  5806. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5807. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5809. break 2
  5810. fi
  5811. done
  5812. done
  5813. IFS=$as_save_IFS
  5814. fi
  5815. fi
  5816. RANLIB=$ac_cv_prog_RANLIB
  5817. if test -n "$RANLIB"; then
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5819. $as_echo "$RANLIB" >&6; }
  5820. else
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5822. $as_echo "no" >&6; }
  5823. fi
  5824. fi
  5825. if test -z "$ac_cv_prog_RANLIB"; then
  5826. ac_ct_RANLIB=$RANLIB
  5827. # Extract the first word of "ranlib", so it can be a program name with args.
  5828. set dummy ranlib; ac_word=$2
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5830. $as_echo_n "checking for $ac_word... " >&6; }
  5831. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5832. $as_echo_n "(cached) " >&6
  5833. else
  5834. if test -n "$ac_ct_RANLIB"; then
  5835. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5836. else
  5837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5838. for as_dir in $PATH
  5839. do
  5840. IFS=$as_save_IFS
  5841. test -z "$as_dir" && as_dir=.
  5842. for ac_exec_ext in '' $ac_executable_extensions; do
  5843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5844. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5846. break 2
  5847. fi
  5848. done
  5849. done
  5850. IFS=$as_save_IFS
  5851. fi
  5852. fi
  5853. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5854. if test -n "$ac_ct_RANLIB"; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5856. $as_echo "$ac_ct_RANLIB" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861. if test "x$ac_ct_RANLIB" = x; then
  5862. RANLIB=":"
  5863. else
  5864. case $cross_compiling:$ac_tool_warned in
  5865. yes:)
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5867. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5868. ac_tool_warned=yes ;;
  5869. esac
  5870. RANLIB=$ac_ct_RANLIB
  5871. fi
  5872. else
  5873. RANLIB="$ac_cv_prog_RANLIB"
  5874. fi
  5875. test -z "$RANLIB" && RANLIB=:
  5876. # Determine commands to create old-style static archives.
  5877. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5878. old_postinstall_cmds='chmod 644 $oldlib'
  5879. old_postuninstall_cmds=
  5880. if test -n "$RANLIB"; then
  5881. case $host_os in
  5882. openbsd*)
  5883. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5884. ;;
  5885. *)
  5886. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5887. ;;
  5888. esac
  5889. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5890. fi
  5891. case $host_os in
  5892. darwin*)
  5893. lock_old_archive_extraction=yes ;;
  5894. *)
  5895. lock_old_archive_extraction=no ;;
  5896. esac
  5897. # If no C compiler was specified, use CC.
  5898. LTCC=${LTCC-"$CC"}
  5899. # If no C compiler flags were specified, use CFLAGS.
  5900. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5901. # Allow CC to be a program name with arguments.
  5902. compiler=$CC
  5903. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5905. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5906. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. # These are sane defaults that work on at least a few old systems.
  5910. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5911. # Character class describing NM global symbol codes.
  5912. symcode='[BCDEGRST]'
  5913. # Regexp to match symbols that can be accessed directly from C.
  5914. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5915. # Define system-specific variables.
  5916. case $host_os in
  5917. aix*)
  5918. symcode='[BCDT]'
  5919. ;;
  5920. cygwin* | mingw* | pw32* | cegcc*)
  5921. symcode='[ABCDGISTW]'
  5922. ;;
  5923. hpux*)
  5924. if test "$host_cpu" = ia64; then
  5925. symcode='[ABCDEGRST]'
  5926. fi
  5927. ;;
  5928. irix* | nonstopux*)
  5929. symcode='[BCDEGRST]'
  5930. ;;
  5931. osf*)
  5932. symcode='[BCDEGQRST]'
  5933. ;;
  5934. solaris*)
  5935. symcode='[BDRT]'
  5936. ;;
  5937. sco3.2v5*)
  5938. symcode='[DT]'
  5939. ;;
  5940. sysv4.2uw2*)
  5941. symcode='[DT]'
  5942. ;;
  5943. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5944. symcode='[ABDT]'
  5945. ;;
  5946. sysv4)
  5947. symcode='[DFNSTU]'
  5948. ;;
  5949. esac
  5950. # If we're using GNU nm, then use its standard symbol codes.
  5951. case `$NM -V 2>&1` in
  5952. *GNU* | *'with BFD'*)
  5953. symcode='[ABCDGIRSTW]' ;;
  5954. esac
  5955. # Transform an extracted symbol line into a proper C declaration.
  5956. # Some systems (esp. on ia64) link data and code symbols differently,
  5957. # so use this general approach.
  5958. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5959. # Transform an extracted symbol line into symbol name and symbol address
  5960. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5961. 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'"
  5962. # Handle CRLF in mingw tool chain
  5963. opt_cr=
  5964. case $build_os in
  5965. mingw*)
  5966. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5967. ;;
  5968. esac
  5969. # Try without a prefix underscore, then with it.
  5970. for ac_symprfx in "" "_"; do
  5971. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5972. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5973. # Write the raw and C identifiers.
  5974. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5975. # Fake it for dumpbin and say T for any non-static function
  5976. # and D for any global variable.
  5977. # Also find C++ and __fastcall symbols from MSVC++,
  5978. # which start with @ or ?.
  5979. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5980. " {last_section=section; section=\$ 3};"\
  5981. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5982. " \$ 0!~/External *\|/{next};"\
  5983. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5984. " {if(hide[section]) next};"\
  5985. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5986. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5987. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5988. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5989. " ' prfx=^$ac_symprfx"
  5990. else
  5991. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5992. fi
  5993. # Check to see that the pipe works correctly.
  5994. pipe_works=no
  5995. rm -f conftest*
  5996. cat > conftest.$ac_ext <<_LT_EOF
  5997. #ifdef __cplusplus
  5998. extern "C" {
  5999. #endif
  6000. char nm_test_var;
  6001. void nm_test_func(void);
  6002. void nm_test_func(void){}
  6003. #ifdef __cplusplus
  6004. }
  6005. #endif
  6006. int main(){nm_test_var='a';nm_test_func();return(0);}
  6007. _LT_EOF
  6008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6009. (eval $ac_compile) 2>&5
  6010. ac_status=$?
  6011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6012. test $ac_status = 0; }; then
  6013. # Now try to grab the symbols.
  6014. nlist=conftest.nm
  6015. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6016. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6017. ac_status=$?
  6018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6019. test $ac_status = 0; } && test -s "$nlist"; then
  6020. # Try sorting and uniquifying the output.
  6021. if sort "$nlist" | uniq > "$nlist"T; then
  6022. mv -f "$nlist"T "$nlist"
  6023. else
  6024. rm -f "$nlist"T
  6025. fi
  6026. # Make sure that we snagged all the symbols we need.
  6027. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6028. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6029. cat <<_LT_EOF > conftest.$ac_ext
  6030. #ifdef __cplusplus
  6031. extern "C" {
  6032. #endif
  6033. _LT_EOF
  6034. # Now generate the symbol file.
  6035. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6036. cat <<_LT_EOF >> conftest.$ac_ext
  6037. /* The mapping between symbol names and symbols. */
  6038. const struct {
  6039. const char *name;
  6040. void *address;
  6041. }
  6042. lt__PROGRAM__LTX_preloaded_symbols[] =
  6043. {
  6044. { "@PROGRAM@", (void *) 0 },
  6045. _LT_EOF
  6046. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6047. cat <<\_LT_EOF >> conftest.$ac_ext
  6048. {0, (void *) 0}
  6049. };
  6050. /* This works around a problem in FreeBSD linker */
  6051. #ifdef FREEBSD_WORKAROUND
  6052. static const void *lt_preloaded_setup() {
  6053. return lt__PROGRAM__LTX_preloaded_symbols;
  6054. }
  6055. #endif
  6056. #ifdef __cplusplus
  6057. }
  6058. #endif
  6059. _LT_EOF
  6060. # Now try linking the two files.
  6061. mv conftest.$ac_objext conftstm.$ac_objext
  6062. lt_save_LIBS="$LIBS"
  6063. lt_save_CFLAGS="$CFLAGS"
  6064. LIBS="conftstm.$ac_objext"
  6065. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6066. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6067. (eval $ac_link) 2>&5
  6068. ac_status=$?
  6069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6070. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6071. pipe_works=yes
  6072. fi
  6073. LIBS="$lt_save_LIBS"
  6074. CFLAGS="$lt_save_CFLAGS"
  6075. else
  6076. echo "cannot find nm_test_func in $nlist" >&5
  6077. fi
  6078. else
  6079. echo "cannot find nm_test_var in $nlist" >&5
  6080. fi
  6081. else
  6082. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6083. fi
  6084. else
  6085. echo "$progname: failed program was:" >&5
  6086. cat conftest.$ac_ext >&5
  6087. fi
  6088. rm -rf conftest* conftst*
  6089. # Do not use the global_symbol_pipe unless it works.
  6090. if test "$pipe_works" = yes; then
  6091. break
  6092. else
  6093. lt_cv_sys_global_symbol_pipe=
  6094. fi
  6095. done
  6096. fi
  6097. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6098. lt_cv_sys_global_symbol_to_cdecl=
  6099. fi
  6100. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6102. $as_echo "failed" >&6; }
  6103. else
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6105. $as_echo "ok" >&6; }
  6106. fi
  6107. # Check whether --enable-libtool-lock was given.
  6108. if test "${enable_libtool_lock+set}" = set; then :
  6109. enableval=$enable_libtool_lock;
  6110. fi
  6111. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6112. # Some flags need to be propagated to the compiler or linker for good
  6113. # libtool support.
  6114. case $host in
  6115. ia64-*-hpux*)
  6116. # Find out which ABI we are using.
  6117. echo 'int i;' > conftest.$ac_ext
  6118. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6119. (eval $ac_compile) 2>&5
  6120. ac_status=$?
  6121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6122. test $ac_status = 0; }; then
  6123. case `/usr/bin/file conftest.$ac_objext` in
  6124. *ELF-32*)
  6125. HPUX_IA64_MODE="32"
  6126. ;;
  6127. *ELF-64*)
  6128. HPUX_IA64_MODE="64"
  6129. ;;
  6130. esac
  6131. fi
  6132. rm -rf conftest*
  6133. ;;
  6134. *-*-irix6*)
  6135. # Find out which ABI we are using.
  6136. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6137. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6138. (eval $ac_compile) 2>&5
  6139. ac_status=$?
  6140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6141. test $ac_status = 0; }; then
  6142. if test "$lt_cv_prog_gnu_ld" = yes; then
  6143. case `/usr/bin/file conftest.$ac_objext` in
  6144. *32-bit*)
  6145. LD="${LD-ld} -melf32bsmip"
  6146. ;;
  6147. *N32*)
  6148. LD="${LD-ld} -melf32bmipn32"
  6149. ;;
  6150. *64-bit*)
  6151. LD="${LD-ld} -melf64bmip"
  6152. ;;
  6153. esac
  6154. else
  6155. case `/usr/bin/file conftest.$ac_objext` in
  6156. *32-bit*)
  6157. LD="${LD-ld} -32"
  6158. ;;
  6159. *N32*)
  6160. LD="${LD-ld} -n32"
  6161. ;;
  6162. *64-bit*)
  6163. LD="${LD-ld} -64"
  6164. ;;
  6165. esac
  6166. fi
  6167. fi
  6168. rm -rf conftest*
  6169. ;;
  6170. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6171. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6172. # Find out which ABI we are using.
  6173. echo 'int i;' > conftest.$ac_ext
  6174. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6175. (eval $ac_compile) 2>&5
  6176. ac_status=$?
  6177. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6178. test $ac_status = 0; }; then
  6179. case `/usr/bin/file conftest.o` in
  6180. *32-bit*)
  6181. case $host in
  6182. x86_64-*kfreebsd*-gnu)
  6183. LD="${LD-ld} -m elf_i386_fbsd"
  6184. ;;
  6185. x86_64-*linux*)
  6186. case `/usr/bin/file conftest.o` in
  6187. *x86-64*)
  6188. LD="${LD-ld} -m elf32_x86_64"
  6189. ;;
  6190. *)
  6191. LD="${LD-ld} -m elf_i386"
  6192. ;;
  6193. esac
  6194. ;;
  6195. powerpc64le-*linux*)
  6196. LD="${LD-ld} -m elf32lppclinux"
  6197. ;;
  6198. powerpc64-*linux*)
  6199. LD="${LD-ld} -m elf32ppclinux"
  6200. ;;
  6201. s390x-*linux*)
  6202. LD="${LD-ld} -m elf_s390"
  6203. ;;
  6204. sparc64-*linux*)
  6205. LD="${LD-ld} -m elf32_sparc"
  6206. ;;
  6207. esac
  6208. ;;
  6209. *64-bit*)
  6210. case $host in
  6211. x86_64-*kfreebsd*-gnu)
  6212. LD="${LD-ld} -m elf_x86_64_fbsd"
  6213. ;;
  6214. x86_64-*linux*)
  6215. LD="${LD-ld} -m elf_x86_64"
  6216. ;;
  6217. powerpcle-*linux*)
  6218. LD="${LD-ld} -m elf64lppc"
  6219. ;;
  6220. powerpc-*linux*)
  6221. LD="${LD-ld} -m elf64ppc"
  6222. ;;
  6223. s390*-*linux*|s390*-*tpf*)
  6224. LD="${LD-ld} -m elf64_s390"
  6225. ;;
  6226. sparc*-*linux*)
  6227. LD="${LD-ld} -m elf64_sparc"
  6228. ;;
  6229. esac
  6230. ;;
  6231. esac
  6232. fi
  6233. rm -rf conftest*
  6234. ;;
  6235. *-*-sco3.2v5*)
  6236. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6237. SAVE_CFLAGS="$CFLAGS"
  6238. CFLAGS="$CFLAGS -belf"
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6240. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6241. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6242. $as_echo_n "(cached) " >&6
  6243. else
  6244. ac_ext=c
  6245. ac_cpp='$CPP $CPPFLAGS'
  6246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. int
  6252. main ()
  6253. {
  6254. ;
  6255. return 0;
  6256. }
  6257. _ACEOF
  6258. if ac_fn_c_try_link "$LINENO"; then :
  6259. lt_cv_cc_needs_belf=yes
  6260. else
  6261. lt_cv_cc_needs_belf=no
  6262. fi
  6263. rm -f core conftest.err conftest.$ac_objext \
  6264. conftest$ac_exeext conftest.$ac_ext
  6265. ac_ext=c
  6266. ac_cpp='$CPP $CPPFLAGS'
  6267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6270. fi
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6272. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6273. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6274. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6275. CFLAGS="$SAVE_CFLAGS"
  6276. fi
  6277. ;;
  6278. sparc*-*solaris*)
  6279. # Find out which ABI we are using.
  6280. echo 'int i;' > conftest.$ac_ext
  6281. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6282. (eval $ac_compile) 2>&5
  6283. ac_status=$?
  6284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6285. test $ac_status = 0; }; then
  6286. case `/usr/bin/file conftest.o` in
  6287. *64-bit*)
  6288. case $lt_cv_prog_gnu_ld in
  6289. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6290. *)
  6291. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6292. LD="${LD-ld} -64"
  6293. fi
  6294. ;;
  6295. esac
  6296. ;;
  6297. esac
  6298. fi
  6299. rm -rf conftest*
  6300. ;;
  6301. esac
  6302. need_locks="$enable_libtool_lock"
  6303. case $host_os in
  6304. rhapsody* | darwin*)
  6305. if test -n "$ac_tool_prefix"; then
  6306. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6307. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6309. $as_echo_n "checking for $ac_word... " >&6; }
  6310. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6311. $as_echo_n "(cached) " >&6
  6312. else
  6313. if test -n "$DSYMUTIL"; then
  6314. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6315. else
  6316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6317. for as_dir in $PATH
  6318. do
  6319. IFS=$as_save_IFS
  6320. test -z "$as_dir" && as_dir=.
  6321. for ac_exec_ext in '' $ac_executable_extensions; do
  6322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6323. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6325. break 2
  6326. fi
  6327. done
  6328. done
  6329. IFS=$as_save_IFS
  6330. fi
  6331. fi
  6332. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6333. if test -n "$DSYMUTIL"; then
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6335. $as_echo "$DSYMUTIL" >&6; }
  6336. else
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6338. $as_echo "no" >&6; }
  6339. fi
  6340. fi
  6341. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6342. ac_ct_DSYMUTIL=$DSYMUTIL
  6343. # Extract the first word of "dsymutil", so it can be a program name with args.
  6344. set dummy dsymutil; ac_word=$2
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6346. $as_echo_n "checking for $ac_word... " >&6; }
  6347. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6348. $as_echo_n "(cached) " >&6
  6349. else
  6350. if test -n "$ac_ct_DSYMUTIL"; then
  6351. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6352. else
  6353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6354. for as_dir in $PATH
  6355. do
  6356. IFS=$as_save_IFS
  6357. test -z "$as_dir" && as_dir=.
  6358. for ac_exec_ext in '' $ac_executable_extensions; do
  6359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6360. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6362. break 2
  6363. fi
  6364. done
  6365. done
  6366. IFS=$as_save_IFS
  6367. fi
  6368. fi
  6369. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6370. if test -n "$ac_ct_DSYMUTIL"; then
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6372. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6373. else
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6375. $as_echo "no" >&6; }
  6376. fi
  6377. if test "x$ac_ct_DSYMUTIL" = x; then
  6378. DSYMUTIL=":"
  6379. else
  6380. case $cross_compiling:$ac_tool_warned in
  6381. yes:)
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6383. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6384. ac_tool_warned=yes ;;
  6385. esac
  6386. DSYMUTIL=$ac_ct_DSYMUTIL
  6387. fi
  6388. else
  6389. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6390. fi
  6391. if test -n "$ac_tool_prefix"; then
  6392. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6393. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6395. $as_echo_n "checking for $ac_word... " >&6; }
  6396. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6397. $as_echo_n "(cached) " >&6
  6398. else
  6399. if test -n "$NMEDIT"; then
  6400. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6401. else
  6402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6403. for as_dir in $PATH
  6404. do
  6405. IFS=$as_save_IFS
  6406. test -z "$as_dir" && as_dir=.
  6407. for ac_exec_ext in '' $ac_executable_extensions; do
  6408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6409. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6411. break 2
  6412. fi
  6413. done
  6414. done
  6415. IFS=$as_save_IFS
  6416. fi
  6417. fi
  6418. NMEDIT=$ac_cv_prog_NMEDIT
  6419. if test -n "$NMEDIT"; then
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6421. $as_echo "$NMEDIT" >&6; }
  6422. else
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6424. $as_echo "no" >&6; }
  6425. fi
  6426. fi
  6427. if test -z "$ac_cv_prog_NMEDIT"; then
  6428. ac_ct_NMEDIT=$NMEDIT
  6429. # Extract the first word of "nmedit", so it can be a program name with args.
  6430. set dummy nmedit; ac_word=$2
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6432. $as_echo_n "checking for $ac_word... " >&6; }
  6433. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6434. $as_echo_n "(cached) " >&6
  6435. else
  6436. if test -n "$ac_ct_NMEDIT"; then
  6437. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6438. else
  6439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6440. for as_dir in $PATH
  6441. do
  6442. IFS=$as_save_IFS
  6443. test -z "$as_dir" && as_dir=.
  6444. for ac_exec_ext in '' $ac_executable_extensions; do
  6445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6446. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6448. break 2
  6449. fi
  6450. done
  6451. done
  6452. IFS=$as_save_IFS
  6453. fi
  6454. fi
  6455. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6456. if test -n "$ac_ct_NMEDIT"; then
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6458. $as_echo "$ac_ct_NMEDIT" >&6; }
  6459. else
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6461. $as_echo "no" >&6; }
  6462. fi
  6463. if test "x$ac_ct_NMEDIT" = x; then
  6464. NMEDIT=":"
  6465. else
  6466. case $cross_compiling:$ac_tool_warned in
  6467. yes:)
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6470. ac_tool_warned=yes ;;
  6471. esac
  6472. NMEDIT=$ac_ct_NMEDIT
  6473. fi
  6474. else
  6475. NMEDIT="$ac_cv_prog_NMEDIT"
  6476. fi
  6477. if test -n "$ac_tool_prefix"; then
  6478. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6479. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6481. $as_echo_n "checking for $ac_word... " >&6; }
  6482. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6483. $as_echo_n "(cached) " >&6
  6484. else
  6485. if test -n "$LIPO"; then
  6486. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6487. else
  6488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6489. for as_dir in $PATH
  6490. do
  6491. IFS=$as_save_IFS
  6492. test -z "$as_dir" && as_dir=.
  6493. for ac_exec_ext in '' $ac_executable_extensions; do
  6494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6495. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6497. break 2
  6498. fi
  6499. done
  6500. done
  6501. IFS=$as_save_IFS
  6502. fi
  6503. fi
  6504. LIPO=$ac_cv_prog_LIPO
  6505. if test -n "$LIPO"; then
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6507. $as_echo "$LIPO" >&6; }
  6508. else
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6510. $as_echo "no" >&6; }
  6511. fi
  6512. fi
  6513. if test -z "$ac_cv_prog_LIPO"; then
  6514. ac_ct_LIPO=$LIPO
  6515. # Extract the first word of "lipo", so it can be a program name with args.
  6516. set dummy lipo; ac_word=$2
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6518. $as_echo_n "checking for $ac_word... " >&6; }
  6519. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6520. $as_echo_n "(cached) " >&6
  6521. else
  6522. if test -n "$ac_ct_LIPO"; then
  6523. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6524. else
  6525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6526. for as_dir in $PATH
  6527. do
  6528. IFS=$as_save_IFS
  6529. test -z "$as_dir" && as_dir=.
  6530. for ac_exec_ext in '' $ac_executable_extensions; do
  6531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6532. ac_cv_prog_ac_ct_LIPO="lipo"
  6533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6534. break 2
  6535. fi
  6536. done
  6537. done
  6538. IFS=$as_save_IFS
  6539. fi
  6540. fi
  6541. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6542. if test -n "$ac_ct_LIPO"; then
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6544. $as_echo "$ac_ct_LIPO" >&6; }
  6545. else
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6547. $as_echo "no" >&6; }
  6548. fi
  6549. if test "x$ac_ct_LIPO" = x; then
  6550. LIPO=":"
  6551. else
  6552. case $cross_compiling:$ac_tool_warned in
  6553. yes:)
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6555. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6556. ac_tool_warned=yes ;;
  6557. esac
  6558. LIPO=$ac_ct_LIPO
  6559. fi
  6560. else
  6561. LIPO="$ac_cv_prog_LIPO"
  6562. fi
  6563. if test -n "$ac_tool_prefix"; then
  6564. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6565. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6567. $as_echo_n "checking for $ac_word... " >&6; }
  6568. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6569. $as_echo_n "(cached) " >&6
  6570. else
  6571. if test -n "$OTOOL"; then
  6572. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6573. else
  6574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6575. for as_dir in $PATH
  6576. do
  6577. IFS=$as_save_IFS
  6578. test -z "$as_dir" && as_dir=.
  6579. for ac_exec_ext in '' $ac_executable_extensions; do
  6580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6581. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6583. break 2
  6584. fi
  6585. done
  6586. done
  6587. IFS=$as_save_IFS
  6588. fi
  6589. fi
  6590. OTOOL=$ac_cv_prog_OTOOL
  6591. if test -n "$OTOOL"; then
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6593. $as_echo "$OTOOL" >&6; }
  6594. else
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6596. $as_echo "no" >&6; }
  6597. fi
  6598. fi
  6599. if test -z "$ac_cv_prog_OTOOL"; then
  6600. ac_ct_OTOOL=$OTOOL
  6601. # Extract the first word of "otool", so it can be a program name with args.
  6602. set dummy otool; ac_word=$2
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6604. $as_echo_n "checking for $ac_word... " >&6; }
  6605. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6606. $as_echo_n "(cached) " >&6
  6607. else
  6608. if test -n "$ac_ct_OTOOL"; then
  6609. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6610. else
  6611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6612. for as_dir in $PATH
  6613. do
  6614. IFS=$as_save_IFS
  6615. test -z "$as_dir" && as_dir=.
  6616. for ac_exec_ext in '' $ac_executable_extensions; do
  6617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6618. ac_cv_prog_ac_ct_OTOOL="otool"
  6619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6620. break 2
  6621. fi
  6622. done
  6623. done
  6624. IFS=$as_save_IFS
  6625. fi
  6626. fi
  6627. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6628. if test -n "$ac_ct_OTOOL"; then
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6630. $as_echo "$ac_ct_OTOOL" >&6; }
  6631. else
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6633. $as_echo "no" >&6; }
  6634. fi
  6635. if test "x$ac_ct_OTOOL" = x; then
  6636. OTOOL=":"
  6637. else
  6638. case $cross_compiling:$ac_tool_warned in
  6639. yes:)
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6642. ac_tool_warned=yes ;;
  6643. esac
  6644. OTOOL=$ac_ct_OTOOL
  6645. fi
  6646. else
  6647. OTOOL="$ac_cv_prog_OTOOL"
  6648. fi
  6649. if test -n "$ac_tool_prefix"; then
  6650. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6651. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6653. $as_echo_n "checking for $ac_word... " >&6; }
  6654. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6655. $as_echo_n "(cached) " >&6
  6656. else
  6657. if test -n "$OTOOL64"; then
  6658. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6659. else
  6660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6661. for as_dir in $PATH
  6662. do
  6663. IFS=$as_save_IFS
  6664. test -z "$as_dir" && as_dir=.
  6665. for ac_exec_ext in '' $ac_executable_extensions; do
  6666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6667. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6669. break 2
  6670. fi
  6671. done
  6672. done
  6673. IFS=$as_save_IFS
  6674. fi
  6675. fi
  6676. OTOOL64=$ac_cv_prog_OTOOL64
  6677. if test -n "$OTOOL64"; then
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6679. $as_echo "$OTOOL64" >&6; }
  6680. else
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. $as_echo "no" >&6; }
  6683. fi
  6684. fi
  6685. if test -z "$ac_cv_prog_OTOOL64"; then
  6686. ac_ct_OTOOL64=$OTOOL64
  6687. # Extract the first word of "otool64", so it can be a program name with args.
  6688. set dummy otool64; ac_word=$2
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6690. $as_echo_n "checking for $ac_word... " >&6; }
  6691. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6692. $as_echo_n "(cached) " >&6
  6693. else
  6694. if test -n "$ac_ct_OTOOL64"; then
  6695. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6696. else
  6697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6698. for as_dir in $PATH
  6699. do
  6700. IFS=$as_save_IFS
  6701. test -z "$as_dir" && as_dir=.
  6702. for ac_exec_ext in '' $ac_executable_extensions; do
  6703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6704. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6706. break 2
  6707. fi
  6708. done
  6709. done
  6710. IFS=$as_save_IFS
  6711. fi
  6712. fi
  6713. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6714. if test -n "$ac_ct_OTOOL64"; then
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6716. $as_echo "$ac_ct_OTOOL64" >&6; }
  6717. else
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6719. $as_echo "no" >&6; }
  6720. fi
  6721. if test "x$ac_ct_OTOOL64" = x; then
  6722. OTOOL64=":"
  6723. else
  6724. case $cross_compiling:$ac_tool_warned in
  6725. yes:)
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6727. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6728. ac_tool_warned=yes ;;
  6729. esac
  6730. OTOOL64=$ac_ct_OTOOL64
  6731. fi
  6732. else
  6733. OTOOL64="$ac_cv_prog_OTOOL64"
  6734. fi
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6736. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6737. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6738. $as_echo_n "(cached) " >&6
  6739. else
  6740. lt_cv_apple_cc_single_mod=no
  6741. if test -z "${LT_MULTI_MODULE}"; then
  6742. # By default we will add the -single_module flag. You can override
  6743. # by either setting the environment variable LT_MULTI_MODULE
  6744. # non-empty at configure time, or by adding -multi_module to the
  6745. # link flags.
  6746. rm -rf libconftest.dylib*
  6747. echo "int foo(void){return 1;}" > conftest.c
  6748. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6749. -dynamiclib -Wl,-single_module conftest.c" >&5
  6750. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6751. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6752. _lt_result=$?
  6753. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6754. lt_cv_apple_cc_single_mod=yes
  6755. else
  6756. cat conftest.err >&5
  6757. fi
  6758. rm -rf libconftest.dylib*
  6759. rm -f conftest.*
  6760. fi
  6761. fi
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6763. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6765. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6766. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6767. $as_echo_n "(cached) " >&6
  6768. else
  6769. lt_cv_ld_exported_symbols_list=no
  6770. save_LDFLAGS=$LDFLAGS
  6771. echo "_main" > conftest.sym
  6772. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6774. /* end confdefs.h. */
  6775. int
  6776. main ()
  6777. {
  6778. ;
  6779. return 0;
  6780. }
  6781. _ACEOF
  6782. if ac_fn_c_try_link "$LINENO"; then :
  6783. lt_cv_ld_exported_symbols_list=yes
  6784. else
  6785. lt_cv_ld_exported_symbols_list=no
  6786. fi
  6787. rm -f core conftest.err conftest.$ac_objext \
  6788. conftest$ac_exeext conftest.$ac_ext
  6789. LDFLAGS="$save_LDFLAGS"
  6790. fi
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6792. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6794. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6795. if test "${lt_cv_ld_force_load+set}" = set; then :
  6796. $as_echo_n "(cached) " >&6
  6797. else
  6798. lt_cv_ld_force_load=no
  6799. cat > conftest.c << _LT_EOF
  6800. int forced_loaded() { return 2;}
  6801. _LT_EOF
  6802. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6803. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6804. echo "$AR cru libconftest.a conftest.o" >&5
  6805. $AR cru libconftest.a conftest.o 2>&5
  6806. cat > conftest.c << _LT_EOF
  6807. int main() { return 0;}
  6808. _LT_EOF
  6809. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6810. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6811. _lt_result=$?
  6812. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6813. lt_cv_ld_force_load=yes
  6814. else
  6815. cat conftest.err >&5
  6816. fi
  6817. rm -f conftest.err libconftest.a conftest conftest.c
  6818. rm -rf conftest.dSYM
  6819. fi
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6821. $as_echo "$lt_cv_ld_force_load" >&6; }
  6822. case $host_os in
  6823. rhapsody* | darwin1.[012])
  6824. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6825. darwin1.*)
  6826. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6827. darwin*) # darwin 5.x on
  6828. # if running on 10.5 or later, the deployment target defaults
  6829. # to the OS version, if on x86, and 10.4, the deployment
  6830. # target defaults to 10.4. Don't you love it?
  6831. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6832. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6833. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6834. 10.[012][,.]*)
  6835. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6836. 10.*)
  6837. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6838. esac
  6839. ;;
  6840. esac
  6841. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6842. _lt_dar_single_mod='$single_module'
  6843. fi
  6844. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6845. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6846. else
  6847. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6848. fi
  6849. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6850. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6851. else
  6852. _lt_dsymutil=
  6853. fi
  6854. ;;
  6855. esac
  6856. for ac_header in dlfcn.h
  6857. do :
  6858. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6859. "
  6860. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6861. cat >>confdefs.h <<_ACEOF
  6862. #define HAVE_DLFCN_H 1
  6863. _ACEOF
  6864. fi
  6865. done
  6866. # Set options
  6867. enable_dlopen=no
  6868. enable_win32_dll=no
  6869. # Check whether --enable-shared was given.
  6870. if test "${enable_shared+set}" = set; then :
  6871. enableval=$enable_shared; p=${PACKAGE-default}
  6872. case $enableval in
  6873. yes) enable_shared=yes ;;
  6874. no) enable_shared=no ;;
  6875. *)
  6876. enable_shared=no
  6877. # Look at the argument we got. We use all the common list separators.
  6878. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6879. for pkg in $enableval; do
  6880. IFS="$lt_save_ifs"
  6881. if test "X$pkg" = "X$p"; then
  6882. enable_shared=yes
  6883. fi
  6884. done
  6885. IFS="$lt_save_ifs"
  6886. ;;
  6887. esac
  6888. else
  6889. enable_shared=yes
  6890. fi
  6891. # Check whether --enable-static was given.
  6892. if test "${enable_static+set}" = set; then :
  6893. enableval=$enable_static; p=${PACKAGE-default}
  6894. case $enableval in
  6895. yes) enable_static=yes ;;
  6896. no) enable_static=no ;;
  6897. *)
  6898. enable_static=no
  6899. # Look at the argument we got. We use all the common list separators.
  6900. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6901. for pkg in $enableval; do
  6902. IFS="$lt_save_ifs"
  6903. if test "X$pkg" = "X$p"; then
  6904. enable_static=yes
  6905. fi
  6906. done
  6907. IFS="$lt_save_ifs"
  6908. ;;
  6909. esac
  6910. else
  6911. enable_static=yes
  6912. fi
  6913. # Check whether --with-pic was given.
  6914. if test "${with_pic+set}" = set; then :
  6915. withval=$with_pic; pic_mode="$withval"
  6916. else
  6917. pic_mode=default
  6918. fi
  6919. test -z "$pic_mode" && pic_mode=default
  6920. # Check whether --enable-fast-install was given.
  6921. if test "${enable_fast_install+set}" = set; then :
  6922. enableval=$enable_fast_install; p=${PACKAGE-default}
  6923. case $enableval in
  6924. yes) enable_fast_install=yes ;;
  6925. no) enable_fast_install=no ;;
  6926. *)
  6927. enable_fast_install=no
  6928. # Look at the argument we got. We use all the common list separators.
  6929. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6930. for pkg in $enableval; do
  6931. IFS="$lt_save_ifs"
  6932. if test "X$pkg" = "X$p"; then
  6933. enable_fast_install=yes
  6934. fi
  6935. done
  6936. IFS="$lt_save_ifs"
  6937. ;;
  6938. esac
  6939. else
  6940. enable_fast_install=yes
  6941. fi
  6942. # This can be used to rebuild libtool when needed
  6943. LIBTOOL_DEPS="$ltmain"
  6944. # Always use our own libtool.
  6945. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6946. test -z "$LN_S" && LN_S="ln -s"
  6947. if test -n "${ZSH_VERSION+set}" ; then
  6948. setopt NO_GLOB_SUBST
  6949. fi
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6951. $as_echo_n "checking for objdir... " >&6; }
  6952. if test "${lt_cv_objdir+set}" = set; then :
  6953. $as_echo_n "(cached) " >&6
  6954. else
  6955. rm -f .libs 2>/dev/null
  6956. mkdir .libs 2>/dev/null
  6957. if test -d .libs; then
  6958. lt_cv_objdir=.libs
  6959. else
  6960. # MS-DOS does not allow filenames that begin with a dot.
  6961. lt_cv_objdir=_libs
  6962. fi
  6963. rmdir .libs 2>/dev/null
  6964. fi
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6966. $as_echo "$lt_cv_objdir" >&6; }
  6967. objdir=$lt_cv_objdir
  6968. cat >>confdefs.h <<_ACEOF
  6969. #define LT_OBJDIR "$lt_cv_objdir/"
  6970. _ACEOF
  6971. case $host_os in
  6972. aix3*)
  6973. # AIX sometimes has problems with the GCC collect2 program. For some
  6974. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6975. # vanish in a puff of smoke.
  6976. if test "X${COLLECT_NAMES+set}" != Xset; then
  6977. COLLECT_NAMES=
  6978. export COLLECT_NAMES
  6979. fi
  6980. ;;
  6981. esac
  6982. # Global variables:
  6983. ofile=libtool
  6984. can_build_shared=yes
  6985. # All known linkers require a `.a' archive for static linking (except MSVC,
  6986. # which needs '.lib').
  6987. libext=a
  6988. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6989. old_CC="$CC"
  6990. old_CFLAGS="$CFLAGS"
  6991. # Set sane defaults for various variables
  6992. test -z "$CC" && CC=cc
  6993. test -z "$LTCC" && LTCC=$CC
  6994. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6995. test -z "$LD" && LD=ld
  6996. test -z "$ac_objext" && ac_objext=o
  6997. for cc_temp in $compiler""; do
  6998. case $cc_temp in
  6999. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7000. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7001. \-*) ;;
  7002. *) break;;
  7003. esac
  7004. done
  7005. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7006. # Only perform the check for file, if the check method requires it
  7007. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7008. case $deplibs_check_method in
  7009. file_magic*)
  7010. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7012. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7013. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. case $MAGIC_CMD in
  7017. [\\/*] | ?:[\\/]*)
  7018. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7019. ;;
  7020. *)
  7021. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7022. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7023. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7024. for ac_dir in $ac_dummy; do
  7025. IFS="$lt_save_ifs"
  7026. test -z "$ac_dir" && ac_dir=.
  7027. if test -f $ac_dir/${ac_tool_prefix}file; then
  7028. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7029. if test -n "$file_magic_test_file"; then
  7030. case $deplibs_check_method in
  7031. "file_magic "*)
  7032. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7033. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7034. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7035. $EGREP "$file_magic_regex" > /dev/null; then
  7036. :
  7037. else
  7038. cat <<_LT_EOF 1>&2
  7039. *** Warning: the command libtool uses to detect shared libraries,
  7040. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7041. *** The result is that libtool may fail to recognize shared libraries
  7042. *** as such. This will affect the creation of libtool libraries that
  7043. *** depend on shared libraries, but programs linked with such libtool
  7044. *** libraries will work regardless of this problem. Nevertheless, you
  7045. *** may want to report the problem to your system manager and/or to
  7046. *** bug-libtool@gnu.org
  7047. _LT_EOF
  7048. fi ;;
  7049. esac
  7050. fi
  7051. break
  7052. fi
  7053. done
  7054. IFS="$lt_save_ifs"
  7055. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7056. ;;
  7057. esac
  7058. fi
  7059. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7060. if test -n "$MAGIC_CMD"; then
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7062. $as_echo "$MAGIC_CMD" >&6; }
  7063. else
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7065. $as_echo "no" >&6; }
  7066. fi
  7067. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7068. if test -n "$ac_tool_prefix"; then
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7070. $as_echo_n "checking for file... " >&6; }
  7071. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. case $MAGIC_CMD in
  7075. [\\/*] | ?:[\\/]*)
  7076. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7077. ;;
  7078. *)
  7079. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7080. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7081. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7082. for ac_dir in $ac_dummy; do
  7083. IFS="$lt_save_ifs"
  7084. test -z "$ac_dir" && ac_dir=.
  7085. if test -f $ac_dir/file; then
  7086. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7087. if test -n "$file_magic_test_file"; then
  7088. case $deplibs_check_method in
  7089. "file_magic "*)
  7090. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7091. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7092. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7093. $EGREP "$file_magic_regex" > /dev/null; then
  7094. :
  7095. else
  7096. cat <<_LT_EOF 1>&2
  7097. *** Warning: the command libtool uses to detect shared libraries,
  7098. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7099. *** The result is that libtool may fail to recognize shared libraries
  7100. *** as such. This will affect the creation of libtool libraries that
  7101. *** depend on shared libraries, but programs linked with such libtool
  7102. *** libraries will work regardless of this problem. Nevertheless, you
  7103. *** may want to report the problem to your system manager and/or to
  7104. *** bug-libtool@gnu.org
  7105. _LT_EOF
  7106. fi ;;
  7107. esac
  7108. fi
  7109. break
  7110. fi
  7111. done
  7112. IFS="$lt_save_ifs"
  7113. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7114. ;;
  7115. esac
  7116. fi
  7117. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7118. if test -n "$MAGIC_CMD"; then
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7120. $as_echo "$MAGIC_CMD" >&6; }
  7121. else
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7123. $as_echo "no" >&6; }
  7124. fi
  7125. else
  7126. MAGIC_CMD=:
  7127. fi
  7128. fi
  7129. fi
  7130. ;;
  7131. esac
  7132. # Use C for the default configuration in the libtool script
  7133. lt_save_CC="$CC"
  7134. ac_ext=c
  7135. ac_cpp='$CPP $CPPFLAGS'
  7136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7139. # Source file extension for C test sources.
  7140. ac_ext=c
  7141. # Object file extension for compiled C test sources.
  7142. objext=o
  7143. objext=$objext
  7144. # Code to be used in simple compile tests
  7145. lt_simple_compile_test_code="int some_variable = 0;"
  7146. # Code to be used in simple link tests
  7147. lt_simple_link_test_code='int main(){return(0);}'
  7148. # If no C compiler was specified, use CC.
  7149. LTCC=${LTCC-"$CC"}
  7150. # If no C compiler flags were specified, use CFLAGS.
  7151. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7152. # Allow CC to be a program name with arguments.
  7153. compiler=$CC
  7154. # Save the default compiler, since it gets overwritten when the other
  7155. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7156. compiler_DEFAULT=$CC
  7157. # save warnings/boilerplate of simple test code
  7158. ac_outfile=conftest.$ac_objext
  7159. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7160. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7161. _lt_compiler_boilerplate=`cat conftest.err`
  7162. $RM conftest*
  7163. ac_outfile=conftest.$ac_objext
  7164. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7165. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7166. _lt_linker_boilerplate=`cat conftest.err`
  7167. $RM -r conftest*
  7168. ## CAVEAT EMPTOR:
  7169. ## There is no encapsulation within the following macros, do not change
  7170. ## the running order or otherwise move them around unless you know exactly
  7171. ## what you are doing...
  7172. if test -n "$compiler"; then
  7173. lt_prog_compiler_no_builtin_flag=
  7174. if test "$GCC" = yes; then
  7175. case $cc_basename in
  7176. nvcc*)
  7177. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7178. *)
  7179. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7180. esac
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7182. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7183. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7184. $as_echo_n "(cached) " >&6
  7185. else
  7186. lt_cv_prog_compiler_rtti_exceptions=no
  7187. ac_outfile=conftest.$ac_objext
  7188. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7189. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7190. # Insert the option either (1) after the last *FLAGS variable, or
  7191. # (2) before a word containing "conftest.", or (3) at the end.
  7192. # Note that $ac_compile itself does not contain backslashes and begins
  7193. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7194. # The option is referenced via a variable to avoid confusing sed.
  7195. lt_compile=`echo "$ac_compile" | $SED \
  7196. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7197. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7198. -e 's:$: $lt_compiler_flag:'`
  7199. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7200. (eval "$lt_compile" 2>conftest.err)
  7201. ac_status=$?
  7202. cat conftest.err >&5
  7203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7204. if (exit $ac_status) && test -s "$ac_outfile"; then
  7205. # The compiler can only warn and ignore the option if not recognized
  7206. # So say no if there are warnings other than the usual output.
  7207. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7208. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7209. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7210. lt_cv_prog_compiler_rtti_exceptions=yes
  7211. fi
  7212. fi
  7213. $RM conftest*
  7214. fi
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7216. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7217. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7218. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7219. else
  7220. :
  7221. fi
  7222. fi
  7223. lt_prog_compiler_wl=
  7224. lt_prog_compiler_pic=
  7225. lt_prog_compiler_static=
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7227. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7228. if test "$GCC" = yes; then
  7229. lt_prog_compiler_wl='-Wl,'
  7230. lt_prog_compiler_static='-static'
  7231. case $host_os in
  7232. aix*)
  7233. # All AIX code is PIC.
  7234. if test "$host_cpu" = ia64; then
  7235. # AIX 5 now supports IA64 processor
  7236. lt_prog_compiler_static='-Bstatic'
  7237. fi
  7238. lt_prog_compiler_pic='-fPIC'
  7239. ;;
  7240. amigaos*)
  7241. case $host_cpu in
  7242. powerpc)
  7243. # see comment about AmigaOS4 .so support
  7244. lt_prog_compiler_pic='-fPIC'
  7245. ;;
  7246. m68k)
  7247. # FIXME: we need at least 68020 code to build shared libraries, but
  7248. # adding the `-m68020' flag to GCC prevents building anything better,
  7249. # like `-m68040'.
  7250. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7251. ;;
  7252. esac
  7253. ;;
  7254. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7255. # PIC is the default for these OSes.
  7256. ;;
  7257. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7258. # This hack is so that the source file can tell whether it is being
  7259. # built for inclusion in a dll (and should export symbols for example).
  7260. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7261. # (--disable-auto-import) libraries
  7262. lt_prog_compiler_pic='-DDLL_EXPORT'
  7263. ;;
  7264. darwin* | rhapsody*)
  7265. # PIC is the default on this platform
  7266. # Common symbols not allowed in MH_DYLIB files
  7267. lt_prog_compiler_pic='-fno-common'
  7268. ;;
  7269. haiku*)
  7270. # PIC is the default for Haiku.
  7271. # The "-static" flag exists, but is broken.
  7272. lt_prog_compiler_static=
  7273. ;;
  7274. hpux*)
  7275. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7276. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7277. # sets the default TLS model and affects inlining.
  7278. case $host_cpu in
  7279. hppa*64*)
  7280. # +Z the default
  7281. ;;
  7282. *)
  7283. lt_prog_compiler_pic='-fPIC'
  7284. ;;
  7285. esac
  7286. ;;
  7287. interix[3-9]*)
  7288. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7289. # Instead, we relocate shared libraries at runtime.
  7290. ;;
  7291. msdosdjgpp*)
  7292. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7293. # on systems that don't support them.
  7294. lt_prog_compiler_can_build_shared=no
  7295. enable_shared=no
  7296. ;;
  7297. *nto* | *qnx*)
  7298. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7299. # it will coredump.
  7300. lt_prog_compiler_pic='-fPIC -shared'
  7301. ;;
  7302. sysv4*MP*)
  7303. if test -d /usr/nec; then
  7304. lt_prog_compiler_pic=-Kconform_pic
  7305. fi
  7306. ;;
  7307. *)
  7308. lt_prog_compiler_pic='-fPIC'
  7309. ;;
  7310. esac
  7311. case $cc_basename in
  7312. nvcc*) # Cuda Compiler Driver 2.2
  7313. lt_prog_compiler_wl='-Xlinker '
  7314. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7315. ;;
  7316. esac
  7317. else
  7318. # PORTME Check for flag to pass linker flags through the system compiler.
  7319. case $host_os in
  7320. aix*)
  7321. lt_prog_compiler_wl='-Wl,'
  7322. if test "$host_cpu" = ia64; then
  7323. # AIX 5 now supports IA64 processor
  7324. lt_prog_compiler_static='-Bstatic'
  7325. else
  7326. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7327. fi
  7328. ;;
  7329. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7330. # This hack is so that the source file can tell whether it is being
  7331. # built for inclusion in a dll (and should export symbols for example).
  7332. lt_prog_compiler_pic='-DDLL_EXPORT'
  7333. ;;
  7334. hpux9* | hpux10* | hpux11*)
  7335. lt_prog_compiler_wl='-Wl,'
  7336. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7337. # not for PA HP-UX.
  7338. case $host_cpu in
  7339. hppa*64*|ia64*)
  7340. # +Z the default
  7341. ;;
  7342. *)
  7343. lt_prog_compiler_pic='+Z'
  7344. ;;
  7345. esac
  7346. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7347. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7348. ;;
  7349. irix5* | irix6* | nonstopux*)
  7350. lt_prog_compiler_wl='-Wl,'
  7351. # PIC (with -KPIC) is the default.
  7352. lt_prog_compiler_static='-non_shared'
  7353. ;;
  7354. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7355. case $cc_basename in
  7356. # old Intel for x86_64 which still supported -KPIC.
  7357. ecc*)
  7358. lt_prog_compiler_wl='-Wl,'
  7359. lt_prog_compiler_pic='-KPIC'
  7360. lt_prog_compiler_static='-static'
  7361. ;;
  7362. # icc used to be incompatible with GCC.
  7363. # ICC 10 doesn't accept -KPIC any more.
  7364. icc* | ifort*)
  7365. lt_prog_compiler_wl='-Wl,'
  7366. lt_prog_compiler_pic='-fPIC'
  7367. lt_prog_compiler_static='-static'
  7368. ;;
  7369. # Lahey Fortran 8.1.
  7370. lf95*)
  7371. lt_prog_compiler_wl='-Wl,'
  7372. lt_prog_compiler_pic='--shared'
  7373. lt_prog_compiler_static='--static'
  7374. ;;
  7375. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7376. # Portland Group compilers (*not* the Pentium gcc compiler,
  7377. # which looks to be a dead project)
  7378. lt_prog_compiler_wl='-Wl,'
  7379. lt_prog_compiler_pic='-fpic'
  7380. lt_prog_compiler_static='-Bstatic'
  7381. ;;
  7382. ccc*)
  7383. lt_prog_compiler_wl='-Wl,'
  7384. # All Alpha code is PIC.
  7385. lt_prog_compiler_static='-non_shared'
  7386. ;;
  7387. xl* | bgxl* | bgf* | mpixl*)
  7388. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7389. lt_prog_compiler_wl='-Wl,'
  7390. lt_prog_compiler_pic='-qpic'
  7391. lt_prog_compiler_static='-qstaticlink'
  7392. ;;
  7393. *)
  7394. case `$CC -V 2>&1 | sed 5q` in
  7395. *Sun\ F* | *Sun*Fortran*)
  7396. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7397. lt_prog_compiler_pic='-KPIC'
  7398. lt_prog_compiler_static='-Bstatic'
  7399. lt_prog_compiler_wl=''
  7400. ;;
  7401. *Sun\ C*)
  7402. # Sun C 5.9
  7403. lt_prog_compiler_pic='-KPIC'
  7404. lt_prog_compiler_static='-Bstatic'
  7405. lt_prog_compiler_wl='-Wl,'
  7406. ;;
  7407. esac
  7408. ;;
  7409. esac
  7410. ;;
  7411. newsos6)
  7412. lt_prog_compiler_pic='-KPIC'
  7413. lt_prog_compiler_static='-Bstatic'
  7414. ;;
  7415. *nto* | *qnx*)
  7416. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7417. # it will coredump.
  7418. lt_prog_compiler_pic='-fPIC -shared'
  7419. ;;
  7420. osf3* | osf4* | osf5*)
  7421. lt_prog_compiler_wl='-Wl,'
  7422. # All OSF/1 code is PIC.
  7423. lt_prog_compiler_static='-non_shared'
  7424. ;;
  7425. rdos*)
  7426. lt_prog_compiler_static='-non_shared'
  7427. ;;
  7428. solaris*)
  7429. lt_prog_compiler_pic='-KPIC'
  7430. lt_prog_compiler_static='-Bstatic'
  7431. case $cc_basename in
  7432. f77* | f90* | f95*)
  7433. lt_prog_compiler_wl='-Qoption ld ';;
  7434. *)
  7435. lt_prog_compiler_wl='-Wl,';;
  7436. esac
  7437. ;;
  7438. sunos4*)
  7439. lt_prog_compiler_wl='-Qoption ld '
  7440. lt_prog_compiler_pic='-PIC'
  7441. lt_prog_compiler_static='-Bstatic'
  7442. ;;
  7443. sysv4 | sysv4.2uw2* | sysv4.3*)
  7444. lt_prog_compiler_wl='-Wl,'
  7445. lt_prog_compiler_pic='-KPIC'
  7446. lt_prog_compiler_static='-Bstatic'
  7447. ;;
  7448. sysv4*MP*)
  7449. if test -d /usr/nec ;then
  7450. lt_prog_compiler_pic='-Kconform_pic'
  7451. lt_prog_compiler_static='-Bstatic'
  7452. fi
  7453. ;;
  7454. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7455. lt_prog_compiler_wl='-Wl,'
  7456. lt_prog_compiler_pic='-KPIC'
  7457. lt_prog_compiler_static='-Bstatic'
  7458. ;;
  7459. unicos*)
  7460. lt_prog_compiler_wl='-Wl,'
  7461. lt_prog_compiler_can_build_shared=no
  7462. ;;
  7463. uts4*)
  7464. lt_prog_compiler_pic='-pic'
  7465. lt_prog_compiler_static='-Bstatic'
  7466. ;;
  7467. *)
  7468. lt_prog_compiler_can_build_shared=no
  7469. ;;
  7470. esac
  7471. fi
  7472. case $host_os in
  7473. # For platforms which do not support PIC, -DPIC is meaningless:
  7474. *djgpp*)
  7475. lt_prog_compiler_pic=
  7476. ;;
  7477. *)
  7478. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7479. ;;
  7480. esac
  7481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7482. $as_echo "$lt_prog_compiler_pic" >&6; }
  7483. #
  7484. # Check to make sure the PIC flag actually works.
  7485. #
  7486. if test -n "$lt_prog_compiler_pic"; then
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7488. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7489. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7490. $as_echo_n "(cached) " >&6
  7491. else
  7492. lt_cv_prog_compiler_pic_works=no
  7493. ac_outfile=conftest.$ac_objext
  7494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7495. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7496. # Insert the option either (1) after the last *FLAGS variable, or
  7497. # (2) before a word containing "conftest.", or (3) at the end.
  7498. # Note that $ac_compile itself does not contain backslashes and begins
  7499. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7500. # The option is referenced via a variable to avoid confusing sed.
  7501. lt_compile=`echo "$ac_compile" | $SED \
  7502. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7503. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7504. -e 's:$: $lt_compiler_flag:'`
  7505. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7506. (eval "$lt_compile" 2>conftest.err)
  7507. ac_status=$?
  7508. cat conftest.err >&5
  7509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7510. if (exit $ac_status) && test -s "$ac_outfile"; then
  7511. # The compiler can only warn and ignore the option if not recognized
  7512. # So say no if there are warnings other than the usual output.
  7513. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7514. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7515. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7516. lt_cv_prog_compiler_pic_works=yes
  7517. fi
  7518. fi
  7519. $RM conftest*
  7520. fi
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7522. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7523. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7524. case $lt_prog_compiler_pic in
  7525. "" | " "*) ;;
  7526. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7527. esac
  7528. else
  7529. lt_prog_compiler_pic=
  7530. lt_prog_compiler_can_build_shared=no
  7531. fi
  7532. fi
  7533. #
  7534. # Check to make sure the static flag actually works.
  7535. #
  7536. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7538. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7539. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7540. $as_echo_n "(cached) " >&6
  7541. else
  7542. lt_cv_prog_compiler_static_works=no
  7543. save_LDFLAGS="$LDFLAGS"
  7544. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7545. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7546. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7547. # The linker can only warn and ignore the option if not recognized
  7548. # So say no if there are warnings
  7549. if test -s conftest.err; then
  7550. # Append any errors to the config.log.
  7551. cat conftest.err 1>&5
  7552. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7553. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7554. if diff conftest.exp conftest.er2 >/dev/null; then
  7555. lt_cv_prog_compiler_static_works=yes
  7556. fi
  7557. else
  7558. lt_cv_prog_compiler_static_works=yes
  7559. fi
  7560. fi
  7561. $RM -r conftest*
  7562. LDFLAGS="$save_LDFLAGS"
  7563. fi
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7565. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7566. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7567. :
  7568. else
  7569. lt_prog_compiler_static=
  7570. fi
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7572. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7573. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7574. $as_echo_n "(cached) " >&6
  7575. else
  7576. lt_cv_prog_compiler_c_o=no
  7577. $RM -r conftest 2>/dev/null
  7578. mkdir conftest
  7579. cd conftest
  7580. mkdir out
  7581. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7582. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7583. # Insert the option either (1) after the last *FLAGS variable, or
  7584. # (2) before a word containing "conftest.", or (3) at the end.
  7585. # Note that $ac_compile itself does not contain backslashes and begins
  7586. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7587. lt_compile=`echo "$ac_compile" | $SED \
  7588. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7589. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7590. -e 's:$: $lt_compiler_flag:'`
  7591. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7592. (eval "$lt_compile" 2>out/conftest.err)
  7593. ac_status=$?
  7594. cat out/conftest.err >&5
  7595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7596. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7597. then
  7598. # The compiler can only warn and ignore the option if not recognized
  7599. # So say no if there are warnings
  7600. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7601. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7602. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7603. lt_cv_prog_compiler_c_o=yes
  7604. fi
  7605. fi
  7606. chmod u+w . 2>&5
  7607. $RM conftest*
  7608. # SGI C++ compiler will create directory out/ii_files/ for
  7609. # template instantiation
  7610. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7611. $RM out/* && rmdir out
  7612. cd ..
  7613. $RM -r conftest
  7614. $RM conftest*
  7615. fi
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7617. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7619. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7620. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7621. $as_echo_n "(cached) " >&6
  7622. else
  7623. lt_cv_prog_compiler_c_o=no
  7624. $RM -r conftest 2>/dev/null
  7625. mkdir conftest
  7626. cd conftest
  7627. mkdir out
  7628. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7629. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7630. # Insert the option either (1) after the last *FLAGS variable, or
  7631. # (2) before a word containing "conftest.", or (3) at the end.
  7632. # Note that $ac_compile itself does not contain backslashes and begins
  7633. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7634. lt_compile=`echo "$ac_compile" | $SED \
  7635. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7636. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7637. -e 's:$: $lt_compiler_flag:'`
  7638. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7639. (eval "$lt_compile" 2>out/conftest.err)
  7640. ac_status=$?
  7641. cat out/conftest.err >&5
  7642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7643. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7644. then
  7645. # The compiler can only warn and ignore the option if not recognized
  7646. # So say no if there are warnings
  7647. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7648. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7649. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7650. lt_cv_prog_compiler_c_o=yes
  7651. fi
  7652. fi
  7653. chmod u+w . 2>&5
  7654. $RM conftest*
  7655. # SGI C++ compiler will create directory out/ii_files/ for
  7656. # template instantiation
  7657. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7658. $RM out/* && rmdir out
  7659. cd ..
  7660. $RM -r conftest
  7661. $RM conftest*
  7662. fi
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7664. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7665. hard_links="nottested"
  7666. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7667. # do not overwrite the value of need_locks provided by the user
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7669. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7670. hard_links=yes
  7671. $RM conftest*
  7672. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7673. touch conftest.a
  7674. ln conftest.a conftest.b 2>&5 || hard_links=no
  7675. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7677. $as_echo "$hard_links" >&6; }
  7678. if test "$hard_links" = no; then
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7680. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7681. need_locks=warn
  7682. fi
  7683. else
  7684. need_locks=no
  7685. fi
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7687. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7688. runpath_var=
  7689. allow_undefined_flag=
  7690. always_export_symbols=no
  7691. archive_cmds=
  7692. archive_expsym_cmds=
  7693. compiler_needs_object=no
  7694. enable_shared_with_static_runtimes=no
  7695. export_dynamic_flag_spec=
  7696. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7697. hardcode_automatic=no
  7698. hardcode_direct=no
  7699. hardcode_direct_absolute=no
  7700. hardcode_libdir_flag_spec=
  7701. hardcode_libdir_flag_spec_ld=
  7702. hardcode_libdir_separator=
  7703. hardcode_minus_L=no
  7704. hardcode_shlibpath_var=unsupported
  7705. inherit_rpath=no
  7706. link_all_deplibs=unknown
  7707. module_cmds=
  7708. module_expsym_cmds=
  7709. old_archive_from_new_cmds=
  7710. old_archive_from_expsyms_cmds=
  7711. thread_safe_flag_spec=
  7712. whole_archive_flag_spec=
  7713. # include_expsyms should be a list of space-separated symbols to be *always*
  7714. # included in the symbol list
  7715. include_expsyms=
  7716. # exclude_expsyms can be an extended regexp of symbols to exclude
  7717. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7718. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7719. # as well as any symbol that contains `d'.
  7720. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7721. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7722. # platforms (ab)use it in PIC code, but their linkers get confused if
  7723. # the symbol is explicitly referenced. Since portable code cannot
  7724. # rely on this symbol name, it's probably fine to never include it in
  7725. # preloaded symbol tables.
  7726. # Exclude shared library initialization/finalization symbols.
  7727. extract_expsyms_cmds=
  7728. case $host_os in
  7729. cygwin* | mingw* | pw32* | cegcc*)
  7730. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7731. # When not using gcc, we currently assume that we are using
  7732. # Microsoft Visual C++.
  7733. if test "$GCC" != yes; then
  7734. with_gnu_ld=no
  7735. fi
  7736. ;;
  7737. interix*)
  7738. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7739. with_gnu_ld=yes
  7740. ;;
  7741. openbsd*)
  7742. with_gnu_ld=no
  7743. ;;
  7744. esac
  7745. ld_shlibs=yes
  7746. # On some targets, GNU ld is compatible enough with the native linker
  7747. # that we're better off using the native interface for both.
  7748. lt_use_gnu_ld_interface=no
  7749. if test "$with_gnu_ld" = yes; then
  7750. case $host_os in
  7751. aix*)
  7752. # The AIX port of GNU ld has always aspired to compatibility
  7753. # with the native linker. However, as the warning in the GNU ld
  7754. # block says, versions before 2.19.5* couldn't really create working
  7755. # shared libraries, regardless of the interface used.
  7756. case `$LD -v 2>&1` in
  7757. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7758. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7759. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7760. *)
  7761. lt_use_gnu_ld_interface=yes
  7762. ;;
  7763. esac
  7764. ;;
  7765. *)
  7766. lt_use_gnu_ld_interface=yes
  7767. ;;
  7768. esac
  7769. fi
  7770. if test "$lt_use_gnu_ld_interface" = yes; then
  7771. # If archive_cmds runs LD, not CC, wlarc should be empty
  7772. wlarc='${wl}'
  7773. # Set some defaults for GNU ld with shared library support. These
  7774. # are reset later if shared libraries are not supported. Putting them
  7775. # here allows them to be overridden if necessary.
  7776. runpath_var=LD_RUN_PATH
  7777. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7778. export_dynamic_flag_spec='${wl}--export-dynamic'
  7779. # ancient GNU ld didn't support --whole-archive et. al.
  7780. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7781. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7782. else
  7783. whole_archive_flag_spec=
  7784. fi
  7785. supports_anon_versioning=no
  7786. case `$LD -v 2>&1` in
  7787. *GNU\ gold*) supports_anon_versioning=yes ;;
  7788. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7789. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7790. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7791. *\ 2.11.*) ;; # other 2.11 versions
  7792. *) supports_anon_versioning=yes ;;
  7793. esac
  7794. # See if GNU ld supports shared libraries.
  7795. case $host_os in
  7796. aix[3-9]*)
  7797. # On AIX/PPC, the GNU linker is very broken
  7798. if test "$host_cpu" != ia64; then
  7799. ld_shlibs=no
  7800. cat <<_LT_EOF 1>&2
  7801. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7802. *** to be unable to reliably create shared libraries on AIX.
  7803. *** Therefore, libtool is disabling shared libraries support. If you
  7804. *** really care for shared libraries, you may want to install binutils
  7805. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7806. *** You will then need to restart the configuration process.
  7807. _LT_EOF
  7808. fi
  7809. ;;
  7810. amigaos*)
  7811. case $host_cpu in
  7812. powerpc)
  7813. # see comment about AmigaOS4 .so support
  7814. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7815. archive_expsym_cmds=''
  7816. ;;
  7817. m68k)
  7818. 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)'
  7819. hardcode_libdir_flag_spec='-L$libdir'
  7820. hardcode_minus_L=yes
  7821. ;;
  7822. esac
  7823. ;;
  7824. beos*)
  7825. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7826. allow_undefined_flag=unsupported
  7827. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7828. # support --undefined. This deserves some investigation. FIXME
  7829. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7830. else
  7831. ld_shlibs=no
  7832. fi
  7833. ;;
  7834. cygwin* | mingw* | pw32* | cegcc*)
  7835. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7836. # as there is no search path for DLLs.
  7837. hardcode_libdir_flag_spec='-L$libdir'
  7838. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7839. allow_undefined_flag=unsupported
  7840. always_export_symbols=no
  7841. enable_shared_with_static_runtimes=yes
  7842. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7843. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7844. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7845. # If the export-symbols file already is a .def file (1st line
  7846. # is EXPORTS), use it as is; otherwise, prepend...
  7847. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7848. cp $export_symbols $output_objdir/$soname.def;
  7849. else
  7850. echo EXPORTS > $output_objdir/$soname.def;
  7851. cat $export_symbols >> $output_objdir/$soname.def;
  7852. fi~
  7853. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7854. else
  7855. ld_shlibs=no
  7856. fi
  7857. ;;
  7858. haiku*)
  7859. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7860. link_all_deplibs=yes
  7861. ;;
  7862. interix[3-9]*)
  7863. hardcode_direct=no
  7864. hardcode_shlibpath_var=no
  7865. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7866. export_dynamic_flag_spec='${wl}-E'
  7867. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7868. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7869. # default) and relocated if they conflict, which is a slow very memory
  7870. # consuming and fragmenting process. To avoid this, we pick a random,
  7871. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7872. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7873. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7874. 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'
  7875. ;;
  7876. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7877. tmp_diet=no
  7878. if test "$host_os" = linux-dietlibc; then
  7879. case $cc_basename in
  7880. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7881. esac
  7882. fi
  7883. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7884. && test "$tmp_diet" = no
  7885. then
  7886. tmp_addflag=' $pic_flag'
  7887. tmp_sharedflag='-shared'
  7888. case $cc_basename,$host_cpu in
  7889. pgcc*) # Portland Group C compiler
  7890. 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'
  7891. tmp_addflag=' $pic_flag'
  7892. ;;
  7893. pgf77* | pgf90* | pgf95* | pgfortran*)
  7894. # Portland Group f77 and f90 compilers
  7895. 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'
  7896. tmp_addflag=' $pic_flag -Mnomain' ;;
  7897. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7898. tmp_addflag=' -i_dynamic' ;;
  7899. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7900. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7901. ifc* | ifort*) # Intel Fortran compiler
  7902. tmp_addflag=' -nofor_main' ;;
  7903. lf95*) # Lahey Fortran 8.1
  7904. whole_archive_flag_spec=
  7905. tmp_sharedflag='--shared' ;;
  7906. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7907. tmp_sharedflag='-qmkshrobj'
  7908. tmp_addflag= ;;
  7909. nvcc*) # Cuda Compiler Driver 2.2
  7910. 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'
  7911. compiler_needs_object=yes
  7912. ;;
  7913. esac
  7914. case `$CC -V 2>&1 | sed 5q` in
  7915. *Sun\ C*) # Sun C 5.9
  7916. 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'
  7917. compiler_needs_object=yes
  7918. tmp_sharedflag='-G' ;;
  7919. *Sun\ F*) # Sun Fortran 8.3
  7920. tmp_sharedflag='-G' ;;
  7921. esac
  7922. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7923. if test "x$supports_anon_versioning" = xyes; then
  7924. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7925. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7926. echo "local: *; };" >> $output_objdir/$libname.ver~
  7927. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7928. fi
  7929. case $cc_basename in
  7930. xlf* | bgf* | bgxlf* | mpixlf*)
  7931. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7932. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7933. hardcode_libdir_flag_spec=
  7934. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7935. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7936. if test "x$supports_anon_versioning" = xyes; then
  7937. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7938. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7939. echo "local: *; };" >> $output_objdir/$libname.ver~
  7940. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7941. fi
  7942. ;;
  7943. esac
  7944. else
  7945. ld_shlibs=no
  7946. fi
  7947. ;;
  7948. netbsd*)
  7949. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7950. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7951. wlarc=
  7952. else
  7953. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7954. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7955. fi
  7956. ;;
  7957. solaris*)
  7958. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7959. ld_shlibs=no
  7960. cat <<_LT_EOF 1>&2
  7961. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7962. *** create shared libraries on Solaris systems. Therefore, libtool
  7963. *** is disabling shared libraries support. We urge you to upgrade GNU
  7964. *** binutils to release 2.9.1 or newer. Another option is to modify
  7965. *** your PATH or compiler configuration so that the native linker is
  7966. *** used, and then restart.
  7967. _LT_EOF
  7968. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7969. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7970. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7971. else
  7972. ld_shlibs=no
  7973. fi
  7974. ;;
  7975. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7976. case `$LD -v 2>&1` in
  7977. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7978. ld_shlibs=no
  7979. cat <<_LT_EOF 1>&2
  7980. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7981. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7982. *** is disabling shared libraries support. We urge you to upgrade GNU
  7983. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7984. *** your PATH or compiler configuration so that the native linker is
  7985. *** used, and then restart.
  7986. _LT_EOF
  7987. ;;
  7988. *)
  7989. # For security reasons, it is highly recommended that you always
  7990. # use absolute paths for naming shared libraries, and exclude the
  7991. # DT_RUNPATH tag from executables and libraries. But doing so
  7992. # requires that you compile everything twice, which is a pain.
  7993. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7994. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7995. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7996. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7997. else
  7998. ld_shlibs=no
  7999. fi
  8000. ;;
  8001. esac
  8002. ;;
  8003. sunos4*)
  8004. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8005. wlarc=
  8006. hardcode_direct=yes
  8007. hardcode_shlibpath_var=no
  8008. ;;
  8009. *)
  8010. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8011. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8012. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8013. else
  8014. ld_shlibs=no
  8015. fi
  8016. ;;
  8017. esac
  8018. if test "$ld_shlibs" = no; then
  8019. runpath_var=
  8020. hardcode_libdir_flag_spec=
  8021. export_dynamic_flag_spec=
  8022. whole_archive_flag_spec=
  8023. fi
  8024. else
  8025. # PORTME fill in a description of your system's linker (not GNU ld)
  8026. case $host_os in
  8027. aix3*)
  8028. allow_undefined_flag=unsupported
  8029. always_export_symbols=yes
  8030. 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'
  8031. # Note: this linker hardcodes the directories in LIBPATH if there
  8032. # are no directories specified by -L.
  8033. hardcode_minus_L=yes
  8034. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8035. # Neither direct hardcoding nor static linking is supported with a
  8036. # broken collect2.
  8037. hardcode_direct=unsupported
  8038. fi
  8039. ;;
  8040. aix[4-9]*)
  8041. if test "$host_cpu" = ia64; then
  8042. # On IA64, the linker does run time linking by default, so we don't
  8043. # have to do anything special.
  8044. aix_use_runtimelinking=no
  8045. exp_sym_flag='-Bexport'
  8046. no_entry_flag=""
  8047. else
  8048. # If we're using GNU nm, then we don't want the "-C" option.
  8049. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8050. # Also, AIX nm treats weak defined symbols like other global
  8051. # defined symbols, whereas GNU nm marks them as "W".
  8052. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8053. 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'
  8054. else
  8055. 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'
  8056. fi
  8057. aix_use_runtimelinking=no
  8058. # Test if we are trying to use run time linking or normal
  8059. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8060. # need to do runtime linking.
  8061. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8062. for ld_flag in $LDFLAGS; do
  8063. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8064. aix_use_runtimelinking=yes
  8065. break
  8066. fi
  8067. done
  8068. ;;
  8069. esac
  8070. exp_sym_flag='-bexport'
  8071. no_entry_flag='-bnoentry'
  8072. fi
  8073. # When large executables or shared objects are built, AIX ld can
  8074. # have problems creating the table of contents. If linking a library
  8075. # or program results in "error TOC overflow" add -mminimal-toc to
  8076. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8077. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8078. archive_cmds=''
  8079. hardcode_direct=yes
  8080. hardcode_direct_absolute=yes
  8081. hardcode_libdir_separator=':'
  8082. link_all_deplibs=yes
  8083. file_list_spec='${wl}-f,'
  8084. if test "$GCC" = yes; then
  8085. case $host_os in aix4.[012]|aix4.[012].*)
  8086. # We only want to do this on AIX 4.2 and lower, the check
  8087. # below for broken collect2 doesn't work under 4.3+
  8088. collect2name=`${CC} -print-prog-name=collect2`
  8089. if test -f "$collect2name" &&
  8090. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8091. then
  8092. # We have reworked collect2
  8093. :
  8094. else
  8095. # We have old collect2
  8096. hardcode_direct=unsupported
  8097. # It fails to find uninstalled libraries when the uninstalled
  8098. # path is not listed in the libpath. Setting hardcode_minus_L
  8099. # to unsupported forces relinking
  8100. hardcode_minus_L=yes
  8101. hardcode_libdir_flag_spec='-L$libdir'
  8102. hardcode_libdir_separator=
  8103. fi
  8104. ;;
  8105. esac
  8106. shared_flag='-shared'
  8107. if test "$aix_use_runtimelinking" = yes; then
  8108. shared_flag="$shared_flag "'${wl}-G'
  8109. fi
  8110. else
  8111. # not using gcc
  8112. if test "$host_cpu" = ia64; then
  8113. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8114. # chokes on -Wl,-G. The following line is correct:
  8115. shared_flag='-G'
  8116. else
  8117. if test "$aix_use_runtimelinking" = yes; then
  8118. shared_flag='${wl}-G'
  8119. else
  8120. shared_flag='${wl}-bM:SRE'
  8121. fi
  8122. fi
  8123. fi
  8124. export_dynamic_flag_spec='${wl}-bexpall'
  8125. # It seems that -bexpall does not export symbols beginning with
  8126. # underscore (_), so it is better to generate a list of symbols to export.
  8127. always_export_symbols=yes
  8128. if test "$aix_use_runtimelinking" = yes; then
  8129. # Warning - without using the other runtime loading flags (-brtl),
  8130. # -berok will link without error, but may produce a broken library.
  8131. allow_undefined_flag='-berok'
  8132. # Determine the default libpath from the value encoded in an
  8133. # empty executable.
  8134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8135. /* end confdefs.h. */
  8136. int
  8137. main ()
  8138. {
  8139. ;
  8140. return 0;
  8141. }
  8142. _ACEOF
  8143. if ac_fn_c_try_link "$LINENO"; then :
  8144. lt_aix_libpath_sed='
  8145. /Import File Strings/,/^$/ {
  8146. /^0/ {
  8147. s/^0 *\(.*\)$/\1/
  8148. p
  8149. }
  8150. }'
  8151. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8152. # Check for a 64-bit object if we didn't find anything.
  8153. if test -z "$aix_libpath"; then
  8154. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8155. fi
  8156. fi
  8157. rm -f core conftest.err conftest.$ac_objext \
  8158. conftest$ac_exeext conftest.$ac_ext
  8159. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8160. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8161. 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"
  8162. else
  8163. if test "$host_cpu" = ia64; then
  8164. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8165. allow_undefined_flag="-z nodefs"
  8166. 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"
  8167. else
  8168. # Determine the default libpath from the value encoded in an
  8169. # empty executable.
  8170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8171. /* end confdefs.h. */
  8172. int
  8173. main ()
  8174. {
  8175. ;
  8176. return 0;
  8177. }
  8178. _ACEOF
  8179. if ac_fn_c_try_link "$LINENO"; then :
  8180. lt_aix_libpath_sed='
  8181. /Import File Strings/,/^$/ {
  8182. /^0/ {
  8183. s/^0 *\(.*\)$/\1/
  8184. p
  8185. }
  8186. }'
  8187. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8188. # Check for a 64-bit object if we didn't find anything.
  8189. if test -z "$aix_libpath"; then
  8190. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8191. fi
  8192. fi
  8193. rm -f core conftest.err conftest.$ac_objext \
  8194. conftest$ac_exeext conftest.$ac_ext
  8195. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8196. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8197. # Warning - without using the other run time loading flags,
  8198. # -berok will link without error, but may produce a broken library.
  8199. no_undefined_flag=' ${wl}-bernotok'
  8200. allow_undefined_flag=' ${wl}-berok'
  8201. if test "$with_gnu_ld" = yes; then
  8202. # We only use this code for GNU lds that support --whole-archive.
  8203. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8204. else
  8205. # Exported symbols can be pulled into shared objects from archives
  8206. whole_archive_flag_spec='$convenience'
  8207. fi
  8208. archive_cmds_need_lc=yes
  8209. # This is similar to how AIX traditionally builds its shared libraries.
  8210. 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'
  8211. fi
  8212. fi
  8213. ;;
  8214. amigaos*)
  8215. case $host_cpu in
  8216. powerpc)
  8217. # see comment about AmigaOS4 .so support
  8218. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8219. archive_expsym_cmds=''
  8220. ;;
  8221. m68k)
  8222. 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)'
  8223. hardcode_libdir_flag_spec='-L$libdir'
  8224. hardcode_minus_L=yes
  8225. ;;
  8226. esac
  8227. ;;
  8228. bsdi[45]*)
  8229. export_dynamic_flag_spec=-rdynamic
  8230. ;;
  8231. cygwin* | mingw* | pw32* | cegcc*)
  8232. # When not using gcc, we currently assume that we are using
  8233. # Microsoft Visual C++.
  8234. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8235. # no search path for DLLs.
  8236. hardcode_libdir_flag_spec=' '
  8237. allow_undefined_flag=unsupported
  8238. # Tell ltmain to make .lib files, not .a files.
  8239. libext=lib
  8240. # Tell ltmain to make .dll files, not .so files.
  8241. shrext_cmds=".dll"
  8242. # FIXME: Setting linknames here is a bad hack.
  8243. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8244. # The linker will automatically build a .lib file if we build a DLL.
  8245. old_archive_from_new_cmds='true'
  8246. # FIXME: Should let the user specify the lib program.
  8247. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8248. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8249. enable_shared_with_static_runtimes=yes
  8250. ;;
  8251. darwin* | rhapsody*)
  8252. archive_cmds_need_lc=no
  8253. hardcode_direct=no
  8254. hardcode_automatic=yes
  8255. hardcode_shlibpath_var=unsupported
  8256. if test "$lt_cv_ld_force_load" = "yes"; then
  8257. 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\"`'
  8258. else
  8259. whole_archive_flag_spec=''
  8260. fi
  8261. link_all_deplibs=yes
  8262. allow_undefined_flag="$_lt_dar_allow_undefined"
  8263. case $cc_basename in
  8264. ifort*) _lt_dar_can_shared=yes ;;
  8265. *) _lt_dar_can_shared=$GCC ;;
  8266. esac
  8267. if test "$_lt_dar_can_shared" = "yes"; then
  8268. output_verbose_link_cmd=func_echo_all
  8269. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8270. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8271. 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}"
  8272. 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}"
  8273. else
  8274. ld_shlibs=no
  8275. fi
  8276. ;;
  8277. dgux*)
  8278. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8279. hardcode_libdir_flag_spec='-L$libdir'
  8280. hardcode_shlibpath_var=no
  8281. ;;
  8282. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8283. # support. Future versions do this automatically, but an explicit c++rt0.o
  8284. # does not break anything, and helps significantly (at the cost of a little
  8285. # extra space).
  8286. freebsd2.2*)
  8287. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8288. hardcode_libdir_flag_spec='-R$libdir'
  8289. hardcode_direct=yes
  8290. hardcode_shlibpath_var=no
  8291. ;;
  8292. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8293. freebsd2.*)
  8294. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8295. hardcode_direct=yes
  8296. hardcode_minus_L=yes
  8297. hardcode_shlibpath_var=no
  8298. ;;
  8299. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8300. freebsd* | dragonfly*)
  8301. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8302. hardcode_libdir_flag_spec='-R$libdir'
  8303. hardcode_direct=yes
  8304. hardcode_shlibpath_var=no
  8305. ;;
  8306. hpux9*)
  8307. if test "$GCC" = yes; then
  8308. 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'
  8309. else
  8310. 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'
  8311. fi
  8312. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8313. hardcode_libdir_separator=:
  8314. hardcode_direct=yes
  8315. # hardcode_minus_L: Not really in the search PATH,
  8316. # but as the default location of the library.
  8317. hardcode_minus_L=yes
  8318. export_dynamic_flag_spec='${wl}-E'
  8319. ;;
  8320. hpux10*)
  8321. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8322. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8323. else
  8324. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8325. fi
  8326. if test "$with_gnu_ld" = no; then
  8327. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8328. hardcode_libdir_flag_spec_ld='+b $libdir'
  8329. hardcode_libdir_separator=:
  8330. hardcode_direct=yes
  8331. hardcode_direct_absolute=yes
  8332. export_dynamic_flag_spec='${wl}-E'
  8333. # hardcode_minus_L: Not really in the search PATH,
  8334. # but as the default location of the library.
  8335. hardcode_minus_L=yes
  8336. fi
  8337. ;;
  8338. hpux11*)
  8339. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8340. case $host_cpu in
  8341. hppa*64*)
  8342. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8343. ;;
  8344. ia64*)
  8345. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8346. ;;
  8347. *)
  8348. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8349. ;;
  8350. esac
  8351. else
  8352. case $host_cpu in
  8353. hppa*64*)
  8354. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8355. ;;
  8356. ia64*)
  8357. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8358. ;;
  8359. *)
  8360. # Older versions of the 11.00 compiler do not understand -b yet
  8361. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8363. $as_echo_n "checking if $CC understands -b... " >&6; }
  8364. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8365. $as_echo_n "(cached) " >&6
  8366. else
  8367. lt_cv_prog_compiler__b=no
  8368. save_LDFLAGS="$LDFLAGS"
  8369. LDFLAGS="$LDFLAGS -b"
  8370. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8371. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8372. # The linker can only warn and ignore the option if not recognized
  8373. # So say no if there are warnings
  8374. if test -s conftest.err; then
  8375. # Append any errors to the config.log.
  8376. cat conftest.err 1>&5
  8377. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8378. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8379. if diff conftest.exp conftest.er2 >/dev/null; then
  8380. lt_cv_prog_compiler__b=yes
  8381. fi
  8382. else
  8383. lt_cv_prog_compiler__b=yes
  8384. fi
  8385. fi
  8386. $RM -r conftest*
  8387. LDFLAGS="$save_LDFLAGS"
  8388. fi
  8389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8390. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8391. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8392. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8393. else
  8394. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8395. fi
  8396. ;;
  8397. esac
  8398. fi
  8399. if test "$with_gnu_ld" = no; then
  8400. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8401. hardcode_libdir_separator=:
  8402. case $host_cpu in
  8403. hppa*64*|ia64*)
  8404. hardcode_direct=no
  8405. hardcode_shlibpath_var=no
  8406. ;;
  8407. *)
  8408. hardcode_direct=yes
  8409. hardcode_direct_absolute=yes
  8410. export_dynamic_flag_spec='${wl}-E'
  8411. # hardcode_minus_L: Not really in the search PATH,
  8412. # but as the default location of the library.
  8413. hardcode_minus_L=yes
  8414. ;;
  8415. esac
  8416. fi
  8417. ;;
  8418. irix5* | irix6* | nonstopux*)
  8419. if test "$GCC" = yes; then
  8420. 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'
  8421. # Try to use the -exported_symbol ld option, if it does not
  8422. # work, assume that -exports_file does not work either and
  8423. # implicitly export all symbols.
  8424. save_LDFLAGS="$LDFLAGS"
  8425. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8427. /* end confdefs.h. */
  8428. int foo(void) {}
  8429. _ACEOF
  8430. if ac_fn_c_try_link "$LINENO"; then :
  8431. 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'
  8432. fi
  8433. rm -f core conftest.err conftest.$ac_objext \
  8434. conftest$ac_exeext conftest.$ac_ext
  8435. LDFLAGS="$save_LDFLAGS"
  8436. else
  8437. 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'
  8438. 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'
  8439. fi
  8440. archive_cmds_need_lc='no'
  8441. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8442. hardcode_libdir_separator=:
  8443. inherit_rpath=yes
  8444. link_all_deplibs=yes
  8445. ;;
  8446. netbsd*)
  8447. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8448. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8449. else
  8450. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8451. fi
  8452. hardcode_libdir_flag_spec='-R$libdir'
  8453. hardcode_direct=yes
  8454. hardcode_shlibpath_var=no
  8455. ;;
  8456. newsos6)
  8457. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8458. hardcode_direct=yes
  8459. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8460. hardcode_libdir_separator=:
  8461. hardcode_shlibpath_var=no
  8462. ;;
  8463. *nto* | *qnx*)
  8464. ;;
  8465. openbsd*)
  8466. if test -f /usr/libexec/ld.so; then
  8467. hardcode_direct=yes
  8468. hardcode_shlibpath_var=no
  8469. hardcode_direct_absolute=yes
  8470. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8471. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8472. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8473. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8474. export_dynamic_flag_spec='${wl}-E'
  8475. else
  8476. case $host_os in
  8477. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8478. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8479. hardcode_libdir_flag_spec='-R$libdir'
  8480. ;;
  8481. *)
  8482. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8483. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8484. ;;
  8485. esac
  8486. fi
  8487. else
  8488. ld_shlibs=no
  8489. fi
  8490. ;;
  8491. os2*)
  8492. hardcode_libdir_flag_spec='-L$libdir'
  8493. hardcode_minus_L=yes
  8494. allow_undefined_flag=unsupported
  8495. 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'
  8496. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8497. ;;
  8498. osf3*)
  8499. if test "$GCC" = yes; then
  8500. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8501. 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'
  8502. else
  8503. allow_undefined_flag=' -expect_unresolved \*'
  8504. 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'
  8505. fi
  8506. archive_cmds_need_lc='no'
  8507. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8508. hardcode_libdir_separator=:
  8509. ;;
  8510. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8511. if test "$GCC" = yes; then
  8512. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8513. 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'
  8514. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8515. else
  8516. allow_undefined_flag=' -expect_unresolved \*'
  8517. 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'
  8518. 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~
  8519. $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'
  8520. # Both c and cxx compiler support -rpath directly
  8521. hardcode_libdir_flag_spec='-rpath $libdir'
  8522. fi
  8523. archive_cmds_need_lc='no'
  8524. hardcode_libdir_separator=:
  8525. ;;
  8526. solaris*)
  8527. no_undefined_flag=' -z defs'
  8528. if test "$GCC" = yes; then
  8529. wlarc='${wl}'
  8530. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8531. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8532. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8533. else
  8534. case `$CC -V 2>&1` in
  8535. *"Compilers 5.0"*)
  8536. wlarc=''
  8537. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8538. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8539. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8540. ;;
  8541. *)
  8542. wlarc='${wl}'
  8543. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8544. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8545. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8546. ;;
  8547. esac
  8548. fi
  8549. hardcode_libdir_flag_spec='-R$libdir'
  8550. hardcode_shlibpath_var=no
  8551. case $host_os in
  8552. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8553. *)
  8554. # The compiler driver will combine and reorder linker options,
  8555. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8556. # but is careful enough not to reorder.
  8557. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8558. if test "$GCC" = yes; then
  8559. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8560. else
  8561. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8562. fi
  8563. ;;
  8564. esac
  8565. link_all_deplibs=yes
  8566. ;;
  8567. sunos4*)
  8568. if test "x$host_vendor" = xsequent; then
  8569. # Use $CC to link under sequent, because it throws in some extra .o
  8570. # files that make .init and .fini sections work.
  8571. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8572. else
  8573. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8574. fi
  8575. hardcode_libdir_flag_spec='-L$libdir'
  8576. hardcode_direct=yes
  8577. hardcode_minus_L=yes
  8578. hardcode_shlibpath_var=no
  8579. ;;
  8580. sysv4)
  8581. case $host_vendor in
  8582. sni)
  8583. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8584. hardcode_direct=yes # is this really true???
  8585. ;;
  8586. siemens)
  8587. ## LD is ld it makes a PLAMLIB
  8588. ## CC just makes a GrossModule.
  8589. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8590. reload_cmds='$CC -r -o $output$reload_objs'
  8591. hardcode_direct=no
  8592. ;;
  8593. motorola)
  8594. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8595. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8596. ;;
  8597. esac
  8598. runpath_var='LD_RUN_PATH'
  8599. hardcode_shlibpath_var=no
  8600. ;;
  8601. sysv4.3*)
  8602. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8603. hardcode_shlibpath_var=no
  8604. export_dynamic_flag_spec='-Bexport'
  8605. ;;
  8606. sysv4*MP*)
  8607. if test -d /usr/nec; then
  8608. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8609. hardcode_shlibpath_var=no
  8610. runpath_var=LD_RUN_PATH
  8611. hardcode_runpath_var=yes
  8612. ld_shlibs=yes
  8613. fi
  8614. ;;
  8615. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8616. no_undefined_flag='${wl}-z,text'
  8617. archive_cmds_need_lc=no
  8618. hardcode_shlibpath_var=no
  8619. runpath_var='LD_RUN_PATH'
  8620. if test "$GCC" = yes; then
  8621. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8622. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8623. else
  8624. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8625. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8626. fi
  8627. ;;
  8628. sysv5* | sco3.2v5* | sco5v6*)
  8629. # Note: We can NOT use -z defs as we might desire, because we do not
  8630. # link with -lc, and that would cause any symbols used from libc to
  8631. # always be unresolved, which means just about no library would
  8632. # ever link correctly. If we're not using GNU ld we use -z text
  8633. # though, which does catch some bad symbols but isn't as heavy-handed
  8634. # as -z defs.
  8635. no_undefined_flag='${wl}-z,text'
  8636. allow_undefined_flag='${wl}-z,nodefs'
  8637. archive_cmds_need_lc=no
  8638. hardcode_shlibpath_var=no
  8639. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8640. hardcode_libdir_separator=':'
  8641. link_all_deplibs=yes
  8642. export_dynamic_flag_spec='${wl}-Bexport'
  8643. runpath_var='LD_RUN_PATH'
  8644. if test "$GCC" = yes; then
  8645. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8646. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8647. else
  8648. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8649. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8650. fi
  8651. ;;
  8652. uts4*)
  8653. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8654. hardcode_libdir_flag_spec='-L$libdir'
  8655. hardcode_shlibpath_var=no
  8656. ;;
  8657. *)
  8658. ld_shlibs=no
  8659. ;;
  8660. esac
  8661. if test x$host_vendor = xsni; then
  8662. case $host in
  8663. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8664. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8665. ;;
  8666. esac
  8667. fi
  8668. fi
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8670. $as_echo "$ld_shlibs" >&6; }
  8671. test "$ld_shlibs" = no && can_build_shared=no
  8672. with_gnu_ld=$with_gnu_ld
  8673. #
  8674. # Do we need to explicitly link libc?
  8675. #
  8676. case "x$archive_cmds_need_lc" in
  8677. x|xyes)
  8678. # Assume -lc should be added
  8679. archive_cmds_need_lc=yes
  8680. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8681. case $archive_cmds in
  8682. *'~'*)
  8683. # FIXME: we may have to deal with multi-command sequences.
  8684. ;;
  8685. '$CC '*)
  8686. # Test whether the compiler implicitly links with -lc since on some
  8687. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8688. # to ld, don't add -lc before -lgcc.
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8690. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8691. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8692. $as_echo_n "(cached) " >&6
  8693. else
  8694. $RM conftest*
  8695. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8696. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8697. (eval $ac_compile) 2>&5
  8698. ac_status=$?
  8699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8700. test $ac_status = 0; } 2>conftest.err; then
  8701. soname=conftest
  8702. lib=conftest
  8703. libobjs=conftest.$ac_objext
  8704. deplibs=
  8705. wl=$lt_prog_compiler_wl
  8706. pic_flag=$lt_prog_compiler_pic
  8707. compiler_flags=-v
  8708. linker_flags=-v
  8709. verstring=
  8710. output_objdir=.
  8711. libname=conftest
  8712. lt_save_allow_undefined_flag=$allow_undefined_flag
  8713. allow_undefined_flag=
  8714. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8715. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8716. ac_status=$?
  8717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8718. test $ac_status = 0; }
  8719. then
  8720. lt_cv_archive_cmds_need_lc=no
  8721. else
  8722. lt_cv_archive_cmds_need_lc=yes
  8723. fi
  8724. allow_undefined_flag=$lt_save_allow_undefined_flag
  8725. else
  8726. cat conftest.err 1>&5
  8727. fi
  8728. $RM conftest*
  8729. fi
  8730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8731. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8732. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8733. ;;
  8734. esac
  8735. fi
  8736. ;;
  8737. esac
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8739. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8740. if test "$GCC" = yes; then
  8741. case $host_os in
  8742. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8743. *) lt_awk_arg="/^libraries:/" ;;
  8744. esac
  8745. case $host_os in
  8746. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8747. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8748. esac
  8749. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8750. case $lt_search_path_spec in
  8751. *\;*)
  8752. # if the path contains ";" then we assume it to be the separator
  8753. # otherwise default to the standard path separator (i.e. ":") - it is
  8754. # assumed that no part of a normal pathname contains ";" but that should
  8755. # okay in the real world where ";" in dirpaths is itself problematic.
  8756. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8757. ;;
  8758. *)
  8759. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8760. ;;
  8761. esac
  8762. # Ok, now we have the path, separated by spaces, we can step through it
  8763. # and add multilib dir if necessary.
  8764. lt_tmp_lt_search_path_spec=
  8765. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8766. for lt_sys_path in $lt_search_path_spec; do
  8767. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8768. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8769. else
  8770. test -d "$lt_sys_path" && \
  8771. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8772. fi
  8773. done
  8774. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8775. BEGIN {RS=" "; FS="/|\n";} {
  8776. lt_foo="";
  8777. lt_count=0;
  8778. for (lt_i = NF; lt_i > 0; lt_i--) {
  8779. if ($lt_i != "" && $lt_i != ".") {
  8780. if ($lt_i == "..") {
  8781. lt_count++;
  8782. } else {
  8783. if (lt_count == 0) {
  8784. lt_foo="/" $lt_i lt_foo;
  8785. } else {
  8786. lt_count--;
  8787. }
  8788. }
  8789. }
  8790. }
  8791. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8792. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8793. }'`
  8794. # AWK program above erroneously prepends '/' to C:/dos/paths
  8795. # for these hosts.
  8796. case $host_os in
  8797. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8798. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8799. esac
  8800. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8801. else
  8802. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8803. fi
  8804. library_names_spec=
  8805. libname_spec='lib$name'
  8806. soname_spec=
  8807. shrext_cmds=".so"
  8808. postinstall_cmds=
  8809. postuninstall_cmds=
  8810. finish_cmds=
  8811. finish_eval=
  8812. shlibpath_var=
  8813. shlibpath_overrides_runpath=unknown
  8814. version_type=none
  8815. dynamic_linker="$host_os ld.so"
  8816. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8817. need_lib_prefix=unknown
  8818. hardcode_into_libs=no
  8819. # when you set need_version to no, make sure it does not cause -set_version
  8820. # flags to be left without arguments
  8821. need_version=unknown
  8822. case $host_os in
  8823. aix3*)
  8824. version_type=linux
  8825. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8826. shlibpath_var=LIBPATH
  8827. # AIX 3 has no versioning support, so we append a major version to the name.
  8828. soname_spec='${libname}${release}${shared_ext}$major'
  8829. ;;
  8830. aix[4-9]*)
  8831. version_type=linux
  8832. need_lib_prefix=no
  8833. need_version=no
  8834. hardcode_into_libs=yes
  8835. if test "$host_cpu" = ia64; then
  8836. # AIX 5 supports IA64
  8837. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8838. shlibpath_var=LD_LIBRARY_PATH
  8839. else
  8840. # With GCC up to 2.95.x, collect2 would create an import file
  8841. # for dependence libraries. The import file would start with
  8842. # the line `#! .'. This would cause the generated library to
  8843. # depend on `.', always an invalid library. This was fixed in
  8844. # development snapshots of GCC prior to 3.0.
  8845. case $host_os in
  8846. aix4 | aix4.[01] | aix4.[01].*)
  8847. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8848. echo ' yes '
  8849. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8850. :
  8851. else
  8852. can_build_shared=no
  8853. fi
  8854. ;;
  8855. esac
  8856. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8857. # soname into executable. Probably we can add versioning support to
  8858. # collect2, so additional links can be useful in future.
  8859. if test "$aix_use_runtimelinking" = yes; then
  8860. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8861. # instead of lib<name>.a to let people know that these are not
  8862. # typical AIX shared libraries.
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8864. else
  8865. # We preserve .a as extension for shared libraries through AIX4.2
  8866. # and later when we are not doing run time linking.
  8867. library_names_spec='${libname}${release}.a $libname.a'
  8868. soname_spec='${libname}${release}${shared_ext}$major'
  8869. fi
  8870. shlibpath_var=LIBPATH
  8871. fi
  8872. ;;
  8873. amigaos*)
  8874. case $host_cpu in
  8875. powerpc)
  8876. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8877. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8879. ;;
  8880. m68k)
  8881. library_names_spec='$libname.ixlibrary $libname.a'
  8882. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8883. 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'
  8884. ;;
  8885. esac
  8886. ;;
  8887. beos*)
  8888. library_names_spec='${libname}${shared_ext}'
  8889. dynamic_linker="$host_os ld.so"
  8890. shlibpath_var=LIBRARY_PATH
  8891. ;;
  8892. bsdi[45]*)
  8893. version_type=linux
  8894. need_version=no
  8895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8896. soname_spec='${libname}${release}${shared_ext}$major'
  8897. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8898. shlibpath_var=LD_LIBRARY_PATH
  8899. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8900. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8901. # the default ld.so.conf also contains /usr/contrib/lib and
  8902. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8903. # libtool to hard-code these into programs
  8904. ;;
  8905. cygwin* | mingw* | pw32* | cegcc*)
  8906. version_type=windows
  8907. shrext_cmds=".dll"
  8908. need_version=no
  8909. need_lib_prefix=no
  8910. case $GCC,$host_os in
  8911. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8912. library_names_spec='$libname.dll.a'
  8913. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8914. postinstall_cmds='base_file=`basename \${file}`~
  8915. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8916. dldir=$destdir/`dirname \$dlpath`~
  8917. test -d \$dldir || mkdir -p \$dldir~
  8918. $install_prog $dir/$dlname \$dldir/$dlname~
  8919. chmod a+x \$dldir/$dlname~
  8920. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8921. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8922. fi'
  8923. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8924. dlpath=$dir/\$dldll~
  8925. $RM \$dlpath'
  8926. shlibpath_overrides_runpath=yes
  8927. case $host_os in
  8928. cygwin*)
  8929. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8930. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8931. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8932. ;;
  8933. mingw* | cegcc*)
  8934. # MinGW DLLs use traditional 'lib' prefix
  8935. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8936. ;;
  8937. pw32*)
  8938. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8939. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8940. ;;
  8941. esac
  8942. ;;
  8943. *)
  8944. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8945. ;;
  8946. esac
  8947. dynamic_linker='Win32 ld.exe'
  8948. # FIXME: first we should search . and the directory the executable is in
  8949. shlibpath_var=PATH
  8950. ;;
  8951. darwin* | rhapsody*)
  8952. dynamic_linker="$host_os dyld"
  8953. version_type=darwin
  8954. need_lib_prefix=no
  8955. need_version=no
  8956. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8957. soname_spec='${libname}${release}${major}$shared_ext'
  8958. shlibpath_overrides_runpath=yes
  8959. shlibpath_var=DYLD_LIBRARY_PATH
  8960. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8961. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8962. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8963. ;;
  8964. dgux*)
  8965. version_type=linux
  8966. need_lib_prefix=no
  8967. need_version=no
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. shlibpath_var=LD_LIBRARY_PATH
  8971. ;;
  8972. freebsd* | dragonfly*)
  8973. # DragonFly does not have aout. When/if they implement a new
  8974. # versioning mechanism, adjust this.
  8975. if test -x /usr/bin/objformat; then
  8976. objformat=`/usr/bin/objformat`
  8977. else
  8978. case $host_os in
  8979. freebsd[23].*) objformat=aout ;;
  8980. *) objformat=elf ;;
  8981. esac
  8982. fi
  8983. version_type=freebsd-$objformat
  8984. case $version_type in
  8985. freebsd-elf*)
  8986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8987. need_version=no
  8988. need_lib_prefix=no
  8989. ;;
  8990. freebsd-*)
  8991. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8992. need_version=yes
  8993. ;;
  8994. esac
  8995. shlibpath_var=LD_LIBRARY_PATH
  8996. case $host_os in
  8997. freebsd2.*)
  8998. shlibpath_overrides_runpath=yes
  8999. ;;
  9000. freebsd3.[01]* | freebsdelf3.[01]*)
  9001. shlibpath_overrides_runpath=yes
  9002. hardcode_into_libs=yes
  9003. ;;
  9004. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9005. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9006. shlibpath_overrides_runpath=no
  9007. hardcode_into_libs=yes
  9008. ;;
  9009. *) # from 4.6 on, and DragonFly
  9010. shlibpath_overrides_runpath=yes
  9011. hardcode_into_libs=yes
  9012. ;;
  9013. esac
  9014. ;;
  9015. gnu*)
  9016. version_type=linux
  9017. need_lib_prefix=no
  9018. need_version=no
  9019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9020. soname_spec='${libname}${release}${shared_ext}$major'
  9021. shlibpath_var=LD_LIBRARY_PATH
  9022. hardcode_into_libs=yes
  9023. ;;
  9024. haiku*)
  9025. version_type=linux
  9026. need_lib_prefix=no
  9027. need_version=no
  9028. dynamic_linker="$host_os runtime_loader"
  9029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9030. soname_spec='${libname}${release}${shared_ext}$major'
  9031. shlibpath_var=LIBRARY_PATH
  9032. shlibpath_overrides_runpath=yes
  9033. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9034. hardcode_into_libs=yes
  9035. ;;
  9036. hpux9* | hpux10* | hpux11*)
  9037. # Give a soname corresponding to the major version so that dld.sl refuses to
  9038. # link against other versions.
  9039. version_type=sunos
  9040. need_lib_prefix=no
  9041. need_version=no
  9042. case $host_cpu in
  9043. ia64*)
  9044. shrext_cmds='.so'
  9045. hardcode_into_libs=yes
  9046. dynamic_linker="$host_os dld.so"
  9047. shlibpath_var=LD_LIBRARY_PATH
  9048. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. if test "X$HPUX_IA64_MODE" = X32; then
  9052. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9053. else
  9054. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9055. fi
  9056. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9057. ;;
  9058. hppa*64*)
  9059. shrext_cmds='.sl'
  9060. hardcode_into_libs=yes
  9061. dynamic_linker="$host_os dld.sl"
  9062. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9063. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9065. soname_spec='${libname}${release}${shared_ext}$major'
  9066. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9067. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9068. ;;
  9069. *)
  9070. shrext_cmds='.sl'
  9071. dynamic_linker="$host_os dld.sl"
  9072. shlibpath_var=SHLIB_PATH
  9073. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. ;;
  9077. esac
  9078. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9079. postinstall_cmds='chmod 555 $lib'
  9080. # or fails outright, so override atomically:
  9081. install_override_mode=555
  9082. ;;
  9083. interix[3-9]*)
  9084. version_type=linux
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9090. shlibpath_var=LD_LIBRARY_PATH
  9091. shlibpath_overrides_runpath=no
  9092. hardcode_into_libs=yes
  9093. ;;
  9094. irix5* | irix6* | nonstopux*)
  9095. case $host_os in
  9096. nonstopux*) version_type=nonstopux ;;
  9097. *)
  9098. if test "$lt_cv_prog_gnu_ld" = yes; then
  9099. version_type=linux
  9100. else
  9101. version_type=irix
  9102. fi ;;
  9103. esac
  9104. need_lib_prefix=no
  9105. need_version=no
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9108. case $host_os in
  9109. irix5* | nonstopux*)
  9110. libsuff= shlibsuff=
  9111. ;;
  9112. *)
  9113. case $LD in # libtool.m4 will add one of these switches to LD
  9114. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9115. libsuff= shlibsuff= libmagic=32-bit;;
  9116. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9117. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9118. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9119. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9120. *) libsuff= shlibsuff= libmagic=never-match;;
  9121. esac
  9122. ;;
  9123. esac
  9124. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9125. shlibpath_overrides_runpath=no
  9126. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9127. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9128. hardcode_into_libs=yes
  9129. ;;
  9130. # No shared lib support for Linux oldld, aout, or coff.
  9131. linux*oldld* | linux*aout* | linux*coff*)
  9132. dynamic_linker=no
  9133. ;;
  9134. # This must be Linux ELF.
  9135. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9136. version_type=linux
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. shlibpath_overrides_runpath=no
  9144. # Some binutils ld are patched to set DT_RUNPATH
  9145. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9146. $as_echo_n "(cached) " >&6
  9147. else
  9148. lt_cv_shlibpath_overrides_runpath=no
  9149. save_LDFLAGS=$LDFLAGS
  9150. save_libdir=$libdir
  9151. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9152. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9154. /* end confdefs.h. */
  9155. int
  9156. main ()
  9157. {
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. if ac_fn_c_try_link "$LINENO"; then :
  9163. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9164. lt_cv_shlibpath_overrides_runpath=yes
  9165. fi
  9166. fi
  9167. rm -f core conftest.err conftest.$ac_objext \
  9168. conftest$ac_exeext conftest.$ac_ext
  9169. LDFLAGS=$save_LDFLAGS
  9170. libdir=$save_libdir
  9171. fi
  9172. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9173. # This implies no fast_install, which is unacceptable.
  9174. # Some rework will be needed to allow for fast_install
  9175. # before this can be enabled.
  9176. hardcode_into_libs=yes
  9177. # Append ld.so.conf contents to the search path
  9178. if test -f /etc/ld.so.conf; then
  9179. 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' ' '`
  9180. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9181. fi
  9182. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9183. # powerpc, because MkLinux only supported shared libraries with the
  9184. # GNU dynamic linker. Since this was broken with cross compilers,
  9185. # most powerpc-linux boxes support dynamic linking these days and
  9186. # people can always --disable-shared, the test was removed, and we
  9187. # assume the GNU/Linux dynamic linker is in use.
  9188. dynamic_linker='GNU/Linux ld.so'
  9189. ;;
  9190. netbsd*)
  9191. version_type=sunos
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9196. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9197. dynamic_linker='NetBSD (a.out) ld.so'
  9198. else
  9199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9200. soname_spec='${libname}${release}${shared_ext}$major'
  9201. dynamic_linker='NetBSD ld.elf_so'
  9202. fi
  9203. shlibpath_var=LD_LIBRARY_PATH
  9204. shlibpath_overrides_runpath=yes
  9205. hardcode_into_libs=yes
  9206. ;;
  9207. newsos6)
  9208. version_type=linux
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. shlibpath_overrides_runpath=yes
  9212. ;;
  9213. *nto* | *qnx*)
  9214. version_type=qnx
  9215. need_lib_prefix=no
  9216. need_version=no
  9217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9218. soname_spec='${libname}${release}${shared_ext}$major'
  9219. shlibpath_var=LD_LIBRARY_PATH
  9220. shlibpath_overrides_runpath=no
  9221. hardcode_into_libs=yes
  9222. dynamic_linker='ldqnx.so'
  9223. ;;
  9224. openbsd*)
  9225. version_type=sunos
  9226. sys_lib_dlsearch_path_spec="/usr/lib"
  9227. need_lib_prefix=no
  9228. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9229. case $host_os in
  9230. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9231. *) need_version=no ;;
  9232. esac
  9233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9234. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9235. shlibpath_var=LD_LIBRARY_PATH
  9236. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9237. case $host_os in
  9238. openbsd2.[89] | openbsd2.[89].*)
  9239. shlibpath_overrides_runpath=no
  9240. ;;
  9241. *)
  9242. shlibpath_overrides_runpath=yes
  9243. ;;
  9244. esac
  9245. else
  9246. shlibpath_overrides_runpath=yes
  9247. fi
  9248. ;;
  9249. os2*)
  9250. libname_spec='$name'
  9251. shrext_cmds=".dll"
  9252. need_lib_prefix=no
  9253. library_names_spec='$libname${shared_ext} $libname.a'
  9254. dynamic_linker='OS/2 ld.exe'
  9255. shlibpath_var=LIBPATH
  9256. ;;
  9257. osf3* | osf4* | osf5*)
  9258. version_type=osf
  9259. need_lib_prefix=no
  9260. need_version=no
  9261. soname_spec='${libname}${release}${shared_ext}$major'
  9262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9265. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9266. ;;
  9267. rdos*)
  9268. dynamic_linker=no
  9269. ;;
  9270. solaris*)
  9271. version_type=linux
  9272. need_lib_prefix=no
  9273. need_version=no
  9274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9275. soname_spec='${libname}${release}${shared_ext}$major'
  9276. shlibpath_var=LD_LIBRARY_PATH
  9277. shlibpath_overrides_runpath=yes
  9278. hardcode_into_libs=yes
  9279. # ldd complains unless libraries are executable
  9280. postinstall_cmds='chmod +x $lib'
  9281. ;;
  9282. sunos4*)
  9283. version_type=sunos
  9284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9285. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9286. shlibpath_var=LD_LIBRARY_PATH
  9287. shlibpath_overrides_runpath=yes
  9288. if test "$with_gnu_ld" = yes; then
  9289. need_lib_prefix=no
  9290. fi
  9291. need_version=yes
  9292. ;;
  9293. sysv4 | sysv4.3*)
  9294. version_type=linux
  9295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9296. soname_spec='${libname}${release}${shared_ext}$major'
  9297. shlibpath_var=LD_LIBRARY_PATH
  9298. case $host_vendor in
  9299. sni)
  9300. shlibpath_overrides_runpath=no
  9301. need_lib_prefix=no
  9302. runpath_var=LD_RUN_PATH
  9303. ;;
  9304. siemens)
  9305. need_lib_prefix=no
  9306. ;;
  9307. motorola)
  9308. need_lib_prefix=no
  9309. need_version=no
  9310. shlibpath_overrides_runpath=no
  9311. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9312. ;;
  9313. esac
  9314. ;;
  9315. sysv4*MP*)
  9316. if test -d /usr/nec ;then
  9317. version_type=linux
  9318. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9319. soname_spec='$libname${shared_ext}.$major'
  9320. shlibpath_var=LD_LIBRARY_PATH
  9321. fi
  9322. ;;
  9323. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9324. version_type=freebsd-elf
  9325. need_lib_prefix=no
  9326. need_version=no
  9327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9328. soname_spec='${libname}${release}${shared_ext}$major'
  9329. shlibpath_var=LD_LIBRARY_PATH
  9330. shlibpath_overrides_runpath=yes
  9331. hardcode_into_libs=yes
  9332. if test "$with_gnu_ld" = yes; then
  9333. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9334. else
  9335. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9336. case $host_os in
  9337. sco3.2v5*)
  9338. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9339. ;;
  9340. esac
  9341. fi
  9342. sys_lib_dlsearch_path_spec='/usr/lib'
  9343. ;;
  9344. tpf*)
  9345. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9346. version_type=linux
  9347. need_lib_prefix=no
  9348. need_version=no
  9349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9350. shlibpath_var=LD_LIBRARY_PATH
  9351. shlibpath_overrides_runpath=no
  9352. hardcode_into_libs=yes
  9353. ;;
  9354. uts4*)
  9355. version_type=linux
  9356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9357. soname_spec='${libname}${release}${shared_ext}$major'
  9358. shlibpath_var=LD_LIBRARY_PATH
  9359. ;;
  9360. *)
  9361. dynamic_linker=no
  9362. ;;
  9363. esac
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9365. $as_echo "$dynamic_linker" >&6; }
  9366. test "$dynamic_linker" = no && can_build_shared=no
  9367. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9368. if test "$GCC" = yes; then
  9369. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9370. fi
  9371. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9372. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9373. fi
  9374. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9375. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9376. fi
  9377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9378. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9379. hardcode_action=
  9380. if test -n "$hardcode_libdir_flag_spec" ||
  9381. test -n "$runpath_var" ||
  9382. test "X$hardcode_automatic" = "Xyes" ; then
  9383. # We can hardcode non-existent directories.
  9384. if test "$hardcode_direct" != no &&
  9385. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9386. # have to relink, otherwise we might link with an installed library
  9387. # when we should be linking with a yet-to-be-installed one
  9388. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9389. test "$hardcode_minus_L" != no; then
  9390. # Linking always hardcodes the temporary library directory.
  9391. hardcode_action=relink
  9392. else
  9393. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9394. hardcode_action=immediate
  9395. fi
  9396. else
  9397. # We cannot hardcode anything, or else we can only hardcode existing
  9398. # directories.
  9399. hardcode_action=unsupported
  9400. fi
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9402. $as_echo "$hardcode_action" >&6; }
  9403. if test "$hardcode_action" = relink ||
  9404. test "$inherit_rpath" = yes; then
  9405. # Fast installation is not supported
  9406. enable_fast_install=no
  9407. elif test "$shlibpath_overrides_runpath" = yes ||
  9408. test "$enable_shared" = no; then
  9409. # Fast installation is not necessary
  9410. enable_fast_install=needless
  9411. fi
  9412. if test "x$enable_dlopen" != xyes; then
  9413. enable_dlopen=unknown
  9414. enable_dlopen_self=unknown
  9415. enable_dlopen_self_static=unknown
  9416. else
  9417. lt_cv_dlopen=no
  9418. lt_cv_dlopen_libs=
  9419. case $host_os in
  9420. beos*)
  9421. lt_cv_dlopen="load_add_on"
  9422. lt_cv_dlopen_libs=
  9423. lt_cv_dlopen_self=yes
  9424. ;;
  9425. mingw* | pw32* | cegcc*)
  9426. lt_cv_dlopen="LoadLibrary"
  9427. lt_cv_dlopen_libs=
  9428. ;;
  9429. cygwin*)
  9430. lt_cv_dlopen="dlopen"
  9431. lt_cv_dlopen_libs=
  9432. ;;
  9433. darwin*)
  9434. # if libdl is installed we need to link against it
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9436. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9437. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9438. $as_echo_n "(cached) " >&6
  9439. else
  9440. ac_check_lib_save_LIBS=$LIBS
  9441. LIBS="-ldl $LIBS"
  9442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9443. /* end confdefs.h. */
  9444. /* Override any GCC internal prototype to avoid an error.
  9445. Use char because int might match the return type of a GCC
  9446. builtin and then its argument prototype would still apply. */
  9447. #ifdef __cplusplus
  9448. extern "C"
  9449. #endif
  9450. char dlopen ();
  9451. int
  9452. main ()
  9453. {
  9454. return dlopen ();
  9455. ;
  9456. return 0;
  9457. }
  9458. _ACEOF
  9459. if ac_fn_c_try_link "$LINENO"; then :
  9460. ac_cv_lib_dl_dlopen=yes
  9461. else
  9462. ac_cv_lib_dl_dlopen=no
  9463. fi
  9464. rm -f core conftest.err conftest.$ac_objext \
  9465. conftest$ac_exeext conftest.$ac_ext
  9466. LIBS=$ac_check_lib_save_LIBS
  9467. fi
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9469. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9470. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9471. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9472. else
  9473. lt_cv_dlopen="dyld"
  9474. lt_cv_dlopen_libs=
  9475. lt_cv_dlopen_self=yes
  9476. fi
  9477. ;;
  9478. *)
  9479. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9480. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9481. lt_cv_dlopen="shl_load"
  9482. else
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9484. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9485. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9486. $as_echo_n "(cached) " >&6
  9487. else
  9488. ac_check_lib_save_LIBS=$LIBS
  9489. LIBS="-ldld $LIBS"
  9490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9491. /* end confdefs.h. */
  9492. /* Override any GCC internal prototype to avoid an error.
  9493. Use char because int might match the return type of a GCC
  9494. builtin and then its argument prototype would still apply. */
  9495. #ifdef __cplusplus
  9496. extern "C"
  9497. #endif
  9498. char shl_load ();
  9499. int
  9500. main ()
  9501. {
  9502. return shl_load ();
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. if ac_fn_c_try_link "$LINENO"; then :
  9508. ac_cv_lib_dld_shl_load=yes
  9509. else
  9510. ac_cv_lib_dld_shl_load=no
  9511. fi
  9512. rm -f core conftest.err conftest.$ac_objext \
  9513. conftest$ac_exeext conftest.$ac_ext
  9514. LIBS=$ac_check_lib_save_LIBS
  9515. fi
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9517. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9518. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9519. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9520. else
  9521. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9522. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9523. lt_cv_dlopen="dlopen"
  9524. else
  9525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9526. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9527. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9528. $as_echo_n "(cached) " >&6
  9529. else
  9530. ac_check_lib_save_LIBS=$LIBS
  9531. LIBS="-ldl $LIBS"
  9532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9533. /* end confdefs.h. */
  9534. /* Override any GCC internal prototype to avoid an error.
  9535. Use char because int might match the return type of a GCC
  9536. builtin and then its argument prototype would still apply. */
  9537. #ifdef __cplusplus
  9538. extern "C"
  9539. #endif
  9540. char dlopen ();
  9541. int
  9542. main ()
  9543. {
  9544. return dlopen ();
  9545. ;
  9546. return 0;
  9547. }
  9548. _ACEOF
  9549. if ac_fn_c_try_link "$LINENO"; then :
  9550. ac_cv_lib_dl_dlopen=yes
  9551. else
  9552. ac_cv_lib_dl_dlopen=no
  9553. fi
  9554. rm -f core conftest.err conftest.$ac_objext \
  9555. conftest$ac_exeext conftest.$ac_ext
  9556. LIBS=$ac_check_lib_save_LIBS
  9557. fi
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9559. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9560. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9561. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9562. else
  9563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9564. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9565. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9566. $as_echo_n "(cached) " >&6
  9567. else
  9568. ac_check_lib_save_LIBS=$LIBS
  9569. LIBS="-lsvld $LIBS"
  9570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9571. /* end confdefs.h. */
  9572. /* Override any GCC internal prototype to avoid an error.
  9573. Use char because int might match the return type of a GCC
  9574. builtin and then its argument prototype would still apply. */
  9575. #ifdef __cplusplus
  9576. extern "C"
  9577. #endif
  9578. char dlopen ();
  9579. int
  9580. main ()
  9581. {
  9582. return dlopen ();
  9583. ;
  9584. return 0;
  9585. }
  9586. _ACEOF
  9587. if ac_fn_c_try_link "$LINENO"; then :
  9588. ac_cv_lib_svld_dlopen=yes
  9589. else
  9590. ac_cv_lib_svld_dlopen=no
  9591. fi
  9592. rm -f core conftest.err conftest.$ac_objext \
  9593. conftest$ac_exeext conftest.$ac_ext
  9594. LIBS=$ac_check_lib_save_LIBS
  9595. fi
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9597. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9598. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9599. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9600. else
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9602. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9603. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9604. $as_echo_n "(cached) " >&6
  9605. else
  9606. ac_check_lib_save_LIBS=$LIBS
  9607. LIBS="-ldld $LIBS"
  9608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9609. /* end confdefs.h. */
  9610. /* Override any GCC internal prototype to avoid an error.
  9611. Use char because int might match the return type of a GCC
  9612. builtin and then its argument prototype would still apply. */
  9613. #ifdef __cplusplus
  9614. extern "C"
  9615. #endif
  9616. char dld_link ();
  9617. int
  9618. main ()
  9619. {
  9620. return dld_link ();
  9621. ;
  9622. return 0;
  9623. }
  9624. _ACEOF
  9625. if ac_fn_c_try_link "$LINENO"; then :
  9626. ac_cv_lib_dld_dld_link=yes
  9627. else
  9628. ac_cv_lib_dld_dld_link=no
  9629. fi
  9630. rm -f core conftest.err conftest.$ac_objext \
  9631. conftest$ac_exeext conftest.$ac_ext
  9632. LIBS=$ac_check_lib_save_LIBS
  9633. fi
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9635. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9636. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9637. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9638. fi
  9639. fi
  9640. fi
  9641. fi
  9642. fi
  9643. fi
  9644. ;;
  9645. esac
  9646. if test "x$lt_cv_dlopen" != xno; then
  9647. enable_dlopen=yes
  9648. else
  9649. enable_dlopen=no
  9650. fi
  9651. case $lt_cv_dlopen in
  9652. dlopen)
  9653. save_CPPFLAGS="$CPPFLAGS"
  9654. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9655. save_LDFLAGS="$LDFLAGS"
  9656. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9657. save_LIBS="$LIBS"
  9658. LIBS="$lt_cv_dlopen_libs $LIBS"
  9659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9660. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9661. if test "${lt_cv_dlopen_self+set}" = set; then :
  9662. $as_echo_n "(cached) " >&6
  9663. else
  9664. if test "$cross_compiling" = yes; then :
  9665. lt_cv_dlopen_self=cross
  9666. else
  9667. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9668. lt_status=$lt_dlunknown
  9669. cat > conftest.$ac_ext <<_LT_EOF
  9670. #line 11229 "configure"
  9671. #include "confdefs.h"
  9672. #if HAVE_DLFCN_H
  9673. #include <dlfcn.h>
  9674. #endif
  9675. #include <stdio.h>
  9676. #ifdef RTLD_GLOBAL
  9677. # define LT_DLGLOBAL RTLD_GLOBAL
  9678. #else
  9679. # ifdef DL_GLOBAL
  9680. # define LT_DLGLOBAL DL_GLOBAL
  9681. # else
  9682. # define LT_DLGLOBAL 0
  9683. # endif
  9684. #endif
  9685. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9686. find out it does not work in some platform. */
  9687. #ifndef LT_DLLAZY_OR_NOW
  9688. # ifdef RTLD_LAZY
  9689. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9690. # else
  9691. # ifdef DL_LAZY
  9692. # define LT_DLLAZY_OR_NOW DL_LAZY
  9693. # else
  9694. # ifdef RTLD_NOW
  9695. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9696. # else
  9697. # ifdef DL_NOW
  9698. # define LT_DLLAZY_OR_NOW DL_NOW
  9699. # else
  9700. # define LT_DLLAZY_OR_NOW 0
  9701. # endif
  9702. # endif
  9703. # endif
  9704. # endif
  9705. #endif
  9706. /* When -fvisbility=hidden is used, assume the code has been annotated
  9707. correspondingly for the symbols needed. */
  9708. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9709. void fnord () __attribute__((visibility("default")));
  9710. #endif
  9711. void fnord () { int i=42; }
  9712. int main ()
  9713. {
  9714. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9715. int status = $lt_dlunknown;
  9716. if (self)
  9717. {
  9718. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9719. else
  9720. {
  9721. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9722. else puts (dlerror ());
  9723. }
  9724. /* dlclose (self); */
  9725. }
  9726. else
  9727. puts (dlerror ());
  9728. return status;
  9729. }
  9730. _LT_EOF
  9731. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9732. (eval $ac_link) 2>&5
  9733. ac_status=$?
  9734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9735. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9736. (./conftest; exit; ) >&5 2>/dev/null
  9737. lt_status=$?
  9738. case x$lt_status in
  9739. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9740. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9741. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9742. esac
  9743. else :
  9744. # compilation failed
  9745. lt_cv_dlopen_self=no
  9746. fi
  9747. fi
  9748. rm -fr conftest*
  9749. fi
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9751. $as_echo "$lt_cv_dlopen_self" >&6; }
  9752. if test "x$lt_cv_dlopen_self" = xyes; then
  9753. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9755. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9756. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9757. $as_echo_n "(cached) " >&6
  9758. else
  9759. if test "$cross_compiling" = yes; then :
  9760. lt_cv_dlopen_self_static=cross
  9761. else
  9762. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9763. lt_status=$lt_dlunknown
  9764. cat > conftest.$ac_ext <<_LT_EOF
  9765. #line 11335 "configure"
  9766. #include "confdefs.h"
  9767. #if HAVE_DLFCN_H
  9768. #include <dlfcn.h>
  9769. #endif
  9770. #include <stdio.h>
  9771. #ifdef RTLD_GLOBAL
  9772. # define LT_DLGLOBAL RTLD_GLOBAL
  9773. #else
  9774. # ifdef DL_GLOBAL
  9775. # define LT_DLGLOBAL DL_GLOBAL
  9776. # else
  9777. # define LT_DLGLOBAL 0
  9778. # endif
  9779. #endif
  9780. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9781. find out it does not work in some platform. */
  9782. #ifndef LT_DLLAZY_OR_NOW
  9783. # ifdef RTLD_LAZY
  9784. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9785. # else
  9786. # ifdef DL_LAZY
  9787. # define LT_DLLAZY_OR_NOW DL_LAZY
  9788. # else
  9789. # ifdef RTLD_NOW
  9790. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9791. # else
  9792. # ifdef DL_NOW
  9793. # define LT_DLLAZY_OR_NOW DL_NOW
  9794. # else
  9795. # define LT_DLLAZY_OR_NOW 0
  9796. # endif
  9797. # endif
  9798. # endif
  9799. # endif
  9800. #endif
  9801. /* When -fvisbility=hidden is used, assume the code has been annotated
  9802. correspondingly for the symbols needed. */
  9803. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9804. void fnord () __attribute__((visibility("default")));
  9805. #endif
  9806. void fnord () { int i=42; }
  9807. int main ()
  9808. {
  9809. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9810. int status = $lt_dlunknown;
  9811. if (self)
  9812. {
  9813. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9814. else
  9815. {
  9816. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9817. else puts (dlerror ());
  9818. }
  9819. /* dlclose (self); */
  9820. }
  9821. else
  9822. puts (dlerror ());
  9823. return status;
  9824. }
  9825. _LT_EOF
  9826. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9827. (eval $ac_link) 2>&5
  9828. ac_status=$?
  9829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9830. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9831. (./conftest; exit; ) >&5 2>/dev/null
  9832. lt_status=$?
  9833. case x$lt_status in
  9834. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9835. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9836. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9837. esac
  9838. else :
  9839. # compilation failed
  9840. lt_cv_dlopen_self_static=no
  9841. fi
  9842. fi
  9843. rm -fr conftest*
  9844. fi
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9846. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9847. fi
  9848. CPPFLAGS="$save_CPPFLAGS"
  9849. LDFLAGS="$save_LDFLAGS"
  9850. LIBS="$save_LIBS"
  9851. ;;
  9852. esac
  9853. case $lt_cv_dlopen_self in
  9854. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9855. *) enable_dlopen_self=unknown ;;
  9856. esac
  9857. case $lt_cv_dlopen_self_static in
  9858. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9859. *) enable_dlopen_self_static=unknown ;;
  9860. esac
  9861. fi
  9862. striplib=
  9863. old_striplib=
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9865. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9866. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9867. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9868. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9870. $as_echo "yes" >&6; }
  9871. else
  9872. # FIXME - insert some real tests, host_os isn't really good enough
  9873. case $host_os in
  9874. darwin*)
  9875. if test -n "$STRIP" ; then
  9876. striplib="$STRIP -x"
  9877. old_striplib="$STRIP -S"
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9879. $as_echo "yes" >&6; }
  9880. else
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9882. $as_echo "no" >&6; }
  9883. fi
  9884. ;;
  9885. *)
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9887. $as_echo "no" >&6; }
  9888. ;;
  9889. esac
  9890. fi
  9891. # Report which library types will actually be built
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9893. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9895. $as_echo "$can_build_shared" >&6; }
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9897. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9898. test "$can_build_shared" = "no" && enable_shared=no
  9899. # On AIX, shared libraries and static libraries use the same namespace, and
  9900. # are all built from PIC.
  9901. case $host_os in
  9902. aix3*)
  9903. test "$enable_shared" = yes && enable_static=no
  9904. if test -n "$RANLIB"; then
  9905. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9906. postinstall_cmds='$RANLIB $lib'
  9907. fi
  9908. ;;
  9909. aix[4-9]*)
  9910. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9911. test "$enable_shared" = yes && enable_static=no
  9912. fi
  9913. ;;
  9914. esac
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9916. $as_echo "$enable_shared" >&6; }
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9918. $as_echo_n "checking whether to build static libraries... " >&6; }
  9919. # Make sure either enable_shared or enable_static is yes.
  9920. test "$enable_shared" = yes || enable_static=yes
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9922. $as_echo "$enable_static" >&6; }
  9923. fi
  9924. ac_ext=c
  9925. ac_cpp='$CPP $CPPFLAGS'
  9926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9929. CC="$lt_save_CC"
  9930. ac_config_commands="$ac_config_commands libtool"
  9931. # Only expand once:
  9932. # The tests for host and target for $enable_largefile require
  9933. # canonical names.
  9934. # As the $enable_largefile decision depends on --enable-plugins we must set it
  9935. # even in directories otherwise not depending on the $plugins option.
  9936. maybe_plugins=no
  9937. for ac_header in dlfcn.h
  9938. do :
  9939. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9940. "
  9941. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  9942. cat >>confdefs.h <<_ACEOF
  9943. #define HAVE_DLFCN_H 1
  9944. _ACEOF
  9945. maybe_plugins=yes
  9946. fi
  9947. done
  9948. for ac_header in windows.h
  9949. do :
  9950. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  9951. "
  9952. if test "x$ac_cv_header_windows_h" = x""yes; then :
  9953. cat >>confdefs.h <<_ACEOF
  9954. #define HAVE_WINDOWS_H 1
  9955. _ACEOF
  9956. maybe_plugins=yes
  9957. fi
  9958. done
  9959. # Check whether --enable-plugins was given.
  9960. if test "${enable_plugins+set}" = set; then :
  9961. enableval=$enable_plugins; case "${enableval}" in
  9962. no) plugins=no ;;
  9963. *) plugins=yes
  9964. if test "$maybe_plugins" != "yes" ; then
  9965. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  9966. fi ;;
  9967. esac
  9968. else
  9969. plugins=$maybe_plugins
  9970. fi
  9971. if test "$plugins" = "yes"; then
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  9973. $as_echo_n "checking for library containing dlopen... " >&6; }
  9974. if test "${ac_cv_search_dlopen+set}" = set; then :
  9975. $as_echo_n "(cached) " >&6
  9976. else
  9977. ac_func_search_save_LIBS=$LIBS
  9978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9979. /* end confdefs.h. */
  9980. /* Override any GCC internal prototype to avoid an error.
  9981. Use char because int might match the return type of a GCC
  9982. builtin and then its argument prototype would still apply. */
  9983. #ifdef __cplusplus
  9984. extern "C"
  9985. #endif
  9986. char dlopen ();
  9987. int
  9988. main ()
  9989. {
  9990. return dlopen ();
  9991. ;
  9992. return 0;
  9993. }
  9994. _ACEOF
  9995. for ac_lib in '' dl; do
  9996. if test -z "$ac_lib"; then
  9997. ac_res="none required"
  9998. else
  9999. ac_res=-l$ac_lib
  10000. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10001. fi
  10002. if ac_fn_c_try_link "$LINENO"; then :
  10003. ac_cv_search_dlopen=$ac_res
  10004. fi
  10005. rm -f core conftest.err conftest.$ac_objext \
  10006. conftest$ac_exeext
  10007. if test "${ac_cv_search_dlopen+set}" = set; then :
  10008. break
  10009. fi
  10010. done
  10011. if test "${ac_cv_search_dlopen+set}" = set; then :
  10012. else
  10013. ac_cv_search_dlopen=no
  10014. fi
  10015. rm conftest.$ac_ext
  10016. LIBS=$ac_func_search_save_LIBS
  10017. fi
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  10019. $as_echo "$ac_cv_search_dlopen" >&6; }
  10020. ac_res=$ac_cv_search_dlopen
  10021. if test "$ac_res" != no; then :
  10022. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10023. fi
  10024. fi
  10025. case "${host}" in
  10026. sparc-*-solaris*|i[3-7]86-*-solaris*)
  10027. # On native 32bit sparc and ia32 solaris, large-file and procfs support
  10028. # are mutually exclusive; and without procfs support, the bfd/ elf module
  10029. # cannot provide certain routines such as elfcore_write_prpsinfo
  10030. # or elfcore_write_prstatus. So unless the user explicitly requested
  10031. # large-file support through the --enable-largefile switch, disable
  10032. # large-file support in favor of procfs support.
  10033. test "${target}" = "${host}" -a "x$plugins" = xno \
  10034. && : ${enable_largefile="no"}
  10035. ;;
  10036. esac
  10037. # Check whether --enable-largefile was given.
  10038. if test "${enable_largefile+set}" = set; then :
  10039. enableval=$enable_largefile;
  10040. fi
  10041. if test "$enable_largefile" != no; then
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10043. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10044. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  10045. $as_echo_n "(cached) " >&6
  10046. else
  10047. ac_cv_sys_largefile_CC=no
  10048. if test "$GCC" != yes; then
  10049. ac_save_CC=$CC
  10050. while :; do
  10051. # IRIX 6.2 and later do not support large files by default,
  10052. # so use the C compiler's -n32 option if that helps.
  10053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10054. /* end confdefs.h. */
  10055. #include <sys/types.h>
  10056. /* Check that off_t can represent 2**63 - 1 correctly.
  10057. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10058. since some C++ compilers masquerading as C compilers
  10059. incorrectly reject 9223372036854775807. */
  10060. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10061. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10062. && LARGE_OFF_T % 2147483647 == 1)
  10063. ? 1 : -1];
  10064. int
  10065. main ()
  10066. {
  10067. ;
  10068. return 0;
  10069. }
  10070. _ACEOF
  10071. if ac_fn_c_try_compile "$LINENO"; then :
  10072. break
  10073. fi
  10074. rm -f core conftest.err conftest.$ac_objext
  10075. CC="$CC -n32"
  10076. if ac_fn_c_try_compile "$LINENO"; then :
  10077. ac_cv_sys_largefile_CC=' -n32'; break
  10078. fi
  10079. rm -f core conftest.err conftest.$ac_objext
  10080. break
  10081. done
  10082. CC=$ac_save_CC
  10083. rm -f conftest.$ac_ext
  10084. fi
  10085. fi
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10087. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10088. if test "$ac_cv_sys_largefile_CC" != no; then
  10089. CC=$CC$ac_cv_sys_largefile_CC
  10090. fi
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10092. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10093. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  10094. $as_echo_n "(cached) " >&6
  10095. else
  10096. while :; do
  10097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10098. /* end confdefs.h. */
  10099. #include <sys/types.h>
  10100. /* Check that off_t can represent 2**63 - 1 correctly.
  10101. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10102. since some C++ compilers masquerading as C compilers
  10103. incorrectly reject 9223372036854775807. */
  10104. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10105. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10106. && LARGE_OFF_T % 2147483647 == 1)
  10107. ? 1 : -1];
  10108. int
  10109. main ()
  10110. {
  10111. ;
  10112. return 0;
  10113. }
  10114. _ACEOF
  10115. if ac_fn_c_try_compile "$LINENO"; then :
  10116. ac_cv_sys_file_offset_bits=no; break
  10117. fi
  10118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10120. /* end confdefs.h. */
  10121. #define _FILE_OFFSET_BITS 64
  10122. #include <sys/types.h>
  10123. /* Check that off_t can represent 2**63 - 1 correctly.
  10124. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10125. since some C++ compilers masquerading as C compilers
  10126. incorrectly reject 9223372036854775807. */
  10127. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10128. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10129. && LARGE_OFF_T % 2147483647 == 1)
  10130. ? 1 : -1];
  10131. int
  10132. main ()
  10133. {
  10134. ;
  10135. return 0;
  10136. }
  10137. _ACEOF
  10138. if ac_fn_c_try_compile "$LINENO"; then :
  10139. ac_cv_sys_file_offset_bits=64; break
  10140. fi
  10141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10142. ac_cv_sys_file_offset_bits=unknown
  10143. break
  10144. done
  10145. fi
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10147. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10148. case $ac_cv_sys_file_offset_bits in #(
  10149. no | unknown) ;;
  10150. *)
  10151. cat >>confdefs.h <<_ACEOF
  10152. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10153. _ACEOF
  10154. ;;
  10155. esac
  10156. rm -rf conftest*
  10157. if test $ac_cv_sys_file_offset_bits = unknown; then
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10159. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10160. if test "${ac_cv_sys_large_files+set}" = set; then :
  10161. $as_echo_n "(cached) " >&6
  10162. else
  10163. while :; do
  10164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10165. /* end confdefs.h. */
  10166. #include <sys/types.h>
  10167. /* Check that off_t can represent 2**63 - 1 correctly.
  10168. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10169. since some C++ compilers masquerading as C compilers
  10170. incorrectly reject 9223372036854775807. */
  10171. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10172. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10173. && LARGE_OFF_T % 2147483647 == 1)
  10174. ? 1 : -1];
  10175. int
  10176. main ()
  10177. {
  10178. ;
  10179. return 0;
  10180. }
  10181. _ACEOF
  10182. if ac_fn_c_try_compile "$LINENO"; then :
  10183. ac_cv_sys_large_files=no; break
  10184. fi
  10185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10187. /* end confdefs.h. */
  10188. #define _LARGE_FILES 1
  10189. #include <sys/types.h>
  10190. /* Check that off_t can represent 2**63 - 1 correctly.
  10191. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10192. since some C++ compilers masquerading as C compilers
  10193. incorrectly reject 9223372036854775807. */
  10194. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10195. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10196. && LARGE_OFF_T % 2147483647 == 1)
  10197. ? 1 : -1];
  10198. int
  10199. main ()
  10200. {
  10201. ;
  10202. return 0;
  10203. }
  10204. _ACEOF
  10205. if ac_fn_c_try_compile "$LINENO"; then :
  10206. ac_cv_sys_large_files=1; break
  10207. fi
  10208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10209. ac_cv_sys_large_files=unknown
  10210. break
  10211. done
  10212. fi
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10214. $as_echo "$ac_cv_sys_large_files" >&6; }
  10215. case $ac_cv_sys_large_files in #(
  10216. no | unknown) ;;
  10217. *)
  10218. cat >>confdefs.h <<_ACEOF
  10219. #define _LARGE_FILES $ac_cv_sys_large_files
  10220. _ACEOF
  10221. ;;
  10222. esac
  10223. rm -rf conftest*
  10224. fi
  10225. fi
  10226. # Check whether --enable-targets was given.
  10227. if test "${enable_targets+set}" = set; then :
  10228. enableval=$enable_targets; case "${enableval}" in
  10229. yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
  10230. ;;
  10231. no) enable_targets= ;;
  10232. *) enable_targets=$enableval ;;
  10233. esac
  10234. fi
  10235. # Check whether --enable-deterministic-archives was given.
  10236. if test "${enable_deterministic_archives+set}" = set; then :
  10237. enableval=$enable_deterministic_archives;
  10238. if test "${enableval}" = no; then
  10239. default_ar_deterministic=0
  10240. else
  10241. default_ar_deterministic=1
  10242. fi
  10243. else
  10244. default_ar_deterministic=0
  10245. fi
  10246. cat >>confdefs.h <<_ACEOF
  10247. #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
  10248. _ACEOF
  10249. # Check whether --enable-default-strings-all was given.
  10250. if test "${enable_default_strings_all+set}" = set; then :
  10251. enableval=$enable_default_strings_all;
  10252. if test "${enableval}" = no; then
  10253. default_strings_all=0
  10254. else
  10255. default_strings_all=1
  10256. fi
  10257. else
  10258. default_strings_all=1
  10259. fi
  10260. cat >>confdefs.h <<_ACEOF
  10261. #define DEFAULT_STRINGS_ALL $default_strings_all
  10262. _ACEOF
  10263. # Set the 'development' global.
  10264. . $srcdir/../bfd/development.sh
  10265. # Set acp_cpp_for_build variable
  10266. ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
  10267. # Default set of GCC warnings to enable.
  10268. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10269. GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10270. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  10271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10272. /* end confdefs.h. */
  10273. __GNUC__
  10274. _ACEOF
  10275. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10276. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  10277. else
  10278. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  10279. fi
  10280. rm -f conftest*
  10281. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  10282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10283. /* end confdefs.h. */
  10284. __GNUC__
  10285. _ACEOF
  10286. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10287. $EGREP "^[0-4]$" >/dev/null 2>&1; then :
  10288. else
  10289. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
  10290. fi
  10291. rm -f conftest*
  10292. # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
  10293. WARN_WRITE_STRINGS=""
  10294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10295. /* end confdefs.h. */
  10296. __GNUC__
  10297. _ACEOF
  10298. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10299. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  10300. else
  10301. WARN_WRITE_STRINGS="-Wwrite-strings"
  10302. fi
  10303. rm -f conftest*
  10304. # Verify CC_FOR_BUILD to be compatible with warning flags
  10305. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  10306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10307. /* end confdefs.h. */
  10308. __GNUC__
  10309. _ACEOF
  10310. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  10311. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  10312. else
  10313. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
  10314. fi
  10315. rm -f conftest*
  10316. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  10317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10318. /* end confdefs.h. */
  10319. __GNUC__
  10320. _ACEOF
  10321. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  10322. $EGREP "^[0-4]$" >/dev/null 2>&1; then :
  10323. else
  10324. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
  10325. fi
  10326. rm -f conftest*
  10327. # Check whether --enable-werror was given.
  10328. if test "${enable_werror+set}" = set; then :
  10329. enableval=$enable_werror; case "${enableval}" in
  10330. yes | y) ERROR_ON_WARNING="yes" ;;
  10331. no | n) ERROR_ON_WARNING="no" ;;
  10332. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10333. esac
  10334. fi
  10335. # Disable -Wformat by default when using gcc on mingw
  10336. case "${host}" in
  10337. *-*-mingw32*)
  10338. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10339. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  10340. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
  10341. fi
  10342. ;;
  10343. *) ;;
  10344. esac
  10345. # Enable -Werror by default when using gcc. Turn it off for releases.
  10346. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  10347. ERROR_ON_WARNING=yes
  10348. fi
  10349. NO_WERROR=
  10350. if test "${ERROR_ON_WARNING}" = yes ; then
  10351. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  10352. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
  10353. NO_WERROR="-Wno-error"
  10354. fi
  10355. if test "${GCC}" = yes ; then
  10356. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10357. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
  10358. fi
  10359. # Check whether --enable-build-warnings was given.
  10360. if test "${enable_build_warnings+set}" = set; then :
  10361. enableval=$enable_build_warnings; case "${enableval}" in
  10362. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10363. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
  10364. no) if test "${GCC}" = yes ; then
  10365. WARN_CFLAGS="-w"
  10366. WARN_CFLAGS_FOR_BUILD="-w"
  10367. fi;;
  10368. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10369. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
  10370. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
  10371. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10372. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
  10373. WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
  10374. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
  10375. WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10376. esac
  10377. fi
  10378. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  10379. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  10380. fi
  10381. ac_config_headers="$ac_config_headers config.h:config.in"
  10382. if test -z "$target" ; then
  10383. as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
  10384. fi
  10385. if test -z "$host" ; then
  10386. as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
  10387. fi
  10388. for ac_prog in 'bison -y' byacc
  10389. do
  10390. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10391. set dummy $ac_prog; ac_word=$2
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10393. $as_echo_n "checking for $ac_word... " >&6; }
  10394. if test "${ac_cv_prog_YACC+set}" = set; then :
  10395. $as_echo_n "(cached) " >&6
  10396. else
  10397. if test -n "$YACC"; then
  10398. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  10399. else
  10400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10401. for as_dir in $PATH
  10402. do
  10403. IFS=$as_save_IFS
  10404. test -z "$as_dir" && as_dir=.
  10405. for ac_exec_ext in '' $ac_executable_extensions; do
  10406. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10407. ac_cv_prog_YACC="$ac_prog"
  10408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10409. break 2
  10410. fi
  10411. done
  10412. done
  10413. IFS=$as_save_IFS
  10414. fi
  10415. fi
  10416. YACC=$ac_cv_prog_YACC
  10417. if test -n "$YACC"; then
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  10419. $as_echo "$YACC" >&6; }
  10420. else
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10422. $as_echo "no" >&6; }
  10423. fi
  10424. test -n "$YACC" && break
  10425. done
  10426. test -n "$YACC" || YACC="yacc"
  10427. for ac_prog in flex lex
  10428. do
  10429. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10430. set dummy $ac_prog; ac_word=$2
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10432. $as_echo_n "checking for $ac_word... " >&6; }
  10433. if test "${ac_cv_prog_LEX+set}" = set; then :
  10434. $as_echo_n "(cached) " >&6
  10435. else
  10436. if test -n "$LEX"; then
  10437. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  10438. else
  10439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10440. for as_dir in $PATH
  10441. do
  10442. IFS=$as_save_IFS
  10443. test -z "$as_dir" && as_dir=.
  10444. for ac_exec_ext in '' $ac_executable_extensions; do
  10445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10446. ac_cv_prog_LEX="$ac_prog"
  10447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10448. break 2
  10449. fi
  10450. done
  10451. done
  10452. IFS=$as_save_IFS
  10453. fi
  10454. fi
  10455. LEX=$ac_cv_prog_LEX
  10456. if test -n "$LEX"; then
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  10458. $as_echo "$LEX" >&6; }
  10459. else
  10460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10461. $as_echo "no" >&6; }
  10462. fi
  10463. test -n "$LEX" && break
  10464. done
  10465. test -n "$LEX" || LEX=":"
  10466. case "$LEX" in
  10467. :|*"missing "*) ;;
  10468. *) cat >conftest.l <<_ACEOF
  10469. %%
  10470. a { ECHO; }
  10471. b { REJECT; }
  10472. c { yymore (); }
  10473. d { yyless (1); }
  10474. e { yyless (input () != 0); }
  10475. f { unput (yytext[0]); }
  10476. . { BEGIN INITIAL; }
  10477. %%
  10478. #ifdef YYTEXT_POINTER
  10479. extern char *yytext;
  10480. #endif
  10481. int
  10482. main (void)
  10483. {
  10484. return ! yylex () + ! yywrap ();
  10485. }
  10486. _ACEOF
  10487. { { ac_try="$LEX conftest.l"
  10488. case "(($ac_try" in
  10489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10490. *) ac_try_echo=$ac_try;;
  10491. esac
  10492. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10493. $as_echo "$ac_try_echo"; } >&5
  10494. (eval "$LEX conftest.l") 2>&5
  10495. ac_status=$?
  10496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10497. test $ac_status = 0; }
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  10499. $as_echo_n "checking lex output file root... " >&6; }
  10500. if test "${ac_cv_prog_lex_root+set}" = set; then :
  10501. $as_echo_n "(cached) " >&6
  10502. else
  10503. if test -f lex.yy.c; then
  10504. ac_cv_prog_lex_root=lex.yy
  10505. elif test -f lexyy.c; then
  10506. ac_cv_prog_lex_root=lexyy
  10507. else
  10508. as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
  10509. fi
  10510. fi
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  10512. $as_echo "$ac_cv_prog_lex_root" >&6; }
  10513. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  10514. if test -z "${LEXLIB+set}"; then
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  10516. $as_echo_n "checking lex library... " >&6; }
  10517. if test "${ac_cv_lib_lex+set}" = set; then :
  10518. $as_echo_n "(cached) " >&6
  10519. else
  10520. ac_save_LIBS=$LIBS
  10521. ac_cv_lib_lex='none needed'
  10522. for ac_lib in '' -lfl -ll; do
  10523. LIBS="$ac_lib $ac_save_LIBS"
  10524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10525. /* end confdefs.h. */
  10526. `cat $LEX_OUTPUT_ROOT.c`
  10527. _ACEOF
  10528. if ac_fn_c_try_link "$LINENO"; then :
  10529. ac_cv_lib_lex=$ac_lib
  10530. fi
  10531. rm -f core conftest.err conftest.$ac_objext \
  10532. conftest$ac_exeext conftest.$ac_ext
  10533. test "$ac_cv_lib_lex" != 'none needed' && break
  10534. done
  10535. LIBS=$ac_save_LIBS
  10536. fi
  10537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  10538. $as_echo "$ac_cv_lib_lex" >&6; }
  10539. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  10540. fi
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  10542. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  10543. if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
  10544. $as_echo_n "(cached) " >&6
  10545. else
  10546. # POSIX says lex can declare yytext either as a pointer or an array; the
  10547. # default is implementation-dependent. Figure out which it is, since
  10548. # not all implementations provide the %pointer and %array declarations.
  10549. ac_cv_prog_lex_yytext_pointer=no
  10550. ac_save_LIBS=$LIBS
  10551. LIBS="$LEXLIB $ac_save_LIBS"
  10552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10553. /* end confdefs.h. */
  10554. #define YYTEXT_POINTER 1
  10555. `cat $LEX_OUTPUT_ROOT.c`
  10556. _ACEOF
  10557. if ac_fn_c_try_link "$LINENO"; then :
  10558. ac_cv_prog_lex_yytext_pointer=yes
  10559. fi
  10560. rm -f core conftest.err conftest.$ac_objext \
  10561. conftest$ac_exeext conftest.$ac_ext
  10562. LIBS=$ac_save_LIBS
  10563. fi
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  10565. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  10566. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  10567. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  10568. fi
  10569. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  10570. ;;
  10571. esac
  10572. if test "$LEX" = :; then
  10573. LEX=${am_missing_run}flex
  10574. fi
  10575. ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr ca"
  10576. # If we haven't got the data from the intl directory,
  10577. # assume NLS is disabled.
  10578. USE_NLS=no
  10579. LIBINTL=
  10580. LIBINTL_DEP=
  10581. INCINTL=
  10582. XGETTEXT=
  10583. GMSGFMT=
  10584. POSUB=
  10585. if test -f ../intl/config.intl; then
  10586. . ../intl/config.intl
  10587. fi
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10589. $as_echo_n "checking whether NLS is requested... " >&6; }
  10590. if test x"$USE_NLS" != xyes; then
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10592. $as_echo "no" >&6; }
  10593. else
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10595. $as_echo "yes" >&6; }
  10596. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  10598. $as_echo_n "checking for catalogs to be installed... " >&6; }
  10599. # Look for .po and .gmo files in the source directory.
  10600. CATALOGS=
  10601. XLINGUAS=
  10602. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  10603. # If there aren't any .gmo files the shell will give us the
  10604. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  10605. # weeded out.
  10606. case "$cat" in *\**)
  10607. continue;;
  10608. esac
  10609. # The quadruple backslash is collapsed to a double backslash
  10610. # by the backticks, then collapsed again by the double quotes,
  10611. # leaving us with one backslash in the sed expression (right
  10612. # before the dot that mustn't act as a wildcard).
  10613. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  10614. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  10615. # The user is allowed to set LINGUAS to a list of languages to
  10616. # install catalogs for. If it's empty that means "all of them."
  10617. if test "x$LINGUAS" = x; then
  10618. CATALOGS="$CATALOGS $cat"
  10619. XLINGUAS="$XLINGUAS $lang"
  10620. else
  10621. case "$LINGUAS" in *$lang*)
  10622. CATALOGS="$CATALOGS $cat"
  10623. XLINGUAS="$XLINGUAS $lang"
  10624. ;;
  10625. esac
  10626. fi
  10627. done
  10628. LINGUAS="$XLINGUAS"
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  10630. $as_echo "$LINGUAS" >&6; }
  10631. DATADIRNAME=share
  10632. INSTOBJEXT=.mo
  10633. GENCAT=gencat
  10634. CATOBJEXT=.gmo
  10635. fi
  10636. MKINSTALLDIRS=
  10637. if test -n "$ac_aux_dir"; then
  10638. case "$ac_aux_dir" in
  10639. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  10640. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  10641. esac
  10642. fi
  10643. if test -z "$MKINSTALLDIRS"; then
  10644. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  10645. fi
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10647. $as_echo_n "checking whether NLS is requested... " >&6; }
  10648. # Check whether --enable-nls was given.
  10649. if test "${enable_nls+set}" = set; then :
  10650. enableval=$enable_nls; USE_NLS=$enableval
  10651. else
  10652. USE_NLS=yes
  10653. fi
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  10655. $as_echo "$USE_NLS" >&6; }
  10656. # Prepare PATH_SEPARATOR.
  10657. # The user is always right.
  10658. if test "${PATH_SEPARATOR+set}" != set; then
  10659. echo "#! /bin/sh" >conf$$.sh
  10660. echo "exit 0" >>conf$$.sh
  10661. chmod +x conf$$.sh
  10662. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10663. PATH_SEPARATOR=';'
  10664. else
  10665. PATH_SEPARATOR=:
  10666. fi
  10667. rm -f conf$$.sh
  10668. fi
  10669. # Find out how to test for executable files. Don't use a zero-byte file,
  10670. # as systems may use methods other than mode bits to determine executability.
  10671. cat >conf$$.file <<_ASEOF
  10672. #! /bin/sh
  10673. exit 0
  10674. _ASEOF
  10675. chmod +x conf$$.file
  10676. if test -x conf$$.file >/dev/null 2>&1; then
  10677. ac_executable_p="test -x"
  10678. else
  10679. ac_executable_p="test -f"
  10680. fi
  10681. rm -f conf$$.file
  10682. # Extract the first word of "msgfmt", so it can be a program name with args.
  10683. set dummy msgfmt; ac_word=$2
  10684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10685. $as_echo_n "checking for $ac_word... " >&6; }
  10686. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  10687. $as_echo_n "(cached) " >&6
  10688. else
  10689. case "$MSGFMT" in
  10690. [\\/]* | ?:[\\/]*)
  10691. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10692. ;;
  10693. *)
  10694. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10695. for ac_dir in $PATH; do
  10696. IFS="$ac_save_IFS"
  10697. test -z "$ac_dir" && ac_dir=.
  10698. for ac_exec_ext in '' $ac_executable_extensions; do
  10699. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10700. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  10701. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10702. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10703. break 2
  10704. fi
  10705. fi
  10706. done
  10707. done
  10708. IFS="$ac_save_IFS"
  10709. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10710. ;;
  10711. esac
  10712. fi
  10713. MSGFMT="$ac_cv_path_MSGFMT"
  10714. if test "$MSGFMT" != ":"; then
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  10716. $as_echo "$MSGFMT" >&6; }
  10717. else
  10718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10719. $as_echo "no" >&6; }
  10720. fi
  10721. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10722. set dummy gmsgfmt; ac_word=$2
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10724. $as_echo_n "checking for $ac_word... " >&6; }
  10725. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  10726. $as_echo_n "(cached) " >&6
  10727. else
  10728. case $GMSGFMT in
  10729. [\\/]* | ?:[\\/]*)
  10730. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10731. ;;
  10732. *)
  10733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10734. for as_dir in $PATH
  10735. do
  10736. IFS=$as_save_IFS
  10737. test -z "$as_dir" && as_dir=.
  10738. for ac_exec_ext in '' $ac_executable_extensions; do
  10739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10740. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10742. break 2
  10743. fi
  10744. done
  10745. done
  10746. IFS=$as_save_IFS
  10747. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10748. ;;
  10749. esac
  10750. fi
  10751. GMSGFMT=$ac_cv_path_GMSGFMT
  10752. if test -n "$GMSGFMT"; then
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  10754. $as_echo "$GMSGFMT" >&6; }
  10755. else
  10756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10757. $as_echo "no" >&6; }
  10758. fi
  10759. # Prepare PATH_SEPARATOR.
  10760. # The user is always right.
  10761. if test "${PATH_SEPARATOR+set}" != set; then
  10762. echo "#! /bin/sh" >conf$$.sh
  10763. echo "exit 0" >>conf$$.sh
  10764. chmod +x conf$$.sh
  10765. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10766. PATH_SEPARATOR=';'
  10767. else
  10768. PATH_SEPARATOR=:
  10769. fi
  10770. rm -f conf$$.sh
  10771. fi
  10772. # Find out how to test for executable files. Don't use a zero-byte file,
  10773. # as systems may use methods other than mode bits to determine executability.
  10774. cat >conf$$.file <<_ASEOF
  10775. #! /bin/sh
  10776. exit 0
  10777. _ASEOF
  10778. chmod +x conf$$.file
  10779. if test -x conf$$.file >/dev/null 2>&1; then
  10780. ac_executable_p="test -x"
  10781. else
  10782. ac_executable_p="test -f"
  10783. fi
  10784. rm -f conf$$.file
  10785. # Extract the first word of "xgettext", so it can be a program name with args.
  10786. set dummy xgettext; ac_word=$2
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10788. $as_echo_n "checking for $ac_word... " >&6; }
  10789. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  10790. $as_echo_n "(cached) " >&6
  10791. else
  10792. case "$XGETTEXT" in
  10793. [\\/]* | ?:[\\/]*)
  10794. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10795. ;;
  10796. *)
  10797. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10798. for ac_dir in $PATH; do
  10799. IFS="$ac_save_IFS"
  10800. test -z "$ac_dir" && ac_dir=.
  10801. for ac_exec_ext in '' $ac_executable_extensions; do
  10802. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10803. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10804. (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
  10805. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10806. break 2
  10807. fi
  10808. fi
  10809. done
  10810. done
  10811. IFS="$ac_save_IFS"
  10812. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10813. ;;
  10814. esac
  10815. fi
  10816. XGETTEXT="$ac_cv_path_XGETTEXT"
  10817. if test "$XGETTEXT" != ":"; then
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  10819. $as_echo "$XGETTEXT" >&6; }
  10820. else
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10822. $as_echo "no" >&6; }
  10823. fi
  10824. rm -f messages.po
  10825. # Prepare PATH_SEPARATOR.
  10826. # The user is always right.
  10827. if test "${PATH_SEPARATOR+set}" != set; then
  10828. echo "#! /bin/sh" >conf$$.sh
  10829. echo "exit 0" >>conf$$.sh
  10830. chmod +x conf$$.sh
  10831. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10832. PATH_SEPARATOR=';'
  10833. else
  10834. PATH_SEPARATOR=:
  10835. fi
  10836. rm -f conf$$.sh
  10837. fi
  10838. # Find out how to test for executable files. Don't use a zero-byte file,
  10839. # as systems may use methods other than mode bits to determine executability.
  10840. cat >conf$$.file <<_ASEOF
  10841. #! /bin/sh
  10842. exit 0
  10843. _ASEOF
  10844. chmod +x conf$$.file
  10845. if test -x conf$$.file >/dev/null 2>&1; then
  10846. ac_executable_p="test -x"
  10847. else
  10848. ac_executable_p="test -f"
  10849. fi
  10850. rm -f conf$$.file
  10851. # Extract the first word of "msgmerge", so it can be a program name with args.
  10852. set dummy msgmerge; ac_word=$2
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10854. $as_echo_n "checking for $ac_word... " >&6; }
  10855. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  10856. $as_echo_n "(cached) " >&6
  10857. else
  10858. case "$MSGMERGE" in
  10859. [\\/]* | ?:[\\/]*)
  10860. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10861. ;;
  10862. *)
  10863. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10864. for ac_dir in $PATH; do
  10865. IFS="$ac_save_IFS"
  10866. test -z "$ac_dir" && ac_dir=.
  10867. for ac_exec_ext in '' $ac_executable_extensions; do
  10868. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10869. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  10870. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10871. break 2
  10872. fi
  10873. fi
  10874. done
  10875. done
  10876. IFS="$ac_save_IFS"
  10877. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10878. ;;
  10879. esac
  10880. fi
  10881. MSGMERGE="$ac_cv_path_MSGMERGE"
  10882. if test "$MSGMERGE" != ":"; then
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  10884. $as_echo "$MSGMERGE" >&6; }
  10885. else
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10887. $as_echo "no" >&6; }
  10888. fi
  10889. if test "$GMSGFMT" != ":"; then
  10890. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  10891. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10892. : ;
  10893. else
  10894. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  10896. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  10897. GMSGFMT=":"
  10898. fi
  10899. fi
  10900. if test "$XGETTEXT" != ":"; then
  10901. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10902. (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
  10903. : ;
  10904. else
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  10906. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  10907. XGETTEXT=":"
  10908. fi
  10909. rm -f messages.po
  10910. fi
  10911. ac_config_commands="$ac_config_commands default-1"
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10913. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10914. # Check whether --enable-maintainer-mode was given.
  10915. if test "${enable_maintainer_mode+set}" = set; then :
  10916. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10917. else
  10918. USE_MAINTAINER_MODE=no
  10919. fi
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10921. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10922. if test $USE_MAINTAINER_MODE = yes; then
  10923. MAINTAINER_MODE_TRUE=
  10924. MAINTAINER_MODE_FALSE='#'
  10925. else
  10926. MAINTAINER_MODE_TRUE='#'
  10927. MAINTAINER_MODE_FALSE=
  10928. fi
  10929. MAINT=$MAINTAINER_MODE_TRUE
  10930. if false; then
  10931. GENINSRC_NEVER_TRUE=
  10932. GENINSRC_NEVER_FALSE='#'
  10933. else
  10934. GENINSRC_NEVER_TRUE='#'
  10935. GENINSRC_NEVER_FALSE=
  10936. fi
  10937. if test -n "$EXEEXT"; then
  10938. $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
  10939. fi
  10940. cat >>confdefs.h <<_ACEOF
  10941. #define EXECUTABLE_SUFFIX "${EXEEXT}"
  10942. _ACEOF
  10943. # host-specific stuff:
  10944. HDEFINES=
  10945. . ${srcdir}/../bfd/configure.host
  10946. AR=${AR-ar}
  10947. if test -n "$ac_tool_prefix"; then
  10948. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10949. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10951. $as_echo_n "checking for $ac_word... " >&6; }
  10952. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  10953. $as_echo_n "(cached) " >&6
  10954. else
  10955. if test -n "$RANLIB"; then
  10956. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10957. else
  10958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10959. for as_dir in $PATH
  10960. do
  10961. IFS=$as_save_IFS
  10962. test -z "$as_dir" && as_dir=.
  10963. for ac_exec_ext in '' $ac_executable_extensions; do
  10964. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10965. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10967. break 2
  10968. fi
  10969. done
  10970. done
  10971. IFS=$as_save_IFS
  10972. fi
  10973. fi
  10974. RANLIB=$ac_cv_prog_RANLIB
  10975. if test -n "$RANLIB"; then
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10977. $as_echo "$RANLIB" >&6; }
  10978. else
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10980. $as_echo "no" >&6; }
  10981. fi
  10982. fi
  10983. if test -z "$ac_cv_prog_RANLIB"; then
  10984. ac_ct_RANLIB=$RANLIB
  10985. # Extract the first word of "ranlib", so it can be a program name with args.
  10986. set dummy ranlib; ac_word=$2
  10987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10988. $as_echo_n "checking for $ac_word... " >&6; }
  10989. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  10990. $as_echo_n "(cached) " >&6
  10991. else
  10992. if test -n "$ac_ct_RANLIB"; then
  10993. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10994. else
  10995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10996. for as_dir in $PATH
  10997. do
  10998. IFS=$as_save_IFS
  10999. test -z "$as_dir" && as_dir=.
  11000. for ac_exec_ext in '' $ac_executable_extensions; do
  11001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11002. ac_cv_prog_ac_ct_RANLIB="ranlib"
  11003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11004. break 2
  11005. fi
  11006. done
  11007. done
  11008. IFS=$as_save_IFS
  11009. fi
  11010. fi
  11011. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  11012. if test -n "$ac_ct_RANLIB"; then
  11013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  11014. $as_echo "$ac_ct_RANLIB" >&6; }
  11015. else
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11017. $as_echo "no" >&6; }
  11018. fi
  11019. if test "x$ac_ct_RANLIB" = x; then
  11020. RANLIB=":"
  11021. else
  11022. case $cross_compiling:$ac_tool_warned in
  11023. yes:)
  11024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11025. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11026. ac_tool_warned=yes ;;
  11027. esac
  11028. RANLIB=$ac_ct_RANLIB
  11029. fi
  11030. else
  11031. RANLIB="$ac_cv_prog_RANLIB"
  11032. fi
  11033. # Put a plausible default for CC_FOR_BUILD in Makefile.
  11034. if test -z "$CC_FOR_BUILD"; then
  11035. if test "x$cross_compiling" = "xno"; then
  11036. CC_FOR_BUILD='$(CC)'
  11037. else
  11038. CC_FOR_BUILD=gcc
  11039. fi
  11040. fi
  11041. # Also set EXEEXT_FOR_BUILD.
  11042. if test "x$cross_compiling" = "xno"; then
  11043. EXEEXT_FOR_BUILD='$(EXEEXT)'
  11044. else
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
  11046. $as_echo_n "checking for build system executable suffix... " >&6; }
  11047. if test "${bfd_cv_build_exeext+set}" = set; then :
  11048. $as_echo_n "(cached) " >&6
  11049. else
  11050. rm -f conftest*
  11051. echo 'int main () { return 0; }' > conftest.c
  11052. bfd_cv_build_exeext=
  11053. ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
  11054. for file in conftest.*; do
  11055. case $file in
  11056. *.c | *.o | *.obj | *.ilk | *.pdb) ;;
  11057. *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  11058. esac
  11059. done
  11060. rm -f conftest*
  11061. test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
  11062. fi
  11063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
  11064. $as_echo "$bfd_cv_build_exeext" >&6; }
  11065. EXEEXT_FOR_BUILD=""
  11066. test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
  11067. fi
  11068. DEMANGLER_NAME=c++filt
  11069. case "${host}" in
  11070. *-*-go32* | *-*-msdos*)
  11071. DEMANGLER_NAME=cxxfilt
  11072. esac
  11073. # The cast to long int works around a bug in the HP C Compiler
  11074. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11075. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11076. # This bug is HP SR number 8606223364.
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11078. $as_echo_n "checking size of long... " >&6; }
  11079. if test "${ac_cv_sizeof_long+set}" = set; then :
  11080. $as_echo_n "(cached) " >&6
  11081. else
  11082. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11083. else
  11084. if test "$ac_cv_type_long" = yes; then
  11085. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11086. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11087. { as_fn_set_status 77
  11088. as_fn_error "cannot compute sizeof (long)
  11089. See \`config.log' for more details." "$LINENO" 5; }; }
  11090. else
  11091. ac_cv_sizeof_long=0
  11092. fi
  11093. fi
  11094. fi
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11096. $as_echo "$ac_cv_sizeof_long" >&6; }
  11097. cat >>confdefs.h <<_ACEOF
  11098. #define SIZEOF_LONG $ac_cv_sizeof_long
  11099. _ACEOF
  11100. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  11101. if test "x$ac_cv_type_long_long" = x""yes; then :
  11102. cat >>confdefs.h <<_ACEOF
  11103. #define HAVE_LONG_LONG 1
  11104. _ACEOF
  11105. # The cast to long int works around a bug in the HP C Compiler
  11106. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11107. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11108. # This bug is HP SR number 8606223364.
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  11110. $as_echo_n "checking size of long long... " >&6; }
  11111. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  11112. $as_echo_n "(cached) " >&6
  11113. else
  11114. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  11115. else
  11116. if test "$ac_cv_type_long_long" = yes; then
  11117. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11118. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11119. { as_fn_set_status 77
  11120. as_fn_error "cannot compute sizeof (long long)
  11121. See \`config.log' for more details." "$LINENO" 5; }; }
  11122. else
  11123. ac_cv_sizeof_long_long=0
  11124. fi
  11125. fi
  11126. fi
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  11128. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11129. cat >>confdefs.h <<_ACEOF
  11130. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11131. _ACEOF
  11132. fi
  11133. for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h
  11134. do :
  11135. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11136. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11137. eval as_val=\$$as_ac_Header
  11138. if test "x$as_val" = x""yes; then :
  11139. cat >>confdefs.h <<_ACEOF
  11140. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11141. _ACEOF
  11142. fi
  11143. done
  11144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11145. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11146. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  11147. $as_echo_n "(cached) " >&6
  11148. else
  11149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11150. /* end confdefs.h. */
  11151. #include <sys/types.h>
  11152. #include <sys/wait.h>
  11153. #ifndef WEXITSTATUS
  11154. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11155. #endif
  11156. #ifndef WIFEXITED
  11157. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11158. #endif
  11159. int
  11160. main ()
  11161. {
  11162. int s;
  11163. wait (&s);
  11164. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11165. ;
  11166. return 0;
  11167. }
  11168. _ACEOF
  11169. if ac_fn_c_try_compile "$LINENO"; then :
  11170. ac_cv_header_sys_wait_h=yes
  11171. else
  11172. ac_cv_header_sys_wait_h=no
  11173. fi
  11174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11175. fi
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11177. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  11178. if test $ac_cv_header_sys_wait_h = yes; then
  11179. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11180. fi
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  11182. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  11183. if test "${gcc_cv_header_string+set}" = set; then :
  11184. $as_echo_n "(cached) " >&6
  11185. else
  11186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11187. /* end confdefs.h. */
  11188. #include <string.h>
  11189. #include <strings.h>
  11190. int
  11191. main ()
  11192. {
  11193. ;
  11194. return 0;
  11195. }
  11196. _ACEOF
  11197. if ac_fn_c_try_compile "$LINENO"; then :
  11198. gcc_cv_header_string=yes
  11199. else
  11200. gcc_cv_header_string=no
  11201. fi
  11202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11203. fi
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  11205. $as_echo "$gcc_cv_header_string" >&6; }
  11206. if test $gcc_cv_header_string = yes; then
  11207. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  11208. fi
  11209. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  11210. # for constant arguments. Useless!
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  11212. $as_echo_n "checking for working alloca.h... " >&6; }
  11213. if test "${ac_cv_working_alloca_h+set}" = set; then :
  11214. $as_echo_n "(cached) " >&6
  11215. else
  11216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11217. /* end confdefs.h. */
  11218. #include <alloca.h>
  11219. int
  11220. main ()
  11221. {
  11222. char *p = (char *) alloca (2 * sizeof (int));
  11223. if (p) return 0;
  11224. ;
  11225. return 0;
  11226. }
  11227. _ACEOF
  11228. if ac_fn_c_try_link "$LINENO"; then :
  11229. ac_cv_working_alloca_h=yes
  11230. else
  11231. ac_cv_working_alloca_h=no
  11232. fi
  11233. rm -f core conftest.err conftest.$ac_objext \
  11234. conftest$ac_exeext conftest.$ac_ext
  11235. fi
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  11237. $as_echo "$ac_cv_working_alloca_h" >&6; }
  11238. if test $ac_cv_working_alloca_h = yes; then
  11239. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  11240. fi
  11241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  11242. $as_echo_n "checking for alloca... " >&6; }
  11243. if test "${ac_cv_func_alloca_works+set}" = set; then :
  11244. $as_echo_n "(cached) " >&6
  11245. else
  11246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11247. /* end confdefs.h. */
  11248. #ifdef __GNUC__
  11249. # define alloca __builtin_alloca
  11250. #else
  11251. # ifdef _MSC_VER
  11252. # include <malloc.h>
  11253. # define alloca _alloca
  11254. # else
  11255. # ifdef HAVE_ALLOCA_H
  11256. # include <alloca.h>
  11257. # else
  11258. # ifdef _AIX
  11259. #pragma alloca
  11260. # else
  11261. # ifndef alloca /* predefined by HP cc +Olibcalls */
  11262. char *alloca ();
  11263. # endif
  11264. # endif
  11265. # endif
  11266. # endif
  11267. #endif
  11268. int
  11269. main ()
  11270. {
  11271. char *p = (char *) alloca (1);
  11272. if (p) return 0;
  11273. ;
  11274. return 0;
  11275. }
  11276. _ACEOF
  11277. if ac_fn_c_try_link "$LINENO"; then :
  11278. ac_cv_func_alloca_works=yes
  11279. else
  11280. ac_cv_func_alloca_works=no
  11281. fi
  11282. rm -f core conftest.err conftest.$ac_objext \
  11283. conftest$ac_exeext conftest.$ac_ext
  11284. fi
  11285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  11286. $as_echo "$ac_cv_func_alloca_works" >&6; }
  11287. if test $ac_cv_func_alloca_works = yes; then
  11288. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  11289. else
  11290. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  11291. # that cause trouble. Some versions do not even contain alloca or
  11292. # contain a buggy version. If you still want to use their alloca,
  11293. # use ar to extract alloca.o from them instead of compiling alloca.c.
  11294. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  11295. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  11297. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  11298. if test "${ac_cv_os_cray+set}" = set; then :
  11299. $as_echo_n "(cached) " >&6
  11300. else
  11301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11302. /* end confdefs.h. */
  11303. #if defined CRAY && ! defined CRAY2
  11304. webecray
  11305. #else
  11306. wenotbecray
  11307. #endif
  11308. _ACEOF
  11309. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11310. $EGREP "webecray" >/dev/null 2>&1; then :
  11311. ac_cv_os_cray=yes
  11312. else
  11313. ac_cv_os_cray=no
  11314. fi
  11315. rm -f conftest*
  11316. fi
  11317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  11318. $as_echo "$ac_cv_os_cray" >&6; }
  11319. if test $ac_cv_os_cray = yes; then
  11320. for ac_func in _getb67 GETB67 getb67; do
  11321. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11322. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11323. eval as_val=\$$as_ac_var
  11324. if test "x$as_val" = x""yes; then :
  11325. cat >>confdefs.h <<_ACEOF
  11326. #define CRAY_STACKSEG_END $ac_func
  11327. _ACEOF
  11328. break
  11329. fi
  11330. done
  11331. fi
  11332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  11333. $as_echo_n "checking stack direction for C alloca... " >&6; }
  11334. if test "${ac_cv_c_stack_direction+set}" = set; then :
  11335. $as_echo_n "(cached) " >&6
  11336. else
  11337. if test "$cross_compiling" = yes; then :
  11338. ac_cv_c_stack_direction=0
  11339. else
  11340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11341. /* end confdefs.h. */
  11342. $ac_includes_default
  11343. int
  11344. find_stack_direction ()
  11345. {
  11346. static char *addr = 0;
  11347. auto char dummy;
  11348. if (addr == 0)
  11349. {
  11350. addr = &dummy;
  11351. return find_stack_direction ();
  11352. }
  11353. else
  11354. return (&dummy > addr) ? 1 : -1;
  11355. }
  11356. int
  11357. main ()
  11358. {
  11359. return find_stack_direction () < 0;
  11360. }
  11361. _ACEOF
  11362. if ac_fn_c_try_run "$LINENO"; then :
  11363. ac_cv_c_stack_direction=1
  11364. else
  11365. ac_cv_c_stack_direction=-1
  11366. fi
  11367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11368. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11369. fi
  11370. fi
  11371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  11372. $as_echo "$ac_cv_c_stack_direction" >&6; }
  11373. cat >>confdefs.h <<_ACEOF
  11374. #define STACK_DIRECTION $ac_cv_c_stack_direction
  11375. _ACEOF
  11376. fi
  11377. for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
  11378. do :
  11379. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11380. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11381. eval as_val=\$$as_ac_var
  11382. if test "x$as_val" = x""yes; then :
  11383. cat >>confdefs.h <<_ACEOF
  11384. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11385. _ACEOF
  11386. fi
  11387. done
  11388. ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
  11389. if test "x$ac_cv_func_mkstemp" = x""yes; then :
  11390. $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
  11391. fi
  11392. ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
  11393. if test "x$ac_cv_func_mkdtemp" = x""yes; then :
  11394. $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
  11395. fi
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11397. $as_echo_n "checking for mbstate_t... " >&6; }
  11398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11399. /* end confdefs.h. */
  11400. #include <wchar.h>
  11401. int
  11402. main ()
  11403. {
  11404. mbstate_t teststate;
  11405. ;
  11406. return 0;
  11407. }
  11408. _ACEOF
  11409. if ac_fn_c_try_compile "$LINENO"; then :
  11410. have_mbstate_t=yes
  11411. else
  11412. have_mbstate_t=no
  11413. fi
  11414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
  11416. $as_echo "$have_mbstate_t" >&6; }
  11417. if test x"$have_mbstate_t" = xyes; then
  11418. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  11419. fi
  11420. # Some systems have frexp only in -lm, not in -lc.
  11421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
  11422. $as_echo_n "checking for library containing frexp... " >&6; }
  11423. if test "${ac_cv_search_frexp+set}" = set; then :
  11424. $as_echo_n "(cached) " >&6
  11425. else
  11426. ac_func_search_save_LIBS=$LIBS
  11427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11428. /* end confdefs.h. */
  11429. /* Override any GCC internal prototype to avoid an error.
  11430. Use char because int might match the return type of a GCC
  11431. builtin and then its argument prototype would still apply. */
  11432. #ifdef __cplusplus
  11433. extern "C"
  11434. #endif
  11435. char frexp ();
  11436. int
  11437. main ()
  11438. {
  11439. return frexp ();
  11440. ;
  11441. return 0;
  11442. }
  11443. _ACEOF
  11444. for ac_lib in '' m; do
  11445. if test -z "$ac_lib"; then
  11446. ac_res="none required"
  11447. else
  11448. ac_res=-l$ac_lib
  11449. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11450. fi
  11451. if ac_fn_c_try_link "$LINENO"; then :
  11452. ac_cv_search_frexp=$ac_res
  11453. fi
  11454. rm -f core conftest.err conftest.$ac_objext \
  11455. conftest$ac_exeext
  11456. if test "${ac_cv_search_frexp+set}" = set; then :
  11457. break
  11458. fi
  11459. done
  11460. if test "${ac_cv_search_frexp+set}" = set; then :
  11461. else
  11462. ac_cv_search_frexp=no
  11463. fi
  11464. rm conftest.$ac_ext
  11465. LIBS=$ac_func_search_save_LIBS
  11466. fi
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
  11468. $as_echo "$ac_cv_search_frexp" >&6; }
  11469. ac_res=$ac_cv_search_frexp
  11470. if test "$ac_res" != no; then :
  11471. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11472. fi
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11474. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11475. if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
  11476. $as_echo_n "(cached) " >&6
  11477. else
  11478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11479. /* end confdefs.h. */
  11480. #include <locale.h>
  11481. int
  11482. main ()
  11483. {
  11484. return LC_MESSAGES
  11485. ;
  11486. return 0;
  11487. }
  11488. _ACEOF
  11489. if ac_fn_c_try_link "$LINENO"; then :
  11490. am_cv_val_LC_MESSAGES=yes
  11491. else
  11492. am_cv_val_LC_MESSAGES=no
  11493. fi
  11494. rm -f core conftest.err conftest.$ac_objext \
  11495. conftest$ac_exeext conftest.$ac_ext
  11496. fi
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  11498. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  11499. if test $am_cv_val_LC_MESSAGES = yes; then
  11500. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11501. fi
  11502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
  11503. $as_echo_n "checking for time_t in time.h... " >&6; }
  11504. if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
  11505. $as_echo_n "(cached) " >&6
  11506. else
  11507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11508. /* end confdefs.h. */
  11509. #include <time.h>
  11510. int
  11511. main ()
  11512. {
  11513. time_t i;
  11514. ;
  11515. return 0;
  11516. }
  11517. _ACEOF
  11518. if ac_fn_c_try_compile "$LINENO"; then :
  11519. bu_cv_decl_time_t_time_h=yes
  11520. else
  11521. bu_cv_decl_time_t_time_h=no
  11522. fi
  11523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11524. fi
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
  11526. $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
  11527. if test $bu_cv_decl_time_t_time_h = yes; then
  11528. $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
  11529. fi
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
  11531. $as_echo_n "checking for time_t in sys/types.h... " >&6; }
  11532. if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
  11533. $as_echo_n "(cached) " >&6
  11534. else
  11535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11536. /* end confdefs.h. */
  11537. #include <sys/types.h>
  11538. int
  11539. main ()
  11540. {
  11541. time_t i;
  11542. ;
  11543. return 0;
  11544. }
  11545. _ACEOF
  11546. if ac_fn_c_try_compile "$LINENO"; then :
  11547. bu_cv_decl_time_t_types_h=yes
  11548. else
  11549. bu_cv_decl_time_t_types_h=no
  11550. fi
  11551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11552. fi
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
  11554. $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
  11555. if test $bu_cv_decl_time_t_types_h = yes; then
  11556. $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
  11557. fi
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
  11559. $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
  11560. if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
  11561. $as_echo_n "(cached) " >&6
  11562. else
  11563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11564. /* end confdefs.h. */
  11565. #include <unistd.h>
  11566. int
  11567. main ()
  11568. {
  11569. extern int getopt (int, char *const*, const char *);
  11570. ;
  11571. return 0;
  11572. }
  11573. _ACEOF
  11574. if ac_fn_c_try_compile "$LINENO"; then :
  11575. bu_cv_decl_getopt_unistd_h=yes
  11576. else
  11577. bu_cv_decl_getopt_unistd_h=no
  11578. fi
  11579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11580. fi
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
  11582. $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
  11583. if test $bu_cv_decl_getopt_unistd_h = yes; then
  11584. $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
  11585. fi
  11586. # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
  11587. # by default.
  11588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
  11589. $as_echo_n "checking for utime.h... " >&6; }
  11590. if test "${bu_cv_header_utime_h+set}" = set; then :
  11591. $as_echo_n "(cached) " >&6
  11592. else
  11593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11594. /* end confdefs.h. */
  11595. #include <sys/types.h>
  11596. #ifdef HAVE_TIME_H
  11597. #include <time.h>
  11598. #endif
  11599. #include <utime.h>
  11600. int
  11601. main ()
  11602. {
  11603. struct utimbuf s;
  11604. ;
  11605. return 0;
  11606. }
  11607. _ACEOF
  11608. if ac_fn_c_try_compile "$LINENO"; then :
  11609. bu_cv_header_utime_h=yes
  11610. else
  11611. bu_cv_header_utime_h=no
  11612. fi
  11613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11614. fi
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
  11616. $as_echo "$bu_cv_header_utime_h" >&6; }
  11617. if test $bu_cv_header_utime_h = yes; then
  11618. $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
  11619. fi
  11620. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  11621. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  11622. ac_have_decl=1
  11623. else
  11624. ac_have_decl=0
  11625. fi
  11626. cat >>confdefs.h <<_ACEOF
  11627. #define HAVE_DECL_ASPRINTF $ac_have_decl
  11628. _ACEOF
  11629. ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
  11630. if test "x$ac_cv_have_decl_environ" = x""yes; then :
  11631. ac_have_decl=1
  11632. else
  11633. ac_have_decl=0
  11634. fi
  11635. cat >>confdefs.h <<_ACEOF
  11636. #define HAVE_DECL_ENVIRON $ac_have_decl
  11637. _ACEOF
  11638. ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
  11639. if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
  11640. ac_have_decl=1
  11641. else
  11642. ac_have_decl=0
  11643. fi
  11644. cat >>confdefs.h <<_ACEOF
  11645. #define HAVE_DECL_FPRINTF $ac_have_decl
  11646. _ACEOF
  11647. ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
  11648. if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
  11649. ac_have_decl=1
  11650. else
  11651. ac_have_decl=0
  11652. fi
  11653. cat >>confdefs.h <<_ACEOF
  11654. #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
  11655. _ACEOF
  11656. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  11657. if test "x$ac_cv_have_decl_getenv" = x""yes; then :
  11658. ac_have_decl=1
  11659. else
  11660. ac_have_decl=0
  11661. fi
  11662. cat >>confdefs.h <<_ACEOF
  11663. #define HAVE_DECL_GETENV $ac_have_decl
  11664. _ACEOF
  11665. ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
  11666. if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
  11667. ac_have_decl=1
  11668. else
  11669. ac_have_decl=0
  11670. fi
  11671. cat >>confdefs.h <<_ACEOF
  11672. #define HAVE_DECL_SBRK $ac_have_decl
  11673. _ACEOF
  11674. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  11675. if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
  11676. ac_have_decl=1
  11677. else
  11678. ac_have_decl=0
  11679. fi
  11680. cat >>confdefs.h <<_ACEOF
  11681. #define HAVE_DECL_SNPRINTF $ac_have_decl
  11682. _ACEOF
  11683. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  11684. if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
  11685. ac_have_decl=1
  11686. else
  11687. ac_have_decl=0
  11688. fi
  11689. cat >>confdefs.h <<_ACEOF
  11690. #define HAVE_DECL_STPCPY $ac_have_decl
  11691. _ACEOF
  11692. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  11693. if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
  11694. ac_have_decl=1
  11695. else
  11696. ac_have_decl=0
  11697. fi
  11698. cat >>confdefs.h <<_ACEOF
  11699. #define HAVE_DECL_STRNLEN $ac_have_decl
  11700. _ACEOF
  11701. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  11702. if test "x$ac_cv_have_decl_strstr" = x""yes; then :
  11703. ac_have_decl=1
  11704. else
  11705. ac_have_decl=0
  11706. fi
  11707. cat >>confdefs.h <<_ACEOF
  11708. #define HAVE_DECL_STRSTR $ac_have_decl
  11709. _ACEOF
  11710. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  11711. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  11712. ac_have_decl=1
  11713. else
  11714. ac_have_decl=0
  11715. fi
  11716. cat >>confdefs.h <<_ACEOF
  11717. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  11718. _ACEOF
  11719. # Link in zlib if we can. This allows us to read compressed debug
  11720. # sections. This is used only by readelf.c (objdump uses bfd for
  11721. # reading compressed sections).
  11722. # Use the system's zlib library.
  11723. zlibdir="-L\$(top_builddir)/../zlib"
  11724. zlibinc="-I\$(top_srcdir)/../zlib"
  11725. # Check whether --with-system-zlib was given.
  11726. if test "${with_system_zlib+set}" = set; then :
  11727. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  11728. zlibdir=
  11729. zlibinc=
  11730. fi
  11731. fi
  11732. case "${host}" in
  11733. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  11734. $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
  11735. ;;
  11736. esac
  11737. # target-specific stuff:
  11738. # Canonicalize the secondary target names.
  11739. if test -n "$enable_targets"; then
  11740. for targ in `echo $enable_targets | sed 's/,/ /g'`
  11741. do
  11742. result=`$ac_config_sub $targ 2>/dev/null`
  11743. if test -n "$result"; then
  11744. canon_targets="$canon_targets $result"
  11745. else
  11746. # Allow targets that config.sub doesn't recognize, like "all".
  11747. canon_targets="$canon_targets $targ"
  11748. fi
  11749. done
  11750. fi
  11751. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  11752. if test "x$ac_cv_header_iconv_h" = x""yes; then :
  11753. fi
  11754. if test "X$prefix" = "XNONE"; then
  11755. acl_final_prefix="$ac_default_prefix"
  11756. else
  11757. acl_final_prefix="$prefix"
  11758. fi
  11759. if test "X$exec_prefix" = "XNONE"; then
  11760. acl_final_exec_prefix='${prefix}'
  11761. else
  11762. acl_final_exec_prefix="$exec_prefix"
  11763. fi
  11764. acl_save_prefix="$prefix"
  11765. prefix="$acl_final_prefix"
  11766. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11767. prefix="$acl_save_prefix"
  11768. # Check whether --with-gnu-ld was given.
  11769. if test "${with_gnu_ld+set}" = set; then :
  11770. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11771. else
  11772. with_gnu_ld=no
  11773. fi
  11774. # Prepare PATH_SEPARATOR.
  11775. # The user is always right.
  11776. if test "${PATH_SEPARATOR+set}" != set; then
  11777. echo "#! /bin/sh" >conf$$.sh
  11778. echo "exit 0" >>conf$$.sh
  11779. chmod +x conf$$.sh
  11780. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11781. PATH_SEPARATOR=';'
  11782. else
  11783. PATH_SEPARATOR=:
  11784. fi
  11785. rm -f conf$$.sh
  11786. fi
  11787. ac_prog=ld
  11788. if test "$GCC" = yes; then
  11789. # Check if gcc -print-prog-name=ld gives a path.
  11790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  11791. $as_echo_n "checking for ld used by GCC... " >&6; }
  11792. case $host in
  11793. *-*-mingw*)
  11794. # gcc leaves a trailing carriage return which upsets mingw
  11795. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11796. *)
  11797. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11798. esac
  11799. case $ac_prog in
  11800. # Accept absolute paths.
  11801. [\\/]* | [A-Za-z]:[\\/]*)
  11802. re_direlt='/[^/][^/]*/\.\./'
  11803. # Canonicalize the path of ld
  11804. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11805. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11806. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11807. done
  11808. test -z "$LD" && LD="$ac_prog"
  11809. ;;
  11810. "")
  11811. # If it fails, then pretend we aren't using GCC.
  11812. ac_prog=ld
  11813. ;;
  11814. *)
  11815. # If it is relative, then search for the first ld in PATH.
  11816. with_gnu_ld=unknown
  11817. ;;
  11818. esac
  11819. elif test "$with_gnu_ld" = yes; then
  11820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11821. $as_echo_n "checking for GNU ld... " >&6; }
  11822. else
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11824. $as_echo_n "checking for non-GNU ld... " >&6; }
  11825. fi
  11826. if test "${acl_cv_path_LD+set}" = set; then :
  11827. $as_echo_n "(cached) " >&6
  11828. else
  11829. if test -z "$LD"; then
  11830. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11831. for ac_dir in $PATH; do
  11832. test -z "$ac_dir" && ac_dir=.
  11833. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11834. acl_cv_path_LD="$ac_dir/$ac_prog"
  11835. # Check to see if the program is GNU ld. I'd rather use --version,
  11836. # but apparently some GNU ld's only accept -v.
  11837. # Break only if it was the GNU/non-GNU ld that we prefer.
  11838. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  11839. test "$with_gnu_ld" != no && break
  11840. else
  11841. test "$with_gnu_ld" != yes && break
  11842. fi
  11843. fi
  11844. done
  11845. IFS="$ac_save_ifs"
  11846. else
  11847. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11848. fi
  11849. fi
  11850. LD="$acl_cv_path_LD"
  11851. if test -n "$LD"; then
  11852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11853. $as_echo "$LD" >&6; }
  11854. else
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11856. $as_echo "no" >&6; }
  11857. fi
  11858. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  11859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11860. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11861. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  11862. $as_echo_n "(cached) " >&6
  11863. else
  11864. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11865. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  11866. acl_cv_prog_gnu_ld=yes
  11867. else
  11868. acl_cv_prog_gnu_ld=no
  11869. fi
  11870. fi
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  11872. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11873. with_gnu_ld=$acl_cv_prog_gnu_ld
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  11875. $as_echo_n "checking for shared library run path origin... " >&6; }
  11876. if test "${acl_cv_rpath+set}" = set; then :
  11877. $as_echo_n "(cached) " >&6
  11878. else
  11879. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11880. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11881. . ./conftest.sh
  11882. rm -f ./conftest.sh
  11883. acl_cv_rpath=done
  11884. fi
  11885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  11886. $as_echo "$acl_cv_rpath" >&6; }
  11887. wl="$acl_cv_wl"
  11888. libext="$acl_cv_libext"
  11889. shlibext="$acl_cv_shlibext"
  11890. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11891. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11892. hardcode_direct="$acl_cv_hardcode_direct"
  11893. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11894. # Check whether --enable-rpath was given.
  11895. if test "${enable_rpath+set}" = set; then :
  11896. enableval=$enable_rpath; :
  11897. else
  11898. enable_rpath=yes
  11899. fi
  11900. use_additional=yes
  11901. acl_save_prefix="$prefix"
  11902. prefix="$acl_final_prefix"
  11903. acl_save_exec_prefix="$exec_prefix"
  11904. exec_prefix="$acl_final_exec_prefix"
  11905. eval additional_includedir=\"$includedir\"
  11906. eval additional_libdir=\"$libdir\"
  11907. exec_prefix="$acl_save_exec_prefix"
  11908. prefix="$acl_save_prefix"
  11909. # Check whether --with-libiconv-prefix was given.
  11910. if test "${with_libiconv_prefix+set}" = set; then :
  11911. withval=$with_libiconv_prefix;
  11912. if test "X$withval" = "Xno"; then
  11913. use_additional=no
  11914. else
  11915. if test "X$withval" = "X"; then
  11916. acl_save_prefix="$prefix"
  11917. prefix="$acl_final_prefix"
  11918. acl_save_exec_prefix="$exec_prefix"
  11919. exec_prefix="$acl_final_exec_prefix"
  11920. eval additional_includedir=\"$includedir\"
  11921. eval additional_libdir=\"$libdir\"
  11922. exec_prefix="$acl_save_exec_prefix"
  11923. prefix="$acl_save_prefix"
  11924. else
  11925. additional_includedir="$withval/include"
  11926. additional_libdir="$withval/lib"
  11927. fi
  11928. fi
  11929. fi
  11930. LIBICONV=
  11931. LTLIBICONV=
  11932. INCICONV=
  11933. rpathdirs=
  11934. ltrpathdirs=
  11935. names_already_handled=
  11936. names_next_round='iconv '
  11937. while test -n "$names_next_round"; do
  11938. names_this_round="$names_next_round"
  11939. names_next_round=
  11940. for name in $names_this_round; do
  11941. already_handled=
  11942. for n in $names_already_handled; do
  11943. if test "$n" = "$name"; then
  11944. already_handled=yes
  11945. break
  11946. fi
  11947. done
  11948. if test -z "$already_handled"; then
  11949. names_already_handled="$names_already_handled $name"
  11950. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11951. eval value=\"\$HAVE_LIB$uppername\"
  11952. if test -n "$value"; then
  11953. if test "$value" = yes; then
  11954. eval value=\"\$LIB$uppername\"
  11955. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11956. eval value=\"\$LTLIB$uppername\"
  11957. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11958. else
  11959. :
  11960. fi
  11961. else
  11962. found_dir=
  11963. found_la=
  11964. found_so=
  11965. found_a=
  11966. if test $use_additional = yes; then
  11967. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  11968. found_dir="$additional_libdir"
  11969. found_so="$additional_libdir/lib$name.$shlibext"
  11970. if test -f "$additional_libdir/lib$name.la"; then
  11971. found_la="$additional_libdir/lib$name.la"
  11972. fi
  11973. else
  11974. if test -f "$additional_libdir/lib$name.$libext"; then
  11975. found_dir="$additional_libdir"
  11976. found_a="$additional_libdir/lib$name.$libext"
  11977. if test -f "$additional_libdir/lib$name.la"; then
  11978. found_la="$additional_libdir/lib$name.la"
  11979. fi
  11980. fi
  11981. fi
  11982. fi
  11983. if test "X$found_dir" = "X"; then
  11984. for x in $LDFLAGS $LTLIBICONV; do
  11985. acl_save_prefix="$prefix"
  11986. prefix="$acl_final_prefix"
  11987. acl_save_exec_prefix="$exec_prefix"
  11988. exec_prefix="$acl_final_exec_prefix"
  11989. eval x=\"$x\"
  11990. exec_prefix="$acl_save_exec_prefix"
  11991. prefix="$acl_save_prefix"
  11992. case "$x" in
  11993. -L*)
  11994. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11995. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  11996. found_dir="$dir"
  11997. found_so="$dir/lib$name.$shlibext"
  11998. if test -f "$dir/lib$name.la"; then
  11999. found_la="$dir/lib$name.la"
  12000. fi
  12001. else
  12002. if test -f "$dir/lib$name.$libext"; then
  12003. found_dir="$dir"
  12004. found_a="$dir/lib$name.$libext"
  12005. if test -f "$dir/lib$name.la"; then
  12006. found_la="$dir/lib$name.la"
  12007. fi
  12008. fi
  12009. fi
  12010. ;;
  12011. esac
  12012. if test "X$found_dir" != "X"; then
  12013. break
  12014. fi
  12015. done
  12016. fi
  12017. if test "X$found_dir" != "X"; then
  12018. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12019. if test "X$found_so" != "X"; then
  12020. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  12021. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12022. else
  12023. haveit=
  12024. for x in $ltrpathdirs; do
  12025. if test "X$x" = "X$found_dir"; then
  12026. haveit=yes
  12027. break
  12028. fi
  12029. done
  12030. if test -z "$haveit"; then
  12031. ltrpathdirs="$ltrpathdirs $found_dir"
  12032. fi
  12033. if test "$hardcode_direct" = yes; then
  12034. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12035. else
  12036. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  12037. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12038. haveit=
  12039. for x in $rpathdirs; do
  12040. if test "X$x" = "X$found_dir"; then
  12041. haveit=yes
  12042. break
  12043. fi
  12044. done
  12045. if test -z "$haveit"; then
  12046. rpathdirs="$rpathdirs $found_dir"
  12047. fi
  12048. else
  12049. haveit=
  12050. for x in $LDFLAGS $LIBICONV; do
  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 x=\"$x\"
  12056. exec_prefix="$acl_save_exec_prefix"
  12057. prefix="$acl_save_prefix"
  12058. if test "X$x" = "X-L$found_dir"; then
  12059. haveit=yes
  12060. break
  12061. fi
  12062. done
  12063. if test -z "$haveit"; then
  12064. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12065. fi
  12066. if test "$hardcode_minus_L" != no; then
  12067. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12068. else
  12069. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12070. fi
  12071. fi
  12072. fi
  12073. fi
  12074. else
  12075. if test "X$found_a" != "X"; then
  12076. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12077. else
  12078. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12079. fi
  12080. fi
  12081. additional_includedir=
  12082. case "$found_dir" in
  12083. */lib | */lib/)
  12084. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  12085. additional_includedir="$basedir/include"
  12086. ;;
  12087. esac
  12088. if test "X$additional_includedir" != "X"; then
  12089. if test "X$additional_includedir" != "X/usr/include"; then
  12090. haveit=
  12091. if test "X$additional_includedir" = "X/usr/local/include"; then
  12092. if test -n "$GCC"; then
  12093. case $host_os in
  12094. linux*) haveit=yes;;
  12095. esac
  12096. fi
  12097. fi
  12098. if test -z "$haveit"; then
  12099. for x in $CPPFLAGS $INCICONV; do
  12100. acl_save_prefix="$prefix"
  12101. prefix="$acl_final_prefix"
  12102. acl_save_exec_prefix="$exec_prefix"
  12103. exec_prefix="$acl_final_exec_prefix"
  12104. eval x=\"$x\"
  12105. exec_prefix="$acl_save_exec_prefix"
  12106. prefix="$acl_save_prefix"
  12107. if test "X$x" = "X-I$additional_includedir"; then
  12108. haveit=yes
  12109. break
  12110. fi
  12111. done
  12112. if test -z "$haveit"; then
  12113. if test -d "$additional_includedir"; then
  12114. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12115. fi
  12116. fi
  12117. fi
  12118. fi
  12119. fi
  12120. if test -n "$found_la"; then
  12121. save_libdir="$libdir"
  12122. case "$found_la" in
  12123. */* | *\\*) . "$found_la" ;;
  12124. *) . "./$found_la" ;;
  12125. esac
  12126. libdir="$save_libdir"
  12127. for dep in $dependency_libs; do
  12128. case "$dep" in
  12129. -L*)
  12130. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12131. if test "X$additional_libdir" != "X/usr/lib"; then
  12132. haveit=
  12133. if test "X$additional_libdir" = "X/usr/local/lib"; then
  12134. if test -n "$GCC"; then
  12135. case $host_os in
  12136. linux*) haveit=yes;;
  12137. esac
  12138. fi
  12139. fi
  12140. if test -z "$haveit"; then
  12141. haveit=
  12142. for x in $LDFLAGS $LIBICONV; do
  12143. acl_save_prefix="$prefix"
  12144. prefix="$acl_final_prefix"
  12145. acl_save_exec_prefix="$exec_prefix"
  12146. exec_prefix="$acl_final_exec_prefix"
  12147. eval x=\"$x\"
  12148. exec_prefix="$acl_save_exec_prefix"
  12149. prefix="$acl_save_prefix"
  12150. if test "X$x" = "X-L$additional_libdir"; then
  12151. haveit=yes
  12152. break
  12153. fi
  12154. done
  12155. if test -z "$haveit"; then
  12156. if test -d "$additional_libdir"; then
  12157. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12158. fi
  12159. fi
  12160. haveit=
  12161. for x in $LDFLAGS $LTLIBICONV; do
  12162. acl_save_prefix="$prefix"
  12163. prefix="$acl_final_prefix"
  12164. acl_save_exec_prefix="$exec_prefix"
  12165. exec_prefix="$acl_final_exec_prefix"
  12166. eval x=\"$x\"
  12167. exec_prefix="$acl_save_exec_prefix"
  12168. prefix="$acl_save_prefix"
  12169. if test "X$x" = "X-L$additional_libdir"; then
  12170. haveit=yes
  12171. break
  12172. fi
  12173. done
  12174. if test -z "$haveit"; then
  12175. if test -d "$additional_libdir"; then
  12176. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12177. fi
  12178. fi
  12179. fi
  12180. fi
  12181. ;;
  12182. -R*)
  12183. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12184. if test "$enable_rpath" != no; then
  12185. haveit=
  12186. for x in $rpathdirs; do
  12187. if test "X$x" = "X$dir"; then
  12188. haveit=yes
  12189. break
  12190. fi
  12191. done
  12192. if test -z "$haveit"; then
  12193. rpathdirs="$rpathdirs $dir"
  12194. fi
  12195. haveit=
  12196. for x in $ltrpathdirs; do
  12197. if test "X$x" = "X$dir"; then
  12198. haveit=yes
  12199. break
  12200. fi
  12201. done
  12202. if test -z "$haveit"; then
  12203. ltrpathdirs="$ltrpathdirs $dir"
  12204. fi
  12205. fi
  12206. ;;
  12207. -l*)
  12208. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12209. ;;
  12210. *.la)
  12211. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12212. ;;
  12213. *)
  12214. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12215. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12216. ;;
  12217. esac
  12218. done
  12219. fi
  12220. else
  12221. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12222. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12223. fi
  12224. fi
  12225. fi
  12226. done
  12227. done
  12228. if test "X$rpathdirs" != "X"; then
  12229. if test -n "$hardcode_libdir_separator"; then
  12230. alldirs=
  12231. for found_dir in $rpathdirs; do
  12232. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  12233. done
  12234. acl_save_libdir="$libdir"
  12235. libdir="$alldirs"
  12236. eval flag=\"$hardcode_libdir_flag_spec\"
  12237. libdir="$acl_save_libdir"
  12238. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12239. else
  12240. for found_dir in $rpathdirs; do
  12241. acl_save_libdir="$libdir"
  12242. libdir="$found_dir"
  12243. eval flag=\"$hardcode_libdir_flag_spec\"
  12244. libdir="$acl_save_libdir"
  12245. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12246. done
  12247. fi
  12248. fi
  12249. if test "X$ltrpathdirs" != "X"; then
  12250. for found_dir in $ltrpathdirs; do
  12251. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12252. done
  12253. fi
  12254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  12255. $as_echo_n "checking for iconv... " >&6; }
  12256. if test "${am_cv_func_iconv+set}" = set; then :
  12257. $as_echo_n "(cached) " >&6
  12258. else
  12259. am_cv_func_iconv="no, consider installing GNU libiconv"
  12260. am_cv_lib_iconv=no
  12261. am_save_CPPFLAGS="$CPPFLAGS"
  12262. CPPFLAGS="$CPPFLAGS $INCICONV"
  12263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12264. /* end confdefs.h. */
  12265. #include <stdlib.h>
  12266. #include <iconv.h>
  12267. int
  12268. main ()
  12269. {
  12270. iconv_t cd = iconv_open("","");
  12271. iconv(cd,NULL,NULL,NULL,NULL);
  12272. iconv_close(cd);
  12273. ;
  12274. return 0;
  12275. }
  12276. _ACEOF
  12277. if ac_fn_c_try_link "$LINENO"; then :
  12278. am_cv_func_iconv=yes
  12279. fi
  12280. rm -f core conftest.err conftest.$ac_objext \
  12281. conftest$ac_exeext conftest.$ac_ext
  12282. CPPFLAGS="$am_save_CPPFLAGS"
  12283. if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
  12284. for _libs in .libs _libs; do
  12285. am_save_CPPFLAGS="$CPPFLAGS"
  12286. am_save_LIBS="$LIBS"
  12287. CPPFLAGS="$CPPFLAGS -I../libiconv/include"
  12288. LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
  12289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12290. /* end confdefs.h. */
  12291. #include <stdlib.h>
  12292. #include <iconv.h>
  12293. int
  12294. main ()
  12295. {
  12296. iconv_t cd = iconv_open("","");
  12297. iconv(cd,NULL,NULL,NULL,NULL);
  12298. iconv_close(cd);
  12299. ;
  12300. return 0;
  12301. }
  12302. _ACEOF
  12303. if ac_fn_c_try_link "$LINENO"; then :
  12304. INCICONV="-I../libiconv/include"
  12305. LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
  12306. LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
  12307. am_cv_lib_iconv=yes
  12308. am_cv_func_iconv=yes
  12309. fi
  12310. rm -f core conftest.err conftest.$ac_objext \
  12311. conftest$ac_exeext conftest.$ac_ext
  12312. CPPFLAGS="$am_save_CPPFLAGS"
  12313. LIBS="$am_save_LIBS"
  12314. if test "$am_cv_func_iconv" = "yes"; then
  12315. break
  12316. fi
  12317. done
  12318. fi
  12319. if test "$am_cv_func_iconv" != yes; then
  12320. am_save_CPPFLAGS="$CPPFLAGS"
  12321. am_save_LIBS="$LIBS"
  12322. CPPFLAGS="$LIBS $INCICONV"
  12323. LIBS="$LIBS $LIBICONV"
  12324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12325. /* end confdefs.h. */
  12326. #include <stdlib.h>
  12327. #include <iconv.h>
  12328. int
  12329. main ()
  12330. {
  12331. iconv_t cd = iconv_open("","");
  12332. iconv(cd,NULL,NULL,NULL,NULL);
  12333. iconv_close(cd);
  12334. ;
  12335. return 0;
  12336. }
  12337. _ACEOF
  12338. if ac_fn_c_try_link "$LINENO"; then :
  12339. am_cv_lib_iconv=yes
  12340. am_cv_func_iconv=yes
  12341. fi
  12342. rm -f core conftest.err conftest.$ac_objext \
  12343. conftest$ac_exeext conftest.$ac_ext
  12344. CPPFLAGS="$am_save_CPPFLAGS"
  12345. LIBS="$am_save_LIBS"
  12346. fi
  12347. fi
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  12349. $as_echo "$am_cv_func_iconv" >&6; }
  12350. if test "$am_cv_func_iconv" = yes; then
  12351. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  12352. fi
  12353. if test "$am_cv_lib_iconv" = yes; then
  12354. for element in $INCICONV; do
  12355. haveit=
  12356. for x in $CPPFLAGS; do
  12357. acl_save_prefix="$prefix"
  12358. prefix="$acl_final_prefix"
  12359. acl_save_exec_prefix="$exec_prefix"
  12360. exec_prefix="$acl_final_exec_prefix"
  12361. eval x=\"$x\"
  12362. exec_prefix="$acl_save_exec_prefix"
  12363. prefix="$acl_save_prefix"
  12364. if test "X$x" = "X$element"; then
  12365. haveit=yes
  12366. break
  12367. fi
  12368. done
  12369. if test -z "$haveit"; then
  12370. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12371. fi
  12372. done
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  12374. $as_echo_n "checking how to link with libiconv... " >&6; }
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  12376. $as_echo "$LIBICONV" >&6; }
  12377. else
  12378. LIBICONV=
  12379. LTLIBICONV=
  12380. fi
  12381. if test "$am_cv_func_iconv" = yes; then
  12382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  12383. $as_echo_n "checking for iconv declaration... " >&6; }
  12384. if test "${am_cv_proto_iconv+set}" = set; then :
  12385. $as_echo_n "(cached) " >&6
  12386. else
  12387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12388. /* end confdefs.h. */
  12389. #include <stdlib.h>
  12390. #include <iconv.h>
  12391. extern
  12392. #ifdef __cplusplus
  12393. "C"
  12394. #endif
  12395. #if defined(__STDC__) || defined(__cplusplus)
  12396. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12397. #else
  12398. size_t iconv();
  12399. #endif
  12400. int
  12401. main ()
  12402. {
  12403. ;
  12404. return 0;
  12405. }
  12406. _ACEOF
  12407. if ac_fn_c_try_compile "$LINENO"; then :
  12408. am_cv_proto_iconv_arg1=""
  12409. else
  12410. am_cv_proto_iconv_arg1="const"
  12411. fi
  12412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12413. 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);"
  12414. fi
  12415. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  12417. }$am_cv_proto_iconv" >&5
  12418. $as_echo "${ac_t:-
  12419. }$am_cv_proto_iconv" >&6; }
  12420. cat >>confdefs.h <<_ACEOF
  12421. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12422. _ACEOF
  12423. fi
  12424. all_targets=false
  12425. BUILD_NLMCONV=
  12426. NLMCONV_DEFS=
  12427. BUILD_SRCONV=
  12428. BUILD_DLLTOOL=
  12429. DLLTOOL_DEFS=
  12430. DLLTOOL_DEFAULT=
  12431. BUILD_WINDRES=
  12432. BUILD_WINDMC=
  12433. BUILD_DLLWRAP=
  12434. BUILD_MISC=
  12435. BUILD_INSTALL_MISC=
  12436. OBJDUMP_DEFS=
  12437. OBJDUMP_PRIVATE_VECTORS=
  12438. OBJDUMP_PRIVATE_OFILES=
  12439. od_vectors=
  12440. for targ in $target $canon_targets
  12441. do
  12442. if test "x$targ" = "xall"; then
  12443. all_targets=true
  12444. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12445. BUILD_SRCONV='$(SRCONV_PROG)'
  12446. NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
  12447. BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
  12448. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12449. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12450. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12451. if test -z "$DLLTOOL_DEFAULT"; then
  12452. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12453. fi
  12454. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12455. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12456. od_vectors="$od_vectors objdump_private_desc_xcoff"
  12457. else
  12458. case $targ in
  12459. i[3-7]86*-*-netware*)
  12460. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12461. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
  12462. ;;
  12463. alpha*-*-netware*)
  12464. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12465. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
  12466. ;;
  12467. powerpc*-*-netware*)
  12468. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12469. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
  12470. ;;
  12471. sparc*-*-netware*)
  12472. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12473. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
  12474. ;;
  12475. esac
  12476. case $targ in
  12477. *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
  12478. esac
  12479. case $targ in
  12480. arm-epoc-pe*)
  12481. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12482. if test -z "$DLLTOOL_DEFAULT"; then
  12483. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
  12484. fi
  12485. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
  12486. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12487. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12488. ;;
  12489. arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
  12490. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12491. if test -z "$DLLTOOL_DEFAULT"; then
  12492. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
  12493. fi
  12494. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
  12495. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12496. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12497. ;;
  12498. arm-*-pe*)
  12499. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12500. if test -z "$DLLTOOL_DEFAULT"; then
  12501. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
  12502. fi
  12503. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
  12504. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12505. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12506. ;;
  12507. x86_64-*-mingw* | x86_64-*-cygwin*)
  12508. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12509. if test -z "$DLLTOOL_DEFAULT"; then
  12510. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
  12511. fi
  12512. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
  12513. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12514. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12515. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12516. ;;
  12517. i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
  12518. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12519. if test -z "$DLLTOOL_DEFAULT"; then
  12520. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12521. fi
  12522. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12523. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12524. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12525. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12526. ;;
  12527. i[3-7]86-*-interix)
  12528. BUILD_DLLTOOL='$(DLLTOOL_PROG)'
  12529. if test -z "$DLLTOOL_DEFAULT"; then
  12530. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12531. fi
  12532. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12533. ;;
  12534. powerpc*-aix5.[01])
  12535. ;;
  12536. powerpc*-aix[5-9].*)
  12537. OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
  12538. ;;
  12539. powerpc*-*-pe* | powerpc*-*-cygwin*)
  12540. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12541. if test -z "$DLLTOOL_DEFAULT"; then
  12542. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
  12543. fi
  12544. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
  12545. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12546. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12547. ;;
  12548. powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
  12549. case "$BUILD_INSTALL_MISC" in
  12550. *embedspu*) ;;
  12551. *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
  12552. esac
  12553. ;;
  12554. sh*-*-pe)
  12555. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12556. if test -z "$DLLTOOL_DEFAULT"; then
  12557. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
  12558. fi
  12559. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
  12560. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12561. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12562. ;;
  12563. spu-*-*)
  12564. BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
  12565. ;;
  12566. mips*-*-pe)
  12567. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12568. if test -z "$DLLTOOL_DEFAULT"; then
  12569. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
  12570. fi
  12571. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
  12572. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12573. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12574. ;;
  12575. mcore-*-pe)
  12576. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12577. if test -z "$DLLTOOL_DEFAULT"; then
  12578. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
  12579. fi
  12580. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
  12581. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12582. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12583. ;;
  12584. mcore-*-elf)
  12585. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12586. if test -z "$DLLTOOL_DEFAULT"; then
  12587. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
  12588. fi
  12589. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
  12590. ;;
  12591. mep-*)
  12592. OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
  12593. ;;
  12594. esac
  12595. # Add objdump private vectors.
  12596. case $targ in
  12597. avr-*-*)
  12598. od_vectors="$od_vectors objdump_private_desc_elf32_avr"
  12599. ;;
  12600. powerpc-*-aix*)
  12601. od_vectors="$od_vectors objdump_private_desc_xcoff"
  12602. ;;
  12603. *-*-darwin*)
  12604. od_vectors="$od_vectors objdump_private_desc_mach_o"
  12605. ;;
  12606. esac
  12607. fi
  12608. done
  12609. # Uniq objdump private vector, build objdump target ofiles.
  12610. od_files=
  12611. f=""
  12612. for i in $od_vectors ; do
  12613. case " $f " in
  12614. *" $i "*) ;;
  12615. *)
  12616. f="$f $i"
  12617. OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
  12618. case $i in
  12619. objdump_private_desc_elf32_avr)
  12620. od_files="$od_files od-elf32_avr" ;;
  12621. objdump_private_desc_xcoff)
  12622. od_files="$od_files od-xcoff" ;;
  12623. objdump_private_desc_mach_o)
  12624. od_files="$od_files od-macho" ;;
  12625. *) as_fn_error "*** unknown private vector $i" "$LINENO" 5 ;;
  12626. esac
  12627. ;;
  12628. esac
  12629. done
  12630. # Uniq objdump target ofiles
  12631. f=""
  12632. for i in $od_files ; do
  12633. case " $f " in
  12634. *" $i "*) ;;
  12635. *)
  12636. f="$f $i"
  12637. OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
  12638. ;;
  12639. esac
  12640. done
  12641. DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
  12642. if test "${with_windres+set}" = set; then
  12643. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12644. fi
  12645. if test "${with_windmc+set}" = set; then
  12646. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12647. fi
  12648. OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
  12649. cat >>confdefs.h <<_ACEOF
  12650. #define TARGET "${target}"
  12651. _ACEOF
  12652. targ=$target
  12653. . $srcdir/../bfd/config.bfd
  12654. if test "x$targ_underscore" = "xyes"; then
  12655. UNDERSCORE=1
  12656. else
  12657. UNDERSCORE=0
  12658. fi
  12659. cat >>confdefs.h <<_ACEOF
  12660. #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
  12661. _ACEOF
  12662. # Emulation
  12663. targ=$target
  12664. . ${srcdir}/configure.tgt
  12665. EMULATION=$targ_emul
  12666. EMULATION_VECTOR=$targ_emul_vector
  12667. # Required for html and install-html
  12668. ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
  12669. cat >confcache <<\_ACEOF
  12670. # This file is a shell script that caches the results of configure
  12671. # tests run on this system so they can be shared between configure
  12672. # scripts and configure runs, see configure's option --config-cache.
  12673. # It is not useful on other systems. If it contains results you don't
  12674. # want to keep, you may remove or edit it.
  12675. #
  12676. # config.status only pays attention to the cache file if you give it
  12677. # the --recheck option to rerun configure.
  12678. #
  12679. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12680. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12681. # following values.
  12682. _ACEOF
  12683. # The following way of writing the cache mishandles newlines in values,
  12684. # but we know of no workaround that is simple, portable, and efficient.
  12685. # So, we kill variables containing newlines.
  12686. # Ultrix sh set writes to stderr and can't be redirected directly,
  12687. # and sets the high bit in the cache file unless we assign to the vars.
  12688. (
  12689. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12690. eval ac_val=\$$ac_var
  12691. case $ac_val in #(
  12692. *${as_nl}*)
  12693. case $ac_var in #(
  12694. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12695. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12696. esac
  12697. case $ac_var in #(
  12698. _ | IFS | as_nl) ;; #(
  12699. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12700. *) { eval $ac_var=; unset $ac_var;} ;;
  12701. esac ;;
  12702. esac
  12703. done
  12704. (set) 2>&1 |
  12705. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12706. *${as_nl}ac_space=\ *)
  12707. # `set' does not quote correctly, so add quotes: double-quote
  12708. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12709. sed -n \
  12710. "s/'/'\\\\''/g;
  12711. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12712. ;; #(
  12713. *)
  12714. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12715. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12716. ;;
  12717. esac |
  12718. sort
  12719. ) |
  12720. sed '
  12721. /^ac_cv_env_/b end
  12722. t clear
  12723. :clear
  12724. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12725. t end
  12726. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12727. :end' >>confcache
  12728. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12729. if test -w "$cache_file"; then
  12730. test "x$cache_file" != "x/dev/null" &&
  12731. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12732. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12733. cat confcache >$cache_file
  12734. else
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12736. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12737. fi
  12738. fi
  12739. rm -f confcache
  12740. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12741. # Let make expand exec_prefix.
  12742. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12743. DEFS=-DHAVE_CONFIG_H
  12744. ac_libobjs=
  12745. ac_ltlibobjs=
  12746. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12747. # 1. Remove the extension, and $U if already installed.
  12748. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12749. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12750. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12751. # will be set to the directory where LIBOBJS objects are built.
  12752. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12753. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12754. done
  12755. LIBOBJS=$ac_libobjs
  12756. LTLIBOBJS=$ac_ltlibobjs
  12757. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12758. as_fn_error "conditional \"AMDEP\" was never defined.
  12759. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12760. fi
  12761. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12762. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12763. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12764. fi
  12765. if test -n "$EXEEXT"; then
  12766. am__EXEEXT_TRUE=
  12767. am__EXEEXT_FALSE='#'
  12768. else
  12769. am__EXEEXT_TRUE='#'
  12770. am__EXEEXT_FALSE=
  12771. fi
  12772. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12773. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12774. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12775. fi
  12776. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  12777. as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
  12778. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12779. fi
  12780. : ${CONFIG_STATUS=./config.status}
  12781. ac_write_fail=0
  12782. ac_clean_files_save=$ac_clean_files
  12783. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12785. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12786. as_write_fail=0
  12787. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12788. #! $SHELL
  12789. # Generated by $as_me.
  12790. # Run this file to recreate the current configuration.
  12791. # Compiler output produced by configure, useful for debugging
  12792. # configure, is in config.log if it exists.
  12793. debug=false
  12794. ac_cs_recheck=false
  12795. ac_cs_silent=false
  12796. SHELL=\${CONFIG_SHELL-$SHELL}
  12797. export SHELL
  12798. _ASEOF
  12799. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12800. ## -------------------- ##
  12801. ## M4sh Initialization. ##
  12802. ## -------------------- ##
  12803. # Be more Bourne compatible
  12804. DUALCASE=1; export DUALCASE # for MKS sh
  12805. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12806. emulate sh
  12807. NULLCMD=:
  12808. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12809. # is contrary to our usage. Disable this feature.
  12810. alias -g '${1+"$@"}'='"$@"'
  12811. setopt NO_GLOB_SUBST
  12812. else
  12813. case `(set -o) 2>/dev/null` in #(
  12814. *posix*) :
  12815. set -o posix ;; #(
  12816. *) :
  12817. ;;
  12818. esac
  12819. fi
  12820. as_nl='
  12821. '
  12822. export as_nl
  12823. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12824. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12825. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12826. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12827. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12828. # but without wasting forks for bash or zsh.
  12829. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12830. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12831. as_echo='print -r --'
  12832. as_echo_n='print -rn --'
  12833. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12834. as_echo='printf %s\n'
  12835. as_echo_n='printf %s'
  12836. else
  12837. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12838. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12839. as_echo_n='/usr/ucb/echo -n'
  12840. else
  12841. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12842. as_echo_n_body='eval
  12843. arg=$1;
  12844. case $arg in #(
  12845. *"$as_nl"*)
  12846. expr "X$arg" : "X\\(.*\\)$as_nl";
  12847. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12848. esac;
  12849. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12850. '
  12851. export as_echo_n_body
  12852. as_echo_n='sh -c $as_echo_n_body as_echo'
  12853. fi
  12854. export as_echo_body
  12855. as_echo='sh -c $as_echo_body as_echo'
  12856. fi
  12857. # The user is always right.
  12858. if test "${PATH_SEPARATOR+set}" != set; then
  12859. PATH_SEPARATOR=:
  12860. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12861. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12862. PATH_SEPARATOR=';'
  12863. }
  12864. fi
  12865. # IFS
  12866. # We need space, tab and new line, in precisely that order. Quoting is
  12867. # there to prevent editors from complaining about space-tab.
  12868. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12869. # splitting by setting IFS to empty value.)
  12870. IFS=" "" $as_nl"
  12871. # Find who we are. Look in the path if we contain no directory separator.
  12872. case $0 in #((
  12873. *[\\/]* ) as_myself=$0 ;;
  12874. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12875. for as_dir in $PATH
  12876. do
  12877. IFS=$as_save_IFS
  12878. test -z "$as_dir" && as_dir=.
  12879. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12880. done
  12881. IFS=$as_save_IFS
  12882. ;;
  12883. esac
  12884. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12885. # in which case we are not to be found in the path.
  12886. if test "x$as_myself" = x; then
  12887. as_myself=$0
  12888. fi
  12889. if test ! -f "$as_myself"; then
  12890. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12891. exit 1
  12892. fi
  12893. # Unset variables that we do not need and which cause bugs (e.g. in
  12894. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12895. # suppresses any "Segmentation fault" message there. '((' could
  12896. # trigger a bug in pdksh 5.2.14.
  12897. for as_var in BASH_ENV ENV MAIL MAILPATH
  12898. do eval test x\${$as_var+set} = xset \
  12899. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12900. done
  12901. PS1='$ '
  12902. PS2='> '
  12903. PS4='+ '
  12904. # NLS nuisances.
  12905. LC_ALL=C
  12906. export LC_ALL
  12907. LANGUAGE=C
  12908. export LANGUAGE
  12909. # CDPATH.
  12910. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12911. # as_fn_error ERROR [LINENO LOG_FD]
  12912. # ---------------------------------
  12913. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12914. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12915. # script with status $?, using 1 if that was 0.
  12916. as_fn_error ()
  12917. {
  12918. as_status=$?; test $as_status -eq 0 && as_status=1
  12919. if test "$3"; then
  12920. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12921. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12922. fi
  12923. $as_echo "$as_me: error: $1" >&2
  12924. as_fn_exit $as_status
  12925. } # as_fn_error
  12926. # as_fn_set_status STATUS
  12927. # -----------------------
  12928. # Set $? to STATUS, without forking.
  12929. as_fn_set_status ()
  12930. {
  12931. return $1
  12932. } # as_fn_set_status
  12933. # as_fn_exit STATUS
  12934. # -----------------
  12935. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12936. as_fn_exit ()
  12937. {
  12938. set +e
  12939. as_fn_set_status $1
  12940. exit $1
  12941. } # as_fn_exit
  12942. # as_fn_unset VAR
  12943. # ---------------
  12944. # Portably unset VAR.
  12945. as_fn_unset ()
  12946. {
  12947. { eval $1=; unset $1;}
  12948. }
  12949. as_unset=as_fn_unset
  12950. # as_fn_append VAR VALUE
  12951. # ----------------------
  12952. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12953. # advantage of any shell optimizations that allow amortized linear growth over
  12954. # repeated appends, instead of the typical quadratic growth present in naive
  12955. # implementations.
  12956. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12957. eval 'as_fn_append ()
  12958. {
  12959. eval $1+=\$2
  12960. }'
  12961. else
  12962. as_fn_append ()
  12963. {
  12964. eval $1=\$$1\$2
  12965. }
  12966. fi # as_fn_append
  12967. # as_fn_arith ARG...
  12968. # ------------------
  12969. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12970. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12971. # must be portable across $(()) and expr.
  12972. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12973. eval 'as_fn_arith ()
  12974. {
  12975. as_val=$(( $* ))
  12976. }'
  12977. else
  12978. as_fn_arith ()
  12979. {
  12980. as_val=`expr "$@" || test $? -eq 1`
  12981. }
  12982. fi # as_fn_arith
  12983. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12984. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12985. as_expr=expr
  12986. else
  12987. as_expr=false
  12988. fi
  12989. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12990. as_basename=basename
  12991. else
  12992. as_basename=false
  12993. fi
  12994. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12995. as_dirname=dirname
  12996. else
  12997. as_dirname=false
  12998. fi
  12999. as_me=`$as_basename -- "$0" ||
  13000. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13001. X"$0" : 'X\(//\)$' \| \
  13002. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13003. $as_echo X/"$0" |
  13004. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13005. s//\1/
  13006. q
  13007. }
  13008. /^X\/\(\/\/\)$/{
  13009. s//\1/
  13010. q
  13011. }
  13012. /^X\/\(\/\).*/{
  13013. s//\1/
  13014. q
  13015. }
  13016. s/.*/./; q'`
  13017. # Avoid depending upon Character Ranges.
  13018. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13019. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13020. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13021. as_cr_digits='0123456789'
  13022. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13023. ECHO_C= ECHO_N= ECHO_T=
  13024. case `echo -n x` in #(((((
  13025. -n*)
  13026. case `echo 'xy\c'` in
  13027. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13028. xy) ECHO_C='\c';;
  13029. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13030. ECHO_T=' ';;
  13031. esac;;
  13032. *)
  13033. ECHO_N='-n';;
  13034. esac
  13035. rm -f conf$$ conf$$.exe conf$$.file
  13036. if test -d conf$$.dir; then
  13037. rm -f conf$$.dir/conf$$.file
  13038. else
  13039. rm -f conf$$.dir
  13040. mkdir conf$$.dir 2>/dev/null
  13041. fi
  13042. if (echo >conf$$.file) 2>/dev/null; then
  13043. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13044. as_ln_s='ln -s'
  13045. # ... but there are two gotchas:
  13046. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13047. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13048. # In both cases, we have to default to `cp -p'.
  13049. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13050. as_ln_s='cp -p'
  13051. elif ln conf$$.file conf$$ 2>/dev/null; then
  13052. as_ln_s=ln
  13053. else
  13054. as_ln_s='cp -p'
  13055. fi
  13056. else
  13057. as_ln_s='cp -p'
  13058. fi
  13059. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13060. rmdir conf$$.dir 2>/dev/null
  13061. # as_fn_mkdir_p
  13062. # -------------
  13063. # Create "$as_dir" as a directory, including parents if necessary.
  13064. as_fn_mkdir_p ()
  13065. {
  13066. case $as_dir in #(
  13067. -*) as_dir=./$as_dir;;
  13068. esac
  13069. test -d "$as_dir" || eval $as_mkdir_p || {
  13070. as_dirs=
  13071. while :; do
  13072. case $as_dir in #(
  13073. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13074. *) as_qdir=$as_dir;;
  13075. esac
  13076. as_dirs="'$as_qdir' $as_dirs"
  13077. as_dir=`$as_dirname -- "$as_dir" ||
  13078. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13079. X"$as_dir" : 'X\(//\)[^/]' \| \
  13080. X"$as_dir" : 'X\(//\)$' \| \
  13081. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13082. $as_echo X"$as_dir" |
  13083. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13084. s//\1/
  13085. q
  13086. }
  13087. /^X\(\/\/\)[^/].*/{
  13088. s//\1/
  13089. q
  13090. }
  13091. /^X\(\/\/\)$/{
  13092. s//\1/
  13093. q
  13094. }
  13095. /^X\(\/\).*/{
  13096. s//\1/
  13097. q
  13098. }
  13099. s/.*/./; q'`
  13100. test -d "$as_dir" && break
  13101. done
  13102. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13103. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13104. } # as_fn_mkdir_p
  13105. if mkdir -p . 2>/dev/null; then
  13106. as_mkdir_p='mkdir -p "$as_dir"'
  13107. else
  13108. test -d ./-p && rmdir ./-p
  13109. as_mkdir_p=false
  13110. fi
  13111. if test -x / >/dev/null 2>&1; then
  13112. as_test_x='test -x'
  13113. else
  13114. if ls -dL / >/dev/null 2>&1; then
  13115. as_ls_L_option=L
  13116. else
  13117. as_ls_L_option=
  13118. fi
  13119. as_test_x='
  13120. eval sh -c '\''
  13121. if test -d "$1"; then
  13122. test -d "$1/.";
  13123. else
  13124. case $1 in #(
  13125. -*)set "./$1";;
  13126. esac;
  13127. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13128. ???[sx]*):;;*)false;;esac;fi
  13129. '\'' sh
  13130. '
  13131. fi
  13132. as_executable_p=$as_test_x
  13133. # Sed expression to map a string onto a valid CPP name.
  13134. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13135. # Sed expression to map a string onto a valid variable name.
  13136. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13137. exec 6>&1
  13138. ## ----------------------------------- ##
  13139. ## Main body of $CONFIG_STATUS script. ##
  13140. ## ----------------------------------- ##
  13141. _ASEOF
  13142. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13143. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13144. # Save the log message, to keep $0 and so on meaningful, and to
  13145. # report actual input values of CONFIG_FILES etc. instead of their
  13146. # values after options handling.
  13147. ac_log="
  13148. This file was extended by binutils $as_me 2.29.1, which was
  13149. generated by GNU Autoconf 2.64. Invocation command line was
  13150. CONFIG_FILES = $CONFIG_FILES
  13151. CONFIG_HEADERS = $CONFIG_HEADERS
  13152. CONFIG_LINKS = $CONFIG_LINKS
  13153. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13154. $ $0 $@
  13155. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13156. "
  13157. _ACEOF
  13158. case $ac_config_files in *"
  13159. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13160. esac
  13161. case $ac_config_headers in *"
  13162. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13163. esac
  13164. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13165. # Files that config.status was made for.
  13166. config_files="$ac_config_files"
  13167. config_headers="$ac_config_headers"
  13168. config_commands="$ac_config_commands"
  13169. _ACEOF
  13170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13171. ac_cs_usage="\
  13172. \`$as_me' instantiates files and other configuration actions
  13173. from templates according to the current configuration. Unless the files
  13174. and actions are specified as TAGs, all are instantiated by default.
  13175. Usage: $0 [OPTION]... [TAG]...
  13176. -h, --help print this help, then exit
  13177. -V, --version print version number and configuration settings, then exit
  13178. -q, --quiet, --silent
  13179. do not print progress messages
  13180. -d, --debug don't remove temporary files
  13181. --recheck update $as_me by reconfiguring in the same conditions
  13182. --file=FILE[:TEMPLATE]
  13183. instantiate the configuration file FILE
  13184. --header=FILE[:TEMPLATE]
  13185. instantiate the configuration header FILE
  13186. Configuration files:
  13187. $config_files
  13188. Configuration headers:
  13189. $config_headers
  13190. Configuration commands:
  13191. $config_commands
  13192. Report bugs to the package provider."
  13193. _ACEOF
  13194. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13195. ac_cs_version="\\
  13196. binutils config.status 2.29.1
  13197. configured by $0, generated by GNU Autoconf 2.64,
  13198. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13199. Copyright (C) 2009 Free Software Foundation, Inc.
  13200. This config.status script is free software; the Free Software Foundation
  13201. gives unlimited permission to copy, distribute and modify it."
  13202. ac_pwd='$ac_pwd'
  13203. srcdir='$srcdir'
  13204. INSTALL='$INSTALL'
  13205. MKDIR_P='$MKDIR_P'
  13206. AWK='$AWK'
  13207. test -n "\$AWK" || AWK=awk
  13208. _ACEOF
  13209. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13210. # The default lists apply if the user does not specify any file.
  13211. ac_need_defaults=:
  13212. while test $# != 0
  13213. do
  13214. case $1 in
  13215. --*=*)
  13216. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13217. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13218. ac_shift=:
  13219. ;;
  13220. *)
  13221. ac_option=$1
  13222. ac_optarg=$2
  13223. ac_shift=shift
  13224. ;;
  13225. esac
  13226. case $ac_option in
  13227. # Handling of the options.
  13228. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13229. ac_cs_recheck=: ;;
  13230. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13231. $as_echo "$ac_cs_version"; exit ;;
  13232. --debug | --debu | --deb | --de | --d | -d )
  13233. debug=: ;;
  13234. --file | --fil | --fi | --f )
  13235. $ac_shift
  13236. case $ac_optarg in
  13237. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13238. esac
  13239. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13240. ac_need_defaults=false;;
  13241. --header | --heade | --head | --hea )
  13242. $ac_shift
  13243. case $ac_optarg in
  13244. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13245. esac
  13246. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13247. ac_need_defaults=false;;
  13248. --he | --h)
  13249. # Conflict between --help and --header
  13250. as_fn_error "ambiguous option: \`$1'
  13251. Try \`$0 --help' for more information.";;
  13252. --help | --hel | -h )
  13253. $as_echo "$ac_cs_usage"; exit ;;
  13254. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13255. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13256. ac_cs_silent=: ;;
  13257. # This is an error.
  13258. -*) as_fn_error "unrecognized option: \`$1'
  13259. Try \`$0 --help' for more information." ;;
  13260. *) as_fn_append ac_config_targets " $1"
  13261. ac_need_defaults=false ;;
  13262. esac
  13263. shift
  13264. done
  13265. ac_configure_extra_args=
  13266. if $ac_cs_silent; then
  13267. exec 6>/dev/null
  13268. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13269. fi
  13270. _ACEOF
  13271. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13272. if \$ac_cs_recheck; then
  13273. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13274. shift
  13275. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13276. CONFIG_SHELL='$SHELL'
  13277. export CONFIG_SHELL
  13278. exec "\$@"
  13279. fi
  13280. _ACEOF
  13281. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13282. exec 5>>config.log
  13283. {
  13284. echo
  13285. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13286. ## Running $as_me. ##
  13287. _ASBOX
  13288. $as_echo "$ac_log"
  13289. } >&5
  13290. _ACEOF
  13291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13292. #
  13293. # INIT-COMMANDS
  13294. #
  13295. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13296. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13297. # if CDPATH is set.
  13298. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13299. sed_quote_subst='$sed_quote_subst'
  13300. double_quote_subst='$double_quote_subst'
  13301. delay_variable_subst='$delay_variable_subst'
  13302. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13303. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13304. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13305. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13306. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13307. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13308. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13309. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13310. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13311. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13312. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13313. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13314. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13315. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13316. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13317. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13318. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13319. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13320. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13321. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13322. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13323. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13324. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13325. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13326. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13327. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13328. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13329. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13330. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13331. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13332. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13333. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13334. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13335. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13336. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13337. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13338. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13339. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13340. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13341. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13342. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13343. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13344. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13345. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13346. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13347. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13348. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13349. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13350. 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"`'
  13351. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13352. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13353. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13354. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13355. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13356. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13357. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13358. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13359. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13360. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13361. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13362. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13363. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13364. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13365. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13366. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13367. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13368. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13369. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13370. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13371. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13372. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13373. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13374. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13375. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13376. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13377. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13378. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13379. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13380. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13381. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13382. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13383. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13384. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13385. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13386. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13387. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13388. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13389. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13390. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13391. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13392. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13393. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13394. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13395. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13396. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13397. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13398. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13399. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13400. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13401. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13402. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13403. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13404. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13405. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13406. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13407. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13408. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13409. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13410. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13411. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13412. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13413. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13414. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13415. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13416. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13417. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13418. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13419. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13420. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13421. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13422. LTCC='$LTCC'
  13423. LTCFLAGS='$LTCFLAGS'
  13424. compiler='$compiler_DEFAULT'
  13425. # A function that is used when there is no print builtin or printf.
  13426. func_fallback_echo ()
  13427. {
  13428. eval 'cat <<_LTECHO_EOF
  13429. \$1
  13430. _LTECHO_EOF'
  13431. }
  13432. # Quote evaled strings.
  13433. for var in SHELL \
  13434. ECHO \
  13435. SED \
  13436. GREP \
  13437. EGREP \
  13438. FGREP \
  13439. LD \
  13440. NM \
  13441. LN_S \
  13442. lt_SP2NL \
  13443. lt_NL2SP \
  13444. reload_flag \
  13445. OBJDUMP \
  13446. deplibs_check_method \
  13447. file_magic_cmd \
  13448. AR \
  13449. AR_FLAGS \
  13450. STRIP \
  13451. RANLIB \
  13452. CC \
  13453. CFLAGS \
  13454. compiler \
  13455. lt_cv_sys_global_symbol_pipe \
  13456. lt_cv_sys_global_symbol_to_cdecl \
  13457. lt_cv_sys_global_symbol_to_c_name_address \
  13458. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13459. lt_prog_compiler_no_builtin_flag \
  13460. lt_prog_compiler_wl \
  13461. lt_prog_compiler_pic \
  13462. lt_prog_compiler_static \
  13463. lt_cv_prog_compiler_c_o \
  13464. need_locks \
  13465. DSYMUTIL \
  13466. NMEDIT \
  13467. LIPO \
  13468. OTOOL \
  13469. OTOOL64 \
  13470. shrext_cmds \
  13471. export_dynamic_flag_spec \
  13472. whole_archive_flag_spec \
  13473. compiler_needs_object \
  13474. with_gnu_ld \
  13475. allow_undefined_flag \
  13476. no_undefined_flag \
  13477. hardcode_libdir_flag_spec \
  13478. hardcode_libdir_flag_spec_ld \
  13479. hardcode_libdir_separator \
  13480. fix_srcfile_path \
  13481. exclude_expsyms \
  13482. include_expsyms \
  13483. file_list_spec \
  13484. variables_saved_for_relink \
  13485. libname_spec \
  13486. library_names_spec \
  13487. soname_spec \
  13488. install_override_mode \
  13489. finish_eval \
  13490. old_striplib \
  13491. striplib; do
  13492. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13493. *[\\\\\\\`\\"\\\$]*)
  13494. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13495. ;;
  13496. *)
  13497. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13498. ;;
  13499. esac
  13500. done
  13501. # Double-quote double-evaled strings.
  13502. for var in reload_cmds \
  13503. old_postinstall_cmds \
  13504. old_postuninstall_cmds \
  13505. old_archive_cmds \
  13506. extract_expsyms_cmds \
  13507. old_archive_from_new_cmds \
  13508. old_archive_from_expsyms_cmds \
  13509. archive_cmds \
  13510. archive_expsym_cmds \
  13511. module_cmds \
  13512. module_expsym_cmds \
  13513. export_symbols_cmds \
  13514. prelink_cmds \
  13515. postinstall_cmds \
  13516. postuninstall_cmds \
  13517. finish_cmds \
  13518. sys_lib_search_path_spec \
  13519. sys_lib_dlsearch_path_spec; do
  13520. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13521. *[\\\\\\\`\\"\\\$]*)
  13522. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13523. ;;
  13524. *)
  13525. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13526. ;;
  13527. esac
  13528. done
  13529. ac_aux_dir='$ac_aux_dir'
  13530. xsi_shell='$xsi_shell'
  13531. lt_shell_append='$lt_shell_append'
  13532. # See if we are running on zsh, and set the options which allow our
  13533. # commands through without removal of \ escapes INIT.
  13534. if test -n "\${ZSH_VERSION+set}" ; then
  13535. setopt NO_GLOB_SUBST
  13536. fi
  13537. PACKAGE='$PACKAGE'
  13538. VERSION='$VERSION'
  13539. TIMESTAMP='$TIMESTAMP'
  13540. RM='$RM'
  13541. ofile='$ofile'
  13542. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13543. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  13544. # from automake.
  13545. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13546. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13547. LINGUAS="${LINGUAS-%UNSET%}"
  13548. _ACEOF
  13549. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13550. # Handling of arguments.
  13551. for ac_config_target in $ac_config_targets
  13552. do
  13553. case $ac_config_target in
  13554. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13555. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13556. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  13557. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13558. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13559. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13560. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  13561. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13562. esac
  13563. done
  13564. # If the user did not use the arguments to specify the items to instantiate,
  13565. # then the envvar interface is used. Set only those that are not.
  13566. # We use the long form for the default assignment because of an extremely
  13567. # bizarre bug on SunOS 4.1.3.
  13568. if $ac_need_defaults; then
  13569. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13570. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13571. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13572. fi
  13573. # Have a temporary directory for convenience. Make it in the build tree
  13574. # simply because there is no reason against having it here, and in addition,
  13575. # creating and moving files from /tmp can sometimes cause problems.
  13576. # Hook for its removal unless debugging.
  13577. # Note that there is a small window in which the directory will not be cleaned:
  13578. # after its creation but before its name has been assigned to `$tmp'.
  13579. $debug ||
  13580. {
  13581. tmp=
  13582. trap 'exit_status=$?
  13583. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13584. ' 0
  13585. trap 'as_fn_exit 1' 1 2 13 15
  13586. }
  13587. # Create a (secure) tmp directory for tmp files.
  13588. {
  13589. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13590. test -n "$tmp" && test -d "$tmp"
  13591. } ||
  13592. {
  13593. tmp=./conf$$-$RANDOM
  13594. (umask 077 && mkdir "$tmp")
  13595. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13596. # Set up the scripts for CONFIG_FILES section.
  13597. # No need to generate them if there are no CONFIG_FILES.
  13598. # This happens for instance with `./config.status config.h'.
  13599. if test -n "$CONFIG_FILES"; then
  13600. ac_cr=`echo X | tr X '\015'`
  13601. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13602. # But we know of no other shell where ac_cr would be empty at this
  13603. # point, so we can use a bashism as a fallback.
  13604. if test "x$ac_cr" = x; then
  13605. eval ac_cr=\$\'\\r\'
  13606. fi
  13607. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13608. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13609. ac_cs_awk_cr='\r'
  13610. else
  13611. ac_cs_awk_cr=$ac_cr
  13612. fi
  13613. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13614. _ACEOF
  13615. {
  13616. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13617. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13618. echo "_ACEOF"
  13619. } >conf$$subs.sh ||
  13620. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13621. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13622. ac_delim='%!_!# '
  13623. for ac_last_try in false false false false false :; do
  13624. . ./conf$$subs.sh ||
  13625. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13626. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13627. if test $ac_delim_n = $ac_delim_num; then
  13628. break
  13629. elif $ac_last_try; then
  13630. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13631. else
  13632. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13633. fi
  13634. done
  13635. rm -f conf$$subs.sh
  13636. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13637. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13638. _ACEOF
  13639. sed -n '
  13640. h
  13641. s/^/S["/; s/!.*/"]=/
  13642. p
  13643. g
  13644. s/^[^!]*!//
  13645. :repl
  13646. t repl
  13647. s/'"$ac_delim"'$//
  13648. t delim
  13649. :nl
  13650. h
  13651. s/\(.\{148\}\).*/\1/
  13652. t more1
  13653. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13654. p
  13655. n
  13656. b repl
  13657. :more1
  13658. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13659. p
  13660. g
  13661. s/.\{148\}//
  13662. t nl
  13663. :delim
  13664. h
  13665. s/\(.\{148\}\).*/\1/
  13666. t more2
  13667. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13668. p
  13669. b
  13670. :more2
  13671. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13672. p
  13673. g
  13674. s/.\{148\}//
  13675. t delim
  13676. ' <conf$$subs.awk | sed '
  13677. /^[^""]/{
  13678. N
  13679. s/\n//
  13680. }
  13681. ' >>$CONFIG_STATUS || ac_write_fail=1
  13682. rm -f conf$$subs.awk
  13683. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13684. _ACAWK
  13685. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13686. for (key in S) S_is_set[key] = 1
  13687. FS = ""
  13688. }
  13689. {
  13690. line = $ 0
  13691. nfields = split(line, field, "@")
  13692. substed = 0
  13693. len = length(field[1])
  13694. for (i = 2; i < nfields; i++) {
  13695. key = field[i]
  13696. keylen = length(key)
  13697. if (S_is_set[key]) {
  13698. value = S[key]
  13699. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13700. len += length(value) + length(field[++i])
  13701. substed = 1
  13702. } else
  13703. len += 1 + keylen
  13704. }
  13705. print line
  13706. }
  13707. _ACAWK
  13708. _ACEOF
  13709. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13710. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13711. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13712. else
  13713. cat
  13714. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13715. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13716. _ACEOF
  13717. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13718. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13719. # trailing colons and then remove the whole line if VPATH becomes empty
  13720. # (actually we leave an empty line to preserve line numbers).
  13721. if test "x$srcdir" = x.; then
  13722. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13723. s/:*\$(srcdir):*/:/
  13724. s/:*\${srcdir}:*/:/
  13725. s/:*@srcdir@:*/:/
  13726. s/^\([^=]*=[ ]*\):*/\1/
  13727. s/:*$//
  13728. s/^[^=]*=[ ]*$//
  13729. }'
  13730. fi
  13731. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13732. fi # test -n "$CONFIG_FILES"
  13733. # Set up the scripts for CONFIG_HEADERS section.
  13734. # No need to generate them if there are no CONFIG_HEADERS.
  13735. # This happens for instance with `./config.status Makefile'.
  13736. if test -n "$CONFIG_HEADERS"; then
  13737. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13738. BEGIN {
  13739. _ACEOF
  13740. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13741. # here-document in config.status, that substitutes the proper values into
  13742. # config.h.in to produce config.h.
  13743. # Create a delimiter string that does not exist in confdefs.h, to ease
  13744. # handling of long lines.
  13745. ac_delim='%!_!# '
  13746. for ac_last_try in false false :; do
  13747. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13748. if test -z "$ac_t"; then
  13749. break
  13750. elif $ac_last_try; then
  13751. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13752. else
  13753. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13754. fi
  13755. done
  13756. # For the awk script, D is an array of macro values keyed by name,
  13757. # likewise P contains macro parameters if any. Preserve backslash
  13758. # newline sequences.
  13759. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13760. sed -n '
  13761. s/.\{148\}/&'"$ac_delim"'/g
  13762. t rset
  13763. :rset
  13764. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13765. t def
  13766. d
  13767. :def
  13768. s/\\$//
  13769. t bsnl
  13770. s/["\\]/\\&/g
  13771. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13772. D["\1"]=" \3"/p
  13773. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13774. d
  13775. :bsnl
  13776. s/["\\]/\\&/g
  13777. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13778. D["\1"]=" \3\\\\\\n"\\/p
  13779. t cont
  13780. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13781. t cont
  13782. d
  13783. :cont
  13784. n
  13785. s/.\{148\}/&'"$ac_delim"'/g
  13786. t clear
  13787. :clear
  13788. s/\\$//
  13789. t bsnlc
  13790. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13791. d
  13792. :bsnlc
  13793. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13794. b cont
  13795. ' <confdefs.h | sed '
  13796. s/'"$ac_delim"'/"\\\
  13797. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13798. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13799. for (key in D) D_is_set[key] = 1
  13800. FS = ""
  13801. }
  13802. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13803. line = \$ 0
  13804. split(line, arg, " ")
  13805. if (arg[1] == "#") {
  13806. defundef = arg[2]
  13807. mac1 = arg[3]
  13808. } else {
  13809. defundef = substr(arg[1], 2)
  13810. mac1 = arg[2]
  13811. }
  13812. split(mac1, mac2, "(") #)
  13813. macro = mac2[1]
  13814. prefix = substr(line, 1, index(line, defundef) - 1)
  13815. if (D_is_set[macro]) {
  13816. # Preserve the white space surrounding the "#".
  13817. print prefix "define", macro P[macro] D[macro]
  13818. next
  13819. } else {
  13820. # Replace #undef with comments. This is necessary, for example,
  13821. # in the case of _POSIX_SOURCE, which is predefined and required
  13822. # on some systems where configure will not decide to define it.
  13823. if (defundef == "undef") {
  13824. print "/*", prefix defundef, macro, "*/"
  13825. next
  13826. }
  13827. }
  13828. }
  13829. { print }
  13830. _ACAWK
  13831. _ACEOF
  13832. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13833. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13834. fi # test -n "$CONFIG_HEADERS"
  13835. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13836. shift
  13837. for ac_tag
  13838. do
  13839. case $ac_tag in
  13840. :[FHLC]) ac_mode=$ac_tag; continue;;
  13841. esac
  13842. case $ac_mode$ac_tag in
  13843. :[FHL]*:*);;
  13844. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13845. :[FH]-) ac_tag=-:-;;
  13846. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13847. esac
  13848. ac_save_IFS=$IFS
  13849. IFS=:
  13850. set x $ac_tag
  13851. IFS=$ac_save_IFS
  13852. shift
  13853. ac_file=$1
  13854. shift
  13855. case $ac_mode in
  13856. :L) ac_source=$1;;
  13857. :[FH])
  13858. ac_file_inputs=
  13859. for ac_f
  13860. do
  13861. case $ac_f in
  13862. -) ac_f="$tmp/stdin";;
  13863. *) # Look for the file first in the build tree, then in the source tree
  13864. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13865. # because $ac_f cannot contain `:'.
  13866. test -f "$ac_f" ||
  13867. case $ac_f in
  13868. [\\/$]*) false;;
  13869. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13870. esac ||
  13871. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13872. esac
  13873. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13874. as_fn_append ac_file_inputs " '$ac_f'"
  13875. done
  13876. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13877. # use $as_me), people would be surprised to read:
  13878. # /* config.h. Generated by config.status. */
  13879. configure_input='Generated from '`
  13880. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13881. `' by configure.'
  13882. if test x"$ac_file" != x-; then
  13883. configure_input="$ac_file. $configure_input"
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13885. $as_echo "$as_me: creating $ac_file" >&6;}
  13886. fi
  13887. # Neutralize special characters interpreted by sed in replacement strings.
  13888. case $configure_input in #(
  13889. *\&* | *\|* | *\\* )
  13890. ac_sed_conf_input=`$as_echo "$configure_input" |
  13891. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13892. *) ac_sed_conf_input=$configure_input;;
  13893. esac
  13894. case $ac_tag in
  13895. *:-:* | *:-) cat >"$tmp/stdin" \
  13896. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13897. esac
  13898. ;;
  13899. esac
  13900. ac_dir=`$as_dirname -- "$ac_file" ||
  13901. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13902. X"$ac_file" : 'X\(//\)[^/]' \| \
  13903. X"$ac_file" : 'X\(//\)$' \| \
  13904. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13905. $as_echo X"$ac_file" |
  13906. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13907. s//\1/
  13908. q
  13909. }
  13910. /^X\(\/\/\)[^/].*/{
  13911. s//\1/
  13912. q
  13913. }
  13914. /^X\(\/\/\)$/{
  13915. s//\1/
  13916. q
  13917. }
  13918. /^X\(\/\).*/{
  13919. s//\1/
  13920. q
  13921. }
  13922. s/.*/./; q'`
  13923. as_dir="$ac_dir"; as_fn_mkdir_p
  13924. ac_builddir=.
  13925. case "$ac_dir" in
  13926. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13927. *)
  13928. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13929. # A ".." for each directory in $ac_dir_suffix.
  13930. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13931. case $ac_top_builddir_sub in
  13932. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13933. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13934. esac ;;
  13935. esac
  13936. ac_abs_top_builddir=$ac_pwd
  13937. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13938. # for backward compatibility:
  13939. ac_top_builddir=$ac_top_build_prefix
  13940. case $srcdir in
  13941. .) # We are building in place.
  13942. ac_srcdir=.
  13943. ac_top_srcdir=$ac_top_builddir_sub
  13944. ac_abs_top_srcdir=$ac_pwd ;;
  13945. [\\/]* | ?:[\\/]* ) # Absolute name.
  13946. ac_srcdir=$srcdir$ac_dir_suffix;
  13947. ac_top_srcdir=$srcdir
  13948. ac_abs_top_srcdir=$srcdir ;;
  13949. *) # Relative name.
  13950. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13951. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13952. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13953. esac
  13954. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13955. case $ac_mode in
  13956. :F)
  13957. #
  13958. # CONFIG_FILE
  13959. #
  13960. case $INSTALL in
  13961. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13962. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13963. esac
  13964. ac_MKDIR_P=$MKDIR_P
  13965. case $MKDIR_P in
  13966. [\\/$]* | ?:[\\/]* ) ;;
  13967. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13968. esac
  13969. _ACEOF
  13970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13971. # If the template does not know about datarootdir, expand it.
  13972. # FIXME: This hack should be removed a few years after 2.60.
  13973. ac_datarootdir_hack=; ac_datarootdir_seen=
  13974. ac_sed_dataroot='
  13975. /datarootdir/ {
  13976. p
  13977. q
  13978. }
  13979. /@datadir@/p
  13980. /@docdir@/p
  13981. /@infodir@/p
  13982. /@localedir@/p
  13983. /@mandir@/p'
  13984. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13985. *datarootdir*) ac_datarootdir_seen=yes;;
  13986. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13988. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13989. _ACEOF
  13990. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13991. ac_datarootdir_hack='
  13992. s&@datadir@&$datadir&g
  13993. s&@docdir@&$docdir&g
  13994. s&@infodir@&$infodir&g
  13995. s&@localedir@&$localedir&g
  13996. s&@mandir@&$mandir&g
  13997. s&\\\${datarootdir}&$datarootdir&g' ;;
  13998. esac
  13999. _ACEOF
  14000. # Neutralize VPATH when `$srcdir' = `.'.
  14001. # Shell code in configure.ac might set extrasub.
  14002. # FIXME: do we really want to maintain this feature?
  14003. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14004. ac_sed_extra="$ac_vpsub
  14005. $extrasub
  14006. _ACEOF
  14007. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14008. :t
  14009. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14010. s|@configure_input@|$ac_sed_conf_input|;t t
  14011. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14012. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14013. s&@srcdir@&$ac_srcdir&;t t
  14014. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14015. s&@top_srcdir@&$ac_top_srcdir&;t t
  14016. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14017. s&@builddir@&$ac_builddir&;t t
  14018. s&@abs_builddir@&$ac_abs_builddir&;t t
  14019. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14020. s&@INSTALL@&$ac_INSTALL&;t t
  14021. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14022. $ac_datarootdir_hack
  14023. "
  14024. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14025. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14026. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14027. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14028. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14030. which seems to be undefined. Please make sure it is defined." >&5
  14031. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14032. which seems to be undefined. Please make sure it is defined." >&2;}
  14033. rm -f "$tmp/stdin"
  14034. case $ac_file in
  14035. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14036. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14037. esac \
  14038. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14039. ;;
  14040. :H)
  14041. #
  14042. # CONFIG_HEADER
  14043. #
  14044. if test x"$ac_file" != x-; then
  14045. {
  14046. $as_echo "/* $configure_input */" \
  14047. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14048. } >"$tmp/config.h" \
  14049. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14050. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14052. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14053. else
  14054. rm -f "$ac_file"
  14055. mv "$tmp/config.h" "$ac_file" \
  14056. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14057. fi
  14058. else
  14059. $as_echo "/* $configure_input */" \
  14060. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14061. || as_fn_error "could not create -" "$LINENO" 5
  14062. fi
  14063. # Compute "$ac_file"'s index in $config_headers.
  14064. _am_arg="$ac_file"
  14065. _am_stamp_count=1
  14066. for _am_header in $config_headers :; do
  14067. case $_am_header in
  14068. $_am_arg | $_am_arg:* )
  14069. break ;;
  14070. * )
  14071. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14072. esac
  14073. done
  14074. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14075. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14076. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14077. X"$_am_arg" : 'X\(//\)$' \| \
  14078. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14079. $as_echo X"$_am_arg" |
  14080. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14081. s//\1/
  14082. q
  14083. }
  14084. /^X\(\/\/\)[^/].*/{
  14085. s//\1/
  14086. q
  14087. }
  14088. /^X\(\/\/\)$/{
  14089. s//\1/
  14090. q
  14091. }
  14092. /^X\(\/\).*/{
  14093. s//\1/
  14094. q
  14095. }
  14096. s/.*/./; q'`/stamp-h$_am_stamp_count
  14097. ;;
  14098. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14099. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14100. ;;
  14101. esac
  14102. case $ac_file$ac_mode in
  14103. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14104. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14105. # are listed without --file. Let's play safe and only enable the eval
  14106. # if we detect the quoting.
  14107. case $CONFIG_FILES in
  14108. *\'*) eval set x "$CONFIG_FILES" ;;
  14109. *) set x $CONFIG_FILES ;;
  14110. esac
  14111. shift
  14112. for mf
  14113. do
  14114. # Strip MF so we end up with the name of the file.
  14115. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14116. # Check whether this is an Automake generated Makefile or not.
  14117. # We used to match only the files named `Makefile.in', but
  14118. # some people rename them; so instead we look at the file content.
  14119. # Grep'ing the first line is not enough: some people post-process
  14120. # each Makefile.in and add a new line on top of each file to say so.
  14121. # Grep'ing the whole file is not good either: AIX grep has a line
  14122. # limit of 2048, but all sed's we know have understand at least 4000.
  14123. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14124. dirpart=`$as_dirname -- "$mf" ||
  14125. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14126. X"$mf" : 'X\(//\)[^/]' \| \
  14127. X"$mf" : 'X\(//\)$' \| \
  14128. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14129. $as_echo X"$mf" |
  14130. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14131. s//\1/
  14132. q
  14133. }
  14134. /^X\(\/\/\)[^/].*/{
  14135. s//\1/
  14136. q
  14137. }
  14138. /^X\(\/\/\)$/{
  14139. s//\1/
  14140. q
  14141. }
  14142. /^X\(\/\).*/{
  14143. s//\1/
  14144. q
  14145. }
  14146. s/.*/./; q'`
  14147. else
  14148. continue
  14149. fi
  14150. # Extract the definition of DEPDIR, am__include, and am__quote
  14151. # from the Makefile without running `make'.
  14152. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14153. test -z "$DEPDIR" && continue
  14154. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14155. test -z "am__include" && continue
  14156. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14157. # When using ansi2knr, U may be empty or an underscore; expand it
  14158. U=`sed -n 's/^U = //p' < "$mf"`
  14159. # Find all dependency output files, they are included files with
  14160. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14161. # simplest approach to changing $(DEPDIR) to its actual value in the
  14162. # expansion.
  14163. for file in `sed -n "
  14164. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14165. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14166. # Make sure the directory exists.
  14167. test -f "$dirpart/$file" && continue
  14168. fdir=`$as_dirname -- "$file" ||
  14169. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14170. X"$file" : 'X\(//\)[^/]' \| \
  14171. X"$file" : 'X\(//\)$' \| \
  14172. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14173. $as_echo X"$file" |
  14174. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14175. s//\1/
  14176. q
  14177. }
  14178. /^X\(\/\/\)[^/].*/{
  14179. s//\1/
  14180. q
  14181. }
  14182. /^X\(\/\/\)$/{
  14183. s//\1/
  14184. q
  14185. }
  14186. /^X\(\/\).*/{
  14187. s//\1/
  14188. q
  14189. }
  14190. s/.*/./; q'`
  14191. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14192. # echo "creating $dirpart/$file"
  14193. echo '# dummy' > "$dirpart/$file"
  14194. done
  14195. done
  14196. }
  14197. ;;
  14198. "libtool":C)
  14199. # See if we are running on zsh, and set the options which allow our
  14200. # commands through without removal of \ escapes.
  14201. if test -n "${ZSH_VERSION+set}" ; then
  14202. setopt NO_GLOB_SUBST
  14203. fi
  14204. cfgfile="${ofile}T"
  14205. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14206. $RM "$cfgfile"
  14207. cat <<_LT_EOF >> "$cfgfile"
  14208. #! $SHELL
  14209. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14210. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14211. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14212. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14213. #
  14214. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14215. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14216. # Written by Gordon Matzigkeit, 1996
  14217. #
  14218. # This file is part of GNU Libtool.
  14219. #
  14220. # GNU Libtool is free software; you can redistribute it and/or
  14221. # modify it under the terms of the GNU General Public License as
  14222. # published by the Free Software Foundation; either version 2 of
  14223. # the License, or (at your option) any later version.
  14224. #
  14225. # As a special exception to the GNU General Public License,
  14226. # if you distribute this file as part of a program or library that
  14227. # is built using GNU Libtool, you may include this file under the
  14228. # same distribution terms that you use for the rest of that program.
  14229. #
  14230. # GNU Libtool is distributed in the hope that it will be useful,
  14231. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14232. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14233. # GNU General Public License for more details.
  14234. #
  14235. # You should have received a copy of the GNU General Public License
  14236. # along with GNU Libtool; see the file COPYING. If not, a copy
  14237. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14238. # obtained by writing to the Free Software Foundation, Inc.,
  14239. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14240. # The names of the tagged configurations supported by this script.
  14241. available_tags=""
  14242. # ### BEGIN LIBTOOL CONFIG
  14243. # Which release of libtool.m4 was used?
  14244. macro_version=$macro_version
  14245. macro_revision=$macro_revision
  14246. # Whether or not to build shared libraries.
  14247. build_libtool_libs=$enable_shared
  14248. # Whether or not to build static libraries.
  14249. build_old_libs=$enable_static
  14250. # What type of objects to build.
  14251. pic_mode=$pic_mode
  14252. # Whether or not to optimize for fast installation.
  14253. fast_install=$enable_fast_install
  14254. # Shell to use when invoking shell scripts.
  14255. SHELL=$lt_SHELL
  14256. # An echo program that protects backslashes.
  14257. ECHO=$lt_ECHO
  14258. # The host system.
  14259. host_alias=$host_alias
  14260. host=$host
  14261. host_os=$host_os
  14262. # The build system.
  14263. build_alias=$build_alias
  14264. build=$build
  14265. build_os=$build_os
  14266. # A sed program that does not truncate output.
  14267. SED=$lt_SED
  14268. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14269. Xsed="\$SED -e 1s/^X//"
  14270. # A grep program that handles long lines.
  14271. GREP=$lt_GREP
  14272. # An ERE matcher.
  14273. EGREP=$lt_EGREP
  14274. # A literal string matcher.
  14275. FGREP=$lt_FGREP
  14276. # A BSD- or MS-compatible name lister.
  14277. NM=$lt_NM
  14278. # Whether we need soft or hard links.
  14279. LN_S=$lt_LN_S
  14280. # What is the maximum length of a command?
  14281. max_cmd_len=$max_cmd_len
  14282. # Object file suffix (normally "o").
  14283. objext=$ac_objext
  14284. # Executable file suffix (normally "").
  14285. exeext=$exeext
  14286. # whether the shell understands "unset".
  14287. lt_unset=$lt_unset
  14288. # turn spaces into newlines.
  14289. SP2NL=$lt_lt_SP2NL
  14290. # turn newlines into spaces.
  14291. NL2SP=$lt_lt_NL2SP
  14292. # An object symbol dumper.
  14293. OBJDUMP=$lt_OBJDUMP
  14294. # Method to check whether dependent libraries are shared objects.
  14295. deplibs_check_method=$lt_deplibs_check_method
  14296. # Command to use when deplibs_check_method == "file_magic".
  14297. file_magic_cmd=$lt_file_magic_cmd
  14298. # The archiver.
  14299. AR=$lt_AR
  14300. AR_FLAGS=$lt_AR_FLAGS
  14301. # A symbol stripping program.
  14302. STRIP=$lt_STRIP
  14303. # Commands used to install an old-style archive.
  14304. RANLIB=$lt_RANLIB
  14305. old_postinstall_cmds=$lt_old_postinstall_cmds
  14306. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14307. # Whether to use a lock for old archive extraction.
  14308. lock_old_archive_extraction=$lock_old_archive_extraction
  14309. # A C compiler.
  14310. LTCC=$lt_CC
  14311. # LTCC compiler flags.
  14312. LTCFLAGS=$lt_CFLAGS
  14313. # Take the output of nm and produce a listing of raw symbols and C names.
  14314. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14315. # Transform the output of nm in a proper C declaration.
  14316. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14317. # Transform the output of nm in a C name address pair.
  14318. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14319. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14320. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14321. # The name of the directory that contains temporary libtool files.
  14322. objdir=$objdir
  14323. # Used to examine libraries when file_magic_cmd begins with "file".
  14324. MAGIC_CMD=$MAGIC_CMD
  14325. # Must we lock files when doing compilation?
  14326. need_locks=$lt_need_locks
  14327. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14328. DSYMUTIL=$lt_DSYMUTIL
  14329. # Tool to change global to local symbols on Mac OS X.
  14330. NMEDIT=$lt_NMEDIT
  14331. # Tool to manipulate fat objects and archives on Mac OS X.
  14332. LIPO=$lt_LIPO
  14333. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14334. OTOOL=$lt_OTOOL
  14335. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14336. OTOOL64=$lt_OTOOL64
  14337. # Old archive suffix (normally "a").
  14338. libext=$libext
  14339. # Shared library suffix (normally ".so").
  14340. shrext_cmds=$lt_shrext_cmds
  14341. # The commands to extract the exported symbol list from a shared archive.
  14342. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14343. # Variables whose values should be saved in libtool wrapper scripts and
  14344. # restored at link time.
  14345. variables_saved_for_relink=$lt_variables_saved_for_relink
  14346. # Do we need the "lib" prefix for modules?
  14347. need_lib_prefix=$need_lib_prefix
  14348. # Do we need a version for libraries?
  14349. need_version=$need_version
  14350. # Library versioning type.
  14351. version_type=$version_type
  14352. # Shared library runtime path variable.
  14353. runpath_var=$runpath_var
  14354. # Shared library path variable.
  14355. shlibpath_var=$shlibpath_var
  14356. # Is shlibpath searched before the hard-coded library search path?
  14357. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14358. # Format of library name prefix.
  14359. libname_spec=$lt_libname_spec
  14360. # List of archive names. First name is the real one, the rest are links.
  14361. # The last name is the one that the linker finds with -lNAME
  14362. library_names_spec=$lt_library_names_spec
  14363. # The coded name of the library, if different from the real name.
  14364. soname_spec=$lt_soname_spec
  14365. # Permission mode override for installation of shared libraries.
  14366. install_override_mode=$lt_install_override_mode
  14367. # Command to use after installation of a shared archive.
  14368. postinstall_cmds=$lt_postinstall_cmds
  14369. # Command to use after uninstallation of a shared archive.
  14370. postuninstall_cmds=$lt_postuninstall_cmds
  14371. # Commands used to finish a libtool library installation in a directory.
  14372. finish_cmds=$lt_finish_cmds
  14373. # As "finish_cmds", except a single script fragment to be evaled but
  14374. # not shown.
  14375. finish_eval=$lt_finish_eval
  14376. # Whether we should hardcode library paths into libraries.
  14377. hardcode_into_libs=$hardcode_into_libs
  14378. # Compile-time system search path for libraries.
  14379. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14380. # Run-time system search path for libraries.
  14381. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14382. # Whether dlopen is supported.
  14383. dlopen_support=$enable_dlopen
  14384. # Whether dlopen of programs is supported.
  14385. dlopen_self=$enable_dlopen_self
  14386. # Whether dlopen of statically linked programs is supported.
  14387. dlopen_self_static=$enable_dlopen_self_static
  14388. # Commands to strip libraries.
  14389. old_striplib=$lt_old_striplib
  14390. striplib=$lt_striplib
  14391. # The linker used to build libraries.
  14392. LD=$lt_LD
  14393. # How to create reloadable object files.
  14394. reload_flag=$lt_reload_flag
  14395. reload_cmds=$lt_reload_cmds
  14396. # Commands used to build an old-style archive.
  14397. old_archive_cmds=$lt_old_archive_cmds
  14398. # A language specific compiler.
  14399. CC=$lt_compiler
  14400. # Is the compiler the GNU compiler?
  14401. with_gcc=$GCC
  14402. # Compiler flag to turn off builtin functions.
  14403. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14404. # How to pass a linker flag through the compiler.
  14405. wl=$lt_lt_prog_compiler_wl
  14406. # Additional compiler flags for building library objects.
  14407. pic_flag=$lt_lt_prog_compiler_pic
  14408. # Compiler flag to prevent dynamic linking.
  14409. link_static_flag=$lt_lt_prog_compiler_static
  14410. # Does compiler simultaneously support -c and -o options?
  14411. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14412. # Whether or not to add -lc for building shared libraries.
  14413. build_libtool_need_lc=$archive_cmds_need_lc
  14414. # Whether or not to disallow shared libs when runtime libs are static.
  14415. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14416. # Compiler flag to allow reflexive dlopens.
  14417. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14418. # Compiler flag to generate shared objects directly from archives.
  14419. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14420. # Whether the compiler copes with passing no objects directly.
  14421. compiler_needs_object=$lt_compiler_needs_object
  14422. # Create an old-style archive from a shared archive.
  14423. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14424. # Create a temporary old-style archive to link instead of a shared archive.
  14425. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14426. # Commands used to build a shared archive.
  14427. archive_cmds=$lt_archive_cmds
  14428. archive_expsym_cmds=$lt_archive_expsym_cmds
  14429. # Commands used to build a loadable module if different from building
  14430. # a shared archive.
  14431. module_cmds=$lt_module_cmds
  14432. module_expsym_cmds=$lt_module_expsym_cmds
  14433. # Whether we are building with GNU ld or not.
  14434. with_gnu_ld=$lt_with_gnu_ld
  14435. # Flag that allows shared libraries with undefined symbols to be built.
  14436. allow_undefined_flag=$lt_allow_undefined_flag
  14437. # Flag that enforces no undefined symbols.
  14438. no_undefined_flag=$lt_no_undefined_flag
  14439. # Flag to hardcode \$libdir into a binary during linking.
  14440. # This must work even if \$libdir does not exist
  14441. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14442. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14443. # during linking. This must work even if \$libdir does not exist.
  14444. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14445. # Whether we need a single "-rpath" flag with a separated argument.
  14446. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14447. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14448. # DIR into the resulting binary.
  14449. hardcode_direct=$hardcode_direct
  14450. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14451. # DIR into the resulting binary and the resulting library dependency is
  14452. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14453. # library is relocated.
  14454. hardcode_direct_absolute=$hardcode_direct_absolute
  14455. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14456. # into the resulting binary.
  14457. hardcode_minus_L=$hardcode_minus_L
  14458. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14459. # into the resulting binary.
  14460. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14461. # Set to "yes" if building a shared library automatically hardcodes DIR
  14462. # into the library and all subsequent libraries and executables linked
  14463. # against it.
  14464. hardcode_automatic=$hardcode_automatic
  14465. # Set to yes if linker adds runtime paths of dependent libraries
  14466. # to runtime path list.
  14467. inherit_rpath=$inherit_rpath
  14468. # Whether libtool must link a program against all its dependency libraries.
  14469. link_all_deplibs=$link_all_deplibs
  14470. # Fix the shell variable \$srcfile for the compiler.
  14471. fix_srcfile_path=$lt_fix_srcfile_path
  14472. # Set to "yes" if exported symbols are required.
  14473. always_export_symbols=$always_export_symbols
  14474. # The commands to list exported symbols.
  14475. export_symbols_cmds=$lt_export_symbols_cmds
  14476. # Symbols that should not be listed in the preloaded symbols.
  14477. exclude_expsyms=$lt_exclude_expsyms
  14478. # Symbols that must always be exported.
  14479. include_expsyms=$lt_include_expsyms
  14480. # Commands necessary for linking programs (against libraries) with templates.
  14481. prelink_cmds=$lt_prelink_cmds
  14482. # Specify filename containing input files.
  14483. file_list_spec=$lt_file_list_spec
  14484. # How to hardcode a shared library path into an executable.
  14485. hardcode_action=$hardcode_action
  14486. # ### END LIBTOOL CONFIG
  14487. _LT_EOF
  14488. case $host_os in
  14489. aix3*)
  14490. cat <<\_LT_EOF >> "$cfgfile"
  14491. # AIX sometimes has problems with the GCC collect2 program. For some
  14492. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14493. # vanish in a puff of smoke.
  14494. if test "X${COLLECT_NAMES+set}" != Xset; then
  14495. COLLECT_NAMES=
  14496. export COLLECT_NAMES
  14497. fi
  14498. _LT_EOF
  14499. ;;
  14500. esac
  14501. ltmain="$ac_aux_dir/ltmain.sh"
  14502. # We use sed instead of cat because bash on DJGPP gets confused if
  14503. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14504. # text mode, it properly converts lines to CR/LF. This bash problem
  14505. # is reportedly fixed, but why not run on old versions too?
  14506. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14507. || (rm -f "$cfgfile"; exit 1)
  14508. case $xsi_shell in
  14509. yes)
  14510. cat << \_LT_EOF >> "$cfgfile"
  14511. # func_dirname file append nondir_replacement
  14512. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14513. # otherwise set result to NONDIR_REPLACEMENT.
  14514. func_dirname ()
  14515. {
  14516. case ${1} in
  14517. */*) func_dirname_result="${1%/*}${2}" ;;
  14518. * ) func_dirname_result="${3}" ;;
  14519. esac
  14520. }
  14521. # func_basename file
  14522. func_basename ()
  14523. {
  14524. func_basename_result="${1##*/}"
  14525. }
  14526. # func_dirname_and_basename file append nondir_replacement
  14527. # perform func_basename and func_dirname in a single function
  14528. # call:
  14529. # dirname: Compute the dirname of FILE. If nonempty,
  14530. # add APPEND to the result, otherwise set result
  14531. # to NONDIR_REPLACEMENT.
  14532. # value returned in "$func_dirname_result"
  14533. # basename: Compute filename of FILE.
  14534. # value retuned in "$func_basename_result"
  14535. # Implementation must be kept synchronized with func_dirname
  14536. # and func_basename. For efficiency, we do not delegate to
  14537. # those functions but instead duplicate the functionality here.
  14538. func_dirname_and_basename ()
  14539. {
  14540. case ${1} in
  14541. */*) func_dirname_result="${1%/*}${2}" ;;
  14542. * ) func_dirname_result="${3}" ;;
  14543. esac
  14544. func_basename_result="${1##*/}"
  14545. }
  14546. # func_stripname prefix suffix name
  14547. # strip PREFIX and SUFFIX off of NAME.
  14548. # PREFIX and SUFFIX must not contain globbing or regex special
  14549. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14550. # dot (in which case that matches only a dot).
  14551. func_stripname ()
  14552. {
  14553. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14554. # positional parameters, so assign one to ordinary parameter first.
  14555. func_stripname_result=${3}
  14556. func_stripname_result=${func_stripname_result#"${1}"}
  14557. func_stripname_result=${func_stripname_result%"${2}"}
  14558. }
  14559. # func_opt_split
  14560. func_opt_split ()
  14561. {
  14562. func_opt_split_opt=${1%%=*}
  14563. func_opt_split_arg=${1#*=}
  14564. }
  14565. # func_lo2o object
  14566. func_lo2o ()
  14567. {
  14568. case ${1} in
  14569. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14570. *) func_lo2o_result=${1} ;;
  14571. esac
  14572. }
  14573. # func_xform libobj-or-source
  14574. func_xform ()
  14575. {
  14576. func_xform_result=${1%.*}.lo
  14577. }
  14578. # func_arith arithmetic-term...
  14579. func_arith ()
  14580. {
  14581. func_arith_result=$(( $* ))
  14582. }
  14583. # func_len string
  14584. # STRING may not start with a hyphen.
  14585. func_len ()
  14586. {
  14587. func_len_result=${#1}
  14588. }
  14589. _LT_EOF
  14590. ;;
  14591. *) # Bourne compatible functions.
  14592. cat << \_LT_EOF >> "$cfgfile"
  14593. # func_dirname file append nondir_replacement
  14594. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14595. # otherwise set result to NONDIR_REPLACEMENT.
  14596. func_dirname ()
  14597. {
  14598. # Extract subdirectory from the argument.
  14599. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14600. if test "X$func_dirname_result" = "X${1}"; then
  14601. func_dirname_result="${3}"
  14602. else
  14603. func_dirname_result="$func_dirname_result${2}"
  14604. fi
  14605. }
  14606. # func_basename file
  14607. func_basename ()
  14608. {
  14609. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14610. }
  14611. # func_stripname prefix suffix name
  14612. # strip PREFIX and SUFFIX off of NAME.
  14613. # PREFIX and SUFFIX must not contain globbing or regex special
  14614. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14615. # dot (in which case that matches only a dot).
  14616. # func_strip_suffix prefix name
  14617. func_stripname ()
  14618. {
  14619. case ${2} in
  14620. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14621. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14622. esac
  14623. }
  14624. # sed scripts:
  14625. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14626. my_sed_long_arg='1s/^-[^=]*=//'
  14627. # func_opt_split
  14628. func_opt_split ()
  14629. {
  14630. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14631. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14632. }
  14633. # func_lo2o object
  14634. func_lo2o ()
  14635. {
  14636. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14637. }
  14638. # func_xform libobj-or-source
  14639. func_xform ()
  14640. {
  14641. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14642. }
  14643. # func_arith arithmetic-term...
  14644. func_arith ()
  14645. {
  14646. func_arith_result=`expr "$@"`
  14647. }
  14648. # func_len string
  14649. # STRING may not start with a hyphen.
  14650. func_len ()
  14651. {
  14652. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14653. }
  14654. _LT_EOF
  14655. esac
  14656. case $lt_shell_append in
  14657. yes)
  14658. cat << \_LT_EOF >> "$cfgfile"
  14659. # func_append var value
  14660. # Append VALUE to the end of shell variable VAR.
  14661. func_append ()
  14662. {
  14663. eval "$1+=\$2"
  14664. }
  14665. _LT_EOF
  14666. ;;
  14667. *)
  14668. cat << \_LT_EOF >> "$cfgfile"
  14669. # func_append var value
  14670. # Append VALUE to the end of shell variable VAR.
  14671. func_append ()
  14672. {
  14673. eval "$1=\$$1\$2"
  14674. }
  14675. _LT_EOF
  14676. ;;
  14677. esac
  14678. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14679. || (rm -f "$cfgfile"; exit 1)
  14680. mv -f "$cfgfile" "$ofile" ||
  14681. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14682. chmod +x "$ofile"
  14683. ;;
  14684. "default-1":C)
  14685. for ac_file in $CONFIG_FILES; do
  14686. # Support "outfile[:infile[:infile...]]"
  14687. case "$ac_file" in
  14688. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14689. esac
  14690. # PO directories have a Makefile.in generated from Makefile.in.in.
  14691. case "$ac_file" in */Makefile.in)
  14692. # Adjust a relative srcdir.
  14693. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14694. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  14695. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14696. # In autoconf-2.13 it is called $ac_given_srcdir.
  14697. # In autoconf-2.50 it is called $srcdir.
  14698. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14699. case "$ac_given_srcdir" in
  14700. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14701. /*) top_srcdir="$ac_given_srcdir" ;;
  14702. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14703. esac
  14704. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14705. rm -f "$ac_dir/POTFILES"
  14706. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14707. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14708. POMAKEFILEDEPS="POTFILES.in"
  14709. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  14710. # on $ac_dir but don't depend on user-specified configuration
  14711. # parameters.
  14712. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14713. # The LINGUAS file contains the set of available languages.
  14714. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14715. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  14716. fi
  14717. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14718. # Hide the ALL_LINGUAS assigment from automake.
  14719. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14720. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14721. else
  14722. # The set of available languages was given in configure.ac.
  14723. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14724. fi
  14725. case "$ac_given_srcdir" in
  14726. .) srcdirpre= ;;
  14727. *) srcdirpre='$(srcdir)/' ;;
  14728. esac
  14729. POFILES=
  14730. GMOFILES=
  14731. UPDATEPOFILES=
  14732. DUMMYPOFILES=
  14733. for lang in $ALL_LINGUAS; do
  14734. POFILES="$POFILES $srcdirpre$lang.po"
  14735. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14736. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14737. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14738. done
  14739. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14740. # environment variable.
  14741. INST_LINGUAS=
  14742. if test -n "$ALL_LINGUAS"; then
  14743. for presentlang in $ALL_LINGUAS; do
  14744. useit=no
  14745. if test "%UNSET%" != "$LINGUAS"; then
  14746. desiredlanguages="$LINGUAS"
  14747. else
  14748. desiredlanguages="$ALL_LINGUAS"
  14749. fi
  14750. for desiredlang in $desiredlanguages; do
  14751. # Use the presentlang catalog if desiredlang is
  14752. # a. equal to presentlang, or
  14753. # b. a variant of presentlang (because in this case,
  14754. # presentlang can be used as a fallback for messages
  14755. # which are not translated in the desiredlang catalog).
  14756. case "$desiredlang" in
  14757. "$presentlang"*) useit=yes;;
  14758. esac
  14759. done
  14760. if test $useit = yes; then
  14761. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14762. fi
  14763. done
  14764. fi
  14765. CATALOGS=
  14766. if test -n "$INST_LINGUAS"; then
  14767. for lang in $INST_LINGUAS; do
  14768. CATALOGS="$CATALOGS $lang.gmo"
  14769. done
  14770. fi
  14771. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14772. 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"
  14773. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14774. if test -f "$f"; then
  14775. case "$f" in
  14776. *.orig | *.bak | *~) ;;
  14777. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14778. esac
  14779. fi
  14780. done
  14781. fi
  14782. ;;
  14783. esac
  14784. done ;;
  14785. esac
  14786. done # for ac_tag
  14787. as_fn_exit 0
  14788. _ACEOF
  14789. ac_clean_files=$ac_clean_files_save
  14790. test $ac_write_fail = 0 ||
  14791. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14792. # configure is writing to config.log, and then calls config.status.
  14793. # config.status does its own redirection, appending to config.log.
  14794. # Unfortunately, on DOS this fails, as config.log is still kept open
  14795. # by configure, so config.status won't be able to write to it; its
  14796. # output is simply discarded. So we exec the FD to /dev/null,
  14797. # effectively closing config.log, so it can be properly (re)opened and
  14798. # appended to by config.status. When coming back to configure, we
  14799. # need to make the FD available again.
  14800. if test "$no_create" != yes; then
  14801. ac_cs_success=:
  14802. ac_config_status_args=
  14803. test "$silent" = yes &&
  14804. ac_config_status_args="$ac_config_status_args --quiet"
  14805. exec 5>/dev/null
  14806. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14807. exec 5>>config.log
  14808. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14809. # would make configure fail if this is the last instruction.
  14810. $ac_cs_success || as_fn_exit $?
  14811. fi
  14812. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14814. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14815. fi