configure 438 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for opcodes 2.25.51.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='opcodes'
  509. PACKAGE_TARNAME='opcodes'
  510. PACKAGE_VERSION='2.25.51'
  511. PACKAGE_STRING='opcodes 2.25.51'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="z8k-dis.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. BFD_MACHINES
  555. archdefs
  556. SHARED_DEPENDENCIES
  557. SHARED_LIBADD
  558. SHARED_LDFLAGS
  559. BUILD_LIB_DEPS
  560. BUILD_LIBS
  561. LIBM
  562. cgendir
  563. CGEN_MAINT_FALSE
  564. CGEN_MAINT_TRUE
  565. HDEFINES
  566. EXEEXT_FOR_BUILD
  567. CC_FOR_BUILD
  568. MSGMERGE
  569. MSGFMT
  570. MKINSTALLDIRS
  571. CATOBJEXT
  572. GENCAT
  573. INSTOBJEXT
  574. DATADIRNAME
  575. CATALOGS
  576. POSUB
  577. GMSGFMT
  578. XGETTEXT
  579. INCINTL
  580. LIBINTL_DEP
  581. LIBINTL
  582. USE_NLS
  583. bfdincludedir
  584. bfdlibdir
  585. target_noncanonical
  586. host_noncanonical
  587. INSTALL_LIBBFD_FALSE
  588. INSTALL_LIBBFD_TRUE
  589. MAINT
  590. MAINTAINER_MODE_FALSE
  591. MAINTAINER_MODE_TRUE
  592. NO_WMISSING_FIELD_INITIALIZERS
  593. NO_WERROR
  594. WARN_CFLAGS
  595. OTOOL64
  596. OTOOL
  597. LIPO
  598. NMEDIT
  599. DSYMUTIL
  600. OBJDUMP
  601. LN_S
  602. NM
  603. ac_ct_DUMPBIN
  604. DUMPBIN
  605. LD
  606. FGREP
  607. SED
  608. LIBTOOL
  609. RANLIB
  610. AR
  611. EGREP
  612. GREP
  613. CPP
  614. am__fastdepCC_FALSE
  615. am__fastdepCC_TRUE
  616. CCDEPMODE
  617. AMDEPBACKSLASH
  618. AMDEP_FALSE
  619. AMDEP_TRUE
  620. am__quote
  621. am__include
  622. DEPDIR
  623. am__untar
  624. am__tar
  625. AMTAR
  626. am__leading_dot
  627. SET_MAKE
  628. AWK
  629. mkdir_p
  630. MKDIR_P
  631. INSTALL_STRIP_PROGRAM
  632. STRIP
  633. install_sh
  634. MAKEINFO
  635. AUTOHEADER
  636. AUTOMAKE
  637. AUTOCONF
  638. ACLOCAL
  639. VERSION
  640. PACKAGE
  641. CYGPATH_W
  642. am__isrc
  643. INSTALL_DATA
  644. INSTALL_SCRIPT
  645. INSTALL_PROGRAM
  646. OBJEXT
  647. EXEEXT
  648. ac_ct_CC
  649. CPPFLAGS
  650. LDFLAGS
  651. CFLAGS
  652. CC
  653. target_os
  654. target_vendor
  655. target_cpu
  656. target
  657. host_os
  658. host_vendor
  659. host_cpu
  660. host
  661. build_os
  662. build_vendor
  663. build_cpu
  664. build
  665. target_alias
  666. host_alias
  667. build_alias
  668. LIBS
  669. ECHO_T
  670. ECHO_N
  671. ECHO_C
  672. DEFS
  673. mandir
  674. localedir
  675. libdir
  676. psdir
  677. pdfdir
  678. dvidir
  679. htmldir
  680. infodir
  681. docdir
  682. oldincludedir
  683. includedir
  684. localstatedir
  685. sharedstatedir
  686. sysconfdir
  687. datadir
  688. datarootdir
  689. libexecdir
  690. sbindir
  691. bindir
  692. program_transform_name
  693. prefix
  694. exec_prefix
  695. PACKAGE_URL
  696. PACKAGE_BUGREPORT
  697. PACKAGE_STRING
  698. PACKAGE_VERSION
  699. PACKAGE_TARNAME
  700. PACKAGE_NAME
  701. PATH_SEPARATOR
  702. SHELL'
  703. ac_subst_files=''
  704. ac_user_opts='
  705. enable_option_checking
  706. enable_dependency_tracking
  707. enable_shared
  708. enable_static
  709. with_pic
  710. enable_fast_install
  711. with_gnu_ld
  712. enable_libtool_lock
  713. enable_targets
  714. enable_werror
  715. enable_build_warnings
  716. enable_maintainer_mode
  717. enable_install_libbfd
  718. enable_nls
  719. enable_cgen_maint
  720. '
  721. ac_precious_vars='build_alias
  722. host_alias
  723. target_alias
  724. CC
  725. CFLAGS
  726. LDFLAGS
  727. LIBS
  728. CPPFLAGS
  729. CPP'
  730. # Initialize some variables set by options.
  731. ac_init_help=
  732. ac_init_version=false
  733. ac_unrecognized_opts=
  734. ac_unrecognized_sep=
  735. # The variables have the same names as the options, with
  736. # dashes changed to underlines.
  737. cache_file=/dev/null
  738. exec_prefix=NONE
  739. no_create=
  740. no_recursion=
  741. prefix=NONE
  742. program_prefix=NONE
  743. program_suffix=NONE
  744. program_transform_name=s,x,x,
  745. silent=
  746. site=
  747. srcdir=
  748. verbose=
  749. x_includes=NONE
  750. x_libraries=NONE
  751. # Installation directory options.
  752. # These are left unexpanded so users can "make install exec_prefix=/foo"
  753. # and all the variables that are supposed to be based on exec_prefix
  754. # by default will actually change.
  755. # Use braces instead of parens because sh, perl, etc. also accept them.
  756. # (The list follows the same order as the GNU Coding Standards.)
  757. bindir='${exec_prefix}/bin'
  758. sbindir='${exec_prefix}/sbin'
  759. libexecdir='${exec_prefix}/libexec'
  760. datarootdir='${prefix}/share'
  761. datadir='${datarootdir}'
  762. sysconfdir='${prefix}/etc'
  763. sharedstatedir='${prefix}/com'
  764. localstatedir='${prefix}/var'
  765. includedir='${prefix}/include'
  766. oldincludedir='/usr/include'
  767. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  768. infodir='${datarootdir}/info'
  769. htmldir='${docdir}'
  770. dvidir='${docdir}'
  771. pdfdir='${docdir}'
  772. psdir='${docdir}'
  773. libdir='${exec_prefix}/lib'
  774. localedir='${datarootdir}/locale'
  775. mandir='${datarootdir}/man'
  776. ac_prev=
  777. ac_dashdash=
  778. for ac_option
  779. do
  780. # If the previous option needs an argument, assign it.
  781. if test -n "$ac_prev"; then
  782. eval $ac_prev=\$ac_option
  783. ac_prev=
  784. continue
  785. fi
  786. case $ac_option in
  787. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  788. *) ac_optarg=yes ;;
  789. esac
  790. # Accept the important Cygnus configure options, so we can diagnose typos.
  791. case $ac_dashdash$ac_option in
  792. --)
  793. ac_dashdash=yes ;;
  794. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  795. ac_prev=bindir ;;
  796. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  797. bindir=$ac_optarg ;;
  798. -build | --build | --buil | --bui | --bu)
  799. ac_prev=build_alias ;;
  800. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  801. build_alias=$ac_optarg ;;
  802. -cache-file | --cache-file | --cache-fil | --cache-fi \
  803. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  804. ac_prev=cache_file ;;
  805. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  806. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  807. cache_file=$ac_optarg ;;
  808. --config-cache | -C)
  809. cache_file=config.cache ;;
  810. -datadir | --datadir | --datadi | --datad)
  811. ac_prev=datadir ;;
  812. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  813. datadir=$ac_optarg ;;
  814. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  815. | --dataroo | --dataro | --datar)
  816. ac_prev=datarootdir ;;
  817. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  818. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  819. datarootdir=$ac_optarg ;;
  820. -disable-* | --disable-*)
  821. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  822. # Reject names that are not valid shell variable names.
  823. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  824. as_fn_error "invalid feature name: $ac_useropt"
  825. ac_useropt_orig=$ac_useropt
  826. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  827. case $ac_user_opts in
  828. *"
  829. "enable_$ac_useropt"
  830. "*) ;;
  831. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  832. ac_unrecognized_sep=', ';;
  833. esac
  834. eval enable_$ac_useropt=no ;;
  835. -docdir | --docdir | --docdi | --doc | --do)
  836. ac_prev=docdir ;;
  837. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  838. docdir=$ac_optarg ;;
  839. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  840. ac_prev=dvidir ;;
  841. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  842. dvidir=$ac_optarg ;;
  843. -enable-* | --enable-*)
  844. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  847. as_fn_error "invalid feature name: $ac_useropt"
  848. ac_useropt_orig=$ac_useropt
  849. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  850. case $ac_user_opts in
  851. *"
  852. "enable_$ac_useropt"
  853. "*) ;;
  854. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  855. ac_unrecognized_sep=', ';;
  856. esac
  857. eval enable_$ac_useropt=\$ac_optarg ;;
  858. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  859. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  860. | --exec | --exe | --ex)
  861. ac_prev=exec_prefix ;;
  862. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  863. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  864. | --exec=* | --exe=* | --ex=*)
  865. exec_prefix=$ac_optarg ;;
  866. -gas | --gas | --ga | --g)
  867. # Obsolete; use --with-gas.
  868. with_gas=yes ;;
  869. -help | --help | --hel | --he | -h)
  870. ac_init_help=long ;;
  871. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  872. ac_init_help=recursive ;;
  873. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  874. ac_init_help=short ;;
  875. -host | --host | --hos | --ho)
  876. ac_prev=host_alias ;;
  877. -host=* | --host=* | --hos=* | --ho=*)
  878. host_alias=$ac_optarg ;;
  879. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  880. ac_prev=htmldir ;;
  881. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  882. | --ht=*)
  883. htmldir=$ac_optarg ;;
  884. -includedir | --includedir | --includedi | --included | --include \
  885. | --includ | --inclu | --incl | --inc)
  886. ac_prev=includedir ;;
  887. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  888. | --includ=* | --inclu=* | --incl=* | --inc=*)
  889. includedir=$ac_optarg ;;
  890. -infodir | --infodir | --infodi | --infod | --info | --inf)
  891. ac_prev=infodir ;;
  892. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  893. infodir=$ac_optarg ;;
  894. -libdir | --libdir | --libdi | --libd)
  895. ac_prev=libdir ;;
  896. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  897. libdir=$ac_optarg ;;
  898. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  899. | --libexe | --libex | --libe)
  900. ac_prev=libexecdir ;;
  901. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  902. | --libexe=* | --libex=* | --libe=*)
  903. libexecdir=$ac_optarg ;;
  904. -localedir | --localedir | --localedi | --localed | --locale)
  905. ac_prev=localedir ;;
  906. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  907. localedir=$ac_optarg ;;
  908. -localstatedir | --localstatedir | --localstatedi | --localstated \
  909. | --localstate | --localstat | --localsta | --localst | --locals)
  910. ac_prev=localstatedir ;;
  911. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  912. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  913. localstatedir=$ac_optarg ;;
  914. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  915. ac_prev=mandir ;;
  916. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  917. mandir=$ac_optarg ;;
  918. -nfp | --nfp | --nf)
  919. # Obsolete; use --without-fp.
  920. with_fp=no ;;
  921. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  922. | --no-cr | --no-c | -n)
  923. no_create=yes ;;
  924. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  925. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  926. no_recursion=yes ;;
  927. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  928. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  929. | --oldin | --oldi | --old | --ol | --o)
  930. ac_prev=oldincludedir ;;
  931. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  932. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  933. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  934. oldincludedir=$ac_optarg ;;
  935. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  936. ac_prev=prefix ;;
  937. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  938. prefix=$ac_optarg ;;
  939. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  940. | --program-pre | --program-pr | --program-p)
  941. ac_prev=program_prefix ;;
  942. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  943. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  944. program_prefix=$ac_optarg ;;
  945. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  946. | --program-suf | --program-su | --program-s)
  947. ac_prev=program_suffix ;;
  948. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  949. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  950. program_suffix=$ac_optarg ;;
  951. -program-transform-name | --program-transform-name \
  952. | --program-transform-nam | --program-transform-na \
  953. | --program-transform-n | --program-transform- \
  954. | --program-transform | --program-transfor \
  955. | --program-transfo | --program-transf \
  956. | --program-trans | --program-tran \
  957. | --progr-tra | --program-tr | --program-t)
  958. ac_prev=program_transform_name ;;
  959. -program-transform-name=* | --program-transform-name=* \
  960. | --program-transform-nam=* | --program-transform-na=* \
  961. | --program-transform-n=* | --program-transform-=* \
  962. | --program-transform=* | --program-transfor=* \
  963. | --program-transfo=* | --program-transf=* \
  964. | --program-trans=* | --program-tran=* \
  965. | --progr-tra=* | --program-tr=* | --program-t=*)
  966. program_transform_name=$ac_optarg ;;
  967. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  968. ac_prev=pdfdir ;;
  969. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  970. pdfdir=$ac_optarg ;;
  971. -psdir | --psdir | --psdi | --psd | --ps)
  972. ac_prev=psdir ;;
  973. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  974. psdir=$ac_optarg ;;
  975. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  976. | -silent | --silent | --silen | --sile | --sil)
  977. silent=yes ;;
  978. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  979. ac_prev=sbindir ;;
  980. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  981. | --sbi=* | --sb=*)
  982. sbindir=$ac_optarg ;;
  983. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  984. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  985. | --sharedst | --shareds | --shared | --share | --shar \
  986. | --sha | --sh)
  987. ac_prev=sharedstatedir ;;
  988. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  989. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  990. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  991. | --sha=* | --sh=*)
  992. sharedstatedir=$ac_optarg ;;
  993. -site | --site | --sit)
  994. ac_prev=site ;;
  995. -site=* | --site=* | --sit=*)
  996. site=$ac_optarg ;;
  997. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  998. ac_prev=srcdir ;;
  999. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1000. srcdir=$ac_optarg ;;
  1001. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1002. | --syscon | --sysco | --sysc | --sys | --sy)
  1003. ac_prev=sysconfdir ;;
  1004. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1005. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1006. sysconfdir=$ac_optarg ;;
  1007. -target | --target | --targe | --targ | --tar | --ta | --t)
  1008. ac_prev=target_alias ;;
  1009. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1010. target_alias=$ac_optarg ;;
  1011. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1012. verbose=yes ;;
  1013. -version | --version | --versio | --versi | --vers | -V)
  1014. ac_init_version=: ;;
  1015. -with-* | --with-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error "invalid package name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "with_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval with_$ac_useropt=\$ac_optarg ;;
  1030. -without-* | --without-*)
  1031. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1034. as_fn_error "invalid package name: $ac_useropt"
  1035. ac_useropt_orig=$ac_useropt
  1036. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1037. case $ac_user_opts in
  1038. *"
  1039. "with_$ac_useropt"
  1040. "*) ;;
  1041. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1042. ac_unrecognized_sep=', ';;
  1043. esac
  1044. eval with_$ac_useropt=no ;;
  1045. --x)
  1046. # Obsolete; use --with-x.
  1047. with_x=yes ;;
  1048. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1049. | --x-incl | --x-inc | --x-in | --x-i)
  1050. ac_prev=x_includes ;;
  1051. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1052. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1053. x_includes=$ac_optarg ;;
  1054. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1055. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1056. ac_prev=x_libraries ;;
  1057. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1058. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1059. x_libraries=$ac_optarg ;;
  1060. -*) as_fn_error "unrecognized option: \`$ac_option'
  1061. Try \`$0 --help' for more information."
  1062. ;;
  1063. *=*)
  1064. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1065. # Reject names that are not valid shell variable names.
  1066. case $ac_envvar in #(
  1067. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1068. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1069. esac
  1070. eval $ac_envvar=\$ac_optarg
  1071. export $ac_envvar ;;
  1072. *)
  1073. # FIXME: should be removed in autoconf 3.0.
  1074. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1075. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1076. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1077. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1078. ;;
  1079. esac
  1080. done
  1081. if test -n "$ac_prev"; then
  1082. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1083. as_fn_error "missing argument to $ac_option"
  1084. fi
  1085. if test -n "$ac_unrecognized_opts"; then
  1086. case $enable_option_checking in
  1087. no) ;;
  1088. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1089. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1090. esac
  1091. fi
  1092. # Check all directory arguments for consistency.
  1093. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1094. datadir sysconfdir sharedstatedir localstatedir includedir \
  1095. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1096. libdir localedir mandir
  1097. do
  1098. eval ac_val=\$$ac_var
  1099. # Remove trailing slashes.
  1100. case $ac_val in
  1101. */ )
  1102. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1103. eval $ac_var=\$ac_val;;
  1104. esac
  1105. # Be sure to have absolute directory names.
  1106. case $ac_val in
  1107. [\\/$]* | ?:[\\/]* ) continue;;
  1108. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1109. esac
  1110. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1111. done
  1112. # There might be people who depend on the old broken behavior: `$host'
  1113. # used to hold the argument of --host etc.
  1114. # FIXME: To remove some day.
  1115. build=$build_alias
  1116. host=$host_alias
  1117. target=$target_alias
  1118. # FIXME: To remove some day.
  1119. if test "x$host_alias" != x; then
  1120. if test "x$build_alias" = x; then
  1121. cross_compiling=maybe
  1122. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1123. If a cross compiler is detected then cross compile mode will be used." >&2
  1124. elif test "x$build_alias" != "x$host_alias"; then
  1125. cross_compiling=yes
  1126. fi
  1127. fi
  1128. ac_tool_prefix=
  1129. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1130. test "$silent" = yes && exec 6>/dev/null
  1131. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1132. ac_ls_di=`ls -di .` &&
  1133. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1134. as_fn_error "working directory cannot be determined"
  1135. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1136. as_fn_error "pwd does not report name of working directory"
  1137. # Find the source files, if location was not specified.
  1138. if test -z "$srcdir"; then
  1139. ac_srcdir_defaulted=yes
  1140. # Try the directory containing this script, then the parent directory.
  1141. ac_confdir=`$as_dirname -- "$as_myself" ||
  1142. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1143. X"$as_myself" : 'X\(//\)[^/]' \| \
  1144. X"$as_myself" : 'X\(//\)$' \| \
  1145. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1146. $as_echo X"$as_myself" |
  1147. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\/\)[^/].*/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\).*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. s/.*/./; q'`
  1164. srcdir=$ac_confdir
  1165. if test ! -r "$srcdir/$ac_unique_file"; then
  1166. srcdir=..
  1167. fi
  1168. else
  1169. ac_srcdir_defaulted=no
  1170. fi
  1171. if test ! -r "$srcdir/$ac_unique_file"; then
  1172. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1173. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1174. fi
  1175. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1176. ac_abs_confdir=`(
  1177. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1178. pwd)`
  1179. # When building in place, set srcdir=.
  1180. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1181. srcdir=.
  1182. fi
  1183. # Remove unnecessary trailing slashes from srcdir.
  1184. # Double slashes in file names in object file debugging info
  1185. # mess up M-x gdb in Emacs.
  1186. case $srcdir in
  1187. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1188. esac
  1189. for ac_var in $ac_precious_vars; do
  1190. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_env_${ac_var}_value=\$${ac_var}
  1192. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1194. done
  1195. #
  1196. # Report the --help message.
  1197. #
  1198. if test "$ac_init_help" = "long"; then
  1199. # Omit some internal or obsolete options to make the list less imposing.
  1200. # This message is too long to be a string in the A/UX 3.1 sh.
  1201. cat <<_ACEOF
  1202. \`configure' configures opcodes 2.25.51 to adapt to many kinds of systems.
  1203. Usage: $0 [OPTION]... [VAR=VALUE]...
  1204. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1205. VAR=VALUE. See below for descriptions of some of the useful variables.
  1206. Defaults for the options are specified in brackets.
  1207. Configuration:
  1208. -h, --help display this help and exit
  1209. --help=short display options specific to this package
  1210. --help=recursive display the short help of all the included packages
  1211. -V, --version display version information and exit
  1212. -q, --quiet, --silent do not print \`checking...' messages
  1213. --cache-file=FILE cache test results in FILE [disabled]
  1214. -C, --config-cache alias for \`--cache-file=config.cache'
  1215. -n, --no-create do not create output files
  1216. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1217. Installation directories:
  1218. --prefix=PREFIX install architecture-independent files in PREFIX
  1219. [$ac_default_prefix]
  1220. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1221. [PREFIX]
  1222. By default, \`make install' will install all the files in
  1223. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1224. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1225. for instance \`--prefix=\$HOME'.
  1226. For better control, use the options below.
  1227. Fine tuning of the installation directories:
  1228. --bindir=DIR user executables [EPREFIX/bin]
  1229. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1230. --libexecdir=DIR program executables [EPREFIX/libexec]
  1231. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1232. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1233. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1234. --libdir=DIR object code libraries [EPREFIX/lib]
  1235. --includedir=DIR C header files [PREFIX/include]
  1236. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1237. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1238. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1239. --infodir=DIR info documentation [DATAROOTDIR/info]
  1240. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1241. --mandir=DIR man documentation [DATAROOTDIR/man]
  1242. --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes]
  1243. --htmldir=DIR html documentation [DOCDIR]
  1244. --dvidir=DIR dvi documentation [DOCDIR]
  1245. --pdfdir=DIR pdf documentation [DOCDIR]
  1246. --psdir=DIR ps documentation [DOCDIR]
  1247. _ACEOF
  1248. cat <<\_ACEOF
  1249. Program names:
  1250. --program-prefix=PREFIX prepend PREFIX to installed program names
  1251. --program-suffix=SUFFIX append SUFFIX to installed program names
  1252. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1253. System types:
  1254. --build=BUILD configure for building on BUILD [guessed]
  1255. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1256. --target=TARGET configure for building compilers for TARGET [HOST]
  1257. _ACEOF
  1258. fi
  1259. if test -n "$ac_init_help"; then
  1260. case $ac_init_help in
  1261. short | recursive ) echo "Configuration of opcodes 2.25.51:";;
  1262. esac
  1263. cat <<\_ACEOF
  1264. Optional Features:
  1265. --disable-option-checking ignore unrecognized --enable/--with options
  1266. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1267. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1268. --disable-dependency-tracking speeds up one-time build
  1269. --enable-dependency-tracking do not reject slow dependency extractors
  1270. --enable-shared[=PKGS] build shared libraries [default=no]
  1271. --enable-static[=PKGS] build static libraries [default=yes]
  1272. --enable-fast-install[=PKGS]
  1273. optimize for fast installation [default=yes]
  1274. --disable-libtool-lock avoid locking (might break parallel builds)
  1275. --enable-targets alternative target configurations
  1276. --enable-werror treat compile warnings as errors
  1277. --enable-build-warnings enable build-time compiler warnings
  1278. --enable-maintainer-mode enable make rules and dependencies not useful
  1279. (and sometimes confusing) to the casual installer
  1280. --enable-install-libbfd controls installation of libbfd and related headers
  1281. --disable-nls do not use Native Language Support
  1282. --enable-cgen-maint=dir build cgen generated files
  1283. Optional Packages:
  1284. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1285. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1286. --with-pic try to use only PIC/non-PIC objects [default=use
  1287. both]
  1288. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1289. Some influential environment variables:
  1290. CC C compiler command
  1291. CFLAGS C compiler flags
  1292. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1293. nonstandard directory <lib dir>
  1294. LIBS libraries to pass to the linker, e.g. -l<library>
  1295. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1296. you have headers in a nonstandard directory <include dir>
  1297. CPP C preprocessor
  1298. Use these variables to override the choices made by `configure' or to help
  1299. it to find libraries and programs with nonstandard names/locations.
  1300. Report bugs to the package provider.
  1301. _ACEOF
  1302. ac_status=$?
  1303. fi
  1304. if test "$ac_init_help" = "recursive"; then
  1305. # If there are subdirs, report their specific --help.
  1306. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1307. test -d "$ac_dir" ||
  1308. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1309. continue
  1310. ac_builddir=.
  1311. case "$ac_dir" in
  1312. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1313. *)
  1314. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1315. # A ".." for each directory in $ac_dir_suffix.
  1316. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1317. case $ac_top_builddir_sub in
  1318. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1319. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1320. esac ;;
  1321. esac
  1322. ac_abs_top_builddir=$ac_pwd
  1323. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1324. # for backward compatibility:
  1325. ac_top_builddir=$ac_top_build_prefix
  1326. case $srcdir in
  1327. .) # We are building in place.
  1328. ac_srcdir=.
  1329. ac_top_srcdir=$ac_top_builddir_sub
  1330. ac_abs_top_srcdir=$ac_pwd ;;
  1331. [\\/]* | ?:[\\/]* ) # Absolute name.
  1332. ac_srcdir=$srcdir$ac_dir_suffix;
  1333. ac_top_srcdir=$srcdir
  1334. ac_abs_top_srcdir=$srcdir ;;
  1335. *) # Relative name.
  1336. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1337. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1338. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1339. esac
  1340. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1341. cd "$ac_dir" || { ac_status=$?; continue; }
  1342. # Check for guested configure.
  1343. if test -f "$ac_srcdir/configure.gnu"; then
  1344. echo &&
  1345. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1346. elif test -f "$ac_srcdir/configure"; then
  1347. echo &&
  1348. $SHELL "$ac_srcdir/configure" --help=recursive
  1349. else
  1350. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1351. fi || ac_status=$?
  1352. cd "$ac_pwd" || { ac_status=$?; break; }
  1353. done
  1354. fi
  1355. test -n "$ac_init_help" && exit $ac_status
  1356. if $ac_init_version; then
  1357. cat <<\_ACEOF
  1358. opcodes configure 2.25.51
  1359. generated by GNU Autoconf 2.64
  1360. Copyright (C) 2009 Free Software Foundation, Inc.
  1361. This configure script is free software; the Free Software Foundation
  1362. gives unlimited permission to copy, distribute and modify it.
  1363. _ACEOF
  1364. exit
  1365. fi
  1366. ## ------------------------ ##
  1367. ## Autoconf initialization. ##
  1368. ## ------------------------ ##
  1369. # ac_fn_c_try_compile LINENO
  1370. # --------------------------
  1371. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1372. ac_fn_c_try_compile ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. rm -f conftest.$ac_objext
  1376. if { { ac_try="$ac_compile"
  1377. case "(($ac_try" in
  1378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. *) ac_try_echo=$ac_try;;
  1380. esac
  1381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1382. $as_echo "$ac_try_echo"; } >&5
  1383. (eval "$ac_compile") 2>conftest.err
  1384. ac_status=$?
  1385. if test -s conftest.err; then
  1386. grep -v '^ *+' conftest.err >conftest.er1
  1387. cat conftest.er1 >&5
  1388. mv -f conftest.er1 conftest.err
  1389. fi
  1390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1391. test $ac_status = 0; } && {
  1392. test -z "$ac_c_werror_flag" ||
  1393. test ! -s conftest.err
  1394. } && test -s conftest.$ac_objext; then :
  1395. ac_retval=0
  1396. else
  1397. $as_echo "$as_me: failed program was:" >&5
  1398. sed 's/^/| /' conftest.$ac_ext >&5
  1399. ac_retval=1
  1400. fi
  1401. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1402. return $ac_retval
  1403. } # ac_fn_c_try_compile
  1404. # ac_fn_c_try_link LINENO
  1405. # -----------------------
  1406. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1407. ac_fn_c_try_link ()
  1408. {
  1409. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1410. rm -f conftest.$ac_objext conftest$ac_exeext
  1411. if { { ac_try="$ac_link"
  1412. case "(($ac_try" in
  1413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1414. *) ac_try_echo=$ac_try;;
  1415. esac
  1416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1417. $as_echo "$ac_try_echo"; } >&5
  1418. (eval "$ac_link") 2>conftest.err
  1419. ac_status=$?
  1420. if test -s conftest.err; then
  1421. grep -v '^ *+' conftest.err >conftest.er1
  1422. cat conftest.er1 >&5
  1423. mv -f conftest.er1 conftest.err
  1424. fi
  1425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1426. test $ac_status = 0; } && {
  1427. test -z "$ac_c_werror_flag" ||
  1428. test ! -s conftest.err
  1429. } && test -s conftest$ac_exeext && {
  1430. test "$cross_compiling" = yes ||
  1431. $as_test_x conftest$ac_exeext
  1432. }; then :
  1433. ac_retval=0
  1434. else
  1435. $as_echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. ac_retval=1
  1438. fi
  1439. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1440. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1441. # interfere with the next link command; also delete a directory that is
  1442. # left behind by Apple's compiler. We do this before executing the actions.
  1443. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1444. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1445. return $ac_retval
  1446. } # ac_fn_c_try_link
  1447. # ac_fn_c_try_cpp LINENO
  1448. # ----------------------
  1449. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1450. ac_fn_c_try_cpp ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1454. case "(($ac_try" in
  1455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1456. *) ac_try_echo=$ac_try;;
  1457. esac
  1458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1459. $as_echo "$ac_try_echo"; } >&5
  1460. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1461. ac_status=$?
  1462. if test -s conftest.err; then
  1463. grep -v '^ *+' conftest.err >conftest.er1
  1464. cat conftest.er1 >&5
  1465. mv -f conftest.er1 conftest.err
  1466. fi
  1467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1468. test $ac_status = 0; } >/dev/null && {
  1469. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1470. test ! -s conftest.err
  1471. }; then :
  1472. ac_retval=0
  1473. else
  1474. $as_echo "$as_me: failed program was:" >&5
  1475. sed 's/^/| /' conftest.$ac_ext >&5
  1476. ac_retval=1
  1477. fi
  1478. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1479. return $ac_retval
  1480. } # ac_fn_c_try_cpp
  1481. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1482. # -------------------------------------------------------
  1483. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1484. # the include files in INCLUDES and setting the cache variable VAR
  1485. # accordingly.
  1486. ac_fn_c_check_header_mongrel ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1491. $as_echo_n "checking for $2... " >&6; }
  1492. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1493. $as_echo_n "(cached) " >&6
  1494. fi
  1495. eval ac_res=\$$3
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1497. $as_echo "$ac_res" >&6; }
  1498. else
  1499. # Is the header compilable?
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1501. $as_echo_n "checking $2 usability... " >&6; }
  1502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1503. /* end confdefs.h. */
  1504. $4
  1505. #include <$2>
  1506. _ACEOF
  1507. if ac_fn_c_try_compile "$LINENO"; then :
  1508. ac_header_compiler=yes
  1509. else
  1510. ac_header_compiler=no
  1511. fi
  1512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1514. $as_echo "$ac_header_compiler" >&6; }
  1515. # Is the header present?
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1517. $as_echo_n "checking $2 presence... " >&6; }
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. #include <$2>
  1521. _ACEOF
  1522. if ac_fn_c_try_cpp "$LINENO"; then :
  1523. ac_header_preproc=yes
  1524. else
  1525. ac_header_preproc=no
  1526. fi
  1527. rm -f conftest.err conftest.$ac_ext
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1529. $as_echo "$ac_header_preproc" >&6; }
  1530. # So? What about this header?
  1531. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1532. yes:no: )
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1534. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1536. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1537. ;;
  1538. no:yes:* )
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1540. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1542. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1544. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1546. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1548. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1549. ;;
  1550. esac
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1552. $as_echo_n "checking for $2... " >&6; }
  1553. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1554. $as_echo_n "(cached) " >&6
  1555. else
  1556. eval "$3=\$ac_header_compiler"
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. fi
  1562. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1563. } # ac_fn_c_check_header_mongrel
  1564. # ac_fn_c_try_run LINENO
  1565. # ----------------------
  1566. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1567. # that executables *can* be run.
  1568. ac_fn_c_try_run ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. if { { ac_try="$ac_link"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_link") 2>&5
  1579. ac_status=$?
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1582. { { case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_try") 2>&5
  1589. ac_status=$?
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; }; }; then :
  1592. ac_retval=0
  1593. else
  1594. $as_echo "$as_me: program exited with status $ac_status" >&5
  1595. $as_echo "$as_me: failed program was:" >&5
  1596. sed 's/^/| /' conftest.$ac_ext >&5
  1597. ac_retval=$ac_status
  1598. fi
  1599. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1600. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1601. return $ac_retval
  1602. } # ac_fn_c_try_run
  1603. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1604. # -------------------------------------------------------
  1605. # Tests whether HEADER exists and can be compiled using the include files in
  1606. # INCLUDES, setting the cache variable VAR accordingly.
  1607. ac_fn_c_check_header_compile ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1611. $as_echo_n "checking for $2... " >&6; }
  1612. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1613. $as_echo_n "(cached) " >&6
  1614. else
  1615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1616. /* end confdefs.h. */
  1617. $4
  1618. #include <$2>
  1619. _ACEOF
  1620. if ac_fn_c_try_compile "$LINENO"; then :
  1621. eval "$3=yes"
  1622. else
  1623. eval "$3=no"
  1624. fi
  1625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1626. fi
  1627. eval ac_res=\$$3
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. $as_echo "$ac_res" >&6; }
  1630. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1631. } # ac_fn_c_check_header_compile
  1632. # ac_fn_c_check_func LINENO FUNC VAR
  1633. # ----------------------------------
  1634. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1635. ac_fn_c_check_func ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1639. $as_echo_n "checking for $2... " >&6; }
  1640. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1641. $as_echo_n "(cached) " >&6
  1642. else
  1643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1644. /* end confdefs.h. */
  1645. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1646. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1647. #define $2 innocuous_$2
  1648. /* System header to define __stub macros and hopefully few prototypes,
  1649. which can conflict with char $2 (); below.
  1650. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1651. <limits.h> exists even on freestanding compilers. */
  1652. #ifdef __STDC__
  1653. # include <limits.h>
  1654. #else
  1655. # include <assert.h>
  1656. #endif
  1657. #undef $2
  1658. /* Override any GCC internal prototype to avoid an error.
  1659. Use char because int might match the return type of a GCC
  1660. builtin and then its argument prototype would still apply. */
  1661. #ifdef __cplusplus
  1662. extern "C"
  1663. #endif
  1664. char $2 ();
  1665. /* The GNU C library defines this for functions which it implements
  1666. to always fail with ENOSYS. Some functions are actually named
  1667. something starting with __ and the normal name is an alias. */
  1668. #if defined __stub_$2 || defined __stub___$2
  1669. choke me
  1670. #endif
  1671. int
  1672. main ()
  1673. {
  1674. return $2 ();
  1675. ;
  1676. return 0;
  1677. }
  1678. _ACEOF
  1679. if ac_fn_c_try_link "$LINENO"; then :
  1680. eval "$3=yes"
  1681. else
  1682. eval "$3=no"
  1683. fi
  1684. rm -f core conftest.err conftest.$ac_objext \
  1685. conftest$ac_exeext conftest.$ac_ext
  1686. fi
  1687. eval ac_res=\$$3
  1688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1689. $as_echo "$ac_res" >&6; }
  1690. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1691. } # ac_fn_c_check_func
  1692. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1693. # ------------------------------------
  1694. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1695. ac_fn_c_check_decl ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1699. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1701. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1702. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1703. $as_echo_n "(cached) " >&6
  1704. else
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $4
  1708. int
  1709. main ()
  1710. {
  1711. #ifndef $as_decl_name
  1712. #ifdef __cplusplus
  1713. (void) $as_decl_use;
  1714. #else
  1715. (void) $as_decl_name;
  1716. #endif
  1717. #endif
  1718. ;
  1719. return 0;
  1720. }
  1721. _ACEOF
  1722. if ac_fn_c_try_compile "$LINENO"; then :
  1723. eval "$3=yes"
  1724. else
  1725. eval "$3=no"
  1726. fi
  1727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1728. fi
  1729. eval ac_res=\$$3
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1731. $as_echo "$ac_res" >&6; }
  1732. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1733. } # ac_fn_c_check_decl
  1734. cat >config.log <<_ACEOF
  1735. This file contains any messages produced by compilers while
  1736. running configure, to aid debugging if configure makes a mistake.
  1737. It was created by opcodes $as_me 2.25.51, which was
  1738. generated by GNU Autoconf 2.64. Invocation command line was
  1739. $ $0 $@
  1740. _ACEOF
  1741. exec 5>>config.log
  1742. {
  1743. cat <<_ASUNAME
  1744. ## --------- ##
  1745. ## Platform. ##
  1746. ## --------- ##
  1747. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1748. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1749. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1750. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1751. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1752. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1753. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1754. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1755. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1756. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1757. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1758. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1759. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1760. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1761. _ASUNAME
  1762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1763. for as_dir in $PATH
  1764. do
  1765. IFS=$as_save_IFS
  1766. test -z "$as_dir" && as_dir=.
  1767. $as_echo "PATH: $as_dir"
  1768. done
  1769. IFS=$as_save_IFS
  1770. } >&5
  1771. cat >&5 <<_ACEOF
  1772. ## ----------- ##
  1773. ## Core tests. ##
  1774. ## ----------- ##
  1775. _ACEOF
  1776. # Keep a trace of the command line.
  1777. # Strip out --no-create and --no-recursion so they do not pile up.
  1778. # Strip out --silent because we don't want to record it for future runs.
  1779. # Also quote any args containing shell meta-characters.
  1780. # Make two passes to allow for proper duplicate-argument suppression.
  1781. ac_configure_args=
  1782. ac_configure_args0=
  1783. ac_configure_args1=
  1784. ac_must_keep_next=false
  1785. for ac_pass in 1 2
  1786. do
  1787. for ac_arg
  1788. do
  1789. case $ac_arg in
  1790. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1791. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1792. | -silent | --silent | --silen | --sile | --sil)
  1793. continue ;;
  1794. *\'*)
  1795. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1796. esac
  1797. case $ac_pass in
  1798. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1799. 2)
  1800. as_fn_append ac_configure_args1 " '$ac_arg'"
  1801. if test $ac_must_keep_next = true; then
  1802. ac_must_keep_next=false # Got value, back to normal.
  1803. else
  1804. case $ac_arg in
  1805. *=* | --config-cache | -C | -disable-* | --disable-* \
  1806. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1807. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1808. | -with-* | --with-* | -without-* | --without-* | --x)
  1809. case "$ac_configure_args0 " in
  1810. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1811. esac
  1812. ;;
  1813. -* ) ac_must_keep_next=true ;;
  1814. esac
  1815. fi
  1816. as_fn_append ac_configure_args " '$ac_arg'"
  1817. ;;
  1818. esac
  1819. done
  1820. done
  1821. { ac_configure_args0=; unset ac_configure_args0;}
  1822. { ac_configure_args1=; unset ac_configure_args1;}
  1823. # When interrupted or exit'd, cleanup temporary files, and complete
  1824. # config.log. We remove comments because anyway the quotes in there
  1825. # would cause problems or look ugly.
  1826. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1827. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1828. trap 'exit_status=$?
  1829. # Save into config.log some information that might help in debugging.
  1830. {
  1831. echo
  1832. cat <<\_ASBOX
  1833. ## ---------------- ##
  1834. ## Cache variables. ##
  1835. ## ---------------- ##
  1836. _ASBOX
  1837. echo
  1838. # The following way of writing the cache mishandles newlines in values,
  1839. (
  1840. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1841. eval ac_val=\$$ac_var
  1842. case $ac_val in #(
  1843. *${as_nl}*)
  1844. case $ac_var in #(
  1845. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1846. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1847. esac
  1848. case $ac_var in #(
  1849. _ | IFS | as_nl) ;; #(
  1850. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1851. *) { eval $ac_var=; unset $ac_var;} ;;
  1852. esac ;;
  1853. esac
  1854. done
  1855. (set) 2>&1 |
  1856. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1857. *${as_nl}ac_space=\ *)
  1858. sed -n \
  1859. "s/'\''/'\''\\\\'\'''\''/g;
  1860. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1861. ;; #(
  1862. *)
  1863. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1864. ;;
  1865. esac |
  1866. sort
  1867. )
  1868. echo
  1869. cat <<\_ASBOX
  1870. ## ----------------- ##
  1871. ## Output variables. ##
  1872. ## ----------------- ##
  1873. _ASBOX
  1874. echo
  1875. for ac_var in $ac_subst_vars
  1876. do
  1877. eval ac_val=\$$ac_var
  1878. case $ac_val in
  1879. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1880. esac
  1881. $as_echo "$ac_var='\''$ac_val'\''"
  1882. done | sort
  1883. echo
  1884. if test -n "$ac_subst_files"; then
  1885. cat <<\_ASBOX
  1886. ## ------------------- ##
  1887. ## File substitutions. ##
  1888. ## ------------------- ##
  1889. _ASBOX
  1890. echo
  1891. for ac_var in $ac_subst_files
  1892. do
  1893. eval ac_val=\$$ac_var
  1894. case $ac_val in
  1895. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1896. esac
  1897. $as_echo "$ac_var='\''$ac_val'\''"
  1898. done | sort
  1899. echo
  1900. fi
  1901. if test -s confdefs.h; then
  1902. cat <<\_ASBOX
  1903. ## ----------- ##
  1904. ## confdefs.h. ##
  1905. ## ----------- ##
  1906. _ASBOX
  1907. echo
  1908. cat confdefs.h
  1909. echo
  1910. fi
  1911. test "$ac_signal" != 0 &&
  1912. $as_echo "$as_me: caught signal $ac_signal"
  1913. $as_echo "$as_me: exit $exit_status"
  1914. } >&5
  1915. rm -f core *.core core.conftest.* &&
  1916. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1917. exit $exit_status
  1918. ' 0
  1919. for ac_signal in 1 2 13 15; do
  1920. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1921. done
  1922. ac_signal=0
  1923. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1924. rm -f -r conftest* confdefs.h
  1925. $as_echo "/* confdefs.h */" > confdefs.h
  1926. # Predefined preprocessor variables.
  1927. cat >>confdefs.h <<_ACEOF
  1928. #define PACKAGE_NAME "$PACKAGE_NAME"
  1929. _ACEOF
  1930. cat >>confdefs.h <<_ACEOF
  1931. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1932. _ACEOF
  1933. cat >>confdefs.h <<_ACEOF
  1934. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1935. _ACEOF
  1936. cat >>confdefs.h <<_ACEOF
  1937. #define PACKAGE_STRING "$PACKAGE_STRING"
  1938. _ACEOF
  1939. cat >>confdefs.h <<_ACEOF
  1940. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1941. _ACEOF
  1942. cat >>confdefs.h <<_ACEOF
  1943. #define PACKAGE_URL "$PACKAGE_URL"
  1944. _ACEOF
  1945. # Let the site file select an alternate cache file if it wants to.
  1946. # Prefer an explicitly selected file to automatically selected ones.
  1947. ac_site_file1=NONE
  1948. ac_site_file2=NONE
  1949. if test -n "$CONFIG_SITE"; then
  1950. ac_site_file1=$CONFIG_SITE
  1951. elif test "x$prefix" != xNONE; then
  1952. ac_site_file1=$prefix/share/config.site
  1953. ac_site_file2=$prefix/etc/config.site
  1954. else
  1955. ac_site_file1=$ac_default_prefix/share/config.site
  1956. ac_site_file2=$ac_default_prefix/etc/config.site
  1957. fi
  1958. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1959. do
  1960. test "x$ac_site_file" = xNONE && continue
  1961. if test -r "$ac_site_file"; then
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1963. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1964. sed 's/^/| /' "$ac_site_file" >&5
  1965. . "$ac_site_file"
  1966. fi
  1967. done
  1968. if test -r "$cache_file"; then
  1969. # Some versions of bash will fail to source /dev/null (special
  1970. # files actually), so we avoid doing that.
  1971. if test -f "$cache_file"; then
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1973. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1974. case $cache_file in
  1975. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1976. *) . "./$cache_file";;
  1977. esac
  1978. fi
  1979. else
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1981. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1982. >$cache_file
  1983. fi
  1984. # Check that the precious variables saved in the cache have kept the same
  1985. # value.
  1986. ac_cache_corrupted=false
  1987. for ac_var in $ac_precious_vars; do
  1988. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1989. eval ac_new_set=\$ac_env_${ac_var}_set
  1990. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1991. eval ac_new_val=\$ac_env_${ac_var}_value
  1992. case $ac_old_set,$ac_new_set in
  1993. set,)
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1995. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1996. ac_cache_corrupted=: ;;
  1997. ,set)
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1999. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2000. ac_cache_corrupted=: ;;
  2001. ,);;
  2002. *)
  2003. if test "x$ac_old_val" != "x$ac_new_val"; then
  2004. # differences in whitespace do not lead to failure.
  2005. ac_old_val_w=`echo x $ac_old_val`
  2006. ac_new_val_w=`echo x $ac_new_val`
  2007. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2009. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2010. ac_cache_corrupted=:
  2011. else
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2013. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2014. eval $ac_var=\$ac_old_val
  2015. fi
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2017. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2019. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2020. fi;;
  2021. esac
  2022. # Pass precious variables to config.status.
  2023. if test "$ac_new_set" = set; then
  2024. case $ac_new_val in
  2025. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2026. *) ac_arg=$ac_var=$ac_new_val ;;
  2027. esac
  2028. case " $ac_configure_args " in
  2029. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2030. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2031. esac
  2032. fi
  2033. done
  2034. if $ac_cache_corrupted; then
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2038. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2039. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2040. fi
  2041. ## -------------------- ##
  2042. ## Main body of script. ##
  2043. ## -------------------- ##
  2044. ac_ext=c
  2045. ac_cpp='$CPP $CPPFLAGS'
  2046. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2047. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2048. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2049. ac_aux_dir=
  2050. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2051. for ac_t in install-sh install.sh shtool; do
  2052. if test -f "$ac_dir/$ac_t"; then
  2053. ac_aux_dir=$ac_dir
  2054. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2055. break 2
  2056. fi
  2057. done
  2058. done
  2059. if test -z "$ac_aux_dir"; then
  2060. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2061. fi
  2062. # These three variables are undocumented and unsupported,
  2063. # and are intended to be withdrawn in a future Autoconf release.
  2064. # They can cause serious problems if a builder's source tree is in a directory
  2065. # whose full name contains unusual characters.
  2066. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2067. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2068. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2069. # Make sure we can run config.sub.
  2070. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2071. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2073. $as_echo_n "checking build system type... " >&6; }
  2074. if test "${ac_cv_build+set}" = set; then :
  2075. $as_echo_n "(cached) " >&6
  2076. else
  2077. ac_build_alias=$build_alias
  2078. test "x$ac_build_alias" = x &&
  2079. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2080. test "x$ac_build_alias" = x &&
  2081. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2082. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2083. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2084. fi
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2086. $as_echo "$ac_cv_build" >&6; }
  2087. case $ac_cv_build in
  2088. *-*-*) ;;
  2089. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2090. esac
  2091. build=$ac_cv_build
  2092. ac_save_IFS=$IFS; IFS='-'
  2093. set x $ac_cv_build
  2094. shift
  2095. build_cpu=$1
  2096. build_vendor=$2
  2097. shift; shift
  2098. # Remember, the first character of IFS is used to create $*,
  2099. # except with old shells:
  2100. build_os=$*
  2101. IFS=$ac_save_IFS
  2102. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2104. $as_echo_n "checking host system type... " >&6; }
  2105. if test "${ac_cv_host+set}" = set; then :
  2106. $as_echo_n "(cached) " >&6
  2107. else
  2108. if test "x$host_alias" = x; then
  2109. ac_cv_host=$ac_cv_build
  2110. else
  2111. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2112. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2113. fi
  2114. fi
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2116. $as_echo "$ac_cv_host" >&6; }
  2117. case $ac_cv_host in
  2118. *-*-*) ;;
  2119. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2120. esac
  2121. host=$ac_cv_host
  2122. ac_save_IFS=$IFS; IFS='-'
  2123. set x $ac_cv_host
  2124. shift
  2125. host_cpu=$1
  2126. host_vendor=$2
  2127. shift; shift
  2128. # Remember, the first character of IFS is used to create $*,
  2129. # except with old shells:
  2130. host_os=$*
  2131. IFS=$ac_save_IFS
  2132. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2134. $as_echo_n "checking target system type... " >&6; }
  2135. if test "${ac_cv_target+set}" = set; then :
  2136. $as_echo_n "(cached) " >&6
  2137. else
  2138. if test "x$target_alias" = x; then
  2139. ac_cv_target=$ac_cv_host
  2140. else
  2141. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2142. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2143. fi
  2144. fi
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2146. $as_echo "$ac_cv_target" >&6; }
  2147. case $ac_cv_target in
  2148. *-*-*) ;;
  2149. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2150. esac
  2151. target=$ac_cv_target
  2152. ac_save_IFS=$IFS; IFS='-'
  2153. set x $ac_cv_target
  2154. shift
  2155. target_cpu=$1
  2156. target_vendor=$2
  2157. shift; shift
  2158. # Remember, the first character of IFS is used to create $*,
  2159. # except with old shells:
  2160. target_os=$*
  2161. IFS=$ac_save_IFS
  2162. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2163. # The aliases save the names the user supplied, while $host etc.
  2164. # will get canonicalized.
  2165. test -n "$target_alias" &&
  2166. test "$program_prefix$program_suffix$program_transform_name" = \
  2167. NONENONEs,x,x, &&
  2168. program_prefix=${target_alias}-
  2169. ac_ext=c
  2170. ac_cpp='$CPP $CPPFLAGS'
  2171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2174. if test -n "$ac_tool_prefix"; then
  2175. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2176. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2178. $as_echo_n "checking for $ac_word... " >&6; }
  2179. if test "${ac_cv_prog_CC+set}" = set; then :
  2180. $as_echo_n "(cached) " >&6
  2181. else
  2182. if test -n "$CC"; then
  2183. ac_cv_prog_CC="$CC" # Let the user override the test.
  2184. else
  2185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2186. for as_dir in $PATH
  2187. do
  2188. IFS=$as_save_IFS
  2189. test -z "$as_dir" && as_dir=.
  2190. for ac_exec_ext in '' $ac_executable_extensions; do
  2191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2192. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2194. break 2
  2195. fi
  2196. done
  2197. done
  2198. IFS=$as_save_IFS
  2199. fi
  2200. fi
  2201. CC=$ac_cv_prog_CC
  2202. if test -n "$CC"; then
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2204. $as_echo "$CC" >&6; }
  2205. else
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2207. $as_echo "no" >&6; }
  2208. fi
  2209. fi
  2210. if test -z "$ac_cv_prog_CC"; then
  2211. ac_ct_CC=$CC
  2212. # Extract the first word of "gcc", so it can be a program name with args.
  2213. set dummy gcc; ac_word=$2
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2215. $as_echo_n "checking for $ac_word... " >&6; }
  2216. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2217. $as_echo_n "(cached) " >&6
  2218. else
  2219. if test -n "$ac_ct_CC"; then
  2220. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2221. else
  2222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2223. for as_dir in $PATH
  2224. do
  2225. IFS=$as_save_IFS
  2226. test -z "$as_dir" && as_dir=.
  2227. for ac_exec_ext in '' $ac_executable_extensions; do
  2228. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2229. ac_cv_prog_ac_ct_CC="gcc"
  2230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2231. break 2
  2232. fi
  2233. done
  2234. done
  2235. IFS=$as_save_IFS
  2236. fi
  2237. fi
  2238. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2239. if test -n "$ac_ct_CC"; then
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2241. $as_echo "$ac_ct_CC" >&6; }
  2242. else
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2244. $as_echo "no" >&6; }
  2245. fi
  2246. if test "x$ac_ct_CC" = x; then
  2247. CC=""
  2248. else
  2249. case $cross_compiling:$ac_tool_warned in
  2250. yes:)
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2253. ac_tool_warned=yes ;;
  2254. esac
  2255. CC=$ac_ct_CC
  2256. fi
  2257. else
  2258. CC="$ac_cv_prog_CC"
  2259. fi
  2260. if test -z "$CC"; then
  2261. if test -n "$ac_tool_prefix"; then
  2262. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2263. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2265. $as_echo_n "checking for $ac_word... " >&6; }
  2266. if test "${ac_cv_prog_CC+set}" = set; then :
  2267. $as_echo_n "(cached) " >&6
  2268. else
  2269. if test -n "$CC"; then
  2270. ac_cv_prog_CC="$CC" # Let the user override the test.
  2271. else
  2272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2273. for as_dir in $PATH
  2274. do
  2275. IFS=$as_save_IFS
  2276. test -z "$as_dir" && as_dir=.
  2277. for ac_exec_ext in '' $ac_executable_extensions; do
  2278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2279. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2281. break 2
  2282. fi
  2283. done
  2284. done
  2285. IFS=$as_save_IFS
  2286. fi
  2287. fi
  2288. CC=$ac_cv_prog_CC
  2289. if test -n "$CC"; then
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2291. $as_echo "$CC" >&6; }
  2292. else
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2294. $as_echo "no" >&6; }
  2295. fi
  2296. fi
  2297. fi
  2298. if test -z "$CC"; then
  2299. # Extract the first word of "cc", so it can be a program name with args.
  2300. set dummy cc; ac_word=$2
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2302. $as_echo_n "checking for $ac_word... " >&6; }
  2303. if test "${ac_cv_prog_CC+set}" = set; then :
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. if test -n "$CC"; then
  2307. ac_cv_prog_CC="$CC" # Let the user override the test.
  2308. else
  2309. ac_prog_rejected=no
  2310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2311. for as_dir in $PATH
  2312. do
  2313. IFS=$as_save_IFS
  2314. test -z "$as_dir" && as_dir=.
  2315. for ac_exec_ext in '' $ac_executable_extensions; do
  2316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2317. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2318. ac_prog_rejected=yes
  2319. continue
  2320. fi
  2321. ac_cv_prog_CC="cc"
  2322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2323. break 2
  2324. fi
  2325. done
  2326. done
  2327. IFS=$as_save_IFS
  2328. if test $ac_prog_rejected = yes; then
  2329. # We found a bogon in the path, so make sure we never use it.
  2330. set dummy $ac_cv_prog_CC
  2331. shift
  2332. if test $# != 0; then
  2333. # We chose a different compiler from the bogus one.
  2334. # However, it has the same basename, so the bogon will be chosen
  2335. # first if we set CC to just the basename; use the full file name.
  2336. shift
  2337. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2338. fi
  2339. fi
  2340. fi
  2341. fi
  2342. CC=$ac_cv_prog_CC
  2343. if test -n "$CC"; then
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2345. $as_echo "$CC" >&6; }
  2346. else
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2348. $as_echo "no" >&6; }
  2349. fi
  2350. fi
  2351. if test -z "$CC"; then
  2352. if test -n "$ac_tool_prefix"; then
  2353. for ac_prog in cl.exe
  2354. do
  2355. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2356. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2358. $as_echo_n "checking for $ac_word... " >&6; }
  2359. if test "${ac_cv_prog_CC+set}" = set; then :
  2360. $as_echo_n "(cached) " >&6
  2361. else
  2362. if test -n "$CC"; then
  2363. ac_cv_prog_CC="$CC" # Let the user override the test.
  2364. else
  2365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2366. for as_dir in $PATH
  2367. do
  2368. IFS=$as_save_IFS
  2369. test -z "$as_dir" && as_dir=.
  2370. for ac_exec_ext in '' $ac_executable_extensions; do
  2371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2372. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2374. break 2
  2375. fi
  2376. done
  2377. done
  2378. IFS=$as_save_IFS
  2379. fi
  2380. fi
  2381. CC=$ac_cv_prog_CC
  2382. if test -n "$CC"; then
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2384. $as_echo "$CC" >&6; }
  2385. else
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2387. $as_echo "no" >&6; }
  2388. fi
  2389. test -n "$CC" && break
  2390. done
  2391. fi
  2392. if test -z "$CC"; then
  2393. ac_ct_CC=$CC
  2394. for ac_prog in cl.exe
  2395. do
  2396. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2397. set dummy $ac_prog; ac_word=$2
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2399. $as_echo_n "checking for $ac_word... " >&6; }
  2400. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2401. $as_echo_n "(cached) " >&6
  2402. else
  2403. if test -n "$ac_ct_CC"; then
  2404. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2405. else
  2406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2407. for as_dir in $PATH
  2408. do
  2409. IFS=$as_save_IFS
  2410. test -z "$as_dir" && as_dir=.
  2411. for ac_exec_ext in '' $ac_executable_extensions; do
  2412. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2413. ac_cv_prog_ac_ct_CC="$ac_prog"
  2414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2415. break 2
  2416. fi
  2417. done
  2418. done
  2419. IFS=$as_save_IFS
  2420. fi
  2421. fi
  2422. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2423. if test -n "$ac_ct_CC"; then
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2425. $as_echo "$ac_ct_CC" >&6; }
  2426. else
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2428. $as_echo "no" >&6; }
  2429. fi
  2430. test -n "$ac_ct_CC" && break
  2431. done
  2432. if test "x$ac_ct_CC" = x; then
  2433. CC=""
  2434. else
  2435. case $cross_compiling:$ac_tool_warned in
  2436. yes:)
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2438. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2439. ac_tool_warned=yes ;;
  2440. esac
  2441. CC=$ac_ct_CC
  2442. fi
  2443. fi
  2444. fi
  2445. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2446. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2447. as_fn_error "no acceptable C compiler found in \$PATH
  2448. See \`config.log' for more details." "$LINENO" 5; }
  2449. # Provide some information about the compiler.
  2450. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2451. set X $ac_compile
  2452. ac_compiler=$2
  2453. for ac_option in --version -v -V -qversion; do
  2454. { { ac_try="$ac_compiler $ac_option >&5"
  2455. case "(($ac_try" in
  2456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2457. *) ac_try_echo=$ac_try;;
  2458. esac
  2459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2460. $as_echo "$ac_try_echo"; } >&5
  2461. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2462. ac_status=$?
  2463. if test -s conftest.err; then
  2464. sed '10a\
  2465. ... rest of stderr output deleted ...
  2466. 10q' conftest.err >conftest.er1
  2467. cat conftest.er1 >&5
  2468. rm -f conftest.er1 conftest.err
  2469. fi
  2470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2471. test $ac_status = 0; }
  2472. done
  2473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2474. /* end confdefs.h. */
  2475. int
  2476. main ()
  2477. {
  2478. ;
  2479. return 0;
  2480. }
  2481. _ACEOF
  2482. ac_clean_files_save=$ac_clean_files
  2483. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2484. # Try to create an executable without -o first, disregard a.out.
  2485. # It will help us diagnose broken compilers, and finding out an intuition
  2486. # of exeext.
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2488. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2489. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2490. # The possible output files:
  2491. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2492. ac_rmfiles=
  2493. for ac_file in $ac_files
  2494. do
  2495. case $ac_file in
  2496. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2497. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2498. esac
  2499. done
  2500. rm -f $ac_rmfiles
  2501. if { { ac_try="$ac_link_default"
  2502. case "(($ac_try" in
  2503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2504. *) ac_try_echo=$ac_try;;
  2505. esac
  2506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2507. $as_echo "$ac_try_echo"; } >&5
  2508. (eval "$ac_link_default") 2>&5
  2509. ac_status=$?
  2510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2511. test $ac_status = 0; }; then :
  2512. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2513. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2514. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2515. # so that the user can short-circuit this test for compilers unknown to
  2516. # Autoconf.
  2517. for ac_file in $ac_files ''
  2518. do
  2519. test -f "$ac_file" || continue
  2520. case $ac_file in
  2521. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2522. ;;
  2523. [ab].out )
  2524. # We found the default executable, but exeext='' is most
  2525. # certainly right.
  2526. break;;
  2527. *.* )
  2528. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2529. then :; else
  2530. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2531. fi
  2532. # We set ac_cv_exeext here because the later test for it is not
  2533. # safe: cross compilers may not add the suffix if given an `-o'
  2534. # argument, so we may need to know it at that point already.
  2535. # Even if this section looks crufty: it has the advantage of
  2536. # actually working.
  2537. break;;
  2538. * )
  2539. break;;
  2540. esac
  2541. done
  2542. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2543. else
  2544. ac_file=''
  2545. fi
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2547. $as_echo "$ac_file" >&6; }
  2548. if test -z "$ac_file"; then :
  2549. $as_echo "$as_me: failed program was:" >&5
  2550. sed 's/^/| /' conftest.$ac_ext >&5
  2551. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2552. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2553. { as_fn_set_status 77
  2554. as_fn_error "C compiler cannot create executables
  2555. See \`config.log' for more details." "$LINENO" 5; }; }
  2556. fi
  2557. ac_exeext=$ac_cv_exeext
  2558. # Check that the compiler produces executables we can run. If not, either
  2559. # the compiler is broken, or we cross compile.
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2561. $as_echo_n "checking whether the C compiler works... " >&6; }
  2562. # If not cross compiling, check that we can run a simple program.
  2563. if test "$cross_compiling" != yes; then
  2564. if { ac_try='./$ac_file'
  2565. { { case "(($ac_try" in
  2566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2567. *) ac_try_echo=$ac_try;;
  2568. esac
  2569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2570. $as_echo "$ac_try_echo"; } >&5
  2571. (eval "$ac_try") 2>&5
  2572. ac_status=$?
  2573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2574. test $ac_status = 0; }; }; then
  2575. cross_compiling=no
  2576. else
  2577. if test "$cross_compiling" = maybe; then
  2578. cross_compiling=yes
  2579. else
  2580. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2581. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2582. as_fn_error "cannot run C compiled programs.
  2583. If you meant to cross compile, use \`--host'.
  2584. See \`config.log' for more details." "$LINENO" 5; }
  2585. fi
  2586. fi
  2587. fi
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2589. $as_echo "yes" >&6; }
  2590. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2591. ac_clean_files=$ac_clean_files_save
  2592. # Check that the compiler produces executables we can run. If not, either
  2593. # the compiler is broken, or we cross compile.
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2595. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2597. $as_echo "$cross_compiling" >&6; }
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2599. $as_echo_n "checking for suffix of executables... " >&6; }
  2600. if { { ac_try="$ac_link"
  2601. case "(($ac_try" in
  2602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2603. *) ac_try_echo=$ac_try;;
  2604. esac
  2605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2606. $as_echo "$ac_try_echo"; } >&5
  2607. (eval "$ac_link") 2>&5
  2608. ac_status=$?
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2610. test $ac_status = 0; }; then :
  2611. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2612. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2613. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2614. # `rm'.
  2615. for ac_file in conftest.exe conftest conftest.*; do
  2616. test -f "$ac_file" || continue
  2617. case $ac_file in
  2618. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2619. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2620. break;;
  2621. * ) break;;
  2622. esac
  2623. done
  2624. else
  2625. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2626. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2627. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2628. See \`config.log' for more details." "$LINENO" 5; }
  2629. fi
  2630. rm -f conftest$ac_cv_exeext
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2632. $as_echo "$ac_cv_exeext" >&6; }
  2633. rm -f conftest.$ac_ext
  2634. EXEEXT=$ac_cv_exeext
  2635. ac_exeext=$EXEEXT
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2637. $as_echo_n "checking for suffix of object files... " >&6; }
  2638. if test "${ac_cv_objext+set}" = set; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2642. /* end confdefs.h. */
  2643. int
  2644. main ()
  2645. {
  2646. ;
  2647. return 0;
  2648. }
  2649. _ACEOF
  2650. rm -f conftest.o conftest.obj
  2651. if { { ac_try="$ac_compile"
  2652. case "(($ac_try" in
  2653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2654. *) ac_try_echo=$ac_try;;
  2655. esac
  2656. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2657. $as_echo "$ac_try_echo"; } >&5
  2658. (eval "$ac_compile") 2>&5
  2659. ac_status=$?
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2661. test $ac_status = 0; }; then :
  2662. for ac_file in conftest.o conftest.obj conftest.*; do
  2663. test -f "$ac_file" || continue;
  2664. case $ac_file in
  2665. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2666. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2667. break;;
  2668. esac
  2669. done
  2670. else
  2671. $as_echo "$as_me: failed program was:" >&5
  2672. sed 's/^/| /' conftest.$ac_ext >&5
  2673. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2674. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2675. as_fn_error "cannot compute suffix of object files: cannot compile
  2676. See \`config.log' for more details." "$LINENO" 5; }
  2677. fi
  2678. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2679. fi
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2681. $as_echo "$ac_cv_objext" >&6; }
  2682. OBJEXT=$ac_cv_objext
  2683. ac_objext=$OBJEXT
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2685. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2686. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2690. /* end confdefs.h. */
  2691. int
  2692. main ()
  2693. {
  2694. #ifndef __GNUC__
  2695. choke me
  2696. #endif
  2697. ;
  2698. return 0;
  2699. }
  2700. _ACEOF
  2701. if ac_fn_c_try_compile "$LINENO"; then :
  2702. ac_compiler_gnu=yes
  2703. else
  2704. ac_compiler_gnu=no
  2705. fi
  2706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2707. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2708. fi
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2710. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2711. if test $ac_compiler_gnu = yes; then
  2712. GCC=yes
  2713. else
  2714. GCC=
  2715. fi
  2716. ac_test_CFLAGS=${CFLAGS+set}
  2717. ac_save_CFLAGS=$CFLAGS
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2719. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2720. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2721. $as_echo_n "(cached) " >&6
  2722. else
  2723. ac_save_c_werror_flag=$ac_c_werror_flag
  2724. ac_c_werror_flag=yes
  2725. ac_cv_prog_cc_g=no
  2726. CFLAGS="-g"
  2727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2728. /* end confdefs.h. */
  2729. int
  2730. main ()
  2731. {
  2732. ;
  2733. return 0;
  2734. }
  2735. _ACEOF
  2736. if ac_fn_c_try_compile "$LINENO"; then :
  2737. ac_cv_prog_cc_g=yes
  2738. else
  2739. CFLAGS=""
  2740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2741. /* end confdefs.h. */
  2742. int
  2743. main ()
  2744. {
  2745. ;
  2746. return 0;
  2747. }
  2748. _ACEOF
  2749. if ac_fn_c_try_compile "$LINENO"; then :
  2750. else
  2751. ac_c_werror_flag=$ac_save_c_werror_flag
  2752. CFLAGS="-g"
  2753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2754. /* end confdefs.h. */
  2755. int
  2756. main ()
  2757. {
  2758. ;
  2759. return 0;
  2760. }
  2761. _ACEOF
  2762. if ac_fn_c_try_compile "$LINENO"; then :
  2763. ac_cv_prog_cc_g=yes
  2764. fi
  2765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2766. fi
  2767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2768. fi
  2769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2770. ac_c_werror_flag=$ac_save_c_werror_flag
  2771. fi
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2773. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2774. if test "$ac_test_CFLAGS" = set; then
  2775. CFLAGS=$ac_save_CFLAGS
  2776. elif test $ac_cv_prog_cc_g = yes; then
  2777. if test "$GCC" = yes; then
  2778. CFLAGS="-g -O2"
  2779. else
  2780. CFLAGS="-g"
  2781. fi
  2782. else
  2783. if test "$GCC" = yes; then
  2784. CFLAGS="-O2"
  2785. else
  2786. CFLAGS=
  2787. fi
  2788. fi
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2790. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2791. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. ac_cv_prog_cc_c89=no
  2795. ac_save_CC=$CC
  2796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2797. /* end confdefs.h. */
  2798. #include <stdarg.h>
  2799. #include <stdio.h>
  2800. #include <sys/types.h>
  2801. #include <sys/stat.h>
  2802. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2803. struct buf { int x; };
  2804. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2805. static char *e (p, i)
  2806. char **p;
  2807. int i;
  2808. {
  2809. return p[i];
  2810. }
  2811. static char *f (char * (*g) (char **, int), char **p, ...)
  2812. {
  2813. char *s;
  2814. va_list v;
  2815. va_start (v,p);
  2816. s = g (p, va_arg (v,int));
  2817. va_end (v);
  2818. return s;
  2819. }
  2820. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2821. function prototypes and stuff, but not '\xHH' hex character constants.
  2822. These don't provoke an error unfortunately, instead are silently treated
  2823. as 'x'. The following induces an error, until -std is added to get
  2824. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2825. array size at least. It's necessary to write '\x00'==0 to get something
  2826. that's true only with -std. */
  2827. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2828. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2829. inside strings and character constants. */
  2830. #define FOO(x) 'x'
  2831. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2832. int test (int i, double x);
  2833. struct s1 {int (*f) (int a);};
  2834. struct s2 {int (*f) (double a);};
  2835. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2836. int argc;
  2837. char **argv;
  2838. int
  2839. main ()
  2840. {
  2841. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2842. ;
  2843. return 0;
  2844. }
  2845. _ACEOF
  2846. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2847. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2848. do
  2849. CC="$ac_save_CC $ac_arg"
  2850. if ac_fn_c_try_compile "$LINENO"; then :
  2851. ac_cv_prog_cc_c89=$ac_arg
  2852. fi
  2853. rm -f core conftest.err conftest.$ac_objext
  2854. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2855. done
  2856. rm -f conftest.$ac_ext
  2857. CC=$ac_save_CC
  2858. fi
  2859. # AC_CACHE_VAL
  2860. case "x$ac_cv_prog_cc_c89" in
  2861. x)
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2863. $as_echo "none needed" >&6; } ;;
  2864. xno)
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2866. $as_echo "unsupported" >&6; } ;;
  2867. *)
  2868. CC="$CC $ac_cv_prog_cc_c89"
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2870. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2871. esac
  2872. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2873. fi
  2874. ac_ext=c
  2875. ac_cpp='$CPP $CPPFLAGS'
  2876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  2880. $as_echo_n "checking for library containing strerror... " >&6; }
  2881. if test "${ac_cv_search_strerror+set}" = set; then :
  2882. $as_echo_n "(cached) " >&6
  2883. else
  2884. ac_func_search_save_LIBS=$LIBS
  2885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2886. /* end confdefs.h. */
  2887. /* Override any GCC internal prototype to avoid an error.
  2888. Use char because int might match the return type of a GCC
  2889. builtin and then its argument prototype would still apply. */
  2890. #ifdef __cplusplus
  2891. extern "C"
  2892. #endif
  2893. char strerror ();
  2894. int
  2895. main ()
  2896. {
  2897. return strerror ();
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. for ac_lib in '' cposix; do
  2903. if test -z "$ac_lib"; then
  2904. ac_res="none required"
  2905. else
  2906. ac_res=-l$ac_lib
  2907. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2908. fi
  2909. if ac_fn_c_try_link "$LINENO"; then :
  2910. ac_cv_search_strerror=$ac_res
  2911. fi
  2912. rm -f core conftest.err conftest.$ac_objext \
  2913. conftest$ac_exeext
  2914. if test "${ac_cv_search_strerror+set}" = set; then :
  2915. break
  2916. fi
  2917. done
  2918. if test "${ac_cv_search_strerror+set}" = set; then :
  2919. else
  2920. ac_cv_search_strerror=no
  2921. fi
  2922. rm conftest.$ac_ext
  2923. LIBS=$ac_func_search_save_LIBS
  2924. fi
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  2926. $as_echo "$ac_cv_search_strerror" >&6; }
  2927. ac_res=$ac_cv_search_strerror
  2928. if test "$ac_res" != no; then :
  2929. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2930. fi
  2931. am__api_version='1.11'
  2932. # Find a good install program. We prefer a C program (faster),
  2933. # so one script is as good as another. But avoid the broken or
  2934. # incompatible versions:
  2935. # SysV /etc/install, /usr/sbin/install
  2936. # SunOS /usr/etc/install
  2937. # IRIX /sbin/install
  2938. # AIX /bin/install
  2939. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2940. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2941. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2942. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2943. # OS/2's system install, which has a completely different semantic
  2944. # ./install, which can be erroneously created by make from ./install.sh.
  2945. # Reject install programs that cannot install multiple files.
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2947. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2948. if test -z "$INSTALL"; then
  2949. if test "${ac_cv_path_install+set}" = set; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2953. for as_dir in $PATH
  2954. do
  2955. IFS=$as_save_IFS
  2956. test -z "$as_dir" && as_dir=.
  2957. # Account for people who put trailing slashes in PATH elements.
  2958. case $as_dir/ in #((
  2959. ./ | .// | /[cC]/* | \
  2960. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2961. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2962. /usr/ucb/* ) ;;
  2963. *)
  2964. # OSF1 and SCO ODT 3.0 have their own names for install.
  2965. # Don't use installbsd from OSF since it installs stuff as root
  2966. # by default.
  2967. for ac_prog in ginstall scoinst install; do
  2968. for ac_exec_ext in '' $ac_executable_extensions; do
  2969. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2970. if test $ac_prog = install &&
  2971. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2972. # AIX install. It has an incompatible calling convention.
  2973. :
  2974. elif test $ac_prog = install &&
  2975. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2976. # program-specific install script used by HP pwplus--don't use.
  2977. :
  2978. else
  2979. rm -rf conftest.one conftest.two conftest.dir
  2980. echo one > conftest.one
  2981. echo two > conftest.two
  2982. mkdir conftest.dir
  2983. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2984. test -s conftest.one && test -s conftest.two &&
  2985. test -s conftest.dir/conftest.one &&
  2986. test -s conftest.dir/conftest.two
  2987. then
  2988. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2989. break 3
  2990. fi
  2991. fi
  2992. fi
  2993. done
  2994. done
  2995. ;;
  2996. esac
  2997. done
  2998. IFS=$as_save_IFS
  2999. rm -rf conftest.one conftest.two conftest.dir
  3000. fi
  3001. if test "${ac_cv_path_install+set}" = set; then
  3002. INSTALL=$ac_cv_path_install
  3003. else
  3004. # As a last resort, use the slow shell script. Don't cache a
  3005. # value for INSTALL within a source directory, because that will
  3006. # break other packages using the cache if that directory is
  3007. # removed, or if the value is a relative name.
  3008. INSTALL=$ac_install_sh
  3009. fi
  3010. fi
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3012. $as_echo "$INSTALL" >&6; }
  3013. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3014. # It thinks the first close brace ends the variable substitution.
  3015. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3016. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3017. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3019. $as_echo_n "checking whether build environment is sane... " >&6; }
  3020. # Just in case
  3021. sleep 1
  3022. echo timestamp > conftest.file
  3023. # Reject unsafe characters in $srcdir or the absolute working directory
  3024. # name. Accept space and tab only in the latter.
  3025. am_lf='
  3026. '
  3027. case `pwd` in
  3028. *[\\\"\#\$\&\'\`$am_lf]*)
  3029. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3030. esac
  3031. case $srcdir in
  3032. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3033. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3034. esac
  3035. # Do `set' in a subshell so we don't clobber the current shell's
  3036. # arguments. Must try -L first in case configure is actually a
  3037. # symlink; some systems play weird games with the mod time of symlinks
  3038. # (eg FreeBSD returns the mod time of the symlink's containing
  3039. # directory).
  3040. if (
  3041. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3042. if test "$*" = "X"; then
  3043. # -L didn't work.
  3044. set X `ls -t "$srcdir/configure" conftest.file`
  3045. fi
  3046. rm -f conftest.file
  3047. if test "$*" != "X $srcdir/configure conftest.file" \
  3048. && test "$*" != "X conftest.file $srcdir/configure"; then
  3049. # If neither matched, then we have a broken ls. This can happen
  3050. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3051. # broken ls alias from the environment. This has actually
  3052. # happened. Such a system could not be considered "sane".
  3053. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3054. alias in your environment" "$LINENO" 5
  3055. fi
  3056. test "$2" = conftest.file
  3057. )
  3058. then
  3059. # Ok.
  3060. :
  3061. else
  3062. as_fn_error "newly created file is older than distributed files!
  3063. Check your system clock" "$LINENO" 5
  3064. fi
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3066. $as_echo "yes" >&6; }
  3067. test "$program_prefix" != NONE &&
  3068. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3069. # Use a double $ so make ignores it.
  3070. test "$program_suffix" != NONE &&
  3071. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3072. # Double any \ or $.
  3073. # By default was `s,x,x', remove it if useless.
  3074. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3075. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3076. # expand $ac_aux_dir to an absolute path
  3077. am_aux_dir=`cd $ac_aux_dir && pwd`
  3078. if test x"${MISSING+set}" != xset; then
  3079. case $am_aux_dir in
  3080. *\ * | *\ *)
  3081. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3082. *)
  3083. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3084. esac
  3085. fi
  3086. # Use eval to expand $SHELL
  3087. if eval "$MISSING --run true"; then
  3088. am_missing_run="$MISSING --run "
  3089. else
  3090. am_missing_run=
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3092. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3093. fi
  3094. if test x"${install_sh}" != xset; then
  3095. case $am_aux_dir in
  3096. *\ * | *\ *)
  3097. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3098. *)
  3099. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3100. esac
  3101. fi
  3102. # Installed binaries are usually stripped using `strip' when the user
  3103. # run `make install-strip'. However `strip' might not be the right
  3104. # tool to use in cross-compilation environments, therefore Automake
  3105. # will honor the `STRIP' environment variable to overrule this program.
  3106. if test "$cross_compiling" != no; then
  3107. if test -n "$ac_tool_prefix"; then
  3108. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3109. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3111. $as_echo_n "checking for $ac_word... " >&6; }
  3112. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3113. $as_echo_n "(cached) " >&6
  3114. else
  3115. if test -n "$STRIP"; then
  3116. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3117. else
  3118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3119. for as_dir in $PATH
  3120. do
  3121. IFS=$as_save_IFS
  3122. test -z "$as_dir" && as_dir=.
  3123. for ac_exec_ext in '' $ac_executable_extensions; do
  3124. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3125. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3127. break 2
  3128. fi
  3129. done
  3130. done
  3131. IFS=$as_save_IFS
  3132. fi
  3133. fi
  3134. STRIP=$ac_cv_prog_STRIP
  3135. if test -n "$STRIP"; then
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3137. $as_echo "$STRIP" >&6; }
  3138. else
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3140. $as_echo "no" >&6; }
  3141. fi
  3142. fi
  3143. if test -z "$ac_cv_prog_STRIP"; then
  3144. ac_ct_STRIP=$STRIP
  3145. # Extract the first word of "strip", so it can be a program name with args.
  3146. set dummy strip; ac_word=$2
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3148. $as_echo_n "checking for $ac_word... " >&6; }
  3149. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3150. $as_echo_n "(cached) " >&6
  3151. else
  3152. if test -n "$ac_ct_STRIP"; then
  3153. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3154. else
  3155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3156. for as_dir in $PATH
  3157. do
  3158. IFS=$as_save_IFS
  3159. test -z "$as_dir" && as_dir=.
  3160. for ac_exec_ext in '' $ac_executable_extensions; do
  3161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3162. ac_cv_prog_ac_ct_STRIP="strip"
  3163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3164. break 2
  3165. fi
  3166. done
  3167. done
  3168. IFS=$as_save_IFS
  3169. fi
  3170. fi
  3171. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3172. if test -n "$ac_ct_STRIP"; then
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3174. $as_echo "$ac_ct_STRIP" >&6; }
  3175. else
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3177. $as_echo "no" >&6; }
  3178. fi
  3179. if test "x$ac_ct_STRIP" = x; then
  3180. STRIP=":"
  3181. else
  3182. case $cross_compiling:$ac_tool_warned in
  3183. yes:)
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3185. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3186. ac_tool_warned=yes ;;
  3187. esac
  3188. STRIP=$ac_ct_STRIP
  3189. fi
  3190. else
  3191. STRIP="$ac_cv_prog_STRIP"
  3192. fi
  3193. fi
  3194. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3196. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3197. if test -z "$MKDIR_P"; then
  3198. if test "${ac_cv_path_mkdir+set}" = set; then :
  3199. $as_echo_n "(cached) " >&6
  3200. else
  3201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3202. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3203. do
  3204. IFS=$as_save_IFS
  3205. test -z "$as_dir" && as_dir=.
  3206. for ac_prog in mkdir gmkdir; do
  3207. for ac_exec_ext in '' $ac_executable_extensions; do
  3208. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3209. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3210. 'mkdir (GNU coreutils) '* | \
  3211. 'mkdir (coreutils) '* | \
  3212. 'mkdir (fileutils) '4.1*)
  3213. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3214. break 3;;
  3215. esac
  3216. done
  3217. done
  3218. done
  3219. IFS=$as_save_IFS
  3220. fi
  3221. if test "${ac_cv_path_mkdir+set}" = set; then
  3222. MKDIR_P="$ac_cv_path_mkdir -p"
  3223. else
  3224. # As a last resort, use the slow shell script. Don't cache a
  3225. # value for MKDIR_P within a source directory, because that will
  3226. # break other packages using the cache if that directory is
  3227. # removed, or if the value is a relative name.
  3228. test -d ./--version && rmdir ./--version
  3229. MKDIR_P="$ac_install_sh -d"
  3230. fi
  3231. fi
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3233. $as_echo "$MKDIR_P" >&6; }
  3234. mkdir_p="$MKDIR_P"
  3235. case $mkdir_p in
  3236. [\\/$]* | ?:[\\/]*) ;;
  3237. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3238. esac
  3239. for ac_prog in gawk mawk nawk awk
  3240. do
  3241. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3242. set dummy $ac_prog; ac_word=$2
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3244. $as_echo_n "checking for $ac_word... " >&6; }
  3245. if test "${ac_cv_prog_AWK+set}" = set; then :
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. if test -n "$AWK"; then
  3249. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3250. else
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3258. ac_cv_prog_AWK="$ac_prog"
  3259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3260. break 2
  3261. fi
  3262. done
  3263. done
  3264. IFS=$as_save_IFS
  3265. fi
  3266. fi
  3267. AWK=$ac_cv_prog_AWK
  3268. if test -n "$AWK"; then
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3270. $as_echo "$AWK" >&6; }
  3271. else
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3273. $as_echo "no" >&6; }
  3274. fi
  3275. test -n "$AWK" && break
  3276. done
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3278. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3279. set x ${MAKE-make}
  3280. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3281. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3282. $as_echo_n "(cached) " >&6
  3283. else
  3284. cat >conftest.make <<\_ACEOF
  3285. SHELL = /bin/sh
  3286. all:
  3287. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3288. _ACEOF
  3289. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3290. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3291. *@@@%%%=?*=@@@%%%*)
  3292. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3293. *)
  3294. eval ac_cv_prog_make_${ac_make}_set=no;;
  3295. esac
  3296. rm -f conftest.make
  3297. fi
  3298. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3300. $as_echo "yes" >&6; }
  3301. SET_MAKE=
  3302. else
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3304. $as_echo "no" >&6; }
  3305. SET_MAKE="MAKE=${MAKE-make}"
  3306. fi
  3307. rm -rf .tst 2>/dev/null
  3308. mkdir .tst 2>/dev/null
  3309. if test -d .tst; then
  3310. am__leading_dot=.
  3311. else
  3312. am__leading_dot=_
  3313. fi
  3314. rmdir .tst 2>/dev/null
  3315. DEPDIR="${am__leading_dot}deps"
  3316. ac_config_commands="$ac_config_commands depfiles"
  3317. am_make=${MAKE-make}
  3318. cat > confinc << 'END'
  3319. am__doit:
  3320. @echo this is the am__doit target
  3321. .PHONY: am__doit
  3322. END
  3323. # If we don't find an include directive, just comment out the code.
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3325. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3326. am__include="#"
  3327. am__quote=
  3328. _am_result=none
  3329. # First try GNU make style include.
  3330. echo "include confinc" > confmf
  3331. # Ignore all kinds of additional output from `make'.
  3332. case `$am_make -s -f confmf 2> /dev/null` in #(
  3333. *the\ am__doit\ target*)
  3334. am__include=include
  3335. am__quote=
  3336. _am_result=GNU
  3337. ;;
  3338. esac
  3339. # Now try BSD make style include.
  3340. if test "$am__include" = "#"; then
  3341. echo '.include "confinc"' > confmf
  3342. case `$am_make -s -f confmf 2> /dev/null` in #(
  3343. *the\ am__doit\ target*)
  3344. am__include=.include
  3345. am__quote="\""
  3346. _am_result=BSD
  3347. ;;
  3348. esac
  3349. fi
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3351. $as_echo "$_am_result" >&6; }
  3352. rm -f confinc confmf
  3353. # Check whether --enable-dependency-tracking was given.
  3354. if test "${enable_dependency_tracking+set}" = set; then :
  3355. enableval=$enable_dependency_tracking;
  3356. fi
  3357. if test "x$enable_dependency_tracking" != xno; then
  3358. am_depcomp="$ac_aux_dir/depcomp"
  3359. AMDEPBACKSLASH='\'
  3360. fi
  3361. if test "x$enable_dependency_tracking" != xno; then
  3362. AMDEP_TRUE=
  3363. AMDEP_FALSE='#'
  3364. else
  3365. AMDEP_TRUE='#'
  3366. AMDEP_FALSE=
  3367. fi
  3368. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3369. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3370. # is not polluted with repeated "-I."
  3371. am__isrc=' -I$(srcdir)'
  3372. # test to see if srcdir already configured
  3373. if test -f $srcdir/config.status; then
  3374. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3375. fi
  3376. fi
  3377. # test whether we have cygpath
  3378. if test -z "$CYGPATH_W"; then
  3379. if (cygpath --version) >/dev/null 2>/dev/null; then
  3380. CYGPATH_W='cygpath -w'
  3381. else
  3382. CYGPATH_W=echo
  3383. fi
  3384. fi
  3385. # Define the identity of the package.
  3386. PACKAGE='opcodes'
  3387. VERSION='2.25.51'
  3388. cat >>confdefs.h <<_ACEOF
  3389. #define PACKAGE "$PACKAGE"
  3390. _ACEOF
  3391. cat >>confdefs.h <<_ACEOF
  3392. #define VERSION "$VERSION"
  3393. _ACEOF
  3394. # Some tools Automake needs.
  3395. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3396. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3397. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3398. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3399. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3400. # We need awk for the "check" target. The system "awk" is bad on
  3401. # some platforms.
  3402. # Always define AMTAR for backward compatibility.
  3403. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3404. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3405. depcc="$CC" am_compiler_list=
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3407. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3408. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3409. $as_echo_n "(cached) " >&6
  3410. else
  3411. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3412. # We make a subdir and do the tests there. Otherwise we can end up
  3413. # making bogus files that we don't know about and never remove. For
  3414. # instance it was reported that on HP-UX the gcc test will end up
  3415. # making a dummy file named `D' -- because `-MD' means `put the output
  3416. # in D'.
  3417. mkdir conftest.dir
  3418. # Copy depcomp to subdir because otherwise we won't find it if we're
  3419. # using a relative directory.
  3420. cp "$am_depcomp" conftest.dir
  3421. cd conftest.dir
  3422. # We will build objects and dependencies in a subdirectory because
  3423. # it helps to detect inapplicable dependency modes. For instance
  3424. # both Tru64's cc and ICC support -MD to output dependencies as a
  3425. # side effect of compilation, but ICC will put the dependencies in
  3426. # the current directory while Tru64 will put them in the object
  3427. # directory.
  3428. mkdir sub
  3429. am_cv_CC_dependencies_compiler_type=none
  3430. if test "$am_compiler_list" = ""; then
  3431. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3432. fi
  3433. am__universal=false
  3434. case " $depcc " in #(
  3435. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3436. esac
  3437. for depmode in $am_compiler_list; do
  3438. # Setup a source with many dependencies, because some compilers
  3439. # like to wrap large dependency lists on column 80 (with \), and
  3440. # we should not choose a depcomp mode which is confused by this.
  3441. #
  3442. # We need to recreate these files for each test, as the compiler may
  3443. # overwrite some of them when testing with obscure command lines.
  3444. # This happens at least with the AIX C compiler.
  3445. : > sub/conftest.c
  3446. for i in 1 2 3 4 5 6; do
  3447. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3448. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3449. # Solaris 8's {/usr,}/bin/sh.
  3450. touch sub/conftst$i.h
  3451. done
  3452. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3453. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3454. # mode. It turns out that the SunPro C++ compiler does not properly
  3455. # handle `-M -o', and we need to detect this. Also, some Intel
  3456. # versions had trouble with output in subdirs
  3457. am__obj=sub/conftest.${OBJEXT-o}
  3458. am__minus_obj="-o $am__obj"
  3459. case $depmode in
  3460. gcc)
  3461. # This depmode causes a compiler race in universal mode.
  3462. test "$am__universal" = false || continue
  3463. ;;
  3464. nosideeffect)
  3465. # after this tag, mechanisms are not by side-effect, so they'll
  3466. # only be used when explicitly requested
  3467. if test "x$enable_dependency_tracking" = xyes; then
  3468. continue
  3469. else
  3470. break
  3471. fi
  3472. ;;
  3473. msvisualcpp | msvcmsys)
  3474. # This compiler won't grok `-c -o', but also, the minuso test has
  3475. # not run yet. These depmodes are late enough in the game, and
  3476. # so weak that their functioning should not be impacted.
  3477. am__obj=conftest.${OBJEXT-o}
  3478. am__minus_obj=
  3479. ;;
  3480. none) break ;;
  3481. esac
  3482. if depmode=$depmode \
  3483. source=sub/conftest.c object=$am__obj \
  3484. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3485. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3486. >/dev/null 2>conftest.err &&
  3487. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3488. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3489. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3490. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3491. # icc doesn't choke on unknown options, it will just issue warnings
  3492. # or remarks (even with -Werror). So we grep stderr for any message
  3493. # that says an option was ignored or not supported.
  3494. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3495. # icc: Command line warning: ignoring option '-M'; no argument required
  3496. # The diagnosis changed in icc 8.0:
  3497. # icc: Command line remark: option '-MP' not supported
  3498. if (grep 'ignoring option' conftest.err ||
  3499. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3500. am_cv_CC_dependencies_compiler_type=$depmode
  3501. break
  3502. fi
  3503. fi
  3504. done
  3505. cd ..
  3506. rm -rf conftest.dir
  3507. else
  3508. am_cv_CC_dependencies_compiler_type=none
  3509. fi
  3510. fi
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3512. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3513. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3514. if
  3515. test "x$enable_dependency_tracking" != xno \
  3516. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3517. am__fastdepCC_TRUE=
  3518. am__fastdepCC_FALSE='#'
  3519. else
  3520. am__fastdepCC_TRUE='#'
  3521. am__fastdepCC_FALSE=
  3522. fi
  3523. ac_ext=c
  3524. ac_cpp='$CPP $CPPFLAGS'
  3525. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3526. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3527. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3528. if test -n "$ac_tool_prefix"; then
  3529. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3530. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3532. $as_echo_n "checking for $ac_word... " >&6; }
  3533. if test "${ac_cv_prog_CC+set}" = set; then :
  3534. $as_echo_n "(cached) " >&6
  3535. else
  3536. if test -n "$CC"; then
  3537. ac_cv_prog_CC="$CC" # Let the user override the test.
  3538. else
  3539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3540. for as_dir in $PATH
  3541. do
  3542. IFS=$as_save_IFS
  3543. test -z "$as_dir" && as_dir=.
  3544. for ac_exec_ext in '' $ac_executable_extensions; do
  3545. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3546. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3548. break 2
  3549. fi
  3550. done
  3551. done
  3552. IFS=$as_save_IFS
  3553. fi
  3554. fi
  3555. CC=$ac_cv_prog_CC
  3556. if test -n "$CC"; then
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3558. $as_echo "$CC" >&6; }
  3559. else
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3561. $as_echo "no" >&6; }
  3562. fi
  3563. fi
  3564. if test -z "$ac_cv_prog_CC"; then
  3565. ac_ct_CC=$CC
  3566. # Extract the first word of "gcc", so it can be a program name with args.
  3567. set dummy gcc; ac_word=$2
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3569. $as_echo_n "checking for $ac_word... " >&6; }
  3570. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. if test -n "$ac_ct_CC"; then
  3574. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3575. else
  3576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3577. for as_dir in $PATH
  3578. do
  3579. IFS=$as_save_IFS
  3580. test -z "$as_dir" && as_dir=.
  3581. for ac_exec_ext in '' $ac_executable_extensions; do
  3582. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3583. ac_cv_prog_ac_ct_CC="gcc"
  3584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3585. break 2
  3586. fi
  3587. done
  3588. done
  3589. IFS=$as_save_IFS
  3590. fi
  3591. fi
  3592. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3593. if test -n "$ac_ct_CC"; then
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3595. $as_echo "$ac_ct_CC" >&6; }
  3596. else
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3598. $as_echo "no" >&6; }
  3599. fi
  3600. if test "x$ac_ct_CC" = x; then
  3601. CC=""
  3602. else
  3603. case $cross_compiling:$ac_tool_warned in
  3604. yes:)
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3607. ac_tool_warned=yes ;;
  3608. esac
  3609. CC=$ac_ct_CC
  3610. fi
  3611. else
  3612. CC="$ac_cv_prog_CC"
  3613. fi
  3614. if test -z "$CC"; then
  3615. if test -n "$ac_tool_prefix"; then
  3616. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3617. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3619. $as_echo_n "checking for $ac_word... " >&6; }
  3620. if test "${ac_cv_prog_CC+set}" = set; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. if test -n "$CC"; then
  3624. ac_cv_prog_CC="$CC" # Let the user override the test.
  3625. else
  3626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3627. for as_dir in $PATH
  3628. do
  3629. IFS=$as_save_IFS
  3630. test -z "$as_dir" && as_dir=.
  3631. for ac_exec_ext in '' $ac_executable_extensions; do
  3632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3633. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3635. break 2
  3636. fi
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. fi
  3641. fi
  3642. CC=$ac_cv_prog_CC
  3643. if test -n "$CC"; then
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3645. $as_echo "$CC" >&6; }
  3646. else
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3648. $as_echo "no" >&6; }
  3649. fi
  3650. fi
  3651. fi
  3652. if test -z "$CC"; then
  3653. # Extract the first word of "cc", so it can be a program name with args.
  3654. set dummy cc; ac_word=$2
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3656. $as_echo_n "checking for $ac_word... " >&6; }
  3657. if test "${ac_cv_prog_CC+set}" = set; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. if test -n "$CC"; then
  3661. ac_cv_prog_CC="$CC" # Let the user override the test.
  3662. else
  3663. ac_prog_rejected=no
  3664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3665. for as_dir in $PATH
  3666. do
  3667. IFS=$as_save_IFS
  3668. test -z "$as_dir" && as_dir=.
  3669. for ac_exec_ext in '' $ac_executable_extensions; do
  3670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3671. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3672. ac_prog_rejected=yes
  3673. continue
  3674. fi
  3675. ac_cv_prog_CC="cc"
  3676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3677. break 2
  3678. fi
  3679. done
  3680. done
  3681. IFS=$as_save_IFS
  3682. if test $ac_prog_rejected = yes; then
  3683. # We found a bogon in the path, so make sure we never use it.
  3684. set dummy $ac_cv_prog_CC
  3685. shift
  3686. if test $# != 0; then
  3687. # We chose a different compiler from the bogus one.
  3688. # However, it has the same basename, so the bogon will be chosen
  3689. # first if we set CC to just the basename; use the full file name.
  3690. shift
  3691. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3692. fi
  3693. fi
  3694. fi
  3695. fi
  3696. CC=$ac_cv_prog_CC
  3697. if test -n "$CC"; then
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3699. $as_echo "$CC" >&6; }
  3700. else
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3702. $as_echo "no" >&6; }
  3703. fi
  3704. fi
  3705. if test -z "$CC"; then
  3706. if test -n "$ac_tool_prefix"; then
  3707. for ac_prog in cl.exe
  3708. do
  3709. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3710. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3712. $as_echo_n "checking for $ac_word... " >&6; }
  3713. if test "${ac_cv_prog_CC+set}" = set; then :
  3714. $as_echo_n "(cached) " >&6
  3715. else
  3716. if test -n "$CC"; then
  3717. ac_cv_prog_CC="$CC" # Let the user override the test.
  3718. else
  3719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3720. for as_dir in $PATH
  3721. do
  3722. IFS=$as_save_IFS
  3723. test -z "$as_dir" && as_dir=.
  3724. for ac_exec_ext in '' $ac_executable_extensions; do
  3725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3726. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3728. break 2
  3729. fi
  3730. done
  3731. done
  3732. IFS=$as_save_IFS
  3733. fi
  3734. fi
  3735. CC=$ac_cv_prog_CC
  3736. if test -n "$CC"; then
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3738. $as_echo "$CC" >&6; }
  3739. else
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3741. $as_echo "no" >&6; }
  3742. fi
  3743. test -n "$CC" && break
  3744. done
  3745. fi
  3746. if test -z "$CC"; then
  3747. ac_ct_CC=$CC
  3748. for ac_prog in cl.exe
  3749. do
  3750. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3751. set dummy $ac_prog; ac_word=$2
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3753. $as_echo_n "checking for $ac_word... " >&6; }
  3754. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3755. $as_echo_n "(cached) " >&6
  3756. else
  3757. if test -n "$ac_ct_CC"; then
  3758. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3759. else
  3760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3761. for as_dir in $PATH
  3762. do
  3763. IFS=$as_save_IFS
  3764. test -z "$as_dir" && as_dir=.
  3765. for ac_exec_ext in '' $ac_executable_extensions; do
  3766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3767. ac_cv_prog_ac_ct_CC="$ac_prog"
  3768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3769. break 2
  3770. fi
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. fi
  3775. fi
  3776. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3777. if test -n "$ac_ct_CC"; then
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3779. $as_echo "$ac_ct_CC" >&6; }
  3780. else
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3782. $as_echo "no" >&6; }
  3783. fi
  3784. test -n "$ac_ct_CC" && break
  3785. done
  3786. if test "x$ac_ct_CC" = x; then
  3787. CC=""
  3788. else
  3789. case $cross_compiling:$ac_tool_warned in
  3790. yes:)
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3793. ac_tool_warned=yes ;;
  3794. esac
  3795. CC=$ac_ct_CC
  3796. fi
  3797. fi
  3798. fi
  3799. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3800. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3801. as_fn_error "no acceptable C compiler found in \$PATH
  3802. See \`config.log' for more details." "$LINENO" 5; }
  3803. # Provide some information about the compiler.
  3804. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3805. set X $ac_compile
  3806. ac_compiler=$2
  3807. for ac_option in --version -v -V -qversion; do
  3808. { { ac_try="$ac_compiler $ac_option >&5"
  3809. case "(($ac_try" in
  3810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3811. *) ac_try_echo=$ac_try;;
  3812. esac
  3813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3814. $as_echo "$ac_try_echo"; } >&5
  3815. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3816. ac_status=$?
  3817. if test -s conftest.err; then
  3818. sed '10a\
  3819. ... rest of stderr output deleted ...
  3820. 10q' conftest.err >conftest.er1
  3821. cat conftest.er1 >&5
  3822. rm -f conftest.er1 conftest.err
  3823. fi
  3824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3825. test $ac_status = 0; }
  3826. done
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3828. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3829. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3833. /* end confdefs.h. */
  3834. int
  3835. main ()
  3836. {
  3837. #ifndef __GNUC__
  3838. choke me
  3839. #endif
  3840. ;
  3841. return 0;
  3842. }
  3843. _ACEOF
  3844. if ac_fn_c_try_compile "$LINENO"; then :
  3845. ac_compiler_gnu=yes
  3846. else
  3847. ac_compiler_gnu=no
  3848. fi
  3849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3850. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3853. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3854. if test $ac_compiler_gnu = yes; then
  3855. GCC=yes
  3856. else
  3857. GCC=
  3858. fi
  3859. ac_test_CFLAGS=${CFLAGS+set}
  3860. ac_save_CFLAGS=$CFLAGS
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3862. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3863. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. ac_save_c_werror_flag=$ac_c_werror_flag
  3867. ac_c_werror_flag=yes
  3868. ac_cv_prog_cc_g=no
  3869. CFLAGS="-g"
  3870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3871. /* end confdefs.h. */
  3872. int
  3873. main ()
  3874. {
  3875. ;
  3876. return 0;
  3877. }
  3878. _ACEOF
  3879. if ac_fn_c_try_compile "$LINENO"; then :
  3880. ac_cv_prog_cc_g=yes
  3881. else
  3882. CFLAGS=""
  3883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3884. /* end confdefs.h. */
  3885. int
  3886. main ()
  3887. {
  3888. ;
  3889. return 0;
  3890. }
  3891. _ACEOF
  3892. if ac_fn_c_try_compile "$LINENO"; then :
  3893. else
  3894. ac_c_werror_flag=$ac_save_c_werror_flag
  3895. CFLAGS="-g"
  3896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3897. /* end confdefs.h. */
  3898. int
  3899. main ()
  3900. {
  3901. ;
  3902. return 0;
  3903. }
  3904. _ACEOF
  3905. if ac_fn_c_try_compile "$LINENO"; then :
  3906. ac_cv_prog_cc_g=yes
  3907. fi
  3908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3909. fi
  3910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3911. fi
  3912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3913. ac_c_werror_flag=$ac_save_c_werror_flag
  3914. fi
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3916. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3917. if test "$ac_test_CFLAGS" = set; then
  3918. CFLAGS=$ac_save_CFLAGS
  3919. elif test $ac_cv_prog_cc_g = yes; then
  3920. if test "$GCC" = yes; then
  3921. CFLAGS="-g -O2"
  3922. else
  3923. CFLAGS="-g"
  3924. fi
  3925. else
  3926. if test "$GCC" = yes; then
  3927. CFLAGS="-O2"
  3928. else
  3929. CFLAGS=
  3930. fi
  3931. fi
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3933. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3934. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3935. $as_echo_n "(cached) " >&6
  3936. else
  3937. ac_cv_prog_cc_c89=no
  3938. ac_save_CC=$CC
  3939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3940. /* end confdefs.h. */
  3941. #include <stdarg.h>
  3942. #include <stdio.h>
  3943. #include <sys/types.h>
  3944. #include <sys/stat.h>
  3945. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3946. struct buf { int x; };
  3947. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3948. static char *e (p, i)
  3949. char **p;
  3950. int i;
  3951. {
  3952. return p[i];
  3953. }
  3954. static char *f (char * (*g) (char **, int), char **p, ...)
  3955. {
  3956. char *s;
  3957. va_list v;
  3958. va_start (v,p);
  3959. s = g (p, va_arg (v,int));
  3960. va_end (v);
  3961. return s;
  3962. }
  3963. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3964. function prototypes and stuff, but not '\xHH' hex character constants.
  3965. These don't provoke an error unfortunately, instead are silently treated
  3966. as 'x'. The following induces an error, until -std is added to get
  3967. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3968. array size at least. It's necessary to write '\x00'==0 to get something
  3969. that's true only with -std. */
  3970. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3971. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3972. inside strings and character constants. */
  3973. #define FOO(x) 'x'
  3974. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3975. int test (int i, double x);
  3976. struct s1 {int (*f) (int a);};
  3977. struct s2 {int (*f) (double a);};
  3978. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3979. int argc;
  3980. char **argv;
  3981. int
  3982. main ()
  3983. {
  3984. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3985. ;
  3986. return 0;
  3987. }
  3988. _ACEOF
  3989. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3990. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3991. do
  3992. CC="$ac_save_CC $ac_arg"
  3993. if ac_fn_c_try_compile "$LINENO"; then :
  3994. ac_cv_prog_cc_c89=$ac_arg
  3995. fi
  3996. rm -f core conftest.err conftest.$ac_objext
  3997. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3998. done
  3999. rm -f conftest.$ac_ext
  4000. CC=$ac_save_CC
  4001. fi
  4002. # AC_CACHE_VAL
  4003. case "x$ac_cv_prog_cc_c89" in
  4004. x)
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4006. $as_echo "none needed" >&6; } ;;
  4007. xno)
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4009. $as_echo "unsupported" >&6; } ;;
  4010. *)
  4011. CC="$CC $ac_cv_prog_cc_c89"
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4013. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4014. esac
  4015. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4016. fi
  4017. ac_ext=c
  4018. ac_cpp='$CPP $CPPFLAGS'
  4019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4022. ac_ext=c
  4023. ac_cpp='$CPP $CPPFLAGS'
  4024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4028. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4029. # On Suns, sometimes $CPP names a directory.
  4030. if test -n "$CPP" && test -d "$CPP"; then
  4031. CPP=
  4032. fi
  4033. if test -z "$CPP"; then
  4034. if test "${ac_cv_prog_CPP+set}" = set; then :
  4035. $as_echo_n "(cached) " >&6
  4036. else
  4037. # Double quotes because CPP needs to be expanded
  4038. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4039. do
  4040. ac_preproc_ok=false
  4041. for ac_c_preproc_warn_flag in '' yes
  4042. do
  4043. # Use a header file that comes with gcc, so configuring glibc
  4044. # with a fresh cross-compiler works.
  4045. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4046. # <limits.h> exists even on freestanding compilers.
  4047. # On the NeXT, cc -E runs the code through the compiler's parser,
  4048. # not just through cpp. "Syntax error" is here to catch this case.
  4049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4050. /* end confdefs.h. */
  4051. #ifdef __STDC__
  4052. # include <limits.h>
  4053. #else
  4054. # include <assert.h>
  4055. #endif
  4056. Syntax error
  4057. _ACEOF
  4058. if ac_fn_c_try_cpp "$LINENO"; then :
  4059. else
  4060. # Broken: fails on valid input.
  4061. continue
  4062. fi
  4063. rm -f conftest.err conftest.$ac_ext
  4064. # OK, works on sane cases. Now check whether nonexistent headers
  4065. # can be detected and how.
  4066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4067. /* end confdefs.h. */
  4068. #include <ac_nonexistent.h>
  4069. _ACEOF
  4070. if ac_fn_c_try_cpp "$LINENO"; then :
  4071. # Broken: success on invalid input.
  4072. continue
  4073. else
  4074. # Passes both tests.
  4075. ac_preproc_ok=:
  4076. break
  4077. fi
  4078. rm -f conftest.err conftest.$ac_ext
  4079. done
  4080. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4081. rm -f conftest.err conftest.$ac_ext
  4082. if $ac_preproc_ok; then :
  4083. break
  4084. fi
  4085. done
  4086. ac_cv_prog_CPP=$CPP
  4087. fi
  4088. CPP=$ac_cv_prog_CPP
  4089. else
  4090. ac_cv_prog_CPP=$CPP
  4091. fi
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4093. $as_echo "$CPP" >&6; }
  4094. ac_preproc_ok=false
  4095. for ac_c_preproc_warn_flag in '' yes
  4096. do
  4097. # Use a header file that comes with gcc, so configuring glibc
  4098. # with a fresh cross-compiler works.
  4099. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4100. # <limits.h> exists even on freestanding compilers.
  4101. # On the NeXT, cc -E runs the code through the compiler's parser,
  4102. # not just through cpp. "Syntax error" is here to catch this case.
  4103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4104. /* end confdefs.h. */
  4105. #ifdef __STDC__
  4106. # include <limits.h>
  4107. #else
  4108. # include <assert.h>
  4109. #endif
  4110. Syntax error
  4111. _ACEOF
  4112. if ac_fn_c_try_cpp "$LINENO"; then :
  4113. else
  4114. # Broken: fails on valid input.
  4115. continue
  4116. fi
  4117. rm -f conftest.err conftest.$ac_ext
  4118. # OK, works on sane cases. Now check whether nonexistent headers
  4119. # can be detected and how.
  4120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4121. /* end confdefs.h. */
  4122. #include <ac_nonexistent.h>
  4123. _ACEOF
  4124. if ac_fn_c_try_cpp "$LINENO"; then :
  4125. # Broken: success on invalid input.
  4126. continue
  4127. else
  4128. # Passes both tests.
  4129. ac_preproc_ok=:
  4130. break
  4131. fi
  4132. rm -f conftest.err conftest.$ac_ext
  4133. done
  4134. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4135. rm -f conftest.err conftest.$ac_ext
  4136. if $ac_preproc_ok; then :
  4137. else
  4138. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4139. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4140. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4141. See \`config.log' for more details." "$LINENO" 5; }
  4142. fi
  4143. ac_ext=c
  4144. ac_cpp='$CPP $CPPFLAGS'
  4145. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4146. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4147. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4149. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4150. if test "${ac_cv_path_GREP+set}" = set; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. if test -z "$GREP"; then
  4154. ac_path_GREP_found=false
  4155. # Loop through the user's path and test for each of PROGNAME-LIST
  4156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4157. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4158. do
  4159. IFS=$as_save_IFS
  4160. test -z "$as_dir" && as_dir=.
  4161. for ac_prog in grep ggrep; do
  4162. for ac_exec_ext in '' $ac_executable_extensions; do
  4163. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4164. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4165. # Check for GNU ac_path_GREP and select it if it is found.
  4166. # Check for GNU $ac_path_GREP
  4167. case `"$ac_path_GREP" --version 2>&1` in
  4168. *GNU*)
  4169. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4170. *)
  4171. ac_count=0
  4172. $as_echo_n 0123456789 >"conftest.in"
  4173. while :
  4174. do
  4175. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4176. mv "conftest.tmp" "conftest.in"
  4177. cp "conftest.in" "conftest.nl"
  4178. $as_echo 'GREP' >> "conftest.nl"
  4179. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4180. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4181. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4182. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4183. # Best one so far, save it but keep looking for a better one
  4184. ac_cv_path_GREP="$ac_path_GREP"
  4185. ac_path_GREP_max=$ac_count
  4186. fi
  4187. # 10*(2^10) chars as input seems more than enough
  4188. test $ac_count -gt 10 && break
  4189. done
  4190. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4191. esac
  4192. $ac_path_GREP_found && break 3
  4193. done
  4194. done
  4195. done
  4196. IFS=$as_save_IFS
  4197. if test -z "$ac_cv_path_GREP"; then
  4198. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4199. fi
  4200. else
  4201. ac_cv_path_GREP=$GREP
  4202. fi
  4203. fi
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4205. $as_echo "$ac_cv_path_GREP" >&6; }
  4206. GREP="$ac_cv_path_GREP"
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4208. $as_echo_n "checking for egrep... " >&6; }
  4209. if test "${ac_cv_path_EGREP+set}" = set; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4213. then ac_cv_path_EGREP="$GREP -E"
  4214. else
  4215. if test -z "$EGREP"; then
  4216. ac_path_EGREP_found=false
  4217. # Loop through the user's path and test for each of PROGNAME-LIST
  4218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4219. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4220. do
  4221. IFS=$as_save_IFS
  4222. test -z "$as_dir" && as_dir=.
  4223. for ac_prog in egrep; do
  4224. for ac_exec_ext in '' $ac_executable_extensions; do
  4225. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4226. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4227. # Check for GNU ac_path_EGREP and select it if it is found.
  4228. # Check for GNU $ac_path_EGREP
  4229. case `"$ac_path_EGREP" --version 2>&1` in
  4230. *GNU*)
  4231. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4232. *)
  4233. ac_count=0
  4234. $as_echo_n 0123456789 >"conftest.in"
  4235. while :
  4236. do
  4237. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4238. mv "conftest.tmp" "conftest.in"
  4239. cp "conftest.in" "conftest.nl"
  4240. $as_echo 'EGREP' >> "conftest.nl"
  4241. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4242. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4243. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4244. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4245. # Best one so far, save it but keep looking for a better one
  4246. ac_cv_path_EGREP="$ac_path_EGREP"
  4247. ac_path_EGREP_max=$ac_count
  4248. fi
  4249. # 10*(2^10) chars as input seems more than enough
  4250. test $ac_count -gt 10 && break
  4251. done
  4252. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4253. esac
  4254. $ac_path_EGREP_found && break 3
  4255. done
  4256. done
  4257. done
  4258. IFS=$as_save_IFS
  4259. if test -z "$ac_cv_path_EGREP"; then
  4260. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4261. fi
  4262. else
  4263. ac_cv_path_EGREP=$EGREP
  4264. fi
  4265. fi
  4266. fi
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4268. $as_echo "$ac_cv_path_EGREP" >&6; }
  4269. EGREP="$ac_cv_path_EGREP"
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4271. $as_echo_n "checking for ANSI C header files... " >&6; }
  4272. if test "${ac_cv_header_stdc+set}" = set; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4276. /* end confdefs.h. */
  4277. #include <stdlib.h>
  4278. #include <stdarg.h>
  4279. #include <string.h>
  4280. #include <float.h>
  4281. int
  4282. main ()
  4283. {
  4284. ;
  4285. return 0;
  4286. }
  4287. _ACEOF
  4288. if ac_fn_c_try_compile "$LINENO"; then :
  4289. ac_cv_header_stdc=yes
  4290. else
  4291. ac_cv_header_stdc=no
  4292. fi
  4293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4294. if test $ac_cv_header_stdc = yes; then
  4295. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4297. /* end confdefs.h. */
  4298. #include <string.h>
  4299. _ACEOF
  4300. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4301. $EGREP "memchr" >/dev/null 2>&1; then :
  4302. else
  4303. ac_cv_header_stdc=no
  4304. fi
  4305. rm -f conftest*
  4306. fi
  4307. if test $ac_cv_header_stdc = yes; then
  4308. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4310. /* end confdefs.h. */
  4311. #include <stdlib.h>
  4312. _ACEOF
  4313. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4314. $EGREP "free" >/dev/null 2>&1; then :
  4315. else
  4316. ac_cv_header_stdc=no
  4317. fi
  4318. rm -f conftest*
  4319. fi
  4320. if test $ac_cv_header_stdc = yes; then
  4321. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4322. if test "$cross_compiling" = yes; then :
  4323. :
  4324. else
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. #include <ctype.h>
  4328. #include <stdlib.h>
  4329. #if ((' ' & 0x0FF) == 0x020)
  4330. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4331. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4332. #else
  4333. # define ISLOWER(c) \
  4334. (('a' <= (c) && (c) <= 'i') \
  4335. || ('j' <= (c) && (c) <= 'r') \
  4336. || ('s' <= (c) && (c) <= 'z'))
  4337. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4338. #endif
  4339. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4340. int
  4341. main ()
  4342. {
  4343. int i;
  4344. for (i = 0; i < 256; i++)
  4345. if (XOR (islower (i), ISLOWER (i))
  4346. || toupper (i) != TOUPPER (i))
  4347. return 2;
  4348. return 0;
  4349. }
  4350. _ACEOF
  4351. if ac_fn_c_try_run "$LINENO"; then :
  4352. else
  4353. ac_cv_header_stdc=no
  4354. fi
  4355. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4356. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4357. fi
  4358. fi
  4359. fi
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4361. $as_echo "$ac_cv_header_stdc" >&6; }
  4362. if test $ac_cv_header_stdc = yes; then
  4363. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4364. fi
  4365. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4366. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4367. inttypes.h stdint.h unistd.h
  4368. do :
  4369. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4370. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4371. "
  4372. eval as_val=\$$as_ac_Header
  4373. if test "x$as_val" = x""yes; then :
  4374. cat >>confdefs.h <<_ACEOF
  4375. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4376. _ACEOF
  4377. fi
  4378. done
  4379. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4380. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4381. MINIX=yes
  4382. else
  4383. MINIX=
  4384. fi
  4385. if test "$MINIX" = yes; then
  4386. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4387. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4388. $as_echo "#define _MINIX 1" >>confdefs.h
  4389. fi
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4391. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4392. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4396. /* end confdefs.h. */
  4397. # define __EXTENSIONS__ 1
  4398. $ac_includes_default
  4399. int
  4400. main ()
  4401. {
  4402. ;
  4403. return 0;
  4404. }
  4405. _ACEOF
  4406. if ac_fn_c_try_compile "$LINENO"; then :
  4407. ac_cv_safe_to_define___extensions__=yes
  4408. else
  4409. ac_cv_safe_to_define___extensions__=no
  4410. fi
  4411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4412. fi
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4414. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4415. test $ac_cv_safe_to_define___extensions__ = yes &&
  4416. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4417. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4418. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4419. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4420. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4421. if test -n "$ac_tool_prefix"; then
  4422. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4423. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4425. $as_echo_n "checking for $ac_word... " >&6; }
  4426. if test "${ac_cv_prog_AR+set}" = set; then :
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. if test -n "$AR"; then
  4430. ac_cv_prog_AR="$AR" # Let the user override the test.
  4431. else
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_exec_ext in '' $ac_executable_extensions; do
  4438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4439. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4441. break 2
  4442. fi
  4443. done
  4444. done
  4445. IFS=$as_save_IFS
  4446. fi
  4447. fi
  4448. AR=$ac_cv_prog_AR
  4449. if test -n "$AR"; then
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4451. $as_echo "$AR" >&6; }
  4452. else
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4454. $as_echo "no" >&6; }
  4455. fi
  4456. fi
  4457. if test -z "$ac_cv_prog_AR"; then
  4458. ac_ct_AR=$AR
  4459. # Extract the first word of "ar", so it can be a program name with args.
  4460. set dummy ar; ac_word=$2
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4462. $as_echo_n "checking for $ac_word... " >&6; }
  4463. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4464. $as_echo_n "(cached) " >&6
  4465. else
  4466. if test -n "$ac_ct_AR"; then
  4467. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4468. else
  4469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4470. for as_dir in $PATH
  4471. do
  4472. IFS=$as_save_IFS
  4473. test -z "$as_dir" && as_dir=.
  4474. for ac_exec_ext in '' $ac_executable_extensions; do
  4475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4476. ac_cv_prog_ac_ct_AR="ar"
  4477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4478. break 2
  4479. fi
  4480. done
  4481. done
  4482. IFS=$as_save_IFS
  4483. fi
  4484. fi
  4485. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4486. if test -n "$ac_ct_AR"; then
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4488. $as_echo "$ac_ct_AR" >&6; }
  4489. else
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4491. $as_echo "no" >&6; }
  4492. fi
  4493. if test "x$ac_ct_AR" = x; then
  4494. AR=""
  4495. else
  4496. case $cross_compiling:$ac_tool_warned in
  4497. yes:)
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4499. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4500. ac_tool_warned=yes ;;
  4501. esac
  4502. AR=$ac_ct_AR
  4503. fi
  4504. else
  4505. AR="$ac_cv_prog_AR"
  4506. fi
  4507. if test -n "$ac_tool_prefix"; then
  4508. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4509. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4511. $as_echo_n "checking for $ac_word... " >&6; }
  4512. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4513. $as_echo_n "(cached) " >&6
  4514. else
  4515. if test -n "$RANLIB"; then
  4516. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4517. else
  4518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4519. for as_dir in $PATH
  4520. do
  4521. IFS=$as_save_IFS
  4522. test -z "$as_dir" && as_dir=.
  4523. for ac_exec_ext in '' $ac_executable_extensions; do
  4524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4525. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4527. break 2
  4528. fi
  4529. done
  4530. done
  4531. IFS=$as_save_IFS
  4532. fi
  4533. fi
  4534. RANLIB=$ac_cv_prog_RANLIB
  4535. if test -n "$RANLIB"; then
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4537. $as_echo "$RANLIB" >&6; }
  4538. else
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4540. $as_echo "no" >&6; }
  4541. fi
  4542. fi
  4543. if test -z "$ac_cv_prog_RANLIB"; then
  4544. ac_ct_RANLIB=$RANLIB
  4545. # Extract the first word of "ranlib", so it can be a program name with args.
  4546. set dummy ranlib; ac_word=$2
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4548. $as_echo_n "checking for $ac_word... " >&6; }
  4549. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. if test -n "$ac_ct_RANLIB"; then
  4553. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4554. else
  4555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4556. for as_dir in $PATH
  4557. do
  4558. IFS=$as_save_IFS
  4559. test -z "$as_dir" && as_dir=.
  4560. for ac_exec_ext in '' $ac_executable_extensions; do
  4561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4562. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4564. break 2
  4565. fi
  4566. done
  4567. done
  4568. IFS=$as_save_IFS
  4569. fi
  4570. fi
  4571. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4572. if test -n "$ac_ct_RANLIB"; then
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4574. $as_echo "$ac_ct_RANLIB" >&6; }
  4575. else
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4577. $as_echo "no" >&6; }
  4578. fi
  4579. if test "x$ac_ct_RANLIB" = x; then
  4580. RANLIB=":"
  4581. else
  4582. case $cross_compiling:$ac_tool_warned in
  4583. yes:)
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4586. ac_tool_warned=yes ;;
  4587. esac
  4588. RANLIB=$ac_ct_RANLIB
  4589. fi
  4590. else
  4591. RANLIB="$ac_cv_prog_RANLIB"
  4592. fi
  4593. # Check whether --enable-shared was given.
  4594. if test "${enable_shared+set}" = set; then :
  4595. enableval=$enable_shared; p=${PACKAGE-default}
  4596. case $enableval in
  4597. yes) enable_shared=yes ;;
  4598. no) enable_shared=no ;;
  4599. *)
  4600. enable_shared=no
  4601. # Look at the argument we got. We use all the common list separators.
  4602. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4603. for pkg in $enableval; do
  4604. IFS="$lt_save_ifs"
  4605. if test "X$pkg" = "X$p"; then
  4606. enable_shared=yes
  4607. fi
  4608. done
  4609. IFS="$lt_save_ifs"
  4610. ;;
  4611. esac
  4612. else
  4613. enable_shared=no
  4614. fi
  4615. case `pwd` in
  4616. *\ * | *\ *)
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4618. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4619. esac
  4620. macro_version='2.2.7a'
  4621. macro_revision='1.3134'
  4622. ltmain="$ac_aux_dir/ltmain.sh"
  4623. # Backslashify metacharacters that are still active within
  4624. # double-quoted strings.
  4625. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4626. # Same as above, but do not quote variable references.
  4627. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4628. # Sed substitution to delay expansion of an escaped shell variable in a
  4629. # double_quote_subst'ed string.
  4630. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4631. # Sed substitution to delay expansion of an escaped single quote.
  4632. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4633. # Sed substitution to avoid accidental globbing in evaled expressions
  4634. no_glob_subst='s/\*/\\\*/g'
  4635. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4636. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4637. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4639. $as_echo_n "checking how to print strings... " >&6; }
  4640. # Test print first, because it will be a builtin if present.
  4641. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4642. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4643. ECHO='print -r --'
  4644. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4645. ECHO='printf %s\n'
  4646. else
  4647. # Use this function as a fallback that always works.
  4648. func_fallback_echo ()
  4649. {
  4650. eval 'cat <<_LTECHO_EOF
  4651. $1
  4652. _LTECHO_EOF'
  4653. }
  4654. ECHO='func_fallback_echo'
  4655. fi
  4656. # func_echo_all arg...
  4657. # Invoke $ECHO with all args, space-separated.
  4658. func_echo_all ()
  4659. {
  4660. $ECHO ""
  4661. }
  4662. case "$ECHO" in
  4663. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4664. $as_echo "printf" >&6; } ;;
  4665. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4666. $as_echo "print -r" >&6; } ;;
  4667. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4668. $as_echo "cat" >&6; } ;;
  4669. esac
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4671. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4672. if test "${ac_cv_path_SED+set}" = set; then :
  4673. $as_echo_n "(cached) " >&6
  4674. else
  4675. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4676. for ac_i in 1 2 3 4 5 6 7; do
  4677. ac_script="$ac_script$as_nl$ac_script"
  4678. done
  4679. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4680. { ac_script=; unset ac_script;}
  4681. if test -z "$SED"; then
  4682. ac_path_SED_found=false
  4683. # Loop through the user's path and test for each of PROGNAME-LIST
  4684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4685. for as_dir in $PATH
  4686. do
  4687. IFS=$as_save_IFS
  4688. test -z "$as_dir" && as_dir=.
  4689. for ac_prog in sed gsed; do
  4690. for ac_exec_ext in '' $ac_executable_extensions; do
  4691. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4692. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4693. # Check for GNU ac_path_SED and select it if it is found.
  4694. # Check for GNU $ac_path_SED
  4695. case `"$ac_path_SED" --version 2>&1` in
  4696. *GNU*)
  4697. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4698. *)
  4699. ac_count=0
  4700. $as_echo_n 0123456789 >"conftest.in"
  4701. while :
  4702. do
  4703. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4704. mv "conftest.tmp" "conftest.in"
  4705. cp "conftest.in" "conftest.nl"
  4706. $as_echo '' >> "conftest.nl"
  4707. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4708. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4709. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4710. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4711. # Best one so far, save it but keep looking for a better one
  4712. ac_cv_path_SED="$ac_path_SED"
  4713. ac_path_SED_max=$ac_count
  4714. fi
  4715. # 10*(2^10) chars as input seems more than enough
  4716. test $ac_count -gt 10 && break
  4717. done
  4718. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4719. esac
  4720. $ac_path_SED_found && break 3
  4721. done
  4722. done
  4723. done
  4724. IFS=$as_save_IFS
  4725. if test -z "$ac_cv_path_SED"; then
  4726. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4727. fi
  4728. else
  4729. ac_cv_path_SED=$SED
  4730. fi
  4731. fi
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4733. $as_echo "$ac_cv_path_SED" >&6; }
  4734. SED="$ac_cv_path_SED"
  4735. rm -f conftest.sed
  4736. test -z "$SED" && SED=sed
  4737. Xsed="$SED -e 1s/^X//"
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4739. $as_echo_n "checking for fgrep... " >&6; }
  4740. if test "${ac_cv_path_FGREP+set}" = set; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4744. then ac_cv_path_FGREP="$GREP -F"
  4745. else
  4746. if test -z "$FGREP"; then
  4747. ac_path_FGREP_found=false
  4748. # Loop through the user's path and test for each of PROGNAME-LIST
  4749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4750. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4751. do
  4752. IFS=$as_save_IFS
  4753. test -z "$as_dir" && as_dir=.
  4754. for ac_prog in fgrep; do
  4755. for ac_exec_ext in '' $ac_executable_extensions; do
  4756. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4757. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4758. # Check for GNU ac_path_FGREP and select it if it is found.
  4759. # Check for GNU $ac_path_FGREP
  4760. case `"$ac_path_FGREP" --version 2>&1` in
  4761. *GNU*)
  4762. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4763. *)
  4764. ac_count=0
  4765. $as_echo_n 0123456789 >"conftest.in"
  4766. while :
  4767. do
  4768. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4769. mv "conftest.tmp" "conftest.in"
  4770. cp "conftest.in" "conftest.nl"
  4771. $as_echo 'FGREP' >> "conftest.nl"
  4772. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4773. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4774. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4775. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4776. # Best one so far, save it but keep looking for a better one
  4777. ac_cv_path_FGREP="$ac_path_FGREP"
  4778. ac_path_FGREP_max=$ac_count
  4779. fi
  4780. # 10*(2^10) chars as input seems more than enough
  4781. test $ac_count -gt 10 && break
  4782. done
  4783. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4784. esac
  4785. $ac_path_FGREP_found && break 3
  4786. done
  4787. done
  4788. done
  4789. IFS=$as_save_IFS
  4790. if test -z "$ac_cv_path_FGREP"; then
  4791. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4792. fi
  4793. else
  4794. ac_cv_path_FGREP=$FGREP
  4795. fi
  4796. fi
  4797. fi
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4799. $as_echo "$ac_cv_path_FGREP" >&6; }
  4800. FGREP="$ac_cv_path_FGREP"
  4801. test -z "$GREP" && GREP=grep
  4802. # Check whether --with-gnu-ld was given.
  4803. if test "${with_gnu_ld+set}" = set; then :
  4804. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4805. else
  4806. with_gnu_ld=no
  4807. fi
  4808. ac_prog=ld
  4809. if test "$GCC" = yes; then
  4810. # Check if gcc -print-prog-name=ld gives a path.
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4812. $as_echo_n "checking for ld used by $CC... " >&6; }
  4813. case $host in
  4814. *-*-mingw*)
  4815. # gcc leaves a trailing carriage return which upsets mingw
  4816. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4817. *)
  4818. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4819. esac
  4820. case $ac_prog in
  4821. # Accept absolute paths.
  4822. [\\/]* | ?:[\\/]*)
  4823. re_direlt='/[^/][^/]*/\.\./'
  4824. # Canonicalize the pathname of ld
  4825. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4826. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4827. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4828. done
  4829. test -z "$LD" && LD="$ac_prog"
  4830. ;;
  4831. "")
  4832. # If it fails, then pretend we aren't using GCC.
  4833. ac_prog=ld
  4834. ;;
  4835. *)
  4836. # If it is relative, then search for the first ld in PATH.
  4837. with_gnu_ld=unknown
  4838. ;;
  4839. esac
  4840. elif test "$with_gnu_ld" = yes; then
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4842. $as_echo_n "checking for GNU ld... " >&6; }
  4843. else
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4845. $as_echo_n "checking for non-GNU ld... " >&6; }
  4846. fi
  4847. if test "${lt_cv_path_LD+set}" = set; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. if test -z "$LD"; then
  4851. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4852. for ac_dir in $PATH; do
  4853. IFS="$lt_save_ifs"
  4854. test -z "$ac_dir" && ac_dir=.
  4855. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4856. lt_cv_path_LD="$ac_dir/$ac_prog"
  4857. # Check to see if the program is GNU ld. I'd rather use --version,
  4858. # but apparently some variants of GNU ld only accept -v.
  4859. # Break only if it was the GNU/non-GNU ld that we prefer.
  4860. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4861. *GNU* | *'with BFD'*)
  4862. test "$with_gnu_ld" != no && break
  4863. ;;
  4864. *)
  4865. test "$with_gnu_ld" != yes && break
  4866. ;;
  4867. esac
  4868. fi
  4869. done
  4870. IFS="$lt_save_ifs"
  4871. else
  4872. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4873. fi
  4874. fi
  4875. LD="$lt_cv_path_LD"
  4876. if test -n "$LD"; then
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4878. $as_echo "$LD" >&6; }
  4879. else
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4881. $as_echo "no" >&6; }
  4882. fi
  4883. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4885. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4886. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4890. case `$LD -v 2>&1 </dev/null` in
  4891. *GNU* | *'with BFD'*)
  4892. lt_cv_prog_gnu_ld=yes
  4893. ;;
  4894. *)
  4895. lt_cv_prog_gnu_ld=no
  4896. ;;
  4897. esac
  4898. fi
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4900. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4901. with_gnu_ld=$lt_cv_prog_gnu_ld
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4903. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4904. if test "${lt_cv_path_NM+set}" = set; then :
  4905. $as_echo_n "(cached) " >&6
  4906. else
  4907. if test -n "$NM"; then
  4908. # Let the user override the test.
  4909. lt_cv_path_NM="$NM"
  4910. else
  4911. lt_nm_to_check="${ac_tool_prefix}nm"
  4912. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4913. lt_nm_to_check="$lt_nm_to_check nm"
  4914. fi
  4915. for lt_tmp_nm in $lt_nm_to_check; do
  4916. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4917. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4918. IFS="$lt_save_ifs"
  4919. test -z "$ac_dir" && ac_dir=.
  4920. tmp_nm="$ac_dir/$lt_tmp_nm"
  4921. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4922. # Check to see if the nm accepts a BSD-compat flag.
  4923. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4924. # nm: unknown option "B" ignored
  4925. # Tru64's nm complains that /dev/null is an invalid object file
  4926. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4927. */dev/null* | *'Invalid file or object type'*)
  4928. lt_cv_path_NM="$tmp_nm -B"
  4929. break
  4930. ;;
  4931. *)
  4932. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4933. */dev/null*)
  4934. lt_cv_path_NM="$tmp_nm -p"
  4935. break
  4936. ;;
  4937. *)
  4938. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4939. continue # so that we can try to find one that supports BSD flags
  4940. ;;
  4941. esac
  4942. ;;
  4943. esac
  4944. fi
  4945. done
  4946. IFS="$lt_save_ifs"
  4947. done
  4948. : ${lt_cv_path_NM=no}
  4949. fi
  4950. fi
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4952. $as_echo "$lt_cv_path_NM" >&6; }
  4953. if test "$lt_cv_path_NM" != "no"; then
  4954. NM="$lt_cv_path_NM"
  4955. else
  4956. # Didn't find any BSD compatible name lister, look for dumpbin.
  4957. if test -n "$DUMPBIN"; then :
  4958. # Let the user override the test.
  4959. else
  4960. if test -n "$ac_tool_prefix"; then
  4961. for ac_prog in dumpbin "link -dump"
  4962. do
  4963. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4964. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4966. $as_echo_n "checking for $ac_word... " >&6; }
  4967. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. if test -n "$DUMPBIN"; then
  4971. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4972. else
  4973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4974. for as_dir in $PATH
  4975. do
  4976. IFS=$as_save_IFS
  4977. test -z "$as_dir" && as_dir=.
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4980. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4982. break 2
  4983. fi
  4984. done
  4985. done
  4986. IFS=$as_save_IFS
  4987. fi
  4988. fi
  4989. DUMPBIN=$ac_cv_prog_DUMPBIN
  4990. if test -n "$DUMPBIN"; then
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4992. $as_echo "$DUMPBIN" >&6; }
  4993. else
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4995. $as_echo "no" >&6; }
  4996. fi
  4997. test -n "$DUMPBIN" && break
  4998. done
  4999. fi
  5000. if test -z "$DUMPBIN"; then
  5001. ac_ct_DUMPBIN=$DUMPBIN
  5002. for ac_prog in dumpbin "link -dump"
  5003. do
  5004. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5005. set dummy $ac_prog; ac_word=$2
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5007. $as_echo_n "checking for $ac_word... " >&6; }
  5008. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5009. $as_echo_n "(cached) " >&6
  5010. else
  5011. if test -n "$ac_ct_DUMPBIN"; then
  5012. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5013. else
  5014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5015. for as_dir in $PATH
  5016. do
  5017. IFS=$as_save_IFS
  5018. test -z "$as_dir" && as_dir=.
  5019. for ac_exec_ext in '' $ac_executable_extensions; do
  5020. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5021. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5023. break 2
  5024. fi
  5025. done
  5026. done
  5027. IFS=$as_save_IFS
  5028. fi
  5029. fi
  5030. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5031. if test -n "$ac_ct_DUMPBIN"; then
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5033. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5034. else
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5036. $as_echo "no" >&6; }
  5037. fi
  5038. test -n "$ac_ct_DUMPBIN" && break
  5039. done
  5040. if test "x$ac_ct_DUMPBIN" = x; then
  5041. DUMPBIN=":"
  5042. else
  5043. case $cross_compiling:$ac_tool_warned in
  5044. yes:)
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5046. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5047. ac_tool_warned=yes ;;
  5048. esac
  5049. DUMPBIN=$ac_ct_DUMPBIN
  5050. fi
  5051. fi
  5052. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5053. *COFF*)
  5054. DUMPBIN="$DUMPBIN -symbols"
  5055. ;;
  5056. *)
  5057. DUMPBIN=:
  5058. ;;
  5059. esac
  5060. fi
  5061. if test "$DUMPBIN" != ":"; then
  5062. NM="$DUMPBIN"
  5063. fi
  5064. fi
  5065. test -z "$NM" && NM=nm
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5067. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5068. if test "${lt_cv_nm_interface+set}" = set; then :
  5069. $as_echo_n "(cached) " >&6
  5070. else
  5071. lt_cv_nm_interface="BSD nm"
  5072. echo "int some_variable = 0;" > conftest.$ac_ext
  5073. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5074. (eval "$ac_compile" 2>conftest.err)
  5075. cat conftest.err >&5
  5076. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5077. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5078. cat conftest.err >&5
  5079. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5080. cat conftest.out >&5
  5081. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5082. lt_cv_nm_interface="MS dumpbin"
  5083. fi
  5084. rm -f conftest*
  5085. fi
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5087. $as_echo "$lt_cv_nm_interface" >&6; }
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5089. $as_echo_n "checking whether ln -s works... " >&6; }
  5090. LN_S=$as_ln_s
  5091. if test "$LN_S" = "ln -s"; then
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5093. $as_echo "yes" >&6; }
  5094. else
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5096. $as_echo "no, using $LN_S" >&6; }
  5097. fi
  5098. # find the maximum length of command line arguments
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5100. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5101. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5102. $as_echo_n "(cached) " >&6
  5103. else
  5104. i=0
  5105. teststring="ABCD"
  5106. case $build_os in
  5107. msdosdjgpp*)
  5108. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5109. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5110. # during glob expansion). Even if it were fixed, the result of this
  5111. # check would be larger than it should be.
  5112. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5113. ;;
  5114. gnu*)
  5115. # Under GNU Hurd, this test is not required because there is
  5116. # no limit to the length of command line arguments.
  5117. # Libtool will interpret -1 as no limit whatsoever
  5118. lt_cv_sys_max_cmd_len=-1;
  5119. ;;
  5120. cygwin* | mingw* | cegcc*)
  5121. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5122. # about 5 minutes as the teststring grows exponentially.
  5123. # Worse, since 9x/ME are not pre-emptively multitasking,
  5124. # you end up with a "frozen" computer, even though with patience
  5125. # the test eventually succeeds (with a max line length of 256k).
  5126. # Instead, let's just punt: use the minimum linelength reported by
  5127. # all of the supported platforms: 8192 (on NT/2K/XP).
  5128. lt_cv_sys_max_cmd_len=8192;
  5129. ;;
  5130. mint*)
  5131. # On MiNT this can take a long time and run out of memory.
  5132. lt_cv_sys_max_cmd_len=8192;
  5133. ;;
  5134. amigaos*)
  5135. # On AmigaOS with pdksh, this test takes hours, literally.
  5136. # So we just punt and use a minimum line length of 8192.
  5137. lt_cv_sys_max_cmd_len=8192;
  5138. ;;
  5139. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5140. # This has been around since 386BSD, at least. Likely further.
  5141. if test -x /sbin/sysctl; then
  5142. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5143. elif test -x /usr/sbin/sysctl; then
  5144. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5145. else
  5146. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5147. fi
  5148. # And add a safety zone
  5149. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5150. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5151. ;;
  5152. interix*)
  5153. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5154. lt_cv_sys_max_cmd_len=196608
  5155. ;;
  5156. osf*)
  5157. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5158. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5159. # nice to cause kernel panics so lets avoid the loop below.
  5160. # First set a reasonable default.
  5161. lt_cv_sys_max_cmd_len=16384
  5162. #
  5163. if test -x /sbin/sysconfig; then
  5164. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5165. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5166. esac
  5167. fi
  5168. ;;
  5169. sco3.2v5*)
  5170. lt_cv_sys_max_cmd_len=102400
  5171. ;;
  5172. sysv5* | sco5v6* | sysv4.2uw2*)
  5173. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5174. if test -n "$kargmax"; then
  5175. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5176. else
  5177. lt_cv_sys_max_cmd_len=32768
  5178. fi
  5179. ;;
  5180. *)
  5181. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5182. if test -n "$lt_cv_sys_max_cmd_len"; then
  5183. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5184. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5185. else
  5186. # Make teststring a little bigger before we do anything with it.
  5187. # a 1K string should be a reasonable start.
  5188. for i in 1 2 3 4 5 6 7 8 ; do
  5189. teststring=$teststring$teststring
  5190. done
  5191. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5192. # If test is not a shell built-in, we'll probably end up computing a
  5193. # maximum length that is only half of the actual maximum length, but
  5194. # we can't tell.
  5195. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5196. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5197. test $i != 17 # 1/2 MB should be enough
  5198. do
  5199. i=`expr $i + 1`
  5200. teststring=$teststring$teststring
  5201. done
  5202. # Only check the string length outside the loop.
  5203. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5204. teststring=
  5205. # Add a significant safety factor because C++ compilers can tack on
  5206. # massive amounts of additional arguments before passing them to the
  5207. # linker. It appears as though 1/2 is a usable value.
  5208. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5209. fi
  5210. ;;
  5211. esac
  5212. fi
  5213. if test -n $lt_cv_sys_max_cmd_len ; then
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5215. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5216. else
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5218. $as_echo "none" >&6; }
  5219. fi
  5220. max_cmd_len=$lt_cv_sys_max_cmd_len
  5221. : ${CP="cp -f"}
  5222. : ${MV="mv -f"}
  5223. : ${RM="rm -f"}
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5225. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5226. # Try some XSI features
  5227. xsi_shell=no
  5228. ( _lt_dummy="a/b/c"
  5229. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5230. = c,a/b,, \
  5231. && eval 'test $(( 1 + 1 )) -eq 2 \
  5232. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5233. && xsi_shell=yes
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5235. $as_echo "$xsi_shell" >&6; }
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5237. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5238. lt_shell_append=no
  5239. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5240. >/dev/null 2>&1 \
  5241. && lt_shell_append=yes
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5243. $as_echo "$lt_shell_append" >&6; }
  5244. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5245. lt_unset=unset
  5246. else
  5247. lt_unset=false
  5248. fi
  5249. # test EBCDIC or ASCII
  5250. case `echo X|tr X '\101'` in
  5251. A) # ASCII based system
  5252. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5253. lt_SP2NL='tr \040 \012'
  5254. lt_NL2SP='tr \015\012 \040\040'
  5255. ;;
  5256. *) # EBCDIC based system
  5257. lt_SP2NL='tr \100 \n'
  5258. lt_NL2SP='tr \r\n \100\100'
  5259. ;;
  5260. esac
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5262. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5263. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5264. $as_echo_n "(cached) " >&6
  5265. else
  5266. lt_cv_ld_reload_flag='-r'
  5267. fi
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5269. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5270. reload_flag=$lt_cv_ld_reload_flag
  5271. case $reload_flag in
  5272. "" | " "*) ;;
  5273. *) reload_flag=" $reload_flag" ;;
  5274. esac
  5275. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5276. case $host_os in
  5277. darwin*)
  5278. if test "$GCC" = yes; then
  5279. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5280. else
  5281. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5282. fi
  5283. ;;
  5284. esac
  5285. if test -n "$ac_tool_prefix"; then
  5286. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5287. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5289. $as_echo_n "checking for $ac_word... " >&6; }
  5290. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5291. $as_echo_n "(cached) " >&6
  5292. else
  5293. if test -n "$OBJDUMP"; then
  5294. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5295. else
  5296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5297. for as_dir in $PATH
  5298. do
  5299. IFS=$as_save_IFS
  5300. test -z "$as_dir" && as_dir=.
  5301. for ac_exec_ext in '' $ac_executable_extensions; do
  5302. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5303. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5305. break 2
  5306. fi
  5307. done
  5308. done
  5309. IFS=$as_save_IFS
  5310. fi
  5311. fi
  5312. OBJDUMP=$ac_cv_prog_OBJDUMP
  5313. if test -n "$OBJDUMP"; then
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5315. $as_echo "$OBJDUMP" >&6; }
  5316. else
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5318. $as_echo "no" >&6; }
  5319. fi
  5320. fi
  5321. if test -z "$ac_cv_prog_OBJDUMP"; then
  5322. ac_ct_OBJDUMP=$OBJDUMP
  5323. # Extract the first word of "objdump", so it can be a program name with args.
  5324. set dummy objdump; ac_word=$2
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5326. $as_echo_n "checking for $ac_word... " >&6; }
  5327. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5328. $as_echo_n "(cached) " >&6
  5329. else
  5330. if test -n "$ac_ct_OBJDUMP"; then
  5331. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5332. else
  5333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5334. for as_dir in $PATH
  5335. do
  5336. IFS=$as_save_IFS
  5337. test -z "$as_dir" && as_dir=.
  5338. for ac_exec_ext in '' $ac_executable_extensions; do
  5339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5340. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5342. break 2
  5343. fi
  5344. done
  5345. done
  5346. IFS=$as_save_IFS
  5347. fi
  5348. fi
  5349. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5350. if test -n "$ac_ct_OBJDUMP"; then
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5352. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5353. else
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5355. $as_echo "no" >&6; }
  5356. fi
  5357. if test "x$ac_ct_OBJDUMP" = x; then
  5358. OBJDUMP="false"
  5359. else
  5360. case $cross_compiling:$ac_tool_warned in
  5361. yes:)
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5363. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5364. ac_tool_warned=yes ;;
  5365. esac
  5366. OBJDUMP=$ac_ct_OBJDUMP
  5367. fi
  5368. else
  5369. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5370. fi
  5371. test -z "$OBJDUMP" && OBJDUMP=objdump
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5373. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5374. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5375. $as_echo_n "(cached) " >&6
  5376. else
  5377. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5378. lt_cv_file_magic_test_file=
  5379. lt_cv_deplibs_check_method='unknown'
  5380. # Need to set the preceding variable on all platforms that support
  5381. # interlibrary dependencies.
  5382. # 'none' -- dependencies not supported.
  5383. # `unknown' -- same as none, but documents that we really don't know.
  5384. # 'pass_all' -- all dependencies passed with no checks.
  5385. # 'test_compile' -- check by making test program.
  5386. # 'file_magic [[regex]]' -- check by looking for files in library path
  5387. # which responds to the $file_magic_cmd with a given extended regex.
  5388. # If you have `file' or equivalent on your system and you're not sure
  5389. # whether `pass_all' will *always* work, you probably want this one.
  5390. case $host_os in
  5391. aix[4-9]*)
  5392. lt_cv_deplibs_check_method=pass_all
  5393. ;;
  5394. beos*)
  5395. lt_cv_deplibs_check_method=pass_all
  5396. ;;
  5397. bsdi[45]*)
  5398. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5399. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5400. lt_cv_file_magic_test_file=/shlib/libc.so
  5401. ;;
  5402. cygwin*)
  5403. # func_win32_libid is a shell function defined in ltmain.sh
  5404. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5405. lt_cv_file_magic_cmd='func_win32_libid'
  5406. ;;
  5407. mingw* | pw32*)
  5408. # Base MSYS/MinGW do not provide the 'file' command needed by
  5409. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5410. # unless we find 'file', for example because we are cross-compiling.
  5411. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5412. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5413. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5414. lt_cv_file_magic_cmd='func_win32_libid'
  5415. else
  5416. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5417. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5418. fi
  5419. ;;
  5420. cegcc*)
  5421. # use the weaker test based on 'objdump'. See mingw*.
  5422. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5423. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5424. ;;
  5425. darwin* | rhapsody*)
  5426. lt_cv_deplibs_check_method=pass_all
  5427. ;;
  5428. freebsd* | dragonfly*)
  5429. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5430. case $host_cpu in
  5431. i*86 )
  5432. # Not sure whether the presence of OpenBSD here was a mistake.
  5433. # Let's accept both of them until this is cleared up.
  5434. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5435. lt_cv_file_magic_cmd=/usr/bin/file
  5436. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5437. ;;
  5438. esac
  5439. else
  5440. lt_cv_deplibs_check_method=pass_all
  5441. fi
  5442. ;;
  5443. gnu*)
  5444. lt_cv_deplibs_check_method=pass_all
  5445. ;;
  5446. haiku*)
  5447. lt_cv_deplibs_check_method=pass_all
  5448. ;;
  5449. hpux10.20* | hpux11*)
  5450. lt_cv_file_magic_cmd=/usr/bin/file
  5451. case $host_cpu in
  5452. ia64*)
  5453. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5454. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5455. ;;
  5456. hppa*64*)
  5457. 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]'
  5458. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5459. ;;
  5460. *)
  5461. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5462. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5463. ;;
  5464. esac
  5465. ;;
  5466. interix[3-9]*)
  5467. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5468. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5469. ;;
  5470. irix5* | irix6* | nonstopux*)
  5471. case $LD in
  5472. *-32|*"-32 ") libmagic=32-bit;;
  5473. *-n32|*"-n32 ") libmagic=N32;;
  5474. *-64|*"-64 ") libmagic=64-bit;;
  5475. *) libmagic=never-match;;
  5476. esac
  5477. lt_cv_deplibs_check_method=pass_all
  5478. ;;
  5479. # This must be Linux ELF.
  5480. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5481. lt_cv_deplibs_check_method=pass_all
  5482. ;;
  5483. netbsd*)
  5484. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5485. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5486. else
  5487. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5488. fi
  5489. ;;
  5490. newos6*)
  5491. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5492. lt_cv_file_magic_cmd=/usr/bin/file
  5493. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5494. ;;
  5495. *nto* | *qnx*)
  5496. lt_cv_deplibs_check_method=pass_all
  5497. ;;
  5498. openbsd*)
  5499. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5500. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5501. else
  5502. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5503. fi
  5504. ;;
  5505. osf3* | osf4* | osf5*)
  5506. lt_cv_deplibs_check_method=pass_all
  5507. ;;
  5508. rdos*)
  5509. lt_cv_deplibs_check_method=pass_all
  5510. ;;
  5511. solaris*)
  5512. lt_cv_deplibs_check_method=pass_all
  5513. ;;
  5514. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5515. lt_cv_deplibs_check_method=pass_all
  5516. ;;
  5517. sysv4 | sysv4.3*)
  5518. case $host_vendor in
  5519. motorola)
  5520. 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]'
  5521. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5522. ;;
  5523. ncr)
  5524. lt_cv_deplibs_check_method=pass_all
  5525. ;;
  5526. sequent)
  5527. lt_cv_file_magic_cmd='/bin/file'
  5528. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5529. ;;
  5530. sni)
  5531. lt_cv_file_magic_cmd='/bin/file'
  5532. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5533. lt_cv_file_magic_test_file=/lib/libc.so
  5534. ;;
  5535. siemens)
  5536. lt_cv_deplibs_check_method=pass_all
  5537. ;;
  5538. pc)
  5539. lt_cv_deplibs_check_method=pass_all
  5540. ;;
  5541. esac
  5542. ;;
  5543. tpf*)
  5544. lt_cv_deplibs_check_method=pass_all
  5545. ;;
  5546. esac
  5547. fi
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5549. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5550. file_magic_cmd=$lt_cv_file_magic_cmd
  5551. deplibs_check_method=$lt_cv_deplibs_check_method
  5552. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5553. if test -n "$ac_tool_prefix"; then
  5554. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5555. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5557. $as_echo_n "checking for $ac_word... " >&6; }
  5558. if test "${ac_cv_prog_AR+set}" = set; then :
  5559. $as_echo_n "(cached) " >&6
  5560. else
  5561. if test -n "$AR"; then
  5562. ac_cv_prog_AR="$AR" # Let the user override the test.
  5563. else
  5564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5565. for as_dir in $PATH
  5566. do
  5567. IFS=$as_save_IFS
  5568. test -z "$as_dir" && as_dir=.
  5569. for ac_exec_ext in '' $ac_executable_extensions; do
  5570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5571. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5573. break 2
  5574. fi
  5575. done
  5576. done
  5577. IFS=$as_save_IFS
  5578. fi
  5579. fi
  5580. AR=$ac_cv_prog_AR
  5581. if test -n "$AR"; then
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5583. $as_echo "$AR" >&6; }
  5584. else
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5586. $as_echo "no" >&6; }
  5587. fi
  5588. fi
  5589. if test -z "$ac_cv_prog_AR"; then
  5590. ac_ct_AR=$AR
  5591. # Extract the first word of "ar", so it can be a program name with args.
  5592. set dummy ar; ac_word=$2
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5594. $as_echo_n "checking for $ac_word... " >&6; }
  5595. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5596. $as_echo_n "(cached) " >&6
  5597. else
  5598. if test -n "$ac_ct_AR"; then
  5599. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5600. else
  5601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5602. for as_dir in $PATH
  5603. do
  5604. IFS=$as_save_IFS
  5605. test -z "$as_dir" && as_dir=.
  5606. for ac_exec_ext in '' $ac_executable_extensions; do
  5607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5608. ac_cv_prog_ac_ct_AR="ar"
  5609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5610. break 2
  5611. fi
  5612. done
  5613. done
  5614. IFS=$as_save_IFS
  5615. fi
  5616. fi
  5617. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5618. if test -n "$ac_ct_AR"; then
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5620. $as_echo "$ac_ct_AR" >&6; }
  5621. else
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5623. $as_echo "no" >&6; }
  5624. fi
  5625. if test "x$ac_ct_AR" = x; then
  5626. AR="false"
  5627. else
  5628. case $cross_compiling:$ac_tool_warned in
  5629. yes:)
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5632. ac_tool_warned=yes ;;
  5633. esac
  5634. AR=$ac_ct_AR
  5635. fi
  5636. else
  5637. AR="$ac_cv_prog_AR"
  5638. fi
  5639. test -z "$AR" && AR=ar
  5640. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5641. if test -n "$ac_tool_prefix"; then
  5642. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5643. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5645. $as_echo_n "checking for $ac_word... " >&6; }
  5646. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. if test -n "$STRIP"; then
  5650. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5651. else
  5652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5653. for as_dir in $PATH
  5654. do
  5655. IFS=$as_save_IFS
  5656. test -z "$as_dir" && as_dir=.
  5657. for ac_exec_ext in '' $ac_executable_extensions; do
  5658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5659. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5661. break 2
  5662. fi
  5663. done
  5664. done
  5665. IFS=$as_save_IFS
  5666. fi
  5667. fi
  5668. STRIP=$ac_cv_prog_STRIP
  5669. if test -n "$STRIP"; then
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5671. $as_echo "$STRIP" >&6; }
  5672. else
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5674. $as_echo "no" >&6; }
  5675. fi
  5676. fi
  5677. if test -z "$ac_cv_prog_STRIP"; then
  5678. ac_ct_STRIP=$STRIP
  5679. # Extract the first word of "strip", so it can be a program name with args.
  5680. set dummy strip; ac_word=$2
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5682. $as_echo_n "checking for $ac_word... " >&6; }
  5683. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. if test -n "$ac_ct_STRIP"; then
  5687. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5688. else
  5689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5690. for as_dir in $PATH
  5691. do
  5692. IFS=$as_save_IFS
  5693. test -z "$as_dir" && as_dir=.
  5694. for ac_exec_ext in '' $ac_executable_extensions; do
  5695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5696. ac_cv_prog_ac_ct_STRIP="strip"
  5697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5698. break 2
  5699. fi
  5700. done
  5701. done
  5702. IFS=$as_save_IFS
  5703. fi
  5704. fi
  5705. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5706. if test -n "$ac_ct_STRIP"; then
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5708. $as_echo "$ac_ct_STRIP" >&6; }
  5709. else
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5711. $as_echo "no" >&6; }
  5712. fi
  5713. if test "x$ac_ct_STRIP" = x; then
  5714. STRIP=":"
  5715. else
  5716. case $cross_compiling:$ac_tool_warned in
  5717. yes:)
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5719. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5720. ac_tool_warned=yes ;;
  5721. esac
  5722. STRIP=$ac_ct_STRIP
  5723. fi
  5724. else
  5725. STRIP="$ac_cv_prog_STRIP"
  5726. fi
  5727. test -z "$STRIP" && STRIP=:
  5728. if test -n "$ac_tool_prefix"; then
  5729. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5730. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5732. $as_echo_n "checking for $ac_word... " >&6; }
  5733. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. if test -n "$RANLIB"; then
  5737. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5738. else
  5739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5740. for as_dir in $PATH
  5741. do
  5742. IFS=$as_save_IFS
  5743. test -z "$as_dir" && as_dir=.
  5744. for ac_exec_ext in '' $ac_executable_extensions; do
  5745. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5746. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5748. break 2
  5749. fi
  5750. done
  5751. done
  5752. IFS=$as_save_IFS
  5753. fi
  5754. fi
  5755. RANLIB=$ac_cv_prog_RANLIB
  5756. if test -n "$RANLIB"; then
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5758. $as_echo "$RANLIB" >&6; }
  5759. else
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5761. $as_echo "no" >&6; }
  5762. fi
  5763. fi
  5764. if test -z "$ac_cv_prog_RANLIB"; then
  5765. ac_ct_RANLIB=$RANLIB
  5766. # Extract the first word of "ranlib", so it can be a program name with args.
  5767. set dummy ranlib; ac_word=$2
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5769. $as_echo_n "checking for $ac_word... " >&6; }
  5770. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5771. $as_echo_n "(cached) " >&6
  5772. else
  5773. if test -n "$ac_ct_RANLIB"; then
  5774. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5775. else
  5776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5777. for as_dir in $PATH
  5778. do
  5779. IFS=$as_save_IFS
  5780. test -z "$as_dir" && as_dir=.
  5781. for ac_exec_ext in '' $ac_executable_extensions; do
  5782. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5783. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5785. break 2
  5786. fi
  5787. done
  5788. done
  5789. IFS=$as_save_IFS
  5790. fi
  5791. fi
  5792. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5793. if test -n "$ac_ct_RANLIB"; then
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5795. $as_echo "$ac_ct_RANLIB" >&6; }
  5796. else
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5798. $as_echo "no" >&6; }
  5799. fi
  5800. if test "x$ac_ct_RANLIB" = x; then
  5801. RANLIB=":"
  5802. else
  5803. case $cross_compiling:$ac_tool_warned in
  5804. yes:)
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5807. ac_tool_warned=yes ;;
  5808. esac
  5809. RANLIB=$ac_ct_RANLIB
  5810. fi
  5811. else
  5812. RANLIB="$ac_cv_prog_RANLIB"
  5813. fi
  5814. test -z "$RANLIB" && RANLIB=:
  5815. # Determine commands to create old-style static archives.
  5816. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5817. old_postinstall_cmds='chmod 644 $oldlib'
  5818. old_postuninstall_cmds=
  5819. if test -n "$RANLIB"; then
  5820. case $host_os in
  5821. openbsd*)
  5822. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5823. ;;
  5824. *)
  5825. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5826. ;;
  5827. esac
  5828. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5829. fi
  5830. case $host_os in
  5831. darwin*)
  5832. lock_old_archive_extraction=yes ;;
  5833. *)
  5834. lock_old_archive_extraction=no ;;
  5835. esac
  5836. # If no C compiler was specified, use CC.
  5837. LTCC=${LTCC-"$CC"}
  5838. # If no C compiler flags were specified, use CFLAGS.
  5839. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5840. # Allow CC to be a program name with arguments.
  5841. compiler=$CC
  5842. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5844. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5845. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5846. $as_echo_n "(cached) " >&6
  5847. else
  5848. # These are sane defaults that work on at least a few old systems.
  5849. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5850. # Character class describing NM global symbol codes.
  5851. symcode='[BCDEGRST]'
  5852. # Regexp to match symbols that can be accessed directly from C.
  5853. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5854. # Define system-specific variables.
  5855. case $host_os in
  5856. aix*)
  5857. symcode='[BCDT]'
  5858. ;;
  5859. cygwin* | mingw* | pw32* | cegcc*)
  5860. symcode='[ABCDGISTW]'
  5861. ;;
  5862. hpux*)
  5863. if test "$host_cpu" = ia64; then
  5864. symcode='[ABCDEGRST]'
  5865. fi
  5866. ;;
  5867. irix* | nonstopux*)
  5868. symcode='[BCDEGRST]'
  5869. ;;
  5870. osf*)
  5871. symcode='[BCDEGQRST]'
  5872. ;;
  5873. solaris*)
  5874. symcode='[BDRT]'
  5875. ;;
  5876. sco3.2v5*)
  5877. symcode='[DT]'
  5878. ;;
  5879. sysv4.2uw2*)
  5880. symcode='[DT]'
  5881. ;;
  5882. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5883. symcode='[ABDT]'
  5884. ;;
  5885. sysv4)
  5886. symcode='[DFNSTU]'
  5887. ;;
  5888. esac
  5889. # If we're using GNU nm, then use its standard symbol codes.
  5890. case `$NM -V 2>&1` in
  5891. *GNU* | *'with BFD'*)
  5892. symcode='[ABCDGIRSTW]' ;;
  5893. esac
  5894. # Transform an extracted symbol line into a proper C declaration.
  5895. # Some systems (esp. on ia64) link data and code symbols differently,
  5896. # so use this general approach.
  5897. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5898. # Transform an extracted symbol line into symbol name and symbol address
  5899. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5900. 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'"
  5901. # Handle CRLF in mingw tool chain
  5902. opt_cr=
  5903. case $build_os in
  5904. mingw*)
  5905. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5906. ;;
  5907. esac
  5908. # Try without a prefix underscore, then with it.
  5909. for ac_symprfx in "" "_"; do
  5910. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5911. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5912. # Write the raw and C identifiers.
  5913. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5914. # Fake it for dumpbin and say T for any non-static function
  5915. # and D for any global variable.
  5916. # Also find C++ and __fastcall symbols from MSVC++,
  5917. # which start with @ or ?.
  5918. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5919. " {last_section=section; section=\$ 3};"\
  5920. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5921. " \$ 0!~/External *\|/{next};"\
  5922. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5923. " {if(hide[section]) next};"\
  5924. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5925. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5926. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5927. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5928. " ' prfx=^$ac_symprfx"
  5929. else
  5930. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5931. fi
  5932. # Check to see that the pipe works correctly.
  5933. pipe_works=no
  5934. rm -f conftest*
  5935. cat > conftest.$ac_ext <<_LT_EOF
  5936. #ifdef __cplusplus
  5937. extern "C" {
  5938. #endif
  5939. char nm_test_var;
  5940. void nm_test_func(void);
  5941. void nm_test_func(void){}
  5942. #ifdef __cplusplus
  5943. }
  5944. #endif
  5945. int main(){nm_test_var='a';nm_test_func();return(0);}
  5946. _LT_EOF
  5947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5948. (eval $ac_compile) 2>&5
  5949. ac_status=$?
  5950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5951. test $ac_status = 0; }; then
  5952. # Now try to grab the symbols.
  5953. nlist=conftest.nm
  5954. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5955. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5956. ac_status=$?
  5957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5958. test $ac_status = 0; } && test -s "$nlist"; then
  5959. # Try sorting and uniquifying the output.
  5960. if sort "$nlist" | uniq > "$nlist"T; then
  5961. mv -f "$nlist"T "$nlist"
  5962. else
  5963. rm -f "$nlist"T
  5964. fi
  5965. # Make sure that we snagged all the symbols we need.
  5966. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5967. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5968. cat <<_LT_EOF > conftest.$ac_ext
  5969. #ifdef __cplusplus
  5970. extern "C" {
  5971. #endif
  5972. _LT_EOF
  5973. # Now generate the symbol file.
  5974. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5975. cat <<_LT_EOF >> conftest.$ac_ext
  5976. /* The mapping between symbol names and symbols. */
  5977. const struct {
  5978. const char *name;
  5979. void *address;
  5980. }
  5981. lt__PROGRAM__LTX_preloaded_symbols[] =
  5982. {
  5983. { "@PROGRAM@", (void *) 0 },
  5984. _LT_EOF
  5985. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5986. cat <<\_LT_EOF >> conftest.$ac_ext
  5987. {0, (void *) 0}
  5988. };
  5989. /* This works around a problem in FreeBSD linker */
  5990. #ifdef FREEBSD_WORKAROUND
  5991. static const void *lt_preloaded_setup() {
  5992. return lt__PROGRAM__LTX_preloaded_symbols;
  5993. }
  5994. #endif
  5995. #ifdef __cplusplus
  5996. }
  5997. #endif
  5998. _LT_EOF
  5999. # Now try linking the two files.
  6000. mv conftest.$ac_objext conftstm.$ac_objext
  6001. lt_save_LIBS="$LIBS"
  6002. lt_save_CFLAGS="$CFLAGS"
  6003. LIBS="conftstm.$ac_objext"
  6004. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6005. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6006. (eval $ac_link) 2>&5
  6007. ac_status=$?
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6009. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6010. pipe_works=yes
  6011. fi
  6012. LIBS="$lt_save_LIBS"
  6013. CFLAGS="$lt_save_CFLAGS"
  6014. else
  6015. echo "cannot find nm_test_func in $nlist" >&5
  6016. fi
  6017. else
  6018. echo "cannot find nm_test_var in $nlist" >&5
  6019. fi
  6020. else
  6021. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6022. fi
  6023. else
  6024. echo "$progname: failed program was:" >&5
  6025. cat conftest.$ac_ext >&5
  6026. fi
  6027. rm -rf conftest* conftst*
  6028. # Do not use the global_symbol_pipe unless it works.
  6029. if test "$pipe_works" = yes; then
  6030. break
  6031. else
  6032. lt_cv_sys_global_symbol_pipe=
  6033. fi
  6034. done
  6035. fi
  6036. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6037. lt_cv_sys_global_symbol_to_cdecl=
  6038. fi
  6039. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6041. $as_echo "failed" >&6; }
  6042. else
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6044. $as_echo "ok" >&6; }
  6045. fi
  6046. # Check whether --enable-libtool-lock was given.
  6047. if test "${enable_libtool_lock+set}" = set; then :
  6048. enableval=$enable_libtool_lock;
  6049. fi
  6050. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6051. # Some flags need to be propagated to the compiler or linker for good
  6052. # libtool support.
  6053. case $host in
  6054. ia64-*-hpux*)
  6055. # Find out which ABI we are using.
  6056. echo 'int i;' > conftest.$ac_ext
  6057. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6058. (eval $ac_compile) 2>&5
  6059. ac_status=$?
  6060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6061. test $ac_status = 0; }; then
  6062. case `/usr/bin/file conftest.$ac_objext` in
  6063. *ELF-32*)
  6064. HPUX_IA64_MODE="32"
  6065. ;;
  6066. *ELF-64*)
  6067. HPUX_IA64_MODE="64"
  6068. ;;
  6069. esac
  6070. fi
  6071. rm -rf conftest*
  6072. ;;
  6073. *-*-irix6*)
  6074. # Find out which ABI we are using.
  6075. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6076. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6077. (eval $ac_compile) 2>&5
  6078. ac_status=$?
  6079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6080. test $ac_status = 0; }; then
  6081. if test "$lt_cv_prog_gnu_ld" = yes; then
  6082. case `/usr/bin/file conftest.$ac_objext` in
  6083. *32-bit*)
  6084. LD="${LD-ld} -melf32bsmip"
  6085. ;;
  6086. *N32*)
  6087. LD="${LD-ld} -melf32bmipn32"
  6088. ;;
  6089. *64-bit*)
  6090. LD="${LD-ld} -melf64bmip"
  6091. ;;
  6092. esac
  6093. else
  6094. case `/usr/bin/file conftest.$ac_objext` in
  6095. *32-bit*)
  6096. LD="${LD-ld} -32"
  6097. ;;
  6098. *N32*)
  6099. LD="${LD-ld} -n32"
  6100. ;;
  6101. *64-bit*)
  6102. LD="${LD-ld} -64"
  6103. ;;
  6104. esac
  6105. fi
  6106. fi
  6107. rm -rf conftest*
  6108. ;;
  6109. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6110. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6111. # Find out which ABI we are using.
  6112. echo 'int i;' > conftest.$ac_ext
  6113. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6114. (eval $ac_compile) 2>&5
  6115. ac_status=$?
  6116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6117. test $ac_status = 0; }; then
  6118. case `/usr/bin/file conftest.o` in
  6119. *32-bit*)
  6120. case $host in
  6121. x86_64-*kfreebsd*-gnu)
  6122. LD="${LD-ld} -m elf_i386_fbsd"
  6123. ;;
  6124. x86_64-*linux*)
  6125. case `/usr/bin/file conftest.o` in
  6126. *x86-64*)
  6127. LD="${LD-ld} -m elf32_x86_64"
  6128. ;;
  6129. *)
  6130. LD="${LD-ld} -m elf_i386"
  6131. ;;
  6132. esac
  6133. ;;
  6134. powerpc64le-*linux*)
  6135. LD="${LD-ld} -m elf32lppclinux"
  6136. ;;
  6137. powerpc64-*linux*)
  6138. LD="${LD-ld} -m elf32ppclinux"
  6139. ;;
  6140. s390x-*linux*)
  6141. LD="${LD-ld} -m elf_s390"
  6142. ;;
  6143. sparc64-*linux*)
  6144. LD="${LD-ld} -m elf32_sparc"
  6145. ;;
  6146. esac
  6147. ;;
  6148. *64-bit*)
  6149. case $host in
  6150. x86_64-*kfreebsd*-gnu)
  6151. LD="${LD-ld} -m elf_x86_64_fbsd"
  6152. ;;
  6153. x86_64-*linux*)
  6154. LD="${LD-ld} -m elf_x86_64"
  6155. ;;
  6156. powerpcle-*linux*)
  6157. LD="${LD-ld} -m elf64lppc"
  6158. ;;
  6159. powerpc-*linux*)
  6160. LD="${LD-ld} -m elf64ppc"
  6161. ;;
  6162. s390*-*linux*|s390*-*tpf*)
  6163. LD="${LD-ld} -m elf64_s390"
  6164. ;;
  6165. sparc*-*linux*)
  6166. LD="${LD-ld} -m elf64_sparc"
  6167. ;;
  6168. esac
  6169. ;;
  6170. esac
  6171. fi
  6172. rm -rf conftest*
  6173. ;;
  6174. *-*-sco3.2v5*)
  6175. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6176. SAVE_CFLAGS="$CFLAGS"
  6177. CFLAGS="$CFLAGS -belf"
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6179. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6180. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. ac_ext=c
  6184. ac_cpp='$CPP $CPPFLAGS'
  6185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6189. /* end confdefs.h. */
  6190. int
  6191. main ()
  6192. {
  6193. ;
  6194. return 0;
  6195. }
  6196. _ACEOF
  6197. if ac_fn_c_try_link "$LINENO"; then :
  6198. lt_cv_cc_needs_belf=yes
  6199. else
  6200. lt_cv_cc_needs_belf=no
  6201. fi
  6202. rm -f core conftest.err conftest.$ac_objext \
  6203. conftest$ac_exeext conftest.$ac_ext
  6204. ac_ext=c
  6205. ac_cpp='$CPP $CPPFLAGS'
  6206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6211. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6212. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6213. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6214. CFLAGS="$SAVE_CFLAGS"
  6215. fi
  6216. ;;
  6217. sparc*-*solaris*)
  6218. # Find out which ABI we are using.
  6219. echo 'int i;' > conftest.$ac_ext
  6220. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6221. (eval $ac_compile) 2>&5
  6222. ac_status=$?
  6223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6224. test $ac_status = 0; }; then
  6225. case `/usr/bin/file conftest.o` in
  6226. *64-bit*)
  6227. case $lt_cv_prog_gnu_ld in
  6228. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6229. *)
  6230. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6231. LD="${LD-ld} -64"
  6232. fi
  6233. ;;
  6234. esac
  6235. ;;
  6236. esac
  6237. fi
  6238. rm -rf conftest*
  6239. ;;
  6240. esac
  6241. need_locks="$enable_libtool_lock"
  6242. case $host_os in
  6243. rhapsody* | darwin*)
  6244. if test -n "$ac_tool_prefix"; then
  6245. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6246. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6248. $as_echo_n "checking for $ac_word... " >&6; }
  6249. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. if test -n "$DSYMUTIL"; then
  6253. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6262. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6272. if test -n "$DSYMUTIL"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6274. $as_echo "$DSYMUTIL" >&6; }
  6275. else
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. $as_echo "no" >&6; }
  6278. fi
  6279. fi
  6280. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6281. ac_ct_DSYMUTIL=$DSYMUTIL
  6282. # Extract the first word of "dsymutil", so it can be a program name with args.
  6283. set dummy dsymutil; ac_word=$2
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6285. $as_echo_n "checking for $ac_word... " >&6; }
  6286. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. if test -n "$ac_ct_DSYMUTIL"; then
  6290. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6291. else
  6292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293. for as_dir in $PATH
  6294. do
  6295. IFS=$as_save_IFS
  6296. test -z "$as_dir" && as_dir=.
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6299. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301. break 2
  6302. fi
  6303. done
  6304. done
  6305. IFS=$as_save_IFS
  6306. fi
  6307. fi
  6308. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6309. if test -n "$ac_ct_DSYMUTIL"; then
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6311. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6312. else
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6314. $as_echo "no" >&6; }
  6315. fi
  6316. if test "x$ac_ct_DSYMUTIL" = x; then
  6317. DSYMUTIL=":"
  6318. else
  6319. case $cross_compiling:$ac_tool_warned in
  6320. yes:)
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6322. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6323. ac_tool_warned=yes ;;
  6324. esac
  6325. DSYMUTIL=$ac_ct_DSYMUTIL
  6326. fi
  6327. else
  6328. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6329. fi
  6330. if test -n "$ac_tool_prefix"; then
  6331. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6332. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6334. $as_echo_n "checking for $ac_word... " >&6; }
  6335. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6336. $as_echo_n "(cached) " >&6
  6337. else
  6338. if test -n "$NMEDIT"; then
  6339. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6340. else
  6341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6342. for as_dir in $PATH
  6343. do
  6344. IFS=$as_save_IFS
  6345. test -z "$as_dir" && as_dir=.
  6346. for ac_exec_ext in '' $ac_executable_extensions; do
  6347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6348. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6350. break 2
  6351. fi
  6352. done
  6353. done
  6354. IFS=$as_save_IFS
  6355. fi
  6356. fi
  6357. NMEDIT=$ac_cv_prog_NMEDIT
  6358. if test -n "$NMEDIT"; then
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6360. $as_echo "$NMEDIT" >&6; }
  6361. else
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6363. $as_echo "no" >&6; }
  6364. fi
  6365. fi
  6366. if test -z "$ac_cv_prog_NMEDIT"; then
  6367. ac_ct_NMEDIT=$NMEDIT
  6368. # Extract the first word of "nmedit", so it can be a program name with args.
  6369. set dummy nmedit; ac_word=$2
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6371. $as_echo_n "checking for $ac_word... " >&6; }
  6372. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6373. $as_echo_n "(cached) " >&6
  6374. else
  6375. if test -n "$ac_ct_NMEDIT"; then
  6376. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6377. else
  6378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6379. for as_dir in $PATH
  6380. do
  6381. IFS=$as_save_IFS
  6382. test -z "$as_dir" && as_dir=.
  6383. for ac_exec_ext in '' $ac_executable_extensions; do
  6384. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6385. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6387. break 2
  6388. fi
  6389. done
  6390. done
  6391. IFS=$as_save_IFS
  6392. fi
  6393. fi
  6394. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6395. if test -n "$ac_ct_NMEDIT"; then
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6397. $as_echo "$ac_ct_NMEDIT" >&6; }
  6398. else
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6400. $as_echo "no" >&6; }
  6401. fi
  6402. if test "x$ac_ct_NMEDIT" = x; then
  6403. NMEDIT=":"
  6404. else
  6405. case $cross_compiling:$ac_tool_warned in
  6406. yes:)
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6408. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6409. ac_tool_warned=yes ;;
  6410. esac
  6411. NMEDIT=$ac_ct_NMEDIT
  6412. fi
  6413. else
  6414. NMEDIT="$ac_cv_prog_NMEDIT"
  6415. fi
  6416. if test -n "$ac_tool_prefix"; then
  6417. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6418. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. $as_echo_n "checking for $ac_word... " >&6; }
  6421. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. if test -n "$LIPO"; then
  6425. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6434. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. LIPO=$ac_cv_prog_LIPO
  6444. if test -n "$LIPO"; then
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6446. $as_echo "$LIPO" >&6; }
  6447. else
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. $as_echo "no" >&6; }
  6450. fi
  6451. fi
  6452. if test -z "$ac_cv_prog_LIPO"; then
  6453. ac_ct_LIPO=$LIPO
  6454. # Extract the first word of "lipo", so it can be a program name with args.
  6455. set dummy lipo; ac_word=$2
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6457. $as_echo_n "checking for $ac_word... " >&6; }
  6458. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. if test -n "$ac_ct_LIPO"; then
  6462. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6463. else
  6464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6465. for as_dir in $PATH
  6466. do
  6467. IFS=$as_save_IFS
  6468. test -z "$as_dir" && as_dir=.
  6469. for ac_exec_ext in '' $ac_executable_extensions; do
  6470. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6471. ac_cv_prog_ac_ct_LIPO="lipo"
  6472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6473. break 2
  6474. fi
  6475. done
  6476. done
  6477. IFS=$as_save_IFS
  6478. fi
  6479. fi
  6480. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6481. if test -n "$ac_ct_LIPO"; then
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6483. $as_echo "$ac_ct_LIPO" >&6; }
  6484. else
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6486. $as_echo "no" >&6; }
  6487. fi
  6488. if test "x$ac_ct_LIPO" = x; then
  6489. LIPO=":"
  6490. else
  6491. case $cross_compiling:$ac_tool_warned in
  6492. yes:)
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6495. ac_tool_warned=yes ;;
  6496. esac
  6497. LIPO=$ac_ct_LIPO
  6498. fi
  6499. else
  6500. LIPO="$ac_cv_prog_LIPO"
  6501. fi
  6502. if test -n "$ac_tool_prefix"; then
  6503. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6504. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6506. $as_echo_n "checking for $ac_word... " >&6; }
  6507. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6508. $as_echo_n "(cached) " >&6
  6509. else
  6510. if test -n "$OTOOL"; then
  6511. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6512. else
  6513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6514. for as_dir in $PATH
  6515. do
  6516. IFS=$as_save_IFS
  6517. test -z "$as_dir" && as_dir=.
  6518. for ac_exec_ext in '' $ac_executable_extensions; do
  6519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6520. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6522. break 2
  6523. fi
  6524. done
  6525. done
  6526. IFS=$as_save_IFS
  6527. fi
  6528. fi
  6529. OTOOL=$ac_cv_prog_OTOOL
  6530. if test -n "$OTOOL"; then
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6532. $as_echo "$OTOOL" >&6; }
  6533. else
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6535. $as_echo "no" >&6; }
  6536. fi
  6537. fi
  6538. if test -z "$ac_cv_prog_OTOOL"; then
  6539. ac_ct_OTOOL=$OTOOL
  6540. # Extract the first word of "otool", so it can be a program name with args.
  6541. set dummy otool; ac_word=$2
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6543. $as_echo_n "checking for $ac_word... " >&6; }
  6544. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6545. $as_echo_n "(cached) " >&6
  6546. else
  6547. if test -n "$ac_ct_OTOOL"; then
  6548. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6549. else
  6550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6551. for as_dir in $PATH
  6552. do
  6553. IFS=$as_save_IFS
  6554. test -z "$as_dir" && as_dir=.
  6555. for ac_exec_ext in '' $ac_executable_extensions; do
  6556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6557. ac_cv_prog_ac_ct_OTOOL="otool"
  6558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6559. break 2
  6560. fi
  6561. done
  6562. done
  6563. IFS=$as_save_IFS
  6564. fi
  6565. fi
  6566. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6567. if test -n "$ac_ct_OTOOL"; then
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6569. $as_echo "$ac_ct_OTOOL" >&6; }
  6570. else
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6572. $as_echo "no" >&6; }
  6573. fi
  6574. if test "x$ac_ct_OTOOL" = x; then
  6575. OTOOL=":"
  6576. else
  6577. case $cross_compiling:$ac_tool_warned in
  6578. yes:)
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6580. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6581. ac_tool_warned=yes ;;
  6582. esac
  6583. OTOOL=$ac_ct_OTOOL
  6584. fi
  6585. else
  6586. OTOOL="$ac_cv_prog_OTOOL"
  6587. fi
  6588. if test -n "$ac_tool_prefix"; then
  6589. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6590. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6592. $as_echo_n "checking for $ac_word... " >&6; }
  6593. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. if test -n "$OTOOL64"; then
  6597. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6598. else
  6599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6600. for as_dir in $PATH
  6601. do
  6602. IFS=$as_save_IFS
  6603. test -z "$as_dir" && as_dir=.
  6604. for ac_exec_ext in '' $ac_executable_extensions; do
  6605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6606. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6608. break 2
  6609. fi
  6610. done
  6611. done
  6612. IFS=$as_save_IFS
  6613. fi
  6614. fi
  6615. OTOOL64=$ac_cv_prog_OTOOL64
  6616. if test -n "$OTOOL64"; then
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6618. $as_echo "$OTOOL64" >&6; }
  6619. else
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6621. $as_echo "no" >&6; }
  6622. fi
  6623. fi
  6624. if test -z "$ac_cv_prog_OTOOL64"; then
  6625. ac_ct_OTOOL64=$OTOOL64
  6626. # Extract the first word of "otool64", so it can be a program name with args.
  6627. set dummy otool64; ac_word=$2
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6629. $as_echo_n "checking for $ac_word... " >&6; }
  6630. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. if test -n "$ac_ct_OTOOL64"; then
  6634. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6635. else
  6636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6637. for as_dir in $PATH
  6638. do
  6639. IFS=$as_save_IFS
  6640. test -z "$as_dir" && as_dir=.
  6641. for ac_exec_ext in '' $ac_executable_extensions; do
  6642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6643. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6645. break 2
  6646. fi
  6647. done
  6648. done
  6649. IFS=$as_save_IFS
  6650. fi
  6651. fi
  6652. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6653. if test -n "$ac_ct_OTOOL64"; then
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6655. $as_echo "$ac_ct_OTOOL64" >&6; }
  6656. else
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6658. $as_echo "no" >&6; }
  6659. fi
  6660. if test "x$ac_ct_OTOOL64" = x; then
  6661. OTOOL64=":"
  6662. else
  6663. case $cross_compiling:$ac_tool_warned in
  6664. yes:)
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6666. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6667. ac_tool_warned=yes ;;
  6668. esac
  6669. OTOOL64=$ac_ct_OTOOL64
  6670. fi
  6671. else
  6672. OTOOL64="$ac_cv_prog_OTOOL64"
  6673. fi
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6675. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6676. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6677. $as_echo_n "(cached) " >&6
  6678. else
  6679. lt_cv_apple_cc_single_mod=no
  6680. if test -z "${LT_MULTI_MODULE}"; then
  6681. # By default we will add the -single_module flag. You can override
  6682. # by either setting the environment variable LT_MULTI_MODULE
  6683. # non-empty at configure time, or by adding -multi_module to the
  6684. # link flags.
  6685. rm -rf libconftest.dylib*
  6686. echo "int foo(void){return 1;}" > conftest.c
  6687. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6688. -dynamiclib -Wl,-single_module conftest.c" >&5
  6689. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6690. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6691. _lt_result=$?
  6692. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6693. lt_cv_apple_cc_single_mod=yes
  6694. else
  6695. cat conftest.err >&5
  6696. fi
  6697. rm -rf libconftest.dylib*
  6698. rm -f conftest.*
  6699. fi
  6700. fi
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6702. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6704. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6705. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. lt_cv_ld_exported_symbols_list=no
  6709. save_LDFLAGS=$LDFLAGS
  6710. echo "_main" > conftest.sym
  6711. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6713. /* end confdefs.h. */
  6714. int
  6715. main ()
  6716. {
  6717. ;
  6718. return 0;
  6719. }
  6720. _ACEOF
  6721. if ac_fn_c_try_link "$LINENO"; then :
  6722. lt_cv_ld_exported_symbols_list=yes
  6723. else
  6724. lt_cv_ld_exported_symbols_list=no
  6725. fi
  6726. rm -f core conftest.err conftest.$ac_objext \
  6727. conftest$ac_exeext conftest.$ac_ext
  6728. LDFLAGS="$save_LDFLAGS"
  6729. fi
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6731. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6733. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6734. if test "${lt_cv_ld_force_load+set}" = set; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. lt_cv_ld_force_load=no
  6738. cat > conftest.c << _LT_EOF
  6739. int forced_loaded() { return 2;}
  6740. _LT_EOF
  6741. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6742. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6743. echo "$AR cru libconftest.a conftest.o" >&5
  6744. $AR cru libconftest.a conftest.o 2>&5
  6745. cat > conftest.c << _LT_EOF
  6746. int main() { return 0;}
  6747. _LT_EOF
  6748. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6749. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6750. _lt_result=$?
  6751. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6752. lt_cv_ld_force_load=yes
  6753. else
  6754. cat conftest.err >&5
  6755. fi
  6756. rm -f conftest.err libconftest.a conftest conftest.c
  6757. rm -rf conftest.dSYM
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6760. $as_echo "$lt_cv_ld_force_load" >&6; }
  6761. case $host_os in
  6762. rhapsody* | darwin1.[012])
  6763. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6764. darwin1.*)
  6765. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6766. darwin*) # darwin 5.x on
  6767. # if running on 10.5 or later, the deployment target defaults
  6768. # to the OS version, if on x86, and 10.4, the deployment
  6769. # target defaults to 10.4. Don't you love it?
  6770. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6771. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6772. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6773. 10.[012][,.]*)
  6774. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6775. 10.*)
  6776. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6777. esac
  6778. ;;
  6779. esac
  6780. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6781. _lt_dar_single_mod='$single_module'
  6782. fi
  6783. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6784. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6785. else
  6786. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6787. fi
  6788. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6789. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6790. else
  6791. _lt_dsymutil=
  6792. fi
  6793. ;;
  6794. esac
  6795. for ac_header in dlfcn.h
  6796. do :
  6797. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6798. "
  6799. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6800. cat >>confdefs.h <<_ACEOF
  6801. #define HAVE_DLFCN_H 1
  6802. _ACEOF
  6803. fi
  6804. done
  6805. # Set options
  6806. enable_dlopen=no
  6807. enable_win32_dll=no
  6808. # Check whether --enable-static was given.
  6809. if test "${enable_static+set}" = set; then :
  6810. enableval=$enable_static; p=${PACKAGE-default}
  6811. case $enableval in
  6812. yes) enable_static=yes ;;
  6813. no) enable_static=no ;;
  6814. *)
  6815. enable_static=no
  6816. # Look at the argument we got. We use all the common list separators.
  6817. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6818. for pkg in $enableval; do
  6819. IFS="$lt_save_ifs"
  6820. if test "X$pkg" = "X$p"; then
  6821. enable_static=yes
  6822. fi
  6823. done
  6824. IFS="$lt_save_ifs"
  6825. ;;
  6826. esac
  6827. else
  6828. enable_static=yes
  6829. fi
  6830. # Check whether --with-pic was given.
  6831. if test "${with_pic+set}" = set; then :
  6832. withval=$with_pic; pic_mode="$withval"
  6833. else
  6834. pic_mode=default
  6835. fi
  6836. test -z "$pic_mode" && pic_mode=default
  6837. # Check whether --enable-fast-install was given.
  6838. if test "${enable_fast_install+set}" = set; then :
  6839. enableval=$enable_fast_install; p=${PACKAGE-default}
  6840. case $enableval in
  6841. yes) enable_fast_install=yes ;;
  6842. no) enable_fast_install=no ;;
  6843. *)
  6844. enable_fast_install=no
  6845. # Look at the argument we got. We use all the common list separators.
  6846. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6847. for pkg in $enableval; do
  6848. IFS="$lt_save_ifs"
  6849. if test "X$pkg" = "X$p"; then
  6850. enable_fast_install=yes
  6851. fi
  6852. done
  6853. IFS="$lt_save_ifs"
  6854. ;;
  6855. esac
  6856. else
  6857. enable_fast_install=yes
  6858. fi
  6859. # This can be used to rebuild libtool when needed
  6860. LIBTOOL_DEPS="$ltmain"
  6861. # Always use our own libtool.
  6862. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6863. test -z "$LN_S" && LN_S="ln -s"
  6864. if test -n "${ZSH_VERSION+set}" ; then
  6865. setopt NO_GLOB_SUBST
  6866. fi
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6868. $as_echo_n "checking for objdir... " >&6; }
  6869. if test "${lt_cv_objdir+set}" = set; then :
  6870. $as_echo_n "(cached) " >&6
  6871. else
  6872. rm -f .libs 2>/dev/null
  6873. mkdir .libs 2>/dev/null
  6874. if test -d .libs; then
  6875. lt_cv_objdir=.libs
  6876. else
  6877. # MS-DOS does not allow filenames that begin with a dot.
  6878. lt_cv_objdir=_libs
  6879. fi
  6880. rmdir .libs 2>/dev/null
  6881. fi
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6883. $as_echo "$lt_cv_objdir" >&6; }
  6884. objdir=$lt_cv_objdir
  6885. cat >>confdefs.h <<_ACEOF
  6886. #define LT_OBJDIR "$lt_cv_objdir/"
  6887. _ACEOF
  6888. case $host_os in
  6889. aix3*)
  6890. # AIX sometimes has problems with the GCC collect2 program. For some
  6891. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6892. # vanish in a puff of smoke.
  6893. if test "X${COLLECT_NAMES+set}" != Xset; then
  6894. COLLECT_NAMES=
  6895. export COLLECT_NAMES
  6896. fi
  6897. ;;
  6898. esac
  6899. # Global variables:
  6900. ofile=libtool
  6901. can_build_shared=yes
  6902. # All known linkers require a `.a' archive for static linking (except MSVC,
  6903. # which needs '.lib').
  6904. libext=a
  6905. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6906. old_CC="$CC"
  6907. old_CFLAGS="$CFLAGS"
  6908. # Set sane defaults for various variables
  6909. test -z "$CC" && CC=cc
  6910. test -z "$LTCC" && LTCC=$CC
  6911. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6912. test -z "$LD" && LD=ld
  6913. test -z "$ac_objext" && ac_objext=o
  6914. for cc_temp in $compiler""; do
  6915. case $cc_temp in
  6916. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6917. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6918. \-*) ;;
  6919. *) break;;
  6920. esac
  6921. done
  6922. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6923. # Only perform the check for file, if the check method requires it
  6924. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6925. case $deplibs_check_method in
  6926. file_magic*)
  6927. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6929. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6930. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6931. $as_echo_n "(cached) " >&6
  6932. else
  6933. case $MAGIC_CMD in
  6934. [\\/*] | ?:[\\/]*)
  6935. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6936. ;;
  6937. *)
  6938. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6939. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6940. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6941. for ac_dir in $ac_dummy; do
  6942. IFS="$lt_save_ifs"
  6943. test -z "$ac_dir" && ac_dir=.
  6944. if test -f $ac_dir/${ac_tool_prefix}file; then
  6945. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6946. if test -n "$file_magic_test_file"; then
  6947. case $deplibs_check_method in
  6948. "file_magic "*)
  6949. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6950. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6951. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6952. $EGREP "$file_magic_regex" > /dev/null; then
  6953. :
  6954. else
  6955. cat <<_LT_EOF 1>&2
  6956. *** Warning: the command libtool uses to detect shared libraries,
  6957. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6958. *** The result is that libtool may fail to recognize shared libraries
  6959. *** as such. This will affect the creation of libtool libraries that
  6960. *** depend on shared libraries, but programs linked with such libtool
  6961. *** libraries will work regardless of this problem. Nevertheless, you
  6962. *** may want to report the problem to your system manager and/or to
  6963. *** bug-libtool@gnu.org
  6964. _LT_EOF
  6965. fi ;;
  6966. esac
  6967. fi
  6968. break
  6969. fi
  6970. done
  6971. IFS="$lt_save_ifs"
  6972. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6973. ;;
  6974. esac
  6975. fi
  6976. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6977. if test -n "$MAGIC_CMD"; then
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6979. $as_echo "$MAGIC_CMD" >&6; }
  6980. else
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6982. $as_echo "no" >&6; }
  6983. fi
  6984. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6985. if test -n "$ac_tool_prefix"; then
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6987. $as_echo_n "checking for file... " >&6; }
  6988. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6989. $as_echo_n "(cached) " >&6
  6990. else
  6991. case $MAGIC_CMD in
  6992. [\\/*] | ?:[\\/]*)
  6993. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6994. ;;
  6995. *)
  6996. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6997. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6998. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6999. for ac_dir in $ac_dummy; do
  7000. IFS="$lt_save_ifs"
  7001. test -z "$ac_dir" && ac_dir=.
  7002. if test -f $ac_dir/file; then
  7003. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7004. if test -n "$file_magic_test_file"; then
  7005. case $deplibs_check_method in
  7006. "file_magic "*)
  7007. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7008. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7009. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7010. $EGREP "$file_magic_regex" > /dev/null; then
  7011. :
  7012. else
  7013. cat <<_LT_EOF 1>&2
  7014. *** Warning: the command libtool uses to detect shared libraries,
  7015. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7016. *** The result is that libtool may fail to recognize shared libraries
  7017. *** as such. This will affect the creation of libtool libraries that
  7018. *** depend on shared libraries, but programs linked with such libtool
  7019. *** libraries will work regardless of this problem. Nevertheless, you
  7020. *** may want to report the problem to your system manager and/or to
  7021. *** bug-libtool@gnu.org
  7022. _LT_EOF
  7023. fi ;;
  7024. esac
  7025. fi
  7026. break
  7027. fi
  7028. done
  7029. IFS="$lt_save_ifs"
  7030. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7031. ;;
  7032. esac
  7033. fi
  7034. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7035. if test -n "$MAGIC_CMD"; then
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7037. $as_echo "$MAGIC_CMD" >&6; }
  7038. else
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7040. $as_echo "no" >&6; }
  7041. fi
  7042. else
  7043. MAGIC_CMD=:
  7044. fi
  7045. fi
  7046. fi
  7047. ;;
  7048. esac
  7049. # Use C for the default configuration in the libtool script
  7050. lt_save_CC="$CC"
  7051. ac_ext=c
  7052. ac_cpp='$CPP $CPPFLAGS'
  7053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7056. # Source file extension for C test sources.
  7057. ac_ext=c
  7058. # Object file extension for compiled C test sources.
  7059. objext=o
  7060. objext=$objext
  7061. # Code to be used in simple compile tests
  7062. lt_simple_compile_test_code="int some_variable = 0;"
  7063. # Code to be used in simple link tests
  7064. lt_simple_link_test_code='int main(){return(0);}'
  7065. # If no C compiler was specified, use CC.
  7066. LTCC=${LTCC-"$CC"}
  7067. # If no C compiler flags were specified, use CFLAGS.
  7068. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7069. # Allow CC to be a program name with arguments.
  7070. compiler=$CC
  7071. # Save the default compiler, since it gets overwritten when the other
  7072. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7073. compiler_DEFAULT=$CC
  7074. # save warnings/boilerplate of simple test code
  7075. ac_outfile=conftest.$ac_objext
  7076. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7077. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7078. _lt_compiler_boilerplate=`cat conftest.err`
  7079. $RM conftest*
  7080. ac_outfile=conftest.$ac_objext
  7081. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7082. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7083. _lt_linker_boilerplate=`cat conftest.err`
  7084. $RM -r conftest*
  7085. ## CAVEAT EMPTOR:
  7086. ## There is no encapsulation within the following macros, do not change
  7087. ## the running order or otherwise move them around unless you know exactly
  7088. ## what you are doing...
  7089. if test -n "$compiler"; then
  7090. lt_prog_compiler_no_builtin_flag=
  7091. if test "$GCC" = yes; then
  7092. case $cc_basename in
  7093. nvcc*)
  7094. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7095. *)
  7096. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7097. esac
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7099. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7100. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7101. $as_echo_n "(cached) " >&6
  7102. else
  7103. lt_cv_prog_compiler_rtti_exceptions=no
  7104. ac_outfile=conftest.$ac_objext
  7105. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7106. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7107. # Insert the option either (1) after the last *FLAGS variable, or
  7108. # (2) before a word containing "conftest.", or (3) at the end.
  7109. # Note that $ac_compile itself does not contain backslashes and begins
  7110. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7111. # The option is referenced via a variable to avoid confusing sed.
  7112. lt_compile=`echo "$ac_compile" | $SED \
  7113. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7114. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7115. -e 's:$: $lt_compiler_flag:'`
  7116. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7117. (eval "$lt_compile" 2>conftest.err)
  7118. ac_status=$?
  7119. cat conftest.err >&5
  7120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7121. if (exit $ac_status) && test -s "$ac_outfile"; then
  7122. # The compiler can only warn and ignore the option if not recognized
  7123. # So say no if there are warnings other than the usual output.
  7124. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7125. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7126. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7127. lt_cv_prog_compiler_rtti_exceptions=yes
  7128. fi
  7129. fi
  7130. $RM conftest*
  7131. fi
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7133. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7134. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7135. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7136. else
  7137. :
  7138. fi
  7139. fi
  7140. lt_prog_compiler_wl=
  7141. lt_prog_compiler_pic=
  7142. lt_prog_compiler_static=
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7144. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7145. if test "$GCC" = yes; then
  7146. lt_prog_compiler_wl='-Wl,'
  7147. lt_prog_compiler_static='-static'
  7148. case $host_os in
  7149. aix*)
  7150. # All AIX code is PIC.
  7151. if test "$host_cpu" = ia64; then
  7152. # AIX 5 now supports IA64 processor
  7153. lt_prog_compiler_static='-Bstatic'
  7154. fi
  7155. lt_prog_compiler_pic='-fPIC'
  7156. ;;
  7157. amigaos*)
  7158. case $host_cpu in
  7159. powerpc)
  7160. # see comment about AmigaOS4 .so support
  7161. lt_prog_compiler_pic='-fPIC'
  7162. ;;
  7163. m68k)
  7164. # FIXME: we need at least 68020 code to build shared libraries, but
  7165. # adding the `-m68020' flag to GCC prevents building anything better,
  7166. # like `-m68040'.
  7167. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7168. ;;
  7169. esac
  7170. ;;
  7171. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7172. # PIC is the default for these OSes.
  7173. ;;
  7174. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7175. # This hack is so that the source file can tell whether it is being
  7176. # built for inclusion in a dll (and should export symbols for example).
  7177. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7178. # (--disable-auto-import) libraries
  7179. lt_prog_compiler_pic='-DDLL_EXPORT'
  7180. ;;
  7181. darwin* | rhapsody*)
  7182. # PIC is the default on this platform
  7183. # Common symbols not allowed in MH_DYLIB files
  7184. lt_prog_compiler_pic='-fno-common'
  7185. ;;
  7186. haiku*)
  7187. # PIC is the default for Haiku.
  7188. # The "-static" flag exists, but is broken.
  7189. lt_prog_compiler_static=
  7190. ;;
  7191. hpux*)
  7192. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7193. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7194. # sets the default TLS model and affects inlining.
  7195. case $host_cpu in
  7196. hppa*64*)
  7197. # +Z the default
  7198. ;;
  7199. *)
  7200. lt_prog_compiler_pic='-fPIC'
  7201. ;;
  7202. esac
  7203. ;;
  7204. interix[3-9]*)
  7205. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7206. # Instead, we relocate shared libraries at runtime.
  7207. ;;
  7208. msdosdjgpp*)
  7209. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7210. # on systems that don't support them.
  7211. lt_prog_compiler_can_build_shared=no
  7212. enable_shared=no
  7213. ;;
  7214. *nto* | *qnx*)
  7215. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7216. # it will coredump.
  7217. lt_prog_compiler_pic='-fPIC -shared'
  7218. ;;
  7219. sysv4*MP*)
  7220. if test -d /usr/nec; then
  7221. lt_prog_compiler_pic=-Kconform_pic
  7222. fi
  7223. ;;
  7224. *)
  7225. lt_prog_compiler_pic='-fPIC'
  7226. ;;
  7227. esac
  7228. case $cc_basename in
  7229. nvcc*) # Cuda Compiler Driver 2.2
  7230. lt_prog_compiler_wl='-Xlinker '
  7231. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7232. ;;
  7233. esac
  7234. else
  7235. # PORTME Check for flag to pass linker flags through the system compiler.
  7236. case $host_os in
  7237. aix*)
  7238. lt_prog_compiler_wl='-Wl,'
  7239. if test "$host_cpu" = ia64; then
  7240. # AIX 5 now supports IA64 processor
  7241. lt_prog_compiler_static='-Bstatic'
  7242. else
  7243. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7244. fi
  7245. ;;
  7246. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7247. # This hack is so that the source file can tell whether it is being
  7248. # built for inclusion in a dll (and should export symbols for example).
  7249. lt_prog_compiler_pic='-DDLL_EXPORT'
  7250. ;;
  7251. hpux9* | hpux10* | hpux11*)
  7252. lt_prog_compiler_wl='-Wl,'
  7253. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7254. # not for PA HP-UX.
  7255. case $host_cpu in
  7256. hppa*64*|ia64*)
  7257. # +Z the default
  7258. ;;
  7259. *)
  7260. lt_prog_compiler_pic='+Z'
  7261. ;;
  7262. esac
  7263. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7264. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7265. ;;
  7266. irix5* | irix6* | nonstopux*)
  7267. lt_prog_compiler_wl='-Wl,'
  7268. # PIC (with -KPIC) is the default.
  7269. lt_prog_compiler_static='-non_shared'
  7270. ;;
  7271. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7272. case $cc_basename in
  7273. # old Intel for x86_64 which still supported -KPIC.
  7274. ecc*)
  7275. lt_prog_compiler_wl='-Wl,'
  7276. lt_prog_compiler_pic='-KPIC'
  7277. lt_prog_compiler_static='-static'
  7278. ;;
  7279. # icc used to be incompatible with GCC.
  7280. # ICC 10 doesn't accept -KPIC any more.
  7281. icc* | ifort*)
  7282. lt_prog_compiler_wl='-Wl,'
  7283. lt_prog_compiler_pic='-fPIC'
  7284. lt_prog_compiler_static='-static'
  7285. ;;
  7286. # Lahey Fortran 8.1.
  7287. lf95*)
  7288. lt_prog_compiler_wl='-Wl,'
  7289. lt_prog_compiler_pic='--shared'
  7290. lt_prog_compiler_static='--static'
  7291. ;;
  7292. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7293. # Portland Group compilers (*not* the Pentium gcc compiler,
  7294. # which looks to be a dead project)
  7295. lt_prog_compiler_wl='-Wl,'
  7296. lt_prog_compiler_pic='-fpic'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. ;;
  7299. ccc*)
  7300. lt_prog_compiler_wl='-Wl,'
  7301. # All Alpha code is PIC.
  7302. lt_prog_compiler_static='-non_shared'
  7303. ;;
  7304. xl* | bgxl* | bgf* | mpixl*)
  7305. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7306. lt_prog_compiler_wl='-Wl,'
  7307. lt_prog_compiler_pic='-qpic'
  7308. lt_prog_compiler_static='-qstaticlink'
  7309. ;;
  7310. *)
  7311. case `$CC -V 2>&1 | sed 5q` in
  7312. *Sun\ F* | *Sun*Fortran*)
  7313. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7314. lt_prog_compiler_pic='-KPIC'
  7315. lt_prog_compiler_static='-Bstatic'
  7316. lt_prog_compiler_wl=''
  7317. ;;
  7318. *Sun\ C*)
  7319. # Sun C 5.9
  7320. lt_prog_compiler_pic='-KPIC'
  7321. lt_prog_compiler_static='-Bstatic'
  7322. lt_prog_compiler_wl='-Wl,'
  7323. ;;
  7324. esac
  7325. ;;
  7326. esac
  7327. ;;
  7328. newsos6)
  7329. lt_prog_compiler_pic='-KPIC'
  7330. lt_prog_compiler_static='-Bstatic'
  7331. ;;
  7332. *nto* | *qnx*)
  7333. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7334. # it will coredump.
  7335. lt_prog_compiler_pic='-fPIC -shared'
  7336. ;;
  7337. osf3* | osf4* | osf5*)
  7338. lt_prog_compiler_wl='-Wl,'
  7339. # All OSF/1 code is PIC.
  7340. lt_prog_compiler_static='-non_shared'
  7341. ;;
  7342. rdos*)
  7343. lt_prog_compiler_static='-non_shared'
  7344. ;;
  7345. solaris*)
  7346. lt_prog_compiler_pic='-KPIC'
  7347. lt_prog_compiler_static='-Bstatic'
  7348. case $cc_basename in
  7349. f77* | f90* | f95*)
  7350. lt_prog_compiler_wl='-Qoption ld ';;
  7351. *)
  7352. lt_prog_compiler_wl='-Wl,';;
  7353. esac
  7354. ;;
  7355. sunos4*)
  7356. lt_prog_compiler_wl='-Qoption ld '
  7357. lt_prog_compiler_pic='-PIC'
  7358. lt_prog_compiler_static='-Bstatic'
  7359. ;;
  7360. sysv4 | sysv4.2uw2* | sysv4.3*)
  7361. lt_prog_compiler_wl='-Wl,'
  7362. lt_prog_compiler_pic='-KPIC'
  7363. lt_prog_compiler_static='-Bstatic'
  7364. ;;
  7365. sysv4*MP*)
  7366. if test -d /usr/nec ;then
  7367. lt_prog_compiler_pic='-Kconform_pic'
  7368. lt_prog_compiler_static='-Bstatic'
  7369. fi
  7370. ;;
  7371. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7372. lt_prog_compiler_wl='-Wl,'
  7373. lt_prog_compiler_pic='-KPIC'
  7374. lt_prog_compiler_static='-Bstatic'
  7375. ;;
  7376. unicos*)
  7377. lt_prog_compiler_wl='-Wl,'
  7378. lt_prog_compiler_can_build_shared=no
  7379. ;;
  7380. uts4*)
  7381. lt_prog_compiler_pic='-pic'
  7382. lt_prog_compiler_static='-Bstatic'
  7383. ;;
  7384. *)
  7385. lt_prog_compiler_can_build_shared=no
  7386. ;;
  7387. esac
  7388. fi
  7389. case $host_os in
  7390. # For platforms which do not support PIC, -DPIC is meaningless:
  7391. *djgpp*)
  7392. lt_prog_compiler_pic=
  7393. ;;
  7394. *)
  7395. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7396. ;;
  7397. esac
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7399. $as_echo "$lt_prog_compiler_pic" >&6; }
  7400. #
  7401. # Check to make sure the PIC flag actually works.
  7402. #
  7403. if test -n "$lt_prog_compiler_pic"; then
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7405. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7406. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7407. $as_echo_n "(cached) " >&6
  7408. else
  7409. lt_cv_prog_compiler_pic_works=no
  7410. ac_outfile=conftest.$ac_objext
  7411. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7412. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7413. # Insert the option either (1) after the last *FLAGS variable, or
  7414. # (2) before a word containing "conftest.", or (3) at the end.
  7415. # Note that $ac_compile itself does not contain backslashes and begins
  7416. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7417. # The option is referenced via a variable to avoid confusing sed.
  7418. lt_compile=`echo "$ac_compile" | $SED \
  7419. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7420. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7421. -e 's:$: $lt_compiler_flag:'`
  7422. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7423. (eval "$lt_compile" 2>conftest.err)
  7424. ac_status=$?
  7425. cat conftest.err >&5
  7426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7427. if (exit $ac_status) && test -s "$ac_outfile"; then
  7428. # The compiler can only warn and ignore the option if not recognized
  7429. # So say no if there are warnings other than the usual output.
  7430. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7431. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7432. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7433. lt_cv_prog_compiler_pic_works=yes
  7434. fi
  7435. fi
  7436. $RM conftest*
  7437. fi
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7439. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7440. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7441. case $lt_prog_compiler_pic in
  7442. "" | " "*) ;;
  7443. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7444. esac
  7445. else
  7446. lt_prog_compiler_pic=
  7447. lt_prog_compiler_can_build_shared=no
  7448. fi
  7449. fi
  7450. #
  7451. # Check to make sure the static flag actually works.
  7452. #
  7453. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7455. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7456. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7457. $as_echo_n "(cached) " >&6
  7458. else
  7459. lt_cv_prog_compiler_static_works=no
  7460. save_LDFLAGS="$LDFLAGS"
  7461. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7462. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7463. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7464. # The linker can only warn and ignore the option if not recognized
  7465. # So say no if there are warnings
  7466. if test -s conftest.err; then
  7467. # Append any errors to the config.log.
  7468. cat conftest.err 1>&5
  7469. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7470. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7471. if diff conftest.exp conftest.er2 >/dev/null; then
  7472. lt_cv_prog_compiler_static_works=yes
  7473. fi
  7474. else
  7475. lt_cv_prog_compiler_static_works=yes
  7476. fi
  7477. fi
  7478. $RM -r conftest*
  7479. LDFLAGS="$save_LDFLAGS"
  7480. fi
  7481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7482. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7483. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7484. :
  7485. else
  7486. lt_prog_compiler_static=
  7487. fi
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7489. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7490. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7491. $as_echo_n "(cached) " >&6
  7492. else
  7493. lt_cv_prog_compiler_c_o=no
  7494. $RM -r conftest 2>/dev/null
  7495. mkdir conftest
  7496. cd conftest
  7497. mkdir out
  7498. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7499. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7500. # Insert the option either (1) after the last *FLAGS variable, or
  7501. # (2) before a word containing "conftest.", or (3) at the end.
  7502. # Note that $ac_compile itself does not contain backslashes and begins
  7503. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7504. lt_compile=`echo "$ac_compile" | $SED \
  7505. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7506. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7507. -e 's:$: $lt_compiler_flag:'`
  7508. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7509. (eval "$lt_compile" 2>out/conftest.err)
  7510. ac_status=$?
  7511. cat out/conftest.err >&5
  7512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7513. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7514. then
  7515. # The compiler can only warn and ignore the option if not recognized
  7516. # So say no if there are warnings
  7517. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7518. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7519. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7520. lt_cv_prog_compiler_c_o=yes
  7521. fi
  7522. fi
  7523. chmod u+w . 2>&5
  7524. $RM conftest*
  7525. # SGI C++ compiler will create directory out/ii_files/ for
  7526. # template instantiation
  7527. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7528. $RM out/* && rmdir out
  7529. cd ..
  7530. $RM -r conftest
  7531. $RM conftest*
  7532. fi
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7534. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7536. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7537. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7538. $as_echo_n "(cached) " >&6
  7539. else
  7540. lt_cv_prog_compiler_c_o=no
  7541. $RM -r conftest 2>/dev/null
  7542. mkdir conftest
  7543. cd conftest
  7544. mkdir out
  7545. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7546. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7547. # Insert the option either (1) after the last *FLAGS variable, or
  7548. # (2) before a word containing "conftest.", or (3) at the end.
  7549. # Note that $ac_compile itself does not contain backslashes and begins
  7550. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7551. lt_compile=`echo "$ac_compile" | $SED \
  7552. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7553. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7554. -e 's:$: $lt_compiler_flag:'`
  7555. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7556. (eval "$lt_compile" 2>out/conftest.err)
  7557. ac_status=$?
  7558. cat out/conftest.err >&5
  7559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7560. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7561. then
  7562. # The compiler can only warn and ignore the option if not recognized
  7563. # So say no if there are warnings
  7564. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7565. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7566. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7567. lt_cv_prog_compiler_c_o=yes
  7568. fi
  7569. fi
  7570. chmod u+w . 2>&5
  7571. $RM conftest*
  7572. # SGI C++ compiler will create directory out/ii_files/ for
  7573. # template instantiation
  7574. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7575. $RM out/* && rmdir out
  7576. cd ..
  7577. $RM -r conftest
  7578. $RM conftest*
  7579. fi
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7581. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7582. hard_links="nottested"
  7583. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7584. # do not overwrite the value of need_locks provided by the user
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7586. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7587. hard_links=yes
  7588. $RM conftest*
  7589. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7590. touch conftest.a
  7591. ln conftest.a conftest.b 2>&5 || hard_links=no
  7592. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7594. $as_echo "$hard_links" >&6; }
  7595. if test "$hard_links" = no; then
  7596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7597. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7598. need_locks=warn
  7599. fi
  7600. else
  7601. need_locks=no
  7602. fi
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7604. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7605. runpath_var=
  7606. allow_undefined_flag=
  7607. always_export_symbols=no
  7608. archive_cmds=
  7609. archive_expsym_cmds=
  7610. compiler_needs_object=no
  7611. enable_shared_with_static_runtimes=no
  7612. export_dynamic_flag_spec=
  7613. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7614. hardcode_automatic=no
  7615. hardcode_direct=no
  7616. hardcode_direct_absolute=no
  7617. hardcode_libdir_flag_spec=
  7618. hardcode_libdir_flag_spec_ld=
  7619. hardcode_libdir_separator=
  7620. hardcode_minus_L=no
  7621. hardcode_shlibpath_var=unsupported
  7622. inherit_rpath=no
  7623. link_all_deplibs=unknown
  7624. module_cmds=
  7625. module_expsym_cmds=
  7626. old_archive_from_new_cmds=
  7627. old_archive_from_expsyms_cmds=
  7628. thread_safe_flag_spec=
  7629. whole_archive_flag_spec=
  7630. # include_expsyms should be a list of space-separated symbols to be *always*
  7631. # included in the symbol list
  7632. include_expsyms=
  7633. # exclude_expsyms can be an extended regexp of symbols to exclude
  7634. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7635. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7636. # as well as any symbol that contains `d'.
  7637. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7638. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7639. # platforms (ab)use it in PIC code, but their linkers get confused if
  7640. # the symbol is explicitly referenced. Since portable code cannot
  7641. # rely on this symbol name, it's probably fine to never include it in
  7642. # preloaded symbol tables.
  7643. # Exclude shared library initialization/finalization symbols.
  7644. extract_expsyms_cmds=
  7645. case $host_os in
  7646. cygwin* | mingw* | pw32* | cegcc*)
  7647. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7648. # When not using gcc, we currently assume that we are using
  7649. # Microsoft Visual C++.
  7650. if test "$GCC" != yes; then
  7651. with_gnu_ld=no
  7652. fi
  7653. ;;
  7654. interix*)
  7655. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7656. with_gnu_ld=yes
  7657. ;;
  7658. openbsd*)
  7659. with_gnu_ld=no
  7660. ;;
  7661. esac
  7662. ld_shlibs=yes
  7663. # On some targets, GNU ld is compatible enough with the native linker
  7664. # that we're better off using the native interface for both.
  7665. lt_use_gnu_ld_interface=no
  7666. if test "$with_gnu_ld" = yes; then
  7667. case $host_os in
  7668. aix*)
  7669. # The AIX port of GNU ld has always aspired to compatibility
  7670. # with the native linker. However, as the warning in the GNU ld
  7671. # block says, versions before 2.19.5* couldn't really create working
  7672. # shared libraries, regardless of the interface used.
  7673. case `$LD -v 2>&1` in
  7674. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7675. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7676. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7677. *)
  7678. lt_use_gnu_ld_interface=yes
  7679. ;;
  7680. esac
  7681. ;;
  7682. *)
  7683. lt_use_gnu_ld_interface=yes
  7684. ;;
  7685. esac
  7686. fi
  7687. if test "$lt_use_gnu_ld_interface" = yes; then
  7688. # If archive_cmds runs LD, not CC, wlarc should be empty
  7689. wlarc='${wl}'
  7690. # Set some defaults for GNU ld with shared library support. These
  7691. # are reset later if shared libraries are not supported. Putting them
  7692. # here allows them to be overridden if necessary.
  7693. runpath_var=LD_RUN_PATH
  7694. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7695. export_dynamic_flag_spec='${wl}--export-dynamic'
  7696. # ancient GNU ld didn't support --whole-archive et. al.
  7697. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7698. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7699. else
  7700. whole_archive_flag_spec=
  7701. fi
  7702. supports_anon_versioning=no
  7703. case `$LD -v 2>&1` in
  7704. *GNU\ gold*) supports_anon_versioning=yes ;;
  7705. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7706. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7707. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7708. *\ 2.11.*) ;; # other 2.11 versions
  7709. *) supports_anon_versioning=yes ;;
  7710. esac
  7711. # See if GNU ld supports shared libraries.
  7712. case $host_os in
  7713. aix[3-9]*)
  7714. # On AIX/PPC, the GNU linker is very broken
  7715. if test "$host_cpu" != ia64; then
  7716. ld_shlibs=no
  7717. cat <<_LT_EOF 1>&2
  7718. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7719. *** to be unable to reliably create shared libraries on AIX.
  7720. *** Therefore, libtool is disabling shared libraries support. If you
  7721. *** really care for shared libraries, you may want to install binutils
  7722. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7723. *** You will then need to restart the configuration process.
  7724. _LT_EOF
  7725. fi
  7726. ;;
  7727. amigaos*)
  7728. case $host_cpu in
  7729. powerpc)
  7730. # see comment about AmigaOS4 .so support
  7731. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7732. archive_expsym_cmds=''
  7733. ;;
  7734. m68k)
  7735. 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)'
  7736. hardcode_libdir_flag_spec='-L$libdir'
  7737. hardcode_minus_L=yes
  7738. ;;
  7739. esac
  7740. ;;
  7741. beos*)
  7742. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7743. allow_undefined_flag=unsupported
  7744. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7745. # support --undefined. This deserves some investigation. FIXME
  7746. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7747. else
  7748. ld_shlibs=no
  7749. fi
  7750. ;;
  7751. cygwin* | mingw* | pw32* | cegcc*)
  7752. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7753. # as there is no search path for DLLs.
  7754. hardcode_libdir_flag_spec='-L$libdir'
  7755. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7756. allow_undefined_flag=unsupported
  7757. always_export_symbols=no
  7758. enable_shared_with_static_runtimes=yes
  7759. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7760. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7761. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7762. # If the export-symbols file already is a .def file (1st line
  7763. # is EXPORTS), use it as is; otherwise, prepend...
  7764. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7765. cp $export_symbols $output_objdir/$soname.def;
  7766. else
  7767. echo EXPORTS > $output_objdir/$soname.def;
  7768. cat $export_symbols >> $output_objdir/$soname.def;
  7769. fi~
  7770. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7771. else
  7772. ld_shlibs=no
  7773. fi
  7774. ;;
  7775. haiku*)
  7776. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7777. link_all_deplibs=yes
  7778. ;;
  7779. interix[3-9]*)
  7780. hardcode_direct=no
  7781. hardcode_shlibpath_var=no
  7782. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7783. export_dynamic_flag_spec='${wl}-E'
  7784. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7785. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7786. # default) and relocated if they conflict, which is a slow very memory
  7787. # consuming and fragmenting process. To avoid this, we pick a random,
  7788. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7789. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7790. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7791. 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'
  7792. ;;
  7793. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7794. tmp_diet=no
  7795. if test "$host_os" = linux-dietlibc; then
  7796. case $cc_basename in
  7797. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7798. esac
  7799. fi
  7800. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7801. && test "$tmp_diet" = no
  7802. then
  7803. tmp_addflag=' $pic_flag'
  7804. tmp_sharedflag='-shared'
  7805. case $cc_basename,$host_cpu in
  7806. pgcc*) # Portland Group C compiler
  7807. 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'
  7808. tmp_addflag=' $pic_flag'
  7809. ;;
  7810. pgf77* | pgf90* | pgf95* | pgfortran*)
  7811. # Portland Group f77 and f90 compilers
  7812. 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'
  7813. tmp_addflag=' $pic_flag -Mnomain' ;;
  7814. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7815. tmp_addflag=' -i_dynamic' ;;
  7816. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7817. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7818. ifc* | ifort*) # Intel Fortran compiler
  7819. tmp_addflag=' -nofor_main' ;;
  7820. lf95*) # Lahey Fortran 8.1
  7821. whole_archive_flag_spec=
  7822. tmp_sharedflag='--shared' ;;
  7823. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7824. tmp_sharedflag='-qmkshrobj'
  7825. tmp_addflag= ;;
  7826. nvcc*) # Cuda Compiler Driver 2.2
  7827. 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'
  7828. compiler_needs_object=yes
  7829. ;;
  7830. esac
  7831. case `$CC -V 2>&1 | sed 5q` in
  7832. *Sun\ C*) # Sun C 5.9
  7833. 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'
  7834. compiler_needs_object=yes
  7835. tmp_sharedflag='-G' ;;
  7836. *Sun\ F*) # Sun Fortran 8.3
  7837. tmp_sharedflag='-G' ;;
  7838. esac
  7839. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7840. if test "x$supports_anon_versioning" = xyes; then
  7841. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7842. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7843. echo "local: *; };" >> $output_objdir/$libname.ver~
  7844. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7845. fi
  7846. case $cc_basename in
  7847. xlf* | bgf* | bgxlf* | mpixlf*)
  7848. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7849. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7850. hardcode_libdir_flag_spec=
  7851. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7852. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7853. if test "x$supports_anon_versioning" = xyes; then
  7854. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7855. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7856. echo "local: *; };" >> $output_objdir/$libname.ver~
  7857. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7858. fi
  7859. ;;
  7860. esac
  7861. else
  7862. ld_shlibs=no
  7863. fi
  7864. ;;
  7865. netbsd*)
  7866. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7867. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7868. wlarc=
  7869. else
  7870. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7871. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7872. fi
  7873. ;;
  7874. solaris*)
  7875. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7876. ld_shlibs=no
  7877. cat <<_LT_EOF 1>&2
  7878. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7879. *** create shared libraries on Solaris systems. Therefore, libtool
  7880. *** is disabling shared libraries support. We urge you to upgrade GNU
  7881. *** binutils to release 2.9.1 or newer. Another option is to modify
  7882. *** your PATH or compiler configuration so that the native linker is
  7883. *** used, and then restart.
  7884. _LT_EOF
  7885. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7886. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7887. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7888. else
  7889. ld_shlibs=no
  7890. fi
  7891. ;;
  7892. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7893. case `$LD -v 2>&1` in
  7894. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7895. ld_shlibs=no
  7896. cat <<_LT_EOF 1>&2
  7897. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7898. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7899. *** is disabling shared libraries support. We urge you to upgrade GNU
  7900. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7901. *** your PATH or compiler configuration so that the native linker is
  7902. *** used, and then restart.
  7903. _LT_EOF
  7904. ;;
  7905. *)
  7906. # For security reasons, it is highly recommended that you always
  7907. # use absolute paths for naming shared libraries, and exclude the
  7908. # DT_RUNPATH tag from executables and libraries. But doing so
  7909. # requires that you compile everything twice, which is a pain.
  7910. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7911. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7912. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7913. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7914. else
  7915. ld_shlibs=no
  7916. fi
  7917. ;;
  7918. esac
  7919. ;;
  7920. sunos4*)
  7921. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7922. wlarc=
  7923. hardcode_direct=yes
  7924. hardcode_shlibpath_var=no
  7925. ;;
  7926. *)
  7927. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7928. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7929. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7930. else
  7931. ld_shlibs=no
  7932. fi
  7933. ;;
  7934. esac
  7935. if test "$ld_shlibs" = no; then
  7936. runpath_var=
  7937. hardcode_libdir_flag_spec=
  7938. export_dynamic_flag_spec=
  7939. whole_archive_flag_spec=
  7940. fi
  7941. else
  7942. # PORTME fill in a description of your system's linker (not GNU ld)
  7943. case $host_os in
  7944. aix3*)
  7945. allow_undefined_flag=unsupported
  7946. always_export_symbols=yes
  7947. 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'
  7948. # Note: this linker hardcodes the directories in LIBPATH if there
  7949. # are no directories specified by -L.
  7950. hardcode_minus_L=yes
  7951. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7952. # Neither direct hardcoding nor static linking is supported with a
  7953. # broken collect2.
  7954. hardcode_direct=unsupported
  7955. fi
  7956. ;;
  7957. aix[4-9]*)
  7958. if test "$host_cpu" = ia64; then
  7959. # On IA64, the linker does run time linking by default, so we don't
  7960. # have to do anything special.
  7961. aix_use_runtimelinking=no
  7962. exp_sym_flag='-Bexport'
  7963. no_entry_flag=""
  7964. else
  7965. # If we're using GNU nm, then we don't want the "-C" option.
  7966. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7967. # Also, AIX nm treats weak defined symbols like other global
  7968. # defined symbols, whereas GNU nm marks them as "W".
  7969. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7970. 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'
  7971. else
  7972. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7973. fi
  7974. aix_use_runtimelinking=no
  7975. # Test if we are trying to use run time linking or normal
  7976. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7977. # need to do runtime linking.
  7978. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7979. for ld_flag in $LDFLAGS; do
  7980. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7981. aix_use_runtimelinking=yes
  7982. break
  7983. fi
  7984. done
  7985. ;;
  7986. esac
  7987. exp_sym_flag='-bexport'
  7988. no_entry_flag='-bnoentry'
  7989. fi
  7990. # When large executables or shared objects are built, AIX ld can
  7991. # have problems creating the table of contents. If linking a library
  7992. # or program results in "error TOC overflow" add -mminimal-toc to
  7993. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7994. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7995. archive_cmds=''
  7996. hardcode_direct=yes
  7997. hardcode_direct_absolute=yes
  7998. hardcode_libdir_separator=':'
  7999. link_all_deplibs=yes
  8000. file_list_spec='${wl}-f,'
  8001. if test "$GCC" = yes; then
  8002. case $host_os in aix4.[012]|aix4.[012].*)
  8003. # We only want to do this on AIX 4.2 and lower, the check
  8004. # below for broken collect2 doesn't work under 4.3+
  8005. collect2name=`${CC} -print-prog-name=collect2`
  8006. if test -f "$collect2name" &&
  8007. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8008. then
  8009. # We have reworked collect2
  8010. :
  8011. else
  8012. # We have old collect2
  8013. hardcode_direct=unsupported
  8014. # It fails to find uninstalled libraries when the uninstalled
  8015. # path is not listed in the libpath. Setting hardcode_minus_L
  8016. # to unsupported forces relinking
  8017. hardcode_minus_L=yes
  8018. hardcode_libdir_flag_spec='-L$libdir'
  8019. hardcode_libdir_separator=
  8020. fi
  8021. ;;
  8022. esac
  8023. shared_flag='-shared'
  8024. if test "$aix_use_runtimelinking" = yes; then
  8025. shared_flag="$shared_flag "'${wl}-G'
  8026. fi
  8027. else
  8028. # not using gcc
  8029. if test "$host_cpu" = ia64; then
  8030. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8031. # chokes on -Wl,-G. The following line is correct:
  8032. shared_flag='-G'
  8033. else
  8034. if test "$aix_use_runtimelinking" = yes; then
  8035. shared_flag='${wl}-G'
  8036. else
  8037. shared_flag='${wl}-bM:SRE'
  8038. fi
  8039. fi
  8040. fi
  8041. export_dynamic_flag_spec='${wl}-bexpall'
  8042. # It seems that -bexpall does not export symbols beginning with
  8043. # underscore (_), so it is better to generate a list of symbols to export.
  8044. always_export_symbols=yes
  8045. if test "$aix_use_runtimelinking" = yes; then
  8046. # Warning - without using the other runtime loading flags (-brtl),
  8047. # -berok will link without error, but may produce a broken library.
  8048. allow_undefined_flag='-berok'
  8049. # Determine the default libpath from the value encoded in an
  8050. # empty executable.
  8051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8052. /* end confdefs.h. */
  8053. int
  8054. main ()
  8055. {
  8056. ;
  8057. return 0;
  8058. }
  8059. _ACEOF
  8060. if ac_fn_c_try_link "$LINENO"; then :
  8061. lt_aix_libpath_sed='
  8062. /Import File Strings/,/^$/ {
  8063. /^0/ {
  8064. s/^0 *\(.*\)$/\1/
  8065. p
  8066. }
  8067. }'
  8068. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8069. # Check for a 64-bit object if we didn't find anything.
  8070. if test -z "$aix_libpath"; then
  8071. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8072. fi
  8073. fi
  8074. rm -f core conftest.err conftest.$ac_objext \
  8075. conftest$ac_exeext conftest.$ac_ext
  8076. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8077. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8078. 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"
  8079. else
  8080. if test "$host_cpu" = ia64; then
  8081. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8082. allow_undefined_flag="-z nodefs"
  8083. 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"
  8084. else
  8085. # Determine the default libpath from the value encoded in an
  8086. # empty executable.
  8087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8088. /* end confdefs.h. */
  8089. int
  8090. main ()
  8091. {
  8092. ;
  8093. return 0;
  8094. }
  8095. _ACEOF
  8096. if ac_fn_c_try_link "$LINENO"; then :
  8097. lt_aix_libpath_sed='
  8098. /Import File Strings/,/^$/ {
  8099. /^0/ {
  8100. s/^0 *\(.*\)$/\1/
  8101. p
  8102. }
  8103. }'
  8104. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8105. # Check for a 64-bit object if we didn't find anything.
  8106. if test -z "$aix_libpath"; then
  8107. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8108. fi
  8109. fi
  8110. rm -f core conftest.err conftest.$ac_objext \
  8111. conftest$ac_exeext conftest.$ac_ext
  8112. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8113. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8114. # Warning - without using the other run time loading flags,
  8115. # -berok will link without error, but may produce a broken library.
  8116. no_undefined_flag=' ${wl}-bernotok'
  8117. allow_undefined_flag=' ${wl}-berok'
  8118. if test "$with_gnu_ld" = yes; then
  8119. # We only use this code for GNU lds that support --whole-archive.
  8120. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8121. else
  8122. # Exported symbols can be pulled into shared objects from archives
  8123. whole_archive_flag_spec='$convenience'
  8124. fi
  8125. archive_cmds_need_lc=yes
  8126. # This is similar to how AIX traditionally builds its shared libraries.
  8127. 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'
  8128. fi
  8129. fi
  8130. ;;
  8131. amigaos*)
  8132. case $host_cpu in
  8133. powerpc)
  8134. # see comment about AmigaOS4 .so support
  8135. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8136. archive_expsym_cmds=''
  8137. ;;
  8138. m68k)
  8139. 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)'
  8140. hardcode_libdir_flag_spec='-L$libdir'
  8141. hardcode_minus_L=yes
  8142. ;;
  8143. esac
  8144. ;;
  8145. bsdi[45]*)
  8146. export_dynamic_flag_spec=-rdynamic
  8147. ;;
  8148. cygwin* | mingw* | pw32* | cegcc*)
  8149. # When not using gcc, we currently assume that we are using
  8150. # Microsoft Visual C++.
  8151. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8152. # no search path for DLLs.
  8153. hardcode_libdir_flag_spec=' '
  8154. allow_undefined_flag=unsupported
  8155. # Tell ltmain to make .lib files, not .a files.
  8156. libext=lib
  8157. # Tell ltmain to make .dll files, not .so files.
  8158. shrext_cmds=".dll"
  8159. # FIXME: Setting linknames here is a bad hack.
  8160. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8161. # The linker will automatically build a .lib file if we build a DLL.
  8162. old_archive_from_new_cmds='true'
  8163. # FIXME: Should let the user specify the lib program.
  8164. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8165. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8166. enable_shared_with_static_runtimes=yes
  8167. ;;
  8168. darwin* | rhapsody*)
  8169. archive_cmds_need_lc=no
  8170. hardcode_direct=no
  8171. hardcode_automatic=yes
  8172. hardcode_shlibpath_var=unsupported
  8173. if test "$lt_cv_ld_force_load" = "yes"; then
  8174. 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\"`'
  8175. else
  8176. whole_archive_flag_spec=''
  8177. fi
  8178. link_all_deplibs=yes
  8179. allow_undefined_flag="$_lt_dar_allow_undefined"
  8180. case $cc_basename in
  8181. ifort*) _lt_dar_can_shared=yes ;;
  8182. *) _lt_dar_can_shared=$GCC ;;
  8183. esac
  8184. if test "$_lt_dar_can_shared" = "yes"; then
  8185. output_verbose_link_cmd=func_echo_all
  8186. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8187. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8188. 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}"
  8189. 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}"
  8190. else
  8191. ld_shlibs=no
  8192. fi
  8193. ;;
  8194. dgux*)
  8195. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8196. hardcode_libdir_flag_spec='-L$libdir'
  8197. hardcode_shlibpath_var=no
  8198. ;;
  8199. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8200. # support. Future versions do this automatically, but an explicit c++rt0.o
  8201. # does not break anything, and helps significantly (at the cost of a little
  8202. # extra space).
  8203. freebsd2.2*)
  8204. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8205. hardcode_libdir_flag_spec='-R$libdir'
  8206. hardcode_direct=yes
  8207. hardcode_shlibpath_var=no
  8208. ;;
  8209. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8210. freebsd2.*)
  8211. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8212. hardcode_direct=yes
  8213. hardcode_minus_L=yes
  8214. hardcode_shlibpath_var=no
  8215. ;;
  8216. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8217. freebsd* | dragonfly*)
  8218. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8219. hardcode_libdir_flag_spec='-R$libdir'
  8220. hardcode_direct=yes
  8221. hardcode_shlibpath_var=no
  8222. ;;
  8223. hpux9*)
  8224. if test "$GCC" = yes; then
  8225. 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'
  8226. else
  8227. 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'
  8228. fi
  8229. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8230. hardcode_libdir_separator=:
  8231. hardcode_direct=yes
  8232. # hardcode_minus_L: Not really in the search PATH,
  8233. # but as the default location of the library.
  8234. hardcode_minus_L=yes
  8235. export_dynamic_flag_spec='${wl}-E'
  8236. ;;
  8237. hpux10*)
  8238. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8239. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8240. else
  8241. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8242. fi
  8243. if test "$with_gnu_ld" = no; then
  8244. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8245. hardcode_libdir_flag_spec_ld='+b $libdir'
  8246. hardcode_libdir_separator=:
  8247. hardcode_direct=yes
  8248. hardcode_direct_absolute=yes
  8249. export_dynamic_flag_spec='${wl}-E'
  8250. # hardcode_minus_L: Not really in the search PATH,
  8251. # but as the default location of the library.
  8252. hardcode_minus_L=yes
  8253. fi
  8254. ;;
  8255. hpux11*)
  8256. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8257. case $host_cpu in
  8258. hppa*64*)
  8259. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8260. ;;
  8261. ia64*)
  8262. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8263. ;;
  8264. *)
  8265. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8266. ;;
  8267. esac
  8268. else
  8269. case $host_cpu in
  8270. hppa*64*)
  8271. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8272. ;;
  8273. ia64*)
  8274. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8275. ;;
  8276. *)
  8277. # Older versions of the 11.00 compiler do not understand -b yet
  8278. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8280. $as_echo_n "checking if $CC understands -b... " >&6; }
  8281. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8282. $as_echo_n "(cached) " >&6
  8283. else
  8284. lt_cv_prog_compiler__b=no
  8285. save_LDFLAGS="$LDFLAGS"
  8286. LDFLAGS="$LDFLAGS -b"
  8287. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8288. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8289. # The linker can only warn and ignore the option if not recognized
  8290. # So say no if there are warnings
  8291. if test -s conftest.err; then
  8292. # Append any errors to the config.log.
  8293. cat conftest.err 1>&5
  8294. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8295. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8296. if diff conftest.exp conftest.er2 >/dev/null; then
  8297. lt_cv_prog_compiler__b=yes
  8298. fi
  8299. else
  8300. lt_cv_prog_compiler__b=yes
  8301. fi
  8302. fi
  8303. $RM -r conftest*
  8304. LDFLAGS="$save_LDFLAGS"
  8305. fi
  8306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8307. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8308. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8309. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8310. else
  8311. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8312. fi
  8313. ;;
  8314. esac
  8315. fi
  8316. if test "$with_gnu_ld" = no; then
  8317. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8318. hardcode_libdir_separator=:
  8319. case $host_cpu in
  8320. hppa*64*|ia64*)
  8321. hardcode_direct=no
  8322. hardcode_shlibpath_var=no
  8323. ;;
  8324. *)
  8325. hardcode_direct=yes
  8326. hardcode_direct_absolute=yes
  8327. export_dynamic_flag_spec='${wl}-E'
  8328. # hardcode_minus_L: Not really in the search PATH,
  8329. # but as the default location of the library.
  8330. hardcode_minus_L=yes
  8331. ;;
  8332. esac
  8333. fi
  8334. ;;
  8335. irix5* | irix6* | nonstopux*)
  8336. if test "$GCC" = yes; then
  8337. 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'
  8338. # Try to use the -exported_symbol ld option, if it does not
  8339. # work, assume that -exports_file does not work either and
  8340. # implicitly export all symbols.
  8341. save_LDFLAGS="$LDFLAGS"
  8342. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8344. /* end confdefs.h. */
  8345. int foo(void) {}
  8346. _ACEOF
  8347. if ac_fn_c_try_link "$LINENO"; then :
  8348. 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'
  8349. fi
  8350. rm -f core conftest.err conftest.$ac_objext \
  8351. conftest$ac_exeext conftest.$ac_ext
  8352. LDFLAGS="$save_LDFLAGS"
  8353. else
  8354. 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'
  8355. 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'
  8356. fi
  8357. archive_cmds_need_lc='no'
  8358. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8359. hardcode_libdir_separator=:
  8360. inherit_rpath=yes
  8361. link_all_deplibs=yes
  8362. ;;
  8363. netbsd*)
  8364. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8365. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8366. else
  8367. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8368. fi
  8369. hardcode_libdir_flag_spec='-R$libdir'
  8370. hardcode_direct=yes
  8371. hardcode_shlibpath_var=no
  8372. ;;
  8373. newsos6)
  8374. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8375. hardcode_direct=yes
  8376. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8377. hardcode_libdir_separator=:
  8378. hardcode_shlibpath_var=no
  8379. ;;
  8380. *nto* | *qnx*)
  8381. ;;
  8382. openbsd*)
  8383. if test -f /usr/libexec/ld.so; then
  8384. hardcode_direct=yes
  8385. hardcode_shlibpath_var=no
  8386. hardcode_direct_absolute=yes
  8387. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8388. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8389. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8390. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8391. export_dynamic_flag_spec='${wl}-E'
  8392. else
  8393. case $host_os in
  8394. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8395. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8396. hardcode_libdir_flag_spec='-R$libdir'
  8397. ;;
  8398. *)
  8399. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8400. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8401. ;;
  8402. esac
  8403. fi
  8404. else
  8405. ld_shlibs=no
  8406. fi
  8407. ;;
  8408. os2*)
  8409. hardcode_libdir_flag_spec='-L$libdir'
  8410. hardcode_minus_L=yes
  8411. allow_undefined_flag=unsupported
  8412. 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'
  8413. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8414. ;;
  8415. osf3*)
  8416. if test "$GCC" = yes; then
  8417. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8418. 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'
  8419. else
  8420. allow_undefined_flag=' -expect_unresolved \*'
  8421. 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'
  8422. fi
  8423. archive_cmds_need_lc='no'
  8424. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8425. hardcode_libdir_separator=:
  8426. ;;
  8427. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8428. if test "$GCC" = yes; then
  8429. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8430. 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'
  8431. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8432. else
  8433. allow_undefined_flag=' -expect_unresolved \*'
  8434. 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'
  8435. 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~
  8436. $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'
  8437. # Both c and cxx compiler support -rpath directly
  8438. hardcode_libdir_flag_spec='-rpath $libdir'
  8439. fi
  8440. archive_cmds_need_lc='no'
  8441. hardcode_libdir_separator=:
  8442. ;;
  8443. solaris*)
  8444. no_undefined_flag=' -z defs'
  8445. if test "$GCC" = yes; then
  8446. wlarc='${wl}'
  8447. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8448. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8449. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8450. else
  8451. case `$CC -V 2>&1` in
  8452. *"Compilers 5.0"*)
  8453. wlarc=''
  8454. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8455. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8456. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8457. ;;
  8458. *)
  8459. wlarc='${wl}'
  8460. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8461. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8462. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8463. ;;
  8464. esac
  8465. fi
  8466. hardcode_libdir_flag_spec='-R$libdir'
  8467. hardcode_shlibpath_var=no
  8468. case $host_os in
  8469. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8470. *)
  8471. # The compiler driver will combine and reorder linker options,
  8472. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8473. # but is careful enough not to reorder.
  8474. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8475. if test "$GCC" = yes; then
  8476. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8477. else
  8478. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8479. fi
  8480. ;;
  8481. esac
  8482. link_all_deplibs=yes
  8483. ;;
  8484. sunos4*)
  8485. if test "x$host_vendor" = xsequent; then
  8486. # Use $CC to link under sequent, because it throws in some extra .o
  8487. # files that make .init and .fini sections work.
  8488. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8489. else
  8490. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8491. fi
  8492. hardcode_libdir_flag_spec='-L$libdir'
  8493. hardcode_direct=yes
  8494. hardcode_minus_L=yes
  8495. hardcode_shlibpath_var=no
  8496. ;;
  8497. sysv4)
  8498. case $host_vendor in
  8499. sni)
  8500. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8501. hardcode_direct=yes # is this really true???
  8502. ;;
  8503. siemens)
  8504. ## LD is ld it makes a PLAMLIB
  8505. ## CC just makes a GrossModule.
  8506. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8507. reload_cmds='$CC -r -o $output$reload_objs'
  8508. hardcode_direct=no
  8509. ;;
  8510. motorola)
  8511. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8512. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8513. ;;
  8514. esac
  8515. runpath_var='LD_RUN_PATH'
  8516. hardcode_shlibpath_var=no
  8517. ;;
  8518. sysv4.3*)
  8519. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8520. hardcode_shlibpath_var=no
  8521. export_dynamic_flag_spec='-Bexport'
  8522. ;;
  8523. sysv4*MP*)
  8524. if test -d /usr/nec; then
  8525. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8526. hardcode_shlibpath_var=no
  8527. runpath_var=LD_RUN_PATH
  8528. hardcode_runpath_var=yes
  8529. ld_shlibs=yes
  8530. fi
  8531. ;;
  8532. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8533. no_undefined_flag='${wl}-z,text'
  8534. archive_cmds_need_lc=no
  8535. hardcode_shlibpath_var=no
  8536. runpath_var='LD_RUN_PATH'
  8537. if test "$GCC" = yes; then
  8538. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8539. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. else
  8541. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8542. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8543. fi
  8544. ;;
  8545. sysv5* | sco3.2v5* | sco5v6*)
  8546. # Note: We can NOT use -z defs as we might desire, because we do not
  8547. # link with -lc, and that would cause any symbols used from libc to
  8548. # always be unresolved, which means just about no library would
  8549. # ever link correctly. If we're not using GNU ld we use -z text
  8550. # though, which does catch some bad symbols but isn't as heavy-handed
  8551. # as -z defs.
  8552. no_undefined_flag='${wl}-z,text'
  8553. allow_undefined_flag='${wl}-z,nodefs'
  8554. archive_cmds_need_lc=no
  8555. hardcode_shlibpath_var=no
  8556. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8557. hardcode_libdir_separator=':'
  8558. link_all_deplibs=yes
  8559. export_dynamic_flag_spec='${wl}-Bexport'
  8560. runpath_var='LD_RUN_PATH'
  8561. if test "$GCC" = yes; then
  8562. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8563. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. else
  8565. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8566. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8567. fi
  8568. ;;
  8569. uts4*)
  8570. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8571. hardcode_libdir_flag_spec='-L$libdir'
  8572. hardcode_shlibpath_var=no
  8573. ;;
  8574. *)
  8575. ld_shlibs=no
  8576. ;;
  8577. esac
  8578. if test x$host_vendor = xsni; then
  8579. case $host in
  8580. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8581. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8582. ;;
  8583. esac
  8584. fi
  8585. fi
  8586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8587. $as_echo "$ld_shlibs" >&6; }
  8588. test "$ld_shlibs" = no && can_build_shared=no
  8589. with_gnu_ld=$with_gnu_ld
  8590. #
  8591. # Do we need to explicitly link libc?
  8592. #
  8593. case "x$archive_cmds_need_lc" in
  8594. x|xyes)
  8595. # Assume -lc should be added
  8596. archive_cmds_need_lc=yes
  8597. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8598. case $archive_cmds in
  8599. *'~'*)
  8600. # FIXME: we may have to deal with multi-command sequences.
  8601. ;;
  8602. '$CC '*)
  8603. # Test whether the compiler implicitly links with -lc since on some
  8604. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8605. # to ld, don't add -lc before -lgcc.
  8606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8607. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8608. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8609. $as_echo_n "(cached) " >&6
  8610. else
  8611. $RM conftest*
  8612. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8614. (eval $ac_compile) 2>&5
  8615. ac_status=$?
  8616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8617. test $ac_status = 0; } 2>conftest.err; then
  8618. soname=conftest
  8619. lib=conftest
  8620. libobjs=conftest.$ac_objext
  8621. deplibs=
  8622. wl=$lt_prog_compiler_wl
  8623. pic_flag=$lt_prog_compiler_pic
  8624. compiler_flags=-v
  8625. linker_flags=-v
  8626. verstring=
  8627. output_objdir=.
  8628. libname=conftest
  8629. lt_save_allow_undefined_flag=$allow_undefined_flag
  8630. allow_undefined_flag=
  8631. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8632. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8633. ac_status=$?
  8634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8635. test $ac_status = 0; }
  8636. then
  8637. lt_cv_archive_cmds_need_lc=no
  8638. else
  8639. lt_cv_archive_cmds_need_lc=yes
  8640. fi
  8641. allow_undefined_flag=$lt_save_allow_undefined_flag
  8642. else
  8643. cat conftest.err 1>&5
  8644. fi
  8645. $RM conftest*
  8646. fi
  8647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8648. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8649. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8650. ;;
  8651. esac
  8652. fi
  8653. ;;
  8654. esac
  8655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8656. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8657. if test "$GCC" = yes; then
  8658. case $host_os in
  8659. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8660. *) lt_awk_arg="/^libraries:/" ;;
  8661. esac
  8662. case $host_os in
  8663. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8664. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8665. esac
  8666. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8667. case $lt_search_path_spec in
  8668. *\;*)
  8669. # if the path contains ";" then we assume it to be the separator
  8670. # otherwise default to the standard path separator (i.e. ":") - it is
  8671. # assumed that no part of a normal pathname contains ";" but that should
  8672. # okay in the real world where ";" in dirpaths is itself problematic.
  8673. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8674. ;;
  8675. *)
  8676. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8677. ;;
  8678. esac
  8679. # Ok, now we have the path, separated by spaces, we can step through it
  8680. # and add multilib dir if necessary.
  8681. lt_tmp_lt_search_path_spec=
  8682. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8683. for lt_sys_path in $lt_search_path_spec; do
  8684. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8685. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8686. else
  8687. test -d "$lt_sys_path" && \
  8688. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8689. fi
  8690. done
  8691. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8692. BEGIN {RS=" "; FS="/|\n";} {
  8693. lt_foo="";
  8694. lt_count=0;
  8695. for (lt_i = NF; lt_i > 0; lt_i--) {
  8696. if ($lt_i != "" && $lt_i != ".") {
  8697. if ($lt_i == "..") {
  8698. lt_count++;
  8699. } else {
  8700. if (lt_count == 0) {
  8701. lt_foo="/" $lt_i lt_foo;
  8702. } else {
  8703. lt_count--;
  8704. }
  8705. }
  8706. }
  8707. }
  8708. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8709. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8710. }'`
  8711. # AWK program above erroneously prepends '/' to C:/dos/paths
  8712. # for these hosts.
  8713. case $host_os in
  8714. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8715. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8716. esac
  8717. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8718. else
  8719. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8720. fi
  8721. library_names_spec=
  8722. libname_spec='lib$name'
  8723. soname_spec=
  8724. shrext_cmds=".so"
  8725. postinstall_cmds=
  8726. postuninstall_cmds=
  8727. finish_cmds=
  8728. finish_eval=
  8729. shlibpath_var=
  8730. shlibpath_overrides_runpath=unknown
  8731. version_type=none
  8732. dynamic_linker="$host_os ld.so"
  8733. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8734. need_lib_prefix=unknown
  8735. hardcode_into_libs=no
  8736. # when you set need_version to no, make sure it does not cause -set_version
  8737. # flags to be left without arguments
  8738. need_version=unknown
  8739. case $host_os in
  8740. aix3*)
  8741. version_type=linux
  8742. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8743. shlibpath_var=LIBPATH
  8744. # AIX 3 has no versioning support, so we append a major version to the name.
  8745. soname_spec='${libname}${release}${shared_ext}$major'
  8746. ;;
  8747. aix[4-9]*)
  8748. version_type=linux
  8749. need_lib_prefix=no
  8750. need_version=no
  8751. hardcode_into_libs=yes
  8752. if test "$host_cpu" = ia64; then
  8753. # AIX 5 supports IA64
  8754. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8755. shlibpath_var=LD_LIBRARY_PATH
  8756. else
  8757. # With GCC up to 2.95.x, collect2 would create an import file
  8758. # for dependence libraries. The import file would start with
  8759. # the line `#! .'. This would cause the generated library to
  8760. # depend on `.', always an invalid library. This was fixed in
  8761. # development snapshots of GCC prior to 3.0.
  8762. case $host_os in
  8763. aix4 | aix4.[01] | aix4.[01].*)
  8764. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8765. echo ' yes '
  8766. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8767. :
  8768. else
  8769. can_build_shared=no
  8770. fi
  8771. ;;
  8772. esac
  8773. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8774. # soname into executable. Probably we can add versioning support to
  8775. # collect2, so additional links can be useful in future.
  8776. if test "$aix_use_runtimelinking" = yes; then
  8777. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8778. # instead of lib<name>.a to let people know that these are not
  8779. # typical AIX shared libraries.
  8780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8781. else
  8782. # We preserve .a as extension for shared libraries through AIX4.2
  8783. # and later when we are not doing run time linking.
  8784. library_names_spec='${libname}${release}.a $libname.a'
  8785. soname_spec='${libname}${release}${shared_ext}$major'
  8786. fi
  8787. shlibpath_var=LIBPATH
  8788. fi
  8789. ;;
  8790. amigaos*)
  8791. case $host_cpu in
  8792. powerpc)
  8793. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8794. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8796. ;;
  8797. m68k)
  8798. library_names_spec='$libname.ixlibrary $libname.a'
  8799. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8800. 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'
  8801. ;;
  8802. esac
  8803. ;;
  8804. beos*)
  8805. library_names_spec='${libname}${shared_ext}'
  8806. dynamic_linker="$host_os ld.so"
  8807. shlibpath_var=LIBRARY_PATH
  8808. ;;
  8809. bsdi[45]*)
  8810. version_type=linux
  8811. need_version=no
  8812. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8813. soname_spec='${libname}${release}${shared_ext}$major'
  8814. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8815. shlibpath_var=LD_LIBRARY_PATH
  8816. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8817. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8818. # the default ld.so.conf also contains /usr/contrib/lib and
  8819. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8820. # libtool to hard-code these into programs
  8821. ;;
  8822. cygwin* | mingw* | pw32* | cegcc*)
  8823. version_type=windows
  8824. shrext_cmds=".dll"
  8825. need_version=no
  8826. need_lib_prefix=no
  8827. case $GCC,$host_os in
  8828. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8829. library_names_spec='$libname.dll.a'
  8830. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8831. postinstall_cmds='base_file=`basename \${file}`~
  8832. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8833. dldir=$destdir/`dirname \$dlpath`~
  8834. test -d \$dldir || mkdir -p \$dldir~
  8835. $install_prog $dir/$dlname \$dldir/$dlname~
  8836. chmod a+x \$dldir/$dlname~
  8837. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8838. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8839. fi'
  8840. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8841. dlpath=$dir/\$dldll~
  8842. $RM \$dlpath'
  8843. shlibpath_overrides_runpath=yes
  8844. case $host_os in
  8845. cygwin*)
  8846. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8847. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8848. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8849. ;;
  8850. mingw* | cegcc*)
  8851. # MinGW DLLs use traditional 'lib' prefix
  8852. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8853. ;;
  8854. pw32*)
  8855. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8856. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8857. ;;
  8858. esac
  8859. ;;
  8860. *)
  8861. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8862. ;;
  8863. esac
  8864. dynamic_linker='Win32 ld.exe'
  8865. # FIXME: first we should search . and the directory the executable is in
  8866. shlibpath_var=PATH
  8867. ;;
  8868. darwin* | rhapsody*)
  8869. dynamic_linker="$host_os dyld"
  8870. version_type=darwin
  8871. need_lib_prefix=no
  8872. need_version=no
  8873. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8874. soname_spec='${libname}${release}${major}$shared_ext'
  8875. shlibpath_overrides_runpath=yes
  8876. shlibpath_var=DYLD_LIBRARY_PATH
  8877. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8878. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8879. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8880. ;;
  8881. dgux*)
  8882. version_type=linux
  8883. need_lib_prefix=no
  8884. need_version=no
  8885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8886. soname_spec='${libname}${release}${shared_ext}$major'
  8887. shlibpath_var=LD_LIBRARY_PATH
  8888. ;;
  8889. freebsd* | dragonfly*)
  8890. # DragonFly does not have aout. When/if they implement a new
  8891. # versioning mechanism, adjust this.
  8892. if test -x /usr/bin/objformat; then
  8893. objformat=`/usr/bin/objformat`
  8894. else
  8895. case $host_os in
  8896. freebsd[23].*) objformat=aout ;;
  8897. *) objformat=elf ;;
  8898. esac
  8899. fi
  8900. version_type=freebsd-$objformat
  8901. case $version_type in
  8902. freebsd-elf*)
  8903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8904. need_version=no
  8905. need_lib_prefix=no
  8906. ;;
  8907. freebsd-*)
  8908. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8909. need_version=yes
  8910. ;;
  8911. esac
  8912. shlibpath_var=LD_LIBRARY_PATH
  8913. case $host_os in
  8914. freebsd2.*)
  8915. shlibpath_overrides_runpath=yes
  8916. ;;
  8917. freebsd3.[01]* | freebsdelf3.[01]*)
  8918. shlibpath_overrides_runpath=yes
  8919. hardcode_into_libs=yes
  8920. ;;
  8921. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8922. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8923. shlibpath_overrides_runpath=no
  8924. hardcode_into_libs=yes
  8925. ;;
  8926. *) # from 4.6 on, and DragonFly
  8927. shlibpath_overrides_runpath=yes
  8928. hardcode_into_libs=yes
  8929. ;;
  8930. esac
  8931. ;;
  8932. gnu*)
  8933. version_type=linux
  8934. need_lib_prefix=no
  8935. need_version=no
  8936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8937. soname_spec='${libname}${release}${shared_ext}$major'
  8938. shlibpath_var=LD_LIBRARY_PATH
  8939. hardcode_into_libs=yes
  8940. ;;
  8941. haiku*)
  8942. version_type=linux
  8943. need_lib_prefix=no
  8944. need_version=no
  8945. dynamic_linker="$host_os runtime_loader"
  8946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8947. soname_spec='${libname}${release}${shared_ext}$major'
  8948. shlibpath_var=LIBRARY_PATH
  8949. shlibpath_overrides_runpath=yes
  8950. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8951. hardcode_into_libs=yes
  8952. ;;
  8953. hpux9* | hpux10* | hpux11*)
  8954. # Give a soname corresponding to the major version so that dld.sl refuses to
  8955. # link against other versions.
  8956. version_type=sunos
  8957. need_lib_prefix=no
  8958. need_version=no
  8959. case $host_cpu in
  8960. ia64*)
  8961. shrext_cmds='.so'
  8962. hardcode_into_libs=yes
  8963. dynamic_linker="$host_os dld.so"
  8964. shlibpath_var=LD_LIBRARY_PATH
  8965. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8967. soname_spec='${libname}${release}${shared_ext}$major'
  8968. if test "X$HPUX_IA64_MODE" = X32; then
  8969. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8970. else
  8971. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8972. fi
  8973. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8974. ;;
  8975. hppa*64*)
  8976. shrext_cmds='.sl'
  8977. hardcode_into_libs=yes
  8978. dynamic_linker="$host_os dld.sl"
  8979. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8980. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8982. soname_spec='${libname}${release}${shared_ext}$major'
  8983. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8984. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8985. ;;
  8986. *)
  8987. shrext_cmds='.sl'
  8988. dynamic_linker="$host_os dld.sl"
  8989. shlibpath_var=SHLIB_PATH
  8990. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8992. soname_spec='${libname}${release}${shared_ext}$major'
  8993. ;;
  8994. esac
  8995. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8996. postinstall_cmds='chmod 555 $lib'
  8997. # or fails outright, so override atomically:
  8998. install_override_mode=555
  8999. ;;
  9000. interix[3-9]*)
  9001. version_type=linux
  9002. need_lib_prefix=no
  9003. need_version=no
  9004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9005. soname_spec='${libname}${release}${shared_ext}$major'
  9006. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9007. shlibpath_var=LD_LIBRARY_PATH
  9008. shlibpath_overrides_runpath=no
  9009. hardcode_into_libs=yes
  9010. ;;
  9011. irix5* | irix6* | nonstopux*)
  9012. case $host_os in
  9013. nonstopux*) version_type=nonstopux ;;
  9014. *)
  9015. if test "$lt_cv_prog_gnu_ld" = yes; then
  9016. version_type=linux
  9017. else
  9018. version_type=irix
  9019. fi ;;
  9020. esac
  9021. need_lib_prefix=no
  9022. need_version=no
  9023. soname_spec='${libname}${release}${shared_ext}$major'
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9025. case $host_os in
  9026. irix5* | nonstopux*)
  9027. libsuff= shlibsuff=
  9028. ;;
  9029. *)
  9030. case $LD in # libtool.m4 will add one of these switches to LD
  9031. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9032. libsuff= shlibsuff= libmagic=32-bit;;
  9033. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9034. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9035. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9036. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9037. *) libsuff= shlibsuff= libmagic=never-match;;
  9038. esac
  9039. ;;
  9040. esac
  9041. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9042. shlibpath_overrides_runpath=no
  9043. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9044. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9045. hardcode_into_libs=yes
  9046. ;;
  9047. # No shared lib support for Linux oldld, aout, or coff.
  9048. linux*oldld* | linux*aout* | linux*coff*)
  9049. dynamic_linker=no
  9050. ;;
  9051. # This must be Linux ELF.
  9052. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9053. version_type=linux
  9054. need_lib_prefix=no
  9055. need_version=no
  9056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9057. soname_spec='${libname}${release}${shared_ext}$major'
  9058. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9059. shlibpath_var=LD_LIBRARY_PATH
  9060. shlibpath_overrides_runpath=no
  9061. # Some binutils ld are patched to set DT_RUNPATH
  9062. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9063. $as_echo_n "(cached) " >&6
  9064. else
  9065. lt_cv_shlibpath_overrides_runpath=no
  9066. save_LDFLAGS=$LDFLAGS
  9067. save_libdir=$libdir
  9068. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9069. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9071. /* end confdefs.h. */
  9072. int
  9073. main ()
  9074. {
  9075. ;
  9076. return 0;
  9077. }
  9078. _ACEOF
  9079. if ac_fn_c_try_link "$LINENO"; then :
  9080. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9081. lt_cv_shlibpath_overrides_runpath=yes
  9082. fi
  9083. fi
  9084. rm -f core conftest.err conftest.$ac_objext \
  9085. conftest$ac_exeext conftest.$ac_ext
  9086. LDFLAGS=$save_LDFLAGS
  9087. libdir=$save_libdir
  9088. fi
  9089. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9090. # This implies no fast_install, which is unacceptable.
  9091. # Some rework will be needed to allow for fast_install
  9092. # before this can be enabled.
  9093. hardcode_into_libs=yes
  9094. # Append ld.so.conf contents to the search path
  9095. if test -f /etc/ld.so.conf; then
  9096. 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' ' '`
  9097. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9098. fi
  9099. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9100. # powerpc, because MkLinux only supported shared libraries with the
  9101. # GNU dynamic linker. Since this was broken with cross compilers,
  9102. # most powerpc-linux boxes support dynamic linking these days and
  9103. # people can always --disable-shared, the test was removed, and we
  9104. # assume the GNU/Linux dynamic linker is in use.
  9105. dynamic_linker='GNU/Linux ld.so'
  9106. ;;
  9107. netbsd*)
  9108. version_type=sunos
  9109. need_lib_prefix=no
  9110. need_version=no
  9111. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9113. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9114. dynamic_linker='NetBSD (a.out) ld.so'
  9115. else
  9116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9117. soname_spec='${libname}${release}${shared_ext}$major'
  9118. dynamic_linker='NetBSD ld.elf_so'
  9119. fi
  9120. shlibpath_var=LD_LIBRARY_PATH
  9121. shlibpath_overrides_runpath=yes
  9122. hardcode_into_libs=yes
  9123. ;;
  9124. newsos6)
  9125. version_type=linux
  9126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9127. shlibpath_var=LD_LIBRARY_PATH
  9128. shlibpath_overrides_runpath=yes
  9129. ;;
  9130. *nto* | *qnx*)
  9131. version_type=qnx
  9132. need_lib_prefix=no
  9133. need_version=no
  9134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9135. soname_spec='${libname}${release}${shared_ext}$major'
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. shlibpath_overrides_runpath=no
  9138. hardcode_into_libs=yes
  9139. dynamic_linker='ldqnx.so'
  9140. ;;
  9141. openbsd*)
  9142. version_type=sunos
  9143. sys_lib_dlsearch_path_spec="/usr/lib"
  9144. need_lib_prefix=no
  9145. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9146. case $host_os in
  9147. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9148. *) need_version=no ;;
  9149. esac
  9150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9151. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9152. shlibpath_var=LD_LIBRARY_PATH
  9153. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9154. case $host_os in
  9155. openbsd2.[89] | openbsd2.[89].*)
  9156. shlibpath_overrides_runpath=no
  9157. ;;
  9158. *)
  9159. shlibpath_overrides_runpath=yes
  9160. ;;
  9161. esac
  9162. else
  9163. shlibpath_overrides_runpath=yes
  9164. fi
  9165. ;;
  9166. os2*)
  9167. libname_spec='$name'
  9168. shrext_cmds=".dll"
  9169. need_lib_prefix=no
  9170. library_names_spec='$libname${shared_ext} $libname.a'
  9171. dynamic_linker='OS/2 ld.exe'
  9172. shlibpath_var=LIBPATH
  9173. ;;
  9174. osf3* | osf4* | osf5*)
  9175. version_type=osf
  9176. need_lib_prefix=no
  9177. need_version=no
  9178. soname_spec='${libname}${release}${shared_ext}$major'
  9179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9180. shlibpath_var=LD_LIBRARY_PATH
  9181. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9182. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9183. ;;
  9184. rdos*)
  9185. dynamic_linker=no
  9186. ;;
  9187. solaris*)
  9188. version_type=linux
  9189. need_lib_prefix=no
  9190. need_version=no
  9191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9192. soname_spec='${libname}${release}${shared_ext}$major'
  9193. shlibpath_var=LD_LIBRARY_PATH
  9194. shlibpath_overrides_runpath=yes
  9195. hardcode_into_libs=yes
  9196. # ldd complains unless libraries are executable
  9197. postinstall_cmds='chmod +x $lib'
  9198. ;;
  9199. sunos4*)
  9200. version_type=sunos
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9202. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9203. shlibpath_var=LD_LIBRARY_PATH
  9204. shlibpath_overrides_runpath=yes
  9205. if test "$with_gnu_ld" = yes; then
  9206. need_lib_prefix=no
  9207. fi
  9208. need_version=yes
  9209. ;;
  9210. sysv4 | sysv4.3*)
  9211. version_type=linux
  9212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9213. soname_spec='${libname}${release}${shared_ext}$major'
  9214. shlibpath_var=LD_LIBRARY_PATH
  9215. case $host_vendor in
  9216. sni)
  9217. shlibpath_overrides_runpath=no
  9218. need_lib_prefix=no
  9219. runpath_var=LD_RUN_PATH
  9220. ;;
  9221. siemens)
  9222. need_lib_prefix=no
  9223. ;;
  9224. motorola)
  9225. need_lib_prefix=no
  9226. need_version=no
  9227. shlibpath_overrides_runpath=no
  9228. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9229. ;;
  9230. esac
  9231. ;;
  9232. sysv4*MP*)
  9233. if test -d /usr/nec ;then
  9234. version_type=linux
  9235. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9236. soname_spec='$libname${shared_ext}.$major'
  9237. shlibpath_var=LD_LIBRARY_PATH
  9238. fi
  9239. ;;
  9240. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9241. version_type=freebsd-elf
  9242. need_lib_prefix=no
  9243. need_version=no
  9244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9245. soname_spec='${libname}${release}${shared_ext}$major'
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. shlibpath_overrides_runpath=yes
  9248. hardcode_into_libs=yes
  9249. if test "$with_gnu_ld" = yes; then
  9250. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9251. else
  9252. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9253. case $host_os in
  9254. sco3.2v5*)
  9255. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9256. ;;
  9257. esac
  9258. fi
  9259. sys_lib_dlsearch_path_spec='/usr/lib'
  9260. ;;
  9261. tpf*)
  9262. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9263. version_type=linux
  9264. need_lib_prefix=no
  9265. need_version=no
  9266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9267. shlibpath_var=LD_LIBRARY_PATH
  9268. shlibpath_overrides_runpath=no
  9269. hardcode_into_libs=yes
  9270. ;;
  9271. uts4*)
  9272. version_type=linux
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9274. soname_spec='${libname}${release}${shared_ext}$major'
  9275. shlibpath_var=LD_LIBRARY_PATH
  9276. ;;
  9277. *)
  9278. dynamic_linker=no
  9279. ;;
  9280. esac
  9281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9282. $as_echo "$dynamic_linker" >&6; }
  9283. test "$dynamic_linker" = no && can_build_shared=no
  9284. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9285. if test "$GCC" = yes; then
  9286. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9287. fi
  9288. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9289. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9290. fi
  9291. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9292. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9293. fi
  9294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9295. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9296. hardcode_action=
  9297. if test -n "$hardcode_libdir_flag_spec" ||
  9298. test -n "$runpath_var" ||
  9299. test "X$hardcode_automatic" = "Xyes" ; then
  9300. # We can hardcode non-existent directories.
  9301. if test "$hardcode_direct" != no &&
  9302. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9303. # have to relink, otherwise we might link with an installed library
  9304. # when we should be linking with a yet-to-be-installed one
  9305. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9306. test "$hardcode_minus_L" != no; then
  9307. # Linking always hardcodes the temporary library directory.
  9308. hardcode_action=relink
  9309. else
  9310. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9311. hardcode_action=immediate
  9312. fi
  9313. else
  9314. # We cannot hardcode anything, or else we can only hardcode existing
  9315. # directories.
  9316. hardcode_action=unsupported
  9317. fi
  9318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9319. $as_echo "$hardcode_action" >&6; }
  9320. if test "$hardcode_action" = relink ||
  9321. test "$inherit_rpath" = yes; then
  9322. # Fast installation is not supported
  9323. enable_fast_install=no
  9324. elif test "$shlibpath_overrides_runpath" = yes ||
  9325. test "$enable_shared" = no; then
  9326. # Fast installation is not necessary
  9327. enable_fast_install=needless
  9328. fi
  9329. if test "x$enable_dlopen" != xyes; then
  9330. enable_dlopen=unknown
  9331. enable_dlopen_self=unknown
  9332. enable_dlopen_self_static=unknown
  9333. else
  9334. lt_cv_dlopen=no
  9335. lt_cv_dlopen_libs=
  9336. case $host_os in
  9337. beos*)
  9338. lt_cv_dlopen="load_add_on"
  9339. lt_cv_dlopen_libs=
  9340. lt_cv_dlopen_self=yes
  9341. ;;
  9342. mingw* | pw32* | cegcc*)
  9343. lt_cv_dlopen="LoadLibrary"
  9344. lt_cv_dlopen_libs=
  9345. ;;
  9346. cygwin*)
  9347. lt_cv_dlopen="dlopen"
  9348. lt_cv_dlopen_libs=
  9349. ;;
  9350. darwin*)
  9351. # if libdl is installed we need to link against it
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9353. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9354. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9355. $as_echo_n "(cached) " >&6
  9356. else
  9357. ac_check_lib_save_LIBS=$LIBS
  9358. LIBS="-ldl $LIBS"
  9359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9360. /* end confdefs.h. */
  9361. /* Override any GCC internal prototype to avoid an error.
  9362. Use char because int might match the return type of a GCC
  9363. builtin and then its argument prototype would still apply. */
  9364. #ifdef __cplusplus
  9365. extern "C"
  9366. #endif
  9367. char dlopen ();
  9368. int
  9369. main ()
  9370. {
  9371. return dlopen ();
  9372. ;
  9373. return 0;
  9374. }
  9375. _ACEOF
  9376. if ac_fn_c_try_link "$LINENO"; then :
  9377. ac_cv_lib_dl_dlopen=yes
  9378. else
  9379. ac_cv_lib_dl_dlopen=no
  9380. fi
  9381. rm -f core conftest.err conftest.$ac_objext \
  9382. conftest$ac_exeext conftest.$ac_ext
  9383. LIBS=$ac_check_lib_save_LIBS
  9384. fi
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9386. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9387. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9388. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9389. else
  9390. lt_cv_dlopen="dyld"
  9391. lt_cv_dlopen_libs=
  9392. lt_cv_dlopen_self=yes
  9393. fi
  9394. ;;
  9395. *)
  9396. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9397. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9398. lt_cv_dlopen="shl_load"
  9399. else
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9401. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9402. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9403. $as_echo_n "(cached) " >&6
  9404. else
  9405. ac_check_lib_save_LIBS=$LIBS
  9406. LIBS="-ldld $LIBS"
  9407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9408. /* end confdefs.h. */
  9409. /* Override any GCC internal prototype to avoid an error.
  9410. Use char because int might match the return type of a GCC
  9411. builtin and then its argument prototype would still apply. */
  9412. #ifdef __cplusplus
  9413. extern "C"
  9414. #endif
  9415. char shl_load ();
  9416. int
  9417. main ()
  9418. {
  9419. return shl_load ();
  9420. ;
  9421. return 0;
  9422. }
  9423. _ACEOF
  9424. if ac_fn_c_try_link "$LINENO"; then :
  9425. ac_cv_lib_dld_shl_load=yes
  9426. else
  9427. ac_cv_lib_dld_shl_load=no
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext \
  9430. conftest$ac_exeext conftest.$ac_ext
  9431. LIBS=$ac_check_lib_save_LIBS
  9432. fi
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9434. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9435. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9436. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9437. else
  9438. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9439. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9440. lt_cv_dlopen="dlopen"
  9441. else
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9443. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9444. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9445. $as_echo_n "(cached) " >&6
  9446. else
  9447. ac_check_lib_save_LIBS=$LIBS
  9448. LIBS="-ldl $LIBS"
  9449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9450. /* end confdefs.h. */
  9451. /* Override any GCC internal prototype to avoid an error.
  9452. Use char because int might match the return type of a GCC
  9453. builtin and then its argument prototype would still apply. */
  9454. #ifdef __cplusplus
  9455. extern "C"
  9456. #endif
  9457. char dlopen ();
  9458. int
  9459. main ()
  9460. {
  9461. return dlopen ();
  9462. ;
  9463. return 0;
  9464. }
  9465. _ACEOF
  9466. if ac_fn_c_try_link "$LINENO"; then :
  9467. ac_cv_lib_dl_dlopen=yes
  9468. else
  9469. ac_cv_lib_dl_dlopen=no
  9470. fi
  9471. rm -f core conftest.err conftest.$ac_objext \
  9472. conftest$ac_exeext conftest.$ac_ext
  9473. LIBS=$ac_check_lib_save_LIBS
  9474. fi
  9475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9476. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9477. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9478. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9479. else
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9481. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9482. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9483. $as_echo_n "(cached) " >&6
  9484. else
  9485. ac_check_lib_save_LIBS=$LIBS
  9486. LIBS="-lsvld $LIBS"
  9487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9488. /* end confdefs.h. */
  9489. /* Override any GCC internal prototype to avoid an error.
  9490. Use char because int might match the return type of a GCC
  9491. builtin and then its argument prototype would still apply. */
  9492. #ifdef __cplusplus
  9493. extern "C"
  9494. #endif
  9495. char dlopen ();
  9496. int
  9497. main ()
  9498. {
  9499. return dlopen ();
  9500. ;
  9501. return 0;
  9502. }
  9503. _ACEOF
  9504. if ac_fn_c_try_link "$LINENO"; then :
  9505. ac_cv_lib_svld_dlopen=yes
  9506. else
  9507. ac_cv_lib_svld_dlopen=no
  9508. fi
  9509. rm -f core conftest.err conftest.$ac_objext \
  9510. conftest$ac_exeext conftest.$ac_ext
  9511. LIBS=$ac_check_lib_save_LIBS
  9512. fi
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9514. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9515. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9516. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9517. else
  9518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9519. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9520. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9521. $as_echo_n "(cached) " >&6
  9522. else
  9523. ac_check_lib_save_LIBS=$LIBS
  9524. LIBS="-ldld $LIBS"
  9525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9526. /* end confdefs.h. */
  9527. /* Override any GCC internal prototype to avoid an error.
  9528. Use char because int might match the return type of a GCC
  9529. builtin and then its argument prototype would still apply. */
  9530. #ifdef __cplusplus
  9531. extern "C"
  9532. #endif
  9533. char dld_link ();
  9534. int
  9535. main ()
  9536. {
  9537. return dld_link ();
  9538. ;
  9539. return 0;
  9540. }
  9541. _ACEOF
  9542. if ac_fn_c_try_link "$LINENO"; then :
  9543. ac_cv_lib_dld_dld_link=yes
  9544. else
  9545. ac_cv_lib_dld_dld_link=no
  9546. fi
  9547. rm -f core conftest.err conftest.$ac_objext \
  9548. conftest$ac_exeext conftest.$ac_ext
  9549. LIBS=$ac_check_lib_save_LIBS
  9550. fi
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9552. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9553. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9554. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9555. fi
  9556. fi
  9557. fi
  9558. fi
  9559. fi
  9560. fi
  9561. ;;
  9562. esac
  9563. if test "x$lt_cv_dlopen" != xno; then
  9564. enable_dlopen=yes
  9565. else
  9566. enable_dlopen=no
  9567. fi
  9568. case $lt_cv_dlopen in
  9569. dlopen)
  9570. save_CPPFLAGS="$CPPFLAGS"
  9571. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9572. save_LDFLAGS="$LDFLAGS"
  9573. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9574. save_LIBS="$LIBS"
  9575. LIBS="$lt_cv_dlopen_libs $LIBS"
  9576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9577. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9578. if test "${lt_cv_dlopen_self+set}" = set; then :
  9579. $as_echo_n "(cached) " >&6
  9580. else
  9581. if test "$cross_compiling" = yes; then :
  9582. lt_cv_dlopen_self=cross
  9583. else
  9584. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9585. lt_status=$lt_dlunknown
  9586. cat > conftest.$ac_ext <<_LT_EOF
  9587. #line 11149 "configure"
  9588. #include "confdefs.h"
  9589. #if HAVE_DLFCN_H
  9590. #include <dlfcn.h>
  9591. #endif
  9592. #include <stdio.h>
  9593. #ifdef RTLD_GLOBAL
  9594. # define LT_DLGLOBAL RTLD_GLOBAL
  9595. #else
  9596. # ifdef DL_GLOBAL
  9597. # define LT_DLGLOBAL DL_GLOBAL
  9598. # else
  9599. # define LT_DLGLOBAL 0
  9600. # endif
  9601. #endif
  9602. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9603. find out it does not work in some platform. */
  9604. #ifndef LT_DLLAZY_OR_NOW
  9605. # ifdef RTLD_LAZY
  9606. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9607. # else
  9608. # ifdef DL_LAZY
  9609. # define LT_DLLAZY_OR_NOW DL_LAZY
  9610. # else
  9611. # ifdef RTLD_NOW
  9612. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9613. # else
  9614. # ifdef DL_NOW
  9615. # define LT_DLLAZY_OR_NOW DL_NOW
  9616. # else
  9617. # define LT_DLLAZY_OR_NOW 0
  9618. # endif
  9619. # endif
  9620. # endif
  9621. # endif
  9622. #endif
  9623. /* When -fvisbility=hidden is used, assume the code has been annotated
  9624. correspondingly for the symbols needed. */
  9625. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9626. void fnord () __attribute__((visibility("default")));
  9627. #endif
  9628. void fnord () { int i=42; }
  9629. int main ()
  9630. {
  9631. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9632. int status = $lt_dlunknown;
  9633. if (self)
  9634. {
  9635. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9636. else
  9637. {
  9638. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9639. else puts (dlerror ());
  9640. }
  9641. /* dlclose (self); */
  9642. }
  9643. else
  9644. puts (dlerror ());
  9645. return status;
  9646. }
  9647. _LT_EOF
  9648. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9649. (eval $ac_link) 2>&5
  9650. ac_status=$?
  9651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9652. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9653. (./conftest; exit; ) >&5 2>/dev/null
  9654. lt_status=$?
  9655. case x$lt_status in
  9656. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9657. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9658. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9659. esac
  9660. else :
  9661. # compilation failed
  9662. lt_cv_dlopen_self=no
  9663. fi
  9664. fi
  9665. rm -fr conftest*
  9666. fi
  9667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9668. $as_echo "$lt_cv_dlopen_self" >&6; }
  9669. if test "x$lt_cv_dlopen_self" = xyes; then
  9670. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9672. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9673. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9674. $as_echo_n "(cached) " >&6
  9675. else
  9676. if test "$cross_compiling" = yes; then :
  9677. lt_cv_dlopen_self_static=cross
  9678. else
  9679. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9680. lt_status=$lt_dlunknown
  9681. cat > conftest.$ac_ext <<_LT_EOF
  9682. #line 11255 "configure"
  9683. #include "confdefs.h"
  9684. #if HAVE_DLFCN_H
  9685. #include <dlfcn.h>
  9686. #endif
  9687. #include <stdio.h>
  9688. #ifdef RTLD_GLOBAL
  9689. # define LT_DLGLOBAL RTLD_GLOBAL
  9690. #else
  9691. # ifdef DL_GLOBAL
  9692. # define LT_DLGLOBAL DL_GLOBAL
  9693. # else
  9694. # define LT_DLGLOBAL 0
  9695. # endif
  9696. #endif
  9697. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9698. find out it does not work in some platform. */
  9699. #ifndef LT_DLLAZY_OR_NOW
  9700. # ifdef RTLD_LAZY
  9701. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9702. # else
  9703. # ifdef DL_LAZY
  9704. # define LT_DLLAZY_OR_NOW DL_LAZY
  9705. # else
  9706. # ifdef RTLD_NOW
  9707. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9708. # else
  9709. # ifdef DL_NOW
  9710. # define LT_DLLAZY_OR_NOW DL_NOW
  9711. # else
  9712. # define LT_DLLAZY_OR_NOW 0
  9713. # endif
  9714. # endif
  9715. # endif
  9716. # endif
  9717. #endif
  9718. /* When -fvisbility=hidden is used, assume the code has been annotated
  9719. correspondingly for the symbols needed. */
  9720. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9721. void fnord () __attribute__((visibility("default")));
  9722. #endif
  9723. void fnord () { int i=42; }
  9724. int main ()
  9725. {
  9726. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9727. int status = $lt_dlunknown;
  9728. if (self)
  9729. {
  9730. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9731. else
  9732. {
  9733. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9734. else puts (dlerror ());
  9735. }
  9736. /* dlclose (self); */
  9737. }
  9738. else
  9739. puts (dlerror ());
  9740. return status;
  9741. }
  9742. _LT_EOF
  9743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9744. (eval $ac_link) 2>&5
  9745. ac_status=$?
  9746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9747. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9748. (./conftest; exit; ) >&5 2>/dev/null
  9749. lt_status=$?
  9750. case x$lt_status in
  9751. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9752. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9753. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9754. esac
  9755. else :
  9756. # compilation failed
  9757. lt_cv_dlopen_self_static=no
  9758. fi
  9759. fi
  9760. rm -fr conftest*
  9761. fi
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9763. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9764. fi
  9765. CPPFLAGS="$save_CPPFLAGS"
  9766. LDFLAGS="$save_LDFLAGS"
  9767. LIBS="$save_LIBS"
  9768. ;;
  9769. esac
  9770. case $lt_cv_dlopen_self in
  9771. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9772. *) enable_dlopen_self=unknown ;;
  9773. esac
  9774. case $lt_cv_dlopen_self_static in
  9775. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9776. *) enable_dlopen_self_static=unknown ;;
  9777. esac
  9778. fi
  9779. striplib=
  9780. old_striplib=
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9782. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9783. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9784. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9785. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9787. $as_echo "yes" >&6; }
  9788. else
  9789. # FIXME - insert some real tests, host_os isn't really good enough
  9790. case $host_os in
  9791. darwin*)
  9792. if test -n "$STRIP" ; then
  9793. striplib="$STRIP -x"
  9794. old_striplib="$STRIP -S"
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9796. $as_echo "yes" >&6; }
  9797. else
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9799. $as_echo "no" >&6; }
  9800. fi
  9801. ;;
  9802. *)
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9804. $as_echo "no" >&6; }
  9805. ;;
  9806. esac
  9807. fi
  9808. # Report which library types will actually be built
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9810. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9812. $as_echo "$can_build_shared" >&6; }
  9813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9814. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9815. test "$can_build_shared" = "no" && enable_shared=no
  9816. # On AIX, shared libraries and static libraries use the same namespace, and
  9817. # are all built from PIC.
  9818. case $host_os in
  9819. aix3*)
  9820. test "$enable_shared" = yes && enable_static=no
  9821. if test -n "$RANLIB"; then
  9822. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9823. postinstall_cmds='$RANLIB $lib'
  9824. fi
  9825. ;;
  9826. aix[4-9]*)
  9827. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9828. test "$enable_shared" = yes && enable_static=no
  9829. fi
  9830. ;;
  9831. esac
  9832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9833. $as_echo "$enable_shared" >&6; }
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9835. $as_echo_n "checking whether to build static libraries... " >&6; }
  9836. # Make sure either enable_shared or enable_static is yes.
  9837. test "$enable_shared" = yes || enable_static=yes
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9839. $as_echo "$enable_static" >&6; }
  9840. fi
  9841. ac_ext=c
  9842. ac_cpp='$CPP $CPPFLAGS'
  9843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9846. CC="$lt_save_CC"
  9847. ac_config_commands="$ac_config_commands libtool"
  9848. # Only expand once:
  9849. # Check whether --enable-targets was given.
  9850. if test "${enable_targets+set}" = set; then :
  9851. enableval=$enable_targets; case "${enableval}" in
  9852. yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
  9853. ;;
  9854. no) enable_targets= ;;
  9855. *) enable_targets=$enableval ;;
  9856. esac
  9857. fi
  9858. # Set the 'development' global.
  9859. . $srcdir/../bfd/development.sh
  9860. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  9861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9862. /* end confdefs.h. */
  9863. __GNUC__
  9864. _ACEOF
  9865. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9866. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  9867. else
  9868. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  9869. fi
  9870. rm -f conftest*
  9871. # Check whether --enable-werror was given.
  9872. if test "${enable_werror+set}" = set; then :
  9873. enableval=$enable_werror; case "${enableval}" in
  9874. yes | y) ERROR_ON_WARNING="yes" ;;
  9875. no | n) ERROR_ON_WARNING="no" ;;
  9876. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  9877. esac
  9878. fi
  9879. # Disable -Wformat by default when using gcc on mingw
  9880. case "${host}" in
  9881. *-*-mingw32*)
  9882. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  9883. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  9884. fi
  9885. ;;
  9886. *) ;;
  9887. esac
  9888. # Enable -Werror by default when using gcc. Turn it off for releases.
  9889. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  9890. ERROR_ON_WARNING=yes
  9891. fi
  9892. NO_WERROR=
  9893. if test "${ERROR_ON_WARNING}" = yes ; then
  9894. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  9895. NO_WERROR="-Wno-error"
  9896. fi
  9897. if test "${GCC}" = yes ; then
  9898. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  9899. fi
  9900. # Check whether --enable-build-warnings was given.
  9901. if test "${enable_build_warnings+set}" = set; then :
  9902. enableval=$enable_build_warnings; case "${enableval}" in
  9903. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
  9904. no) if test "${GCC}" = yes ; then
  9905. WARN_CFLAGS="-w"
  9906. fi;;
  9907. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  9908. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
  9909. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  9910. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
  9911. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  9912. esac
  9913. fi
  9914. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  9915. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  9916. fi
  9917. ac_ext=c
  9918. ac_cpp='$CPP $CPPFLAGS'
  9919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9922. NO_WMISSING_FIELD_INITIALIZERS=
  9923. save_CFLAGS="$CFLAGS"
  9924. for real_option in -Wno-missing-field-initializers; do
  9925. # Do the check with the no- prefix removed since gcc silently
  9926. # accepts any -Wno-* option on purpose
  9927. case $real_option in
  9928. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  9929. *) option=$real_option ;;
  9930. esac
  9931. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  9933. $as_echo_n "checking whether $CC supports $option... " >&6; }
  9934. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  9935. $as_echo_n "(cached) " >&6
  9936. else
  9937. CFLAGS="$option"
  9938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9939. /* end confdefs.h. */
  9940. int
  9941. main ()
  9942. {
  9943. ;
  9944. return 0;
  9945. }
  9946. _ACEOF
  9947. if ac_fn_c_try_compile "$LINENO"; then :
  9948. eval "$as_acx_Woption=yes"
  9949. else
  9950. eval "$as_acx_Woption=no"
  9951. fi
  9952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9953. fi
  9954. eval ac_res=\$$as_acx_Woption
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9956. $as_echo "$ac_res" >&6; }
  9957. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  9958. NO_WMISSING_FIELD_INITIALIZERS="$NO_WMISSING_FIELD_INITIALIZERS${NO_WMISSING_FIELD_INITIALIZERS:+ }$real_option"
  9959. fi
  9960. done
  9961. CFLAGS="$save_CFLAGS"
  9962. ac_ext=c
  9963. ac_cpp='$CPP $CPPFLAGS'
  9964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9967. ac_config_headers="$ac_config_headers config.h:config.in"
  9968. # PR 14072
  9969. if test -z "$target" ; then
  9970. as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9973. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  9974. # Check whether --enable-maintainer-mode was given.
  9975. if test "${enable_maintainer_mode+set}" = set; then :
  9976. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  9977. else
  9978. USE_MAINTAINER_MODE=no
  9979. fi
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  9981. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  9982. if test $USE_MAINTAINER_MODE = yes; then
  9983. MAINTAINER_MODE_TRUE=
  9984. MAINTAINER_MODE_FALSE='#'
  9985. else
  9986. MAINTAINER_MODE_TRUE='#'
  9987. MAINTAINER_MODE_FALSE=
  9988. fi
  9989. MAINT=$MAINTAINER_MODE_TRUE
  9990. case ${build_alias} in
  9991. "") build_noncanonical=${build} ;;
  9992. *) build_noncanonical=${build_alias} ;;
  9993. esac
  9994. case ${host_alias} in
  9995. "") host_noncanonical=${build_noncanonical} ;;
  9996. *) host_noncanonical=${host_alias} ;;
  9997. esac
  9998. case ${target_alias} in
  9999. "") target_noncanonical=${host_noncanonical} ;;
  10000. *) target_noncanonical=${target_alias} ;;
  10001. esac
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
  10003. $as_echo_n "checking whether to install libbfd... " >&6; }
  10004. # Check whether --enable-install-libbfd was given.
  10005. if test "${enable_install_libbfd+set}" = set; then :
  10006. enableval=$enable_install_libbfd; install_libbfd_p=$enableval
  10007. else
  10008. if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
  10009. install_libbfd_p=yes
  10010. else
  10011. install_libbfd_p=no
  10012. fi
  10013. fi
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
  10015. $as_echo "$install_libbfd_p" >&6; }
  10016. if test $install_libbfd_p = yes; then
  10017. INSTALL_LIBBFD_TRUE=
  10018. INSTALL_LIBBFD_FALSE='#'
  10019. else
  10020. INSTALL_LIBBFD_TRUE='#'
  10021. INSTALL_LIBBFD_FALSE=
  10022. fi
  10023. # Need _noncanonical variables for this.
  10024. # libbfd.a is a host library containing target dependent code
  10025. bfdlibdir='$(libdir)'
  10026. bfdincludedir='$(includedir)'
  10027. if test "${host}" != "${target}"; then
  10028. bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
  10029. bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
  10030. fi
  10031. # host-specific stuff:
  10032. ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN it uk"
  10033. # If we haven't got the data from the intl directory,
  10034. # assume NLS is disabled.
  10035. USE_NLS=no
  10036. LIBINTL=
  10037. LIBINTL_DEP=
  10038. INCINTL=
  10039. XGETTEXT=
  10040. GMSGFMT=
  10041. POSUB=
  10042. if test -f ../intl/config.intl; then
  10043. . ../intl/config.intl
  10044. fi
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10046. $as_echo_n "checking whether NLS is requested... " >&6; }
  10047. if test x"$USE_NLS" != xyes; then
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10049. $as_echo "no" >&6; }
  10050. else
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10052. $as_echo "yes" >&6; }
  10053. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  10055. $as_echo_n "checking for catalogs to be installed... " >&6; }
  10056. # Look for .po and .gmo files in the source directory.
  10057. CATALOGS=
  10058. XLINGUAS=
  10059. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  10060. # If there aren't any .gmo files the shell will give us the
  10061. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  10062. # weeded out.
  10063. case "$cat" in *\**)
  10064. continue;;
  10065. esac
  10066. # The quadruple backslash is collapsed to a double backslash
  10067. # by the backticks, then collapsed again by the double quotes,
  10068. # leaving us with one backslash in the sed expression (right
  10069. # before the dot that mustn't act as a wildcard).
  10070. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  10071. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  10072. # The user is allowed to set LINGUAS to a list of languages to
  10073. # install catalogs for. If it's empty that means "all of them."
  10074. if test "x$LINGUAS" = x; then
  10075. CATALOGS="$CATALOGS $cat"
  10076. XLINGUAS="$XLINGUAS $lang"
  10077. else
  10078. case "$LINGUAS" in *$lang*)
  10079. CATALOGS="$CATALOGS $cat"
  10080. XLINGUAS="$XLINGUAS $lang"
  10081. ;;
  10082. esac
  10083. fi
  10084. done
  10085. LINGUAS="$XLINGUAS"
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  10087. $as_echo "$LINGUAS" >&6; }
  10088. DATADIRNAME=share
  10089. INSTOBJEXT=.mo
  10090. GENCAT=gencat
  10091. CATOBJEXT=.gmo
  10092. fi
  10093. MKINSTALLDIRS=
  10094. if test -n "$ac_aux_dir"; then
  10095. case "$ac_aux_dir" in
  10096. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  10097. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  10098. esac
  10099. fi
  10100. if test -z "$MKINSTALLDIRS"; then
  10101. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  10102. fi
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10104. $as_echo_n "checking whether NLS is requested... " >&6; }
  10105. # Check whether --enable-nls was given.
  10106. if test "${enable_nls+set}" = set; then :
  10107. enableval=$enable_nls; USE_NLS=$enableval
  10108. else
  10109. USE_NLS=yes
  10110. fi
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  10112. $as_echo "$USE_NLS" >&6; }
  10113. # Prepare PATH_SEPARATOR.
  10114. # The user is always right.
  10115. if test "${PATH_SEPARATOR+set}" != set; then
  10116. echo "#! /bin/sh" >conf$$.sh
  10117. echo "exit 0" >>conf$$.sh
  10118. chmod +x conf$$.sh
  10119. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10120. PATH_SEPARATOR=';'
  10121. else
  10122. PATH_SEPARATOR=:
  10123. fi
  10124. rm -f conf$$.sh
  10125. fi
  10126. # Find out how to test for executable files. Don't use a zero-byte file,
  10127. # as systems may use methods other than mode bits to determine executability.
  10128. cat >conf$$.file <<_ASEOF
  10129. #! /bin/sh
  10130. exit 0
  10131. _ASEOF
  10132. chmod +x conf$$.file
  10133. if test -x conf$$.file >/dev/null 2>&1; then
  10134. ac_executable_p="test -x"
  10135. else
  10136. ac_executable_p="test -f"
  10137. fi
  10138. rm -f conf$$.file
  10139. # Extract the first word of "msgfmt", so it can be a program name with args.
  10140. set dummy msgfmt; ac_word=$2
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10142. $as_echo_n "checking for $ac_word... " >&6; }
  10143. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  10144. $as_echo_n "(cached) " >&6
  10145. else
  10146. case "$MSGFMT" in
  10147. [\\/]* | ?:[\\/]*)
  10148. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10149. ;;
  10150. *)
  10151. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10152. for ac_dir in $PATH; do
  10153. IFS="$ac_save_IFS"
  10154. test -z "$ac_dir" && ac_dir=.
  10155. for ac_exec_ext in '' $ac_executable_extensions; do
  10156. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10157. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  10158. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10159. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10160. break 2
  10161. fi
  10162. fi
  10163. done
  10164. done
  10165. IFS="$ac_save_IFS"
  10166. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10167. ;;
  10168. esac
  10169. fi
  10170. MSGFMT="$ac_cv_path_MSGFMT"
  10171. if test "$MSGFMT" != ":"; then
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  10173. $as_echo "$MSGFMT" >&6; }
  10174. else
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10176. $as_echo "no" >&6; }
  10177. fi
  10178. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10179. set dummy gmsgfmt; ac_word=$2
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10181. $as_echo_n "checking for $ac_word... " >&6; }
  10182. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  10183. $as_echo_n "(cached) " >&6
  10184. else
  10185. case $GMSGFMT in
  10186. [\\/]* | ?:[\\/]*)
  10187. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10188. ;;
  10189. *)
  10190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10191. for as_dir in $PATH
  10192. do
  10193. IFS=$as_save_IFS
  10194. test -z "$as_dir" && as_dir=.
  10195. for ac_exec_ext in '' $ac_executable_extensions; do
  10196. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10197. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10199. break 2
  10200. fi
  10201. done
  10202. done
  10203. IFS=$as_save_IFS
  10204. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10205. ;;
  10206. esac
  10207. fi
  10208. GMSGFMT=$ac_cv_path_GMSGFMT
  10209. if test -n "$GMSGFMT"; then
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  10211. $as_echo "$GMSGFMT" >&6; }
  10212. else
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10214. $as_echo "no" >&6; }
  10215. fi
  10216. # Prepare PATH_SEPARATOR.
  10217. # The user is always right.
  10218. if test "${PATH_SEPARATOR+set}" != set; then
  10219. echo "#! /bin/sh" >conf$$.sh
  10220. echo "exit 0" >>conf$$.sh
  10221. chmod +x conf$$.sh
  10222. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10223. PATH_SEPARATOR=';'
  10224. else
  10225. PATH_SEPARATOR=:
  10226. fi
  10227. rm -f conf$$.sh
  10228. fi
  10229. # Find out how to test for executable files. Don't use a zero-byte file,
  10230. # as systems may use methods other than mode bits to determine executability.
  10231. cat >conf$$.file <<_ASEOF
  10232. #! /bin/sh
  10233. exit 0
  10234. _ASEOF
  10235. chmod +x conf$$.file
  10236. if test -x conf$$.file >/dev/null 2>&1; then
  10237. ac_executable_p="test -x"
  10238. else
  10239. ac_executable_p="test -f"
  10240. fi
  10241. rm -f conf$$.file
  10242. # Extract the first word of "xgettext", so it can be a program name with args.
  10243. set dummy xgettext; ac_word=$2
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10245. $as_echo_n "checking for $ac_word... " >&6; }
  10246. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  10247. $as_echo_n "(cached) " >&6
  10248. else
  10249. case "$XGETTEXT" in
  10250. [\\/]* | ?:[\\/]*)
  10251. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10252. ;;
  10253. *)
  10254. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10255. for ac_dir in $PATH; do
  10256. IFS="$ac_save_IFS"
  10257. test -z "$ac_dir" && ac_dir=.
  10258. for ac_exec_ext in '' $ac_executable_extensions; do
  10259. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10260. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10261. (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
  10262. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10263. break 2
  10264. fi
  10265. fi
  10266. done
  10267. done
  10268. IFS="$ac_save_IFS"
  10269. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10270. ;;
  10271. esac
  10272. fi
  10273. XGETTEXT="$ac_cv_path_XGETTEXT"
  10274. if test "$XGETTEXT" != ":"; then
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  10276. $as_echo "$XGETTEXT" >&6; }
  10277. else
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10279. $as_echo "no" >&6; }
  10280. fi
  10281. rm -f messages.po
  10282. # Prepare PATH_SEPARATOR.
  10283. # The user is always right.
  10284. if test "${PATH_SEPARATOR+set}" != set; then
  10285. echo "#! /bin/sh" >conf$$.sh
  10286. echo "exit 0" >>conf$$.sh
  10287. chmod +x conf$$.sh
  10288. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10289. PATH_SEPARATOR=';'
  10290. else
  10291. PATH_SEPARATOR=:
  10292. fi
  10293. rm -f conf$$.sh
  10294. fi
  10295. # Find out how to test for executable files. Don't use a zero-byte file,
  10296. # as systems may use methods other than mode bits to determine executability.
  10297. cat >conf$$.file <<_ASEOF
  10298. #! /bin/sh
  10299. exit 0
  10300. _ASEOF
  10301. chmod +x conf$$.file
  10302. if test -x conf$$.file >/dev/null 2>&1; then
  10303. ac_executable_p="test -x"
  10304. else
  10305. ac_executable_p="test -f"
  10306. fi
  10307. rm -f conf$$.file
  10308. # Extract the first word of "msgmerge", so it can be a program name with args.
  10309. set dummy msgmerge; ac_word=$2
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10311. $as_echo_n "checking for $ac_word... " >&6; }
  10312. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  10313. $as_echo_n "(cached) " >&6
  10314. else
  10315. case "$MSGMERGE" in
  10316. [\\/]* | ?:[\\/]*)
  10317. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10318. ;;
  10319. *)
  10320. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10321. for ac_dir in $PATH; do
  10322. IFS="$ac_save_IFS"
  10323. test -z "$ac_dir" && ac_dir=.
  10324. for ac_exec_ext in '' $ac_executable_extensions; do
  10325. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10326. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  10327. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10328. break 2
  10329. fi
  10330. fi
  10331. done
  10332. done
  10333. IFS="$ac_save_IFS"
  10334. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10335. ;;
  10336. esac
  10337. fi
  10338. MSGMERGE="$ac_cv_path_MSGMERGE"
  10339. if test "$MSGMERGE" != ":"; then
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  10341. $as_echo "$MSGMERGE" >&6; }
  10342. else
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10344. $as_echo "no" >&6; }
  10345. fi
  10346. if test "$GMSGFMT" != ":"; then
  10347. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  10348. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10349. : ;
  10350. else
  10351. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  10353. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  10354. GMSGFMT=":"
  10355. fi
  10356. fi
  10357. if test "$XGETTEXT" != ":"; then
  10358. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10359. (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
  10360. : ;
  10361. else
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  10363. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  10364. XGETTEXT=":"
  10365. fi
  10366. rm -f messages.po
  10367. fi
  10368. ac_config_commands="$ac_config_commands default-1"
  10369. . ${srcdir}/../bfd/configure.host
  10370. # Put a plausible default for CC_FOR_BUILD in Makefile.
  10371. if test -z "$CC_FOR_BUILD"; then
  10372. if test "x$cross_compiling" = "xno"; then
  10373. CC_FOR_BUILD='$(CC)'
  10374. else
  10375. CC_FOR_BUILD=gcc
  10376. fi
  10377. fi
  10378. # Also set EXEEXT_FOR_BUILD.
  10379. if test "x$cross_compiling" = "xno"; then
  10380. EXEEXT_FOR_BUILD='$(EXEEXT)'
  10381. else
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
  10383. $as_echo_n "checking for build system executable suffix... " >&6; }
  10384. if test "${bfd_cv_build_exeext+set}" = set; then :
  10385. $as_echo_n "(cached) " >&6
  10386. else
  10387. rm -f conftest*
  10388. echo 'int main () { return 0; }' > conftest.c
  10389. bfd_cv_build_exeext=
  10390. ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
  10391. for file in conftest.*; do
  10392. case $file in
  10393. *.c | *.o | *.obj | *.ilk | *.pdb) ;;
  10394. *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  10395. esac
  10396. done
  10397. rm -f conftest*
  10398. test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
  10399. fi
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
  10401. $as_echo "$bfd_cv_build_exeext" >&6; }
  10402. EXEEXT_FOR_BUILD=""
  10403. test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
  10404. fi
  10405. for ac_header in string.h strings.h stdlib.h limits.h
  10406. do :
  10407. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10408. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10409. eval as_val=\$$as_ac_Header
  10410. if test "x$as_val" = x""yes; then :
  10411. cat >>confdefs.h <<_ACEOF
  10412. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10413. _ACEOF
  10414. fi
  10415. done
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  10417. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  10418. if test "${gcc_cv_header_string+set}" = set; then :
  10419. $as_echo_n "(cached) " >&6
  10420. else
  10421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10422. /* end confdefs.h. */
  10423. #include <string.h>
  10424. #include <strings.h>
  10425. int
  10426. main ()
  10427. {
  10428. ;
  10429. return 0;
  10430. }
  10431. _ACEOF
  10432. if ac_fn_c_try_compile "$LINENO"; then :
  10433. gcc_cv_header_string=yes
  10434. else
  10435. gcc_cv_header_string=no
  10436. fi
  10437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10438. fi
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  10440. $as_echo "$gcc_cv_header_string" >&6; }
  10441. if test $gcc_cv_header_string = yes; then
  10442. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  10443. fi
  10444. ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
  10445. if test "x$ac_cv_have_decl_basename" = x""yes; then :
  10446. ac_have_decl=1
  10447. else
  10448. ac_have_decl=0
  10449. fi
  10450. cat >>confdefs.h <<_ACEOF
  10451. #define HAVE_DECL_BASENAME $ac_have_decl
  10452. _ACEOF
  10453. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  10454. if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
  10455. ac_have_decl=1
  10456. else
  10457. ac_have_decl=0
  10458. fi
  10459. cat >>confdefs.h <<_ACEOF
  10460. #define HAVE_DECL_STPCPY $ac_have_decl
  10461. _ACEOF
  10462. # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
  10463. # since sigsetjmp might only be defined as a macro.
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
  10465. $as_echo_n "checking for sigsetjmp... " >&6; }
  10466. if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
  10467. $as_echo_n "(cached) " >&6
  10468. else
  10469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10470. /* end confdefs.h. */
  10471. #include <setjmp.h>
  10472. int
  10473. main ()
  10474. {
  10475. sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
  10476. ;
  10477. return 0;
  10478. }
  10479. _ACEOF
  10480. if ac_fn_c_try_compile "$LINENO"; then :
  10481. bfd_cv_func_sigsetjmp=yes
  10482. else
  10483. bfd_cv_func_sigsetjmp=no
  10484. fi
  10485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10486. fi
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
  10488. $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
  10489. if test $bfd_cv_func_sigsetjmp = yes; then
  10490. $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
  10491. fi
  10492. cgen_maint=no
  10493. cgendir='$(srcdir)/../cgen'
  10494. # Check whether --enable-cgen-maint was given.
  10495. if test "${enable_cgen_maint+set}" = set; then :
  10496. enableval=$enable_cgen_maint; case "${enableval}" in
  10497. yes) cgen_maint=yes ;;
  10498. no) cgen_maint=no ;;
  10499. *)
  10500. # argument is cgen install directory (not implemented yet).
  10501. # Having a `share' directory might be more appropriate for the .scm,
  10502. # .cpu, etc. files.
  10503. cgen_maint=yes
  10504. cgendir=${cgen_maint}/lib/cgen
  10505. ;;
  10506. esac
  10507. fi
  10508. if test x${cgen_maint} = xyes; then
  10509. CGEN_MAINT_TRUE=
  10510. CGEN_MAINT_FALSE='#'
  10511. else
  10512. CGEN_MAINT_TRUE='#'
  10513. CGEN_MAINT_FALSE=
  10514. fi
  10515. using_cgen=no
  10516. # Check if linker supports --as-needed and --no-as-needed options
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
  10518. $as_echo_n "checking linker --as-needed support... " >&6; }
  10519. if test "${bfd_cv_ld_as_needed+set}" = set; then :
  10520. $as_echo_n "(cached) " >&6
  10521. else
  10522. bfd_cv_ld_as_needed=no
  10523. if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
  10524. bfd_cv_ld_as_needed=yes
  10525. fi
  10526. fi
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
  10528. $as_echo "$bfd_cv_ld_as_needed" >&6; }
  10529. LIBM=
  10530. case $host in
  10531. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  10532. # These system don't have libm, or don't need it
  10533. ;;
  10534. *-ncr-sysv4.3*)
  10535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  10536. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  10537. if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
  10538. $as_echo_n "(cached) " >&6
  10539. else
  10540. ac_check_lib_save_LIBS=$LIBS
  10541. LIBS="-lmw $LIBS"
  10542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10543. /* end confdefs.h. */
  10544. /* Override any GCC internal prototype to avoid an error.
  10545. Use char because int might match the return type of a GCC
  10546. builtin and then its argument prototype would still apply. */
  10547. #ifdef __cplusplus
  10548. extern "C"
  10549. #endif
  10550. char _mwvalidcheckl ();
  10551. int
  10552. main ()
  10553. {
  10554. return _mwvalidcheckl ();
  10555. ;
  10556. return 0;
  10557. }
  10558. _ACEOF
  10559. if ac_fn_c_try_link "$LINENO"; then :
  10560. ac_cv_lib_mw__mwvalidcheckl=yes
  10561. else
  10562. ac_cv_lib_mw__mwvalidcheckl=no
  10563. fi
  10564. rm -f core conftest.err conftest.$ac_objext \
  10565. conftest$ac_exeext conftest.$ac_ext
  10566. LIBS=$ac_check_lib_save_LIBS
  10567. fi
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  10569. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  10570. if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
  10571. LIBM="-lmw"
  10572. fi
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  10574. $as_echo_n "checking for cos in -lm... " >&6; }
  10575. if test "${ac_cv_lib_m_cos+set}" = set; then :
  10576. $as_echo_n "(cached) " >&6
  10577. else
  10578. ac_check_lib_save_LIBS=$LIBS
  10579. LIBS="-lm $LIBS"
  10580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10581. /* end confdefs.h. */
  10582. /* Override any GCC internal prototype to avoid an error.
  10583. Use char because int might match the return type of a GCC
  10584. builtin and then its argument prototype would still apply. */
  10585. #ifdef __cplusplus
  10586. extern "C"
  10587. #endif
  10588. char cos ();
  10589. int
  10590. main ()
  10591. {
  10592. return cos ();
  10593. ;
  10594. return 0;
  10595. }
  10596. _ACEOF
  10597. if ac_fn_c_try_link "$LINENO"; then :
  10598. ac_cv_lib_m_cos=yes
  10599. else
  10600. ac_cv_lib_m_cos=no
  10601. fi
  10602. rm -f core conftest.err conftest.$ac_objext \
  10603. conftest$ac_exeext conftest.$ac_ext
  10604. LIBS=$ac_check_lib_save_LIBS
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  10607. $as_echo "$ac_cv_lib_m_cos" >&6; }
  10608. if test "x$ac_cv_lib_m_cos" = x""yes; then :
  10609. LIBM="$LIBM -lm"
  10610. fi
  10611. ;;
  10612. *)
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  10614. $as_echo_n "checking for cos in -lm... " >&6; }
  10615. if test "${ac_cv_lib_m_cos+set}" = set; then :
  10616. $as_echo_n "(cached) " >&6
  10617. else
  10618. ac_check_lib_save_LIBS=$LIBS
  10619. LIBS="-lm $LIBS"
  10620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10621. /* end confdefs.h. */
  10622. /* Override any GCC internal prototype to avoid an error.
  10623. Use char because int might match the return type of a GCC
  10624. builtin and then its argument prototype would still apply. */
  10625. #ifdef __cplusplus
  10626. extern "C"
  10627. #endif
  10628. char cos ();
  10629. int
  10630. main ()
  10631. {
  10632. return cos ();
  10633. ;
  10634. return 0;
  10635. }
  10636. _ACEOF
  10637. if ac_fn_c_try_link "$LINENO"; then :
  10638. ac_cv_lib_m_cos=yes
  10639. else
  10640. ac_cv_lib_m_cos=no
  10641. fi
  10642. rm -f core conftest.err conftest.$ac_objext \
  10643. conftest$ac_exeext conftest.$ac_ext
  10644. LIBS=$ac_check_lib_save_LIBS
  10645. fi
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  10647. $as_echo "$ac_cv_lib_m_cos" >&6; }
  10648. if test "x$ac_cv_lib_m_cos" = x""yes; then :
  10649. LIBM="-lm"
  10650. fi
  10651. ;;
  10652. esac
  10653. #Libs for generator progs
  10654. if test "x$cross_compiling" = "xno"; then
  10655. BUILD_LIBS=../libiberty/libiberty.a
  10656. BUILD_LIB_DEPS=$BUILD_LIBS
  10657. else
  10658. # if cross-compiling, assume that the system provides -liberty
  10659. # and that the version is compatible with new headers.
  10660. BUILD_LIBS=-liberty
  10661. BUILD_LIB_DEPS=
  10662. fi
  10663. BUILD_LIBS="$BUILD_LIBS $LIBINTL"
  10664. BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
  10665. # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
  10666. SHARED_LDFLAGS=
  10667. SHARED_LIBADD=
  10668. SHARED_DEPENDENCIES=
  10669. if test "$enable_shared" = "yes"; then
  10670. # When building a shared libopcodes, link against the pic version of libiberty
  10671. # so that apps that use libopcodes won't need libiberty just to satisfy any
  10672. # libopcodes references.
  10673. # We can't do that if a pic libiberty is unavailable since including non-pic
  10674. # code would insert text relocations into libopcodes.
  10675. # Note that linking against libbfd as we do here, which is itself linked
  10676. # against libiberty, may not satisfy all the libopcodes libiberty references
  10677. # since libbfd may not pull in the entirety of libiberty.
  10678. x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
  10679. if test -n "$x"; then
  10680. SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
  10681. fi
  10682. case "${host}" in
  10683. *-*-cygwin*)
  10684. SHARED_LDFLAGS="-no-undefined"
  10685. SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
  10686. ;;
  10687. *-*-darwin*)
  10688. SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
  10689. SHARED_DEPENDENCIES="../bfd/libbfd.la"
  10690. ;;
  10691. *)
  10692. case "$host_vendor" in
  10693. hp)
  10694. SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
  10695. ;;
  10696. *)
  10697. SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
  10698. ;;
  10699. esac
  10700. SHARED_DEPENDENCIES="../bfd/libbfd.la"
  10701. ;;
  10702. esac
  10703. if test -n "$SHARED_LIBADD"; then
  10704. if test -n "$LIBM"; then
  10705. if test x"$bfd_cv_ld_as_needed" = xyes; then
  10706. # Link against libm only when needed. Put -lc, -lm inside -Wl
  10707. # to stop libtool reordering these options.
  10708. SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
  10709. else
  10710. SHARED_LIBADD="$SHARED_LIBADD $LIBM"
  10711. fi
  10712. fi
  10713. fi
  10714. fi
  10715. # target-specific stuff:
  10716. # Canonicalize the secondary target names.
  10717. if test -n "$enable_targets" ; then
  10718. for targ in `echo $enable_targets | sed 's/,/ /g'`
  10719. do
  10720. result=`$ac_config_sub $targ 2>/dev/null`
  10721. if test -n "$result" ; then
  10722. canon_targets="$canon_targets $result"
  10723. else
  10724. # Allow targets that config.sub doesn't recognize, like "all".
  10725. canon_targets="$canon_targets $targ"
  10726. fi
  10727. done
  10728. fi
  10729. all_targets=false
  10730. selarchs=
  10731. for targ in $target $canon_targets
  10732. do
  10733. if test "x$targ" = "xall" ; then
  10734. all_targets=true
  10735. else
  10736. . $srcdir/../bfd/config.bfd
  10737. selarchs="$selarchs $targ_archs"
  10738. fi
  10739. done
  10740. # Utility var, documents generic cgen support files.
  10741. cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
  10742. # We don't do any links based on the target system, just makefile config.
  10743. if test x${all_targets} = xfalse ; then
  10744. # Target architecture .o files.
  10745. ta=
  10746. for arch in $selarchs
  10747. do
  10748. ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
  10749. archdefs="$archdefs -DARCH_$ad"
  10750. case "$arch" in
  10751. bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;;
  10752. bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
  10753. bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
  10754. bfd_arm_arch) ta="$ta arm-dis.lo" ;;
  10755. bfd_avr_arch) ta="$ta avr-dis.lo" ;;
  10756. bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
  10757. bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
  10758. bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
  10759. bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
  10760. bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
  10761. bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
  10762. bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
  10763. bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
  10764. bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
  10765. bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;;
  10766. bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
  10767. bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
  10768. bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
  10769. bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
  10770. bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
  10771. bfd_i386_arch|bfd_iamcu_arch|bfd_l1om_arch|bfd_k1om_arch)
  10772. ta="$ta i386-dis.lo i386-opc.lo" ;;
  10773. bfd_i860_arch) ta="$ta i860-dis.lo" ;;
  10774. bfd_i960_arch) ta="$ta i960-dis.lo" ;;
  10775. bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
  10776. bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
  10777. bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
  10778. bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
  10779. bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
  10780. bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
  10781. bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
  10782. bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
  10783. bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
  10784. bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
  10785. bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
  10786. bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
  10787. bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
  10788. bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
  10789. bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
  10790. bfd_metag_arch) ta="$ta metag-dis.lo" ;;
  10791. bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
  10792. bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;;
  10793. bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
  10794. bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
  10795. bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
  10796. bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
  10797. bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;;
  10798. bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;;
  10799. bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;;
  10800. bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
  10801. bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;;
  10802. bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
  10803. bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
  10804. bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
  10805. bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
  10806. bfd_pyramid_arch) ;;
  10807. bfd_romp_arch) ;;
  10808. bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
  10809. bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";;
  10810. bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
  10811. bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
  10812. bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
  10813. bfd_sh_arch)
  10814. # We can't decide what we want just from the CPU family.
  10815. # We want SH5 support unless a specific version of sh is
  10816. # specified, as in sh3-elf, sh3b-linux-gnu, etc.
  10817. # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
  10818. for t in $target $canon_targets; do
  10819. case $t in
  10820. all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
  10821. sh-*-linux* | shl-*-linux*)
  10822. ta="$ta sh64-dis.lo sh64-opc.lo"
  10823. archdefs="$archdefs -DINCLUDE_SHMEDIA"
  10824. break;;
  10825. esac;
  10826. done
  10827. ta="$ta sh-dis.lo cgen-bitset.lo" ;;
  10828. bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
  10829. bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
  10830. bfd_tahoe_arch) ;;
  10831. bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
  10832. bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
  10833. bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
  10834. bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;;
  10835. bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
  10836. bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;;
  10837. bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;;
  10838. bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
  10839. bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
  10840. bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
  10841. bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
  10842. bfd_vax_arch) ta="$ta vax-dis.lo" ;;
  10843. bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;;
  10844. bfd_w65_arch) ta="$ta w65-dis.lo" ;;
  10845. bfd_we32k_arch) ;;
  10846. bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
  10847. bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;;
  10848. bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
  10849. bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
  10850. bfd_z80_arch) ta="$ta z80-dis.lo" ;;
  10851. bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
  10852. "") ;;
  10853. *) as_fn_error "*** unknown target architecture $arch" "$LINENO" 5 ;;
  10854. esac
  10855. done
  10856. if test $using_cgen = yes ; then
  10857. ta="$ta $cgen_files"
  10858. fi
  10859. # Weed out duplicate .o files.
  10860. f=""
  10861. for i in $ta ; do
  10862. case " $f " in
  10863. *" $i "*) ;;
  10864. *) f="$f $i" ;;
  10865. esac
  10866. done
  10867. ta="$f"
  10868. # And duplicate -D flags.
  10869. f=""
  10870. for i in $archdefs ; do
  10871. case " $f " in
  10872. *" $i "*) ;;
  10873. *) f="$f $i" ;;
  10874. esac
  10875. done
  10876. archdefs="$f"
  10877. BFD_MACHINES="$ta"
  10878. else # all_targets is true
  10879. archdefs=-DARCH_all
  10880. BFD_MACHINES='$(ALL_MACHINES)'
  10881. fi
  10882. ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
  10883. cat >confcache <<\_ACEOF
  10884. # This file is a shell script that caches the results of configure
  10885. # tests run on this system so they can be shared between configure
  10886. # scripts and configure runs, see configure's option --config-cache.
  10887. # It is not useful on other systems. If it contains results you don't
  10888. # want to keep, you may remove or edit it.
  10889. #
  10890. # config.status only pays attention to the cache file if you give it
  10891. # the --recheck option to rerun configure.
  10892. #
  10893. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10894. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10895. # following values.
  10896. _ACEOF
  10897. # The following way of writing the cache mishandles newlines in values,
  10898. # but we know of no workaround that is simple, portable, and efficient.
  10899. # So, we kill variables containing newlines.
  10900. # Ultrix sh set writes to stderr and can't be redirected directly,
  10901. # and sets the high bit in the cache file unless we assign to the vars.
  10902. (
  10903. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10904. eval ac_val=\$$ac_var
  10905. case $ac_val in #(
  10906. *${as_nl}*)
  10907. case $ac_var in #(
  10908. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10909. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10910. esac
  10911. case $ac_var in #(
  10912. _ | IFS | as_nl) ;; #(
  10913. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10914. *) { eval $ac_var=; unset $ac_var;} ;;
  10915. esac ;;
  10916. esac
  10917. done
  10918. (set) 2>&1 |
  10919. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10920. *${as_nl}ac_space=\ *)
  10921. # `set' does not quote correctly, so add quotes: double-quote
  10922. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10923. sed -n \
  10924. "s/'/'\\\\''/g;
  10925. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10926. ;; #(
  10927. *)
  10928. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10929. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10930. ;;
  10931. esac |
  10932. sort
  10933. ) |
  10934. sed '
  10935. /^ac_cv_env_/b end
  10936. t clear
  10937. :clear
  10938. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10939. t end
  10940. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10941. :end' >>confcache
  10942. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10943. if test -w "$cache_file"; then
  10944. test "x$cache_file" != "x/dev/null" &&
  10945. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10946. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10947. cat confcache >$cache_file
  10948. else
  10949. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10950. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10951. fi
  10952. fi
  10953. rm -f confcache
  10954. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10955. # Let make expand exec_prefix.
  10956. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10957. DEFS=-DHAVE_CONFIG_H
  10958. ac_libobjs=
  10959. ac_ltlibobjs=
  10960. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10961. # 1. Remove the extension, and $U if already installed.
  10962. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10963. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10964. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10965. # will be set to the directory where LIBOBJS objects are built.
  10966. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10967. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10968. done
  10969. LIBOBJS=$ac_libobjs
  10970. LTLIBOBJS=$ac_ltlibobjs
  10971. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10972. as_fn_error "conditional \"AMDEP\" was never defined.
  10973. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10974. fi
  10975. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10976. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  10977. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10978. fi
  10979. if test -n "$EXEEXT"; then
  10980. am__EXEEXT_TRUE=
  10981. am__EXEEXT_FALSE='#'
  10982. else
  10983. am__EXEEXT_TRUE='#'
  10984. am__EXEEXT_FALSE=
  10985. fi
  10986. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10987. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  10988. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10989. fi
  10990. if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
  10991. as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
  10992. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10993. fi
  10994. if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
  10995. as_fn_error "conditional \"CGEN_MAINT\" was never defined.
  10996. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10997. fi
  10998. : ${CONFIG_STATUS=./config.status}
  10999. ac_write_fail=0
  11000. ac_clean_files_save=$ac_clean_files
  11001. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11003. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11004. as_write_fail=0
  11005. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11006. #! $SHELL
  11007. # Generated by $as_me.
  11008. # Run this file to recreate the current configuration.
  11009. # Compiler output produced by configure, useful for debugging
  11010. # configure, is in config.log if it exists.
  11011. debug=false
  11012. ac_cs_recheck=false
  11013. ac_cs_silent=false
  11014. SHELL=\${CONFIG_SHELL-$SHELL}
  11015. export SHELL
  11016. _ASEOF
  11017. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11018. ## -------------------- ##
  11019. ## M4sh Initialization. ##
  11020. ## -------------------- ##
  11021. # Be more Bourne compatible
  11022. DUALCASE=1; export DUALCASE # for MKS sh
  11023. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11024. emulate sh
  11025. NULLCMD=:
  11026. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11027. # is contrary to our usage. Disable this feature.
  11028. alias -g '${1+"$@"}'='"$@"'
  11029. setopt NO_GLOB_SUBST
  11030. else
  11031. case `(set -o) 2>/dev/null` in #(
  11032. *posix*) :
  11033. set -o posix ;; #(
  11034. *) :
  11035. ;;
  11036. esac
  11037. fi
  11038. as_nl='
  11039. '
  11040. export as_nl
  11041. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11042. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11043. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11044. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11045. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11046. # but without wasting forks for bash or zsh.
  11047. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11048. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11049. as_echo='print -r --'
  11050. as_echo_n='print -rn --'
  11051. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11052. as_echo='printf %s\n'
  11053. as_echo_n='printf %s'
  11054. else
  11055. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11056. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11057. as_echo_n='/usr/ucb/echo -n'
  11058. else
  11059. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11060. as_echo_n_body='eval
  11061. arg=$1;
  11062. case $arg in #(
  11063. *"$as_nl"*)
  11064. expr "X$arg" : "X\\(.*\\)$as_nl";
  11065. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11066. esac;
  11067. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11068. '
  11069. export as_echo_n_body
  11070. as_echo_n='sh -c $as_echo_n_body as_echo'
  11071. fi
  11072. export as_echo_body
  11073. as_echo='sh -c $as_echo_body as_echo'
  11074. fi
  11075. # The user is always right.
  11076. if test "${PATH_SEPARATOR+set}" != set; then
  11077. PATH_SEPARATOR=:
  11078. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11079. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11080. PATH_SEPARATOR=';'
  11081. }
  11082. fi
  11083. # IFS
  11084. # We need space, tab and new line, in precisely that order. Quoting is
  11085. # there to prevent editors from complaining about space-tab.
  11086. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11087. # splitting by setting IFS to empty value.)
  11088. IFS=" "" $as_nl"
  11089. # Find who we are. Look in the path if we contain no directory separator.
  11090. case $0 in #((
  11091. *[\\/]* ) as_myself=$0 ;;
  11092. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11093. for as_dir in $PATH
  11094. do
  11095. IFS=$as_save_IFS
  11096. test -z "$as_dir" && as_dir=.
  11097. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11098. done
  11099. IFS=$as_save_IFS
  11100. ;;
  11101. esac
  11102. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11103. # in which case we are not to be found in the path.
  11104. if test "x$as_myself" = x; then
  11105. as_myself=$0
  11106. fi
  11107. if test ! -f "$as_myself"; then
  11108. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11109. exit 1
  11110. fi
  11111. # Unset variables that we do not need and which cause bugs (e.g. in
  11112. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11113. # suppresses any "Segmentation fault" message there. '((' could
  11114. # trigger a bug in pdksh 5.2.14.
  11115. for as_var in BASH_ENV ENV MAIL MAILPATH
  11116. do eval test x\${$as_var+set} = xset \
  11117. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11118. done
  11119. PS1='$ '
  11120. PS2='> '
  11121. PS4='+ '
  11122. # NLS nuisances.
  11123. LC_ALL=C
  11124. export LC_ALL
  11125. LANGUAGE=C
  11126. export LANGUAGE
  11127. # CDPATH.
  11128. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11129. # as_fn_error ERROR [LINENO LOG_FD]
  11130. # ---------------------------------
  11131. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11132. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11133. # script with status $?, using 1 if that was 0.
  11134. as_fn_error ()
  11135. {
  11136. as_status=$?; test $as_status -eq 0 && as_status=1
  11137. if test "$3"; then
  11138. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11139. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11140. fi
  11141. $as_echo "$as_me: error: $1" >&2
  11142. as_fn_exit $as_status
  11143. } # as_fn_error
  11144. # as_fn_set_status STATUS
  11145. # -----------------------
  11146. # Set $? to STATUS, without forking.
  11147. as_fn_set_status ()
  11148. {
  11149. return $1
  11150. } # as_fn_set_status
  11151. # as_fn_exit STATUS
  11152. # -----------------
  11153. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11154. as_fn_exit ()
  11155. {
  11156. set +e
  11157. as_fn_set_status $1
  11158. exit $1
  11159. } # as_fn_exit
  11160. # as_fn_unset VAR
  11161. # ---------------
  11162. # Portably unset VAR.
  11163. as_fn_unset ()
  11164. {
  11165. { eval $1=; unset $1;}
  11166. }
  11167. as_unset=as_fn_unset
  11168. # as_fn_append VAR VALUE
  11169. # ----------------------
  11170. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11171. # advantage of any shell optimizations that allow amortized linear growth over
  11172. # repeated appends, instead of the typical quadratic growth present in naive
  11173. # implementations.
  11174. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11175. eval 'as_fn_append ()
  11176. {
  11177. eval $1+=\$2
  11178. }'
  11179. else
  11180. as_fn_append ()
  11181. {
  11182. eval $1=\$$1\$2
  11183. }
  11184. fi # as_fn_append
  11185. # as_fn_arith ARG...
  11186. # ------------------
  11187. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11188. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11189. # must be portable across $(()) and expr.
  11190. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11191. eval 'as_fn_arith ()
  11192. {
  11193. as_val=$(( $* ))
  11194. }'
  11195. else
  11196. as_fn_arith ()
  11197. {
  11198. as_val=`expr "$@" || test $? -eq 1`
  11199. }
  11200. fi # as_fn_arith
  11201. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11202. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11203. as_expr=expr
  11204. else
  11205. as_expr=false
  11206. fi
  11207. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11208. as_basename=basename
  11209. else
  11210. as_basename=false
  11211. fi
  11212. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11213. as_dirname=dirname
  11214. else
  11215. as_dirname=false
  11216. fi
  11217. as_me=`$as_basename -- "$0" ||
  11218. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11219. X"$0" : 'X\(//\)$' \| \
  11220. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11221. $as_echo X/"$0" |
  11222. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11223. s//\1/
  11224. q
  11225. }
  11226. /^X\/\(\/\/\)$/{
  11227. s//\1/
  11228. q
  11229. }
  11230. /^X\/\(\/\).*/{
  11231. s//\1/
  11232. q
  11233. }
  11234. s/.*/./; q'`
  11235. # Avoid depending upon Character Ranges.
  11236. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11237. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11238. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11239. as_cr_digits='0123456789'
  11240. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11241. ECHO_C= ECHO_N= ECHO_T=
  11242. case `echo -n x` in #(((((
  11243. -n*)
  11244. case `echo 'xy\c'` in
  11245. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11246. xy) ECHO_C='\c';;
  11247. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11248. ECHO_T=' ';;
  11249. esac;;
  11250. *)
  11251. ECHO_N='-n';;
  11252. esac
  11253. rm -f conf$$ conf$$.exe conf$$.file
  11254. if test -d conf$$.dir; then
  11255. rm -f conf$$.dir/conf$$.file
  11256. else
  11257. rm -f conf$$.dir
  11258. mkdir conf$$.dir 2>/dev/null
  11259. fi
  11260. if (echo >conf$$.file) 2>/dev/null; then
  11261. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11262. as_ln_s='ln -s'
  11263. # ... but there are two gotchas:
  11264. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11265. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11266. # In both cases, we have to default to `cp -p'.
  11267. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11268. as_ln_s='cp -p'
  11269. elif ln conf$$.file conf$$ 2>/dev/null; then
  11270. as_ln_s=ln
  11271. else
  11272. as_ln_s='cp -p'
  11273. fi
  11274. else
  11275. as_ln_s='cp -p'
  11276. fi
  11277. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11278. rmdir conf$$.dir 2>/dev/null
  11279. # as_fn_mkdir_p
  11280. # -------------
  11281. # Create "$as_dir" as a directory, including parents if necessary.
  11282. as_fn_mkdir_p ()
  11283. {
  11284. case $as_dir in #(
  11285. -*) as_dir=./$as_dir;;
  11286. esac
  11287. test -d "$as_dir" || eval $as_mkdir_p || {
  11288. as_dirs=
  11289. while :; do
  11290. case $as_dir in #(
  11291. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11292. *) as_qdir=$as_dir;;
  11293. esac
  11294. as_dirs="'$as_qdir' $as_dirs"
  11295. as_dir=`$as_dirname -- "$as_dir" ||
  11296. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11297. X"$as_dir" : 'X\(//\)[^/]' \| \
  11298. X"$as_dir" : 'X\(//\)$' \| \
  11299. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11300. $as_echo X"$as_dir" |
  11301. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11302. s//\1/
  11303. q
  11304. }
  11305. /^X\(\/\/\)[^/].*/{
  11306. s//\1/
  11307. q
  11308. }
  11309. /^X\(\/\/\)$/{
  11310. s//\1/
  11311. q
  11312. }
  11313. /^X\(\/\).*/{
  11314. s//\1/
  11315. q
  11316. }
  11317. s/.*/./; q'`
  11318. test -d "$as_dir" && break
  11319. done
  11320. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11321. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11322. } # as_fn_mkdir_p
  11323. if mkdir -p . 2>/dev/null; then
  11324. as_mkdir_p='mkdir -p "$as_dir"'
  11325. else
  11326. test -d ./-p && rmdir ./-p
  11327. as_mkdir_p=false
  11328. fi
  11329. if test -x / >/dev/null 2>&1; then
  11330. as_test_x='test -x'
  11331. else
  11332. if ls -dL / >/dev/null 2>&1; then
  11333. as_ls_L_option=L
  11334. else
  11335. as_ls_L_option=
  11336. fi
  11337. as_test_x='
  11338. eval sh -c '\''
  11339. if test -d "$1"; then
  11340. test -d "$1/.";
  11341. else
  11342. case $1 in #(
  11343. -*)set "./$1";;
  11344. esac;
  11345. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11346. ???[sx]*):;;*)false;;esac;fi
  11347. '\'' sh
  11348. '
  11349. fi
  11350. as_executable_p=$as_test_x
  11351. # Sed expression to map a string onto a valid CPP name.
  11352. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11353. # Sed expression to map a string onto a valid variable name.
  11354. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11355. exec 6>&1
  11356. ## ----------------------------------- ##
  11357. ## Main body of $CONFIG_STATUS script. ##
  11358. ## ----------------------------------- ##
  11359. _ASEOF
  11360. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11361. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11362. # Save the log message, to keep $0 and so on meaningful, and to
  11363. # report actual input values of CONFIG_FILES etc. instead of their
  11364. # values after options handling.
  11365. ac_log="
  11366. This file was extended by opcodes $as_me 2.25.51, which was
  11367. generated by GNU Autoconf 2.64. Invocation command line was
  11368. CONFIG_FILES = $CONFIG_FILES
  11369. CONFIG_HEADERS = $CONFIG_HEADERS
  11370. CONFIG_LINKS = $CONFIG_LINKS
  11371. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11372. $ $0 $@
  11373. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11374. "
  11375. _ACEOF
  11376. case $ac_config_files in *"
  11377. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11378. esac
  11379. case $ac_config_headers in *"
  11380. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11381. esac
  11382. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11383. # Files that config.status was made for.
  11384. config_files="$ac_config_files"
  11385. config_headers="$ac_config_headers"
  11386. config_commands="$ac_config_commands"
  11387. _ACEOF
  11388. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11389. ac_cs_usage="\
  11390. \`$as_me' instantiates files and other configuration actions
  11391. from templates according to the current configuration. Unless the files
  11392. and actions are specified as TAGs, all are instantiated by default.
  11393. Usage: $0 [OPTION]... [TAG]...
  11394. -h, --help print this help, then exit
  11395. -V, --version print version number and configuration settings, then exit
  11396. -q, --quiet, --silent
  11397. do not print progress messages
  11398. -d, --debug don't remove temporary files
  11399. --recheck update $as_me by reconfiguring in the same conditions
  11400. --file=FILE[:TEMPLATE]
  11401. instantiate the configuration file FILE
  11402. --header=FILE[:TEMPLATE]
  11403. instantiate the configuration header FILE
  11404. Configuration files:
  11405. $config_files
  11406. Configuration headers:
  11407. $config_headers
  11408. Configuration commands:
  11409. $config_commands
  11410. Report bugs to the package provider."
  11411. _ACEOF
  11412. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11413. ac_cs_version="\\
  11414. opcodes config.status 2.25.51
  11415. configured by $0, generated by GNU Autoconf 2.64,
  11416. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11417. Copyright (C) 2009 Free Software Foundation, Inc.
  11418. This config.status script is free software; the Free Software Foundation
  11419. gives unlimited permission to copy, distribute and modify it."
  11420. ac_pwd='$ac_pwd'
  11421. srcdir='$srcdir'
  11422. INSTALL='$INSTALL'
  11423. MKDIR_P='$MKDIR_P'
  11424. AWK='$AWK'
  11425. test -n "\$AWK" || AWK=awk
  11426. _ACEOF
  11427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11428. # The default lists apply if the user does not specify any file.
  11429. ac_need_defaults=:
  11430. while test $# != 0
  11431. do
  11432. case $1 in
  11433. --*=*)
  11434. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11435. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11436. ac_shift=:
  11437. ;;
  11438. *)
  11439. ac_option=$1
  11440. ac_optarg=$2
  11441. ac_shift=shift
  11442. ;;
  11443. esac
  11444. case $ac_option in
  11445. # Handling of the options.
  11446. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11447. ac_cs_recheck=: ;;
  11448. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11449. $as_echo "$ac_cs_version"; exit ;;
  11450. --debug | --debu | --deb | --de | --d | -d )
  11451. debug=: ;;
  11452. --file | --fil | --fi | --f )
  11453. $ac_shift
  11454. case $ac_optarg in
  11455. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11456. esac
  11457. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11458. ac_need_defaults=false;;
  11459. --header | --heade | --head | --hea )
  11460. $ac_shift
  11461. case $ac_optarg in
  11462. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11463. esac
  11464. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11465. ac_need_defaults=false;;
  11466. --he | --h)
  11467. # Conflict between --help and --header
  11468. as_fn_error "ambiguous option: \`$1'
  11469. Try \`$0 --help' for more information.";;
  11470. --help | --hel | -h )
  11471. $as_echo "$ac_cs_usage"; exit ;;
  11472. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11473. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11474. ac_cs_silent=: ;;
  11475. # This is an error.
  11476. -*) as_fn_error "unrecognized option: \`$1'
  11477. Try \`$0 --help' for more information." ;;
  11478. *) as_fn_append ac_config_targets " $1"
  11479. ac_need_defaults=false ;;
  11480. esac
  11481. shift
  11482. done
  11483. ac_configure_extra_args=
  11484. if $ac_cs_silent; then
  11485. exec 6>/dev/null
  11486. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11487. fi
  11488. _ACEOF
  11489. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11490. if \$ac_cs_recheck; then
  11491. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11492. shift
  11493. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11494. CONFIG_SHELL='$SHELL'
  11495. export CONFIG_SHELL
  11496. exec "\$@"
  11497. fi
  11498. _ACEOF
  11499. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11500. exec 5>>config.log
  11501. {
  11502. echo
  11503. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11504. ## Running $as_me. ##
  11505. _ASBOX
  11506. $as_echo "$ac_log"
  11507. } >&5
  11508. _ACEOF
  11509. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11510. #
  11511. # INIT-COMMANDS
  11512. #
  11513. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11514. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11515. # if CDPATH is set.
  11516. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11517. sed_quote_subst='$sed_quote_subst'
  11518. double_quote_subst='$double_quote_subst'
  11519. delay_variable_subst='$delay_variable_subst'
  11520. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11521. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11522. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11523. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11524. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11525. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11526. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11527. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11528. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11529. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11530. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11531. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11532. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11533. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11534. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11535. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11536. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11537. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11538. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11539. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11540. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11541. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11542. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11543. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11544. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11545. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11546. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11547. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11548. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11549. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11550. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11551. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11552. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11553. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11554. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11555. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11556. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11557. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11558. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11559. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11560. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11561. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11562. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11563. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11564. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11565. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11566. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11567. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11568. 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"`'
  11569. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11570. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11571. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11572. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11573. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11574. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11575. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11576. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11577. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11578. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11579. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11580. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11581. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11582. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11583. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11584. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11585. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11586. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11587. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11588. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11589. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11590. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11591. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11592. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11593. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11594. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11595. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11596. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11597. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11598. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11599. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11600. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11601. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11602. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11603. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11604. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11605. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11606. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11607. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11608. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11609. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11610. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11611. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11612. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11613. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11614. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11615. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11616. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11617. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11618. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11619. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11620. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11621. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11622. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11623. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11624. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11625. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11626. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11627. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11628. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11629. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11630. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11631. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11632. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11633. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11634. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11635. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11636. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11637. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11638. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11639. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11640. LTCC='$LTCC'
  11641. LTCFLAGS='$LTCFLAGS'
  11642. compiler='$compiler_DEFAULT'
  11643. # A function that is used when there is no print builtin or printf.
  11644. func_fallback_echo ()
  11645. {
  11646. eval 'cat <<_LTECHO_EOF
  11647. \$1
  11648. _LTECHO_EOF'
  11649. }
  11650. # Quote evaled strings.
  11651. for var in SHELL \
  11652. ECHO \
  11653. SED \
  11654. GREP \
  11655. EGREP \
  11656. FGREP \
  11657. LD \
  11658. NM \
  11659. LN_S \
  11660. lt_SP2NL \
  11661. lt_NL2SP \
  11662. reload_flag \
  11663. OBJDUMP \
  11664. deplibs_check_method \
  11665. file_magic_cmd \
  11666. AR \
  11667. AR_FLAGS \
  11668. STRIP \
  11669. RANLIB \
  11670. CC \
  11671. CFLAGS \
  11672. compiler \
  11673. lt_cv_sys_global_symbol_pipe \
  11674. lt_cv_sys_global_symbol_to_cdecl \
  11675. lt_cv_sys_global_symbol_to_c_name_address \
  11676. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11677. lt_prog_compiler_no_builtin_flag \
  11678. lt_prog_compiler_wl \
  11679. lt_prog_compiler_pic \
  11680. lt_prog_compiler_static \
  11681. lt_cv_prog_compiler_c_o \
  11682. need_locks \
  11683. DSYMUTIL \
  11684. NMEDIT \
  11685. LIPO \
  11686. OTOOL \
  11687. OTOOL64 \
  11688. shrext_cmds \
  11689. export_dynamic_flag_spec \
  11690. whole_archive_flag_spec \
  11691. compiler_needs_object \
  11692. with_gnu_ld \
  11693. allow_undefined_flag \
  11694. no_undefined_flag \
  11695. hardcode_libdir_flag_spec \
  11696. hardcode_libdir_flag_spec_ld \
  11697. hardcode_libdir_separator \
  11698. fix_srcfile_path \
  11699. exclude_expsyms \
  11700. include_expsyms \
  11701. file_list_spec \
  11702. variables_saved_for_relink \
  11703. libname_spec \
  11704. library_names_spec \
  11705. soname_spec \
  11706. install_override_mode \
  11707. finish_eval \
  11708. old_striplib \
  11709. striplib; do
  11710. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11711. *[\\\\\\\`\\"\\\$]*)
  11712. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11713. ;;
  11714. *)
  11715. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11716. ;;
  11717. esac
  11718. done
  11719. # Double-quote double-evaled strings.
  11720. for var in reload_cmds \
  11721. old_postinstall_cmds \
  11722. old_postuninstall_cmds \
  11723. old_archive_cmds \
  11724. extract_expsyms_cmds \
  11725. old_archive_from_new_cmds \
  11726. old_archive_from_expsyms_cmds \
  11727. archive_cmds \
  11728. archive_expsym_cmds \
  11729. module_cmds \
  11730. module_expsym_cmds \
  11731. export_symbols_cmds \
  11732. prelink_cmds \
  11733. postinstall_cmds \
  11734. postuninstall_cmds \
  11735. finish_cmds \
  11736. sys_lib_search_path_spec \
  11737. sys_lib_dlsearch_path_spec; do
  11738. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11739. *[\\\\\\\`\\"\\\$]*)
  11740. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11741. ;;
  11742. *)
  11743. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11744. ;;
  11745. esac
  11746. done
  11747. ac_aux_dir='$ac_aux_dir'
  11748. xsi_shell='$xsi_shell'
  11749. lt_shell_append='$lt_shell_append'
  11750. # See if we are running on zsh, and set the options which allow our
  11751. # commands through without removal of \ escapes INIT.
  11752. if test -n "\${ZSH_VERSION+set}" ; then
  11753. setopt NO_GLOB_SUBST
  11754. fi
  11755. PACKAGE='$PACKAGE'
  11756. VERSION='$VERSION'
  11757. TIMESTAMP='$TIMESTAMP'
  11758. RM='$RM'
  11759. ofile='$ofile'
  11760. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11761. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  11762. # from automake.
  11763. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11764. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11765. LINGUAS="${LINGUAS-%UNSET%}"
  11766. _ACEOF
  11767. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11768. # Handling of arguments.
  11769. for ac_config_target in $ac_config_targets
  11770. do
  11771. case $ac_config_target in
  11772. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11773. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11774. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  11775. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11776. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11777. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  11778. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11779. esac
  11780. done
  11781. # If the user did not use the arguments to specify the items to instantiate,
  11782. # then the envvar interface is used. Set only those that are not.
  11783. # We use the long form for the default assignment because of an extremely
  11784. # bizarre bug on SunOS 4.1.3.
  11785. if $ac_need_defaults; then
  11786. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11787. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11788. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11789. fi
  11790. # Have a temporary directory for convenience. Make it in the build tree
  11791. # simply because there is no reason against having it here, and in addition,
  11792. # creating and moving files from /tmp can sometimes cause problems.
  11793. # Hook for its removal unless debugging.
  11794. # Note that there is a small window in which the directory will not be cleaned:
  11795. # after its creation but before its name has been assigned to `$tmp'.
  11796. $debug ||
  11797. {
  11798. tmp=
  11799. trap 'exit_status=$?
  11800. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11801. ' 0
  11802. trap 'as_fn_exit 1' 1 2 13 15
  11803. }
  11804. # Create a (secure) tmp directory for tmp files.
  11805. {
  11806. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11807. test -n "$tmp" && test -d "$tmp"
  11808. } ||
  11809. {
  11810. tmp=./conf$$-$RANDOM
  11811. (umask 077 && mkdir "$tmp")
  11812. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11813. # Set up the scripts for CONFIG_FILES section.
  11814. # No need to generate them if there are no CONFIG_FILES.
  11815. # This happens for instance with `./config.status config.h'.
  11816. if test -n "$CONFIG_FILES"; then
  11817. ac_cr=`echo X | tr X '\015'`
  11818. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11819. # But we know of no other shell where ac_cr would be empty at this
  11820. # point, so we can use a bashism as a fallback.
  11821. if test "x$ac_cr" = x; then
  11822. eval ac_cr=\$\'\\r\'
  11823. fi
  11824. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11825. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11826. ac_cs_awk_cr='\r'
  11827. else
  11828. ac_cs_awk_cr=$ac_cr
  11829. fi
  11830. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11831. _ACEOF
  11832. {
  11833. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11834. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11835. echo "_ACEOF"
  11836. } >conf$$subs.sh ||
  11837. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11838. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11839. ac_delim='%!_!# '
  11840. for ac_last_try in false false false false false :; do
  11841. . ./conf$$subs.sh ||
  11842. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11843. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11844. if test $ac_delim_n = $ac_delim_num; then
  11845. break
  11846. elif $ac_last_try; then
  11847. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11848. else
  11849. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11850. fi
  11851. done
  11852. rm -f conf$$subs.sh
  11853. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11854. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11855. _ACEOF
  11856. sed -n '
  11857. h
  11858. s/^/S["/; s/!.*/"]=/
  11859. p
  11860. g
  11861. s/^[^!]*!//
  11862. :repl
  11863. t repl
  11864. s/'"$ac_delim"'$//
  11865. t delim
  11866. :nl
  11867. h
  11868. s/\(.\{148\}\).*/\1/
  11869. t more1
  11870. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11871. p
  11872. n
  11873. b repl
  11874. :more1
  11875. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11876. p
  11877. g
  11878. s/.\{148\}//
  11879. t nl
  11880. :delim
  11881. h
  11882. s/\(.\{148\}\).*/\1/
  11883. t more2
  11884. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11885. p
  11886. b
  11887. :more2
  11888. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11889. p
  11890. g
  11891. s/.\{148\}//
  11892. t delim
  11893. ' <conf$$subs.awk | sed '
  11894. /^[^""]/{
  11895. N
  11896. s/\n//
  11897. }
  11898. ' >>$CONFIG_STATUS || ac_write_fail=1
  11899. rm -f conf$$subs.awk
  11900. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11901. _ACAWK
  11902. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11903. for (key in S) S_is_set[key] = 1
  11904. FS = ""
  11905. }
  11906. {
  11907. line = $ 0
  11908. nfields = split(line, field, "@")
  11909. substed = 0
  11910. len = length(field[1])
  11911. for (i = 2; i < nfields; i++) {
  11912. key = field[i]
  11913. keylen = length(key)
  11914. if (S_is_set[key]) {
  11915. value = S[key]
  11916. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11917. len += length(value) + length(field[++i])
  11918. substed = 1
  11919. } else
  11920. len += 1 + keylen
  11921. }
  11922. print line
  11923. }
  11924. _ACAWK
  11925. _ACEOF
  11926. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11927. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11928. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11929. else
  11930. cat
  11931. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  11932. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  11933. _ACEOF
  11934. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11935. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11936. # trailing colons and then remove the whole line if VPATH becomes empty
  11937. # (actually we leave an empty line to preserve line numbers).
  11938. if test "x$srcdir" = x.; then
  11939. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11940. s/:*\$(srcdir):*/:/
  11941. s/:*\${srcdir}:*/:/
  11942. s/:*@srcdir@:*/:/
  11943. s/^\([^=]*=[ ]*\):*/\1/
  11944. s/:*$//
  11945. s/^[^=]*=[ ]*$//
  11946. }'
  11947. fi
  11948. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11949. fi # test -n "$CONFIG_FILES"
  11950. # Set up the scripts for CONFIG_HEADERS section.
  11951. # No need to generate them if there are no CONFIG_HEADERS.
  11952. # This happens for instance with `./config.status Makefile'.
  11953. if test -n "$CONFIG_HEADERS"; then
  11954. cat >"$tmp/defines.awk" <<\_ACAWK ||
  11955. BEGIN {
  11956. _ACEOF
  11957. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11958. # here-document in config.status, that substitutes the proper values into
  11959. # config.h.in to produce config.h.
  11960. # Create a delimiter string that does not exist in confdefs.h, to ease
  11961. # handling of long lines.
  11962. ac_delim='%!_!# '
  11963. for ac_last_try in false false :; do
  11964. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  11965. if test -z "$ac_t"; then
  11966. break
  11967. elif $ac_last_try; then
  11968. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  11969. else
  11970. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11971. fi
  11972. done
  11973. # For the awk script, D is an array of macro values keyed by name,
  11974. # likewise P contains macro parameters if any. Preserve backslash
  11975. # newline sequences.
  11976. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11977. sed -n '
  11978. s/.\{148\}/&'"$ac_delim"'/g
  11979. t rset
  11980. :rset
  11981. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11982. t def
  11983. d
  11984. :def
  11985. s/\\$//
  11986. t bsnl
  11987. s/["\\]/\\&/g
  11988. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11989. D["\1"]=" \3"/p
  11990. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11991. d
  11992. :bsnl
  11993. s/["\\]/\\&/g
  11994. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11995. D["\1"]=" \3\\\\\\n"\\/p
  11996. t cont
  11997. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11998. t cont
  11999. d
  12000. :cont
  12001. n
  12002. s/.\{148\}/&'"$ac_delim"'/g
  12003. t clear
  12004. :clear
  12005. s/\\$//
  12006. t bsnlc
  12007. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12008. d
  12009. :bsnlc
  12010. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12011. b cont
  12012. ' <confdefs.h | sed '
  12013. s/'"$ac_delim"'/"\\\
  12014. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12016. for (key in D) D_is_set[key] = 1
  12017. FS = ""
  12018. }
  12019. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12020. line = \$ 0
  12021. split(line, arg, " ")
  12022. if (arg[1] == "#") {
  12023. defundef = arg[2]
  12024. mac1 = arg[3]
  12025. } else {
  12026. defundef = substr(arg[1], 2)
  12027. mac1 = arg[2]
  12028. }
  12029. split(mac1, mac2, "(") #)
  12030. macro = mac2[1]
  12031. prefix = substr(line, 1, index(line, defundef) - 1)
  12032. if (D_is_set[macro]) {
  12033. # Preserve the white space surrounding the "#".
  12034. print prefix "define", macro P[macro] D[macro]
  12035. next
  12036. } else {
  12037. # Replace #undef with comments. This is necessary, for example,
  12038. # in the case of _POSIX_SOURCE, which is predefined and required
  12039. # on some systems where configure will not decide to define it.
  12040. if (defundef == "undef") {
  12041. print "/*", prefix defundef, macro, "*/"
  12042. next
  12043. }
  12044. }
  12045. }
  12046. { print }
  12047. _ACAWK
  12048. _ACEOF
  12049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12050. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12051. fi # test -n "$CONFIG_HEADERS"
  12052. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12053. shift
  12054. for ac_tag
  12055. do
  12056. case $ac_tag in
  12057. :[FHLC]) ac_mode=$ac_tag; continue;;
  12058. esac
  12059. case $ac_mode$ac_tag in
  12060. :[FHL]*:*);;
  12061. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12062. :[FH]-) ac_tag=-:-;;
  12063. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12064. esac
  12065. ac_save_IFS=$IFS
  12066. IFS=:
  12067. set x $ac_tag
  12068. IFS=$ac_save_IFS
  12069. shift
  12070. ac_file=$1
  12071. shift
  12072. case $ac_mode in
  12073. :L) ac_source=$1;;
  12074. :[FH])
  12075. ac_file_inputs=
  12076. for ac_f
  12077. do
  12078. case $ac_f in
  12079. -) ac_f="$tmp/stdin";;
  12080. *) # Look for the file first in the build tree, then in the source tree
  12081. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12082. # because $ac_f cannot contain `:'.
  12083. test -f "$ac_f" ||
  12084. case $ac_f in
  12085. [\\/$]*) false;;
  12086. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12087. esac ||
  12088. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12089. esac
  12090. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12091. as_fn_append ac_file_inputs " '$ac_f'"
  12092. done
  12093. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12094. # use $as_me), people would be surprised to read:
  12095. # /* config.h. Generated by config.status. */
  12096. configure_input='Generated from '`
  12097. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12098. `' by configure.'
  12099. if test x"$ac_file" != x-; then
  12100. configure_input="$ac_file. $configure_input"
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12102. $as_echo "$as_me: creating $ac_file" >&6;}
  12103. fi
  12104. # Neutralize special characters interpreted by sed in replacement strings.
  12105. case $configure_input in #(
  12106. *\&* | *\|* | *\\* )
  12107. ac_sed_conf_input=`$as_echo "$configure_input" |
  12108. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12109. *) ac_sed_conf_input=$configure_input;;
  12110. esac
  12111. case $ac_tag in
  12112. *:-:* | *:-) cat >"$tmp/stdin" \
  12113. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12114. esac
  12115. ;;
  12116. esac
  12117. ac_dir=`$as_dirname -- "$ac_file" ||
  12118. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12119. X"$ac_file" : 'X\(//\)[^/]' \| \
  12120. X"$ac_file" : 'X\(//\)$' \| \
  12121. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12122. $as_echo X"$ac_file" |
  12123. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12124. s//\1/
  12125. q
  12126. }
  12127. /^X\(\/\/\)[^/].*/{
  12128. s//\1/
  12129. q
  12130. }
  12131. /^X\(\/\/\)$/{
  12132. s//\1/
  12133. q
  12134. }
  12135. /^X\(\/\).*/{
  12136. s//\1/
  12137. q
  12138. }
  12139. s/.*/./; q'`
  12140. as_dir="$ac_dir"; as_fn_mkdir_p
  12141. ac_builddir=.
  12142. case "$ac_dir" in
  12143. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12144. *)
  12145. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12146. # A ".." for each directory in $ac_dir_suffix.
  12147. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12148. case $ac_top_builddir_sub in
  12149. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12150. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12151. esac ;;
  12152. esac
  12153. ac_abs_top_builddir=$ac_pwd
  12154. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12155. # for backward compatibility:
  12156. ac_top_builddir=$ac_top_build_prefix
  12157. case $srcdir in
  12158. .) # We are building in place.
  12159. ac_srcdir=.
  12160. ac_top_srcdir=$ac_top_builddir_sub
  12161. ac_abs_top_srcdir=$ac_pwd ;;
  12162. [\\/]* | ?:[\\/]* ) # Absolute name.
  12163. ac_srcdir=$srcdir$ac_dir_suffix;
  12164. ac_top_srcdir=$srcdir
  12165. ac_abs_top_srcdir=$srcdir ;;
  12166. *) # Relative name.
  12167. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12168. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12169. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12170. esac
  12171. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12172. case $ac_mode in
  12173. :F)
  12174. #
  12175. # CONFIG_FILE
  12176. #
  12177. case $INSTALL in
  12178. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12179. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12180. esac
  12181. ac_MKDIR_P=$MKDIR_P
  12182. case $MKDIR_P in
  12183. [\\/$]* | ?:[\\/]* ) ;;
  12184. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12185. esac
  12186. _ACEOF
  12187. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12188. # If the template does not know about datarootdir, expand it.
  12189. # FIXME: This hack should be removed a few years after 2.60.
  12190. ac_datarootdir_hack=; ac_datarootdir_seen=
  12191. ac_sed_dataroot='
  12192. /datarootdir/ {
  12193. p
  12194. q
  12195. }
  12196. /@datadir@/p
  12197. /@docdir@/p
  12198. /@infodir@/p
  12199. /@localedir@/p
  12200. /@mandir@/p'
  12201. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12202. *datarootdir*) ac_datarootdir_seen=yes;;
  12203. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12205. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12206. _ACEOF
  12207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12208. ac_datarootdir_hack='
  12209. s&@datadir@&$datadir&g
  12210. s&@docdir@&$docdir&g
  12211. s&@infodir@&$infodir&g
  12212. s&@localedir@&$localedir&g
  12213. s&@mandir@&$mandir&g
  12214. s&\\\${datarootdir}&$datarootdir&g' ;;
  12215. esac
  12216. _ACEOF
  12217. # Neutralize VPATH when `$srcdir' = `.'.
  12218. # Shell code in configure.ac might set extrasub.
  12219. # FIXME: do we really want to maintain this feature?
  12220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12221. ac_sed_extra="$ac_vpsub
  12222. $extrasub
  12223. _ACEOF
  12224. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12225. :t
  12226. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12227. s|@configure_input@|$ac_sed_conf_input|;t t
  12228. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12229. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12230. s&@srcdir@&$ac_srcdir&;t t
  12231. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12232. s&@top_srcdir@&$ac_top_srcdir&;t t
  12233. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12234. s&@builddir@&$ac_builddir&;t t
  12235. s&@abs_builddir@&$ac_abs_builddir&;t t
  12236. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12237. s&@INSTALL@&$ac_INSTALL&;t t
  12238. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12239. $ac_datarootdir_hack
  12240. "
  12241. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12242. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12243. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12244. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12245. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12247. which seems to be undefined. Please make sure it is defined." >&5
  12248. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12249. which seems to be undefined. Please make sure it is defined." >&2;}
  12250. rm -f "$tmp/stdin"
  12251. case $ac_file in
  12252. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12253. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12254. esac \
  12255. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12256. ;;
  12257. :H)
  12258. #
  12259. # CONFIG_HEADER
  12260. #
  12261. if test x"$ac_file" != x-; then
  12262. {
  12263. $as_echo "/* $configure_input */" \
  12264. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12265. } >"$tmp/config.h" \
  12266. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12267. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12269. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12270. else
  12271. rm -f "$ac_file"
  12272. mv "$tmp/config.h" "$ac_file" \
  12273. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12274. fi
  12275. else
  12276. $as_echo "/* $configure_input */" \
  12277. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12278. || as_fn_error "could not create -" "$LINENO" 5
  12279. fi
  12280. # Compute "$ac_file"'s index in $config_headers.
  12281. _am_arg="$ac_file"
  12282. _am_stamp_count=1
  12283. for _am_header in $config_headers :; do
  12284. case $_am_header in
  12285. $_am_arg | $_am_arg:* )
  12286. break ;;
  12287. * )
  12288. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12289. esac
  12290. done
  12291. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12292. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12293. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12294. X"$_am_arg" : 'X\(//\)$' \| \
  12295. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12296. $as_echo X"$_am_arg" |
  12297. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12298. s//\1/
  12299. q
  12300. }
  12301. /^X\(\/\/\)[^/].*/{
  12302. s//\1/
  12303. q
  12304. }
  12305. /^X\(\/\/\)$/{
  12306. s//\1/
  12307. q
  12308. }
  12309. /^X\(\/\).*/{
  12310. s//\1/
  12311. q
  12312. }
  12313. s/.*/./; q'`/stamp-h$_am_stamp_count
  12314. ;;
  12315. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12316. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12317. ;;
  12318. esac
  12319. case $ac_file$ac_mode in
  12320. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12321. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12322. # are listed without --file. Let's play safe and only enable the eval
  12323. # if we detect the quoting.
  12324. case $CONFIG_FILES in
  12325. *\'*) eval set x "$CONFIG_FILES" ;;
  12326. *) set x $CONFIG_FILES ;;
  12327. esac
  12328. shift
  12329. for mf
  12330. do
  12331. # Strip MF so we end up with the name of the file.
  12332. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12333. # Check whether this is an Automake generated Makefile or not.
  12334. # We used to match only the files named `Makefile.in', but
  12335. # some people rename them; so instead we look at the file content.
  12336. # Grep'ing the first line is not enough: some people post-process
  12337. # each Makefile.in and add a new line on top of each file to say so.
  12338. # Grep'ing the whole file is not good either: AIX grep has a line
  12339. # limit of 2048, but all sed's we know have understand at least 4000.
  12340. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12341. dirpart=`$as_dirname -- "$mf" ||
  12342. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12343. X"$mf" : 'X\(//\)[^/]' \| \
  12344. X"$mf" : 'X\(//\)$' \| \
  12345. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12346. $as_echo X"$mf" |
  12347. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12348. s//\1/
  12349. q
  12350. }
  12351. /^X\(\/\/\)[^/].*/{
  12352. s//\1/
  12353. q
  12354. }
  12355. /^X\(\/\/\)$/{
  12356. s//\1/
  12357. q
  12358. }
  12359. /^X\(\/\).*/{
  12360. s//\1/
  12361. q
  12362. }
  12363. s/.*/./; q'`
  12364. else
  12365. continue
  12366. fi
  12367. # Extract the definition of DEPDIR, am__include, and am__quote
  12368. # from the Makefile without running `make'.
  12369. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12370. test -z "$DEPDIR" && continue
  12371. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12372. test -z "am__include" && continue
  12373. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12374. # When using ansi2knr, U may be empty or an underscore; expand it
  12375. U=`sed -n 's/^U = //p' < "$mf"`
  12376. # Find all dependency output files, they are included files with
  12377. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12378. # simplest approach to changing $(DEPDIR) to its actual value in the
  12379. # expansion.
  12380. for file in `sed -n "
  12381. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12382. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12383. # Make sure the directory exists.
  12384. test -f "$dirpart/$file" && continue
  12385. fdir=`$as_dirname -- "$file" ||
  12386. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12387. X"$file" : 'X\(//\)[^/]' \| \
  12388. X"$file" : 'X\(//\)$' \| \
  12389. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12390. $as_echo X"$file" |
  12391. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12392. s//\1/
  12393. q
  12394. }
  12395. /^X\(\/\/\)[^/].*/{
  12396. s//\1/
  12397. q
  12398. }
  12399. /^X\(\/\/\)$/{
  12400. s//\1/
  12401. q
  12402. }
  12403. /^X\(\/\).*/{
  12404. s//\1/
  12405. q
  12406. }
  12407. s/.*/./; q'`
  12408. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12409. # echo "creating $dirpart/$file"
  12410. echo '# dummy' > "$dirpart/$file"
  12411. done
  12412. done
  12413. }
  12414. ;;
  12415. "libtool":C)
  12416. # See if we are running on zsh, and set the options which allow our
  12417. # commands through without removal of \ escapes.
  12418. if test -n "${ZSH_VERSION+set}" ; then
  12419. setopt NO_GLOB_SUBST
  12420. fi
  12421. cfgfile="${ofile}T"
  12422. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12423. $RM "$cfgfile"
  12424. cat <<_LT_EOF >> "$cfgfile"
  12425. #! $SHELL
  12426. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12427. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12428. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12429. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12430. #
  12431. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12432. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12433. # Written by Gordon Matzigkeit, 1996
  12434. #
  12435. # This file is part of GNU Libtool.
  12436. #
  12437. # GNU Libtool is free software; you can redistribute it and/or
  12438. # modify it under the terms of the GNU General Public License as
  12439. # published by the Free Software Foundation; either version 2 of
  12440. # the License, or (at your option) any later version.
  12441. #
  12442. # As a special exception to the GNU General Public License,
  12443. # if you distribute this file as part of a program or library that
  12444. # is built using GNU Libtool, you may include this file under the
  12445. # same distribution terms that you use for the rest of that program.
  12446. #
  12447. # GNU Libtool is distributed in the hope that it will be useful,
  12448. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12449. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12450. # GNU General Public License for more details.
  12451. #
  12452. # You should have received a copy of the GNU General Public License
  12453. # along with GNU Libtool; see the file COPYING. If not, a copy
  12454. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12455. # obtained by writing to the Free Software Foundation, Inc.,
  12456. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12457. # The names of the tagged configurations supported by this script.
  12458. available_tags=""
  12459. # ### BEGIN LIBTOOL CONFIG
  12460. # Whether or not to build shared libraries.
  12461. build_libtool_libs=$enable_shared
  12462. # Which release of libtool.m4 was used?
  12463. macro_version=$macro_version
  12464. macro_revision=$macro_revision
  12465. # Whether or not to build static libraries.
  12466. build_old_libs=$enable_static
  12467. # What type of objects to build.
  12468. pic_mode=$pic_mode
  12469. # Whether or not to optimize for fast installation.
  12470. fast_install=$enable_fast_install
  12471. # Shell to use when invoking shell scripts.
  12472. SHELL=$lt_SHELL
  12473. # An echo program that protects backslashes.
  12474. ECHO=$lt_ECHO
  12475. # The host system.
  12476. host_alias=$host_alias
  12477. host=$host
  12478. host_os=$host_os
  12479. # The build system.
  12480. build_alias=$build_alias
  12481. build=$build
  12482. build_os=$build_os
  12483. # A sed program that does not truncate output.
  12484. SED=$lt_SED
  12485. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12486. Xsed="\$SED -e 1s/^X//"
  12487. # A grep program that handles long lines.
  12488. GREP=$lt_GREP
  12489. # An ERE matcher.
  12490. EGREP=$lt_EGREP
  12491. # A literal string matcher.
  12492. FGREP=$lt_FGREP
  12493. # A BSD- or MS-compatible name lister.
  12494. NM=$lt_NM
  12495. # Whether we need soft or hard links.
  12496. LN_S=$lt_LN_S
  12497. # What is the maximum length of a command?
  12498. max_cmd_len=$max_cmd_len
  12499. # Object file suffix (normally "o").
  12500. objext=$ac_objext
  12501. # Executable file suffix (normally "").
  12502. exeext=$exeext
  12503. # whether the shell understands "unset".
  12504. lt_unset=$lt_unset
  12505. # turn spaces into newlines.
  12506. SP2NL=$lt_lt_SP2NL
  12507. # turn newlines into spaces.
  12508. NL2SP=$lt_lt_NL2SP
  12509. # An object symbol dumper.
  12510. OBJDUMP=$lt_OBJDUMP
  12511. # Method to check whether dependent libraries are shared objects.
  12512. deplibs_check_method=$lt_deplibs_check_method
  12513. # Command to use when deplibs_check_method == "file_magic".
  12514. file_magic_cmd=$lt_file_magic_cmd
  12515. # The archiver.
  12516. AR=$lt_AR
  12517. AR_FLAGS=$lt_AR_FLAGS
  12518. # A symbol stripping program.
  12519. STRIP=$lt_STRIP
  12520. # Commands used to install an old-style archive.
  12521. RANLIB=$lt_RANLIB
  12522. old_postinstall_cmds=$lt_old_postinstall_cmds
  12523. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12524. # Whether to use a lock for old archive extraction.
  12525. lock_old_archive_extraction=$lock_old_archive_extraction
  12526. # A C compiler.
  12527. LTCC=$lt_CC
  12528. # LTCC compiler flags.
  12529. LTCFLAGS=$lt_CFLAGS
  12530. # Take the output of nm and produce a listing of raw symbols and C names.
  12531. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12532. # Transform the output of nm in a proper C declaration.
  12533. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12534. # Transform the output of nm in a C name address pair.
  12535. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12536. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12537. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12538. # The name of the directory that contains temporary libtool files.
  12539. objdir=$objdir
  12540. # Used to examine libraries when file_magic_cmd begins with "file".
  12541. MAGIC_CMD=$MAGIC_CMD
  12542. # Must we lock files when doing compilation?
  12543. need_locks=$lt_need_locks
  12544. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12545. DSYMUTIL=$lt_DSYMUTIL
  12546. # Tool to change global to local symbols on Mac OS X.
  12547. NMEDIT=$lt_NMEDIT
  12548. # Tool to manipulate fat objects and archives on Mac OS X.
  12549. LIPO=$lt_LIPO
  12550. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12551. OTOOL=$lt_OTOOL
  12552. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12553. OTOOL64=$lt_OTOOL64
  12554. # Old archive suffix (normally "a").
  12555. libext=$libext
  12556. # Shared library suffix (normally ".so").
  12557. shrext_cmds=$lt_shrext_cmds
  12558. # The commands to extract the exported symbol list from a shared archive.
  12559. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12560. # Variables whose values should be saved in libtool wrapper scripts and
  12561. # restored at link time.
  12562. variables_saved_for_relink=$lt_variables_saved_for_relink
  12563. # Do we need the "lib" prefix for modules?
  12564. need_lib_prefix=$need_lib_prefix
  12565. # Do we need a version for libraries?
  12566. need_version=$need_version
  12567. # Library versioning type.
  12568. version_type=$version_type
  12569. # Shared library runtime path variable.
  12570. runpath_var=$runpath_var
  12571. # Shared library path variable.
  12572. shlibpath_var=$shlibpath_var
  12573. # Is shlibpath searched before the hard-coded library search path?
  12574. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12575. # Format of library name prefix.
  12576. libname_spec=$lt_libname_spec
  12577. # List of archive names. First name is the real one, the rest are links.
  12578. # The last name is the one that the linker finds with -lNAME
  12579. library_names_spec=$lt_library_names_spec
  12580. # The coded name of the library, if different from the real name.
  12581. soname_spec=$lt_soname_spec
  12582. # Permission mode override for installation of shared libraries.
  12583. install_override_mode=$lt_install_override_mode
  12584. # Command to use after installation of a shared archive.
  12585. postinstall_cmds=$lt_postinstall_cmds
  12586. # Command to use after uninstallation of a shared archive.
  12587. postuninstall_cmds=$lt_postuninstall_cmds
  12588. # Commands used to finish a libtool library installation in a directory.
  12589. finish_cmds=$lt_finish_cmds
  12590. # As "finish_cmds", except a single script fragment to be evaled but
  12591. # not shown.
  12592. finish_eval=$lt_finish_eval
  12593. # Whether we should hardcode library paths into libraries.
  12594. hardcode_into_libs=$hardcode_into_libs
  12595. # Compile-time system search path for libraries.
  12596. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12597. # Run-time system search path for libraries.
  12598. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12599. # Whether dlopen is supported.
  12600. dlopen_support=$enable_dlopen
  12601. # Whether dlopen of programs is supported.
  12602. dlopen_self=$enable_dlopen_self
  12603. # Whether dlopen of statically linked programs is supported.
  12604. dlopen_self_static=$enable_dlopen_self_static
  12605. # Commands to strip libraries.
  12606. old_striplib=$lt_old_striplib
  12607. striplib=$lt_striplib
  12608. # The linker used to build libraries.
  12609. LD=$lt_LD
  12610. # How to create reloadable object files.
  12611. reload_flag=$lt_reload_flag
  12612. reload_cmds=$lt_reload_cmds
  12613. # Commands used to build an old-style archive.
  12614. old_archive_cmds=$lt_old_archive_cmds
  12615. # A language specific compiler.
  12616. CC=$lt_compiler
  12617. # Is the compiler the GNU compiler?
  12618. with_gcc=$GCC
  12619. # Compiler flag to turn off builtin functions.
  12620. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12621. # How to pass a linker flag through the compiler.
  12622. wl=$lt_lt_prog_compiler_wl
  12623. # Additional compiler flags for building library objects.
  12624. pic_flag=$lt_lt_prog_compiler_pic
  12625. # Compiler flag to prevent dynamic linking.
  12626. link_static_flag=$lt_lt_prog_compiler_static
  12627. # Does compiler simultaneously support -c and -o options?
  12628. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12629. # Whether or not to add -lc for building shared libraries.
  12630. build_libtool_need_lc=$archive_cmds_need_lc
  12631. # Whether or not to disallow shared libs when runtime libs are static.
  12632. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12633. # Compiler flag to allow reflexive dlopens.
  12634. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12635. # Compiler flag to generate shared objects directly from archives.
  12636. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12637. # Whether the compiler copes with passing no objects directly.
  12638. compiler_needs_object=$lt_compiler_needs_object
  12639. # Create an old-style archive from a shared archive.
  12640. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12641. # Create a temporary old-style archive to link instead of a shared archive.
  12642. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12643. # Commands used to build a shared archive.
  12644. archive_cmds=$lt_archive_cmds
  12645. archive_expsym_cmds=$lt_archive_expsym_cmds
  12646. # Commands used to build a loadable module if different from building
  12647. # a shared archive.
  12648. module_cmds=$lt_module_cmds
  12649. module_expsym_cmds=$lt_module_expsym_cmds
  12650. # Whether we are building with GNU ld or not.
  12651. with_gnu_ld=$lt_with_gnu_ld
  12652. # Flag that allows shared libraries with undefined symbols to be built.
  12653. allow_undefined_flag=$lt_allow_undefined_flag
  12654. # Flag that enforces no undefined symbols.
  12655. no_undefined_flag=$lt_no_undefined_flag
  12656. # Flag to hardcode \$libdir into a binary during linking.
  12657. # This must work even if \$libdir does not exist
  12658. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12659. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12660. # during linking. This must work even if \$libdir does not exist.
  12661. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12662. # Whether we need a single "-rpath" flag with a separated argument.
  12663. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12664. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12665. # DIR into the resulting binary.
  12666. hardcode_direct=$hardcode_direct
  12667. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12668. # DIR into the resulting binary and the resulting library dependency is
  12669. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12670. # library is relocated.
  12671. hardcode_direct_absolute=$hardcode_direct_absolute
  12672. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12673. # into the resulting binary.
  12674. hardcode_minus_L=$hardcode_minus_L
  12675. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12676. # into the resulting binary.
  12677. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12678. # Set to "yes" if building a shared library automatically hardcodes DIR
  12679. # into the library and all subsequent libraries and executables linked
  12680. # against it.
  12681. hardcode_automatic=$hardcode_automatic
  12682. # Set to yes if linker adds runtime paths of dependent libraries
  12683. # to runtime path list.
  12684. inherit_rpath=$inherit_rpath
  12685. # Whether libtool must link a program against all its dependency libraries.
  12686. link_all_deplibs=$link_all_deplibs
  12687. # Fix the shell variable \$srcfile for the compiler.
  12688. fix_srcfile_path=$lt_fix_srcfile_path
  12689. # Set to "yes" if exported symbols are required.
  12690. always_export_symbols=$always_export_symbols
  12691. # The commands to list exported symbols.
  12692. export_symbols_cmds=$lt_export_symbols_cmds
  12693. # Symbols that should not be listed in the preloaded symbols.
  12694. exclude_expsyms=$lt_exclude_expsyms
  12695. # Symbols that must always be exported.
  12696. include_expsyms=$lt_include_expsyms
  12697. # Commands necessary for linking programs (against libraries) with templates.
  12698. prelink_cmds=$lt_prelink_cmds
  12699. # Specify filename containing input files.
  12700. file_list_spec=$lt_file_list_spec
  12701. # How to hardcode a shared library path into an executable.
  12702. hardcode_action=$hardcode_action
  12703. # ### END LIBTOOL CONFIG
  12704. _LT_EOF
  12705. case $host_os in
  12706. aix3*)
  12707. cat <<\_LT_EOF >> "$cfgfile"
  12708. # AIX sometimes has problems with the GCC collect2 program. For some
  12709. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12710. # vanish in a puff of smoke.
  12711. if test "X${COLLECT_NAMES+set}" != Xset; then
  12712. COLLECT_NAMES=
  12713. export COLLECT_NAMES
  12714. fi
  12715. _LT_EOF
  12716. ;;
  12717. esac
  12718. ltmain="$ac_aux_dir/ltmain.sh"
  12719. # We use sed instead of cat because bash on DJGPP gets confused if
  12720. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12721. # text mode, it properly converts lines to CR/LF. This bash problem
  12722. # is reportedly fixed, but why not run on old versions too?
  12723. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12724. || (rm -f "$cfgfile"; exit 1)
  12725. case $xsi_shell in
  12726. yes)
  12727. cat << \_LT_EOF >> "$cfgfile"
  12728. # func_dirname file append nondir_replacement
  12729. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12730. # otherwise set result to NONDIR_REPLACEMENT.
  12731. func_dirname ()
  12732. {
  12733. case ${1} in
  12734. */*) func_dirname_result="${1%/*}${2}" ;;
  12735. * ) func_dirname_result="${3}" ;;
  12736. esac
  12737. }
  12738. # func_basename file
  12739. func_basename ()
  12740. {
  12741. func_basename_result="${1##*/}"
  12742. }
  12743. # func_dirname_and_basename file append nondir_replacement
  12744. # perform func_basename and func_dirname in a single function
  12745. # call:
  12746. # dirname: Compute the dirname of FILE. If nonempty,
  12747. # add APPEND to the result, otherwise set result
  12748. # to NONDIR_REPLACEMENT.
  12749. # value returned in "$func_dirname_result"
  12750. # basename: Compute filename of FILE.
  12751. # value retuned in "$func_basename_result"
  12752. # Implementation must be kept synchronized with func_dirname
  12753. # and func_basename. For efficiency, we do not delegate to
  12754. # those functions but instead duplicate the functionality here.
  12755. func_dirname_and_basename ()
  12756. {
  12757. case ${1} in
  12758. */*) func_dirname_result="${1%/*}${2}" ;;
  12759. * ) func_dirname_result="${3}" ;;
  12760. esac
  12761. func_basename_result="${1##*/}"
  12762. }
  12763. # func_stripname prefix suffix name
  12764. # strip PREFIX and SUFFIX off of NAME.
  12765. # PREFIX and SUFFIX must not contain globbing or regex special
  12766. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12767. # dot (in which case that matches only a dot).
  12768. func_stripname ()
  12769. {
  12770. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12771. # positional parameters, so assign one to ordinary parameter first.
  12772. func_stripname_result=${3}
  12773. func_stripname_result=${func_stripname_result#"${1}"}
  12774. func_stripname_result=${func_stripname_result%"${2}"}
  12775. }
  12776. # func_opt_split
  12777. func_opt_split ()
  12778. {
  12779. func_opt_split_opt=${1%%=*}
  12780. func_opt_split_arg=${1#*=}
  12781. }
  12782. # func_lo2o object
  12783. func_lo2o ()
  12784. {
  12785. case ${1} in
  12786. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12787. *) func_lo2o_result=${1} ;;
  12788. esac
  12789. }
  12790. # func_xform libobj-or-source
  12791. func_xform ()
  12792. {
  12793. func_xform_result=${1%.*}.lo
  12794. }
  12795. # func_arith arithmetic-term...
  12796. func_arith ()
  12797. {
  12798. func_arith_result=$(( $* ))
  12799. }
  12800. # func_len string
  12801. # STRING may not start with a hyphen.
  12802. func_len ()
  12803. {
  12804. func_len_result=${#1}
  12805. }
  12806. _LT_EOF
  12807. ;;
  12808. *) # Bourne compatible functions.
  12809. cat << \_LT_EOF >> "$cfgfile"
  12810. # func_dirname file append nondir_replacement
  12811. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12812. # otherwise set result to NONDIR_REPLACEMENT.
  12813. func_dirname ()
  12814. {
  12815. # Extract subdirectory from the argument.
  12816. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12817. if test "X$func_dirname_result" = "X${1}"; then
  12818. func_dirname_result="${3}"
  12819. else
  12820. func_dirname_result="$func_dirname_result${2}"
  12821. fi
  12822. }
  12823. # func_basename file
  12824. func_basename ()
  12825. {
  12826. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12827. }
  12828. # func_stripname prefix suffix name
  12829. # strip PREFIX and SUFFIX off of NAME.
  12830. # PREFIX and SUFFIX must not contain globbing or regex special
  12831. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12832. # dot (in which case that matches only a dot).
  12833. # func_strip_suffix prefix name
  12834. func_stripname ()
  12835. {
  12836. case ${2} in
  12837. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12838. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12839. esac
  12840. }
  12841. # sed scripts:
  12842. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12843. my_sed_long_arg='1s/^-[^=]*=//'
  12844. # func_opt_split
  12845. func_opt_split ()
  12846. {
  12847. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12848. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12849. }
  12850. # func_lo2o object
  12851. func_lo2o ()
  12852. {
  12853. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12854. }
  12855. # func_xform libobj-or-source
  12856. func_xform ()
  12857. {
  12858. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12859. }
  12860. # func_arith arithmetic-term...
  12861. func_arith ()
  12862. {
  12863. func_arith_result=`expr "$@"`
  12864. }
  12865. # func_len string
  12866. # STRING may not start with a hyphen.
  12867. func_len ()
  12868. {
  12869. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12870. }
  12871. _LT_EOF
  12872. esac
  12873. case $lt_shell_append in
  12874. yes)
  12875. cat << \_LT_EOF >> "$cfgfile"
  12876. # func_append var value
  12877. # Append VALUE to the end of shell variable VAR.
  12878. func_append ()
  12879. {
  12880. eval "$1+=\$2"
  12881. }
  12882. _LT_EOF
  12883. ;;
  12884. *)
  12885. cat << \_LT_EOF >> "$cfgfile"
  12886. # func_append var value
  12887. # Append VALUE to the end of shell variable VAR.
  12888. func_append ()
  12889. {
  12890. eval "$1=\$$1\$2"
  12891. }
  12892. _LT_EOF
  12893. ;;
  12894. esac
  12895. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12896. || (rm -f "$cfgfile"; exit 1)
  12897. mv -f "$cfgfile" "$ofile" ||
  12898. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12899. chmod +x "$ofile"
  12900. ;;
  12901. "default-1":C)
  12902. for ac_file in $CONFIG_FILES; do
  12903. # Support "outfile[:infile[:infile...]]"
  12904. case "$ac_file" in
  12905. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  12906. esac
  12907. # PO directories have a Makefile.in generated from Makefile.in.in.
  12908. case "$ac_file" in */Makefile.in)
  12909. # Adjust a relative srcdir.
  12910. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  12911. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  12912. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  12913. # In autoconf-2.13 it is called $ac_given_srcdir.
  12914. # In autoconf-2.50 it is called $srcdir.
  12915. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  12916. case "$ac_given_srcdir" in
  12917. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  12918. /*) top_srcdir="$ac_given_srcdir" ;;
  12919. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  12920. esac
  12921. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  12922. rm -f "$ac_dir/POTFILES"
  12923. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  12924. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  12925. POMAKEFILEDEPS="POTFILES.in"
  12926. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  12927. # on $ac_dir but don't depend on user-specified configuration
  12928. # parameters.
  12929. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  12930. # The LINGUAS file contains the set of available languages.
  12931. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  12932. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  12933. fi
  12934. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  12935. # Hide the ALL_LINGUAS assigment from automake.
  12936. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  12937. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  12938. else
  12939. # The set of available languages was given in configure.ac.
  12940. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  12941. fi
  12942. case "$ac_given_srcdir" in
  12943. .) srcdirpre= ;;
  12944. *) srcdirpre='$(srcdir)/' ;;
  12945. esac
  12946. POFILES=
  12947. GMOFILES=
  12948. UPDATEPOFILES=
  12949. DUMMYPOFILES=
  12950. for lang in $ALL_LINGUAS; do
  12951. POFILES="$POFILES $srcdirpre$lang.po"
  12952. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  12953. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  12954. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  12955. done
  12956. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  12957. # environment variable.
  12958. INST_LINGUAS=
  12959. if test -n "$ALL_LINGUAS"; then
  12960. for presentlang in $ALL_LINGUAS; do
  12961. useit=no
  12962. if test "%UNSET%" != "$LINGUAS"; then
  12963. desiredlanguages="$LINGUAS"
  12964. else
  12965. desiredlanguages="$ALL_LINGUAS"
  12966. fi
  12967. for desiredlang in $desiredlanguages; do
  12968. # Use the presentlang catalog if desiredlang is
  12969. # a. equal to presentlang, or
  12970. # b. a variant of presentlang (because in this case,
  12971. # presentlang can be used as a fallback for messages
  12972. # which are not translated in the desiredlang catalog).
  12973. case "$desiredlang" in
  12974. "$presentlang"*) useit=yes;;
  12975. esac
  12976. done
  12977. if test $useit = yes; then
  12978. INST_LINGUAS="$INST_LINGUAS $presentlang"
  12979. fi
  12980. done
  12981. fi
  12982. CATALOGS=
  12983. if test -n "$INST_LINGUAS"; then
  12984. for lang in $INST_LINGUAS; do
  12985. CATALOGS="$CATALOGS $lang.gmo"
  12986. done
  12987. fi
  12988. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  12989. 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"
  12990. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  12991. if test -f "$f"; then
  12992. case "$f" in
  12993. *.orig | *.bak | *~) ;;
  12994. *) cat "$f" >> "$ac_dir/Makefile" ;;
  12995. esac
  12996. fi
  12997. done
  12998. fi
  12999. ;;
  13000. esac
  13001. done ;;
  13002. esac
  13003. done # for ac_tag
  13004. as_fn_exit 0
  13005. _ACEOF
  13006. ac_clean_files=$ac_clean_files_save
  13007. test $ac_write_fail = 0 ||
  13008. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13009. # configure is writing to config.log, and then calls config.status.
  13010. # config.status does its own redirection, appending to config.log.
  13011. # Unfortunately, on DOS this fails, as config.log is still kept open
  13012. # by configure, so config.status won't be able to write to it; its
  13013. # output is simply discarded. So we exec the FD to /dev/null,
  13014. # effectively closing config.log, so it can be properly (re)opened and
  13015. # appended to by config.status. When coming back to configure, we
  13016. # need to make the FD available again.
  13017. if test "$no_create" != yes; then
  13018. ac_cs_success=:
  13019. ac_config_status_args=
  13020. test "$silent" = yes &&
  13021. ac_config_status_args="$ac_config_status_args --quiet"
  13022. exec 5>/dev/null
  13023. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13024. exec 5>>config.log
  13025. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13026. # would make configure fail if this is the last instruction.
  13027. $ac_cs_success || as_fn_exit $?
  13028. fi
  13029. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13031. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13032. fi