configure 550 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for sim 0.
  4. #
  5. # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
  260. $0: about your system, including any error possibly output
  261. $0: before this message. Then install a modern shell, or
  262. $0: manually run the script under such a shell if you do
  263. $0: have one."
  264. fi
  265. exit 1
  266. fi
  267. fi
  268. fi
  269. SHELL=${CONFIG_SHELL-/bin/sh}
  270. export SHELL
  271. # Unset more variables known to interfere with behavior of common tools.
  272. CLICOLOR_FORCE= GREP_OPTIONS=
  273. unset CLICOLOR_FORCE GREP_OPTIONS
  274. ## --------------------- ##
  275. ## M4sh Shell Functions. ##
  276. ## --------------------- ##
  277. # as_fn_unset VAR
  278. # ---------------
  279. # Portably unset VAR.
  280. as_fn_unset ()
  281. {
  282. { eval $1=; unset $1;}
  283. }
  284. as_unset=as_fn_unset
  285. # as_fn_set_status STATUS
  286. # -----------------------
  287. # Set $? to STATUS, without forking.
  288. as_fn_set_status ()
  289. {
  290. return $1
  291. } # as_fn_set_status
  292. # as_fn_exit STATUS
  293. # -----------------
  294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  295. as_fn_exit ()
  296. {
  297. set +e
  298. as_fn_set_status $1
  299. exit $1
  300. } # as_fn_exit
  301. # as_fn_mkdir_p
  302. # -------------
  303. # Create "$as_dir" as a directory, including parents if necessary.
  304. as_fn_mkdir_p ()
  305. {
  306. case $as_dir in #(
  307. -*) as_dir=./$as_dir;;
  308. esac
  309. test -d "$as_dir" || eval $as_mkdir_p || {
  310. as_dirs=
  311. while :; do
  312. case $as_dir in #(
  313. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  314. *) as_qdir=$as_dir;;
  315. esac
  316. as_dirs="'$as_qdir' $as_dirs"
  317. as_dir=`$as_dirname -- "$as_dir" ||
  318. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  319. X"$as_dir" : 'X\(//\)[^/]' \| \
  320. X"$as_dir" : 'X\(//\)$' \| \
  321. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  322. $as_echo X"$as_dir" |
  323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)[^/].*/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)$/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\).*/{
  336. s//\1/
  337. q
  338. }
  339. s/.*/./; q'`
  340. test -d "$as_dir" && break
  341. done
  342. test -z "$as_dirs" || eval "mkdir $as_dirs"
  343. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  344. } # as_fn_mkdir_p
  345. # as_fn_executable_p FILE
  346. # -----------------------
  347. # Test if FILE is an executable regular file.
  348. as_fn_executable_p ()
  349. {
  350. test -f "$1" && test -x "$1"
  351. } # as_fn_executable_p
  352. # as_fn_append VAR VALUE
  353. # ----------------------
  354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  355. # advantage of any shell optimizations that allow amortized linear growth over
  356. # repeated appends, instead of the typical quadratic growth present in naive
  357. # implementations.
  358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  359. eval 'as_fn_append ()
  360. {
  361. eval $1+=\$2
  362. }'
  363. else
  364. as_fn_append ()
  365. {
  366. eval $1=\$$1\$2
  367. }
  368. fi # as_fn_append
  369. # as_fn_arith ARG...
  370. # ------------------
  371. # Perform arithmetic evaluation on the ARGs, and store the result in the
  372. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  373. # must be portable across $(()) and expr.
  374. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  375. eval 'as_fn_arith ()
  376. {
  377. as_val=$(( $* ))
  378. }'
  379. else
  380. as_fn_arith ()
  381. {
  382. as_val=`expr "$@" || test $? -eq 1`
  383. }
  384. fi # as_fn_arith
  385. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  386. # ----------------------------------------
  387. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  388. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  389. # script with STATUS, using 1 if that was 0.
  390. as_fn_error ()
  391. {
  392. as_status=$1; test $as_status -eq 0 && as_status=1
  393. if test "$4"; then
  394. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  395. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  396. fi
  397. $as_echo "$as_me: error: $2" >&2
  398. as_fn_exit $as_status
  399. } # as_fn_error
  400. if expr a : '\(a\)' >/dev/null 2>&1 &&
  401. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  402. as_expr=expr
  403. else
  404. as_expr=false
  405. fi
  406. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  407. as_basename=basename
  408. else
  409. as_basename=false
  410. fi
  411. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  412. as_dirname=dirname
  413. else
  414. as_dirname=false
  415. fi
  416. as_me=`$as_basename -- "$0" ||
  417. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  418. X"$0" : 'X\(//\)$' \| \
  419. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  420. $as_echo X/"$0" |
  421. sed '/^.*\/\([^/][^/]*\)\/*$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\/\)$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\).*/{
  430. s//\1/
  431. q
  432. }
  433. s/.*/./; q'`
  434. # Avoid depending upon Character Ranges.
  435. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  436. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  437. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  438. as_cr_digits='0123456789'
  439. as_cr_alnum=$as_cr_Letters$as_cr_digits
  440. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  441. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  442. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  443. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  444. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  445. sed -n '
  446. p
  447. /[$]LINENO/=
  448. ' <$as_myself |
  449. sed '
  450. s/[$]LINENO.*/&-/
  451. t lineno
  452. b
  453. :lineno
  454. N
  455. :loop
  456. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  457. t loop
  458. s/-\n.*//
  459. ' >$as_me.lineno &&
  460. chmod +x "$as_me.lineno" ||
  461. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  462. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  463. # already done that, so ensure we don't try to do so again and fall
  464. # in an infinite loop. This has already happened in practice.
  465. _as_can_reexec=no; export _as_can_reexec
  466. # Don't try to exec as it changes $[0], causing all sort of problems
  467. # (the dirname of $[0] is not the place where we might find the
  468. # original and so on. Autoconf is especially sensitive to this).
  469. . "./$as_me.lineno"
  470. # Exit status is that of the last command.
  471. exit
  472. }
  473. ECHO_C= ECHO_N= ECHO_T=
  474. case `echo -n x` in #(((((
  475. -n*)
  476. case `echo 'xy\c'` in
  477. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  478. xy) ECHO_C='\c';;
  479. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  480. ECHO_T=' ';;
  481. esac;;
  482. *)
  483. ECHO_N='-n';;
  484. esac
  485. rm -f conf$$ conf$$.exe conf$$.file
  486. if test -d conf$$.dir; then
  487. rm -f conf$$.dir/conf$$.file
  488. else
  489. rm -f conf$$.dir
  490. mkdir conf$$.dir 2>/dev/null
  491. fi
  492. if (echo >conf$$.file) 2>/dev/null; then
  493. if ln -s conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s='ln -s'
  495. # ... but there are two gotchas:
  496. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  497. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  498. # In both cases, we have to default to `cp -pR'.
  499. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  500. as_ln_s='cp -pR'
  501. elif ln conf$$.file conf$$ 2>/dev/null; then
  502. as_ln_s=ln
  503. else
  504. as_ln_s='cp -pR'
  505. fi
  506. else
  507. as_ln_s='cp -pR'
  508. fi
  509. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  510. rmdir conf$$.dir 2>/dev/null
  511. if mkdir -p . 2>/dev/null; then
  512. as_mkdir_p='mkdir -p "$as_dir"'
  513. else
  514. test -d ./-p && rmdir ./-p
  515. as_mkdir_p=false
  516. fi
  517. as_test_x='test -x'
  518. as_executable_p=as_fn_executable_p
  519. # Sed expression to map a string onto a valid CPP name.
  520. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  521. # Sed expression to map a string onto a valid variable name.
  522. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  523. SHELL=${CONFIG_SHELL-/bin/sh}
  524. test -n "$DJDIR" || exec 7<&0 </dev/null
  525. exec 6>&1
  526. # Name of the host.
  527. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  528. # so uname gets run too.
  529. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  530. #
  531. # Initializations.
  532. #
  533. ac_default_prefix=/usr/local
  534. ac_clean_files=
  535. ac_config_libobj_dir=.
  536. LIBOBJS=
  537. cross_compiling=no
  538. subdirs=
  539. MFLAGS=
  540. MAKEFLAGS=
  541. # Identity of this package.
  542. PACKAGE_NAME='sim'
  543. PACKAGE_TARNAME='sim'
  544. PACKAGE_VERSION='0'
  545. PACKAGE_STRING='sim 0'
  546. PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
  547. PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_func_list=
  585. enable_option_checking=no
  586. ac_subst_vars='am__EXEEXT_FALSE
  587. am__EXEEXT_TRUE
  588. LTLIBOBJS
  589. SIM_RX_CYCLE_ACCURATE_FLAGS
  590. SIM_FRV_TRAPDUMP_FLAGS
  591. sim_float
  592. sim_bitsize
  593. SIM_INLINE
  594. sim_hw_sockser
  595. sim_hw_cflags
  596. SIM_ENABLE_HW_FALSE
  597. SIM_ENABLE_HW_TRUE
  598. cgen
  599. cgendir
  600. CGEN_MAINT
  601. ENABLE_SIM_FALSE
  602. ENABLE_SIM_TRUE
  603. SIM_ENABLE_IGEN_FALSE
  604. SIM_ENABLE_IGEN_TRUE
  605. CC_FOR_TARGET_EXAMPLE_SYNACOR
  606. LD_FOR_TARGET_EXAMPLE_SYNACOR
  607. AS_FOR_TARGET_EXAMPLE_SYNACOR
  608. SIM_ENABLE_ARCH_v850_FALSE
  609. SIM_ENABLE_ARCH_v850_TRUE
  610. CC_FOR_TARGET_V850
  611. LD_FOR_TARGET_V850
  612. AS_FOR_TARGET_V850
  613. SIM_ENABLE_ARCH_erc32_FALSE
  614. SIM_ENABLE_ARCH_erc32_TRUE
  615. CC_FOR_TARGET_ERC32
  616. LD_FOR_TARGET_ERC32
  617. AS_FOR_TARGET_ERC32
  618. SIM_ENABLE_ARCH_sh_FALSE
  619. SIM_ENABLE_ARCH_sh_TRUE
  620. CC_FOR_TARGET_SH
  621. LD_FOR_TARGET_SH
  622. AS_FOR_TARGET_SH
  623. SIM_ENABLE_ARCH_rx_FALSE
  624. SIM_ENABLE_ARCH_rx_TRUE
  625. CC_FOR_TARGET_RX
  626. LD_FOR_TARGET_RX
  627. AS_FOR_TARGET_RX
  628. SIM_ENABLE_ARCH_rl78_FALSE
  629. SIM_ENABLE_ARCH_rl78_TRUE
  630. CC_FOR_TARGET_RL78
  631. LD_FOR_TARGET_RL78
  632. AS_FOR_TARGET_RL78
  633. SIM_ENABLE_ARCH_riscv_FALSE
  634. SIM_ENABLE_ARCH_riscv_TRUE
  635. CC_FOR_TARGET_RISCV
  636. LD_FOR_TARGET_RISCV
  637. AS_FOR_TARGET_RISCV
  638. SIM_ENABLE_ARCH_pru_FALSE
  639. SIM_ENABLE_ARCH_pru_TRUE
  640. CC_FOR_TARGET_PRU
  641. LD_FOR_TARGET_PRU
  642. AS_FOR_TARGET_PRU
  643. SIM_ENABLE_ARCH_ppc_FALSE
  644. SIM_ENABLE_ARCH_ppc_TRUE
  645. CC_FOR_TARGET_PPC
  646. LD_FOR_TARGET_PPC
  647. AS_FOR_TARGET_PPC
  648. SIM_ENABLE_ARCH_or1k_FALSE
  649. SIM_ENABLE_ARCH_or1k_TRUE
  650. CC_FOR_TARGET_OR1K
  651. LD_FOR_TARGET_OR1K
  652. AS_FOR_TARGET_OR1K
  653. SIM_ENABLE_ARCH_msp430_FALSE
  654. SIM_ENABLE_ARCH_msp430_TRUE
  655. CC_FOR_TARGET_MSP430
  656. LD_FOR_TARGET_MSP430
  657. AS_FOR_TARGET_MSP430
  658. SIM_ENABLE_ARCH_moxie_FALSE
  659. SIM_ENABLE_ARCH_moxie_TRUE
  660. CC_FOR_TARGET_MOXIE
  661. LD_FOR_TARGET_MOXIE
  662. AS_FOR_TARGET_MOXIE
  663. SIM_ENABLE_ARCH_mn10300_FALSE
  664. SIM_ENABLE_ARCH_mn10300_TRUE
  665. CC_FOR_TARGET_MN10300
  666. LD_FOR_TARGET_MN10300
  667. AS_FOR_TARGET_MN10300
  668. SIM_ENABLE_ARCH_mips_FALSE
  669. SIM_ENABLE_ARCH_mips_TRUE
  670. CC_FOR_TARGET_MIPS
  671. LD_FOR_TARGET_MIPS
  672. AS_FOR_TARGET_MIPS
  673. SIM_ENABLE_ARCH_microblaze_FALSE
  674. SIM_ENABLE_ARCH_microblaze_TRUE
  675. CC_FOR_TARGET_MICROBLAZE
  676. LD_FOR_TARGET_MICROBLAZE
  677. AS_FOR_TARGET_MICROBLAZE
  678. SIM_ENABLE_ARCH_mcore_FALSE
  679. SIM_ENABLE_ARCH_mcore_TRUE
  680. CC_FOR_TARGET_MCORE
  681. LD_FOR_TARGET_MCORE
  682. AS_FOR_TARGET_MCORE
  683. SIM_ENABLE_ARCH_m68hc11_FALSE
  684. SIM_ENABLE_ARCH_m68hc11_TRUE
  685. CC_FOR_TARGET_M68HC11
  686. LD_FOR_TARGET_M68HC11
  687. AS_FOR_TARGET_M68HC11
  688. SIM_ENABLE_ARCH_m32r_FALSE
  689. SIM_ENABLE_ARCH_m32r_TRUE
  690. CC_FOR_TARGET_M32R
  691. LD_FOR_TARGET_M32R
  692. AS_FOR_TARGET_M32R
  693. SIM_ENABLE_ARCH_m32c_FALSE
  694. SIM_ENABLE_ARCH_m32c_TRUE
  695. CC_FOR_TARGET_M32C
  696. LD_FOR_TARGET_M32C
  697. AS_FOR_TARGET_M32C
  698. SIM_ENABLE_ARCH_lm32_FALSE
  699. SIM_ENABLE_ARCH_lm32_TRUE
  700. CC_FOR_TARGET_LM32
  701. LD_FOR_TARGET_LM32
  702. AS_FOR_TARGET_LM32
  703. SIM_ENABLE_ARCH_iq2000_FALSE
  704. SIM_ENABLE_ARCH_iq2000_TRUE
  705. CC_FOR_TARGET_IQ2000
  706. LD_FOR_TARGET_IQ2000
  707. AS_FOR_TARGET_IQ2000
  708. SIM_ENABLE_ARCH_h8300_FALSE
  709. SIM_ENABLE_ARCH_h8300_TRUE
  710. CC_FOR_TARGET_H8300
  711. LD_FOR_TARGET_H8300
  712. AS_FOR_TARGET_H8300
  713. SIM_ENABLE_ARCH_ft32_FALSE
  714. SIM_ENABLE_ARCH_ft32_TRUE
  715. CC_FOR_TARGET_FT32
  716. LD_FOR_TARGET_FT32
  717. AS_FOR_TARGET_FT32
  718. SIM_ENABLE_ARCH_frv_FALSE
  719. SIM_ENABLE_ARCH_frv_TRUE
  720. CC_FOR_TARGET_FRV
  721. LD_FOR_TARGET_FRV
  722. AS_FOR_TARGET_FRV
  723. SIM_ENABLE_ARCH_d10v_FALSE
  724. SIM_ENABLE_ARCH_d10v_TRUE
  725. CC_FOR_TARGET_D10V
  726. LD_FOR_TARGET_D10V
  727. AS_FOR_TARGET_D10V
  728. SIM_ENABLE_ARCH_cris_FALSE
  729. SIM_ENABLE_ARCH_cris_TRUE
  730. CC_FOR_TARGET_CRIS
  731. LD_FOR_TARGET_CRIS
  732. AS_FOR_TARGET_CRIS
  733. SIM_ENABLE_ARCH_cr16_FALSE
  734. SIM_ENABLE_ARCH_cr16_TRUE
  735. CC_FOR_TARGET_CR16
  736. LD_FOR_TARGET_CR16
  737. AS_FOR_TARGET_CR16
  738. SIM_ENABLE_ARCH_bpf_FALSE
  739. SIM_ENABLE_ARCH_bpf_TRUE
  740. CC_FOR_TARGET_BPF
  741. LD_FOR_TARGET_BPF
  742. AS_FOR_TARGET_BPF
  743. subdirs
  744. SIM_ENABLE_ARCH_bfin_FALSE
  745. SIM_ENABLE_ARCH_bfin_TRUE
  746. CC_FOR_TARGET_BFIN
  747. LD_FOR_TARGET_BFIN
  748. AS_FOR_TARGET_BFIN
  749. SIM_ENABLE_ARCH_avr_FALSE
  750. SIM_ENABLE_ARCH_avr_TRUE
  751. CC_FOR_TARGET_AVR
  752. LD_FOR_TARGET_AVR
  753. AS_FOR_TARGET_AVR
  754. SIM_ENABLE_ARCH_arm_FALSE
  755. SIM_ENABLE_ARCH_arm_TRUE
  756. CC_FOR_TARGET_ARM
  757. LD_FOR_TARGET_ARM
  758. AS_FOR_TARGET_ARM
  759. SIM_ENABLE_ARCH_aarch64_FALSE
  760. SIM_ENABLE_ARCH_aarch64_TRUE
  761. CC_FOR_TARGET_AARCH64
  762. LD_FOR_TARGET_AARCH64
  763. AS_FOR_TARGET_AARCH64
  764. LD_FOR_TARGET
  765. AS_FOR_TARGET
  766. CC_FOR_TARGET
  767. SIM_COMMON_BUILD_FALSE
  768. SIM_COMMON_BUILD_TRUE
  769. SIM_SUBDIRS
  770. SIM_PRIMARY_TARGET
  771. AM_BACKSLASH
  772. AM_DEFAULT_VERBOSITY
  773. AM_DEFAULT_V
  774. AM_V
  775. am__fastdepCC_FALSE
  776. am__fastdepCC_TRUE
  777. CCDEPMODE
  778. am__nodep
  779. AMDEPBACKSLASH
  780. AMDEP_FALSE
  781. AMDEP_TRUE
  782. am__quote
  783. am__include
  784. DEPDIR
  785. am__untar
  786. am__tar
  787. AMTAR
  788. am__leading_dot
  789. SET_MAKE
  790. mkdir_p
  791. MKDIR_P
  792. INSTALL_STRIP_PROGRAM
  793. install_sh
  794. MAKEINFO
  795. AUTOHEADER
  796. AUTOMAKE
  797. AUTOCONF
  798. ACLOCAL
  799. VERSION
  800. PACKAGE
  801. CYGPATH_W
  802. am__isrc
  803. MAINT
  804. MAINTAINER_MODE_FALSE
  805. MAINTAINER_MODE_TRUE
  806. READLINE_CFLAGS
  807. READLINE_LIB
  808. TERMCAP_LIB
  809. SDL_LIBS
  810. SDL_CFLAGS
  811. lt_cv_dlopen_libs
  812. OTOOL64
  813. OTOOL
  814. LIPO
  815. NMEDIT
  816. DSYMUTIL
  817. AWK
  818. STRIP
  819. OBJDUMP
  820. LN_S
  821. NM
  822. ac_ct_DUMPBIN
  823. DUMPBIN
  824. LD
  825. FGREP
  826. SED
  827. LIBTOOL
  828. PLUGINS_FALSE
  829. PLUGINS_TRUE
  830. zlibinc
  831. zlibdir
  832. CATOBJEXT
  833. GENCAT
  834. INSTOBJEXT
  835. DATADIRNAME
  836. CATALOGS
  837. POSUB
  838. GMSGFMT
  839. XGETTEXT
  840. INCINTL
  841. LIBINTL_DEP
  842. LIBINTL
  843. USE_NLS
  844. LIBOBJS
  845. C_DIALECT
  846. PKG_CONFIG_LIBDIR
  847. PKG_CONFIG_PATH
  848. PKG_CONFIG
  849. RANLIB
  850. AR
  851. LDFLAGS_FOR_BUILD
  852. CFLAGS_FOR_BUILD
  853. RANLIB_FOR_BUILD
  854. CC_FOR_BUILD
  855. AR_FOR_BUILD
  856. DTC
  857. INSTALL_DATA
  858. INSTALL_SCRIPT
  859. INSTALL_PROGRAM
  860. EGREP
  861. GREP
  862. CPP
  863. OBJEXT
  864. EXEEXT
  865. ac_ct_CC
  866. CPPFLAGS
  867. LDFLAGS
  868. CFLAGS
  869. CC
  870. target_os
  871. target_vendor
  872. target_cpu
  873. target
  874. host_os
  875. host_vendor
  876. host_cpu
  877. host
  878. build_os
  879. build_vendor
  880. build_cpu
  881. build
  882. REPORT_BUGS_TEXI
  883. REPORT_BUGS_TO
  884. PKGVERSION
  885. target_alias
  886. host_alias
  887. build_alias
  888. LIBS
  889. ECHO_T
  890. ECHO_N
  891. ECHO_C
  892. DEFS
  893. mandir
  894. localedir
  895. libdir
  896. psdir
  897. pdfdir
  898. dvidir
  899. htmldir
  900. infodir
  901. docdir
  902. oldincludedir
  903. includedir
  904. localstatedir
  905. sharedstatedir
  906. sysconfdir
  907. datadir
  908. datarootdir
  909. libexecdir
  910. sbindir
  911. bindir
  912. program_transform_name
  913. prefix
  914. exec_prefix
  915. PACKAGE_URL
  916. PACKAGE_BUGREPORT
  917. PACKAGE_STRING
  918. PACKAGE_VERSION
  919. PACKAGE_TARNAME
  920. PACKAGE_NAME
  921. PATH_SEPARATOR
  922. SHELL
  923. SIM_TOOLCHAIN_VARS
  924. WERROR_CFLAGS
  925. WARN_CFLAGS'
  926. ac_subst_files=''
  927. ac_user_opts='
  928. enable_option_checking
  929. with_pkgversion
  930. with_bugurl
  931. with_system_zlib
  932. enable_plugins
  933. enable_shared
  934. enable_static
  935. with_pic
  936. enable_fast_install
  937. with_gnu_ld
  938. enable_libtool_lock
  939. enable_maintainer_mode
  940. enable_dependency_tracking
  941. enable_silent_rules
  942. enable_sim
  943. enable_example_sims
  944. enable_targets
  945. enable_sim_alignment
  946. enable_sim_assert
  947. enable_cgen_maint
  948. enable_sim_debug
  949. enable_sim_endian
  950. enable_sim_environment
  951. enable_sim_hardware
  952. enable_sim_inline
  953. enable_sim_profile
  954. enable_sim_reserved_bits
  955. enable_sim_scache
  956. enable_sim_stdio
  957. enable_sim_trace
  958. enable_werror
  959. enable_build_warnings
  960. enable_sim_build_warnings
  961. enable_sim_frv_trapdump
  962. enable_sim_rx_cycle_accurate
  963. '
  964. ac_precious_vars='build_alias
  965. host_alias
  966. target_alias
  967. CC
  968. CFLAGS
  969. LDFLAGS
  970. LIBS
  971. CPPFLAGS
  972. CPP
  973. PKG_CONFIG
  974. PKG_CONFIG_PATH
  975. PKG_CONFIG_LIBDIR
  976. SDL_CFLAGS
  977. SDL_LIBS
  978. AS_FOR_TARGET_AARCH64
  979. LD_FOR_TARGET_AARCH64
  980. CC_FOR_TARGET_AARCH64
  981. AS_FOR_TARGET_ARM
  982. LD_FOR_TARGET_ARM
  983. CC_FOR_TARGET_ARM
  984. AS_FOR_TARGET_AVR
  985. LD_FOR_TARGET_AVR
  986. CC_FOR_TARGET_AVR
  987. AS_FOR_TARGET_BFIN
  988. LD_FOR_TARGET_BFIN
  989. CC_FOR_TARGET_BFIN
  990. AS_FOR_TARGET_BPF
  991. LD_FOR_TARGET_BPF
  992. CC_FOR_TARGET_BPF
  993. AS_FOR_TARGET_CR16
  994. LD_FOR_TARGET_CR16
  995. CC_FOR_TARGET_CR16
  996. AS_FOR_TARGET_CRIS
  997. LD_FOR_TARGET_CRIS
  998. CC_FOR_TARGET_CRIS
  999. AS_FOR_TARGET_D10V
  1000. LD_FOR_TARGET_D10V
  1001. CC_FOR_TARGET_D10V
  1002. AS_FOR_TARGET_FRV
  1003. LD_FOR_TARGET_FRV
  1004. CC_FOR_TARGET_FRV
  1005. AS_FOR_TARGET_FT32
  1006. LD_FOR_TARGET_FT32
  1007. CC_FOR_TARGET_FT32
  1008. AS_FOR_TARGET_H8300
  1009. LD_FOR_TARGET_H8300
  1010. CC_FOR_TARGET_H8300
  1011. AS_FOR_TARGET_IQ2000
  1012. LD_FOR_TARGET_IQ2000
  1013. CC_FOR_TARGET_IQ2000
  1014. AS_FOR_TARGET_LM32
  1015. LD_FOR_TARGET_LM32
  1016. CC_FOR_TARGET_LM32
  1017. AS_FOR_TARGET_M32C
  1018. LD_FOR_TARGET_M32C
  1019. CC_FOR_TARGET_M32C
  1020. AS_FOR_TARGET_M32R
  1021. LD_FOR_TARGET_M32R
  1022. CC_FOR_TARGET_M32R
  1023. AS_FOR_TARGET_M68HC11
  1024. LD_FOR_TARGET_M68HC11
  1025. CC_FOR_TARGET_M68HC11
  1026. AS_FOR_TARGET_MCORE
  1027. LD_FOR_TARGET_MCORE
  1028. CC_FOR_TARGET_MCORE
  1029. AS_FOR_TARGET_MICROBLAZE
  1030. LD_FOR_TARGET_MICROBLAZE
  1031. CC_FOR_TARGET_MICROBLAZE
  1032. AS_FOR_TARGET_MIPS
  1033. LD_FOR_TARGET_MIPS
  1034. CC_FOR_TARGET_MIPS
  1035. AS_FOR_TARGET_MN10300
  1036. LD_FOR_TARGET_MN10300
  1037. CC_FOR_TARGET_MN10300
  1038. AS_FOR_TARGET_MOXIE
  1039. LD_FOR_TARGET_MOXIE
  1040. CC_FOR_TARGET_MOXIE
  1041. AS_FOR_TARGET_MSP430
  1042. LD_FOR_TARGET_MSP430
  1043. CC_FOR_TARGET_MSP430
  1044. AS_FOR_TARGET_OR1K
  1045. LD_FOR_TARGET_OR1K
  1046. CC_FOR_TARGET_OR1K
  1047. AS_FOR_TARGET_PPC
  1048. LD_FOR_TARGET_PPC
  1049. CC_FOR_TARGET_PPC
  1050. AS_FOR_TARGET_PRU
  1051. LD_FOR_TARGET_PRU
  1052. CC_FOR_TARGET_PRU
  1053. AS_FOR_TARGET_RISCV
  1054. LD_FOR_TARGET_RISCV
  1055. CC_FOR_TARGET_RISCV
  1056. AS_FOR_TARGET_RL78
  1057. LD_FOR_TARGET_RL78
  1058. CC_FOR_TARGET_RL78
  1059. AS_FOR_TARGET_RX
  1060. LD_FOR_TARGET_RX
  1061. CC_FOR_TARGET_RX
  1062. AS_FOR_TARGET_SH
  1063. LD_FOR_TARGET_SH
  1064. CC_FOR_TARGET_SH
  1065. AS_FOR_TARGET_ERC32
  1066. LD_FOR_TARGET_ERC32
  1067. CC_FOR_TARGET_ERC32
  1068. AS_FOR_TARGET_V850
  1069. LD_FOR_TARGET_V850
  1070. CC_FOR_TARGET_V850
  1071. AS_FOR_TARGET_EXAMPLE_SYNACOR
  1072. LD_FOR_TARGET_EXAMPLE_SYNACOR
  1073. CC_FOR_TARGET_EXAMPLE_SYNACOR'
  1074. ac_subdirs_all='bpf
  1075. mips
  1076. mn10300
  1077. or1k
  1078. ppc
  1079. riscv
  1080. v850'
  1081. # Initialize some variables set by options.
  1082. ac_init_help=
  1083. ac_init_version=false
  1084. ac_unrecognized_opts=
  1085. ac_unrecognized_sep=
  1086. # The variables have the same names as the options, with
  1087. # dashes changed to underlines.
  1088. cache_file=/dev/null
  1089. exec_prefix=NONE
  1090. no_create=
  1091. no_recursion=
  1092. prefix=NONE
  1093. program_prefix=NONE
  1094. program_suffix=NONE
  1095. program_transform_name=s,x,x,
  1096. silent=
  1097. site=
  1098. srcdir=
  1099. verbose=
  1100. x_includes=NONE
  1101. x_libraries=NONE
  1102. # Installation directory options.
  1103. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1104. # and all the variables that are supposed to be based on exec_prefix
  1105. # by default will actually change.
  1106. # Use braces instead of parens because sh, perl, etc. also accept them.
  1107. # (The list follows the same order as the GNU Coding Standards.)
  1108. bindir='${exec_prefix}/bin'
  1109. sbindir='${exec_prefix}/sbin'
  1110. libexecdir='${exec_prefix}/libexec'
  1111. datarootdir='${prefix}/share'
  1112. datadir='${datarootdir}'
  1113. sysconfdir='${prefix}/etc'
  1114. sharedstatedir='${prefix}/com'
  1115. localstatedir='${prefix}/var'
  1116. includedir='${prefix}/include'
  1117. oldincludedir='/usr/include'
  1118. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1119. infodir='${datarootdir}/info'
  1120. htmldir='${docdir}'
  1121. dvidir='${docdir}'
  1122. pdfdir='${docdir}'
  1123. psdir='${docdir}'
  1124. libdir='${exec_prefix}/lib'
  1125. localedir='${datarootdir}/locale'
  1126. mandir='${datarootdir}/man'
  1127. ac_prev=
  1128. ac_dashdash=
  1129. for ac_option
  1130. do
  1131. # If the previous option needs an argument, assign it.
  1132. if test -n "$ac_prev"; then
  1133. eval $ac_prev=\$ac_option
  1134. ac_prev=
  1135. continue
  1136. fi
  1137. case $ac_option in
  1138. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1139. *=) ac_optarg= ;;
  1140. *) ac_optarg=yes ;;
  1141. esac
  1142. # Accept the important Cygnus configure options, so we can diagnose typos.
  1143. case $ac_dashdash$ac_option in
  1144. --)
  1145. ac_dashdash=yes ;;
  1146. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1147. ac_prev=bindir ;;
  1148. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1149. bindir=$ac_optarg ;;
  1150. -build | --build | --buil | --bui | --bu)
  1151. ac_prev=build_alias ;;
  1152. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1153. build_alias=$ac_optarg ;;
  1154. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1155. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1156. ac_prev=cache_file ;;
  1157. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1158. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1159. cache_file=$ac_optarg ;;
  1160. --config-cache | -C)
  1161. cache_file=config.cache ;;
  1162. -datadir | --datadir | --datadi | --datad)
  1163. ac_prev=datadir ;;
  1164. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1165. datadir=$ac_optarg ;;
  1166. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1167. | --dataroo | --dataro | --datar)
  1168. ac_prev=datarootdir ;;
  1169. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1170. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1171. datarootdir=$ac_optarg ;;
  1172. -disable-* | --disable-*)
  1173. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1174. # Reject names that are not valid shell variable names.
  1175. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1176. as_fn_error $? "invalid feature name: $ac_useropt"
  1177. ac_useropt_orig=$ac_useropt
  1178. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1179. case $ac_user_opts in
  1180. *"
  1181. "enable_$ac_useropt"
  1182. "*) ;;
  1183. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1184. ac_unrecognized_sep=', ';;
  1185. esac
  1186. eval enable_$ac_useropt=no ;;
  1187. -docdir | --docdir | --docdi | --doc | --do)
  1188. ac_prev=docdir ;;
  1189. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1190. docdir=$ac_optarg ;;
  1191. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1192. ac_prev=dvidir ;;
  1193. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1194. dvidir=$ac_optarg ;;
  1195. -enable-* | --enable-*)
  1196. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1197. # Reject names that are not valid shell variable names.
  1198. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1199. as_fn_error $? "invalid feature name: $ac_useropt"
  1200. ac_useropt_orig=$ac_useropt
  1201. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1202. case $ac_user_opts in
  1203. *"
  1204. "enable_$ac_useropt"
  1205. "*) ;;
  1206. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1207. ac_unrecognized_sep=', ';;
  1208. esac
  1209. eval enable_$ac_useropt=\$ac_optarg ;;
  1210. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1211. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1212. | --exec | --exe | --ex)
  1213. ac_prev=exec_prefix ;;
  1214. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1215. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1216. | --exec=* | --exe=* | --ex=*)
  1217. exec_prefix=$ac_optarg ;;
  1218. -gas | --gas | --ga | --g)
  1219. # Obsolete; use --with-gas.
  1220. with_gas=yes ;;
  1221. -help | --help | --hel | --he | -h)
  1222. ac_init_help=long ;;
  1223. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1224. ac_init_help=recursive ;;
  1225. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1226. ac_init_help=short ;;
  1227. -host | --host | --hos | --ho)
  1228. ac_prev=host_alias ;;
  1229. -host=* | --host=* | --hos=* | --ho=*)
  1230. host_alias=$ac_optarg ;;
  1231. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1232. ac_prev=htmldir ;;
  1233. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1234. | --ht=*)
  1235. htmldir=$ac_optarg ;;
  1236. -includedir | --includedir | --includedi | --included | --include \
  1237. | --includ | --inclu | --incl | --inc)
  1238. ac_prev=includedir ;;
  1239. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1240. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1241. includedir=$ac_optarg ;;
  1242. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1243. ac_prev=infodir ;;
  1244. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1245. infodir=$ac_optarg ;;
  1246. -libdir | --libdir | --libdi | --libd)
  1247. ac_prev=libdir ;;
  1248. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1249. libdir=$ac_optarg ;;
  1250. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1251. | --libexe | --libex | --libe)
  1252. ac_prev=libexecdir ;;
  1253. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1254. | --libexe=* | --libex=* | --libe=*)
  1255. libexecdir=$ac_optarg ;;
  1256. -localedir | --localedir | --localedi | --localed | --locale)
  1257. ac_prev=localedir ;;
  1258. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1259. localedir=$ac_optarg ;;
  1260. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1261. | --localstate | --localstat | --localsta | --localst | --locals)
  1262. ac_prev=localstatedir ;;
  1263. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1264. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1265. localstatedir=$ac_optarg ;;
  1266. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1267. ac_prev=mandir ;;
  1268. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1269. mandir=$ac_optarg ;;
  1270. -nfp | --nfp | --nf)
  1271. # Obsolete; use --without-fp.
  1272. with_fp=no ;;
  1273. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1274. | --no-cr | --no-c | -n)
  1275. no_create=yes ;;
  1276. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1277. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1278. no_recursion=yes ;;
  1279. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1280. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1281. | --oldin | --oldi | --old | --ol | --o)
  1282. ac_prev=oldincludedir ;;
  1283. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1284. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1285. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1286. oldincludedir=$ac_optarg ;;
  1287. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1288. ac_prev=prefix ;;
  1289. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1290. prefix=$ac_optarg ;;
  1291. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1292. | --program-pre | --program-pr | --program-p)
  1293. ac_prev=program_prefix ;;
  1294. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1295. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1296. program_prefix=$ac_optarg ;;
  1297. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1298. | --program-suf | --program-su | --program-s)
  1299. ac_prev=program_suffix ;;
  1300. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1301. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1302. program_suffix=$ac_optarg ;;
  1303. -program-transform-name | --program-transform-name \
  1304. | --program-transform-nam | --program-transform-na \
  1305. | --program-transform-n | --program-transform- \
  1306. | --program-transform | --program-transfor \
  1307. | --program-transfo | --program-transf \
  1308. | --program-trans | --program-tran \
  1309. | --progr-tra | --program-tr | --program-t)
  1310. ac_prev=program_transform_name ;;
  1311. -program-transform-name=* | --program-transform-name=* \
  1312. | --program-transform-nam=* | --program-transform-na=* \
  1313. | --program-transform-n=* | --program-transform-=* \
  1314. | --program-transform=* | --program-transfor=* \
  1315. | --program-transfo=* | --program-transf=* \
  1316. | --program-trans=* | --program-tran=* \
  1317. | --progr-tra=* | --program-tr=* | --program-t=*)
  1318. program_transform_name=$ac_optarg ;;
  1319. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1320. ac_prev=pdfdir ;;
  1321. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1322. pdfdir=$ac_optarg ;;
  1323. -psdir | --psdir | --psdi | --psd | --ps)
  1324. ac_prev=psdir ;;
  1325. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1326. psdir=$ac_optarg ;;
  1327. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1328. | -silent | --silent | --silen | --sile | --sil)
  1329. silent=yes ;;
  1330. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1331. ac_prev=sbindir ;;
  1332. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1333. | --sbi=* | --sb=*)
  1334. sbindir=$ac_optarg ;;
  1335. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1336. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1337. | --sharedst | --shareds | --shared | --share | --shar \
  1338. | --sha | --sh)
  1339. ac_prev=sharedstatedir ;;
  1340. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1341. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1342. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1343. | --sha=* | --sh=*)
  1344. sharedstatedir=$ac_optarg ;;
  1345. -site | --site | --sit)
  1346. ac_prev=site ;;
  1347. -site=* | --site=* | --sit=*)
  1348. site=$ac_optarg ;;
  1349. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1350. ac_prev=srcdir ;;
  1351. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1352. srcdir=$ac_optarg ;;
  1353. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1354. | --syscon | --sysco | --sysc | --sys | --sy)
  1355. ac_prev=sysconfdir ;;
  1356. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1357. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1358. sysconfdir=$ac_optarg ;;
  1359. -target | --target | --targe | --targ | --tar | --ta | --t)
  1360. ac_prev=target_alias ;;
  1361. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1362. target_alias=$ac_optarg ;;
  1363. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1364. verbose=yes ;;
  1365. -version | --version | --versio | --versi | --vers | -V)
  1366. ac_init_version=: ;;
  1367. -with-* | --with-*)
  1368. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1369. # Reject names that are not valid shell variable names.
  1370. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1371. as_fn_error $? "invalid package name: $ac_useropt"
  1372. ac_useropt_orig=$ac_useropt
  1373. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1374. case $ac_user_opts in
  1375. *"
  1376. "with_$ac_useropt"
  1377. "*) ;;
  1378. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1379. ac_unrecognized_sep=', ';;
  1380. esac
  1381. eval with_$ac_useropt=\$ac_optarg ;;
  1382. -without-* | --without-*)
  1383. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1384. # Reject names that are not valid shell variable names.
  1385. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1386. as_fn_error $? "invalid package name: $ac_useropt"
  1387. ac_useropt_orig=$ac_useropt
  1388. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1389. case $ac_user_opts in
  1390. *"
  1391. "with_$ac_useropt"
  1392. "*) ;;
  1393. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1394. ac_unrecognized_sep=', ';;
  1395. esac
  1396. eval with_$ac_useropt=no ;;
  1397. --x)
  1398. # Obsolete; use --with-x.
  1399. with_x=yes ;;
  1400. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1401. | --x-incl | --x-inc | --x-in | --x-i)
  1402. ac_prev=x_includes ;;
  1403. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1404. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1405. x_includes=$ac_optarg ;;
  1406. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1407. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1408. ac_prev=x_libraries ;;
  1409. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1410. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1411. x_libraries=$ac_optarg ;;
  1412. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1413. Try \`$0 --help' for more information"
  1414. ;;
  1415. *=*)
  1416. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1417. # Reject names that are not valid shell variable names.
  1418. case $ac_envvar in #(
  1419. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1420. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1421. esac
  1422. eval $ac_envvar=\$ac_optarg
  1423. export $ac_envvar ;;
  1424. *)
  1425. # FIXME: should be removed in autoconf 3.0.
  1426. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1427. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1428. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1429. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1430. ;;
  1431. esac
  1432. done
  1433. if test -n "$ac_prev"; then
  1434. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1435. as_fn_error $? "missing argument to $ac_option"
  1436. fi
  1437. if test -n "$ac_unrecognized_opts"; then
  1438. case $enable_option_checking in
  1439. no) ;;
  1440. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1441. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1442. esac
  1443. fi
  1444. # Check all directory arguments for consistency.
  1445. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1446. datadir sysconfdir sharedstatedir localstatedir includedir \
  1447. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1448. libdir localedir mandir
  1449. do
  1450. eval ac_val=\$$ac_var
  1451. # Remove trailing slashes.
  1452. case $ac_val in
  1453. */ )
  1454. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1455. eval $ac_var=\$ac_val;;
  1456. esac
  1457. # Be sure to have absolute directory names.
  1458. case $ac_val in
  1459. [\\/$]* | ?:[\\/]* ) continue;;
  1460. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1461. esac
  1462. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1463. done
  1464. # There might be people who depend on the old broken behavior: `$host'
  1465. # used to hold the argument of --host etc.
  1466. # FIXME: To remove some day.
  1467. build=$build_alias
  1468. host=$host_alias
  1469. target=$target_alias
  1470. # FIXME: To remove some day.
  1471. if test "x$host_alias" != x; then
  1472. if test "x$build_alias" = x; then
  1473. cross_compiling=maybe
  1474. elif test "x$build_alias" != "x$host_alias"; then
  1475. cross_compiling=yes
  1476. fi
  1477. fi
  1478. ac_tool_prefix=
  1479. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1480. test "$silent" = yes && exec 6>/dev/null
  1481. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1482. ac_ls_di=`ls -di .` &&
  1483. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1484. as_fn_error $? "working directory cannot be determined"
  1485. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1486. as_fn_error $? "pwd does not report name of working directory"
  1487. # Find the source files, if location was not specified.
  1488. if test -z "$srcdir"; then
  1489. ac_srcdir_defaulted=yes
  1490. # Try the directory containing this script, then the parent directory.
  1491. ac_confdir=`$as_dirname -- "$as_myself" ||
  1492. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1493. X"$as_myself" : 'X\(//\)[^/]' \| \
  1494. X"$as_myself" : 'X\(//\)$' \| \
  1495. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1496. $as_echo X"$as_myself" |
  1497. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1498. s//\1/
  1499. q
  1500. }
  1501. /^X\(\/\/\)[^/].*/{
  1502. s//\1/
  1503. q
  1504. }
  1505. /^X\(\/\/\)$/{
  1506. s//\1/
  1507. q
  1508. }
  1509. /^X\(\/\).*/{
  1510. s//\1/
  1511. q
  1512. }
  1513. s/.*/./; q'`
  1514. srcdir=$ac_confdir
  1515. if test ! -r "$srcdir/$ac_unique_file"; then
  1516. srcdir=..
  1517. fi
  1518. else
  1519. ac_srcdir_defaulted=no
  1520. fi
  1521. if test ! -r "$srcdir/$ac_unique_file"; then
  1522. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1523. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1524. fi
  1525. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1526. ac_abs_confdir=`(
  1527. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1528. pwd)`
  1529. # When building in place, set srcdir=.
  1530. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1531. srcdir=.
  1532. fi
  1533. # Remove unnecessary trailing slashes from srcdir.
  1534. # Double slashes in file names in object file debugging info
  1535. # mess up M-x gdb in Emacs.
  1536. case $srcdir in
  1537. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1538. esac
  1539. for ac_var in $ac_precious_vars; do
  1540. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1541. eval ac_env_${ac_var}_value=\$${ac_var}
  1542. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1543. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1544. done
  1545. #
  1546. # Report the --help message.
  1547. #
  1548. if test "$ac_init_help" = "long"; then
  1549. # Omit some internal or obsolete options to make the list less imposing.
  1550. # This message is too long to be a string in the A/UX 3.1 sh.
  1551. cat <<_ACEOF
  1552. \`configure' configures sim 0 to adapt to many kinds of systems.
  1553. Usage: $0 [OPTION]... [VAR=VALUE]...
  1554. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1555. VAR=VALUE. See below for descriptions of some of the useful variables.
  1556. Defaults for the options are specified in brackets.
  1557. Configuration:
  1558. -h, --help display this help and exit
  1559. --help=short display options specific to this package
  1560. --help=recursive display the short help of all the included packages
  1561. -V, --version display version information and exit
  1562. -q, --quiet, --silent do not print \`checking ...' messages
  1563. --cache-file=FILE cache test results in FILE [disabled]
  1564. -C, --config-cache alias for \`--cache-file=config.cache'
  1565. -n, --no-create do not create output files
  1566. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1567. Installation directories:
  1568. --prefix=PREFIX install architecture-independent files in PREFIX
  1569. [$ac_default_prefix]
  1570. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1571. [PREFIX]
  1572. By default, \`make install' will install all the files in
  1573. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1574. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1575. for instance \`--prefix=\$HOME'.
  1576. For better control, use the options below.
  1577. Fine tuning of the installation directories:
  1578. --bindir=DIR user executables [EPREFIX/bin]
  1579. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1580. --libexecdir=DIR program executables [EPREFIX/libexec]
  1581. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1582. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1583. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1584. --libdir=DIR object code libraries [EPREFIX/lib]
  1585. --includedir=DIR C header files [PREFIX/include]
  1586. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1587. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1588. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1589. --infodir=DIR info documentation [DATAROOTDIR/info]
  1590. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1591. --mandir=DIR man documentation [DATAROOTDIR/man]
  1592. --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
  1593. --htmldir=DIR html documentation [DOCDIR]
  1594. --dvidir=DIR dvi documentation [DOCDIR]
  1595. --pdfdir=DIR pdf documentation [DOCDIR]
  1596. --psdir=DIR ps documentation [DOCDIR]
  1597. _ACEOF
  1598. cat <<\_ACEOF
  1599. Program names:
  1600. --program-prefix=PREFIX prepend PREFIX to installed program names
  1601. --program-suffix=SUFFIX append SUFFIX to installed program names
  1602. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1603. System types:
  1604. --build=BUILD configure for building on BUILD [guessed]
  1605. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1606. --target=TARGET configure for building compilers for TARGET [HOST]
  1607. _ACEOF
  1608. fi
  1609. if test -n "$ac_init_help"; then
  1610. case $ac_init_help in
  1611. short | recursive ) echo "Configuration of sim 0:";;
  1612. esac
  1613. cat <<\_ACEOF
  1614. Optional Features:
  1615. --disable-option-checking ignore unrecognized --enable/--with options
  1616. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1617. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1618. --enable-plugins Enable support for plugins
  1619. --enable-shared[=PKGS] build shared libraries [default=yes]
  1620. --enable-static[=PKGS] build static libraries [default=yes]
  1621. --enable-fast-install[=PKGS]
  1622. optimize for fast installation [default=yes]
  1623. --disable-libtool-lock avoid locking (might break parallel builds)
  1624. --enable-maintainer-mode
  1625. enable make rules and dependencies not useful (and
  1626. sometimes confusing) to the casual installer
  1627. --enable-dependency-tracking
  1628. do not reject slow dependency extractors
  1629. --disable-dependency-tracking
  1630. speeds up one-time build
  1631. --enable-silent-rules less verbose build output (undo: "make V=1")
  1632. --disable-silent-rules verbose build output (undo: "make V=0")
  1633. --enable-sim Enable the GNU simulator
  1634. --enable-example-sims enable example GNU simulators
  1635. --enable-targets alternative target configurations
  1636. --enable-sim-alignment=align
  1637. Specify strict, nonstrict or forced alignment of
  1638. memory accesses
  1639. --enable-sim-assert Specify whether to perform random assertions
  1640. --enable-cgen-maint=DIR build cgen generated files
  1641. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1642. itself)
  1643. --enable-sim-endian=endian
  1644. Specify target byte endian orientation
  1645. --enable-sim-environment=environment
  1646. Specify mixed, user, virtual or operating
  1647. environment
  1648. --enable-sim-hardware Whether to enable hardware/device simulation
  1649. --enable-sim-inline=inlines
  1650. Specify which functions should be inlined
  1651. --enable-sim-profile=opts
  1652. Enable profiling flags
  1653. --enable-sim-reserved-bits
  1654. Specify whether to check reserved bits in
  1655. instruction
  1656. --enable-sim-scache=size
  1657. Specify simulator execution cache size
  1658. --enable-sim-stdio Specify whether to use stdio for console
  1659. input/output
  1660. --enable-sim-trace=opts Enable tracing of simulated programs
  1661. --enable-werror treat compile warnings as errors
  1662. --enable-build-warnings enable build-time compiler warnings if gcc is used
  1663. --enable-sim-build-warnings
  1664. enable SIM specific build-time compiler warnings if
  1665. gcc is used
  1666. --enable-sim-frv-trapdump
  1667. Make unknown traps dump the registers
  1668. --disable-sim-rx-cycle-accurate
  1669. Disable cycle accurate simulation (faster runtime)
  1670. Optional Packages:
  1671. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1672. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1673. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1674. --with-bugurl=URL Direct users to URL to report a bug
  1675. --with-system-zlib use installed libz
  1676. --with-pic try to use only PIC/non-PIC objects [default=use
  1677. both]
  1678. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1679. Some influential environment variables:
  1680. CC C compiler command
  1681. CFLAGS C compiler flags
  1682. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1683. nonstandard directory <lib dir>
  1684. LIBS libraries to pass to the linker, e.g. -l<library>
  1685. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1686. you have headers in a nonstandard directory <include dir>
  1687. CPP C preprocessor
  1688. PKG_CONFIG path to pkg-config utility
  1689. PKG_CONFIG_PATH
  1690. directories to add to pkg-config's search path
  1691. PKG_CONFIG_LIBDIR
  1692. path overriding pkg-config's built-in search path
  1693. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1694. SDL_LIBS linker flags for SDL, overriding pkg-config
  1695. AS_FOR_TARGET_AARCH64
  1696. Assembler for aarch64 tests
  1697. LD_FOR_TARGET_AARCH64
  1698. Linker for aarch64 tests
  1699. CC_FOR_TARGET_AARCH64
  1700. C compiler for aarch64 tests
  1701. AS_FOR_TARGET_ARM
  1702. Assembler for arm tests
  1703. LD_FOR_TARGET_ARM
  1704. Linker for arm tests
  1705. CC_FOR_TARGET_ARM
  1706. C compiler for arm tests
  1707. AS_FOR_TARGET_AVR
  1708. Assembler for avr tests
  1709. LD_FOR_TARGET_AVR
  1710. Linker for avr tests
  1711. CC_FOR_TARGET_AVR
  1712. C compiler for avr tests
  1713. AS_FOR_TARGET_BFIN
  1714. Assembler for bfin tests
  1715. LD_FOR_TARGET_BFIN
  1716. Linker for bfin tests
  1717. CC_FOR_TARGET_BFIN
  1718. C compiler for bfin tests
  1719. AS_FOR_TARGET_BPF
  1720. Assembler for bpf tests
  1721. LD_FOR_TARGET_BPF
  1722. Linker for bpf tests
  1723. CC_FOR_TARGET_BPF
  1724. C compiler for bpf tests
  1725. AS_FOR_TARGET_CR16
  1726. Assembler for cr16 tests
  1727. LD_FOR_TARGET_CR16
  1728. Linker for cr16 tests
  1729. CC_FOR_TARGET_CR16
  1730. C compiler for cr16 tests
  1731. AS_FOR_TARGET_CRIS
  1732. Assembler for cris tests
  1733. LD_FOR_TARGET_CRIS
  1734. Linker for cris tests
  1735. CC_FOR_TARGET_CRIS
  1736. C compiler for cris tests
  1737. AS_FOR_TARGET_D10V
  1738. Assembler for d10v tests
  1739. LD_FOR_TARGET_D10V
  1740. Linker for d10v tests
  1741. CC_FOR_TARGET_D10V
  1742. C compiler for d10v tests
  1743. AS_FOR_TARGET_FRV
  1744. Assembler for frv tests
  1745. LD_FOR_TARGET_FRV
  1746. Linker for frv tests
  1747. CC_FOR_TARGET_FRV
  1748. C compiler for frv tests
  1749. AS_FOR_TARGET_FT32
  1750. Assembler for ft32 tests
  1751. LD_FOR_TARGET_FT32
  1752. Linker for ft32 tests
  1753. CC_FOR_TARGET_FT32
  1754. C compiler for ft32 tests
  1755. AS_FOR_TARGET_H8300
  1756. Assembler for h8300 tests
  1757. LD_FOR_TARGET_H8300
  1758. Linker for h8300 tests
  1759. CC_FOR_TARGET_H8300
  1760. C compiler for h8300 tests
  1761. AS_FOR_TARGET_IQ2000
  1762. Assembler for iq2000 tests
  1763. LD_FOR_TARGET_IQ2000
  1764. Linker for iq2000 tests
  1765. CC_FOR_TARGET_IQ2000
  1766. C compiler for iq2000 tests
  1767. AS_FOR_TARGET_LM32
  1768. Assembler for lm32 tests
  1769. LD_FOR_TARGET_LM32
  1770. Linker for lm32 tests
  1771. CC_FOR_TARGET_LM32
  1772. C compiler for lm32 tests
  1773. AS_FOR_TARGET_M32C
  1774. Assembler for m32c tests
  1775. LD_FOR_TARGET_M32C
  1776. Linker for m32c tests
  1777. CC_FOR_TARGET_M32C
  1778. C compiler for m32c tests
  1779. AS_FOR_TARGET_M32R
  1780. Assembler for m32r tests
  1781. LD_FOR_TARGET_M32R
  1782. Linker for m32r tests
  1783. CC_FOR_TARGET_M32R
  1784. C compiler for m32r tests
  1785. AS_FOR_TARGET_M68HC11
  1786. Assembler for m68hc11 tests
  1787. LD_FOR_TARGET_M68HC11
  1788. Linker for m68hc11 tests
  1789. CC_FOR_TARGET_M68HC11
  1790. C compiler for m68hc11 tests
  1791. AS_FOR_TARGET_MCORE
  1792. Assembler for mcore tests
  1793. LD_FOR_TARGET_MCORE
  1794. Linker for mcore tests
  1795. CC_FOR_TARGET_MCORE
  1796. C compiler for mcore tests
  1797. AS_FOR_TARGET_MICROBLAZE
  1798. Assembler for microblaze tests
  1799. LD_FOR_TARGET_MICROBLAZE
  1800. Linker for microblaze tests
  1801. CC_FOR_TARGET_MICROBLAZE
  1802. C compiler for microblaze tests
  1803. AS_FOR_TARGET_MIPS
  1804. Assembler for mips tests
  1805. LD_FOR_TARGET_MIPS
  1806. Linker for mips tests
  1807. CC_FOR_TARGET_MIPS
  1808. C compiler for mips tests
  1809. AS_FOR_TARGET_MN10300
  1810. Assembler for mn10300 tests
  1811. LD_FOR_TARGET_MN10300
  1812. Linker for mn10300 tests
  1813. CC_FOR_TARGET_MN10300
  1814. C compiler for mn10300 tests
  1815. AS_FOR_TARGET_MOXIE
  1816. Assembler for moxie tests
  1817. LD_FOR_TARGET_MOXIE
  1818. Linker for moxie tests
  1819. CC_FOR_TARGET_MOXIE
  1820. C compiler for moxie tests
  1821. AS_FOR_TARGET_MSP430
  1822. Assembler for msp430 tests
  1823. LD_FOR_TARGET_MSP430
  1824. Linker for msp430 tests
  1825. CC_FOR_TARGET_MSP430
  1826. C compiler for msp430 tests
  1827. AS_FOR_TARGET_OR1K
  1828. Assembler for or1k tests
  1829. LD_FOR_TARGET_OR1K
  1830. Linker for or1k tests
  1831. CC_FOR_TARGET_OR1K
  1832. C compiler for or1k tests
  1833. AS_FOR_TARGET_PPC
  1834. Assembler for ppc tests
  1835. LD_FOR_TARGET_PPC
  1836. Linker for ppc tests
  1837. CC_FOR_TARGET_PPC
  1838. C compiler for ppc tests
  1839. AS_FOR_TARGET_PRU
  1840. Assembler for pru tests
  1841. LD_FOR_TARGET_PRU
  1842. Linker for pru tests
  1843. CC_FOR_TARGET_PRU
  1844. C compiler for pru tests
  1845. AS_FOR_TARGET_RISCV
  1846. Assembler for riscv tests
  1847. LD_FOR_TARGET_RISCV
  1848. Linker for riscv tests
  1849. CC_FOR_TARGET_RISCV
  1850. C compiler for riscv tests
  1851. AS_FOR_TARGET_RL78
  1852. Assembler for rl78 tests
  1853. LD_FOR_TARGET_RL78
  1854. Linker for rl78 tests
  1855. CC_FOR_TARGET_RL78
  1856. C compiler for rl78 tests
  1857. AS_FOR_TARGET_RX
  1858. Assembler for rx tests
  1859. LD_FOR_TARGET_RX
  1860. Linker for rx tests
  1861. CC_FOR_TARGET_RX
  1862. C compiler for rx tests
  1863. AS_FOR_TARGET_SH
  1864. Assembler for sh tests
  1865. LD_FOR_TARGET_SH
  1866. Linker for sh tests
  1867. CC_FOR_TARGET_SH
  1868. C compiler for sh tests
  1869. AS_FOR_TARGET_ERC32
  1870. Assembler for erc32 tests
  1871. LD_FOR_TARGET_ERC32
  1872. Linker for erc32 tests
  1873. CC_FOR_TARGET_ERC32
  1874. C compiler for erc32 tests
  1875. AS_FOR_TARGET_V850
  1876. Assembler for v850 tests
  1877. LD_FOR_TARGET_V850
  1878. Linker for v850 tests
  1879. CC_FOR_TARGET_V850
  1880. C compiler for v850 tests
  1881. AS_FOR_TARGET_EXAMPLE_SYNACOR
  1882. Assembler for example-synacor tests
  1883. LD_FOR_TARGET_EXAMPLE_SYNACOR
  1884. Linker for example-synacor tests
  1885. CC_FOR_TARGET_EXAMPLE_SYNACOR
  1886. C compiler for example-synacor tests
  1887. Use these variables to override the choices made by `configure' or to help
  1888. it to find libraries and programs with nonstandard names/locations.
  1889. Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
  1890. sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
  1891. _ACEOF
  1892. ac_status=$?
  1893. fi
  1894. if test "$ac_init_help" = "recursive"; then
  1895. # If there are subdirs, report their specific --help.
  1896. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1897. test -d "$ac_dir" ||
  1898. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1899. continue
  1900. ac_builddir=.
  1901. case "$ac_dir" in
  1902. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1903. *)
  1904. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1905. # A ".." for each directory in $ac_dir_suffix.
  1906. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1907. case $ac_top_builddir_sub in
  1908. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1909. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1910. esac ;;
  1911. esac
  1912. ac_abs_top_builddir=$ac_pwd
  1913. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1914. # for backward compatibility:
  1915. ac_top_builddir=$ac_top_build_prefix
  1916. case $srcdir in
  1917. .) # We are building in place.
  1918. ac_srcdir=.
  1919. ac_top_srcdir=$ac_top_builddir_sub
  1920. ac_abs_top_srcdir=$ac_pwd ;;
  1921. [\\/]* | ?:[\\/]* ) # Absolute name.
  1922. ac_srcdir=$srcdir$ac_dir_suffix;
  1923. ac_top_srcdir=$srcdir
  1924. ac_abs_top_srcdir=$srcdir ;;
  1925. *) # Relative name.
  1926. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1927. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1928. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1929. esac
  1930. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1931. cd "$ac_dir" || { ac_status=$?; continue; }
  1932. # Check for guested configure.
  1933. if test -f "$ac_srcdir/configure.gnu"; then
  1934. echo &&
  1935. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1936. elif test -f "$ac_srcdir/configure"; then
  1937. echo &&
  1938. $SHELL "$ac_srcdir/configure" --help=recursive
  1939. else
  1940. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1941. fi || ac_status=$?
  1942. cd "$ac_pwd" || { ac_status=$?; break; }
  1943. done
  1944. fi
  1945. test -n "$ac_init_help" && exit $ac_status
  1946. if $ac_init_version; then
  1947. cat <<\_ACEOF
  1948. sim configure 0
  1949. generated by GNU Autoconf 2.69
  1950. Copyright (C) 2012 Free Software Foundation, Inc.
  1951. This configure script is free software; the Free Software Foundation
  1952. gives unlimited permission to copy, distribute and modify it.
  1953. _ACEOF
  1954. exit
  1955. fi
  1956. ## ------------------------ ##
  1957. ## Autoconf initialization. ##
  1958. ## ------------------------ ##
  1959. # ac_fn_c_try_compile LINENO
  1960. # --------------------------
  1961. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1962. ac_fn_c_try_compile ()
  1963. {
  1964. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1965. rm -f conftest.$ac_objext
  1966. if { { ac_try="$ac_compile"
  1967. case "(($ac_try" in
  1968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1969. *) ac_try_echo=$ac_try;;
  1970. esac
  1971. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1972. $as_echo "$ac_try_echo"; } >&5
  1973. (eval "$ac_compile") 2>conftest.err
  1974. ac_status=$?
  1975. if test -s conftest.err; then
  1976. grep -v '^ *+' conftest.err >conftest.er1
  1977. cat conftest.er1 >&5
  1978. mv -f conftest.er1 conftest.err
  1979. fi
  1980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1981. test $ac_status = 0; } && {
  1982. test -z "$ac_c_werror_flag" ||
  1983. test ! -s conftest.err
  1984. } && test -s conftest.$ac_objext; then :
  1985. ac_retval=0
  1986. else
  1987. $as_echo "$as_me: failed program was:" >&5
  1988. sed 's/^/| /' conftest.$ac_ext >&5
  1989. ac_retval=1
  1990. fi
  1991. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1992. as_fn_set_status $ac_retval
  1993. } # ac_fn_c_try_compile
  1994. # ac_fn_c_try_cpp LINENO
  1995. # ----------------------
  1996. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1997. ac_fn_c_try_cpp ()
  1998. {
  1999. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2000. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2001. case "(($ac_try" in
  2002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2003. *) ac_try_echo=$ac_try;;
  2004. esac
  2005. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2006. $as_echo "$ac_try_echo"; } >&5
  2007. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2008. ac_status=$?
  2009. if test -s conftest.err; then
  2010. grep -v '^ *+' conftest.err >conftest.er1
  2011. cat conftest.er1 >&5
  2012. mv -f conftest.er1 conftest.err
  2013. fi
  2014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2015. test $ac_status = 0; } > conftest.i && {
  2016. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2017. test ! -s conftest.err
  2018. }; then :
  2019. ac_retval=0
  2020. else
  2021. $as_echo "$as_me: failed program was:" >&5
  2022. sed 's/^/| /' conftest.$ac_ext >&5
  2023. ac_retval=1
  2024. fi
  2025. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2026. as_fn_set_status $ac_retval
  2027. } # ac_fn_c_try_cpp
  2028. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2029. # -------------------------------------------------------
  2030. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2031. # the include files in INCLUDES and setting the cache variable VAR
  2032. # accordingly.
  2033. ac_fn_c_check_header_mongrel ()
  2034. {
  2035. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2036. if eval \${$3+:} false; then :
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2038. $as_echo_n "checking for $2... " >&6; }
  2039. if eval \${$3+:} false; then :
  2040. $as_echo_n "(cached) " >&6
  2041. fi
  2042. eval ac_res=\$$3
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2044. $as_echo "$ac_res" >&6; }
  2045. else
  2046. # Is the header compilable?
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2048. $as_echo_n "checking $2 usability... " >&6; }
  2049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2050. /* end confdefs.h. */
  2051. $4
  2052. #include <$2>
  2053. _ACEOF
  2054. if ac_fn_c_try_compile "$LINENO"; then :
  2055. ac_header_compiler=yes
  2056. else
  2057. ac_header_compiler=no
  2058. fi
  2059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2061. $as_echo "$ac_header_compiler" >&6; }
  2062. # Is the header present?
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2064. $as_echo_n "checking $2 presence... " >&6; }
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. #include <$2>
  2068. _ACEOF
  2069. if ac_fn_c_try_cpp "$LINENO"; then :
  2070. ac_header_preproc=yes
  2071. else
  2072. ac_header_preproc=no
  2073. fi
  2074. rm -f conftest.err conftest.i conftest.$ac_ext
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2076. $as_echo "$ac_header_preproc" >&6; }
  2077. # So? What about this header?
  2078. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2079. yes:no: )
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2081. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2083. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2084. ;;
  2085. no:yes:* )
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2087. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2089. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2091. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2093. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2095. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2096. ( $as_echo "## -------------------------------------------------------------------------------------- ##
  2097. ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
  2098. ## -------------------------------------------------------------------------------------- ##"
  2099. ) | sed "s/^/$as_me: WARNING: /" >&2
  2100. ;;
  2101. esac
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2103. $as_echo_n "checking for $2... " >&6; }
  2104. if eval \${$3+:} false; then :
  2105. $as_echo_n "(cached) " >&6
  2106. else
  2107. eval "$3=\$ac_header_compiler"
  2108. fi
  2109. eval ac_res=\$$3
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2111. $as_echo "$ac_res" >&6; }
  2112. fi
  2113. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2114. } # ac_fn_c_check_header_mongrel
  2115. # ac_fn_c_try_run LINENO
  2116. # ----------------------
  2117. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2118. # that executables *can* be run.
  2119. ac_fn_c_try_run ()
  2120. {
  2121. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2122. if { { ac_try="$ac_link"
  2123. case "(($ac_try" in
  2124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2125. *) ac_try_echo=$ac_try;;
  2126. esac
  2127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2128. $as_echo "$ac_try_echo"; } >&5
  2129. (eval "$ac_link") 2>&5
  2130. ac_status=$?
  2131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2132. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2133. { { case "(($ac_try" in
  2134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2135. *) ac_try_echo=$ac_try;;
  2136. esac
  2137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2138. $as_echo "$ac_try_echo"; } >&5
  2139. (eval "$ac_try") 2>&5
  2140. ac_status=$?
  2141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2142. test $ac_status = 0; }; }; then :
  2143. ac_retval=0
  2144. else
  2145. $as_echo "$as_me: program exited with status $ac_status" >&5
  2146. $as_echo "$as_me: failed program was:" >&5
  2147. sed 's/^/| /' conftest.$ac_ext >&5
  2148. ac_retval=$ac_status
  2149. fi
  2150. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2151. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2152. as_fn_set_status $ac_retval
  2153. } # ac_fn_c_try_run
  2154. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2155. # -------------------------------------------------------
  2156. # Tests whether HEADER exists and can be compiled using the include files in
  2157. # INCLUDES, setting the cache variable VAR accordingly.
  2158. ac_fn_c_check_header_compile ()
  2159. {
  2160. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2162. $as_echo_n "checking for $2... " >&6; }
  2163. if eval \${$3+:} false; then :
  2164. $as_echo_n "(cached) " >&6
  2165. else
  2166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2167. /* end confdefs.h. */
  2168. $4
  2169. #include <$2>
  2170. _ACEOF
  2171. if ac_fn_c_try_compile "$LINENO"; then :
  2172. eval "$3=yes"
  2173. else
  2174. eval "$3=no"
  2175. fi
  2176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2177. fi
  2178. eval ac_res=\$$3
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2180. $as_echo "$ac_res" >&6; }
  2181. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2182. } # ac_fn_c_check_header_compile
  2183. # ac_fn_c_try_link LINENO
  2184. # -----------------------
  2185. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2186. ac_fn_c_try_link ()
  2187. {
  2188. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2189. rm -f conftest.$ac_objext conftest$ac_exeext
  2190. if { { ac_try="$ac_link"
  2191. case "(($ac_try" in
  2192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2193. *) ac_try_echo=$ac_try;;
  2194. esac
  2195. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2196. $as_echo "$ac_try_echo"; } >&5
  2197. (eval "$ac_link") 2>conftest.err
  2198. ac_status=$?
  2199. if test -s conftest.err; then
  2200. grep -v '^ *+' conftest.err >conftest.er1
  2201. cat conftest.er1 >&5
  2202. mv -f conftest.er1 conftest.err
  2203. fi
  2204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2205. test $ac_status = 0; } && {
  2206. test -z "$ac_c_werror_flag" ||
  2207. test ! -s conftest.err
  2208. } && test -s conftest$ac_exeext && {
  2209. test "$cross_compiling" = yes ||
  2210. test -x conftest$ac_exeext
  2211. }; then :
  2212. ac_retval=0
  2213. else
  2214. $as_echo "$as_me: failed program was:" >&5
  2215. sed 's/^/| /' conftest.$ac_ext >&5
  2216. ac_retval=1
  2217. fi
  2218. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2219. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2220. # interfere with the next link command; also delete a directory that is
  2221. # left behind by Apple's compiler. We do this before executing the actions.
  2222. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2223. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2224. as_fn_set_status $ac_retval
  2225. } # ac_fn_c_try_link
  2226. # ac_fn_c_check_func LINENO FUNC VAR
  2227. # ----------------------------------
  2228. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2229. ac_fn_c_check_func ()
  2230. {
  2231. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2233. $as_echo_n "checking for $2... " >&6; }
  2234. if eval \${$3+:} false; then :
  2235. $as_echo_n "(cached) " >&6
  2236. else
  2237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2238. /* end confdefs.h. */
  2239. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2240. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2241. #define $2 innocuous_$2
  2242. /* System header to define __stub macros and hopefully few prototypes,
  2243. which can conflict with char $2 (); below.
  2244. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2245. <limits.h> exists even on freestanding compilers. */
  2246. #ifdef __STDC__
  2247. # include <limits.h>
  2248. #else
  2249. # include <assert.h>
  2250. #endif
  2251. #undef $2
  2252. /* Override any GCC internal prototype to avoid an error.
  2253. Use char because int might match the return type of a GCC
  2254. builtin and then its argument prototype would still apply. */
  2255. #ifdef __cplusplus
  2256. extern "C"
  2257. #endif
  2258. char $2 ();
  2259. /* The GNU C library defines this for functions which it implements
  2260. to always fail with ENOSYS. Some functions are actually named
  2261. something starting with __ and the normal name is an alias. */
  2262. #if defined __stub_$2 || defined __stub___$2
  2263. choke me
  2264. #endif
  2265. int
  2266. main ()
  2267. {
  2268. return $2 ();
  2269. ;
  2270. return 0;
  2271. }
  2272. _ACEOF
  2273. if ac_fn_c_try_link "$LINENO"; then :
  2274. eval "$3=yes"
  2275. else
  2276. eval "$3=no"
  2277. fi
  2278. rm -f core conftest.err conftest.$ac_objext \
  2279. conftest$ac_exeext conftest.$ac_ext
  2280. fi
  2281. eval ac_res=\$$3
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2283. $as_echo "$ac_res" >&6; }
  2284. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2285. } # ac_fn_c_check_func
  2286. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2287. # ----------------------------------------------------
  2288. # Tries to find if the field MEMBER exists in type AGGR, after including
  2289. # INCLUDES, setting cache variable VAR accordingly.
  2290. ac_fn_c_check_member ()
  2291. {
  2292. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2294. $as_echo_n "checking for $2.$3... " >&6; }
  2295. if eval \${$4+:} false; then :
  2296. $as_echo_n "(cached) " >&6
  2297. else
  2298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2299. /* end confdefs.h. */
  2300. $5
  2301. int
  2302. main ()
  2303. {
  2304. static $2 ac_aggr;
  2305. if (ac_aggr.$3)
  2306. return 0;
  2307. ;
  2308. return 0;
  2309. }
  2310. _ACEOF
  2311. if ac_fn_c_try_compile "$LINENO"; then :
  2312. eval "$4=yes"
  2313. else
  2314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2315. /* end confdefs.h. */
  2316. $5
  2317. int
  2318. main ()
  2319. {
  2320. static $2 ac_aggr;
  2321. if (sizeof ac_aggr.$3)
  2322. return 0;
  2323. ;
  2324. return 0;
  2325. }
  2326. _ACEOF
  2327. if ac_fn_c_try_compile "$LINENO"; then :
  2328. eval "$4=yes"
  2329. else
  2330. eval "$4=no"
  2331. fi
  2332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2333. fi
  2334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2335. fi
  2336. eval ac_res=\$$4
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2338. $as_echo "$ac_res" >&6; }
  2339. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2340. } # ac_fn_c_check_member
  2341. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2342. # ---------------------------------------------
  2343. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2344. # accordingly.
  2345. ac_fn_c_check_decl ()
  2346. {
  2347. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2348. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2349. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2351. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2352. if eval \${$3+:} false; then :
  2353. $as_echo_n "(cached) " >&6
  2354. else
  2355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2356. /* end confdefs.h. */
  2357. $4
  2358. int
  2359. main ()
  2360. {
  2361. #ifndef $as_decl_name
  2362. #ifdef __cplusplus
  2363. (void) $as_decl_use;
  2364. #else
  2365. (void) $as_decl_name;
  2366. #endif
  2367. #endif
  2368. ;
  2369. return 0;
  2370. }
  2371. _ACEOF
  2372. if ac_fn_c_try_compile "$LINENO"; then :
  2373. eval "$3=yes"
  2374. else
  2375. eval "$3=no"
  2376. fi
  2377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2378. fi
  2379. eval ac_res=\$$3
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2381. $as_echo "$ac_res" >&6; }
  2382. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2383. } # ac_fn_c_check_decl
  2384. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2385. # -------------------------------------------
  2386. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2387. # variable VAR accordingly.
  2388. ac_fn_c_check_type ()
  2389. {
  2390. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2392. $as_echo_n "checking for $2... " >&6; }
  2393. if eval \${$3+:} false; then :
  2394. $as_echo_n "(cached) " >&6
  2395. else
  2396. eval "$3=no"
  2397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2398. /* end confdefs.h. */
  2399. $4
  2400. int
  2401. main ()
  2402. {
  2403. if (sizeof ($2))
  2404. return 0;
  2405. ;
  2406. return 0;
  2407. }
  2408. _ACEOF
  2409. if ac_fn_c_try_compile "$LINENO"; then :
  2410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2411. /* end confdefs.h. */
  2412. $4
  2413. int
  2414. main ()
  2415. {
  2416. if (sizeof (($2)))
  2417. return 0;
  2418. ;
  2419. return 0;
  2420. }
  2421. _ACEOF
  2422. if ac_fn_c_try_compile "$LINENO"; then :
  2423. else
  2424. eval "$3=yes"
  2425. fi
  2426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2427. fi
  2428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2429. fi
  2430. eval ac_res=\$$3
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2432. $as_echo "$ac_res" >&6; }
  2433. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2434. } # ac_fn_c_check_type
  2435. cat >config.log <<_ACEOF
  2436. This file contains any messages produced by compilers while
  2437. running configure, to aid debugging if configure makes a mistake.
  2438. It was created by sim $as_me 0, which was
  2439. generated by GNU Autoconf 2.69. Invocation command line was
  2440. $ $0 $@
  2441. _ACEOF
  2442. exec 5>>config.log
  2443. {
  2444. cat <<_ASUNAME
  2445. ## --------- ##
  2446. ## Platform. ##
  2447. ## --------- ##
  2448. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2449. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2450. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2451. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2452. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2453. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2454. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2455. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2456. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2457. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2458. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2459. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2460. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2461. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2462. _ASUNAME
  2463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2464. for as_dir in $PATH
  2465. do
  2466. IFS=$as_save_IFS
  2467. test -z "$as_dir" && as_dir=.
  2468. $as_echo "PATH: $as_dir"
  2469. done
  2470. IFS=$as_save_IFS
  2471. } >&5
  2472. cat >&5 <<_ACEOF
  2473. ## ----------- ##
  2474. ## Core tests. ##
  2475. ## ----------- ##
  2476. _ACEOF
  2477. # Keep a trace of the command line.
  2478. # Strip out --no-create and --no-recursion so they do not pile up.
  2479. # Strip out --silent because we don't want to record it for future runs.
  2480. # Also quote any args containing shell meta-characters.
  2481. # Make two passes to allow for proper duplicate-argument suppression.
  2482. ac_configure_args=
  2483. ac_configure_args0=
  2484. ac_configure_args1=
  2485. ac_must_keep_next=false
  2486. for ac_pass in 1 2
  2487. do
  2488. for ac_arg
  2489. do
  2490. case $ac_arg in
  2491. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2492. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2493. | -silent | --silent | --silen | --sile | --sil)
  2494. continue ;;
  2495. *\'*)
  2496. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2497. esac
  2498. case $ac_pass in
  2499. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2500. 2)
  2501. as_fn_append ac_configure_args1 " '$ac_arg'"
  2502. if test $ac_must_keep_next = true; then
  2503. ac_must_keep_next=false # Got value, back to normal.
  2504. else
  2505. case $ac_arg in
  2506. *=* | --config-cache | -C | -disable-* | --disable-* \
  2507. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2508. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2509. | -with-* | --with-* | -without-* | --without-* | --x)
  2510. case "$ac_configure_args0 " in
  2511. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2512. esac
  2513. ;;
  2514. -* ) ac_must_keep_next=true ;;
  2515. esac
  2516. fi
  2517. as_fn_append ac_configure_args " '$ac_arg'"
  2518. ;;
  2519. esac
  2520. done
  2521. done
  2522. { ac_configure_args0=; unset ac_configure_args0;}
  2523. { ac_configure_args1=; unset ac_configure_args1;}
  2524. # When interrupted or exit'd, cleanup temporary files, and complete
  2525. # config.log. We remove comments because anyway the quotes in there
  2526. # would cause problems or look ugly.
  2527. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2528. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2529. trap 'exit_status=$?
  2530. # Save into config.log some information that might help in debugging.
  2531. {
  2532. echo
  2533. $as_echo "## ---------------- ##
  2534. ## Cache variables. ##
  2535. ## ---------------- ##"
  2536. echo
  2537. # The following way of writing the cache mishandles newlines in values,
  2538. (
  2539. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2540. eval ac_val=\$$ac_var
  2541. case $ac_val in #(
  2542. *${as_nl}*)
  2543. case $ac_var in #(
  2544. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2545. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2546. esac
  2547. case $ac_var in #(
  2548. _ | IFS | as_nl) ;; #(
  2549. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2550. *) { eval $ac_var=; unset $ac_var;} ;;
  2551. esac ;;
  2552. esac
  2553. done
  2554. (set) 2>&1 |
  2555. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2556. *${as_nl}ac_space=\ *)
  2557. sed -n \
  2558. "s/'\''/'\''\\\\'\'''\''/g;
  2559. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2560. ;; #(
  2561. *)
  2562. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2563. ;;
  2564. esac |
  2565. sort
  2566. )
  2567. echo
  2568. $as_echo "## ----------------- ##
  2569. ## Output variables. ##
  2570. ## ----------------- ##"
  2571. echo
  2572. for ac_var in $ac_subst_vars
  2573. do
  2574. eval ac_val=\$$ac_var
  2575. case $ac_val in
  2576. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2577. esac
  2578. $as_echo "$ac_var='\''$ac_val'\''"
  2579. done | sort
  2580. echo
  2581. if test -n "$ac_subst_files"; then
  2582. $as_echo "## ------------------- ##
  2583. ## File substitutions. ##
  2584. ## ------------------- ##"
  2585. echo
  2586. for ac_var in $ac_subst_files
  2587. do
  2588. eval ac_val=\$$ac_var
  2589. case $ac_val in
  2590. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2591. esac
  2592. $as_echo "$ac_var='\''$ac_val'\''"
  2593. done | sort
  2594. echo
  2595. fi
  2596. if test -s confdefs.h; then
  2597. $as_echo "## ----------- ##
  2598. ## confdefs.h. ##
  2599. ## ----------- ##"
  2600. echo
  2601. cat confdefs.h
  2602. echo
  2603. fi
  2604. test "$ac_signal" != 0 &&
  2605. $as_echo "$as_me: caught signal $ac_signal"
  2606. $as_echo "$as_me: exit $exit_status"
  2607. } >&5
  2608. rm -f core *.core core.conftest.* &&
  2609. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2610. exit $exit_status
  2611. ' 0
  2612. for ac_signal in 1 2 13 15; do
  2613. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2614. done
  2615. ac_signal=0
  2616. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2617. rm -f -r conftest* confdefs.h
  2618. $as_echo "/* confdefs.h */" > confdefs.h
  2619. # Predefined preprocessor variables.
  2620. cat >>confdefs.h <<_ACEOF
  2621. #define PACKAGE_NAME "$PACKAGE_NAME"
  2622. _ACEOF
  2623. cat >>confdefs.h <<_ACEOF
  2624. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2625. _ACEOF
  2626. cat >>confdefs.h <<_ACEOF
  2627. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2628. _ACEOF
  2629. cat >>confdefs.h <<_ACEOF
  2630. #define PACKAGE_STRING "$PACKAGE_STRING"
  2631. _ACEOF
  2632. cat >>confdefs.h <<_ACEOF
  2633. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2634. _ACEOF
  2635. cat >>confdefs.h <<_ACEOF
  2636. #define PACKAGE_URL "$PACKAGE_URL"
  2637. _ACEOF
  2638. # Let the site file select an alternate cache file if it wants to.
  2639. # Prefer an explicitly selected file to automatically selected ones.
  2640. ac_site_file1=NONE
  2641. ac_site_file2=NONE
  2642. if test -n "$CONFIG_SITE"; then
  2643. # We do not want a PATH search for config.site.
  2644. case $CONFIG_SITE in #((
  2645. -*) ac_site_file1=./$CONFIG_SITE;;
  2646. */*) ac_site_file1=$CONFIG_SITE;;
  2647. *) ac_site_file1=./$CONFIG_SITE;;
  2648. esac
  2649. elif test "x$prefix" != xNONE; then
  2650. ac_site_file1=$prefix/share/config.site
  2651. ac_site_file2=$prefix/etc/config.site
  2652. else
  2653. ac_site_file1=$ac_default_prefix/share/config.site
  2654. ac_site_file2=$ac_default_prefix/etc/config.site
  2655. fi
  2656. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2657. do
  2658. test "x$ac_site_file" = xNONE && continue
  2659. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2661. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2662. sed 's/^/| /' "$ac_site_file" >&5
  2663. . "$ac_site_file" \
  2664. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2665. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2666. as_fn_error $? "failed to load site script $ac_site_file
  2667. See \`config.log' for more details" "$LINENO" 5; }
  2668. fi
  2669. done
  2670. if test -r "$cache_file"; then
  2671. # Some versions of bash will fail to source /dev/null (special files
  2672. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2673. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2675. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2676. case $cache_file in
  2677. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2678. *) . "./$cache_file";;
  2679. esac
  2680. fi
  2681. else
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2683. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2684. >$cache_file
  2685. fi
  2686. as_fn_append ac_header_list " dlfcn.h"
  2687. as_fn_append ac_header_list " fcntl.h"
  2688. as_fn_append ac_header_list " fpu_control.h"
  2689. as_fn_append ac_header_list " termios.h"
  2690. as_fn_append ac_header_list " unistd.h"
  2691. as_fn_append ac_header_list " utime.h"
  2692. as_fn_append ac_header_list " linux/if_tun.h"
  2693. as_fn_append ac_header_list " linux/mii.h"
  2694. as_fn_append ac_header_list " linux/types.h"
  2695. as_fn_append ac_header_list " net/if.h"
  2696. as_fn_append ac_header_list " netinet/in.h"
  2697. as_fn_append ac_header_list " netinet/tcp.h"
  2698. as_fn_append ac_header_list " sys/ioctl.h"
  2699. as_fn_append ac_header_list " sys/mman.h"
  2700. as_fn_append ac_header_list " sys/mount.h"
  2701. as_fn_append ac_header_list " sys/param.h"
  2702. as_fn_append ac_header_list " sys/resource.h"
  2703. as_fn_append ac_header_list " sys/socket.h"
  2704. as_fn_append ac_header_list " sys/stat.h"
  2705. as_fn_append ac_header_list " sys/statfs.h"
  2706. as_fn_append ac_header_list " sys/termio.h"
  2707. as_fn_append ac_header_list " sys/termios.h"
  2708. as_fn_append ac_header_list " sys/types.h"
  2709. as_fn_append ac_header_list " sys/vfs.h"
  2710. as_fn_append ac_func_list " __setfpucw"
  2711. as_fn_append ac_func_list " access"
  2712. as_fn_append ac_func_list " aint"
  2713. as_fn_append ac_func_list " anint"
  2714. as_fn_append ac_func_list " cfgetispeed"
  2715. as_fn_append ac_func_list " cfgetospeed"
  2716. as_fn_append ac_func_list " cfsetispeed"
  2717. as_fn_append ac_func_list " cfsetospeed"
  2718. as_fn_append ac_func_list " chdir"
  2719. as_fn_append ac_func_list " chmod"
  2720. as_fn_append ac_func_list " dup"
  2721. as_fn_append ac_func_list " dup2"
  2722. as_fn_append ac_func_list " execv"
  2723. as_fn_append ac_func_list " execve"
  2724. as_fn_append ac_func_list " fcntl"
  2725. as_fn_append ac_func_list " fork"
  2726. as_fn_append ac_func_list " fstat"
  2727. as_fn_append ac_func_list " fstatfs"
  2728. as_fn_append ac_func_list " ftruncate"
  2729. as_fn_append ac_func_list " getdirentries"
  2730. as_fn_append ac_func_list " getegid"
  2731. as_fn_append ac_func_list " geteuid"
  2732. as_fn_append ac_func_list " getgid"
  2733. as_fn_append ac_func_list " getpid"
  2734. as_fn_append ac_func_list " getppid"
  2735. as_fn_append ac_func_list " getrusage"
  2736. as_fn_append ac_func_list " gettimeofday"
  2737. as_fn_append ac_func_list " getuid"
  2738. as_fn_append ac_func_list " ioctl"
  2739. as_fn_append ac_func_list " kill"
  2740. as_fn_append ac_func_list " link"
  2741. as_fn_append ac_func_list " lseek"
  2742. as_fn_append ac_func_list " mmap"
  2743. as_fn_append ac_func_list " munmap"
  2744. as_fn_append ac_func_list " pipe"
  2745. as_fn_append ac_func_list " posix_fallocate"
  2746. as_fn_append ac_func_list " pread"
  2747. as_fn_append ac_func_list " rmdir"
  2748. as_fn_append ac_func_list " setregid"
  2749. as_fn_append ac_func_list " setreuid"
  2750. as_fn_append ac_func_list " setgid"
  2751. as_fn_append ac_func_list " setuid"
  2752. as_fn_append ac_func_list " sigaction"
  2753. as_fn_append ac_func_list " sigprocmask"
  2754. as_fn_append ac_func_list " sqrt"
  2755. as_fn_append ac_func_list " stat"
  2756. as_fn_append ac_func_list " strsignal"
  2757. as_fn_append ac_func_list " symlink"
  2758. as_fn_append ac_func_list " tcdrain"
  2759. as_fn_append ac_func_list " tcflow"
  2760. as_fn_append ac_func_list " tcflush"
  2761. as_fn_append ac_func_list " tcgetattr"
  2762. as_fn_append ac_func_list " tcgetpgrp"
  2763. as_fn_append ac_func_list " tcsendbreak"
  2764. as_fn_append ac_func_list " tcsetattr"
  2765. as_fn_append ac_func_list " tcsetpgrp"
  2766. as_fn_append ac_func_list " time"
  2767. as_fn_append ac_func_list " truncate"
  2768. as_fn_append ac_func_list " umask"
  2769. as_fn_append ac_func_list " unlink"
  2770. as_fn_append ac_func_list " utime"
  2771. # Check that the precious variables saved in the cache have kept the same
  2772. # value.
  2773. ac_cache_corrupted=false
  2774. for ac_var in $ac_precious_vars; do
  2775. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2776. eval ac_new_set=\$ac_env_${ac_var}_set
  2777. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2778. eval ac_new_val=\$ac_env_${ac_var}_value
  2779. case $ac_old_set,$ac_new_set in
  2780. set,)
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2782. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2783. ac_cache_corrupted=: ;;
  2784. ,set)
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2786. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2787. ac_cache_corrupted=: ;;
  2788. ,);;
  2789. *)
  2790. if test "x$ac_old_val" != "x$ac_new_val"; then
  2791. # differences in whitespace do not lead to failure.
  2792. ac_old_val_w=`echo x $ac_old_val`
  2793. ac_new_val_w=`echo x $ac_new_val`
  2794. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2796. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2797. ac_cache_corrupted=:
  2798. else
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2800. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2801. eval $ac_var=\$ac_old_val
  2802. fi
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2804. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2806. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2807. fi;;
  2808. esac
  2809. # Pass precious variables to config.status.
  2810. if test "$ac_new_set" = set; then
  2811. case $ac_new_val in
  2812. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2813. *) ac_arg=$ac_var=$ac_new_val ;;
  2814. esac
  2815. case " $ac_configure_args " in
  2816. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2817. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2818. esac
  2819. fi
  2820. done
  2821. if $ac_cache_corrupted; then
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2825. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2826. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2827. fi
  2828. ## -------------------- ##
  2829. ## Main body of script. ##
  2830. ## -------------------- ##
  2831. ac_ext=c
  2832. ac_cpp='$CPP $CPPFLAGS'
  2833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2836. # Check whether --with-pkgversion was given.
  2837. if test "${with_pkgversion+set}" = set; then :
  2838. withval=$with_pkgversion; case "$withval" in
  2839. yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
  2840. no) PKGVERSION= ;;
  2841. *) PKGVERSION="($withval) " ;;
  2842. esac
  2843. else
  2844. PKGVERSION="(SIM) "
  2845. fi
  2846. cat >>confdefs.h <<_ACEOF
  2847. #define PKGVERSION "$PKGVERSION"
  2848. _ACEOF
  2849. # Check whether --with-bugurl was given.
  2850. if test "${with_bugurl+set}" = set; then :
  2851. withval=$with_bugurl; case "$withval" in
  2852. yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
  2853. no) BUGURL=
  2854. ;;
  2855. *) BUGURL="$withval"
  2856. ;;
  2857. esac
  2858. else
  2859. BUGURL="$PACKAGE_BUGREPORT"
  2860. fi
  2861. case ${BUGURL} in
  2862. "")
  2863. REPORT_BUGS_TO=
  2864. REPORT_BUGS_TEXI=
  2865. ;;
  2866. *)
  2867. REPORT_BUGS_TO="<$BUGURL>"
  2868. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  2869. ;;
  2870. esac;
  2871. cat >>confdefs.h <<_ACEOF
  2872. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  2873. _ACEOF
  2874. ac_config_headers="$ac_config_headers config.h"
  2875. ac_aux_dir=
  2876. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2877. if test -f "$ac_dir/install-sh"; then
  2878. ac_aux_dir=$ac_dir
  2879. ac_install_sh="$ac_aux_dir/install-sh -c"
  2880. break
  2881. elif test -f "$ac_dir/install.sh"; then
  2882. ac_aux_dir=$ac_dir
  2883. ac_install_sh="$ac_aux_dir/install.sh -c"
  2884. break
  2885. elif test -f "$ac_dir/shtool"; then
  2886. ac_aux_dir=$ac_dir
  2887. ac_install_sh="$ac_aux_dir/shtool install -c"
  2888. break
  2889. fi
  2890. done
  2891. if test -z "$ac_aux_dir"; then
  2892. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2893. fi
  2894. # These three variables are undocumented and unsupported,
  2895. # and are intended to be withdrawn in a future Autoconf release.
  2896. # They can cause serious problems if a builder's source tree is in a directory
  2897. # whose full name contains unusual characters.
  2898. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2899. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2900. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2901. # Make sure we can run config.sub.
  2902. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2903. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2905. $as_echo_n "checking build system type... " >&6; }
  2906. if ${ac_cv_build+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. ac_build_alias=$build_alias
  2910. test "x$ac_build_alias" = x &&
  2911. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2912. test "x$ac_build_alias" = x &&
  2913. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2914. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2915. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2916. fi
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2918. $as_echo "$ac_cv_build" >&6; }
  2919. case $ac_cv_build in
  2920. *-*-*) ;;
  2921. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2922. esac
  2923. build=$ac_cv_build
  2924. ac_save_IFS=$IFS; IFS='-'
  2925. set x $ac_cv_build
  2926. shift
  2927. build_cpu=$1
  2928. build_vendor=$2
  2929. shift; shift
  2930. # Remember, the first character of IFS is used to create $*,
  2931. # except with old shells:
  2932. build_os=$*
  2933. IFS=$ac_save_IFS
  2934. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2936. $as_echo_n "checking host system type... " >&6; }
  2937. if ${ac_cv_host+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. if test "x$host_alias" = x; then
  2941. ac_cv_host=$ac_cv_build
  2942. else
  2943. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2944. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2945. fi
  2946. fi
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2948. $as_echo "$ac_cv_host" >&6; }
  2949. case $ac_cv_host in
  2950. *-*-*) ;;
  2951. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2952. esac
  2953. host=$ac_cv_host
  2954. ac_save_IFS=$IFS; IFS='-'
  2955. set x $ac_cv_host
  2956. shift
  2957. host_cpu=$1
  2958. host_vendor=$2
  2959. shift; shift
  2960. # Remember, the first character of IFS is used to create $*,
  2961. # except with old shells:
  2962. host_os=$*
  2963. IFS=$ac_save_IFS
  2964. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2966. $as_echo_n "checking target system type... " >&6; }
  2967. if ${ac_cv_target+:} false; then :
  2968. $as_echo_n "(cached) " >&6
  2969. else
  2970. if test "x$target_alias" = x; then
  2971. ac_cv_target=$ac_cv_host
  2972. else
  2973. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2974. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2975. fi
  2976. fi
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2978. $as_echo "$ac_cv_target" >&6; }
  2979. case $ac_cv_target in
  2980. *-*-*) ;;
  2981. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2982. esac
  2983. target=$ac_cv_target
  2984. ac_save_IFS=$IFS; IFS='-'
  2985. set x $ac_cv_target
  2986. shift
  2987. target_cpu=$1
  2988. target_vendor=$2
  2989. shift; shift
  2990. # Remember, the first character of IFS is used to create $*,
  2991. # except with old shells:
  2992. target_os=$*
  2993. IFS=$ac_save_IFS
  2994. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2995. # The aliases save the names the user supplied, while $host etc.
  2996. # will get canonicalized.
  2997. test -n "$target_alias" &&
  2998. test "$program_prefix$program_suffix$program_transform_name" = \
  2999. NONENONEs,x,x, &&
  3000. program_prefix=${target_alias}-
  3001. # Expand $ac_aux_dir to an absolute path.
  3002. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3003. ac_ext=c
  3004. ac_cpp='$CPP $CPPFLAGS'
  3005. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3006. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3007. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3008. if test -n "$ac_tool_prefix"; then
  3009. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3010. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3012. $as_echo_n "checking for $ac_word... " >&6; }
  3013. if ${ac_cv_prog_CC+:} false; then :
  3014. $as_echo_n "(cached) " >&6
  3015. else
  3016. if test -n "$CC"; then
  3017. ac_cv_prog_CC="$CC" # Let the user override the test.
  3018. else
  3019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3020. for as_dir in $PATH
  3021. do
  3022. IFS=$as_save_IFS
  3023. test -z "$as_dir" && as_dir=.
  3024. for ac_exec_ext in '' $ac_executable_extensions; do
  3025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3026. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3028. break 2
  3029. fi
  3030. done
  3031. done
  3032. IFS=$as_save_IFS
  3033. fi
  3034. fi
  3035. CC=$ac_cv_prog_CC
  3036. if test -n "$CC"; then
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3038. $as_echo "$CC" >&6; }
  3039. else
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3041. $as_echo "no" >&6; }
  3042. fi
  3043. fi
  3044. if test -z "$ac_cv_prog_CC"; then
  3045. ac_ct_CC=$CC
  3046. # Extract the first word of "gcc", so it can be a program name with args.
  3047. set dummy gcc; ac_word=$2
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3049. $as_echo_n "checking for $ac_word... " >&6; }
  3050. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3051. $as_echo_n "(cached) " >&6
  3052. else
  3053. if test -n "$ac_ct_CC"; then
  3054. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3055. else
  3056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3057. for as_dir in $PATH
  3058. do
  3059. IFS=$as_save_IFS
  3060. test -z "$as_dir" && as_dir=.
  3061. for ac_exec_ext in '' $ac_executable_extensions; do
  3062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3063. ac_cv_prog_ac_ct_CC="gcc"
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3065. break 2
  3066. fi
  3067. done
  3068. done
  3069. IFS=$as_save_IFS
  3070. fi
  3071. fi
  3072. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3073. if test -n "$ac_ct_CC"; then
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3075. $as_echo "$ac_ct_CC" >&6; }
  3076. else
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3078. $as_echo "no" >&6; }
  3079. fi
  3080. if test "x$ac_ct_CC" = x; then
  3081. CC=""
  3082. else
  3083. case $cross_compiling:$ac_tool_warned in
  3084. yes:)
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3086. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3087. ac_tool_warned=yes ;;
  3088. esac
  3089. CC=$ac_ct_CC
  3090. fi
  3091. else
  3092. CC="$ac_cv_prog_CC"
  3093. fi
  3094. if test -z "$CC"; then
  3095. if test -n "$ac_tool_prefix"; then
  3096. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3097. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3099. $as_echo_n "checking for $ac_word... " >&6; }
  3100. if ${ac_cv_prog_CC+:} false; then :
  3101. $as_echo_n "(cached) " >&6
  3102. else
  3103. if test -n "$CC"; then
  3104. ac_cv_prog_CC="$CC" # Let the user override the test.
  3105. else
  3106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3107. for as_dir in $PATH
  3108. do
  3109. IFS=$as_save_IFS
  3110. test -z "$as_dir" && as_dir=.
  3111. for ac_exec_ext in '' $ac_executable_extensions; do
  3112. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3113. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3115. break 2
  3116. fi
  3117. done
  3118. done
  3119. IFS=$as_save_IFS
  3120. fi
  3121. fi
  3122. CC=$ac_cv_prog_CC
  3123. if test -n "$CC"; then
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3125. $as_echo "$CC" >&6; }
  3126. else
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3128. $as_echo "no" >&6; }
  3129. fi
  3130. fi
  3131. fi
  3132. if test -z "$CC"; then
  3133. # Extract the first word of "cc", so it can be a program name with args.
  3134. set dummy cc; ac_word=$2
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3136. $as_echo_n "checking for $ac_word... " >&6; }
  3137. if ${ac_cv_prog_CC+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. if test -n "$CC"; then
  3141. ac_cv_prog_CC="$CC" # Let the user override the test.
  3142. else
  3143. ac_prog_rejected=no
  3144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3145. for as_dir in $PATH
  3146. do
  3147. IFS=$as_save_IFS
  3148. test -z "$as_dir" && as_dir=.
  3149. for ac_exec_ext in '' $ac_executable_extensions; do
  3150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3151. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3152. ac_prog_rejected=yes
  3153. continue
  3154. fi
  3155. ac_cv_prog_CC="cc"
  3156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3157. break 2
  3158. fi
  3159. done
  3160. done
  3161. IFS=$as_save_IFS
  3162. if test $ac_prog_rejected = yes; then
  3163. # We found a bogon in the path, so make sure we never use it.
  3164. set dummy $ac_cv_prog_CC
  3165. shift
  3166. if test $# != 0; then
  3167. # We chose a different compiler from the bogus one.
  3168. # However, it has the same basename, so the bogon will be chosen
  3169. # first if we set CC to just the basename; use the full file name.
  3170. shift
  3171. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3172. fi
  3173. fi
  3174. fi
  3175. fi
  3176. CC=$ac_cv_prog_CC
  3177. if test -n "$CC"; then
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3179. $as_echo "$CC" >&6; }
  3180. else
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3182. $as_echo "no" >&6; }
  3183. fi
  3184. fi
  3185. if test -z "$CC"; then
  3186. if test -n "$ac_tool_prefix"; then
  3187. for ac_prog in cl.exe
  3188. do
  3189. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3190. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3192. $as_echo_n "checking for $ac_word... " >&6; }
  3193. if ${ac_cv_prog_CC+:} false; then :
  3194. $as_echo_n "(cached) " >&6
  3195. else
  3196. if test -n "$CC"; then
  3197. ac_cv_prog_CC="$CC" # Let the user override the test.
  3198. else
  3199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3200. for as_dir in $PATH
  3201. do
  3202. IFS=$as_save_IFS
  3203. test -z "$as_dir" && as_dir=.
  3204. for ac_exec_ext in '' $ac_executable_extensions; do
  3205. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3206. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3207. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3208. break 2
  3209. fi
  3210. done
  3211. done
  3212. IFS=$as_save_IFS
  3213. fi
  3214. fi
  3215. CC=$ac_cv_prog_CC
  3216. if test -n "$CC"; then
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3218. $as_echo "$CC" >&6; }
  3219. else
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3221. $as_echo "no" >&6; }
  3222. fi
  3223. test -n "$CC" && break
  3224. done
  3225. fi
  3226. if test -z "$CC"; then
  3227. ac_ct_CC=$CC
  3228. for ac_prog in cl.exe
  3229. do
  3230. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3231. set dummy $ac_prog; ac_word=$2
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3233. $as_echo_n "checking for $ac_word... " >&6; }
  3234. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3235. $as_echo_n "(cached) " >&6
  3236. else
  3237. if test -n "$ac_ct_CC"; then
  3238. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3239. else
  3240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3241. for as_dir in $PATH
  3242. do
  3243. IFS=$as_save_IFS
  3244. test -z "$as_dir" && as_dir=.
  3245. for ac_exec_ext in '' $ac_executable_extensions; do
  3246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3247. ac_cv_prog_ac_ct_CC="$ac_prog"
  3248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3249. break 2
  3250. fi
  3251. done
  3252. done
  3253. IFS=$as_save_IFS
  3254. fi
  3255. fi
  3256. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3257. if test -n "$ac_ct_CC"; then
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3259. $as_echo "$ac_ct_CC" >&6; }
  3260. else
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3262. $as_echo "no" >&6; }
  3263. fi
  3264. test -n "$ac_ct_CC" && break
  3265. done
  3266. if test "x$ac_ct_CC" = x; then
  3267. CC=""
  3268. else
  3269. case $cross_compiling:$ac_tool_warned in
  3270. yes:)
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3272. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3273. ac_tool_warned=yes ;;
  3274. esac
  3275. CC=$ac_ct_CC
  3276. fi
  3277. fi
  3278. fi
  3279. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3281. as_fn_error $? "no acceptable C compiler found in \$PATH
  3282. See \`config.log' for more details" "$LINENO" 5; }
  3283. # Provide some information about the compiler.
  3284. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3285. set X $ac_compile
  3286. ac_compiler=$2
  3287. for ac_option in --version -v -V -qversion; do
  3288. { { ac_try="$ac_compiler $ac_option >&5"
  3289. case "(($ac_try" in
  3290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3291. *) ac_try_echo=$ac_try;;
  3292. esac
  3293. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3294. $as_echo "$ac_try_echo"; } >&5
  3295. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3296. ac_status=$?
  3297. if test -s conftest.err; then
  3298. sed '10a\
  3299. ... rest of stderr output deleted ...
  3300. 10q' conftest.err >conftest.er1
  3301. cat conftest.er1 >&5
  3302. fi
  3303. rm -f conftest.er1 conftest.err
  3304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3305. test $ac_status = 0; }
  3306. done
  3307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3308. /* end confdefs.h. */
  3309. int
  3310. main ()
  3311. {
  3312. ;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. ac_clean_files_save=$ac_clean_files
  3317. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3318. # Try to create an executable without -o first, disregard a.out.
  3319. # It will help us diagnose broken compilers, and finding out an intuition
  3320. # of exeext.
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3322. $as_echo_n "checking whether the C compiler works... " >&6; }
  3323. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3324. # The possible output files:
  3325. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3326. ac_rmfiles=
  3327. for ac_file in $ac_files
  3328. do
  3329. case $ac_file in
  3330. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3331. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3332. esac
  3333. done
  3334. rm -f $ac_rmfiles
  3335. if { { ac_try="$ac_link_default"
  3336. case "(($ac_try" in
  3337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3338. *) ac_try_echo=$ac_try;;
  3339. esac
  3340. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3341. $as_echo "$ac_try_echo"; } >&5
  3342. (eval "$ac_link_default") 2>&5
  3343. ac_status=$?
  3344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3345. test $ac_status = 0; }; then :
  3346. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3347. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3348. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3349. # so that the user can short-circuit this test for compilers unknown to
  3350. # Autoconf.
  3351. for ac_file in $ac_files ''
  3352. do
  3353. test -f "$ac_file" || continue
  3354. case $ac_file in
  3355. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3356. ;;
  3357. [ab].out )
  3358. # We found the default executable, but exeext='' is most
  3359. # certainly right.
  3360. break;;
  3361. *.* )
  3362. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3363. then :; else
  3364. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3365. fi
  3366. # We set ac_cv_exeext here because the later test for it is not
  3367. # safe: cross compilers may not add the suffix if given an `-o'
  3368. # argument, so we may need to know it at that point already.
  3369. # Even if this section looks crufty: it has the advantage of
  3370. # actually working.
  3371. break;;
  3372. * )
  3373. break;;
  3374. esac
  3375. done
  3376. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3377. else
  3378. ac_file=''
  3379. fi
  3380. if test -z "$ac_file"; then :
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3382. $as_echo "no" >&6; }
  3383. $as_echo "$as_me: failed program was:" >&5
  3384. sed 's/^/| /' conftest.$ac_ext >&5
  3385. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3387. as_fn_error 77 "C compiler cannot create executables
  3388. See \`config.log' for more details" "$LINENO" 5; }
  3389. else
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3391. $as_echo "yes" >&6; }
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3394. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3396. $as_echo "$ac_file" >&6; }
  3397. ac_exeext=$ac_cv_exeext
  3398. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3399. ac_clean_files=$ac_clean_files_save
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3401. $as_echo_n "checking for suffix of executables... " >&6; }
  3402. if { { ac_try="$ac_link"
  3403. case "(($ac_try" in
  3404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3405. *) ac_try_echo=$ac_try;;
  3406. esac
  3407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3408. $as_echo "$ac_try_echo"; } >&5
  3409. (eval "$ac_link") 2>&5
  3410. ac_status=$?
  3411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3412. test $ac_status = 0; }; then :
  3413. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3414. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3415. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3416. # `rm'.
  3417. for ac_file in conftest.exe conftest conftest.*; do
  3418. test -f "$ac_file" || continue
  3419. case $ac_file in
  3420. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3421. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3422. break;;
  3423. * ) break;;
  3424. esac
  3425. done
  3426. else
  3427. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3428. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3429. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3430. See \`config.log' for more details" "$LINENO" 5; }
  3431. fi
  3432. rm -f conftest conftest$ac_cv_exeext
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3434. $as_echo "$ac_cv_exeext" >&6; }
  3435. rm -f conftest.$ac_ext
  3436. EXEEXT=$ac_cv_exeext
  3437. ac_exeext=$EXEEXT
  3438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3439. /* end confdefs.h. */
  3440. #include <stdio.h>
  3441. int
  3442. main ()
  3443. {
  3444. FILE *f = fopen ("conftest.out", "w");
  3445. return ferror (f) || fclose (f) != 0;
  3446. ;
  3447. return 0;
  3448. }
  3449. _ACEOF
  3450. ac_clean_files="$ac_clean_files conftest.out"
  3451. # Check that the compiler produces executables we can run. If not, either
  3452. # the compiler is broken, or we cross compile.
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3454. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3455. if test "$cross_compiling" != yes; then
  3456. { { ac_try="$ac_link"
  3457. case "(($ac_try" in
  3458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3459. *) ac_try_echo=$ac_try;;
  3460. esac
  3461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3462. $as_echo "$ac_try_echo"; } >&5
  3463. (eval "$ac_link") 2>&5
  3464. ac_status=$?
  3465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3466. test $ac_status = 0; }
  3467. if { ac_try='./conftest$ac_cv_exeext'
  3468. { { case "(($ac_try" in
  3469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3470. *) ac_try_echo=$ac_try;;
  3471. esac
  3472. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3473. $as_echo "$ac_try_echo"; } >&5
  3474. (eval "$ac_try") 2>&5
  3475. ac_status=$?
  3476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3477. test $ac_status = 0; }; }; then
  3478. cross_compiling=no
  3479. else
  3480. if test "$cross_compiling" = maybe; then
  3481. cross_compiling=yes
  3482. else
  3483. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3484. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3485. as_fn_error $? "cannot run C compiled programs.
  3486. If you meant to cross compile, use \`--host'.
  3487. See \`config.log' for more details" "$LINENO" 5; }
  3488. fi
  3489. fi
  3490. fi
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3492. $as_echo "$cross_compiling" >&6; }
  3493. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3494. ac_clean_files=$ac_clean_files_save
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3496. $as_echo_n "checking for suffix of object files... " >&6; }
  3497. if ${ac_cv_objext+:} false; then :
  3498. $as_echo_n "(cached) " >&6
  3499. else
  3500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3501. /* end confdefs.h. */
  3502. int
  3503. main ()
  3504. {
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. rm -f conftest.o conftest.obj
  3510. if { { ac_try="$ac_compile"
  3511. case "(($ac_try" in
  3512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3513. *) ac_try_echo=$ac_try;;
  3514. esac
  3515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3516. $as_echo "$ac_try_echo"; } >&5
  3517. (eval "$ac_compile") 2>&5
  3518. ac_status=$?
  3519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3520. test $ac_status = 0; }; then :
  3521. for ac_file in conftest.o conftest.obj conftest.*; do
  3522. test -f "$ac_file" || continue;
  3523. case $ac_file in
  3524. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3525. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3526. break;;
  3527. esac
  3528. done
  3529. else
  3530. $as_echo "$as_me: failed program was:" >&5
  3531. sed 's/^/| /' conftest.$ac_ext >&5
  3532. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3534. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3535. See \`config.log' for more details" "$LINENO" 5; }
  3536. fi
  3537. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3540. $as_echo "$ac_cv_objext" >&6; }
  3541. OBJEXT=$ac_cv_objext
  3542. ac_objext=$OBJEXT
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3544. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3545. if ${ac_cv_c_compiler_gnu+:} false; then :
  3546. $as_echo_n "(cached) " >&6
  3547. else
  3548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3549. /* end confdefs.h. */
  3550. int
  3551. main ()
  3552. {
  3553. #ifndef __GNUC__
  3554. choke me
  3555. #endif
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. if ac_fn_c_try_compile "$LINENO"; then :
  3561. ac_compiler_gnu=yes
  3562. else
  3563. ac_compiler_gnu=no
  3564. fi
  3565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3566. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3567. fi
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3569. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3570. if test $ac_compiler_gnu = yes; then
  3571. GCC=yes
  3572. else
  3573. GCC=
  3574. fi
  3575. ac_test_CFLAGS=${CFLAGS+set}
  3576. ac_save_CFLAGS=$CFLAGS
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3578. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3579. if ${ac_cv_prog_cc_g+:} false; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. ac_save_c_werror_flag=$ac_c_werror_flag
  3583. ac_c_werror_flag=yes
  3584. ac_cv_prog_cc_g=no
  3585. CFLAGS="-g"
  3586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3587. /* end confdefs.h. */
  3588. int
  3589. main ()
  3590. {
  3591. ;
  3592. return 0;
  3593. }
  3594. _ACEOF
  3595. if ac_fn_c_try_compile "$LINENO"; then :
  3596. ac_cv_prog_cc_g=yes
  3597. else
  3598. CFLAGS=""
  3599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3600. /* end confdefs.h. */
  3601. int
  3602. main ()
  3603. {
  3604. ;
  3605. return 0;
  3606. }
  3607. _ACEOF
  3608. if ac_fn_c_try_compile "$LINENO"; then :
  3609. else
  3610. ac_c_werror_flag=$ac_save_c_werror_flag
  3611. CFLAGS="-g"
  3612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3613. /* end confdefs.h. */
  3614. int
  3615. main ()
  3616. {
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. if ac_fn_c_try_compile "$LINENO"; then :
  3622. ac_cv_prog_cc_g=yes
  3623. fi
  3624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3625. fi
  3626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3627. fi
  3628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3629. ac_c_werror_flag=$ac_save_c_werror_flag
  3630. fi
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3632. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3633. if test "$ac_test_CFLAGS" = set; then
  3634. CFLAGS=$ac_save_CFLAGS
  3635. elif test $ac_cv_prog_cc_g = yes; then
  3636. if test "$GCC" = yes; then
  3637. CFLAGS="-g -O2"
  3638. else
  3639. CFLAGS="-g"
  3640. fi
  3641. else
  3642. if test "$GCC" = yes; then
  3643. CFLAGS="-O2"
  3644. else
  3645. CFLAGS=
  3646. fi
  3647. fi
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3649. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3650. if ${ac_cv_prog_cc_c89+:} false; then :
  3651. $as_echo_n "(cached) " >&6
  3652. else
  3653. ac_cv_prog_cc_c89=no
  3654. ac_save_CC=$CC
  3655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3656. /* end confdefs.h. */
  3657. #include <stdarg.h>
  3658. #include <stdio.h>
  3659. struct stat;
  3660. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3661. struct buf { int x; };
  3662. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3663. static char *e (p, i)
  3664. char **p;
  3665. int i;
  3666. {
  3667. return p[i];
  3668. }
  3669. static char *f (char * (*g) (char **, int), char **p, ...)
  3670. {
  3671. char *s;
  3672. va_list v;
  3673. va_start (v,p);
  3674. s = g (p, va_arg (v,int));
  3675. va_end (v);
  3676. return s;
  3677. }
  3678. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3679. function prototypes and stuff, but not '\xHH' hex character constants.
  3680. These don't provoke an error unfortunately, instead are silently treated
  3681. as 'x'. The following induces an error, until -std is added to get
  3682. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3683. array size at least. It's necessary to write '\x00'==0 to get something
  3684. that's true only with -std. */
  3685. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3686. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3687. inside strings and character constants. */
  3688. #define FOO(x) 'x'
  3689. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3690. int test (int i, double x);
  3691. struct s1 {int (*f) (int a);};
  3692. struct s2 {int (*f) (double a);};
  3693. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3694. int argc;
  3695. char **argv;
  3696. int
  3697. main ()
  3698. {
  3699. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3700. ;
  3701. return 0;
  3702. }
  3703. _ACEOF
  3704. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3705. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3706. do
  3707. CC="$ac_save_CC $ac_arg"
  3708. if ac_fn_c_try_compile "$LINENO"; then :
  3709. ac_cv_prog_cc_c89=$ac_arg
  3710. fi
  3711. rm -f core conftest.err conftest.$ac_objext
  3712. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3713. done
  3714. rm -f conftest.$ac_ext
  3715. CC=$ac_save_CC
  3716. fi
  3717. # AC_CACHE_VAL
  3718. case "x$ac_cv_prog_cc_c89" in
  3719. x)
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3721. $as_echo "none needed" >&6; } ;;
  3722. xno)
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3724. $as_echo "unsupported" >&6; } ;;
  3725. *)
  3726. CC="$CC $ac_cv_prog_cc_c89"
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3728. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3729. esac
  3730. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3731. fi
  3732. ac_ext=c
  3733. ac_cpp='$CPP $CPPFLAGS'
  3734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3737. ac_ext=c
  3738. ac_cpp='$CPP $CPPFLAGS'
  3739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3743. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3744. if ${am_cv_prog_cc_c_o+:} false; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3748. /* end confdefs.h. */
  3749. int
  3750. main ()
  3751. {
  3752. ;
  3753. return 0;
  3754. }
  3755. _ACEOF
  3756. # Make sure it works both with $CC and with simple cc.
  3757. # Following AC_PROG_CC_C_O, we do the test twice because some
  3758. # compilers refuse to overwrite an existing .o file with -o,
  3759. # though they will create one.
  3760. am_cv_prog_cc_c_o=yes
  3761. for am_i in 1 2; do
  3762. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3763. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3764. ac_status=$?
  3765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3766. (exit $ac_status); } \
  3767. && test -f conftest2.$ac_objext; then
  3768. : OK
  3769. else
  3770. am_cv_prog_cc_c_o=no
  3771. break
  3772. fi
  3773. done
  3774. rm -f core conftest*
  3775. unset am_i
  3776. fi
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3778. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3779. if test "$am_cv_prog_cc_c_o" != yes; then
  3780. # Losing compiler, so override with the script.
  3781. # FIXME: It is wrong to rewrite CC.
  3782. # But if we don't then we get into trouble of one sort or another.
  3783. # A longer-term fix would be to have automake use am__CC in this case,
  3784. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3785. CC="$am_aux_dir/compile $CC"
  3786. fi
  3787. ac_ext=c
  3788. ac_cpp='$CPP $CPPFLAGS'
  3789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3792. ac_ext=c
  3793. ac_cpp='$CPP $CPPFLAGS'
  3794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3798. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3799. # On Suns, sometimes $CPP names a directory.
  3800. if test -n "$CPP" && test -d "$CPP"; then
  3801. CPP=
  3802. fi
  3803. if test -z "$CPP"; then
  3804. if ${ac_cv_prog_CPP+:} false; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. # Double quotes because CPP needs to be expanded
  3808. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3809. do
  3810. ac_preproc_ok=false
  3811. for ac_c_preproc_warn_flag in '' yes
  3812. do
  3813. # Use a header file that comes with gcc, so configuring glibc
  3814. # with a fresh cross-compiler works.
  3815. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3816. # <limits.h> exists even on freestanding compilers.
  3817. # On the NeXT, cc -E runs the code through the compiler's parser,
  3818. # not just through cpp. "Syntax error" is here to catch this case.
  3819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3820. /* end confdefs.h. */
  3821. #ifdef __STDC__
  3822. # include <limits.h>
  3823. #else
  3824. # include <assert.h>
  3825. #endif
  3826. Syntax error
  3827. _ACEOF
  3828. if ac_fn_c_try_cpp "$LINENO"; then :
  3829. else
  3830. # Broken: fails on valid input.
  3831. continue
  3832. fi
  3833. rm -f conftest.err conftest.i conftest.$ac_ext
  3834. # OK, works on sane cases. Now check whether nonexistent headers
  3835. # can be detected and how.
  3836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3837. /* end confdefs.h. */
  3838. #include <ac_nonexistent.h>
  3839. _ACEOF
  3840. if ac_fn_c_try_cpp "$LINENO"; then :
  3841. # Broken: success on invalid input.
  3842. continue
  3843. else
  3844. # Passes both tests.
  3845. ac_preproc_ok=:
  3846. break
  3847. fi
  3848. rm -f conftest.err conftest.i conftest.$ac_ext
  3849. done
  3850. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3851. rm -f conftest.i conftest.err conftest.$ac_ext
  3852. if $ac_preproc_ok; then :
  3853. break
  3854. fi
  3855. done
  3856. ac_cv_prog_CPP=$CPP
  3857. fi
  3858. CPP=$ac_cv_prog_CPP
  3859. else
  3860. ac_cv_prog_CPP=$CPP
  3861. fi
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3863. $as_echo "$CPP" >&6; }
  3864. ac_preproc_ok=false
  3865. for ac_c_preproc_warn_flag in '' yes
  3866. do
  3867. # Use a header file that comes with gcc, so configuring glibc
  3868. # with a fresh cross-compiler works.
  3869. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3870. # <limits.h> exists even on freestanding compilers.
  3871. # On the NeXT, cc -E runs the code through the compiler's parser,
  3872. # not just through cpp. "Syntax error" is here to catch this case.
  3873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3874. /* end confdefs.h. */
  3875. #ifdef __STDC__
  3876. # include <limits.h>
  3877. #else
  3878. # include <assert.h>
  3879. #endif
  3880. Syntax error
  3881. _ACEOF
  3882. if ac_fn_c_try_cpp "$LINENO"; then :
  3883. else
  3884. # Broken: fails on valid input.
  3885. continue
  3886. fi
  3887. rm -f conftest.err conftest.i conftest.$ac_ext
  3888. # OK, works on sane cases. Now check whether nonexistent headers
  3889. # can be detected and how.
  3890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3891. /* end confdefs.h. */
  3892. #include <ac_nonexistent.h>
  3893. _ACEOF
  3894. if ac_fn_c_try_cpp "$LINENO"; then :
  3895. # Broken: success on invalid input.
  3896. continue
  3897. else
  3898. # Passes both tests.
  3899. ac_preproc_ok=:
  3900. break
  3901. fi
  3902. rm -f conftest.err conftest.i conftest.$ac_ext
  3903. done
  3904. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3905. rm -f conftest.i conftest.err conftest.$ac_ext
  3906. if $ac_preproc_ok; then :
  3907. else
  3908. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3909. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3910. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3911. See \`config.log' for more details" "$LINENO" 5; }
  3912. fi
  3913. ac_ext=c
  3914. ac_cpp='$CPP $CPPFLAGS'
  3915. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3916. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3917. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3919. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3920. if ${ac_cv_path_GREP+:} false; then :
  3921. $as_echo_n "(cached) " >&6
  3922. else
  3923. if test -z "$GREP"; then
  3924. ac_path_GREP_found=false
  3925. # Loop through the user's path and test for each of PROGNAME-LIST
  3926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3927. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3928. do
  3929. IFS=$as_save_IFS
  3930. test -z "$as_dir" && as_dir=.
  3931. for ac_prog in grep ggrep; do
  3932. for ac_exec_ext in '' $ac_executable_extensions; do
  3933. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3934. as_fn_executable_p "$ac_path_GREP" || continue
  3935. # Check for GNU ac_path_GREP and select it if it is found.
  3936. # Check for GNU $ac_path_GREP
  3937. case `"$ac_path_GREP" --version 2>&1` in
  3938. *GNU*)
  3939. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3940. *)
  3941. ac_count=0
  3942. $as_echo_n 0123456789 >"conftest.in"
  3943. while :
  3944. do
  3945. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3946. mv "conftest.tmp" "conftest.in"
  3947. cp "conftest.in" "conftest.nl"
  3948. $as_echo 'GREP' >> "conftest.nl"
  3949. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3950. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3951. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3952. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3953. # Best one so far, save it but keep looking for a better one
  3954. ac_cv_path_GREP="$ac_path_GREP"
  3955. ac_path_GREP_max=$ac_count
  3956. fi
  3957. # 10*(2^10) chars as input seems more than enough
  3958. test $ac_count -gt 10 && break
  3959. done
  3960. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3961. esac
  3962. $ac_path_GREP_found && break 3
  3963. done
  3964. done
  3965. done
  3966. IFS=$as_save_IFS
  3967. if test -z "$ac_cv_path_GREP"; then
  3968. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3969. fi
  3970. else
  3971. ac_cv_path_GREP=$GREP
  3972. fi
  3973. fi
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3975. $as_echo "$ac_cv_path_GREP" >&6; }
  3976. GREP="$ac_cv_path_GREP"
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3978. $as_echo_n "checking for egrep... " >&6; }
  3979. if ${ac_cv_path_EGREP+:} false; then :
  3980. $as_echo_n "(cached) " >&6
  3981. else
  3982. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3983. then ac_cv_path_EGREP="$GREP -E"
  3984. else
  3985. if test -z "$EGREP"; then
  3986. ac_path_EGREP_found=false
  3987. # Loop through the user's path and test for each of PROGNAME-LIST
  3988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3989. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3990. do
  3991. IFS=$as_save_IFS
  3992. test -z "$as_dir" && as_dir=.
  3993. for ac_prog in egrep; do
  3994. for ac_exec_ext in '' $ac_executable_extensions; do
  3995. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3996. as_fn_executable_p "$ac_path_EGREP" || continue
  3997. # Check for GNU ac_path_EGREP and select it if it is found.
  3998. # Check for GNU $ac_path_EGREP
  3999. case `"$ac_path_EGREP" --version 2>&1` in
  4000. *GNU*)
  4001. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4002. *)
  4003. ac_count=0
  4004. $as_echo_n 0123456789 >"conftest.in"
  4005. while :
  4006. do
  4007. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4008. mv "conftest.tmp" "conftest.in"
  4009. cp "conftest.in" "conftest.nl"
  4010. $as_echo 'EGREP' >> "conftest.nl"
  4011. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4012. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4013. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4014. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4015. # Best one so far, save it but keep looking for a better one
  4016. ac_cv_path_EGREP="$ac_path_EGREP"
  4017. ac_path_EGREP_max=$ac_count
  4018. fi
  4019. # 10*(2^10) chars as input seems more than enough
  4020. test $ac_count -gt 10 && break
  4021. done
  4022. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4023. esac
  4024. $ac_path_EGREP_found && break 3
  4025. done
  4026. done
  4027. done
  4028. IFS=$as_save_IFS
  4029. if test -z "$ac_cv_path_EGREP"; then
  4030. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4031. fi
  4032. else
  4033. ac_cv_path_EGREP=$EGREP
  4034. fi
  4035. fi
  4036. fi
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4038. $as_echo "$ac_cv_path_EGREP" >&6; }
  4039. EGREP="$ac_cv_path_EGREP"
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4041. $as_echo_n "checking for ANSI C header files... " >&6; }
  4042. if ${ac_cv_header_stdc+:} false; then :
  4043. $as_echo_n "(cached) " >&6
  4044. else
  4045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4046. /* end confdefs.h. */
  4047. #include <stdlib.h>
  4048. #include <stdarg.h>
  4049. #include <string.h>
  4050. #include <float.h>
  4051. int
  4052. main ()
  4053. {
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. if ac_fn_c_try_compile "$LINENO"; then :
  4059. ac_cv_header_stdc=yes
  4060. else
  4061. ac_cv_header_stdc=no
  4062. fi
  4063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4064. if test $ac_cv_header_stdc = yes; then
  4065. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4067. /* end confdefs.h. */
  4068. #include <string.h>
  4069. _ACEOF
  4070. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4071. $EGREP "memchr" >/dev/null 2>&1; then :
  4072. else
  4073. ac_cv_header_stdc=no
  4074. fi
  4075. rm -f conftest*
  4076. fi
  4077. if test $ac_cv_header_stdc = yes; then
  4078. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4080. /* end confdefs.h. */
  4081. #include <stdlib.h>
  4082. _ACEOF
  4083. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4084. $EGREP "free" >/dev/null 2>&1; then :
  4085. else
  4086. ac_cv_header_stdc=no
  4087. fi
  4088. rm -f conftest*
  4089. fi
  4090. if test $ac_cv_header_stdc = yes; then
  4091. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4092. if test "$cross_compiling" = yes; then :
  4093. :
  4094. else
  4095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4096. /* end confdefs.h. */
  4097. #include <ctype.h>
  4098. #include <stdlib.h>
  4099. #if ((' ' & 0x0FF) == 0x020)
  4100. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4101. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4102. #else
  4103. # define ISLOWER(c) \
  4104. (('a' <= (c) && (c) <= 'i') \
  4105. || ('j' <= (c) && (c) <= 'r') \
  4106. || ('s' <= (c) && (c) <= 'z'))
  4107. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4108. #endif
  4109. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4110. int
  4111. main ()
  4112. {
  4113. int i;
  4114. for (i = 0; i < 256; i++)
  4115. if (XOR (islower (i), ISLOWER (i))
  4116. || toupper (i) != TOUPPER (i))
  4117. return 2;
  4118. return 0;
  4119. }
  4120. _ACEOF
  4121. if ac_fn_c_try_run "$LINENO"; then :
  4122. else
  4123. ac_cv_header_stdc=no
  4124. fi
  4125. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4126. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4127. fi
  4128. fi
  4129. fi
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4131. $as_echo "$ac_cv_header_stdc" >&6; }
  4132. if test $ac_cv_header_stdc = yes; then
  4133. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4134. fi
  4135. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4136. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4137. inttypes.h stdint.h unistd.h
  4138. do :
  4139. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4140. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4141. "
  4142. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4143. cat >>confdefs.h <<_ACEOF
  4144. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4145. _ACEOF
  4146. fi
  4147. done
  4148. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4149. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4150. MINIX=yes
  4151. else
  4152. MINIX=
  4153. fi
  4154. if test "$MINIX" = yes; then
  4155. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4156. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4157. $as_echo "#define _MINIX 1" >>confdefs.h
  4158. fi
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4160. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4161. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4162. $as_echo_n "(cached) " >&6
  4163. else
  4164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4165. /* end confdefs.h. */
  4166. # define __EXTENSIONS__ 1
  4167. $ac_includes_default
  4168. int
  4169. main ()
  4170. {
  4171. ;
  4172. return 0;
  4173. }
  4174. _ACEOF
  4175. if ac_fn_c_try_compile "$LINENO"; then :
  4176. ac_cv_safe_to_define___extensions__=yes
  4177. else
  4178. ac_cv_safe_to_define___extensions__=no
  4179. fi
  4180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4181. fi
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4183. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4184. test $ac_cv_safe_to_define___extensions__ = yes &&
  4185. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4186. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4187. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4188. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4189. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4190. test "$program_prefix" != NONE &&
  4191. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4192. # Use a double $ so make ignores it.
  4193. test "$program_suffix" != NONE &&
  4194. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4195. # Double any \ or $.
  4196. # By default was `s,x,x', remove it if useless.
  4197. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4198. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4199. # Find a good install program. We prefer a C program (faster),
  4200. # so one script is as good as another. But avoid the broken or
  4201. # incompatible versions:
  4202. # SysV /etc/install, /usr/sbin/install
  4203. # SunOS /usr/etc/install
  4204. # IRIX /sbin/install
  4205. # AIX /bin/install
  4206. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4207. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4208. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4209. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4210. # OS/2's system install, which has a completely different semantic
  4211. # ./install, which can be erroneously created by make from ./install.sh.
  4212. # Reject install programs that cannot install multiple files.
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4214. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4215. if test -z "$INSTALL"; then
  4216. if ${ac_cv_path_install+:} false; then :
  4217. $as_echo_n "(cached) " >&6
  4218. else
  4219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4220. for as_dir in $PATH
  4221. do
  4222. IFS=$as_save_IFS
  4223. test -z "$as_dir" && as_dir=.
  4224. # Account for people who put trailing slashes in PATH elements.
  4225. case $as_dir/ in #((
  4226. ./ | .// | /[cC]/* | \
  4227. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4228. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4229. /usr/ucb/* ) ;;
  4230. *)
  4231. # OSF1 and SCO ODT 3.0 have their own names for install.
  4232. # Don't use installbsd from OSF since it installs stuff as root
  4233. # by default.
  4234. for ac_prog in ginstall scoinst install; do
  4235. for ac_exec_ext in '' $ac_executable_extensions; do
  4236. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4237. if test $ac_prog = install &&
  4238. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4239. # AIX install. It has an incompatible calling convention.
  4240. :
  4241. elif test $ac_prog = install &&
  4242. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4243. # program-specific install script used by HP pwplus--don't use.
  4244. :
  4245. else
  4246. rm -rf conftest.one conftest.two conftest.dir
  4247. echo one > conftest.one
  4248. echo two > conftest.two
  4249. mkdir conftest.dir
  4250. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4251. test -s conftest.one && test -s conftest.two &&
  4252. test -s conftest.dir/conftest.one &&
  4253. test -s conftest.dir/conftest.two
  4254. then
  4255. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4256. break 3
  4257. fi
  4258. fi
  4259. fi
  4260. done
  4261. done
  4262. ;;
  4263. esac
  4264. done
  4265. IFS=$as_save_IFS
  4266. rm -rf conftest.one conftest.two conftest.dir
  4267. fi
  4268. if test "${ac_cv_path_install+set}" = set; then
  4269. INSTALL=$ac_cv_path_install
  4270. else
  4271. # As a last resort, use the slow shell script. Don't cache a
  4272. # value for INSTALL within a source directory, because that will
  4273. # break other packages using the cache if that directory is
  4274. # removed, or if the value is a relative name.
  4275. INSTALL=$ac_install_sh
  4276. fi
  4277. fi
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4279. $as_echo "$INSTALL" >&6; }
  4280. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4281. # It thinks the first close brace ends the variable substitution.
  4282. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4283. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4284. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4286. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4287. if ${ac_cv_c_bigendian+:} false; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. ac_cv_c_bigendian=unknown
  4291. # See if we're dealing with a universal compiler.
  4292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4293. /* end confdefs.h. */
  4294. #ifndef __APPLE_CC__
  4295. not a universal capable compiler
  4296. #endif
  4297. typedef int dummy;
  4298. _ACEOF
  4299. if ac_fn_c_try_compile "$LINENO"; then :
  4300. # Check for potential -arch flags. It is not universal unless
  4301. # there are at least two -arch flags with different values.
  4302. ac_arch=
  4303. ac_prev=
  4304. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4305. if test -n "$ac_prev"; then
  4306. case $ac_word in
  4307. i?86 | x86_64 | ppc | ppc64)
  4308. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4309. ac_arch=$ac_word
  4310. else
  4311. ac_cv_c_bigendian=universal
  4312. break
  4313. fi
  4314. ;;
  4315. esac
  4316. ac_prev=
  4317. elif test "x$ac_word" = "x-arch"; then
  4318. ac_prev=arch
  4319. fi
  4320. done
  4321. fi
  4322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4323. if test $ac_cv_c_bigendian = unknown; then
  4324. # See if sys/param.h defines the BYTE_ORDER macro.
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. #include <sys/types.h>
  4328. #include <sys/param.h>
  4329. int
  4330. main ()
  4331. {
  4332. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4333. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4334. && LITTLE_ENDIAN)
  4335. bogus endian macros
  4336. #endif
  4337. ;
  4338. return 0;
  4339. }
  4340. _ACEOF
  4341. if ac_fn_c_try_compile "$LINENO"; then :
  4342. # It does; now see whether it defined to BIG_ENDIAN or not.
  4343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4344. /* end confdefs.h. */
  4345. #include <sys/types.h>
  4346. #include <sys/param.h>
  4347. int
  4348. main ()
  4349. {
  4350. #if BYTE_ORDER != BIG_ENDIAN
  4351. not big endian
  4352. #endif
  4353. ;
  4354. return 0;
  4355. }
  4356. _ACEOF
  4357. if ac_fn_c_try_compile "$LINENO"; then :
  4358. ac_cv_c_bigendian=yes
  4359. else
  4360. ac_cv_c_bigendian=no
  4361. fi
  4362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4365. fi
  4366. if test $ac_cv_c_bigendian = unknown; then
  4367. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369. /* end confdefs.h. */
  4370. #include <limits.h>
  4371. int
  4372. main ()
  4373. {
  4374. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4375. bogus endian macros
  4376. #endif
  4377. ;
  4378. return 0;
  4379. }
  4380. _ACEOF
  4381. if ac_fn_c_try_compile "$LINENO"; then :
  4382. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4384. /* end confdefs.h. */
  4385. #include <limits.h>
  4386. int
  4387. main ()
  4388. {
  4389. #ifndef _BIG_ENDIAN
  4390. not big endian
  4391. #endif
  4392. ;
  4393. return 0;
  4394. }
  4395. _ACEOF
  4396. if ac_fn_c_try_compile "$LINENO"; then :
  4397. ac_cv_c_bigendian=yes
  4398. else
  4399. ac_cv_c_bigendian=no
  4400. fi
  4401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4402. fi
  4403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4404. fi
  4405. if test $ac_cv_c_bigendian = unknown; then
  4406. # Compile a test program.
  4407. if test "$cross_compiling" = yes; then :
  4408. # Try to guess by grepping values from an object file.
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. short int ascii_mm[] =
  4412. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4413. short int ascii_ii[] =
  4414. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4415. int use_ascii (int i) {
  4416. return ascii_mm[i] + ascii_ii[i];
  4417. }
  4418. short int ebcdic_ii[] =
  4419. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4420. short int ebcdic_mm[] =
  4421. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4422. int use_ebcdic (int i) {
  4423. return ebcdic_mm[i] + ebcdic_ii[i];
  4424. }
  4425. extern int foo;
  4426. int
  4427. main ()
  4428. {
  4429. return use_ascii (foo) == use_ebcdic (foo);
  4430. ;
  4431. return 0;
  4432. }
  4433. _ACEOF
  4434. if ac_fn_c_try_compile "$LINENO"; then :
  4435. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4436. ac_cv_c_bigendian=yes
  4437. fi
  4438. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4439. if test "$ac_cv_c_bigendian" = unknown; then
  4440. ac_cv_c_bigendian=no
  4441. else
  4442. # finding both strings is unlikely to happen, but who knows?
  4443. ac_cv_c_bigendian=unknown
  4444. fi
  4445. fi
  4446. fi
  4447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4448. else
  4449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4450. /* end confdefs.h. */
  4451. $ac_includes_default
  4452. int
  4453. main ()
  4454. {
  4455. /* Are we little or big endian? From Harbison&Steele. */
  4456. union
  4457. {
  4458. long int l;
  4459. char c[sizeof (long int)];
  4460. } u;
  4461. u.l = 1;
  4462. return u.c[sizeof (long int) - 1] == 1;
  4463. ;
  4464. return 0;
  4465. }
  4466. _ACEOF
  4467. if ac_fn_c_try_run "$LINENO"; then :
  4468. ac_cv_c_bigendian=no
  4469. else
  4470. ac_cv_c_bigendian=yes
  4471. fi
  4472. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4473. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4474. fi
  4475. fi
  4476. fi
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4478. $as_echo "$ac_cv_c_bigendian" >&6; }
  4479. case $ac_cv_c_bigendian in #(
  4480. yes)
  4481. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4482. ;; #(
  4483. no)
  4484. ;; #(
  4485. universal)
  4486. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4487. ;; #(
  4488. *)
  4489. as_fn_error $? "unknown endianness
  4490. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4491. esac
  4492. if test -n "$ac_tool_prefix"; then
  4493. # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
  4494. set dummy ${ac_tool_prefix}dtc; ac_word=$2
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4496. $as_echo_n "checking for $ac_word... " >&6; }
  4497. if ${ac_cv_prog_DTC+:} false; then :
  4498. $as_echo_n "(cached) " >&6
  4499. else
  4500. if test -n "$DTC"; then
  4501. ac_cv_prog_DTC="$DTC" # Let the user override the test.
  4502. else
  4503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4504. for as_dir in $PATH
  4505. do
  4506. IFS=$as_save_IFS
  4507. test -z "$as_dir" && as_dir=.
  4508. for ac_exec_ext in '' $ac_executable_extensions; do
  4509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4510. ac_cv_prog_DTC="${ac_tool_prefix}dtc"
  4511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4512. break 2
  4513. fi
  4514. done
  4515. done
  4516. IFS=$as_save_IFS
  4517. fi
  4518. fi
  4519. DTC=$ac_cv_prog_DTC
  4520. if test -n "$DTC"; then
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
  4522. $as_echo "$DTC" >&6; }
  4523. else
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4525. $as_echo "no" >&6; }
  4526. fi
  4527. fi
  4528. if test -z "$ac_cv_prog_DTC"; then
  4529. ac_ct_DTC=$DTC
  4530. # Extract the first word of "dtc", so it can be a program name with args.
  4531. set dummy dtc; ac_word=$2
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4533. $as_echo_n "checking for $ac_word... " >&6; }
  4534. if ${ac_cv_prog_ac_ct_DTC+:} false; then :
  4535. $as_echo_n "(cached) " >&6
  4536. else
  4537. if test -n "$ac_ct_DTC"; then
  4538. ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
  4539. else
  4540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4541. for as_dir in $PATH
  4542. do
  4543. IFS=$as_save_IFS
  4544. test -z "$as_dir" && as_dir=.
  4545. for ac_exec_ext in '' $ac_executable_extensions; do
  4546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4547. ac_cv_prog_ac_ct_DTC="dtc"
  4548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4549. break 2
  4550. fi
  4551. done
  4552. done
  4553. IFS=$as_save_IFS
  4554. fi
  4555. fi
  4556. ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
  4557. if test -n "$ac_ct_DTC"; then
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
  4559. $as_echo "$ac_ct_DTC" >&6; }
  4560. else
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4562. $as_echo "no" >&6; }
  4563. fi
  4564. if test "x$ac_ct_DTC" = x; then
  4565. DTC=""
  4566. else
  4567. case $cross_compiling:$ac_tool_warned in
  4568. yes:)
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4570. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4571. ac_tool_warned=yes ;;
  4572. esac
  4573. DTC=$ac_ct_DTC
  4574. fi
  4575. else
  4576. DTC="$ac_cv_prog_DTC"
  4577. fi
  4578. if test "x$cross_compiling" = "xno"; then
  4579. : "${AR_FOR_BUILD:=\$(AR)}"
  4580. : "${CC_FOR_BUILD:=\$(CC)}"
  4581. : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
  4582. : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
  4583. : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
  4584. else
  4585. : "${AR_FOR_BUILD:=ar}"
  4586. : "${CC_FOR_BUILD:=gcc}"
  4587. : "${RANLIB_FOR_BUILD:=ranlib}"
  4588. : "${CFLAGS_FOR_BUILD:=-g -O}"
  4589. : "${LDLFAGS_FOR_BUILD:=}"
  4590. fi
  4591. if test -n "$ac_tool_prefix"; then
  4592. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4593. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if ${ac_cv_prog_AR+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$AR"; then
  4600. ac_cv_prog_AR="$AR" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4609. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. AR=$ac_cv_prog_AR
  4619. if test -n "$AR"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4621. $as_echo "$AR" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. fi
  4627. if test -z "$ac_cv_prog_AR"; then
  4628. ac_ct_AR=$AR
  4629. # Extract the first word of "ar", so it can be a program name with args.
  4630. set dummy ar; ac_word=$2
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4632. $as_echo_n "checking for $ac_word... " >&6; }
  4633. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. if test -n "$ac_ct_AR"; then
  4637. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4638. else
  4639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4640. for as_dir in $PATH
  4641. do
  4642. IFS=$as_save_IFS
  4643. test -z "$as_dir" && as_dir=.
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4646. ac_cv_prog_ac_ct_AR="ar"
  4647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4648. break 2
  4649. fi
  4650. done
  4651. done
  4652. IFS=$as_save_IFS
  4653. fi
  4654. fi
  4655. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4656. if test -n "$ac_ct_AR"; then
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4658. $as_echo "$ac_ct_AR" >&6; }
  4659. else
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4661. $as_echo "no" >&6; }
  4662. fi
  4663. if test "x$ac_ct_AR" = x; then
  4664. AR=""
  4665. else
  4666. case $cross_compiling:$ac_tool_warned in
  4667. yes:)
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4670. ac_tool_warned=yes ;;
  4671. esac
  4672. AR=$ac_ct_AR
  4673. fi
  4674. else
  4675. AR="$ac_cv_prog_AR"
  4676. fi
  4677. if test -n "$ac_tool_prefix"; then
  4678. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4679. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4681. $as_echo_n "checking for $ac_word... " >&6; }
  4682. if ${ac_cv_prog_RANLIB+:} false; then :
  4683. $as_echo_n "(cached) " >&6
  4684. else
  4685. if test -n "$RANLIB"; then
  4686. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4687. else
  4688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4689. for as_dir in $PATH
  4690. do
  4691. IFS=$as_save_IFS
  4692. test -z "$as_dir" && as_dir=.
  4693. for ac_exec_ext in '' $ac_executable_extensions; do
  4694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4695. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4697. break 2
  4698. fi
  4699. done
  4700. done
  4701. IFS=$as_save_IFS
  4702. fi
  4703. fi
  4704. RANLIB=$ac_cv_prog_RANLIB
  4705. if test -n "$RANLIB"; then
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4707. $as_echo "$RANLIB" >&6; }
  4708. else
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4710. $as_echo "no" >&6; }
  4711. fi
  4712. fi
  4713. if test -z "$ac_cv_prog_RANLIB"; then
  4714. ac_ct_RANLIB=$RANLIB
  4715. # Extract the first word of "ranlib", so it can be a program name with args.
  4716. set dummy ranlib; ac_word=$2
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. $as_echo_n "checking for $ac_word... " >&6; }
  4719. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. if test -n "$ac_ct_RANLIB"; then
  4723. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4724. else
  4725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4726. for as_dir in $PATH
  4727. do
  4728. IFS=$as_save_IFS
  4729. test -z "$as_dir" && as_dir=.
  4730. for ac_exec_ext in '' $ac_executable_extensions; do
  4731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4732. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4734. break 2
  4735. fi
  4736. done
  4737. done
  4738. IFS=$as_save_IFS
  4739. fi
  4740. fi
  4741. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4742. if test -n "$ac_ct_RANLIB"; then
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4744. $as_echo "$ac_ct_RANLIB" >&6; }
  4745. else
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4747. $as_echo "no" >&6; }
  4748. fi
  4749. if test "x$ac_ct_RANLIB" = x; then
  4750. RANLIB=":"
  4751. else
  4752. case $cross_compiling:$ac_tool_warned in
  4753. yes:)
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4755. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4756. ac_tool_warned=yes ;;
  4757. esac
  4758. RANLIB=$ac_ct_RANLIB
  4759. fi
  4760. else
  4761. RANLIB="$ac_cv_prog_RANLIB"
  4762. fi
  4763. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4764. if test -n "$ac_tool_prefix"; then
  4765. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4766. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4768. $as_echo_n "checking for $ac_word... " >&6; }
  4769. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  4770. $as_echo_n "(cached) " >&6
  4771. else
  4772. case $PKG_CONFIG in
  4773. [\\/]* | ?:[\\/]*)
  4774. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4775. ;;
  4776. *)
  4777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4778. for as_dir in $PATH
  4779. do
  4780. IFS=$as_save_IFS
  4781. test -z "$as_dir" && as_dir=.
  4782. for ac_exec_ext in '' $ac_executable_extensions; do
  4783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4784. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4786. break 2
  4787. fi
  4788. done
  4789. done
  4790. IFS=$as_save_IFS
  4791. ;;
  4792. esac
  4793. fi
  4794. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4795. if test -n "$PKG_CONFIG"; then
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4797. $as_echo "$PKG_CONFIG" >&6; }
  4798. else
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4800. $as_echo "no" >&6; }
  4801. fi
  4802. fi
  4803. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4804. ac_pt_PKG_CONFIG=$PKG_CONFIG
  4805. # Extract the first word of "pkg-config", so it can be a program name with args.
  4806. set dummy pkg-config; ac_word=$2
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4808. $as_echo_n "checking for $ac_word... " >&6; }
  4809. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4810. $as_echo_n "(cached) " >&6
  4811. else
  4812. case $ac_pt_PKG_CONFIG in
  4813. [\\/]* | ?:[\\/]*)
  4814. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4815. ;;
  4816. *)
  4817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4818. for as_dir in $PATH
  4819. do
  4820. IFS=$as_save_IFS
  4821. test -z "$as_dir" && as_dir=.
  4822. for ac_exec_ext in '' $ac_executable_extensions; do
  4823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4824. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4826. break 2
  4827. fi
  4828. done
  4829. done
  4830. IFS=$as_save_IFS
  4831. ;;
  4832. esac
  4833. fi
  4834. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4835. if test -n "$ac_pt_PKG_CONFIG"; then
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  4837. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4838. else
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4840. $as_echo "no" >&6; }
  4841. fi
  4842. if test "x$ac_pt_PKG_CONFIG" = x; then
  4843. PKG_CONFIG=""
  4844. else
  4845. case $cross_compiling:$ac_tool_warned in
  4846. yes:)
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4849. ac_tool_warned=yes ;;
  4850. esac
  4851. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4852. fi
  4853. else
  4854. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4855. fi
  4856. fi
  4857. if test -n "$PKG_CONFIG"; then
  4858. _pkg_min_version=0.9.0
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4860. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4861. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4863. $as_echo "yes" >&6; }
  4864. else
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4866. $as_echo "no" >&6; }
  4867. PKG_CONFIG=""
  4868. fi
  4869. fi
  4870. # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
  4871. # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
  4872. # is C99. So handle it ourselves.
  4873. :
  4874. C_DIALECT=
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
  4876. $as_echo_n "checking whether C11 is supported by default... " >&6; }
  4877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4878. /* end confdefs.h. */
  4879. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  4880. # error "C11 support not found"
  4881. #endif
  4882. _ACEOF
  4883. if ac_fn_c_try_compile "$LINENO"; then :
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4885. $as_echo "yes" >&6; }
  4886. else
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4888. $as_echo "no" >&6; }
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
  4890. $as_echo_n "checking for -std=c11 support... " >&6; }
  4891. ac_save_CC="$CC"
  4892. CC="$CC -std=c11"
  4893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4894. /* end confdefs.h. */
  4895. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  4896. # error "C11 support not found"
  4897. #endif
  4898. _ACEOF
  4899. if ac_fn_c_try_compile "$LINENO"; then :
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4901. $as_echo "yes" >&6; }
  4902. CC="$ac_save_CC"
  4903. C_DIALECT="-std=c11"
  4904. else
  4905. as_fn_error $? "C11 is required" "$LINENO" 5
  4906. fi
  4907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4908. fi
  4909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4910. for ac_header in $ac_header_list
  4911. do :
  4912. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4913. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4914. "
  4915. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4916. cat >>confdefs.h <<_ACEOF
  4917. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4918. _ACEOF
  4919. fi
  4920. done
  4921. for ac_func in $ac_func_list
  4922. do :
  4923. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4924. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4925. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4926. cat >>confdefs.h <<_ACEOF
  4927. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4928. _ACEOF
  4929. fi
  4930. done
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  4932. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  4933. if ${ac_cv_struct_tm+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4937. /* end confdefs.h. */
  4938. #include <sys/types.h>
  4939. #include <time.h>
  4940. int
  4941. main ()
  4942. {
  4943. struct tm tm;
  4944. int *p = &tm.tm_sec;
  4945. return !p;
  4946. ;
  4947. return 0;
  4948. }
  4949. _ACEOF
  4950. if ac_fn_c_try_compile "$LINENO"; then :
  4951. ac_cv_struct_tm=time.h
  4952. else
  4953. ac_cv_struct_tm=sys/time.h
  4954. fi
  4955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4956. fi
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  4958. $as_echo "$ac_cv_struct_tm" >&6; }
  4959. if test $ac_cv_struct_tm = sys/time.h; then
  4960. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  4961. fi
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  4963. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  4964. if ${ac_cv_type_uid_t+:} false; then :
  4965. $as_echo_n "(cached) " >&6
  4966. else
  4967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4968. /* end confdefs.h. */
  4969. #include <sys/types.h>
  4970. _ACEOF
  4971. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4972. $EGREP "uid_t" >/dev/null 2>&1; then :
  4973. ac_cv_type_uid_t=yes
  4974. else
  4975. ac_cv_type_uid_t=no
  4976. fi
  4977. rm -f conftest*
  4978. fi
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  4980. $as_echo "$ac_cv_type_uid_t" >&6; }
  4981. if test $ac_cv_type_uid_t = no; then
  4982. $as_echo "#define uid_t int" >>confdefs.h
  4983. $as_echo "#define gid_t int" >>confdefs.h
  4984. fi
  4985. case `pwd` in
  4986. *\ * | *\ *)
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4988. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4989. esac
  4990. macro_version='2.2.7a'
  4991. macro_revision='1.3134'
  4992. ltmain="$ac_aux_dir/ltmain.sh"
  4993. # Backslashify metacharacters that are still active within
  4994. # double-quoted strings.
  4995. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4996. # Same as above, but do not quote variable references.
  4997. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4998. # Sed substitution to delay expansion of an escaped shell variable in a
  4999. # double_quote_subst'ed string.
  5000. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5001. # Sed substitution to delay expansion of an escaped single quote.
  5002. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5003. # Sed substitution to avoid accidental globbing in evaled expressions
  5004. no_glob_subst='s/\*/\\\*/g'
  5005. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5006. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5007. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5009. $as_echo_n "checking how to print strings... " >&6; }
  5010. # Test print first, because it will be a builtin if present.
  5011. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5012. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5013. ECHO='print -r --'
  5014. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5015. ECHO='printf %s\n'
  5016. else
  5017. # Use this function as a fallback that always works.
  5018. func_fallback_echo ()
  5019. {
  5020. eval 'cat <<_LTECHO_EOF
  5021. $1
  5022. _LTECHO_EOF'
  5023. }
  5024. ECHO='func_fallback_echo'
  5025. fi
  5026. # func_echo_all arg...
  5027. # Invoke $ECHO with all args, space-separated.
  5028. func_echo_all ()
  5029. {
  5030. $ECHO ""
  5031. }
  5032. case "$ECHO" in
  5033. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5034. $as_echo "printf" >&6; } ;;
  5035. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5036. $as_echo "print -r" >&6; } ;;
  5037. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5038. $as_echo "cat" >&6; } ;;
  5039. esac
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5041. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5042. if ${ac_cv_path_SED+:} false; then :
  5043. $as_echo_n "(cached) " >&6
  5044. else
  5045. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5046. for ac_i in 1 2 3 4 5 6 7; do
  5047. ac_script="$ac_script$as_nl$ac_script"
  5048. done
  5049. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5050. { ac_script=; unset ac_script;}
  5051. if test -z "$SED"; then
  5052. ac_path_SED_found=false
  5053. # Loop through the user's path and test for each of PROGNAME-LIST
  5054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5055. for as_dir in $PATH
  5056. do
  5057. IFS=$as_save_IFS
  5058. test -z "$as_dir" && as_dir=.
  5059. for ac_prog in sed gsed; do
  5060. for ac_exec_ext in '' $ac_executable_extensions; do
  5061. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5062. as_fn_executable_p "$ac_path_SED" || continue
  5063. # Check for GNU ac_path_SED and select it if it is found.
  5064. # Check for GNU $ac_path_SED
  5065. case `"$ac_path_SED" --version 2>&1` in
  5066. *GNU*)
  5067. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5068. *)
  5069. ac_count=0
  5070. $as_echo_n 0123456789 >"conftest.in"
  5071. while :
  5072. do
  5073. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5074. mv "conftest.tmp" "conftest.in"
  5075. cp "conftest.in" "conftest.nl"
  5076. $as_echo '' >> "conftest.nl"
  5077. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5078. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5079. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5080. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5081. # Best one so far, save it but keep looking for a better one
  5082. ac_cv_path_SED="$ac_path_SED"
  5083. ac_path_SED_max=$ac_count
  5084. fi
  5085. # 10*(2^10) chars as input seems more than enough
  5086. test $ac_count -gt 10 && break
  5087. done
  5088. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5089. esac
  5090. $ac_path_SED_found && break 3
  5091. done
  5092. done
  5093. done
  5094. IFS=$as_save_IFS
  5095. if test -z "$ac_cv_path_SED"; then
  5096. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5097. fi
  5098. else
  5099. ac_cv_path_SED=$SED
  5100. fi
  5101. fi
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5103. $as_echo "$ac_cv_path_SED" >&6; }
  5104. SED="$ac_cv_path_SED"
  5105. rm -f conftest.sed
  5106. test -z "$SED" && SED=sed
  5107. Xsed="$SED -e 1s/^X//"
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5109. $as_echo_n "checking for fgrep... " >&6; }
  5110. if ${ac_cv_path_FGREP+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5114. then ac_cv_path_FGREP="$GREP -F"
  5115. else
  5116. if test -z "$FGREP"; then
  5117. ac_path_FGREP_found=false
  5118. # Loop through the user's path and test for each of PROGNAME-LIST
  5119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5120. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5121. do
  5122. IFS=$as_save_IFS
  5123. test -z "$as_dir" && as_dir=.
  5124. for ac_prog in fgrep; do
  5125. for ac_exec_ext in '' $ac_executable_extensions; do
  5126. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5127. as_fn_executable_p "$ac_path_FGREP" || continue
  5128. # Check for GNU ac_path_FGREP and select it if it is found.
  5129. # Check for GNU $ac_path_FGREP
  5130. case `"$ac_path_FGREP" --version 2>&1` in
  5131. *GNU*)
  5132. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5133. *)
  5134. ac_count=0
  5135. $as_echo_n 0123456789 >"conftest.in"
  5136. while :
  5137. do
  5138. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5139. mv "conftest.tmp" "conftest.in"
  5140. cp "conftest.in" "conftest.nl"
  5141. $as_echo 'FGREP' >> "conftest.nl"
  5142. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5143. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5144. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5145. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5146. # Best one so far, save it but keep looking for a better one
  5147. ac_cv_path_FGREP="$ac_path_FGREP"
  5148. ac_path_FGREP_max=$ac_count
  5149. fi
  5150. # 10*(2^10) chars as input seems more than enough
  5151. test $ac_count -gt 10 && break
  5152. done
  5153. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5154. esac
  5155. $ac_path_FGREP_found && break 3
  5156. done
  5157. done
  5158. done
  5159. IFS=$as_save_IFS
  5160. if test -z "$ac_cv_path_FGREP"; then
  5161. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5162. fi
  5163. else
  5164. ac_cv_path_FGREP=$FGREP
  5165. fi
  5166. fi
  5167. fi
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5169. $as_echo "$ac_cv_path_FGREP" >&6; }
  5170. FGREP="$ac_cv_path_FGREP"
  5171. test -z "$GREP" && GREP=grep
  5172. # Check whether --with-gnu-ld was given.
  5173. if test "${with_gnu_ld+set}" = set; then :
  5174. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5175. else
  5176. with_gnu_ld=no
  5177. fi
  5178. ac_prog=ld
  5179. if test "$GCC" = yes; then
  5180. # Check if gcc -print-prog-name=ld gives a path.
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5182. $as_echo_n "checking for ld used by $CC... " >&6; }
  5183. case $host in
  5184. *-*-mingw*)
  5185. # gcc leaves a trailing carriage return which upsets mingw
  5186. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5187. *)
  5188. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5189. esac
  5190. case $ac_prog in
  5191. # Accept absolute paths.
  5192. [\\/]* | ?:[\\/]*)
  5193. re_direlt='/[^/][^/]*/\.\./'
  5194. # Canonicalize the pathname of ld
  5195. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5196. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5197. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5198. done
  5199. test -z "$LD" && LD="$ac_prog"
  5200. ;;
  5201. "")
  5202. # If it fails, then pretend we aren't using GCC.
  5203. ac_prog=ld
  5204. ;;
  5205. *)
  5206. # If it is relative, then search for the first ld in PATH.
  5207. with_gnu_ld=unknown
  5208. ;;
  5209. esac
  5210. elif test "$with_gnu_ld" = yes; then
  5211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5212. $as_echo_n "checking for GNU ld... " >&6; }
  5213. else
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5215. $as_echo_n "checking for non-GNU ld... " >&6; }
  5216. fi
  5217. if ${lt_cv_path_LD+:} false; then :
  5218. $as_echo_n "(cached) " >&6
  5219. else
  5220. if test -z "$LD"; then
  5221. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5222. for ac_dir in $PATH; do
  5223. IFS="$lt_save_ifs"
  5224. test -z "$ac_dir" && ac_dir=.
  5225. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5226. lt_cv_path_LD="$ac_dir/$ac_prog"
  5227. # Check to see if the program is GNU ld. I'd rather use --version,
  5228. # but apparently some variants of GNU ld only accept -v.
  5229. # Break only if it was the GNU/non-GNU ld that we prefer.
  5230. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5231. *GNU* | *'with BFD'*)
  5232. test "$with_gnu_ld" != no && break
  5233. ;;
  5234. *)
  5235. test "$with_gnu_ld" != yes && break
  5236. ;;
  5237. esac
  5238. fi
  5239. done
  5240. IFS="$lt_save_ifs"
  5241. else
  5242. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5243. fi
  5244. fi
  5245. LD="$lt_cv_path_LD"
  5246. if test -n "$LD"; then
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5248. $as_echo "$LD" >&6; }
  5249. else
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5251. $as_echo "no" >&6; }
  5252. fi
  5253. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5255. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5256. if ${lt_cv_prog_gnu_ld+:} false; then :
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5260. case `$LD -v 2>&1 </dev/null` in
  5261. *GNU* | *'with BFD'*)
  5262. lt_cv_prog_gnu_ld=yes
  5263. ;;
  5264. *)
  5265. lt_cv_prog_gnu_ld=no
  5266. ;;
  5267. esac
  5268. fi
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5270. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5271. with_gnu_ld=$lt_cv_prog_gnu_ld
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5273. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5274. if ${lt_cv_path_NM+:} false; then :
  5275. $as_echo_n "(cached) " >&6
  5276. else
  5277. if test -n "$NM"; then
  5278. # Let the user override the nm to test.
  5279. lt_nm_to_check="$NM"
  5280. else
  5281. lt_nm_to_check="${ac_tool_prefix}nm"
  5282. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5283. lt_nm_to_check="$lt_nm_to_check nm"
  5284. fi
  5285. fi
  5286. for lt_tmp_nm in "$lt_nm_to_check"; do
  5287. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5288. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5289. IFS="$lt_save_ifs"
  5290. test -z "$ac_dir" && ac_dir=.
  5291. # Strip out any user-provided options from the nm to test twice,
  5292. # the first time to test to see if nm (rather than its options) has
  5293. # an explicit path, the second time to yield a file which can be
  5294. # nm'ed itself.
  5295. tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
  5296. case "$tmp_nm_path" in
  5297. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  5298. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  5299. esac
  5300. tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
  5301. if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
  5302. # Check to see if the nm accepts a BSD-compat flag.
  5303. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5304. # nm: unknown option "B" ignored
  5305. case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5306. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  5307. break
  5308. ;;
  5309. *)
  5310. case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5311. *$tmp_nm*)
  5312. lt_cv_path_NM="$tmp_nm -p"
  5313. break
  5314. ;;
  5315. *)
  5316. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5317. continue # so that we can try to find one that supports BSD flags
  5318. ;;
  5319. esac
  5320. ;;
  5321. esac
  5322. fi
  5323. done
  5324. IFS="$lt_save_ifs"
  5325. done
  5326. : ${lt_cv_path_NM=no}
  5327. fi
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5329. $as_echo "$lt_cv_path_NM" >&6; }
  5330. if test "$lt_cv_path_NM" != "no"; then
  5331. NM="$lt_cv_path_NM"
  5332. else
  5333. # Didn't find any BSD compatible name lister, look for dumpbin.
  5334. if test -n "$DUMPBIN"; then :
  5335. # Let the user override the test.
  5336. else
  5337. if test -n "$ac_tool_prefix"; then
  5338. for ac_prog in dumpbin "link -dump"
  5339. do
  5340. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5341. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5343. $as_echo_n "checking for $ac_word... " >&6; }
  5344. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5345. $as_echo_n "(cached) " >&6
  5346. else
  5347. if test -n "$DUMPBIN"; then
  5348. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5349. else
  5350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5351. for as_dir in $PATH
  5352. do
  5353. IFS=$as_save_IFS
  5354. test -z "$as_dir" && as_dir=.
  5355. for ac_exec_ext in '' $ac_executable_extensions; do
  5356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5357. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5359. break 2
  5360. fi
  5361. done
  5362. done
  5363. IFS=$as_save_IFS
  5364. fi
  5365. fi
  5366. DUMPBIN=$ac_cv_prog_DUMPBIN
  5367. if test -n "$DUMPBIN"; then
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5369. $as_echo "$DUMPBIN" >&6; }
  5370. else
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5372. $as_echo "no" >&6; }
  5373. fi
  5374. test -n "$DUMPBIN" && break
  5375. done
  5376. fi
  5377. if test -z "$DUMPBIN"; then
  5378. ac_ct_DUMPBIN=$DUMPBIN
  5379. for ac_prog in dumpbin "link -dump"
  5380. do
  5381. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5382. set dummy $ac_prog; ac_word=$2
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5384. $as_echo_n "checking for $ac_word... " >&6; }
  5385. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. if test -n "$ac_ct_DUMPBIN"; then
  5389. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5390. else
  5391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5392. for as_dir in $PATH
  5393. do
  5394. IFS=$as_save_IFS
  5395. test -z "$as_dir" && as_dir=.
  5396. for ac_exec_ext in '' $ac_executable_extensions; do
  5397. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5398. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5400. break 2
  5401. fi
  5402. done
  5403. done
  5404. IFS=$as_save_IFS
  5405. fi
  5406. fi
  5407. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5408. if test -n "$ac_ct_DUMPBIN"; then
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5410. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5411. else
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. fi
  5415. test -n "$ac_ct_DUMPBIN" && break
  5416. done
  5417. if test "x$ac_ct_DUMPBIN" = x; then
  5418. DUMPBIN=":"
  5419. else
  5420. case $cross_compiling:$ac_tool_warned in
  5421. yes:)
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5423. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5424. ac_tool_warned=yes ;;
  5425. esac
  5426. DUMPBIN=$ac_ct_DUMPBIN
  5427. fi
  5428. fi
  5429. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5430. *COFF*)
  5431. DUMPBIN="$DUMPBIN -symbols"
  5432. ;;
  5433. *)
  5434. DUMPBIN=:
  5435. ;;
  5436. esac
  5437. fi
  5438. if test "$DUMPBIN" != ":"; then
  5439. NM="$DUMPBIN"
  5440. fi
  5441. fi
  5442. test -z "$NM" && NM=nm
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5444. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5445. if ${lt_cv_nm_interface+:} false; then :
  5446. $as_echo_n "(cached) " >&6
  5447. else
  5448. lt_cv_nm_interface="BSD nm"
  5449. echo "int some_variable = 0;" > conftest.$ac_ext
  5450. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5451. (eval "$ac_compile" 2>conftest.err)
  5452. cat conftest.err >&5
  5453. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5454. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5455. cat conftest.err >&5
  5456. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5457. cat conftest.out >&5
  5458. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5459. lt_cv_nm_interface="MS dumpbin"
  5460. fi
  5461. rm -f conftest*
  5462. fi
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5464. $as_echo "$lt_cv_nm_interface" >&6; }
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5466. $as_echo_n "checking whether ln -s works... " >&6; }
  5467. LN_S=$as_ln_s
  5468. if test "$LN_S" = "ln -s"; then
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5470. $as_echo "yes" >&6; }
  5471. else
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5473. $as_echo "no, using $LN_S" >&6; }
  5474. fi
  5475. # find the maximum length of command line arguments
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5477. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5478. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5479. $as_echo_n "(cached) " >&6
  5480. else
  5481. i=0
  5482. teststring="ABCD"
  5483. case $build_os in
  5484. msdosdjgpp*)
  5485. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5486. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5487. # during glob expansion). Even if it were fixed, the result of this
  5488. # check would be larger than it should be.
  5489. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5490. ;;
  5491. gnu*)
  5492. # Under GNU Hurd, this test is not required because there is
  5493. # no limit to the length of command line arguments.
  5494. # Libtool will interpret -1 as no limit whatsoever
  5495. lt_cv_sys_max_cmd_len=-1;
  5496. ;;
  5497. cygwin* | mingw* | cegcc*)
  5498. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5499. # about 5 minutes as the teststring grows exponentially.
  5500. # Worse, since 9x/ME are not pre-emptively multitasking,
  5501. # you end up with a "frozen" computer, even though with patience
  5502. # the test eventually succeeds (with a max line length of 256k).
  5503. # Instead, let's just punt: use the minimum linelength reported by
  5504. # all of the supported platforms: 8192 (on NT/2K/XP).
  5505. lt_cv_sys_max_cmd_len=8192;
  5506. ;;
  5507. mint*)
  5508. # On MiNT this can take a long time and run out of memory.
  5509. lt_cv_sys_max_cmd_len=8192;
  5510. ;;
  5511. amigaos*)
  5512. # On AmigaOS with pdksh, this test takes hours, literally.
  5513. # So we just punt and use a minimum line length of 8192.
  5514. lt_cv_sys_max_cmd_len=8192;
  5515. ;;
  5516. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5517. # This has been around since 386BSD, at least. Likely further.
  5518. if test -x /sbin/sysctl; then
  5519. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5520. elif test -x /usr/sbin/sysctl; then
  5521. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5522. else
  5523. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5524. fi
  5525. # And add a safety zone
  5526. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5527. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5528. ;;
  5529. interix*)
  5530. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5531. lt_cv_sys_max_cmd_len=196608
  5532. ;;
  5533. osf*)
  5534. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5535. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5536. # nice to cause kernel panics so lets avoid the loop below.
  5537. # First set a reasonable default.
  5538. lt_cv_sys_max_cmd_len=16384
  5539. #
  5540. if test -x /sbin/sysconfig; then
  5541. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5542. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5543. esac
  5544. fi
  5545. ;;
  5546. sco3.2v5*)
  5547. lt_cv_sys_max_cmd_len=102400
  5548. ;;
  5549. sysv5* | sco5v6* | sysv4.2uw2*)
  5550. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5551. if test -n "$kargmax"; then
  5552. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5553. else
  5554. lt_cv_sys_max_cmd_len=32768
  5555. fi
  5556. ;;
  5557. *)
  5558. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5559. if test -n "$lt_cv_sys_max_cmd_len"; then
  5560. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5561. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5562. else
  5563. # Make teststring a little bigger before we do anything with it.
  5564. # a 1K string should be a reasonable start.
  5565. for i in 1 2 3 4 5 6 7 8 ; do
  5566. teststring=$teststring$teststring
  5567. done
  5568. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5569. # If test is not a shell built-in, we'll probably end up computing a
  5570. # maximum length that is only half of the actual maximum length, but
  5571. # we can't tell.
  5572. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5573. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5574. test $i != 17 # 1/2 MB should be enough
  5575. do
  5576. i=`expr $i + 1`
  5577. teststring=$teststring$teststring
  5578. done
  5579. # Only check the string length outside the loop.
  5580. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5581. teststring=
  5582. # Add a significant safety factor because C++ compilers can tack on
  5583. # massive amounts of additional arguments before passing them to the
  5584. # linker. It appears as though 1/2 is a usable value.
  5585. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5586. fi
  5587. ;;
  5588. esac
  5589. fi
  5590. if test -n $lt_cv_sys_max_cmd_len ; then
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5592. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5593. else
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5595. $as_echo "none" >&6; }
  5596. fi
  5597. max_cmd_len=$lt_cv_sys_max_cmd_len
  5598. : ${CP="cp -f"}
  5599. : ${MV="mv -f"}
  5600. : ${RM="rm -f"}
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5602. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5603. # Try some XSI features
  5604. xsi_shell=no
  5605. ( _lt_dummy="a/b/c"
  5606. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5607. = c,a/b,, \
  5608. && eval 'test $(( 1 + 1 )) -eq 2 \
  5609. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5610. && xsi_shell=yes
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5612. $as_echo "$xsi_shell" >&6; }
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5614. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5615. lt_shell_append=no
  5616. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5617. >/dev/null 2>&1 \
  5618. && lt_shell_append=yes
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5620. $as_echo "$lt_shell_append" >&6; }
  5621. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5622. lt_unset=unset
  5623. else
  5624. lt_unset=false
  5625. fi
  5626. # test EBCDIC or ASCII
  5627. case `echo X|tr X '\101'` in
  5628. A) # ASCII based system
  5629. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5630. lt_SP2NL='tr \040 \012'
  5631. lt_NL2SP='tr \015\012 \040\040'
  5632. ;;
  5633. *) # EBCDIC based system
  5634. lt_SP2NL='tr \100 \n'
  5635. lt_NL2SP='tr \r\n \100\100'
  5636. ;;
  5637. esac
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5639. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5640. if ${lt_cv_ld_reload_flag+:} false; then :
  5641. $as_echo_n "(cached) " >&6
  5642. else
  5643. lt_cv_ld_reload_flag='-r'
  5644. fi
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5646. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5647. reload_flag=$lt_cv_ld_reload_flag
  5648. case $reload_flag in
  5649. "" | " "*) ;;
  5650. *) reload_flag=" $reload_flag" ;;
  5651. esac
  5652. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5653. case $host_os in
  5654. darwin*)
  5655. if test "$GCC" = yes; then
  5656. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5657. else
  5658. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5659. fi
  5660. ;;
  5661. esac
  5662. if test -n "$ac_tool_prefix"; then
  5663. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5664. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5666. $as_echo_n "checking for $ac_word... " >&6; }
  5667. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5668. $as_echo_n "(cached) " >&6
  5669. else
  5670. if test -n "$OBJDUMP"; then
  5671. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5672. else
  5673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5674. for as_dir in $PATH
  5675. do
  5676. IFS=$as_save_IFS
  5677. test -z "$as_dir" && as_dir=.
  5678. for ac_exec_ext in '' $ac_executable_extensions; do
  5679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5680. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5682. break 2
  5683. fi
  5684. done
  5685. done
  5686. IFS=$as_save_IFS
  5687. fi
  5688. fi
  5689. OBJDUMP=$ac_cv_prog_OBJDUMP
  5690. if test -n "$OBJDUMP"; then
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5692. $as_echo "$OBJDUMP" >&6; }
  5693. else
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5695. $as_echo "no" >&6; }
  5696. fi
  5697. fi
  5698. if test -z "$ac_cv_prog_OBJDUMP"; then
  5699. ac_ct_OBJDUMP=$OBJDUMP
  5700. # Extract the first word of "objdump", so it can be a program name with args.
  5701. set dummy objdump; ac_word=$2
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5703. $as_echo_n "checking for $ac_word... " >&6; }
  5704. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. if test -n "$ac_ct_OBJDUMP"; then
  5708. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5709. else
  5710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5711. for as_dir in $PATH
  5712. do
  5713. IFS=$as_save_IFS
  5714. test -z "$as_dir" && as_dir=.
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5717. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5727. if test -n "$ac_ct_OBJDUMP"; then
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5729. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5730. else
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. $as_echo "no" >&6; }
  5733. fi
  5734. if test "x$ac_ct_OBJDUMP" = x; then
  5735. OBJDUMP="false"
  5736. else
  5737. case $cross_compiling:$ac_tool_warned in
  5738. yes:)
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5740. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5741. ac_tool_warned=yes ;;
  5742. esac
  5743. OBJDUMP=$ac_ct_OBJDUMP
  5744. fi
  5745. else
  5746. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5747. fi
  5748. test -z "$OBJDUMP" && OBJDUMP=objdump
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5750. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5751. if ${lt_cv_deplibs_check_method+:} false; then :
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5755. lt_cv_file_magic_test_file=
  5756. lt_cv_deplibs_check_method='unknown'
  5757. # Need to set the preceding variable on all platforms that support
  5758. # interlibrary dependencies.
  5759. # 'none' -- dependencies not supported.
  5760. # `unknown' -- same as none, but documents that we really don't know.
  5761. # 'pass_all' -- all dependencies passed with no checks.
  5762. # 'test_compile' -- check by making test program.
  5763. # 'file_magic [[regex]]' -- check by looking for files in library path
  5764. # which responds to the $file_magic_cmd with a given extended regex.
  5765. # If you have `file' or equivalent on your system and you're not sure
  5766. # whether `pass_all' will *always* work, you probably want this one.
  5767. case $host_os in
  5768. aix[4-9]*)
  5769. lt_cv_deplibs_check_method=pass_all
  5770. ;;
  5771. beos*)
  5772. lt_cv_deplibs_check_method=pass_all
  5773. ;;
  5774. bsdi[45]*)
  5775. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5776. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5777. lt_cv_file_magic_test_file=/shlib/libc.so
  5778. ;;
  5779. cygwin*)
  5780. # func_win32_libid is a shell function defined in ltmain.sh
  5781. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5782. lt_cv_file_magic_cmd='func_win32_libid'
  5783. ;;
  5784. mingw* | pw32*)
  5785. # Base MSYS/MinGW do not provide the 'file' command needed by
  5786. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5787. # unless we find 'file', for example because we are cross-compiling.
  5788. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5789. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5790. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5791. lt_cv_file_magic_cmd='func_win32_libid'
  5792. else
  5793. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5794. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5795. fi
  5796. ;;
  5797. cegcc*)
  5798. # use the weaker test based on 'objdump'. See mingw*.
  5799. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5800. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5801. ;;
  5802. darwin* | rhapsody*)
  5803. lt_cv_deplibs_check_method=pass_all
  5804. ;;
  5805. freebsd* | dragonfly*)
  5806. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5807. case $host_cpu in
  5808. i*86 )
  5809. # Not sure whether the presence of OpenBSD here was a mistake.
  5810. # Let's accept both of them until this is cleared up.
  5811. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5812. lt_cv_file_magic_cmd=/usr/bin/file
  5813. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5814. ;;
  5815. esac
  5816. else
  5817. lt_cv_deplibs_check_method=pass_all
  5818. fi
  5819. ;;
  5820. gnu*)
  5821. lt_cv_deplibs_check_method=pass_all
  5822. ;;
  5823. haiku*)
  5824. lt_cv_deplibs_check_method=pass_all
  5825. ;;
  5826. hpux10.20* | hpux11*)
  5827. lt_cv_file_magic_cmd=/usr/bin/file
  5828. case $host_cpu in
  5829. ia64*)
  5830. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5831. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5832. ;;
  5833. hppa*64*)
  5834. 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]'
  5835. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5836. ;;
  5837. *)
  5838. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5839. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5840. ;;
  5841. esac
  5842. ;;
  5843. interix[3-9]*)
  5844. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5845. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5846. ;;
  5847. irix5* | irix6* | nonstopux*)
  5848. case $LD in
  5849. *-32|*"-32 ") libmagic=32-bit;;
  5850. *-n32|*"-n32 ") libmagic=N32;;
  5851. *-64|*"-64 ") libmagic=64-bit;;
  5852. *) libmagic=never-match;;
  5853. esac
  5854. lt_cv_deplibs_check_method=pass_all
  5855. ;;
  5856. # This must be Linux ELF.
  5857. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5858. lt_cv_deplibs_check_method=pass_all
  5859. ;;
  5860. netbsd*)
  5861. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5862. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5863. else
  5864. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5865. fi
  5866. ;;
  5867. newos6*)
  5868. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5869. lt_cv_file_magic_cmd=/usr/bin/file
  5870. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5871. ;;
  5872. *nto* | *qnx*)
  5873. lt_cv_deplibs_check_method=pass_all
  5874. ;;
  5875. openbsd*)
  5876. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5877. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5878. else
  5879. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5880. fi
  5881. ;;
  5882. osf3* | osf4* | osf5*)
  5883. lt_cv_deplibs_check_method=pass_all
  5884. ;;
  5885. rdos*)
  5886. lt_cv_deplibs_check_method=pass_all
  5887. ;;
  5888. solaris*)
  5889. lt_cv_deplibs_check_method=pass_all
  5890. ;;
  5891. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5892. lt_cv_deplibs_check_method=pass_all
  5893. ;;
  5894. sysv4 | sysv4.3*)
  5895. case $host_vendor in
  5896. motorola)
  5897. 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]'
  5898. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5899. ;;
  5900. ncr)
  5901. lt_cv_deplibs_check_method=pass_all
  5902. ;;
  5903. sequent)
  5904. lt_cv_file_magic_cmd='/bin/file'
  5905. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5906. ;;
  5907. sni)
  5908. lt_cv_file_magic_cmd='/bin/file'
  5909. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5910. lt_cv_file_magic_test_file=/lib/libc.so
  5911. ;;
  5912. siemens)
  5913. lt_cv_deplibs_check_method=pass_all
  5914. ;;
  5915. pc)
  5916. lt_cv_deplibs_check_method=pass_all
  5917. ;;
  5918. esac
  5919. ;;
  5920. tpf*)
  5921. lt_cv_deplibs_check_method=pass_all
  5922. ;;
  5923. esac
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5926. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5927. file_magic_cmd=$lt_cv_file_magic_cmd
  5928. deplibs_check_method=$lt_cv_deplibs_check_method
  5929. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5930. plugin_option=
  5931. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  5932. for plugin in $plugin_names; do
  5933. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  5934. if test x$plugin_so = x$plugin; then
  5935. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  5936. fi
  5937. if test x$plugin_so != x$plugin; then
  5938. plugin_option="--plugin $plugin_so"
  5939. break
  5940. fi
  5941. done
  5942. if test -n "$ac_tool_prefix"; then
  5943. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5944. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5946. $as_echo_n "checking for $ac_word... " >&6; }
  5947. if ${ac_cv_prog_AR+:} false; then :
  5948. $as_echo_n "(cached) " >&6
  5949. else
  5950. if test -n "$AR"; then
  5951. ac_cv_prog_AR="$AR" # Let the user override the test.
  5952. else
  5953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5954. for as_dir in $PATH
  5955. do
  5956. IFS=$as_save_IFS
  5957. test -z "$as_dir" && as_dir=.
  5958. for ac_exec_ext in '' $ac_executable_extensions; do
  5959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5960. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5962. break 2
  5963. fi
  5964. done
  5965. done
  5966. IFS=$as_save_IFS
  5967. fi
  5968. fi
  5969. AR=$ac_cv_prog_AR
  5970. if test -n "$AR"; then
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5972. $as_echo "$AR" >&6; }
  5973. else
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5975. $as_echo "no" >&6; }
  5976. fi
  5977. fi
  5978. if test -z "$ac_cv_prog_AR"; then
  5979. ac_ct_AR=$AR
  5980. # Extract the first word of "ar", so it can be a program name with args.
  5981. set dummy ar; ac_word=$2
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5983. $as_echo_n "checking for $ac_word... " >&6; }
  5984. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. if test -n "$ac_ct_AR"; then
  5988. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5989. else
  5990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991. for as_dir in $PATH
  5992. do
  5993. IFS=$as_save_IFS
  5994. test -z "$as_dir" && as_dir=.
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5997. ac_cv_prog_ac_ct_AR="ar"
  5998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999. break 2
  6000. fi
  6001. done
  6002. done
  6003. IFS=$as_save_IFS
  6004. fi
  6005. fi
  6006. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6007. if test -n "$ac_ct_AR"; then
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6009. $as_echo "$ac_ct_AR" >&6; }
  6010. else
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6012. $as_echo "no" >&6; }
  6013. fi
  6014. if test "x$ac_ct_AR" = x; then
  6015. AR="false"
  6016. else
  6017. case $cross_compiling:$ac_tool_warned in
  6018. yes:)
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6020. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6021. ac_tool_warned=yes ;;
  6022. esac
  6023. AR=$ac_ct_AR
  6024. fi
  6025. else
  6026. AR="$ac_cv_prog_AR"
  6027. fi
  6028. test -z "$AR" && AR=ar
  6029. if test -n "$plugin_option"; then
  6030. if $AR --help 2>&1 | grep -q "\--plugin"; then
  6031. touch conftest.c
  6032. $AR $plugin_option rc conftest.a conftest.c
  6033. if test "$?" != 0; then
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  6035. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  6036. else
  6037. AR="$AR $plugin_option"
  6038. fi
  6039. rm -f conftest.*
  6040. fi
  6041. fi
  6042. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6043. if test -n "$ac_tool_prefix"; then
  6044. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6045. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6047. $as_echo_n "checking for $ac_word... " >&6; }
  6048. if ${ac_cv_prog_STRIP+:} false; then :
  6049. $as_echo_n "(cached) " >&6
  6050. else
  6051. if test -n "$STRIP"; then
  6052. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6053. else
  6054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6055. for as_dir in $PATH
  6056. do
  6057. IFS=$as_save_IFS
  6058. test -z "$as_dir" && as_dir=.
  6059. for ac_exec_ext in '' $ac_executable_extensions; do
  6060. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6061. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6063. break 2
  6064. fi
  6065. done
  6066. done
  6067. IFS=$as_save_IFS
  6068. fi
  6069. fi
  6070. STRIP=$ac_cv_prog_STRIP
  6071. if test -n "$STRIP"; then
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6073. $as_echo "$STRIP" >&6; }
  6074. else
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6076. $as_echo "no" >&6; }
  6077. fi
  6078. fi
  6079. if test -z "$ac_cv_prog_STRIP"; then
  6080. ac_ct_STRIP=$STRIP
  6081. # Extract the first word of "strip", so it can be a program name with args.
  6082. set dummy strip; ac_word=$2
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6084. $as_echo_n "checking for $ac_word... " >&6; }
  6085. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6086. $as_echo_n "(cached) " >&6
  6087. else
  6088. if test -n "$ac_ct_STRIP"; then
  6089. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6090. else
  6091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6092. for as_dir in $PATH
  6093. do
  6094. IFS=$as_save_IFS
  6095. test -z "$as_dir" && as_dir=.
  6096. for ac_exec_ext in '' $ac_executable_extensions; do
  6097. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6098. ac_cv_prog_ac_ct_STRIP="strip"
  6099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6100. break 2
  6101. fi
  6102. done
  6103. done
  6104. IFS=$as_save_IFS
  6105. fi
  6106. fi
  6107. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6108. if test -n "$ac_ct_STRIP"; then
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6110. $as_echo "$ac_ct_STRIP" >&6; }
  6111. else
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6113. $as_echo "no" >&6; }
  6114. fi
  6115. if test "x$ac_ct_STRIP" = x; then
  6116. STRIP=":"
  6117. else
  6118. case $cross_compiling:$ac_tool_warned in
  6119. yes:)
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6121. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6122. ac_tool_warned=yes ;;
  6123. esac
  6124. STRIP=$ac_ct_STRIP
  6125. fi
  6126. else
  6127. STRIP="$ac_cv_prog_STRIP"
  6128. fi
  6129. test -z "$STRIP" && STRIP=:
  6130. if test -n "$ac_tool_prefix"; then
  6131. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6132. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6134. $as_echo_n "checking for $ac_word... " >&6; }
  6135. if ${ac_cv_prog_RANLIB+:} false; then :
  6136. $as_echo_n "(cached) " >&6
  6137. else
  6138. if test -n "$RANLIB"; then
  6139. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6140. else
  6141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6142. for as_dir in $PATH
  6143. do
  6144. IFS=$as_save_IFS
  6145. test -z "$as_dir" && as_dir=.
  6146. for ac_exec_ext in '' $ac_executable_extensions; do
  6147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6148. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6150. break 2
  6151. fi
  6152. done
  6153. done
  6154. IFS=$as_save_IFS
  6155. fi
  6156. fi
  6157. RANLIB=$ac_cv_prog_RANLIB
  6158. if test -n "$RANLIB"; then
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6160. $as_echo "$RANLIB" >&6; }
  6161. else
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6163. $as_echo "no" >&6; }
  6164. fi
  6165. fi
  6166. if test -z "$ac_cv_prog_RANLIB"; then
  6167. ac_ct_RANLIB=$RANLIB
  6168. # Extract the first word of "ranlib", so it can be a program name with args.
  6169. set dummy ranlib; ac_word=$2
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6171. $as_echo_n "checking for $ac_word... " >&6; }
  6172. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. if test -n "$ac_ct_RANLIB"; then
  6176. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6177. else
  6178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6179. for as_dir in $PATH
  6180. do
  6181. IFS=$as_save_IFS
  6182. test -z "$as_dir" && as_dir=.
  6183. for ac_exec_ext in '' $ac_executable_extensions; do
  6184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6185. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6187. break 2
  6188. fi
  6189. done
  6190. done
  6191. IFS=$as_save_IFS
  6192. fi
  6193. fi
  6194. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6195. if test -n "$ac_ct_RANLIB"; then
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6197. $as_echo "$ac_ct_RANLIB" >&6; }
  6198. else
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6200. $as_echo "no" >&6; }
  6201. fi
  6202. if test "x$ac_ct_RANLIB" = x; then
  6203. RANLIB=":"
  6204. else
  6205. case $cross_compiling:$ac_tool_warned in
  6206. yes:)
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6209. ac_tool_warned=yes ;;
  6210. esac
  6211. RANLIB=$ac_ct_RANLIB
  6212. fi
  6213. else
  6214. RANLIB="$ac_cv_prog_RANLIB"
  6215. fi
  6216. test -z "$RANLIB" && RANLIB=:
  6217. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  6218. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  6219. RANLIB="$RANLIB $plugin_option"
  6220. fi
  6221. fi
  6222. # Determine commands to create old-style static archives.
  6223. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6224. old_postinstall_cmds='chmod 644 $oldlib'
  6225. old_postuninstall_cmds=
  6226. if test -n "$RANLIB"; then
  6227. case $host_os in
  6228. openbsd*)
  6229. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6230. ;;
  6231. *)
  6232. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6233. ;;
  6234. esac
  6235. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6236. fi
  6237. case $host_os in
  6238. darwin*)
  6239. lock_old_archive_extraction=yes ;;
  6240. *)
  6241. lock_old_archive_extraction=no ;;
  6242. esac
  6243. for ac_prog in gawk mawk nawk awk
  6244. do
  6245. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6246. set dummy $ac_prog; 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 ${ac_cv_prog_AWK+:} false; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. if test -n "$AWK"; then
  6253. ac_cv_prog_AWK="$AWK" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6262. ac_cv_prog_AWK="$ac_prog"
  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. AWK=$ac_cv_prog_AWK
  6272. if test -n "$AWK"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6274. $as_echo "$AWK" >&6; }
  6275. else
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. $as_echo "no" >&6; }
  6278. fi
  6279. test -n "$AWK" && break
  6280. done
  6281. # If no C compiler was specified, use CC.
  6282. LTCC=${LTCC-"$CC"}
  6283. # If no C compiler flags were specified, use CFLAGS.
  6284. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6285. # Allow CC to be a program name with arguments.
  6286. compiler=$CC
  6287. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6289. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6290. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. # These are sane defaults that work on at least a few old systems.
  6294. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6295. # Character class describing NM global symbol codes.
  6296. symcode='[BCDEGRST]'
  6297. # Regexp to match symbols that can be accessed directly from C.
  6298. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6299. # Define system-specific variables.
  6300. case $host_os in
  6301. aix*)
  6302. symcode='[BCDT]'
  6303. ;;
  6304. cygwin* | mingw* | pw32* | cegcc*)
  6305. symcode='[ABCDGISTW]'
  6306. ;;
  6307. hpux*)
  6308. if test "$host_cpu" = ia64; then
  6309. symcode='[ABCDEGRST]'
  6310. fi
  6311. ;;
  6312. irix* | nonstopux*)
  6313. symcode='[BCDEGRST]'
  6314. ;;
  6315. osf*)
  6316. symcode='[BCDEGQRST]'
  6317. ;;
  6318. solaris*)
  6319. symcode='[BCDRT]'
  6320. ;;
  6321. sco3.2v5*)
  6322. symcode='[DT]'
  6323. ;;
  6324. sysv4.2uw2*)
  6325. symcode='[DT]'
  6326. ;;
  6327. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6328. symcode='[ABDT]'
  6329. ;;
  6330. sysv4)
  6331. symcode='[DFNSTU]'
  6332. ;;
  6333. esac
  6334. # If we're using GNU nm, then use its standard symbol codes.
  6335. case `$NM -V 2>&1` in
  6336. *GNU* | *'with BFD'*)
  6337. symcode='[ABCDGIRSTW]' ;;
  6338. esac
  6339. # Transform an extracted symbol line into a proper C declaration.
  6340. # Some systems (esp. on ia64) link data and code symbols differently,
  6341. # so use this general approach.
  6342. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6343. # Transform an extracted symbol line into symbol name and symbol address
  6344. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6345. 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'"
  6346. # Handle CRLF in mingw tool chain
  6347. opt_cr=
  6348. case $build_os in
  6349. mingw*)
  6350. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6351. ;;
  6352. esac
  6353. # Try without a prefix underscore, then with it.
  6354. for ac_symprfx in "" "_"; do
  6355. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6356. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6357. # Write the raw and C identifiers.
  6358. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6359. # Fake it for dumpbin and say T for any non-static function
  6360. # and D for any global variable.
  6361. # Also find C++ and __fastcall symbols from MSVC++,
  6362. # which start with @ or ?.
  6363. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6364. " {last_section=section; section=\$ 3};"\
  6365. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6366. " \$ 0!~/External *\|/{next};"\
  6367. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6368. " {if(hide[section]) next};"\
  6369. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6370. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6371. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6372. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6373. " ' prfx=^$ac_symprfx"
  6374. else
  6375. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6376. fi
  6377. # Check to see that the pipe works correctly.
  6378. pipe_works=no
  6379. rm -f conftest*
  6380. cat > conftest.$ac_ext <<_LT_EOF
  6381. #ifdef __cplusplus
  6382. extern "C" {
  6383. #endif
  6384. char nm_test_var;
  6385. void nm_test_func(void);
  6386. void nm_test_func(void){}
  6387. #ifdef __cplusplus
  6388. }
  6389. #endif
  6390. int main(){nm_test_var='a';nm_test_func();return(0);}
  6391. _LT_EOF
  6392. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6393. (eval $ac_compile) 2>&5
  6394. ac_status=$?
  6395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6396. test $ac_status = 0; }; then
  6397. # Now try to grab the symbols.
  6398. nlist=conftest.nm
  6399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6400. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6401. ac_status=$?
  6402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6403. test $ac_status = 0; } && test -s "$nlist"; then
  6404. # Try sorting and uniquifying the output.
  6405. if sort "$nlist" | uniq > "$nlist"T; then
  6406. mv -f "$nlist"T "$nlist"
  6407. else
  6408. rm -f "$nlist"T
  6409. fi
  6410. # Make sure that we snagged all the symbols we need.
  6411. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6412. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6413. cat <<_LT_EOF > conftest.$ac_ext
  6414. #ifdef __cplusplus
  6415. extern "C" {
  6416. #endif
  6417. _LT_EOF
  6418. # Now generate the symbol file.
  6419. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6420. cat <<_LT_EOF >> conftest.$ac_ext
  6421. /* The mapping between symbol names and symbols. */
  6422. const struct {
  6423. const char *name;
  6424. void *address;
  6425. }
  6426. lt__PROGRAM__LTX_preloaded_symbols[] =
  6427. {
  6428. { "@PROGRAM@", (void *) 0 },
  6429. _LT_EOF
  6430. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6431. cat <<\_LT_EOF >> conftest.$ac_ext
  6432. {0, (void *) 0}
  6433. };
  6434. /* This works around a problem in FreeBSD linker */
  6435. #ifdef FREEBSD_WORKAROUND
  6436. static const void *lt_preloaded_setup() {
  6437. return lt__PROGRAM__LTX_preloaded_symbols;
  6438. }
  6439. #endif
  6440. #ifdef __cplusplus
  6441. }
  6442. #endif
  6443. _LT_EOF
  6444. # Now try linking the two files.
  6445. mv conftest.$ac_objext conftstm.$ac_objext
  6446. lt_save_LIBS="$LIBS"
  6447. lt_save_CFLAGS="$CFLAGS"
  6448. LIBS="conftstm.$ac_objext"
  6449. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6450. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6451. (eval $ac_link) 2>&5
  6452. ac_status=$?
  6453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6454. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6455. pipe_works=yes
  6456. fi
  6457. LIBS="$lt_save_LIBS"
  6458. CFLAGS="$lt_save_CFLAGS"
  6459. else
  6460. echo "cannot find nm_test_func in $nlist" >&5
  6461. fi
  6462. else
  6463. echo "cannot find nm_test_var in $nlist" >&5
  6464. fi
  6465. else
  6466. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6467. fi
  6468. else
  6469. echo "$progname: failed program was:" >&5
  6470. cat conftest.$ac_ext >&5
  6471. fi
  6472. rm -rf conftest* conftst*
  6473. # Do not use the global_symbol_pipe unless it works.
  6474. if test "$pipe_works" = yes; then
  6475. break
  6476. else
  6477. lt_cv_sys_global_symbol_pipe=
  6478. fi
  6479. done
  6480. fi
  6481. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6482. lt_cv_sys_global_symbol_to_cdecl=
  6483. fi
  6484. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6486. $as_echo "failed" >&6; }
  6487. else
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6489. $as_echo "ok" >&6; }
  6490. fi
  6491. # Check whether --enable-libtool-lock was given.
  6492. if test "${enable_libtool_lock+set}" = set; then :
  6493. enableval=$enable_libtool_lock;
  6494. fi
  6495. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6496. # Some flags need to be propagated to the compiler or linker for good
  6497. # libtool support.
  6498. case $host in
  6499. ia64-*-hpux*)
  6500. # Find out which ABI we are using.
  6501. echo 'int i;' > conftest.$ac_ext
  6502. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6503. (eval $ac_compile) 2>&5
  6504. ac_status=$?
  6505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6506. test $ac_status = 0; }; then
  6507. case `/usr/bin/file conftest.$ac_objext` in
  6508. *ELF-32*)
  6509. HPUX_IA64_MODE="32"
  6510. ;;
  6511. *ELF-64*)
  6512. HPUX_IA64_MODE="64"
  6513. ;;
  6514. esac
  6515. fi
  6516. rm -rf conftest*
  6517. ;;
  6518. *-*-irix6*)
  6519. # Find out which ABI we are using.
  6520. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6522. (eval $ac_compile) 2>&5
  6523. ac_status=$?
  6524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6525. test $ac_status = 0; }; then
  6526. if test "$lt_cv_prog_gnu_ld" = yes; then
  6527. case `/usr/bin/file conftest.$ac_objext` in
  6528. *32-bit*)
  6529. LD="${LD-ld} -melf32bsmip"
  6530. ;;
  6531. *N32*)
  6532. LD="${LD-ld} -melf32bmipn32"
  6533. ;;
  6534. *64-bit*)
  6535. LD="${LD-ld} -melf64bmip"
  6536. ;;
  6537. esac
  6538. else
  6539. case `/usr/bin/file conftest.$ac_objext` in
  6540. *32-bit*)
  6541. LD="${LD-ld} -32"
  6542. ;;
  6543. *N32*)
  6544. LD="${LD-ld} -n32"
  6545. ;;
  6546. *64-bit*)
  6547. LD="${LD-ld} -64"
  6548. ;;
  6549. esac
  6550. fi
  6551. fi
  6552. rm -rf conftest*
  6553. ;;
  6554. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6555. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6556. # Find out which ABI we are using.
  6557. echo 'int i;' > conftest.$ac_ext
  6558. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6559. (eval $ac_compile) 2>&5
  6560. ac_status=$?
  6561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6562. test $ac_status = 0; }; then
  6563. case `/usr/bin/file conftest.o` in
  6564. *32-bit*)
  6565. case $host in
  6566. x86_64-*kfreebsd*-gnu)
  6567. LD="${LD-ld} -m elf_i386_fbsd"
  6568. ;;
  6569. x86_64-*linux*)
  6570. case `/usr/bin/file conftest.o` in
  6571. *x86-64*)
  6572. LD="${LD-ld} -m elf32_x86_64"
  6573. ;;
  6574. *)
  6575. LD="${LD-ld} -m elf_i386"
  6576. ;;
  6577. esac
  6578. ;;
  6579. powerpc64le-*linux*)
  6580. LD="${LD-ld} -m elf32lppclinux"
  6581. ;;
  6582. powerpc64-*linux*)
  6583. LD="${LD-ld} -m elf32ppclinux"
  6584. ;;
  6585. s390x-*linux*)
  6586. LD="${LD-ld} -m elf_s390"
  6587. ;;
  6588. sparc64-*linux*)
  6589. LD="${LD-ld} -m elf32_sparc"
  6590. ;;
  6591. esac
  6592. ;;
  6593. *64-bit*)
  6594. case $host in
  6595. x86_64-*kfreebsd*-gnu)
  6596. LD="${LD-ld} -m elf_x86_64_fbsd"
  6597. ;;
  6598. x86_64-*linux*)
  6599. LD="${LD-ld} -m elf_x86_64"
  6600. ;;
  6601. powerpcle-*linux*)
  6602. LD="${LD-ld} -m elf64lppc"
  6603. ;;
  6604. powerpc-*linux*)
  6605. LD="${LD-ld} -m elf64ppc"
  6606. ;;
  6607. s390*-*linux*|s390*-*tpf*)
  6608. LD="${LD-ld} -m elf64_s390"
  6609. ;;
  6610. sparc*-*linux*)
  6611. LD="${LD-ld} -m elf64_sparc"
  6612. ;;
  6613. esac
  6614. ;;
  6615. esac
  6616. fi
  6617. rm -rf conftest*
  6618. ;;
  6619. *-*-sco3.2v5*)
  6620. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6621. SAVE_CFLAGS="$CFLAGS"
  6622. CFLAGS="$CFLAGS -belf"
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6624. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6625. if ${lt_cv_cc_needs_belf+:} false; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. ac_ext=c
  6629. ac_cpp='$CPP $CPPFLAGS'
  6630. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6631. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6632. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6634. /* end confdefs.h. */
  6635. int
  6636. main ()
  6637. {
  6638. ;
  6639. return 0;
  6640. }
  6641. _ACEOF
  6642. if ac_fn_c_try_link "$LINENO"; then :
  6643. lt_cv_cc_needs_belf=yes
  6644. else
  6645. lt_cv_cc_needs_belf=no
  6646. fi
  6647. rm -f core conftest.err conftest.$ac_objext \
  6648. conftest$ac_exeext conftest.$ac_ext
  6649. ac_ext=c
  6650. ac_cpp='$CPP $CPPFLAGS'
  6651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6654. fi
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6656. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6657. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6658. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6659. CFLAGS="$SAVE_CFLAGS"
  6660. fi
  6661. ;;
  6662. sparc*-*solaris*)
  6663. # Find out which ABI we are using.
  6664. echo 'int i;' > conftest.$ac_ext
  6665. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6666. (eval $ac_compile) 2>&5
  6667. ac_status=$?
  6668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6669. test $ac_status = 0; }; then
  6670. case `/usr/bin/file conftest.o` in
  6671. *64-bit*)
  6672. case $lt_cv_prog_gnu_ld in
  6673. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6674. *)
  6675. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6676. LD="${LD-ld} -64"
  6677. fi
  6678. ;;
  6679. esac
  6680. ;;
  6681. esac
  6682. fi
  6683. rm -rf conftest*
  6684. ;;
  6685. esac
  6686. need_locks="$enable_libtool_lock"
  6687. case $host_os in
  6688. rhapsody* | darwin*)
  6689. if test -n "$ac_tool_prefix"; then
  6690. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6691. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6693. $as_echo_n "checking for $ac_word... " >&6; }
  6694. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6695. $as_echo_n "(cached) " >&6
  6696. else
  6697. if test -n "$DSYMUTIL"; then
  6698. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6699. else
  6700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6701. for as_dir in $PATH
  6702. do
  6703. IFS=$as_save_IFS
  6704. test -z "$as_dir" && as_dir=.
  6705. for ac_exec_ext in '' $ac_executable_extensions; do
  6706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6707. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6709. break 2
  6710. fi
  6711. done
  6712. done
  6713. IFS=$as_save_IFS
  6714. fi
  6715. fi
  6716. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6717. if test -n "$DSYMUTIL"; then
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6719. $as_echo "$DSYMUTIL" >&6; }
  6720. else
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6722. $as_echo "no" >&6; }
  6723. fi
  6724. fi
  6725. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6726. ac_ct_DSYMUTIL=$DSYMUTIL
  6727. # Extract the first word of "dsymutil", so it can be a program name with args.
  6728. set dummy dsymutil; ac_word=$2
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6730. $as_echo_n "checking for $ac_word... " >&6; }
  6731. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6732. $as_echo_n "(cached) " >&6
  6733. else
  6734. if test -n "$ac_ct_DSYMUTIL"; then
  6735. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6736. else
  6737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6738. for as_dir in $PATH
  6739. do
  6740. IFS=$as_save_IFS
  6741. test -z "$as_dir" && as_dir=.
  6742. for ac_exec_ext in '' $ac_executable_extensions; do
  6743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6744. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6746. break 2
  6747. fi
  6748. done
  6749. done
  6750. IFS=$as_save_IFS
  6751. fi
  6752. fi
  6753. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6754. if test -n "$ac_ct_DSYMUTIL"; then
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6756. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6757. else
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6759. $as_echo "no" >&6; }
  6760. fi
  6761. if test "x$ac_ct_DSYMUTIL" = x; then
  6762. DSYMUTIL=":"
  6763. else
  6764. case $cross_compiling:$ac_tool_warned in
  6765. yes:)
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6768. ac_tool_warned=yes ;;
  6769. esac
  6770. DSYMUTIL=$ac_ct_DSYMUTIL
  6771. fi
  6772. else
  6773. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6774. fi
  6775. if test -n "$ac_tool_prefix"; then
  6776. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6777. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6779. $as_echo_n "checking for $ac_word... " >&6; }
  6780. if ${ac_cv_prog_NMEDIT+:} false; then :
  6781. $as_echo_n "(cached) " >&6
  6782. else
  6783. if test -n "$NMEDIT"; then
  6784. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6785. else
  6786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6787. for as_dir in $PATH
  6788. do
  6789. IFS=$as_save_IFS
  6790. test -z "$as_dir" && as_dir=.
  6791. for ac_exec_ext in '' $ac_executable_extensions; do
  6792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6793. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6795. break 2
  6796. fi
  6797. done
  6798. done
  6799. IFS=$as_save_IFS
  6800. fi
  6801. fi
  6802. NMEDIT=$ac_cv_prog_NMEDIT
  6803. if test -n "$NMEDIT"; then
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6805. $as_echo "$NMEDIT" >&6; }
  6806. else
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6808. $as_echo "no" >&6; }
  6809. fi
  6810. fi
  6811. if test -z "$ac_cv_prog_NMEDIT"; then
  6812. ac_ct_NMEDIT=$NMEDIT
  6813. # Extract the first word of "nmedit", so it can be a program name with args.
  6814. set dummy nmedit; ac_word=$2
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6816. $as_echo_n "checking for $ac_word... " >&6; }
  6817. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6818. $as_echo_n "(cached) " >&6
  6819. else
  6820. if test -n "$ac_ct_NMEDIT"; then
  6821. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6822. else
  6823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6824. for as_dir in $PATH
  6825. do
  6826. IFS=$as_save_IFS
  6827. test -z "$as_dir" && as_dir=.
  6828. for ac_exec_ext in '' $ac_executable_extensions; do
  6829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6830. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6832. break 2
  6833. fi
  6834. done
  6835. done
  6836. IFS=$as_save_IFS
  6837. fi
  6838. fi
  6839. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6840. if test -n "$ac_ct_NMEDIT"; then
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6842. $as_echo "$ac_ct_NMEDIT" >&6; }
  6843. else
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6845. $as_echo "no" >&6; }
  6846. fi
  6847. if test "x$ac_ct_NMEDIT" = x; then
  6848. NMEDIT=":"
  6849. else
  6850. case $cross_compiling:$ac_tool_warned in
  6851. yes:)
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6854. ac_tool_warned=yes ;;
  6855. esac
  6856. NMEDIT=$ac_ct_NMEDIT
  6857. fi
  6858. else
  6859. NMEDIT="$ac_cv_prog_NMEDIT"
  6860. fi
  6861. if test -n "$ac_tool_prefix"; then
  6862. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6863. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6865. $as_echo_n "checking for $ac_word... " >&6; }
  6866. if ${ac_cv_prog_LIPO+:} false; then :
  6867. $as_echo_n "(cached) " >&6
  6868. else
  6869. if test -n "$LIPO"; then
  6870. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6871. else
  6872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6873. for as_dir in $PATH
  6874. do
  6875. IFS=$as_save_IFS
  6876. test -z "$as_dir" && as_dir=.
  6877. for ac_exec_ext in '' $ac_executable_extensions; do
  6878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6879. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6881. break 2
  6882. fi
  6883. done
  6884. done
  6885. IFS=$as_save_IFS
  6886. fi
  6887. fi
  6888. LIPO=$ac_cv_prog_LIPO
  6889. if test -n "$LIPO"; then
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6891. $as_echo "$LIPO" >&6; }
  6892. else
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6894. $as_echo "no" >&6; }
  6895. fi
  6896. fi
  6897. if test -z "$ac_cv_prog_LIPO"; then
  6898. ac_ct_LIPO=$LIPO
  6899. # Extract the first word of "lipo", so it can be a program name with args.
  6900. set dummy lipo; ac_word=$2
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6902. $as_echo_n "checking for $ac_word... " >&6; }
  6903. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6904. $as_echo_n "(cached) " >&6
  6905. else
  6906. if test -n "$ac_ct_LIPO"; then
  6907. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6908. else
  6909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6910. for as_dir in $PATH
  6911. do
  6912. IFS=$as_save_IFS
  6913. test -z "$as_dir" && as_dir=.
  6914. for ac_exec_ext in '' $ac_executable_extensions; do
  6915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6916. ac_cv_prog_ac_ct_LIPO="lipo"
  6917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6918. break 2
  6919. fi
  6920. done
  6921. done
  6922. IFS=$as_save_IFS
  6923. fi
  6924. fi
  6925. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6926. if test -n "$ac_ct_LIPO"; then
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6928. $as_echo "$ac_ct_LIPO" >&6; }
  6929. else
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6931. $as_echo "no" >&6; }
  6932. fi
  6933. if test "x$ac_ct_LIPO" = x; then
  6934. LIPO=":"
  6935. else
  6936. case $cross_compiling:$ac_tool_warned in
  6937. yes:)
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6940. ac_tool_warned=yes ;;
  6941. esac
  6942. LIPO=$ac_ct_LIPO
  6943. fi
  6944. else
  6945. LIPO="$ac_cv_prog_LIPO"
  6946. fi
  6947. if test -n "$ac_tool_prefix"; then
  6948. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6949. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6951. $as_echo_n "checking for $ac_word... " >&6; }
  6952. if ${ac_cv_prog_OTOOL+:} false; then :
  6953. $as_echo_n "(cached) " >&6
  6954. else
  6955. if test -n "$OTOOL"; then
  6956. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6957. else
  6958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6959. for as_dir in $PATH
  6960. do
  6961. IFS=$as_save_IFS
  6962. test -z "$as_dir" && as_dir=.
  6963. for ac_exec_ext in '' $ac_executable_extensions; do
  6964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6965. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6967. break 2
  6968. fi
  6969. done
  6970. done
  6971. IFS=$as_save_IFS
  6972. fi
  6973. fi
  6974. OTOOL=$ac_cv_prog_OTOOL
  6975. if test -n "$OTOOL"; then
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6977. $as_echo "$OTOOL" >&6; }
  6978. else
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6980. $as_echo "no" >&6; }
  6981. fi
  6982. fi
  6983. if test -z "$ac_cv_prog_OTOOL"; then
  6984. ac_ct_OTOOL=$OTOOL
  6985. # Extract the first word of "otool", so it can be a program name with args.
  6986. set dummy otool; ac_word=$2
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6988. $as_echo_n "checking for $ac_word... " >&6; }
  6989. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6990. $as_echo_n "(cached) " >&6
  6991. else
  6992. if test -n "$ac_ct_OTOOL"; then
  6993. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6994. else
  6995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6996. for as_dir in $PATH
  6997. do
  6998. IFS=$as_save_IFS
  6999. test -z "$as_dir" && as_dir=.
  7000. for ac_exec_ext in '' $ac_executable_extensions; do
  7001. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7002. ac_cv_prog_ac_ct_OTOOL="otool"
  7003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7004. break 2
  7005. fi
  7006. done
  7007. done
  7008. IFS=$as_save_IFS
  7009. fi
  7010. fi
  7011. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7012. if test -n "$ac_ct_OTOOL"; then
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7014. $as_echo "$ac_ct_OTOOL" >&6; }
  7015. else
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7017. $as_echo "no" >&6; }
  7018. fi
  7019. if test "x$ac_ct_OTOOL" = x; then
  7020. OTOOL=":"
  7021. else
  7022. case $cross_compiling:$ac_tool_warned in
  7023. yes:)
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7025. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7026. ac_tool_warned=yes ;;
  7027. esac
  7028. OTOOL=$ac_ct_OTOOL
  7029. fi
  7030. else
  7031. OTOOL="$ac_cv_prog_OTOOL"
  7032. fi
  7033. if test -n "$ac_tool_prefix"; then
  7034. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7035. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7037. $as_echo_n "checking for $ac_word... " >&6; }
  7038. if ${ac_cv_prog_OTOOL64+:} false; then :
  7039. $as_echo_n "(cached) " >&6
  7040. else
  7041. if test -n "$OTOOL64"; then
  7042. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7043. else
  7044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7045. for as_dir in $PATH
  7046. do
  7047. IFS=$as_save_IFS
  7048. test -z "$as_dir" && as_dir=.
  7049. for ac_exec_ext in '' $ac_executable_extensions; do
  7050. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7051. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7053. break 2
  7054. fi
  7055. done
  7056. done
  7057. IFS=$as_save_IFS
  7058. fi
  7059. fi
  7060. OTOOL64=$ac_cv_prog_OTOOL64
  7061. if test -n "$OTOOL64"; then
  7062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7063. $as_echo "$OTOOL64" >&6; }
  7064. else
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7066. $as_echo "no" >&6; }
  7067. fi
  7068. fi
  7069. if test -z "$ac_cv_prog_OTOOL64"; then
  7070. ac_ct_OTOOL64=$OTOOL64
  7071. # Extract the first word of "otool64", so it can be a program name with args.
  7072. set dummy otool64; ac_word=$2
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7074. $as_echo_n "checking for $ac_word... " >&6; }
  7075. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7076. $as_echo_n "(cached) " >&6
  7077. else
  7078. if test -n "$ac_ct_OTOOL64"; then
  7079. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7080. else
  7081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7082. for as_dir in $PATH
  7083. do
  7084. IFS=$as_save_IFS
  7085. test -z "$as_dir" && as_dir=.
  7086. for ac_exec_ext in '' $ac_executable_extensions; do
  7087. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7088. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7090. break 2
  7091. fi
  7092. done
  7093. done
  7094. IFS=$as_save_IFS
  7095. fi
  7096. fi
  7097. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7098. if test -n "$ac_ct_OTOOL64"; then
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7100. $as_echo "$ac_ct_OTOOL64" >&6; }
  7101. else
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7103. $as_echo "no" >&6; }
  7104. fi
  7105. if test "x$ac_ct_OTOOL64" = x; then
  7106. OTOOL64=":"
  7107. else
  7108. case $cross_compiling:$ac_tool_warned in
  7109. yes:)
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7111. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7112. ac_tool_warned=yes ;;
  7113. esac
  7114. OTOOL64=$ac_ct_OTOOL64
  7115. fi
  7116. else
  7117. OTOOL64="$ac_cv_prog_OTOOL64"
  7118. fi
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7120. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7121. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. lt_cv_apple_cc_single_mod=no
  7125. if test -z "${LT_MULTI_MODULE}"; then
  7126. # By default we will add the -single_module flag. You can override
  7127. # by either setting the environment variable LT_MULTI_MODULE
  7128. # non-empty at configure time, or by adding -multi_module to the
  7129. # link flags.
  7130. rm -rf libconftest.dylib*
  7131. echo "int foo(void){return 1;}" > conftest.c
  7132. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7133. -dynamiclib -Wl,-single_module conftest.c" >&5
  7134. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7135. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7136. _lt_result=$?
  7137. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7138. lt_cv_apple_cc_single_mod=yes
  7139. else
  7140. cat conftest.err >&5
  7141. fi
  7142. rm -rf libconftest.dylib*
  7143. rm -f conftest.*
  7144. fi
  7145. fi
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7147. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7149. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7150. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7151. $as_echo_n "(cached) " >&6
  7152. else
  7153. lt_cv_ld_exported_symbols_list=no
  7154. save_LDFLAGS=$LDFLAGS
  7155. echo "_main" > conftest.sym
  7156. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7158. /* end confdefs.h. */
  7159. int
  7160. main ()
  7161. {
  7162. ;
  7163. return 0;
  7164. }
  7165. _ACEOF
  7166. if ac_fn_c_try_link "$LINENO"; then :
  7167. lt_cv_ld_exported_symbols_list=yes
  7168. else
  7169. lt_cv_ld_exported_symbols_list=no
  7170. fi
  7171. rm -f core conftest.err conftest.$ac_objext \
  7172. conftest$ac_exeext conftest.$ac_ext
  7173. LDFLAGS="$save_LDFLAGS"
  7174. fi
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7176. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7178. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7179. if ${lt_cv_ld_force_load+:} false; then :
  7180. $as_echo_n "(cached) " >&6
  7181. else
  7182. lt_cv_ld_force_load=no
  7183. cat > conftest.c << _LT_EOF
  7184. int forced_loaded() { return 2;}
  7185. _LT_EOF
  7186. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7187. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7188. echo "$AR cru libconftest.a conftest.o" >&5
  7189. $AR cru libconftest.a conftest.o 2>&5
  7190. cat > conftest.c << _LT_EOF
  7191. int main() { return 0;}
  7192. _LT_EOF
  7193. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7194. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7195. _lt_result=$?
  7196. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7197. lt_cv_ld_force_load=yes
  7198. else
  7199. cat conftest.err >&5
  7200. fi
  7201. rm -f conftest.err libconftest.a conftest conftest.c
  7202. rm -rf conftest.dSYM
  7203. fi
  7204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7205. $as_echo "$lt_cv_ld_force_load" >&6; }
  7206. case $host_os in
  7207. rhapsody* | darwin1.[012])
  7208. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7209. darwin1.*)
  7210. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7211. darwin*) # darwin 5.x on
  7212. # if running on 10.5 or later, the deployment target defaults
  7213. # to the OS version, if on x86, and 10.4, the deployment
  7214. # target defaults to 10.4. Don't you love it?
  7215. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7216. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7217. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7218. 10.[012][,.]*)
  7219. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7220. 10.*)
  7221. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7222. esac
  7223. ;;
  7224. esac
  7225. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7226. _lt_dar_single_mod='$single_module'
  7227. fi
  7228. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7229. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7230. else
  7231. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7232. fi
  7233. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7234. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7235. else
  7236. _lt_dsymutil=
  7237. fi
  7238. ;;
  7239. esac
  7240. for ac_header in dlfcn.h
  7241. do :
  7242. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7243. "
  7244. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7245. cat >>confdefs.h <<_ACEOF
  7246. #define HAVE_DLFCN_H 1
  7247. _ACEOF
  7248. fi
  7249. done
  7250. ac_header_dirent=no
  7251. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  7252. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  7254. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  7255. if eval \${$as_ac_Header+:} false; then :
  7256. $as_echo_n "(cached) " >&6
  7257. else
  7258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7259. /* end confdefs.h. */
  7260. #include <sys/types.h>
  7261. #include <$ac_hdr>
  7262. int
  7263. main ()
  7264. {
  7265. if ((DIR *) 0)
  7266. return 0;
  7267. ;
  7268. return 0;
  7269. }
  7270. _ACEOF
  7271. if ac_fn_c_try_compile "$LINENO"; then :
  7272. eval "$as_ac_Header=yes"
  7273. else
  7274. eval "$as_ac_Header=no"
  7275. fi
  7276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7277. fi
  7278. eval ac_res=\$$as_ac_Header
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7280. $as_echo "$ac_res" >&6; }
  7281. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7282. cat >>confdefs.h <<_ACEOF
  7283. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  7284. _ACEOF
  7285. ac_header_dirent=$ac_hdr; break
  7286. fi
  7287. done
  7288. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  7289. if test $ac_header_dirent = dirent.h; then
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  7291. $as_echo_n "checking for library containing opendir... " >&6; }
  7292. if ${ac_cv_search_opendir+:} false; then :
  7293. $as_echo_n "(cached) " >&6
  7294. else
  7295. ac_func_search_save_LIBS=$LIBS
  7296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7297. /* end confdefs.h. */
  7298. /* Override any GCC internal prototype to avoid an error.
  7299. Use char because int might match the return type of a GCC
  7300. builtin and then its argument prototype would still apply. */
  7301. #ifdef __cplusplus
  7302. extern "C"
  7303. #endif
  7304. char opendir ();
  7305. int
  7306. main ()
  7307. {
  7308. return opendir ();
  7309. ;
  7310. return 0;
  7311. }
  7312. _ACEOF
  7313. for ac_lib in '' dir; do
  7314. if test -z "$ac_lib"; then
  7315. ac_res="none required"
  7316. else
  7317. ac_res=-l$ac_lib
  7318. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7319. fi
  7320. if ac_fn_c_try_link "$LINENO"; then :
  7321. ac_cv_search_opendir=$ac_res
  7322. fi
  7323. rm -f core conftest.err conftest.$ac_objext \
  7324. conftest$ac_exeext
  7325. if ${ac_cv_search_opendir+:} false; then :
  7326. break
  7327. fi
  7328. done
  7329. if ${ac_cv_search_opendir+:} false; then :
  7330. else
  7331. ac_cv_search_opendir=no
  7332. fi
  7333. rm conftest.$ac_ext
  7334. LIBS=$ac_func_search_save_LIBS
  7335. fi
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  7337. $as_echo "$ac_cv_search_opendir" >&6; }
  7338. ac_res=$ac_cv_search_opendir
  7339. if test "$ac_res" != no; then :
  7340. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7341. fi
  7342. else
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  7344. $as_echo_n "checking for library containing opendir... " >&6; }
  7345. if ${ac_cv_search_opendir+:} false; then :
  7346. $as_echo_n "(cached) " >&6
  7347. else
  7348. ac_func_search_save_LIBS=$LIBS
  7349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7350. /* end confdefs.h. */
  7351. /* Override any GCC internal prototype to avoid an error.
  7352. Use char because int might match the return type of a GCC
  7353. builtin and then its argument prototype would still apply. */
  7354. #ifdef __cplusplus
  7355. extern "C"
  7356. #endif
  7357. char opendir ();
  7358. int
  7359. main ()
  7360. {
  7361. return opendir ();
  7362. ;
  7363. return 0;
  7364. }
  7365. _ACEOF
  7366. for ac_lib in '' x; do
  7367. if test -z "$ac_lib"; then
  7368. ac_res="none required"
  7369. else
  7370. ac_res=-l$ac_lib
  7371. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7372. fi
  7373. if ac_fn_c_try_link "$LINENO"; then :
  7374. ac_cv_search_opendir=$ac_res
  7375. fi
  7376. rm -f core conftest.err conftest.$ac_objext \
  7377. conftest$ac_exeext
  7378. if ${ac_cv_search_opendir+:} false; then :
  7379. break
  7380. fi
  7381. done
  7382. if ${ac_cv_search_opendir+:} false; then :
  7383. else
  7384. ac_cv_search_opendir=no
  7385. fi
  7386. rm conftest.$ac_ext
  7387. LIBS=$ac_func_search_save_LIBS
  7388. fi
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  7390. $as_echo "$ac_cv_search_opendir" >&6; }
  7391. ac_res=$ac_cv_search_opendir
  7392. if test "$ac_res" != no; then :
  7393. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7394. fi
  7395. fi
  7396. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  7397. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  7398. cat >>confdefs.h <<_ACEOF
  7399. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  7400. _ACEOF
  7401. $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
  7402. fi
  7403. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  7404. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  7405. cat >>confdefs.h <<_ACEOF
  7406. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  7407. _ACEOF
  7408. $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
  7409. else
  7410. case " $LIBOBJS " in
  7411. *" fileblocks.$ac_objext "* ) ;;
  7412. *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
  7413. ;;
  7414. esac
  7415. fi
  7416. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  7417. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  7418. cat >>confdefs.h <<_ACEOF
  7419. #define HAVE_STRUCT_STAT_ST_RDEV 1
  7420. _ACEOF
  7421. $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
  7422. fi
  7423. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  7424. #include <$ac_cv_struct_tm>
  7425. "
  7426. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  7427. cat >>confdefs.h <<_ACEOF
  7428. #define HAVE_STRUCT_TM_TM_ZONE 1
  7429. _ACEOF
  7430. fi
  7431. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7432. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  7433. else
  7434. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  7435. "
  7436. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  7437. ac_have_decl=1
  7438. else
  7439. ac_have_decl=0
  7440. fi
  7441. cat >>confdefs.h <<_ACEOF
  7442. #define HAVE_DECL_TZNAME $ac_have_decl
  7443. _ACEOF
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  7445. $as_echo_n "checking for tzname... " >&6; }
  7446. if ${ac_cv_var_tzname+:} false; then :
  7447. $as_echo_n "(cached) " >&6
  7448. else
  7449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7450. /* end confdefs.h. */
  7451. #include <time.h>
  7452. #if !HAVE_DECL_TZNAME
  7453. extern char *tzname[];
  7454. #endif
  7455. int
  7456. main ()
  7457. {
  7458. return tzname[0][0];
  7459. ;
  7460. return 0;
  7461. }
  7462. _ACEOF
  7463. if ac_fn_c_try_link "$LINENO"; then :
  7464. ac_cv_var_tzname=yes
  7465. else
  7466. ac_cv_var_tzname=no
  7467. fi
  7468. rm -f core conftest.err conftest.$ac_objext \
  7469. conftest$ac_exeext conftest.$ac_ext
  7470. fi
  7471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  7472. $as_echo "$ac_cv_var_tzname" >&6; }
  7473. if test $ac_cv_var_tzname = yes; then
  7474. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  7475. fi
  7476. fi
  7477. ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
  7478. #include <sys/types.h>
  7479. #endif
  7480. #ifdef HAVE_SYS_STAT_H
  7481. #include <sys/stat.h>
  7482. #endif
  7483. "
  7484. if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
  7485. cat >>confdefs.h <<_ACEOF
  7486. #define HAVE_STRUCT_STAT_ST_DEV 1
  7487. _ACEOF
  7488. fi
  7489. ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
  7490. #include <sys/types.h>
  7491. #endif
  7492. #ifdef HAVE_SYS_STAT_H
  7493. #include <sys/stat.h>
  7494. #endif
  7495. "
  7496. if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
  7497. cat >>confdefs.h <<_ACEOF
  7498. #define HAVE_STRUCT_STAT_ST_INO 1
  7499. _ACEOF
  7500. fi
  7501. ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
  7502. #include <sys/types.h>
  7503. #endif
  7504. #ifdef HAVE_SYS_STAT_H
  7505. #include <sys/stat.h>
  7506. #endif
  7507. "
  7508. if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
  7509. cat >>confdefs.h <<_ACEOF
  7510. #define HAVE_STRUCT_STAT_ST_MODE 1
  7511. _ACEOF
  7512. fi
  7513. ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
  7514. #include <sys/types.h>
  7515. #endif
  7516. #ifdef HAVE_SYS_STAT_H
  7517. #include <sys/stat.h>
  7518. #endif
  7519. "
  7520. if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
  7521. cat >>confdefs.h <<_ACEOF
  7522. #define HAVE_STRUCT_STAT_ST_NLINK 1
  7523. _ACEOF
  7524. fi
  7525. ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
  7526. #include <sys/types.h>
  7527. #endif
  7528. #ifdef HAVE_SYS_STAT_H
  7529. #include <sys/stat.h>
  7530. #endif
  7531. "
  7532. if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
  7533. cat >>confdefs.h <<_ACEOF
  7534. #define HAVE_STRUCT_STAT_ST_UID 1
  7535. _ACEOF
  7536. fi
  7537. ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
  7538. #include <sys/types.h>
  7539. #endif
  7540. #ifdef HAVE_SYS_STAT_H
  7541. #include <sys/stat.h>
  7542. #endif
  7543. "
  7544. if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
  7545. cat >>confdefs.h <<_ACEOF
  7546. #define HAVE_STRUCT_STAT_ST_GID 1
  7547. _ACEOF
  7548. fi
  7549. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
  7550. #include <sys/types.h>
  7551. #endif
  7552. #ifdef HAVE_SYS_STAT_H
  7553. #include <sys/stat.h>
  7554. #endif
  7555. "
  7556. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  7557. cat >>confdefs.h <<_ACEOF
  7558. #define HAVE_STRUCT_STAT_ST_RDEV 1
  7559. _ACEOF
  7560. fi
  7561. ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
  7562. #include <sys/types.h>
  7563. #endif
  7564. #ifdef HAVE_SYS_STAT_H
  7565. #include <sys/stat.h>
  7566. #endif
  7567. "
  7568. if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
  7569. cat >>confdefs.h <<_ACEOF
  7570. #define HAVE_STRUCT_STAT_ST_SIZE 1
  7571. _ACEOF
  7572. fi
  7573. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
  7574. #include <sys/types.h>
  7575. #endif
  7576. #ifdef HAVE_SYS_STAT_H
  7577. #include <sys/stat.h>
  7578. #endif
  7579. "
  7580. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  7581. cat >>confdefs.h <<_ACEOF
  7582. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  7583. _ACEOF
  7584. fi
  7585. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
  7586. #include <sys/types.h>
  7587. #endif
  7588. #ifdef HAVE_SYS_STAT_H
  7589. #include <sys/stat.h>
  7590. #endif
  7591. "
  7592. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  7593. cat >>confdefs.h <<_ACEOF
  7594. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  7595. _ACEOF
  7596. fi
  7597. ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
  7598. #include <sys/types.h>
  7599. #endif
  7600. #ifdef HAVE_SYS_STAT_H
  7601. #include <sys/stat.h>
  7602. #endif
  7603. "
  7604. if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
  7605. cat >>confdefs.h <<_ACEOF
  7606. #define HAVE_STRUCT_STAT_ST_ATIME 1
  7607. _ACEOF
  7608. fi
  7609. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
  7610. #include <sys/types.h>
  7611. #endif
  7612. #ifdef HAVE_SYS_STAT_H
  7613. #include <sys/stat.h>
  7614. #endif
  7615. "
  7616. if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
  7617. cat >>confdefs.h <<_ACEOF
  7618. #define HAVE_STRUCT_STAT_ST_MTIME 1
  7619. _ACEOF
  7620. fi
  7621. ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
  7622. #include <sys/types.h>
  7623. #endif
  7624. #ifdef HAVE_SYS_STAT_H
  7625. #include <sys/stat.h>
  7626. #endif
  7627. "
  7628. if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
  7629. cat >>confdefs.h <<_ACEOF
  7630. #define HAVE_STRUCT_STAT_ST_CTIME 1
  7631. _ACEOF
  7632. fi
  7633. ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
  7634. if test "x$ac_cv_type___int128" = xyes; then :
  7635. cat >>confdefs.h <<_ACEOF
  7636. #define HAVE___INT128 1
  7637. _ACEOF
  7638. fi
  7639. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  7640. #include <sys/socket.h>
  7641. "
  7642. if test "x$ac_cv_type_socklen_t" = xyes; then :
  7643. cat >>confdefs.h <<_ACEOF
  7644. #define HAVE_SOCKLEN_T 1
  7645. _ACEOF
  7646. fi
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
  7648. $as_echo_n "checking type of array argument to getgroups... " >&6; }
  7649. if ${ac_cv_type_getgroups+:} false; then :
  7650. $as_echo_n "(cached) " >&6
  7651. else
  7652. if test "$cross_compiling" = yes; then :
  7653. ac_cv_type_getgroups=cross
  7654. else
  7655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7656. /* end confdefs.h. */
  7657. /* Thanks to Mike Rendell for this test. */
  7658. $ac_includes_default
  7659. #define NGID 256
  7660. #undef MAX
  7661. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  7662. int
  7663. main ()
  7664. {
  7665. gid_t gidset[NGID];
  7666. int i, n;
  7667. union { gid_t gval; long int lval; } val;
  7668. val.lval = -1;
  7669. for (i = 0; i < NGID; i++)
  7670. gidset[i] = val.gval;
  7671. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  7672. gidset);
  7673. /* Exit non-zero if getgroups seems to require an array of ints. This
  7674. happens when gid_t is short int but getgroups modifies an array
  7675. of ints. */
  7676. return n > 0 && gidset[n] != val.gval;
  7677. }
  7678. _ACEOF
  7679. if ac_fn_c_try_run "$LINENO"; then :
  7680. ac_cv_type_getgroups=gid_t
  7681. else
  7682. ac_cv_type_getgroups=int
  7683. fi
  7684. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7685. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7686. fi
  7687. if test $ac_cv_type_getgroups = cross; then
  7688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7689. /* end confdefs.h. */
  7690. #include <unistd.h>
  7691. _ACEOF
  7692. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7693. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
  7694. ac_cv_type_getgroups=gid_t
  7695. else
  7696. ac_cv_type_getgroups=int
  7697. fi
  7698. rm -f conftest*
  7699. fi
  7700. fi
  7701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
  7702. $as_echo "$ac_cv_type_getgroups" >&6; }
  7703. cat >>confdefs.h <<_ACEOF
  7704. #define GETGROUPS_T $ac_cv_type_getgroups
  7705. _ACEOF
  7706. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7707. if test "x$ac_cv_type_mode_t" = xyes; then :
  7708. else
  7709. cat >>confdefs.h <<_ACEOF
  7710. #define mode_t int
  7711. _ACEOF
  7712. fi
  7713. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7714. if test "x$ac_cv_type_off_t" = xyes; then :
  7715. else
  7716. cat >>confdefs.h <<_ACEOF
  7717. #define off_t long int
  7718. _ACEOF
  7719. fi
  7720. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7721. if test "x$ac_cv_type_pid_t" = xyes; then :
  7722. else
  7723. cat >>confdefs.h <<_ACEOF
  7724. #define pid_t int
  7725. _ACEOF
  7726. fi
  7727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  7728. $as_echo_n "checking return type of signal handlers... " >&6; }
  7729. if ${ac_cv_type_signal+:} false; then :
  7730. $as_echo_n "(cached) " >&6
  7731. else
  7732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7733. /* end confdefs.h. */
  7734. #include <sys/types.h>
  7735. #include <signal.h>
  7736. int
  7737. main ()
  7738. {
  7739. return *(signal (0, 0)) (0) == 1;
  7740. ;
  7741. return 0;
  7742. }
  7743. _ACEOF
  7744. if ac_fn_c_try_compile "$LINENO"; then :
  7745. ac_cv_type_signal=int
  7746. else
  7747. ac_cv_type_signal=void
  7748. fi
  7749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7750. fi
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  7752. $as_echo "$ac_cv_type_signal" >&6; }
  7753. cat >>confdefs.h <<_ACEOF
  7754. #define RETSIGTYPE $ac_cv_type_signal
  7755. _ACEOF
  7756. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7757. if test "x$ac_cv_type_size_t" = xyes; then :
  7758. else
  7759. cat >>confdefs.h <<_ACEOF
  7760. #define size_t unsigned int
  7761. _ACEOF
  7762. fi
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  7764. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  7765. if ${ac_cv_type_uid_t+:} false; then :
  7766. $as_echo_n "(cached) " >&6
  7767. else
  7768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7769. /* end confdefs.h. */
  7770. #include <sys/types.h>
  7771. _ACEOF
  7772. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7773. $EGREP "uid_t" >/dev/null 2>&1; then :
  7774. ac_cv_type_uid_t=yes
  7775. else
  7776. ac_cv_type_uid_t=no
  7777. fi
  7778. rm -f conftest*
  7779. fi
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  7781. $as_echo "$ac_cv_type_uid_t" >&6; }
  7782. if test $ac_cv_type_uid_t = no; then
  7783. $as_echo "#define uid_t int" >>confdefs.h
  7784. $as_echo "#define gid_t int" >>confdefs.h
  7785. fi
  7786. ALL_LINGUAS=
  7787. # If we haven't got the data from the intl directory,
  7788. # assume NLS is disabled.
  7789. USE_NLS=no
  7790. LIBINTL=
  7791. LIBINTL_DEP=
  7792. INCINTL=
  7793. XGETTEXT=
  7794. GMSGFMT=
  7795. POSUB=
  7796. if test -f ../intl/config.intl; then
  7797. . ../intl/config.intl
  7798. fi
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7800. $as_echo_n "checking whether NLS is requested... " >&6; }
  7801. if test x"$USE_NLS" != xyes; then
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7803. $as_echo "no" >&6; }
  7804. else
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7806. $as_echo "yes" >&6; }
  7807. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  7809. $as_echo_n "checking for catalogs to be installed... " >&6; }
  7810. # Look for .po and .gmo files in the source directory.
  7811. CATALOGS=
  7812. XLINGUAS=
  7813. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  7814. # If there aren't any .gmo files the shell will give us the
  7815. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  7816. # weeded out.
  7817. case "$cat" in *\**)
  7818. continue;;
  7819. esac
  7820. # The quadruple backslash is collapsed to a double backslash
  7821. # by the backticks, then collapsed again by the double quotes,
  7822. # leaving us with one backslash in the sed expression (right
  7823. # before the dot that mustn't act as a wildcard).
  7824. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  7825. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  7826. # The user is allowed to set LINGUAS to a list of languages to
  7827. # install catalogs for. If it's empty that means "all of them."
  7828. if test "x$LINGUAS" = x; then
  7829. CATALOGS="$CATALOGS $cat"
  7830. XLINGUAS="$XLINGUAS $lang"
  7831. else
  7832. case "$LINGUAS" in *$lang*)
  7833. CATALOGS="$CATALOGS $cat"
  7834. XLINGUAS="$XLINGUAS $lang"
  7835. ;;
  7836. esac
  7837. fi
  7838. done
  7839. LINGUAS="$XLINGUAS"
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  7841. $as_echo "$LINGUAS" >&6; }
  7842. DATADIRNAME=share
  7843. INSTOBJEXT=.mo
  7844. GENCAT=gencat
  7845. CATOBJEXT=.gmo
  7846. fi
  7847. # Use the system's zlib library.
  7848. zlibdir="-L\$(top_builddir)/../zlib"
  7849. zlibinc="-I\$(top_srcdir)/../zlib"
  7850. # Check whether --with-system-zlib was given.
  7851. if test "${with_system_zlib+set}" = set; then :
  7852. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7853. zlibdir=
  7854. zlibinc=
  7855. fi
  7856. fi
  7857. maybe_plugins=no
  7858. for ac_header in dlfcn.h
  7859. do :
  7860. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7861. "
  7862. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7863. cat >>confdefs.h <<_ACEOF
  7864. #define HAVE_DLFCN_H 1
  7865. _ACEOF
  7866. maybe_plugins=yes
  7867. fi
  7868. done
  7869. for ac_header in windows.h
  7870. do :
  7871. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7872. "
  7873. if test "x$ac_cv_header_windows_h" = xyes; then :
  7874. cat >>confdefs.h <<_ACEOF
  7875. #define HAVE_WINDOWS_H 1
  7876. _ACEOF
  7877. maybe_plugins=yes
  7878. fi
  7879. done
  7880. # Check whether --enable-plugins was given.
  7881. if test "${enable_plugins+set}" = set; then :
  7882. enableval=$enable_plugins; case "${enableval}" in
  7883. no) plugins=no ;;
  7884. *) plugins=yes
  7885. if test "$maybe_plugins" != "yes" ; then
  7886. as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7887. fi ;;
  7888. esac
  7889. else
  7890. plugins=$maybe_plugins
  7891. fi
  7892. if test "$plugins" = "yes"; then
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  7894. $as_echo_n "checking for library containing dlsym... " >&6; }
  7895. if ${ac_cv_search_dlsym+:} false; then :
  7896. $as_echo_n "(cached) " >&6
  7897. else
  7898. ac_func_search_save_LIBS=$LIBS
  7899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7900. /* end confdefs.h. */
  7901. /* Override any GCC internal prototype to avoid an error.
  7902. Use char because int might match the return type of a GCC
  7903. builtin and then its argument prototype would still apply. */
  7904. #ifdef __cplusplus
  7905. extern "C"
  7906. #endif
  7907. char dlsym ();
  7908. int
  7909. main ()
  7910. {
  7911. return dlsym ();
  7912. ;
  7913. return 0;
  7914. }
  7915. _ACEOF
  7916. for ac_lib in '' dl; do
  7917. if test -z "$ac_lib"; then
  7918. ac_res="none required"
  7919. else
  7920. ac_res=-l$ac_lib
  7921. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7922. fi
  7923. if ac_fn_c_try_link "$LINENO"; then :
  7924. ac_cv_search_dlsym=$ac_res
  7925. fi
  7926. rm -f core conftest.err conftest.$ac_objext \
  7927. conftest$ac_exeext
  7928. if ${ac_cv_search_dlsym+:} false; then :
  7929. break
  7930. fi
  7931. done
  7932. if ${ac_cv_search_dlsym+:} false; then :
  7933. else
  7934. ac_cv_search_dlsym=no
  7935. fi
  7936. rm conftest.$ac_ext
  7937. LIBS=$ac_func_search_save_LIBS
  7938. fi
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  7940. $as_echo "$ac_cv_search_dlsym" >&6; }
  7941. ac_res=$ac_cv_search_dlsym
  7942. if test "$ac_res" != no; then :
  7943. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7944. fi
  7945. fi
  7946. if test "$plugins" = yes; then
  7947. PLUGINS_TRUE=
  7948. PLUGINS_FALSE='#'
  7949. else
  7950. PLUGINS_TRUE='#'
  7951. PLUGINS_FALSE=
  7952. fi
  7953. # Set options
  7954. enable_dlopen=yes
  7955. enable_win32_dll=no
  7956. # Check whether --enable-shared was given.
  7957. if test "${enable_shared+set}" = set; then :
  7958. enableval=$enable_shared; p=${PACKAGE-default}
  7959. case $enableval in
  7960. yes) enable_shared=yes ;;
  7961. no) enable_shared=no ;;
  7962. *)
  7963. enable_shared=no
  7964. # Look at the argument we got. We use all the common list separators.
  7965. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7966. for pkg in $enableval; do
  7967. IFS="$lt_save_ifs"
  7968. if test "X$pkg" = "X$p"; then
  7969. enable_shared=yes
  7970. fi
  7971. done
  7972. IFS="$lt_save_ifs"
  7973. ;;
  7974. esac
  7975. else
  7976. enable_shared=yes
  7977. fi
  7978. # Check whether --enable-static was given.
  7979. if test "${enable_static+set}" = set; then :
  7980. enableval=$enable_static; p=${PACKAGE-default}
  7981. case $enableval in
  7982. yes) enable_static=yes ;;
  7983. no) enable_static=no ;;
  7984. *)
  7985. enable_static=no
  7986. # Look at the argument we got. We use all the common list separators.
  7987. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7988. for pkg in $enableval; do
  7989. IFS="$lt_save_ifs"
  7990. if test "X$pkg" = "X$p"; then
  7991. enable_static=yes
  7992. fi
  7993. done
  7994. IFS="$lt_save_ifs"
  7995. ;;
  7996. esac
  7997. else
  7998. enable_static=yes
  7999. fi
  8000. # Check whether --with-pic was given.
  8001. if test "${with_pic+set}" = set; then :
  8002. withval=$with_pic; pic_mode="$withval"
  8003. else
  8004. pic_mode=default
  8005. fi
  8006. test -z "$pic_mode" && pic_mode=default
  8007. # Check whether --enable-fast-install was given.
  8008. if test "${enable_fast_install+set}" = set; then :
  8009. enableval=$enable_fast_install; p=${PACKAGE-default}
  8010. case $enableval in
  8011. yes) enable_fast_install=yes ;;
  8012. no) enable_fast_install=no ;;
  8013. *)
  8014. enable_fast_install=no
  8015. # Look at the argument we got. We use all the common list separators.
  8016. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8017. for pkg in $enableval; do
  8018. IFS="$lt_save_ifs"
  8019. if test "X$pkg" = "X$p"; then
  8020. enable_fast_install=yes
  8021. fi
  8022. done
  8023. IFS="$lt_save_ifs"
  8024. ;;
  8025. esac
  8026. else
  8027. enable_fast_install=yes
  8028. fi
  8029. # This can be used to rebuild libtool when needed
  8030. LIBTOOL_DEPS="$ltmain"
  8031. # Always use our own libtool.
  8032. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8033. test -z "$LN_S" && LN_S="ln -s"
  8034. if test -n "${ZSH_VERSION+set}" ; then
  8035. setopt NO_GLOB_SUBST
  8036. fi
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8038. $as_echo_n "checking for objdir... " >&6; }
  8039. if ${lt_cv_objdir+:} false; then :
  8040. $as_echo_n "(cached) " >&6
  8041. else
  8042. rm -f .libs 2>/dev/null
  8043. mkdir .libs 2>/dev/null
  8044. if test -d .libs; then
  8045. lt_cv_objdir=.libs
  8046. else
  8047. # MS-DOS does not allow filenames that begin with a dot.
  8048. lt_cv_objdir=_libs
  8049. fi
  8050. rmdir .libs 2>/dev/null
  8051. fi
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8053. $as_echo "$lt_cv_objdir" >&6; }
  8054. objdir=$lt_cv_objdir
  8055. cat >>confdefs.h <<_ACEOF
  8056. #define LT_OBJDIR "$lt_cv_objdir/"
  8057. _ACEOF
  8058. case $host_os in
  8059. aix3*)
  8060. # AIX sometimes has problems with the GCC collect2 program. For some
  8061. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8062. # vanish in a puff of smoke.
  8063. if test "X${COLLECT_NAMES+set}" != Xset; then
  8064. COLLECT_NAMES=
  8065. export COLLECT_NAMES
  8066. fi
  8067. ;;
  8068. esac
  8069. # Global variables:
  8070. ofile=libtool
  8071. can_build_shared=yes
  8072. # All known linkers require a `.a' archive for static linking (except MSVC,
  8073. # which needs '.lib').
  8074. libext=a
  8075. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8076. old_CC="$CC"
  8077. old_CFLAGS="$CFLAGS"
  8078. # Set sane defaults for various variables
  8079. test -z "$CC" && CC=cc
  8080. test -z "$LTCC" && LTCC=$CC
  8081. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8082. test -z "$LD" && LD=ld
  8083. test -z "$ac_objext" && ac_objext=o
  8084. for cc_temp in $compiler""; do
  8085. case $cc_temp in
  8086. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8087. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8088. \-*) ;;
  8089. *) break;;
  8090. esac
  8091. done
  8092. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8093. # Only perform the check for file, if the check method requires it
  8094. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8095. case $deplibs_check_method in
  8096. file_magic*)
  8097. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8099. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8100. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8101. $as_echo_n "(cached) " >&6
  8102. else
  8103. case $MAGIC_CMD in
  8104. [\\/*] | ?:[\\/]*)
  8105. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8106. ;;
  8107. *)
  8108. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8109. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8110. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8111. for ac_dir in $ac_dummy; do
  8112. IFS="$lt_save_ifs"
  8113. test -z "$ac_dir" && ac_dir=.
  8114. if test -f $ac_dir/${ac_tool_prefix}file; then
  8115. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8116. if test -n "$file_magic_test_file"; then
  8117. case $deplibs_check_method in
  8118. "file_magic "*)
  8119. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8120. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8121. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8122. $EGREP "$file_magic_regex" > /dev/null; then
  8123. :
  8124. else
  8125. cat <<_LT_EOF 1>&2
  8126. *** Warning: the command libtool uses to detect shared libraries,
  8127. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8128. *** The result is that libtool may fail to recognize shared libraries
  8129. *** as such. This will affect the creation of libtool libraries that
  8130. *** depend on shared libraries, but programs linked with such libtool
  8131. *** libraries will work regardless of this problem. Nevertheless, you
  8132. *** may want to report the problem to your system manager and/or to
  8133. *** bug-libtool@gnu.org
  8134. _LT_EOF
  8135. fi ;;
  8136. esac
  8137. fi
  8138. break
  8139. fi
  8140. done
  8141. IFS="$lt_save_ifs"
  8142. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8143. ;;
  8144. esac
  8145. fi
  8146. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8147. if test -n "$MAGIC_CMD"; then
  8148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8149. $as_echo "$MAGIC_CMD" >&6; }
  8150. else
  8151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8152. $as_echo "no" >&6; }
  8153. fi
  8154. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8155. if test -n "$ac_tool_prefix"; then
  8156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8157. $as_echo_n "checking for file... " >&6; }
  8158. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8159. $as_echo_n "(cached) " >&6
  8160. else
  8161. case $MAGIC_CMD in
  8162. [\\/*] | ?:[\\/]*)
  8163. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8164. ;;
  8165. *)
  8166. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8167. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8168. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8169. for ac_dir in $ac_dummy; do
  8170. IFS="$lt_save_ifs"
  8171. test -z "$ac_dir" && ac_dir=.
  8172. if test -f $ac_dir/file; then
  8173. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8174. if test -n "$file_magic_test_file"; then
  8175. case $deplibs_check_method in
  8176. "file_magic "*)
  8177. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8178. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8179. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8180. $EGREP "$file_magic_regex" > /dev/null; then
  8181. :
  8182. else
  8183. cat <<_LT_EOF 1>&2
  8184. *** Warning: the command libtool uses to detect shared libraries,
  8185. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8186. *** The result is that libtool may fail to recognize shared libraries
  8187. *** as such. This will affect the creation of libtool libraries that
  8188. *** depend on shared libraries, but programs linked with such libtool
  8189. *** libraries will work regardless of this problem. Nevertheless, you
  8190. *** may want to report the problem to your system manager and/or to
  8191. *** bug-libtool@gnu.org
  8192. _LT_EOF
  8193. fi ;;
  8194. esac
  8195. fi
  8196. break
  8197. fi
  8198. done
  8199. IFS="$lt_save_ifs"
  8200. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8201. ;;
  8202. esac
  8203. fi
  8204. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8205. if test -n "$MAGIC_CMD"; then
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8207. $as_echo "$MAGIC_CMD" >&6; }
  8208. else
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8210. $as_echo "no" >&6; }
  8211. fi
  8212. else
  8213. MAGIC_CMD=:
  8214. fi
  8215. fi
  8216. fi
  8217. ;;
  8218. esac
  8219. # Use C for the default configuration in the libtool script
  8220. lt_save_CC="$CC"
  8221. ac_ext=c
  8222. ac_cpp='$CPP $CPPFLAGS'
  8223. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8224. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8225. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8226. # Source file extension for C test sources.
  8227. ac_ext=c
  8228. # Object file extension for compiled C test sources.
  8229. objext=o
  8230. objext=$objext
  8231. # Code to be used in simple compile tests
  8232. lt_simple_compile_test_code="int some_variable = 0;"
  8233. # Code to be used in simple link tests
  8234. lt_simple_link_test_code='int main(){return(0);}'
  8235. # If no C compiler was specified, use CC.
  8236. LTCC=${LTCC-"$CC"}
  8237. # If no C compiler flags were specified, use CFLAGS.
  8238. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8239. # Allow CC to be a program name with arguments.
  8240. compiler=$CC
  8241. # Save the default compiler, since it gets overwritten when the other
  8242. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8243. compiler_DEFAULT=$CC
  8244. # save warnings/boilerplate of simple test code
  8245. ac_outfile=conftest.$ac_objext
  8246. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8247. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8248. _lt_compiler_boilerplate=`cat conftest.err`
  8249. $RM conftest*
  8250. ac_outfile=conftest.$ac_objext
  8251. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8252. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8253. _lt_linker_boilerplate=`cat conftest.err`
  8254. $RM -r conftest*
  8255. ## CAVEAT EMPTOR:
  8256. ## There is no encapsulation within the following macros, do not change
  8257. ## the running order or otherwise move them around unless you know exactly
  8258. ## what you are doing...
  8259. if test -n "$compiler"; then
  8260. lt_prog_compiler_no_builtin_flag=
  8261. if test "$GCC" = yes; then
  8262. case $cc_basename in
  8263. nvcc*)
  8264. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8265. *)
  8266. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8267. esac
  8268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8269. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8270. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8271. $as_echo_n "(cached) " >&6
  8272. else
  8273. lt_cv_prog_compiler_rtti_exceptions=no
  8274. ac_outfile=conftest.$ac_objext
  8275. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8276. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8277. # Insert the option either (1) after the last *FLAGS variable, or
  8278. # (2) before a word containing "conftest.", or (3) at the end.
  8279. # Note that $ac_compile itself does not contain backslashes and begins
  8280. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8281. # The option is referenced via a variable to avoid confusing sed.
  8282. lt_compile=`echo "$ac_compile" | $SED \
  8283. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8284. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8285. -e 's:$: $lt_compiler_flag:'`
  8286. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8287. (eval "$lt_compile" 2>conftest.err)
  8288. ac_status=$?
  8289. cat conftest.err >&5
  8290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8291. if (exit $ac_status) && test -s "$ac_outfile"; then
  8292. # The compiler can only warn and ignore the option if not recognized
  8293. # So say no if there are warnings other than the usual output.
  8294. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8295. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8296. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8297. lt_cv_prog_compiler_rtti_exceptions=yes
  8298. fi
  8299. fi
  8300. $RM conftest*
  8301. fi
  8302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8303. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8304. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8305. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8306. else
  8307. :
  8308. fi
  8309. fi
  8310. lt_prog_compiler_wl=
  8311. lt_prog_compiler_pic=
  8312. lt_prog_compiler_static=
  8313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8314. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8315. if test "$GCC" = yes; then
  8316. lt_prog_compiler_wl='-Wl,'
  8317. lt_prog_compiler_static='-static'
  8318. case $host_os in
  8319. aix*)
  8320. # All AIX code is PIC.
  8321. if test "$host_cpu" = ia64; then
  8322. # AIX 5 now supports IA64 processor
  8323. lt_prog_compiler_static='-Bstatic'
  8324. fi
  8325. lt_prog_compiler_pic='-fPIC'
  8326. ;;
  8327. amigaos*)
  8328. case $host_cpu in
  8329. powerpc)
  8330. # see comment about AmigaOS4 .so support
  8331. lt_prog_compiler_pic='-fPIC'
  8332. ;;
  8333. m68k)
  8334. # FIXME: we need at least 68020 code to build shared libraries, but
  8335. # adding the `-m68020' flag to GCC prevents building anything better,
  8336. # like `-m68040'.
  8337. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8338. ;;
  8339. esac
  8340. ;;
  8341. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8342. # PIC is the default for these OSes.
  8343. ;;
  8344. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8345. # This hack is so that the source file can tell whether it is being
  8346. # built for inclusion in a dll (and should export symbols for example).
  8347. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8348. # (--disable-auto-import) libraries
  8349. lt_prog_compiler_pic='-DDLL_EXPORT'
  8350. ;;
  8351. darwin* | rhapsody*)
  8352. # PIC is the default on this platform
  8353. # Common symbols not allowed in MH_DYLIB files
  8354. lt_prog_compiler_pic='-fno-common'
  8355. ;;
  8356. haiku*)
  8357. # PIC is the default for Haiku.
  8358. # The "-static" flag exists, but is broken.
  8359. lt_prog_compiler_static=
  8360. ;;
  8361. hpux*)
  8362. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8363. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8364. # sets the default TLS model and affects inlining.
  8365. case $host_cpu in
  8366. hppa*64*)
  8367. # +Z the default
  8368. ;;
  8369. *)
  8370. lt_prog_compiler_pic='-fPIC'
  8371. ;;
  8372. esac
  8373. ;;
  8374. interix[3-9]*)
  8375. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8376. # Instead, we relocate shared libraries at runtime.
  8377. ;;
  8378. msdosdjgpp*)
  8379. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8380. # on systems that don't support them.
  8381. lt_prog_compiler_can_build_shared=no
  8382. enable_shared=no
  8383. ;;
  8384. *nto* | *qnx*)
  8385. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8386. # it will coredump.
  8387. lt_prog_compiler_pic='-fPIC -shared'
  8388. ;;
  8389. sysv4*MP*)
  8390. if test -d /usr/nec; then
  8391. lt_prog_compiler_pic=-Kconform_pic
  8392. fi
  8393. ;;
  8394. *)
  8395. lt_prog_compiler_pic='-fPIC'
  8396. ;;
  8397. esac
  8398. case $cc_basename in
  8399. nvcc*) # Cuda Compiler Driver 2.2
  8400. lt_prog_compiler_wl='-Xlinker '
  8401. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8402. ;;
  8403. esac
  8404. else
  8405. # PORTME Check for flag to pass linker flags through the system compiler.
  8406. case $host_os in
  8407. aix*)
  8408. lt_prog_compiler_wl='-Wl,'
  8409. if test "$host_cpu" = ia64; then
  8410. # AIX 5 now supports IA64 processor
  8411. lt_prog_compiler_static='-Bstatic'
  8412. else
  8413. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8414. fi
  8415. ;;
  8416. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8417. # This hack is so that the source file can tell whether it is being
  8418. # built for inclusion in a dll (and should export symbols for example).
  8419. lt_prog_compiler_pic='-DDLL_EXPORT'
  8420. ;;
  8421. hpux9* | hpux10* | hpux11*)
  8422. lt_prog_compiler_wl='-Wl,'
  8423. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8424. # not for PA HP-UX.
  8425. case $host_cpu in
  8426. hppa*64*|ia64*)
  8427. # +Z the default
  8428. ;;
  8429. *)
  8430. lt_prog_compiler_pic='+Z'
  8431. ;;
  8432. esac
  8433. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8434. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8435. ;;
  8436. irix5* | irix6* | nonstopux*)
  8437. lt_prog_compiler_wl='-Wl,'
  8438. # PIC (with -KPIC) is the default.
  8439. lt_prog_compiler_static='-non_shared'
  8440. ;;
  8441. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8442. case $cc_basename in
  8443. # old Intel for x86_64 which still supported -KPIC.
  8444. ecc*)
  8445. lt_prog_compiler_wl='-Wl,'
  8446. lt_prog_compiler_pic='-KPIC'
  8447. lt_prog_compiler_static='-static'
  8448. ;;
  8449. # icc used to be incompatible with GCC.
  8450. # ICC 10 doesn't accept -KPIC any more.
  8451. icc* | ifort*)
  8452. lt_prog_compiler_wl='-Wl,'
  8453. lt_prog_compiler_pic='-fPIC'
  8454. lt_prog_compiler_static='-static'
  8455. ;;
  8456. # Lahey Fortran 8.1.
  8457. lf95*)
  8458. lt_prog_compiler_wl='-Wl,'
  8459. lt_prog_compiler_pic='--shared'
  8460. lt_prog_compiler_static='--static'
  8461. ;;
  8462. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8463. # Portland Group compilers (*not* the Pentium gcc compiler,
  8464. # which looks to be a dead project)
  8465. lt_prog_compiler_wl='-Wl,'
  8466. lt_prog_compiler_pic='-fpic'
  8467. lt_prog_compiler_static='-Bstatic'
  8468. ;;
  8469. ccc*)
  8470. lt_prog_compiler_wl='-Wl,'
  8471. # All Alpha code is PIC.
  8472. lt_prog_compiler_static='-non_shared'
  8473. ;;
  8474. xl* | bgxl* | bgf* | mpixl*)
  8475. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8476. lt_prog_compiler_wl='-Wl,'
  8477. lt_prog_compiler_pic='-qpic'
  8478. lt_prog_compiler_static='-qstaticlink'
  8479. ;;
  8480. *)
  8481. case `$CC -V 2>&1 | sed 5q` in
  8482. *Sun\ F* | *Sun*Fortran*)
  8483. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8484. lt_prog_compiler_pic='-KPIC'
  8485. lt_prog_compiler_static='-Bstatic'
  8486. lt_prog_compiler_wl=''
  8487. ;;
  8488. *Sun\ C*)
  8489. # Sun C 5.9
  8490. lt_prog_compiler_pic='-KPIC'
  8491. lt_prog_compiler_static='-Bstatic'
  8492. lt_prog_compiler_wl='-Wl,'
  8493. ;;
  8494. esac
  8495. ;;
  8496. esac
  8497. ;;
  8498. newsos6)
  8499. lt_prog_compiler_pic='-KPIC'
  8500. lt_prog_compiler_static='-Bstatic'
  8501. ;;
  8502. *nto* | *qnx*)
  8503. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8504. # it will coredump.
  8505. lt_prog_compiler_pic='-fPIC -shared'
  8506. ;;
  8507. osf3* | osf4* | osf5*)
  8508. lt_prog_compiler_wl='-Wl,'
  8509. # All OSF/1 code is PIC.
  8510. lt_prog_compiler_static='-non_shared'
  8511. ;;
  8512. rdos*)
  8513. lt_prog_compiler_static='-non_shared'
  8514. ;;
  8515. solaris*)
  8516. lt_prog_compiler_pic='-KPIC'
  8517. lt_prog_compiler_static='-Bstatic'
  8518. case $cc_basename in
  8519. f77* | f90* | f95*)
  8520. lt_prog_compiler_wl='-Qoption ld ';;
  8521. *)
  8522. lt_prog_compiler_wl='-Wl,';;
  8523. esac
  8524. ;;
  8525. sunos4*)
  8526. lt_prog_compiler_wl='-Qoption ld '
  8527. lt_prog_compiler_pic='-PIC'
  8528. lt_prog_compiler_static='-Bstatic'
  8529. ;;
  8530. sysv4 | sysv4.2uw2* | sysv4.3*)
  8531. lt_prog_compiler_wl='-Wl,'
  8532. lt_prog_compiler_pic='-KPIC'
  8533. lt_prog_compiler_static='-Bstatic'
  8534. ;;
  8535. sysv4*MP*)
  8536. if test -d /usr/nec ;then
  8537. lt_prog_compiler_pic='-Kconform_pic'
  8538. lt_prog_compiler_static='-Bstatic'
  8539. fi
  8540. ;;
  8541. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8542. lt_prog_compiler_wl='-Wl,'
  8543. lt_prog_compiler_pic='-KPIC'
  8544. lt_prog_compiler_static='-Bstatic'
  8545. ;;
  8546. unicos*)
  8547. lt_prog_compiler_wl='-Wl,'
  8548. lt_prog_compiler_can_build_shared=no
  8549. ;;
  8550. uts4*)
  8551. lt_prog_compiler_pic='-pic'
  8552. lt_prog_compiler_static='-Bstatic'
  8553. ;;
  8554. *)
  8555. lt_prog_compiler_can_build_shared=no
  8556. ;;
  8557. esac
  8558. fi
  8559. case $host_os in
  8560. # For platforms which do not support PIC, -DPIC is meaningless:
  8561. *djgpp*)
  8562. lt_prog_compiler_pic=
  8563. ;;
  8564. *)
  8565. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8566. ;;
  8567. esac
  8568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8569. $as_echo "$lt_prog_compiler_pic" >&6; }
  8570. #
  8571. # Check to make sure the PIC flag actually works.
  8572. #
  8573. if test -n "$lt_prog_compiler_pic"; then
  8574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8575. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8576. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8577. $as_echo_n "(cached) " >&6
  8578. else
  8579. lt_cv_prog_compiler_pic_works=no
  8580. ac_outfile=conftest.$ac_objext
  8581. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8582. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8583. # Insert the option either (1) after the last *FLAGS variable, or
  8584. # (2) before a word containing "conftest.", or (3) at the end.
  8585. # Note that $ac_compile itself does not contain backslashes and begins
  8586. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8587. # The option is referenced via a variable to avoid confusing sed.
  8588. lt_compile=`echo "$ac_compile" | $SED \
  8589. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8590. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8591. -e 's:$: $lt_compiler_flag:'`
  8592. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8593. (eval "$lt_compile" 2>conftest.err)
  8594. ac_status=$?
  8595. cat conftest.err >&5
  8596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8597. if (exit $ac_status) && test -s "$ac_outfile"; then
  8598. # The compiler can only warn and ignore the option if not recognized
  8599. # So say no if there are warnings other than the usual output.
  8600. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8601. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8602. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8603. lt_cv_prog_compiler_pic_works=yes
  8604. fi
  8605. fi
  8606. $RM conftest*
  8607. fi
  8608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8609. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8610. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8611. case $lt_prog_compiler_pic in
  8612. "" | " "*) ;;
  8613. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8614. esac
  8615. else
  8616. lt_prog_compiler_pic=
  8617. lt_prog_compiler_can_build_shared=no
  8618. fi
  8619. fi
  8620. #
  8621. # Check to make sure the static flag actually works.
  8622. #
  8623. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8625. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8626. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8627. $as_echo_n "(cached) " >&6
  8628. else
  8629. lt_cv_prog_compiler_static_works=no
  8630. save_LDFLAGS="$LDFLAGS"
  8631. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8632. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8633. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8634. # The linker can only warn and ignore the option if not recognized
  8635. # So say no if there are warnings
  8636. if test -s conftest.err; then
  8637. # Append any errors to the config.log.
  8638. cat conftest.err 1>&5
  8639. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8641. if diff conftest.exp conftest.er2 >/dev/null; then
  8642. lt_cv_prog_compiler_static_works=yes
  8643. fi
  8644. else
  8645. lt_cv_prog_compiler_static_works=yes
  8646. fi
  8647. fi
  8648. $RM -r conftest*
  8649. LDFLAGS="$save_LDFLAGS"
  8650. fi
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8652. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8653. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8654. :
  8655. else
  8656. lt_prog_compiler_static=
  8657. fi
  8658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8659. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8660. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8661. $as_echo_n "(cached) " >&6
  8662. else
  8663. lt_cv_prog_compiler_c_o=no
  8664. $RM -r conftest 2>/dev/null
  8665. mkdir conftest
  8666. cd conftest
  8667. mkdir out
  8668. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8669. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8670. # Insert the option either (1) after the last *FLAGS variable, or
  8671. # (2) before a word containing "conftest.", or (3) at the end.
  8672. # Note that $ac_compile itself does not contain backslashes and begins
  8673. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8674. lt_compile=`echo "$ac_compile" | $SED \
  8675. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8676. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8677. -e 's:$: $lt_compiler_flag:'`
  8678. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8679. (eval "$lt_compile" 2>out/conftest.err)
  8680. ac_status=$?
  8681. cat out/conftest.err >&5
  8682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8683. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8684. then
  8685. # The compiler can only warn and ignore the option if not recognized
  8686. # So say no if there are warnings
  8687. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8688. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8689. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8690. lt_cv_prog_compiler_c_o=yes
  8691. fi
  8692. fi
  8693. chmod u+w . 2>&5
  8694. $RM conftest*
  8695. # SGI C++ compiler will create directory out/ii_files/ for
  8696. # template instantiation
  8697. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8698. $RM out/* && rmdir out
  8699. cd ..
  8700. $RM -r conftest
  8701. $RM conftest*
  8702. fi
  8703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8704. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8706. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8707. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8708. $as_echo_n "(cached) " >&6
  8709. else
  8710. lt_cv_prog_compiler_c_o=no
  8711. $RM -r conftest 2>/dev/null
  8712. mkdir conftest
  8713. cd conftest
  8714. mkdir out
  8715. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8716. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8717. # Insert the option either (1) after the last *FLAGS variable, or
  8718. # (2) before a word containing "conftest.", or (3) at the end.
  8719. # Note that $ac_compile itself does not contain backslashes and begins
  8720. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8721. lt_compile=`echo "$ac_compile" | $SED \
  8722. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8723. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8724. -e 's:$: $lt_compiler_flag:'`
  8725. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8726. (eval "$lt_compile" 2>out/conftest.err)
  8727. ac_status=$?
  8728. cat out/conftest.err >&5
  8729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8730. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8731. then
  8732. # The compiler can only warn and ignore the option if not recognized
  8733. # So say no if there are warnings
  8734. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8735. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8736. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8737. lt_cv_prog_compiler_c_o=yes
  8738. fi
  8739. fi
  8740. chmod u+w . 2>&5
  8741. $RM conftest*
  8742. # SGI C++ compiler will create directory out/ii_files/ for
  8743. # template instantiation
  8744. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8745. $RM out/* && rmdir out
  8746. cd ..
  8747. $RM -r conftest
  8748. $RM conftest*
  8749. fi
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8751. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8752. hard_links="nottested"
  8753. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8754. # do not overwrite the value of need_locks provided by the user
  8755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8756. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8757. hard_links=yes
  8758. $RM conftest*
  8759. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8760. touch conftest.a
  8761. ln conftest.a conftest.b 2>&5 || hard_links=no
  8762. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8764. $as_echo "$hard_links" >&6; }
  8765. if test "$hard_links" = no; then
  8766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8767. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8768. need_locks=warn
  8769. fi
  8770. else
  8771. need_locks=no
  8772. fi
  8773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8774. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8775. runpath_var=
  8776. allow_undefined_flag=
  8777. always_export_symbols=no
  8778. archive_cmds=
  8779. archive_expsym_cmds=
  8780. compiler_needs_object=no
  8781. enable_shared_with_static_runtimes=no
  8782. export_dynamic_flag_spec=
  8783. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8784. hardcode_automatic=no
  8785. hardcode_direct=no
  8786. hardcode_direct_absolute=no
  8787. hardcode_libdir_flag_spec=
  8788. hardcode_libdir_flag_spec_ld=
  8789. hardcode_libdir_separator=
  8790. hardcode_minus_L=no
  8791. hardcode_shlibpath_var=unsupported
  8792. inherit_rpath=no
  8793. link_all_deplibs=unknown
  8794. module_cmds=
  8795. module_expsym_cmds=
  8796. old_archive_from_new_cmds=
  8797. old_archive_from_expsyms_cmds=
  8798. thread_safe_flag_spec=
  8799. whole_archive_flag_spec=
  8800. # include_expsyms should be a list of space-separated symbols to be *always*
  8801. # included in the symbol list
  8802. include_expsyms=
  8803. # exclude_expsyms can be an extended regexp of symbols to exclude
  8804. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8805. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8806. # as well as any symbol that contains `d'.
  8807. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8808. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8809. # platforms (ab)use it in PIC code, but their linkers get confused if
  8810. # the symbol is explicitly referenced. Since portable code cannot
  8811. # rely on this symbol name, it's probably fine to never include it in
  8812. # preloaded symbol tables.
  8813. # Exclude shared library initialization/finalization symbols.
  8814. extract_expsyms_cmds=
  8815. case $host_os in
  8816. cygwin* | mingw* | pw32* | cegcc*)
  8817. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8818. # When not using gcc, we currently assume that we are using
  8819. # Microsoft Visual C++.
  8820. if test "$GCC" != yes; then
  8821. with_gnu_ld=no
  8822. fi
  8823. ;;
  8824. interix*)
  8825. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8826. with_gnu_ld=yes
  8827. ;;
  8828. openbsd*)
  8829. with_gnu_ld=no
  8830. ;;
  8831. esac
  8832. ld_shlibs=yes
  8833. # On some targets, GNU ld is compatible enough with the native linker
  8834. # that we're better off using the native interface for both.
  8835. lt_use_gnu_ld_interface=no
  8836. if test "$with_gnu_ld" = yes; then
  8837. case $host_os in
  8838. aix*)
  8839. # The AIX port of GNU ld has always aspired to compatibility
  8840. # with the native linker. However, as the warning in the GNU ld
  8841. # block says, versions before 2.19.5* couldn't really create working
  8842. # shared libraries, regardless of the interface used.
  8843. case `$LD -v 2>&1` in
  8844. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8845. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8846. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8847. *)
  8848. lt_use_gnu_ld_interface=yes
  8849. ;;
  8850. esac
  8851. ;;
  8852. *)
  8853. lt_use_gnu_ld_interface=yes
  8854. ;;
  8855. esac
  8856. fi
  8857. if test "$lt_use_gnu_ld_interface" = yes; then
  8858. # If archive_cmds runs LD, not CC, wlarc should be empty
  8859. wlarc='${wl}'
  8860. # Set some defaults for GNU ld with shared library support. These
  8861. # are reset later if shared libraries are not supported. Putting them
  8862. # here allows them to be overridden if necessary.
  8863. runpath_var=LD_RUN_PATH
  8864. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8865. export_dynamic_flag_spec='${wl}--export-dynamic'
  8866. # ancient GNU ld didn't support --whole-archive et. al.
  8867. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8868. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8869. else
  8870. whole_archive_flag_spec=
  8871. fi
  8872. supports_anon_versioning=no
  8873. case `$LD -v 2>&1` in
  8874. *GNU\ gold*) supports_anon_versioning=yes ;;
  8875. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8876. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8877. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8878. *\ 2.11.*) ;; # other 2.11 versions
  8879. *) supports_anon_versioning=yes ;;
  8880. esac
  8881. # See if GNU ld supports shared libraries.
  8882. case $host_os in
  8883. aix[3-9]*)
  8884. # On AIX/PPC, the GNU linker is very broken
  8885. if test "$host_cpu" != ia64; then
  8886. ld_shlibs=no
  8887. cat <<_LT_EOF 1>&2
  8888. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8889. *** to be unable to reliably create shared libraries on AIX.
  8890. *** Therefore, libtool is disabling shared libraries support. If you
  8891. *** really care for shared libraries, you may want to install binutils
  8892. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8893. *** You will then need to restart the configuration process.
  8894. _LT_EOF
  8895. fi
  8896. ;;
  8897. amigaos*)
  8898. case $host_cpu in
  8899. powerpc)
  8900. # see comment about AmigaOS4 .so support
  8901. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8902. archive_expsym_cmds=''
  8903. ;;
  8904. m68k)
  8905. 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)'
  8906. hardcode_libdir_flag_spec='-L$libdir'
  8907. hardcode_minus_L=yes
  8908. ;;
  8909. esac
  8910. ;;
  8911. beos*)
  8912. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8913. allow_undefined_flag=unsupported
  8914. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8915. # support --undefined. This deserves some investigation. FIXME
  8916. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8917. else
  8918. ld_shlibs=no
  8919. fi
  8920. ;;
  8921. cygwin* | mingw* | pw32* | cegcc*)
  8922. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8923. # as there is no search path for DLLs.
  8924. hardcode_libdir_flag_spec='-L$libdir'
  8925. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8926. allow_undefined_flag=unsupported
  8927. always_export_symbols=no
  8928. enable_shared_with_static_runtimes=yes
  8929. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8930. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8931. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8932. # If the export-symbols file already is a .def file (1st line
  8933. # is EXPORTS), use it as is; otherwise, prepend...
  8934. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8935. cp $export_symbols $output_objdir/$soname.def;
  8936. else
  8937. echo EXPORTS > $output_objdir/$soname.def;
  8938. cat $export_symbols >> $output_objdir/$soname.def;
  8939. fi~
  8940. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8941. else
  8942. ld_shlibs=no
  8943. fi
  8944. ;;
  8945. haiku*)
  8946. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8947. link_all_deplibs=yes
  8948. ;;
  8949. interix[3-9]*)
  8950. hardcode_direct=no
  8951. hardcode_shlibpath_var=no
  8952. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8953. export_dynamic_flag_spec='${wl}-E'
  8954. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8955. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8956. # default) and relocated if they conflict, which is a slow very memory
  8957. # consuming and fragmenting process. To avoid this, we pick a random,
  8958. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8959. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8960. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8961. 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'
  8962. ;;
  8963. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8964. tmp_diet=no
  8965. if test "$host_os" = linux-dietlibc; then
  8966. case $cc_basename in
  8967. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8968. esac
  8969. fi
  8970. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8971. && test "$tmp_diet" = no
  8972. then
  8973. tmp_addflag=' $pic_flag'
  8974. tmp_sharedflag='-shared'
  8975. case $cc_basename,$host_cpu in
  8976. pgcc*) # Portland Group C compiler
  8977. 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'
  8978. tmp_addflag=' $pic_flag'
  8979. ;;
  8980. pgf77* | pgf90* | pgf95* | pgfortran*)
  8981. # Portland Group f77 and f90 compilers
  8982. 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'
  8983. tmp_addflag=' $pic_flag -Mnomain' ;;
  8984. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8985. tmp_addflag=' -i_dynamic' ;;
  8986. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8987. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8988. ifc* | ifort*) # Intel Fortran compiler
  8989. tmp_addflag=' -nofor_main' ;;
  8990. lf95*) # Lahey Fortran 8.1
  8991. whole_archive_flag_spec=
  8992. tmp_sharedflag='--shared' ;;
  8993. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8994. tmp_sharedflag='-qmkshrobj'
  8995. tmp_addflag= ;;
  8996. nvcc*) # Cuda Compiler Driver 2.2
  8997. 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'
  8998. compiler_needs_object=yes
  8999. ;;
  9000. esac
  9001. case `$CC -V 2>&1 | sed 5q` in
  9002. *Sun\ C*) # Sun C 5.9
  9003. 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'
  9004. compiler_needs_object=yes
  9005. tmp_sharedflag='-G' ;;
  9006. *Sun\ F*) # Sun Fortran 8.3
  9007. tmp_sharedflag='-G' ;;
  9008. esac
  9009. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9010. if test "x$supports_anon_versioning" = xyes; then
  9011. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9012. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9013. echo "local: *; };" >> $output_objdir/$libname.ver~
  9014. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9015. fi
  9016. case $cc_basename in
  9017. xlf* | bgf* | bgxlf* | mpixlf*)
  9018. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9019. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9020. hardcode_libdir_flag_spec=
  9021. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9022. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  9023. if test "x$supports_anon_versioning" = xyes; then
  9024. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9025. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9026. echo "local: *; };" >> $output_objdir/$libname.ver~
  9027. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9028. fi
  9029. ;;
  9030. esac
  9031. else
  9032. ld_shlibs=no
  9033. fi
  9034. ;;
  9035. netbsd*)
  9036. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9037. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9038. wlarc=
  9039. else
  9040. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9041. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9042. fi
  9043. ;;
  9044. solaris*)
  9045. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9046. ld_shlibs=no
  9047. cat <<_LT_EOF 1>&2
  9048. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9049. *** create shared libraries on Solaris systems. Therefore, libtool
  9050. *** is disabling shared libraries support. We urge you to upgrade GNU
  9051. *** binutils to release 2.9.1 or newer. Another option is to modify
  9052. *** your PATH or compiler configuration so that the native linker is
  9053. *** used, and then restart.
  9054. _LT_EOF
  9055. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9056. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9057. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9058. else
  9059. ld_shlibs=no
  9060. fi
  9061. ;;
  9062. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9063. case `$LD -v 2>&1` in
  9064. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9065. ld_shlibs=no
  9066. cat <<_LT_EOF 1>&2
  9067. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9068. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9069. *** is disabling shared libraries support. We urge you to upgrade GNU
  9070. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9071. *** your PATH or compiler configuration so that the native linker is
  9072. *** used, and then restart.
  9073. _LT_EOF
  9074. ;;
  9075. *)
  9076. # For security reasons, it is highly recommended that you always
  9077. # use absolute paths for naming shared libraries, and exclude the
  9078. # DT_RUNPATH tag from executables and libraries. But doing so
  9079. # requires that you compile everything twice, which is a pain.
  9080. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9081. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9082. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9083. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9084. else
  9085. ld_shlibs=no
  9086. fi
  9087. ;;
  9088. esac
  9089. ;;
  9090. sunos4*)
  9091. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9092. wlarc=
  9093. hardcode_direct=yes
  9094. hardcode_shlibpath_var=no
  9095. ;;
  9096. *)
  9097. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9098. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9099. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9100. else
  9101. ld_shlibs=no
  9102. fi
  9103. ;;
  9104. esac
  9105. if test "$ld_shlibs" = no; then
  9106. runpath_var=
  9107. hardcode_libdir_flag_spec=
  9108. export_dynamic_flag_spec=
  9109. whole_archive_flag_spec=
  9110. fi
  9111. else
  9112. # PORTME fill in a description of your system's linker (not GNU ld)
  9113. case $host_os in
  9114. aix3*)
  9115. allow_undefined_flag=unsupported
  9116. always_export_symbols=yes
  9117. 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'
  9118. # Note: this linker hardcodes the directories in LIBPATH if there
  9119. # are no directories specified by -L.
  9120. hardcode_minus_L=yes
  9121. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9122. # Neither direct hardcoding nor static linking is supported with a
  9123. # broken collect2.
  9124. hardcode_direct=unsupported
  9125. fi
  9126. ;;
  9127. aix[4-9]*)
  9128. if test "$host_cpu" = ia64; then
  9129. # On IA64, the linker does run time linking by default, so we don't
  9130. # have to do anything special.
  9131. aix_use_runtimelinking=no
  9132. exp_sym_flag='-Bexport'
  9133. no_entry_flag=""
  9134. else
  9135. # If we're using GNU nm, then we don't want the "-C" option.
  9136. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9137. # Also, AIX nm treats weak defined symbols like other global
  9138. # defined symbols, whereas GNU nm marks them as "W".
  9139. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9140. 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'
  9141. else
  9142. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9143. fi
  9144. aix_use_runtimelinking=no
  9145. # Test if we are trying to use run time linking or normal
  9146. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9147. # need to do runtime linking.
  9148. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9149. for ld_flag in $LDFLAGS; do
  9150. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9151. aix_use_runtimelinking=yes
  9152. break
  9153. fi
  9154. done
  9155. ;;
  9156. esac
  9157. exp_sym_flag='-bexport'
  9158. no_entry_flag='-bnoentry'
  9159. fi
  9160. # When large executables or shared objects are built, AIX ld can
  9161. # have problems creating the table of contents. If linking a library
  9162. # or program results in "error TOC overflow" add -mminimal-toc to
  9163. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9164. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9165. archive_cmds=''
  9166. hardcode_direct=yes
  9167. hardcode_direct_absolute=yes
  9168. hardcode_libdir_separator=':'
  9169. link_all_deplibs=yes
  9170. file_list_spec='${wl}-f,'
  9171. if test "$GCC" = yes; then
  9172. case $host_os in aix4.[012]|aix4.[012].*)
  9173. # We only want to do this on AIX 4.2 and lower, the check
  9174. # below for broken collect2 doesn't work under 4.3+
  9175. collect2name=`${CC} -print-prog-name=collect2`
  9176. if test -f "$collect2name" &&
  9177. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9178. then
  9179. # We have reworked collect2
  9180. :
  9181. else
  9182. # We have old collect2
  9183. hardcode_direct=unsupported
  9184. # It fails to find uninstalled libraries when the uninstalled
  9185. # path is not listed in the libpath. Setting hardcode_minus_L
  9186. # to unsupported forces relinking
  9187. hardcode_minus_L=yes
  9188. hardcode_libdir_flag_spec='-L$libdir'
  9189. hardcode_libdir_separator=
  9190. fi
  9191. ;;
  9192. esac
  9193. shared_flag='-shared'
  9194. if test "$aix_use_runtimelinking" = yes; then
  9195. shared_flag="$shared_flag "'${wl}-G'
  9196. fi
  9197. else
  9198. # not using gcc
  9199. if test "$host_cpu" = ia64; then
  9200. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9201. # chokes on -Wl,-G. The following line is correct:
  9202. shared_flag='-G'
  9203. else
  9204. if test "$aix_use_runtimelinking" = yes; then
  9205. shared_flag='${wl}-G'
  9206. else
  9207. shared_flag='${wl}-bM:SRE'
  9208. fi
  9209. fi
  9210. fi
  9211. export_dynamic_flag_spec='${wl}-bexpall'
  9212. # It seems that -bexpall does not export symbols beginning with
  9213. # underscore (_), so it is better to generate a list of symbols to export.
  9214. always_export_symbols=yes
  9215. if test "$aix_use_runtimelinking" = yes; then
  9216. # Warning - without using the other runtime loading flags (-brtl),
  9217. # -berok will link without error, but may produce a broken library.
  9218. allow_undefined_flag='-berok'
  9219. # Determine the default libpath from the value encoded in an
  9220. # empty executable.
  9221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9222. /* end confdefs.h. */
  9223. int
  9224. main ()
  9225. {
  9226. ;
  9227. return 0;
  9228. }
  9229. _ACEOF
  9230. if ac_fn_c_try_link "$LINENO"; then :
  9231. lt_aix_libpath_sed='
  9232. /Import File Strings/,/^$/ {
  9233. /^0/ {
  9234. s/^0 *\(.*\)$/\1/
  9235. p
  9236. }
  9237. }'
  9238. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9239. # Check for a 64-bit object if we didn't find anything.
  9240. if test -z "$aix_libpath"; then
  9241. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9242. fi
  9243. fi
  9244. rm -f core conftest.err conftest.$ac_objext \
  9245. conftest$ac_exeext conftest.$ac_ext
  9246. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9247. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9248. 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"
  9249. else
  9250. if test "$host_cpu" = ia64; then
  9251. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9252. allow_undefined_flag="-z nodefs"
  9253. 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"
  9254. else
  9255. # Determine the default libpath from the value encoded in an
  9256. # empty executable.
  9257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9258. /* end confdefs.h. */
  9259. int
  9260. main ()
  9261. {
  9262. ;
  9263. return 0;
  9264. }
  9265. _ACEOF
  9266. if ac_fn_c_try_link "$LINENO"; then :
  9267. lt_aix_libpath_sed='
  9268. /Import File Strings/,/^$/ {
  9269. /^0/ {
  9270. s/^0 *\(.*\)$/\1/
  9271. p
  9272. }
  9273. }'
  9274. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9275. # Check for a 64-bit object if we didn't find anything.
  9276. if test -z "$aix_libpath"; then
  9277. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9278. fi
  9279. fi
  9280. rm -f core conftest.err conftest.$ac_objext \
  9281. conftest$ac_exeext conftest.$ac_ext
  9282. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9283. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9284. # Warning - without using the other run time loading flags,
  9285. # -berok will link without error, but may produce a broken library.
  9286. no_undefined_flag=' ${wl}-bernotok'
  9287. allow_undefined_flag=' ${wl}-berok'
  9288. if test "$with_gnu_ld" = yes; then
  9289. # We only use this code for GNU lds that support --whole-archive.
  9290. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9291. else
  9292. # Exported symbols can be pulled into shared objects from archives
  9293. whole_archive_flag_spec='$convenience'
  9294. fi
  9295. archive_cmds_need_lc=yes
  9296. # This is similar to how AIX traditionally builds its shared libraries.
  9297. 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'
  9298. fi
  9299. fi
  9300. ;;
  9301. amigaos*)
  9302. case $host_cpu in
  9303. powerpc)
  9304. # see comment about AmigaOS4 .so support
  9305. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9306. archive_expsym_cmds=''
  9307. ;;
  9308. m68k)
  9309. 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)'
  9310. hardcode_libdir_flag_spec='-L$libdir'
  9311. hardcode_minus_L=yes
  9312. ;;
  9313. esac
  9314. ;;
  9315. bsdi[45]*)
  9316. export_dynamic_flag_spec=-rdynamic
  9317. ;;
  9318. cygwin* | mingw* | pw32* | cegcc*)
  9319. # When not using gcc, we currently assume that we are using
  9320. # Microsoft Visual C++.
  9321. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9322. # no search path for DLLs.
  9323. hardcode_libdir_flag_spec=' '
  9324. allow_undefined_flag=unsupported
  9325. # Tell ltmain to make .lib files, not .a files.
  9326. libext=lib
  9327. # Tell ltmain to make .dll files, not .so files.
  9328. shrext_cmds=".dll"
  9329. # FIXME: Setting linknames here is a bad hack.
  9330. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9331. # The linker will automatically build a .lib file if we build a DLL.
  9332. old_archive_from_new_cmds='true'
  9333. # FIXME: Should let the user specify the lib program.
  9334. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9335. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9336. enable_shared_with_static_runtimes=yes
  9337. ;;
  9338. darwin* | rhapsody*)
  9339. archive_cmds_need_lc=no
  9340. hardcode_direct=no
  9341. hardcode_automatic=yes
  9342. hardcode_shlibpath_var=unsupported
  9343. if test "$lt_cv_ld_force_load" = "yes"; then
  9344. 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\"`'
  9345. else
  9346. whole_archive_flag_spec=''
  9347. fi
  9348. link_all_deplibs=yes
  9349. allow_undefined_flag="$_lt_dar_allow_undefined"
  9350. case $cc_basename in
  9351. ifort*) _lt_dar_can_shared=yes ;;
  9352. *) _lt_dar_can_shared=$GCC ;;
  9353. esac
  9354. if test "$_lt_dar_can_shared" = "yes"; then
  9355. output_verbose_link_cmd=func_echo_all
  9356. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9357. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9358. 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}"
  9359. 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}"
  9360. else
  9361. ld_shlibs=no
  9362. fi
  9363. ;;
  9364. dgux*)
  9365. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9366. hardcode_libdir_flag_spec='-L$libdir'
  9367. hardcode_shlibpath_var=no
  9368. ;;
  9369. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9370. # support. Future versions do this automatically, but an explicit c++rt0.o
  9371. # does not break anything, and helps significantly (at the cost of a little
  9372. # extra space).
  9373. freebsd2.2*)
  9374. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9375. hardcode_libdir_flag_spec='-R$libdir'
  9376. hardcode_direct=yes
  9377. hardcode_shlibpath_var=no
  9378. ;;
  9379. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9380. freebsd2.*)
  9381. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9382. hardcode_direct=yes
  9383. hardcode_minus_L=yes
  9384. hardcode_shlibpath_var=no
  9385. ;;
  9386. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9387. freebsd* | dragonfly*)
  9388. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9389. hardcode_libdir_flag_spec='-R$libdir'
  9390. hardcode_direct=yes
  9391. hardcode_shlibpath_var=no
  9392. ;;
  9393. hpux9*)
  9394. if test "$GCC" = yes; then
  9395. 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'
  9396. else
  9397. 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'
  9398. fi
  9399. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9400. hardcode_libdir_separator=:
  9401. hardcode_direct=yes
  9402. # hardcode_minus_L: Not really in the search PATH,
  9403. # but as the default location of the library.
  9404. hardcode_minus_L=yes
  9405. export_dynamic_flag_spec='${wl}-E'
  9406. ;;
  9407. hpux10*)
  9408. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9409. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9410. else
  9411. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9412. fi
  9413. if test "$with_gnu_ld" = no; then
  9414. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9415. hardcode_libdir_flag_spec_ld='+b $libdir'
  9416. hardcode_libdir_separator=:
  9417. hardcode_direct=yes
  9418. hardcode_direct_absolute=yes
  9419. export_dynamic_flag_spec='${wl}-E'
  9420. # hardcode_minus_L: Not really in the search PATH,
  9421. # but as the default location of the library.
  9422. hardcode_minus_L=yes
  9423. fi
  9424. ;;
  9425. hpux11*)
  9426. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9427. case $host_cpu in
  9428. hppa*64*)
  9429. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9430. ;;
  9431. ia64*)
  9432. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9433. ;;
  9434. *)
  9435. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9436. ;;
  9437. esac
  9438. else
  9439. case $host_cpu in
  9440. hppa*64*)
  9441. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9442. ;;
  9443. ia64*)
  9444. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9445. ;;
  9446. *)
  9447. # Older versions of the 11.00 compiler do not understand -b yet
  9448. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9450. $as_echo_n "checking if $CC understands -b... " >&6; }
  9451. if ${lt_cv_prog_compiler__b+:} false; then :
  9452. $as_echo_n "(cached) " >&6
  9453. else
  9454. lt_cv_prog_compiler__b=no
  9455. save_LDFLAGS="$LDFLAGS"
  9456. LDFLAGS="$LDFLAGS -b"
  9457. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9458. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9459. # The linker can only warn and ignore the option if not recognized
  9460. # So say no if there are warnings
  9461. if test -s conftest.err; then
  9462. # Append any errors to the config.log.
  9463. cat conftest.err 1>&5
  9464. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9465. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9466. if diff conftest.exp conftest.er2 >/dev/null; then
  9467. lt_cv_prog_compiler__b=yes
  9468. fi
  9469. else
  9470. lt_cv_prog_compiler__b=yes
  9471. fi
  9472. fi
  9473. $RM -r conftest*
  9474. LDFLAGS="$save_LDFLAGS"
  9475. fi
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9477. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9478. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9479. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9480. else
  9481. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9482. fi
  9483. ;;
  9484. esac
  9485. fi
  9486. if test "$with_gnu_ld" = no; then
  9487. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9488. hardcode_libdir_separator=:
  9489. case $host_cpu in
  9490. hppa*64*|ia64*)
  9491. hardcode_direct=no
  9492. hardcode_shlibpath_var=no
  9493. ;;
  9494. *)
  9495. hardcode_direct=yes
  9496. hardcode_direct_absolute=yes
  9497. export_dynamic_flag_spec='${wl}-E'
  9498. # hardcode_minus_L: Not really in the search PATH,
  9499. # but as the default location of the library.
  9500. hardcode_minus_L=yes
  9501. ;;
  9502. esac
  9503. fi
  9504. ;;
  9505. irix5* | irix6* | nonstopux*)
  9506. if test "$GCC" = yes; then
  9507. 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'
  9508. # Try to use the -exported_symbol ld option, if it does not
  9509. # work, assume that -exports_file does not work either and
  9510. # implicitly export all symbols.
  9511. save_LDFLAGS="$LDFLAGS"
  9512. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9514. /* end confdefs.h. */
  9515. int foo(void) {}
  9516. _ACEOF
  9517. if ac_fn_c_try_link "$LINENO"; then :
  9518. 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'
  9519. fi
  9520. rm -f core conftest.err conftest.$ac_objext \
  9521. conftest$ac_exeext conftest.$ac_ext
  9522. LDFLAGS="$save_LDFLAGS"
  9523. else
  9524. 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'
  9525. 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'
  9526. fi
  9527. archive_cmds_need_lc='no'
  9528. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9529. hardcode_libdir_separator=:
  9530. inherit_rpath=yes
  9531. link_all_deplibs=yes
  9532. ;;
  9533. netbsd*)
  9534. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9535. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9536. else
  9537. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9538. fi
  9539. hardcode_libdir_flag_spec='-R$libdir'
  9540. hardcode_direct=yes
  9541. hardcode_shlibpath_var=no
  9542. ;;
  9543. newsos6)
  9544. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9545. hardcode_direct=yes
  9546. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9547. hardcode_libdir_separator=:
  9548. hardcode_shlibpath_var=no
  9549. ;;
  9550. *nto* | *qnx*)
  9551. ;;
  9552. openbsd*)
  9553. if test -f /usr/libexec/ld.so; then
  9554. hardcode_direct=yes
  9555. hardcode_shlibpath_var=no
  9556. hardcode_direct_absolute=yes
  9557. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9558. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9559. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9560. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9561. export_dynamic_flag_spec='${wl}-E'
  9562. else
  9563. case $host_os in
  9564. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9565. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9566. hardcode_libdir_flag_spec='-R$libdir'
  9567. ;;
  9568. *)
  9569. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9570. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9571. ;;
  9572. esac
  9573. fi
  9574. else
  9575. ld_shlibs=no
  9576. fi
  9577. ;;
  9578. os2*)
  9579. hardcode_libdir_flag_spec='-L$libdir'
  9580. hardcode_minus_L=yes
  9581. allow_undefined_flag=unsupported
  9582. 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'
  9583. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9584. ;;
  9585. osf3*)
  9586. if test "$GCC" = yes; then
  9587. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9588. 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'
  9589. else
  9590. allow_undefined_flag=' -expect_unresolved \*'
  9591. 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'
  9592. fi
  9593. archive_cmds_need_lc='no'
  9594. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9595. hardcode_libdir_separator=:
  9596. ;;
  9597. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9598. if test "$GCC" = yes; then
  9599. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9600. 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'
  9601. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9602. else
  9603. allow_undefined_flag=' -expect_unresolved \*'
  9604. 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'
  9605. 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~
  9606. $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'
  9607. # Both c and cxx compiler support -rpath directly
  9608. hardcode_libdir_flag_spec='-rpath $libdir'
  9609. fi
  9610. archive_cmds_need_lc='no'
  9611. hardcode_libdir_separator=:
  9612. ;;
  9613. solaris*)
  9614. no_undefined_flag=' -z defs'
  9615. if test "$GCC" = yes; then
  9616. wlarc='${wl}'
  9617. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9618. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9619. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9620. else
  9621. case `$CC -V 2>&1` in
  9622. *"Compilers 5.0"*)
  9623. wlarc=''
  9624. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9625. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9626. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9627. ;;
  9628. *)
  9629. wlarc='${wl}'
  9630. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9631. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9632. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9633. ;;
  9634. esac
  9635. fi
  9636. hardcode_libdir_flag_spec='-R$libdir'
  9637. hardcode_shlibpath_var=no
  9638. case $host_os in
  9639. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9640. *)
  9641. # The compiler driver will combine and reorder linker options,
  9642. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9643. # but is careful enough not to reorder.
  9644. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9645. if test "$GCC" = yes; then
  9646. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9647. else
  9648. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9649. fi
  9650. ;;
  9651. esac
  9652. link_all_deplibs=yes
  9653. ;;
  9654. sunos4*)
  9655. if test "x$host_vendor" = xsequent; then
  9656. # Use $CC to link under sequent, because it throws in some extra .o
  9657. # files that make .init and .fini sections work.
  9658. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9659. else
  9660. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9661. fi
  9662. hardcode_libdir_flag_spec='-L$libdir'
  9663. hardcode_direct=yes
  9664. hardcode_minus_L=yes
  9665. hardcode_shlibpath_var=no
  9666. ;;
  9667. sysv4)
  9668. case $host_vendor in
  9669. sni)
  9670. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9671. hardcode_direct=yes # is this really true???
  9672. ;;
  9673. siemens)
  9674. ## LD is ld it makes a PLAMLIB
  9675. ## CC just makes a GrossModule.
  9676. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9677. reload_cmds='$CC -r -o $output$reload_objs'
  9678. hardcode_direct=no
  9679. ;;
  9680. motorola)
  9681. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9682. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9683. ;;
  9684. esac
  9685. runpath_var='LD_RUN_PATH'
  9686. hardcode_shlibpath_var=no
  9687. ;;
  9688. sysv4.3*)
  9689. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9690. hardcode_shlibpath_var=no
  9691. export_dynamic_flag_spec='-Bexport'
  9692. ;;
  9693. sysv4*MP*)
  9694. if test -d /usr/nec; then
  9695. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9696. hardcode_shlibpath_var=no
  9697. runpath_var=LD_RUN_PATH
  9698. hardcode_runpath_var=yes
  9699. ld_shlibs=yes
  9700. fi
  9701. ;;
  9702. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9703. no_undefined_flag='${wl}-z,text'
  9704. archive_cmds_need_lc=no
  9705. hardcode_shlibpath_var=no
  9706. runpath_var='LD_RUN_PATH'
  9707. if test "$GCC" = yes; then
  9708. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9709. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9710. else
  9711. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9712. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9713. fi
  9714. ;;
  9715. sysv5* | sco3.2v5* | sco5v6*)
  9716. # Note: We can NOT use -z defs as we might desire, because we do not
  9717. # link with -lc, and that would cause any symbols used from libc to
  9718. # always be unresolved, which means just about no library would
  9719. # ever link correctly. If we're not using GNU ld we use -z text
  9720. # though, which does catch some bad symbols but isn't as heavy-handed
  9721. # as -z defs.
  9722. no_undefined_flag='${wl}-z,text'
  9723. allow_undefined_flag='${wl}-z,nodefs'
  9724. archive_cmds_need_lc=no
  9725. hardcode_shlibpath_var=no
  9726. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9727. hardcode_libdir_separator=':'
  9728. link_all_deplibs=yes
  9729. export_dynamic_flag_spec='${wl}-Bexport'
  9730. runpath_var='LD_RUN_PATH'
  9731. if test "$GCC" = yes; then
  9732. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9733. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9734. else
  9735. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9736. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9737. fi
  9738. ;;
  9739. uts4*)
  9740. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9741. hardcode_libdir_flag_spec='-L$libdir'
  9742. hardcode_shlibpath_var=no
  9743. ;;
  9744. *)
  9745. ld_shlibs=no
  9746. ;;
  9747. esac
  9748. if test x$host_vendor = xsni; then
  9749. case $host in
  9750. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9751. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9752. ;;
  9753. esac
  9754. fi
  9755. fi
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9757. $as_echo "$ld_shlibs" >&6; }
  9758. test "$ld_shlibs" = no && can_build_shared=no
  9759. with_gnu_ld=$with_gnu_ld
  9760. #
  9761. # Do we need to explicitly link libc?
  9762. #
  9763. case "x$archive_cmds_need_lc" in
  9764. x|xyes)
  9765. # Assume -lc should be added
  9766. archive_cmds_need_lc=yes
  9767. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9768. case $archive_cmds in
  9769. *'~'*)
  9770. # FIXME: we may have to deal with multi-command sequences.
  9771. ;;
  9772. '$CC '*)
  9773. # Test whether the compiler implicitly links with -lc since on some
  9774. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9775. # to ld, don't add -lc before -lgcc.
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9777. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9778. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9779. $as_echo_n "(cached) " >&6
  9780. else
  9781. $RM conftest*
  9782. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9783. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9784. (eval $ac_compile) 2>&5
  9785. ac_status=$?
  9786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9787. test $ac_status = 0; } 2>conftest.err; then
  9788. soname=conftest
  9789. lib=conftest
  9790. libobjs=conftest.$ac_objext
  9791. deplibs=
  9792. wl=$lt_prog_compiler_wl
  9793. pic_flag=$lt_prog_compiler_pic
  9794. compiler_flags=-v
  9795. linker_flags=-v
  9796. verstring=
  9797. output_objdir=.
  9798. libname=conftest
  9799. lt_save_allow_undefined_flag=$allow_undefined_flag
  9800. allow_undefined_flag=
  9801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9802. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9803. ac_status=$?
  9804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9805. test $ac_status = 0; }
  9806. then
  9807. lt_cv_archive_cmds_need_lc=no
  9808. else
  9809. lt_cv_archive_cmds_need_lc=yes
  9810. fi
  9811. allow_undefined_flag=$lt_save_allow_undefined_flag
  9812. else
  9813. cat conftest.err 1>&5
  9814. fi
  9815. $RM conftest*
  9816. fi
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9818. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9819. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9820. ;;
  9821. esac
  9822. fi
  9823. ;;
  9824. esac
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9826. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9827. if test "$GCC" = yes; then
  9828. case $host_os in
  9829. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9830. *) lt_awk_arg="/^libraries:/" ;;
  9831. esac
  9832. case $host_os in
  9833. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9834. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9835. esac
  9836. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9837. case $lt_search_path_spec in
  9838. *\;*)
  9839. # if the path contains ";" then we assume it to be the separator
  9840. # otherwise default to the standard path separator (i.e. ":") - it is
  9841. # assumed that no part of a normal pathname contains ";" but that should
  9842. # okay in the real world where ";" in dirpaths is itself problematic.
  9843. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9844. ;;
  9845. *)
  9846. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9847. ;;
  9848. esac
  9849. # Ok, now we have the path, separated by spaces, we can step through it
  9850. # and add multilib dir if necessary.
  9851. lt_tmp_lt_search_path_spec=
  9852. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9853. for lt_sys_path in $lt_search_path_spec; do
  9854. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9855. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9856. else
  9857. test -d "$lt_sys_path" && \
  9858. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9859. fi
  9860. done
  9861. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9862. BEGIN {RS=" "; FS="/|\n";} {
  9863. lt_foo="";
  9864. lt_count=0;
  9865. for (lt_i = NF; lt_i > 0; lt_i--) {
  9866. if ($lt_i != "" && $lt_i != ".") {
  9867. if ($lt_i == "..") {
  9868. lt_count++;
  9869. } else {
  9870. if (lt_count == 0) {
  9871. lt_foo="/" $lt_i lt_foo;
  9872. } else {
  9873. lt_count--;
  9874. }
  9875. }
  9876. }
  9877. }
  9878. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9879. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9880. }'`
  9881. # AWK program above erroneously prepends '/' to C:/dos/paths
  9882. # for these hosts.
  9883. case $host_os in
  9884. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9885. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9886. esac
  9887. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9888. else
  9889. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9890. fi
  9891. library_names_spec=
  9892. libname_spec='lib$name'
  9893. soname_spec=
  9894. shrext_cmds=".so"
  9895. postinstall_cmds=
  9896. postuninstall_cmds=
  9897. finish_cmds=
  9898. finish_eval=
  9899. shlibpath_var=
  9900. shlibpath_overrides_runpath=unknown
  9901. version_type=none
  9902. dynamic_linker="$host_os ld.so"
  9903. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9904. need_lib_prefix=unknown
  9905. hardcode_into_libs=no
  9906. # when you set need_version to no, make sure it does not cause -set_version
  9907. # flags to be left without arguments
  9908. need_version=unknown
  9909. case $host_os in
  9910. aix3*)
  9911. version_type=linux
  9912. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9913. shlibpath_var=LIBPATH
  9914. # AIX 3 has no versioning support, so we append a major version to the name.
  9915. soname_spec='${libname}${release}${shared_ext}$major'
  9916. ;;
  9917. aix[4-9]*)
  9918. version_type=linux
  9919. need_lib_prefix=no
  9920. need_version=no
  9921. hardcode_into_libs=yes
  9922. if test "$host_cpu" = ia64; then
  9923. # AIX 5 supports IA64
  9924. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9925. shlibpath_var=LD_LIBRARY_PATH
  9926. else
  9927. # With GCC up to 2.95.x, collect2 would create an import file
  9928. # for dependence libraries. The import file would start with
  9929. # the line `#! .'. This would cause the generated library to
  9930. # depend on `.', always an invalid library. This was fixed in
  9931. # development snapshots of GCC prior to 3.0.
  9932. case $host_os in
  9933. aix4 | aix4.[01] | aix4.[01].*)
  9934. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9935. echo ' yes '
  9936. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9937. :
  9938. else
  9939. can_build_shared=no
  9940. fi
  9941. ;;
  9942. esac
  9943. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9944. # soname into executable. Probably we can add versioning support to
  9945. # collect2, so additional links can be useful in future.
  9946. if test "$aix_use_runtimelinking" = yes; then
  9947. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9948. # instead of lib<name>.a to let people know that these are not
  9949. # typical AIX shared libraries.
  9950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9951. else
  9952. # We preserve .a as extension for shared libraries through AIX4.2
  9953. # and later when we are not doing run time linking.
  9954. library_names_spec='${libname}${release}.a $libname.a'
  9955. soname_spec='${libname}${release}${shared_ext}$major'
  9956. fi
  9957. shlibpath_var=LIBPATH
  9958. fi
  9959. ;;
  9960. amigaos*)
  9961. case $host_cpu in
  9962. powerpc)
  9963. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9964. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9966. ;;
  9967. m68k)
  9968. library_names_spec='$libname.ixlibrary $libname.a'
  9969. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9970. 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'
  9971. ;;
  9972. esac
  9973. ;;
  9974. beos*)
  9975. library_names_spec='${libname}${shared_ext}'
  9976. dynamic_linker="$host_os ld.so"
  9977. shlibpath_var=LIBRARY_PATH
  9978. ;;
  9979. bsdi[45]*)
  9980. version_type=linux
  9981. need_version=no
  9982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9983. soname_spec='${libname}${release}${shared_ext}$major'
  9984. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9985. shlibpath_var=LD_LIBRARY_PATH
  9986. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9987. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9988. # the default ld.so.conf also contains /usr/contrib/lib and
  9989. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9990. # libtool to hard-code these into programs
  9991. ;;
  9992. cygwin* | mingw* | pw32* | cegcc*)
  9993. version_type=windows
  9994. shrext_cmds=".dll"
  9995. need_version=no
  9996. need_lib_prefix=no
  9997. case $GCC,$host_os in
  9998. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9999. library_names_spec='$libname.dll.a'
  10000. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10001. postinstall_cmds='base_file=`basename \${file}`~
  10002. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10003. dldir=$destdir/`dirname \$dlpath`~
  10004. test -d \$dldir || mkdir -p \$dldir~
  10005. $install_prog $dir/$dlname \$dldir/$dlname~
  10006. chmod a+x \$dldir/$dlname~
  10007. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10008. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10009. fi'
  10010. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10011. dlpath=$dir/\$dldll~
  10012. $RM \$dlpath'
  10013. shlibpath_overrides_runpath=yes
  10014. case $host_os in
  10015. cygwin*)
  10016. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10017. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10018. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10019. ;;
  10020. mingw* | cegcc*)
  10021. # MinGW DLLs use traditional 'lib' prefix
  10022. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10023. ;;
  10024. pw32*)
  10025. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10026. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10027. ;;
  10028. esac
  10029. ;;
  10030. *)
  10031. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10032. ;;
  10033. esac
  10034. dynamic_linker='Win32 ld.exe'
  10035. # FIXME: first we should search . and the directory the executable is in
  10036. shlibpath_var=PATH
  10037. ;;
  10038. darwin* | rhapsody*)
  10039. dynamic_linker="$host_os dyld"
  10040. version_type=darwin
  10041. need_lib_prefix=no
  10042. need_version=no
  10043. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10044. soname_spec='${libname}${release}${major}$shared_ext'
  10045. shlibpath_overrides_runpath=yes
  10046. shlibpath_var=DYLD_LIBRARY_PATH
  10047. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10048. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10049. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10050. ;;
  10051. dgux*)
  10052. version_type=linux
  10053. need_lib_prefix=no
  10054. need_version=no
  10055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10056. soname_spec='${libname}${release}${shared_ext}$major'
  10057. shlibpath_var=LD_LIBRARY_PATH
  10058. ;;
  10059. freebsd* | dragonfly*)
  10060. # DragonFly does not have aout. When/if they implement a new
  10061. # versioning mechanism, adjust this.
  10062. if test -x /usr/bin/objformat; then
  10063. objformat=`/usr/bin/objformat`
  10064. else
  10065. case $host_os in
  10066. freebsd[23].*) objformat=aout ;;
  10067. *) objformat=elf ;;
  10068. esac
  10069. fi
  10070. version_type=freebsd-$objformat
  10071. case $version_type in
  10072. freebsd-elf*)
  10073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10074. need_version=no
  10075. need_lib_prefix=no
  10076. ;;
  10077. freebsd-*)
  10078. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10079. need_version=yes
  10080. ;;
  10081. esac
  10082. shlibpath_var=LD_LIBRARY_PATH
  10083. case $host_os in
  10084. freebsd2.*)
  10085. shlibpath_overrides_runpath=yes
  10086. ;;
  10087. freebsd3.[01]* | freebsdelf3.[01]*)
  10088. shlibpath_overrides_runpath=yes
  10089. hardcode_into_libs=yes
  10090. ;;
  10091. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10092. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10093. shlibpath_overrides_runpath=no
  10094. hardcode_into_libs=yes
  10095. ;;
  10096. *) # from 4.6 on, and DragonFly
  10097. shlibpath_overrides_runpath=yes
  10098. hardcode_into_libs=yes
  10099. ;;
  10100. esac
  10101. ;;
  10102. haiku*)
  10103. version_type=linux
  10104. need_lib_prefix=no
  10105. need_version=no
  10106. dynamic_linker="$host_os runtime_loader"
  10107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10108. soname_spec='${libname}${release}${shared_ext}$major'
  10109. shlibpath_var=LIBRARY_PATH
  10110. shlibpath_overrides_runpath=yes
  10111. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10112. hardcode_into_libs=yes
  10113. ;;
  10114. hpux9* | hpux10* | hpux11*)
  10115. # Give a soname corresponding to the major version so that dld.sl refuses to
  10116. # link against other versions.
  10117. version_type=sunos
  10118. need_lib_prefix=no
  10119. need_version=no
  10120. case $host_cpu in
  10121. ia64*)
  10122. shrext_cmds='.so'
  10123. hardcode_into_libs=yes
  10124. dynamic_linker="$host_os dld.so"
  10125. shlibpath_var=LD_LIBRARY_PATH
  10126. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10128. soname_spec='${libname}${release}${shared_ext}$major'
  10129. if test "X$HPUX_IA64_MODE" = X32; then
  10130. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10131. else
  10132. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10133. fi
  10134. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10135. ;;
  10136. hppa*64*)
  10137. shrext_cmds='.sl'
  10138. hardcode_into_libs=yes
  10139. dynamic_linker="$host_os dld.sl"
  10140. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10141. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10143. soname_spec='${libname}${release}${shared_ext}$major'
  10144. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10145. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10146. ;;
  10147. *)
  10148. shrext_cmds='.sl'
  10149. dynamic_linker="$host_os dld.sl"
  10150. shlibpath_var=SHLIB_PATH
  10151. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10153. soname_spec='${libname}${release}${shared_ext}$major'
  10154. ;;
  10155. esac
  10156. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10157. postinstall_cmds='chmod 555 $lib'
  10158. # or fails outright, so override atomically:
  10159. install_override_mode=555
  10160. ;;
  10161. interix[3-9]*)
  10162. version_type=linux
  10163. need_lib_prefix=no
  10164. need_version=no
  10165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10166. soname_spec='${libname}${release}${shared_ext}$major'
  10167. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10168. shlibpath_var=LD_LIBRARY_PATH
  10169. shlibpath_overrides_runpath=no
  10170. hardcode_into_libs=yes
  10171. ;;
  10172. irix5* | irix6* | nonstopux*)
  10173. case $host_os in
  10174. nonstopux*) version_type=nonstopux ;;
  10175. *)
  10176. if test "$lt_cv_prog_gnu_ld" = yes; then
  10177. version_type=linux
  10178. else
  10179. version_type=irix
  10180. fi ;;
  10181. esac
  10182. need_lib_prefix=no
  10183. need_version=no
  10184. soname_spec='${libname}${release}${shared_ext}$major'
  10185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10186. case $host_os in
  10187. irix5* | nonstopux*)
  10188. libsuff= shlibsuff=
  10189. ;;
  10190. *)
  10191. case $LD in # libtool.m4 will add one of these switches to LD
  10192. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10193. libsuff= shlibsuff= libmagic=32-bit;;
  10194. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10195. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10196. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10197. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10198. *) libsuff= shlibsuff= libmagic=never-match;;
  10199. esac
  10200. ;;
  10201. esac
  10202. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10203. shlibpath_overrides_runpath=no
  10204. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10205. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10206. hardcode_into_libs=yes
  10207. ;;
  10208. # No shared lib support for Linux oldld, aout, or coff.
  10209. linux*oldld* | linux*aout* | linux*coff*)
  10210. dynamic_linker=no
  10211. ;;
  10212. # This must be Linux ELF.
  10213. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10214. version_type=linux
  10215. need_lib_prefix=no
  10216. need_version=no
  10217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10218. soname_spec='${libname}${release}${shared_ext}$major'
  10219. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10220. shlibpath_var=LD_LIBRARY_PATH
  10221. shlibpath_overrides_runpath=no
  10222. # Some binutils ld are patched to set DT_RUNPATH
  10223. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10224. $as_echo_n "(cached) " >&6
  10225. else
  10226. lt_cv_shlibpath_overrides_runpath=no
  10227. save_LDFLAGS=$LDFLAGS
  10228. save_libdir=$libdir
  10229. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10230. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10232. /* end confdefs.h. */
  10233. int
  10234. main ()
  10235. {
  10236. ;
  10237. return 0;
  10238. }
  10239. _ACEOF
  10240. if ac_fn_c_try_link "$LINENO"; then :
  10241. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10242. lt_cv_shlibpath_overrides_runpath=yes
  10243. fi
  10244. fi
  10245. rm -f core conftest.err conftest.$ac_objext \
  10246. conftest$ac_exeext conftest.$ac_ext
  10247. LDFLAGS=$save_LDFLAGS
  10248. libdir=$save_libdir
  10249. fi
  10250. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10251. # This implies no fast_install, which is unacceptable.
  10252. # Some rework will be needed to allow for fast_install
  10253. # before this can be enabled.
  10254. hardcode_into_libs=yes
  10255. # Append ld.so.conf contents to the search path
  10256. if test -f /etc/ld.so.conf; then
  10257. 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' ' '`
  10258. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10259. fi
  10260. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10261. # powerpc, because MkLinux only supported shared libraries with the
  10262. # GNU dynamic linker. Since this was broken with cross compilers,
  10263. # most powerpc-linux boxes support dynamic linking these days and
  10264. # people can always --disable-shared, the test was removed, and we
  10265. # assume the GNU/Linux dynamic linker is in use.
  10266. dynamic_linker='GNU/Linux ld.so'
  10267. ;;
  10268. netbsd*)
  10269. version_type=sunos
  10270. need_lib_prefix=no
  10271. need_version=no
  10272. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10274. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10275. dynamic_linker='NetBSD (a.out) ld.so'
  10276. else
  10277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10278. soname_spec='${libname}${release}${shared_ext}$major'
  10279. dynamic_linker='NetBSD ld.elf_so'
  10280. fi
  10281. shlibpath_var=LD_LIBRARY_PATH
  10282. shlibpath_overrides_runpath=yes
  10283. hardcode_into_libs=yes
  10284. ;;
  10285. newsos6)
  10286. version_type=linux
  10287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10288. shlibpath_var=LD_LIBRARY_PATH
  10289. shlibpath_overrides_runpath=yes
  10290. ;;
  10291. *nto* | *qnx*)
  10292. version_type=qnx
  10293. need_lib_prefix=no
  10294. need_version=no
  10295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10296. soname_spec='${libname}${release}${shared_ext}$major'
  10297. shlibpath_var=LD_LIBRARY_PATH
  10298. shlibpath_overrides_runpath=no
  10299. hardcode_into_libs=yes
  10300. dynamic_linker='ldqnx.so'
  10301. ;;
  10302. openbsd*)
  10303. version_type=sunos
  10304. sys_lib_dlsearch_path_spec="/usr/lib"
  10305. need_lib_prefix=no
  10306. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10307. case $host_os in
  10308. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10309. *) need_version=no ;;
  10310. esac
  10311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10312. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10313. shlibpath_var=LD_LIBRARY_PATH
  10314. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10315. case $host_os in
  10316. openbsd2.[89] | openbsd2.[89].*)
  10317. shlibpath_overrides_runpath=no
  10318. ;;
  10319. *)
  10320. shlibpath_overrides_runpath=yes
  10321. ;;
  10322. esac
  10323. else
  10324. shlibpath_overrides_runpath=yes
  10325. fi
  10326. ;;
  10327. os2*)
  10328. libname_spec='$name'
  10329. shrext_cmds=".dll"
  10330. need_lib_prefix=no
  10331. library_names_spec='$libname${shared_ext} $libname.a'
  10332. dynamic_linker='OS/2 ld.exe'
  10333. shlibpath_var=LIBPATH
  10334. ;;
  10335. osf3* | osf4* | osf5*)
  10336. version_type=osf
  10337. need_lib_prefix=no
  10338. need_version=no
  10339. soname_spec='${libname}${release}${shared_ext}$major'
  10340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10341. shlibpath_var=LD_LIBRARY_PATH
  10342. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10343. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10344. ;;
  10345. rdos*)
  10346. dynamic_linker=no
  10347. ;;
  10348. solaris*)
  10349. version_type=linux
  10350. need_lib_prefix=no
  10351. need_version=no
  10352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10353. soname_spec='${libname}${release}${shared_ext}$major'
  10354. shlibpath_var=LD_LIBRARY_PATH
  10355. shlibpath_overrides_runpath=yes
  10356. hardcode_into_libs=yes
  10357. # ldd complains unless libraries are executable
  10358. postinstall_cmds='chmod +x $lib'
  10359. ;;
  10360. sunos4*)
  10361. version_type=sunos
  10362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10363. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10364. shlibpath_var=LD_LIBRARY_PATH
  10365. shlibpath_overrides_runpath=yes
  10366. if test "$with_gnu_ld" = yes; then
  10367. need_lib_prefix=no
  10368. fi
  10369. need_version=yes
  10370. ;;
  10371. sysv4 | sysv4.3*)
  10372. version_type=linux
  10373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10374. soname_spec='${libname}${release}${shared_ext}$major'
  10375. shlibpath_var=LD_LIBRARY_PATH
  10376. case $host_vendor in
  10377. sni)
  10378. shlibpath_overrides_runpath=no
  10379. need_lib_prefix=no
  10380. runpath_var=LD_RUN_PATH
  10381. ;;
  10382. siemens)
  10383. need_lib_prefix=no
  10384. ;;
  10385. motorola)
  10386. need_lib_prefix=no
  10387. need_version=no
  10388. shlibpath_overrides_runpath=no
  10389. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10390. ;;
  10391. esac
  10392. ;;
  10393. sysv4*MP*)
  10394. if test -d /usr/nec ;then
  10395. version_type=linux
  10396. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10397. soname_spec='$libname${shared_ext}.$major'
  10398. shlibpath_var=LD_LIBRARY_PATH
  10399. fi
  10400. ;;
  10401. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10402. version_type=freebsd-elf
  10403. need_lib_prefix=no
  10404. need_version=no
  10405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10406. soname_spec='${libname}${release}${shared_ext}$major'
  10407. shlibpath_var=LD_LIBRARY_PATH
  10408. shlibpath_overrides_runpath=yes
  10409. hardcode_into_libs=yes
  10410. if test "$with_gnu_ld" = yes; then
  10411. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10412. else
  10413. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10414. case $host_os in
  10415. sco3.2v5*)
  10416. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10417. ;;
  10418. esac
  10419. fi
  10420. sys_lib_dlsearch_path_spec='/usr/lib'
  10421. ;;
  10422. tpf*)
  10423. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10424. version_type=linux
  10425. need_lib_prefix=no
  10426. need_version=no
  10427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10428. shlibpath_var=LD_LIBRARY_PATH
  10429. shlibpath_overrides_runpath=no
  10430. hardcode_into_libs=yes
  10431. ;;
  10432. uts4*)
  10433. version_type=linux
  10434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10435. soname_spec='${libname}${release}${shared_ext}$major'
  10436. shlibpath_var=LD_LIBRARY_PATH
  10437. ;;
  10438. *)
  10439. dynamic_linker=no
  10440. ;;
  10441. esac
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10443. $as_echo "$dynamic_linker" >&6; }
  10444. test "$dynamic_linker" = no && can_build_shared=no
  10445. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10446. if test "$GCC" = yes; then
  10447. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10448. fi
  10449. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10450. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10451. fi
  10452. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10453. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10454. fi
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10456. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10457. hardcode_action=
  10458. if test -n "$hardcode_libdir_flag_spec" ||
  10459. test -n "$runpath_var" ||
  10460. test "X$hardcode_automatic" = "Xyes" ; then
  10461. # We can hardcode non-existent directories.
  10462. if test "$hardcode_direct" != no &&
  10463. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10464. # have to relink, otherwise we might link with an installed library
  10465. # when we should be linking with a yet-to-be-installed one
  10466. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10467. test "$hardcode_minus_L" != no; then
  10468. # Linking always hardcodes the temporary library directory.
  10469. hardcode_action=relink
  10470. else
  10471. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10472. hardcode_action=immediate
  10473. fi
  10474. else
  10475. # We cannot hardcode anything, or else we can only hardcode existing
  10476. # directories.
  10477. hardcode_action=unsupported
  10478. fi
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10480. $as_echo "$hardcode_action" >&6; }
  10481. if test "$hardcode_action" = relink ||
  10482. test "$inherit_rpath" = yes; then
  10483. # Fast installation is not supported
  10484. enable_fast_install=no
  10485. elif test "$shlibpath_overrides_runpath" = yes ||
  10486. test "$enable_shared" = no; then
  10487. # Fast installation is not necessary
  10488. enable_fast_install=needless
  10489. fi
  10490. if test "x$enable_dlopen" != xyes; then
  10491. enable_dlopen=unknown
  10492. enable_dlopen_self=unknown
  10493. enable_dlopen_self_static=unknown
  10494. else
  10495. lt_cv_dlopen=no
  10496. lt_cv_dlopen_libs=
  10497. case $host_os in
  10498. beos*)
  10499. lt_cv_dlopen="load_add_on"
  10500. lt_cv_dlopen_libs=
  10501. lt_cv_dlopen_self=yes
  10502. ;;
  10503. mingw* | pw32* | cegcc*)
  10504. lt_cv_dlopen="LoadLibrary"
  10505. lt_cv_dlopen_libs=
  10506. ;;
  10507. cygwin*)
  10508. lt_cv_dlopen="dlopen"
  10509. lt_cv_dlopen_libs=
  10510. ;;
  10511. darwin*)
  10512. # if libdl is installed we need to link against it
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10514. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10515. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10516. $as_echo_n "(cached) " >&6
  10517. else
  10518. ac_check_lib_save_LIBS=$LIBS
  10519. LIBS="-ldl $LIBS"
  10520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10521. /* end confdefs.h. */
  10522. /* Override any GCC internal prototype to avoid an error.
  10523. Use char because int might match the return type of a GCC
  10524. builtin and then its argument prototype would still apply. */
  10525. #ifdef __cplusplus
  10526. extern "C"
  10527. #endif
  10528. char dlopen ();
  10529. int
  10530. main ()
  10531. {
  10532. return dlopen ();
  10533. ;
  10534. return 0;
  10535. }
  10536. _ACEOF
  10537. if ac_fn_c_try_link "$LINENO"; then :
  10538. ac_cv_lib_dl_dlopen=yes
  10539. else
  10540. ac_cv_lib_dl_dlopen=no
  10541. fi
  10542. rm -f core conftest.err conftest.$ac_objext \
  10543. conftest$ac_exeext conftest.$ac_ext
  10544. LIBS=$ac_check_lib_save_LIBS
  10545. fi
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10547. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10548. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10549. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10550. else
  10551. lt_cv_dlopen="dyld"
  10552. lt_cv_dlopen_libs=
  10553. lt_cv_dlopen_self=yes
  10554. fi
  10555. ;;
  10556. *)
  10557. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10558. if test "x$ac_cv_func_shl_load" = xyes; then :
  10559. lt_cv_dlopen="shl_load"
  10560. else
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10562. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10563. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10564. $as_echo_n "(cached) " >&6
  10565. else
  10566. ac_check_lib_save_LIBS=$LIBS
  10567. LIBS="-ldld $LIBS"
  10568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10569. /* end confdefs.h. */
  10570. /* Override any GCC internal prototype to avoid an error.
  10571. Use char because int might match the return type of a GCC
  10572. builtin and then its argument prototype would still apply. */
  10573. #ifdef __cplusplus
  10574. extern "C"
  10575. #endif
  10576. char shl_load ();
  10577. int
  10578. main ()
  10579. {
  10580. return shl_load ();
  10581. ;
  10582. return 0;
  10583. }
  10584. _ACEOF
  10585. if ac_fn_c_try_link "$LINENO"; then :
  10586. ac_cv_lib_dld_shl_load=yes
  10587. else
  10588. ac_cv_lib_dld_shl_load=no
  10589. fi
  10590. rm -f core conftest.err conftest.$ac_objext \
  10591. conftest$ac_exeext conftest.$ac_ext
  10592. LIBS=$ac_check_lib_save_LIBS
  10593. fi
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10595. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10596. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10597. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10598. else
  10599. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10600. if test "x$ac_cv_func_dlopen" = xyes; then :
  10601. lt_cv_dlopen="dlopen"
  10602. else
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10604. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10605. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10606. $as_echo_n "(cached) " >&6
  10607. else
  10608. ac_check_lib_save_LIBS=$LIBS
  10609. LIBS="-ldl $LIBS"
  10610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10611. /* end confdefs.h. */
  10612. /* Override any GCC internal prototype to avoid an error.
  10613. Use char because int might match the return type of a GCC
  10614. builtin and then its argument prototype would still apply. */
  10615. #ifdef __cplusplus
  10616. extern "C"
  10617. #endif
  10618. char dlopen ();
  10619. int
  10620. main ()
  10621. {
  10622. return dlopen ();
  10623. ;
  10624. return 0;
  10625. }
  10626. _ACEOF
  10627. if ac_fn_c_try_link "$LINENO"; then :
  10628. ac_cv_lib_dl_dlopen=yes
  10629. else
  10630. ac_cv_lib_dl_dlopen=no
  10631. fi
  10632. rm -f core conftest.err conftest.$ac_objext \
  10633. conftest$ac_exeext conftest.$ac_ext
  10634. LIBS=$ac_check_lib_save_LIBS
  10635. fi
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10637. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10638. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10639. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10640. else
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10642. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10643. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10644. $as_echo_n "(cached) " >&6
  10645. else
  10646. ac_check_lib_save_LIBS=$LIBS
  10647. LIBS="-lsvld $LIBS"
  10648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10649. /* end confdefs.h. */
  10650. /* Override any GCC internal prototype to avoid an error.
  10651. Use char because int might match the return type of a GCC
  10652. builtin and then its argument prototype would still apply. */
  10653. #ifdef __cplusplus
  10654. extern "C"
  10655. #endif
  10656. char dlopen ();
  10657. int
  10658. main ()
  10659. {
  10660. return dlopen ();
  10661. ;
  10662. return 0;
  10663. }
  10664. _ACEOF
  10665. if ac_fn_c_try_link "$LINENO"; then :
  10666. ac_cv_lib_svld_dlopen=yes
  10667. else
  10668. ac_cv_lib_svld_dlopen=no
  10669. fi
  10670. rm -f core conftest.err conftest.$ac_objext \
  10671. conftest$ac_exeext conftest.$ac_ext
  10672. LIBS=$ac_check_lib_save_LIBS
  10673. fi
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10675. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10676. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10677. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10678. else
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10680. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10681. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10682. $as_echo_n "(cached) " >&6
  10683. else
  10684. ac_check_lib_save_LIBS=$LIBS
  10685. LIBS="-ldld $LIBS"
  10686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10687. /* end confdefs.h. */
  10688. /* Override any GCC internal prototype to avoid an error.
  10689. Use char because int might match the return type of a GCC
  10690. builtin and then its argument prototype would still apply. */
  10691. #ifdef __cplusplus
  10692. extern "C"
  10693. #endif
  10694. char dld_link ();
  10695. int
  10696. main ()
  10697. {
  10698. return dld_link ();
  10699. ;
  10700. return 0;
  10701. }
  10702. _ACEOF
  10703. if ac_fn_c_try_link "$LINENO"; then :
  10704. ac_cv_lib_dld_dld_link=yes
  10705. else
  10706. ac_cv_lib_dld_dld_link=no
  10707. fi
  10708. rm -f core conftest.err conftest.$ac_objext \
  10709. conftest$ac_exeext conftest.$ac_ext
  10710. LIBS=$ac_check_lib_save_LIBS
  10711. fi
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10713. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10714. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10715. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10716. fi
  10717. fi
  10718. fi
  10719. fi
  10720. fi
  10721. fi
  10722. ;;
  10723. esac
  10724. if test "x$lt_cv_dlopen" != xno; then
  10725. enable_dlopen=yes
  10726. else
  10727. enable_dlopen=no
  10728. fi
  10729. case $lt_cv_dlopen in
  10730. dlopen)
  10731. save_CPPFLAGS="$CPPFLAGS"
  10732. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10733. save_LDFLAGS="$LDFLAGS"
  10734. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10735. save_LIBS="$LIBS"
  10736. LIBS="$lt_cv_dlopen_libs $LIBS"
  10737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10738. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10739. if ${lt_cv_dlopen_self+:} false; then :
  10740. $as_echo_n "(cached) " >&6
  10741. else
  10742. if test "$cross_compiling" = yes; then :
  10743. lt_cv_dlopen_self=cross
  10744. else
  10745. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10746. lt_status=$lt_dlunknown
  10747. cat > conftest.$ac_ext <<_LT_EOF
  10748. #line 12644 "configure"
  10749. #include "confdefs.h"
  10750. #if HAVE_DLFCN_H
  10751. #include <dlfcn.h>
  10752. #endif
  10753. #include <stdio.h>
  10754. #ifdef RTLD_GLOBAL
  10755. # define LT_DLGLOBAL RTLD_GLOBAL
  10756. #else
  10757. # ifdef DL_GLOBAL
  10758. # define LT_DLGLOBAL DL_GLOBAL
  10759. # else
  10760. # define LT_DLGLOBAL 0
  10761. # endif
  10762. #endif
  10763. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10764. find out it does not work in some platform. */
  10765. #ifndef LT_DLLAZY_OR_NOW
  10766. # ifdef RTLD_LAZY
  10767. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10768. # else
  10769. # ifdef DL_LAZY
  10770. # define LT_DLLAZY_OR_NOW DL_LAZY
  10771. # else
  10772. # ifdef RTLD_NOW
  10773. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10774. # else
  10775. # ifdef DL_NOW
  10776. # define LT_DLLAZY_OR_NOW DL_NOW
  10777. # else
  10778. # define LT_DLLAZY_OR_NOW 0
  10779. # endif
  10780. # endif
  10781. # endif
  10782. # endif
  10783. #endif
  10784. /* When -fvisbility=hidden is used, assume the code has been annotated
  10785. correspondingly for the symbols needed. */
  10786. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10787. void fnord () __attribute__((visibility("default")));
  10788. #endif
  10789. void fnord () { int i=42; }
  10790. int main ()
  10791. {
  10792. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10793. int status = $lt_dlunknown;
  10794. if (self)
  10795. {
  10796. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10797. else
  10798. {
  10799. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10800. else puts (dlerror ());
  10801. }
  10802. /* dlclose (self); */
  10803. }
  10804. else
  10805. puts (dlerror ());
  10806. return status;
  10807. }
  10808. _LT_EOF
  10809. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10810. (eval $ac_link) 2>&5
  10811. ac_status=$?
  10812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10813. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10814. (./conftest; exit; ) >&5 2>/dev/null
  10815. lt_status=$?
  10816. case x$lt_status in
  10817. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10818. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10819. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10820. esac
  10821. else :
  10822. # compilation failed
  10823. lt_cv_dlopen_self=no
  10824. fi
  10825. fi
  10826. rm -fr conftest*
  10827. fi
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10829. $as_echo "$lt_cv_dlopen_self" >&6; }
  10830. if test "x$lt_cv_dlopen_self" = xyes; then
  10831. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10833. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10834. if ${lt_cv_dlopen_self_static+:} false; then :
  10835. $as_echo_n "(cached) " >&6
  10836. else
  10837. if test "$cross_compiling" = yes; then :
  10838. lt_cv_dlopen_self_static=cross
  10839. else
  10840. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10841. lt_status=$lt_dlunknown
  10842. cat > conftest.$ac_ext <<_LT_EOF
  10843. #line 12750 "configure"
  10844. #include "confdefs.h"
  10845. #if HAVE_DLFCN_H
  10846. #include <dlfcn.h>
  10847. #endif
  10848. #include <stdio.h>
  10849. #ifdef RTLD_GLOBAL
  10850. # define LT_DLGLOBAL RTLD_GLOBAL
  10851. #else
  10852. # ifdef DL_GLOBAL
  10853. # define LT_DLGLOBAL DL_GLOBAL
  10854. # else
  10855. # define LT_DLGLOBAL 0
  10856. # endif
  10857. #endif
  10858. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10859. find out it does not work in some platform. */
  10860. #ifndef LT_DLLAZY_OR_NOW
  10861. # ifdef RTLD_LAZY
  10862. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10863. # else
  10864. # ifdef DL_LAZY
  10865. # define LT_DLLAZY_OR_NOW DL_LAZY
  10866. # else
  10867. # ifdef RTLD_NOW
  10868. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10869. # else
  10870. # ifdef DL_NOW
  10871. # define LT_DLLAZY_OR_NOW DL_NOW
  10872. # else
  10873. # define LT_DLLAZY_OR_NOW 0
  10874. # endif
  10875. # endif
  10876. # endif
  10877. # endif
  10878. #endif
  10879. /* When -fvisbility=hidden is used, assume the code has been annotated
  10880. correspondingly for the symbols needed. */
  10881. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10882. void fnord () __attribute__((visibility("default")));
  10883. #endif
  10884. void fnord () { int i=42; }
  10885. int main ()
  10886. {
  10887. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10888. int status = $lt_dlunknown;
  10889. if (self)
  10890. {
  10891. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10892. else
  10893. {
  10894. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10895. else puts (dlerror ());
  10896. }
  10897. /* dlclose (self); */
  10898. }
  10899. else
  10900. puts (dlerror ());
  10901. return status;
  10902. }
  10903. _LT_EOF
  10904. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10905. (eval $ac_link) 2>&5
  10906. ac_status=$?
  10907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10908. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10909. (./conftest; exit; ) >&5 2>/dev/null
  10910. lt_status=$?
  10911. case x$lt_status in
  10912. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10913. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10914. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10915. esac
  10916. else :
  10917. # compilation failed
  10918. lt_cv_dlopen_self_static=no
  10919. fi
  10920. fi
  10921. rm -fr conftest*
  10922. fi
  10923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10924. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10925. fi
  10926. CPPFLAGS="$save_CPPFLAGS"
  10927. LDFLAGS="$save_LDFLAGS"
  10928. LIBS="$save_LIBS"
  10929. ;;
  10930. esac
  10931. case $lt_cv_dlopen_self in
  10932. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10933. *) enable_dlopen_self=unknown ;;
  10934. esac
  10935. case $lt_cv_dlopen_self_static in
  10936. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10937. *) enable_dlopen_self_static=unknown ;;
  10938. esac
  10939. fi
  10940. striplib=
  10941. old_striplib=
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10943. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10944. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10945. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10946. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10948. $as_echo "yes" >&6; }
  10949. else
  10950. # FIXME - insert some real tests, host_os isn't really good enough
  10951. case $host_os in
  10952. darwin*)
  10953. if test -n "$STRIP" ; then
  10954. striplib="$STRIP -x"
  10955. old_striplib="$STRIP -S"
  10956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10957. $as_echo "yes" >&6; }
  10958. else
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10960. $as_echo "no" >&6; }
  10961. fi
  10962. ;;
  10963. *)
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10965. $as_echo "no" >&6; }
  10966. ;;
  10967. esac
  10968. fi
  10969. # Report which library types will actually be built
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10971. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10973. $as_echo "$can_build_shared" >&6; }
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10975. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10976. test "$can_build_shared" = "no" && enable_shared=no
  10977. # On AIX, shared libraries and static libraries use the same namespace, and
  10978. # are all built from PIC.
  10979. case $host_os in
  10980. aix3*)
  10981. test "$enable_shared" = yes && enable_static=no
  10982. if test -n "$RANLIB"; then
  10983. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10984. postinstall_cmds='$RANLIB $lib'
  10985. fi
  10986. ;;
  10987. aix[4-9]*)
  10988. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10989. test "$enable_shared" = yes && enable_static=no
  10990. fi
  10991. ;;
  10992. esac
  10993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10994. $as_echo "$enable_shared" >&6; }
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10996. $as_echo_n "checking whether to build static libraries... " >&6; }
  10997. # Make sure either enable_shared or enable_static is yes.
  10998. test "$enable_shared" = yes || enable_static=yes
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11000. $as_echo "$enable_static" >&6; }
  11001. fi
  11002. ac_ext=c
  11003. ac_cpp='$CPP $CPPFLAGS'
  11004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11007. CC="$lt_save_CC"
  11008. ac_config_commands="$ac_config_commands libtool"
  11009. # Only expand once:
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  11011. $as_echo_n "checking for bind in -lsocket... " >&6; }
  11012. if ${ac_cv_lib_socket_bind+:} false; then :
  11013. $as_echo_n "(cached) " >&6
  11014. else
  11015. ac_check_lib_save_LIBS=$LIBS
  11016. LIBS="-lsocket $LIBS"
  11017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11018. /* end confdefs.h. */
  11019. /* Override any GCC internal prototype to avoid an error.
  11020. Use char because int might match the return type of a GCC
  11021. builtin and then its argument prototype would still apply. */
  11022. #ifdef __cplusplus
  11023. extern "C"
  11024. #endif
  11025. char bind ();
  11026. int
  11027. main ()
  11028. {
  11029. return bind ();
  11030. ;
  11031. return 0;
  11032. }
  11033. _ACEOF
  11034. if ac_fn_c_try_link "$LINENO"; then :
  11035. ac_cv_lib_socket_bind=yes
  11036. else
  11037. ac_cv_lib_socket_bind=no
  11038. fi
  11039. rm -f core conftest.err conftest.$ac_objext \
  11040. conftest$ac_exeext conftest.$ac_ext
  11041. LIBS=$ac_check_lib_save_LIBS
  11042. fi
  11043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  11044. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  11045. if test "x$ac_cv_lib_socket_bind" = xyes; then :
  11046. cat >>confdefs.h <<_ACEOF
  11047. #define HAVE_LIBSOCKET 1
  11048. _ACEOF
  11049. LIBS="-lsocket $LIBS"
  11050. fi
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  11052. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  11053. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  11054. $as_echo_n "(cached) " >&6
  11055. else
  11056. ac_check_lib_save_LIBS=$LIBS
  11057. LIBS="-lnsl $LIBS"
  11058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11059. /* end confdefs.h. */
  11060. /* Override any GCC internal prototype to avoid an error.
  11061. Use char because int might match the return type of a GCC
  11062. builtin and then its argument prototype would still apply. */
  11063. #ifdef __cplusplus
  11064. extern "C"
  11065. #endif
  11066. char gethostbyname ();
  11067. int
  11068. main ()
  11069. {
  11070. return gethostbyname ();
  11071. ;
  11072. return 0;
  11073. }
  11074. _ACEOF
  11075. if ac_fn_c_try_link "$LINENO"; then :
  11076. ac_cv_lib_nsl_gethostbyname=yes
  11077. else
  11078. ac_cv_lib_nsl_gethostbyname=no
  11079. fi
  11080. rm -f core conftest.err conftest.$ac_objext \
  11081. conftest$ac_exeext conftest.$ac_ext
  11082. LIBS=$ac_check_lib_save_LIBS
  11083. fi
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  11085. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  11086. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  11087. cat >>confdefs.h <<_ACEOF
  11088. #define HAVE_LIBNSL 1
  11089. _ACEOF
  11090. LIBS="-lnsl $LIBS"
  11091. fi
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
  11093. $as_echo_n "checking for fabs in -lm... " >&6; }
  11094. if ${ac_cv_lib_m_fabs+:} false; then :
  11095. $as_echo_n "(cached) " >&6
  11096. else
  11097. ac_check_lib_save_LIBS=$LIBS
  11098. LIBS="-lm $LIBS"
  11099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11100. /* end confdefs.h. */
  11101. /* Override any GCC internal prototype to avoid an error.
  11102. Use char because int might match the return type of a GCC
  11103. builtin and then its argument prototype would still apply. */
  11104. #ifdef __cplusplus
  11105. extern "C"
  11106. #endif
  11107. char fabs ();
  11108. int
  11109. main ()
  11110. {
  11111. return fabs ();
  11112. ;
  11113. return 0;
  11114. }
  11115. _ACEOF
  11116. if ac_fn_c_try_link "$LINENO"; then :
  11117. ac_cv_lib_m_fabs=yes
  11118. else
  11119. ac_cv_lib_m_fabs=no
  11120. fi
  11121. rm -f core conftest.err conftest.$ac_objext \
  11122. conftest$ac_exeext conftest.$ac_ext
  11123. LIBS=$ac_check_lib_save_LIBS
  11124. fi
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
  11126. $as_echo "$ac_cv_lib_m_fabs" >&6; }
  11127. if test "x$ac_cv_lib_m_fabs" = xyes; then :
  11128. cat >>confdefs.h <<_ACEOF
  11129. #define HAVE_LIBM 1
  11130. _ACEOF
  11131. LIBS="-lm $LIBS"
  11132. fi
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
  11134. $as_echo_n "checking for log2 in -lm... " >&6; }
  11135. if ${ac_cv_lib_m_log2+:} false; then :
  11136. $as_echo_n "(cached) " >&6
  11137. else
  11138. ac_check_lib_save_LIBS=$LIBS
  11139. LIBS="-lm $LIBS"
  11140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11141. /* end confdefs.h. */
  11142. /* Override any GCC internal prototype to avoid an error.
  11143. Use char because int might match the return type of a GCC
  11144. builtin and then its argument prototype would still apply. */
  11145. #ifdef __cplusplus
  11146. extern "C"
  11147. #endif
  11148. char log2 ();
  11149. int
  11150. main ()
  11151. {
  11152. return log2 ();
  11153. ;
  11154. return 0;
  11155. }
  11156. _ACEOF
  11157. if ac_fn_c_try_link "$LINENO"; then :
  11158. ac_cv_lib_m_log2=yes
  11159. else
  11160. ac_cv_lib_m_log2=no
  11161. fi
  11162. rm -f core conftest.err conftest.$ac_objext \
  11163. conftest$ac_exeext conftest.$ac_ext
  11164. LIBS=$ac_check_lib_save_LIBS
  11165. fi
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
  11167. $as_echo "$ac_cv_lib_m_log2" >&6; }
  11168. if test "x$ac_cv_lib_m_log2" = xyes; then :
  11169. cat >>confdefs.h <<_ACEOF
  11170. #define HAVE_LIBM 1
  11171. _ACEOF
  11172. LIBS="-lm $LIBS"
  11173. fi
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11175. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11176. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11177. $as_echo_n "(cached) " >&6
  11178. else
  11179. ac_check_lib_save_LIBS=$LIBS
  11180. LIBS="-ldl $LIBS"
  11181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11182. /* end confdefs.h. */
  11183. /* Override any GCC internal prototype to avoid an error.
  11184. Use char because int might match the return type of a GCC
  11185. builtin and then its argument prototype would still apply. */
  11186. #ifdef __cplusplus
  11187. extern "C"
  11188. #endif
  11189. char dlopen ();
  11190. int
  11191. main ()
  11192. {
  11193. return dlopen ();
  11194. ;
  11195. return 0;
  11196. }
  11197. _ACEOF
  11198. if ac_fn_c_try_link "$LINENO"; then :
  11199. ac_cv_lib_dl_dlopen=yes
  11200. else
  11201. ac_cv_lib_dl_dlopen=no
  11202. fi
  11203. rm -f core conftest.err conftest.$ac_objext \
  11204. conftest$ac_exeext conftest.$ac_ext
  11205. LIBS=$ac_check_lib_save_LIBS
  11206. fi
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11208. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11209. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11210. cat >>confdefs.h <<_ACEOF
  11211. #define HAVE_LIBDL 1
  11212. _ACEOF
  11213. LIBS="-ldl $LIBS"
  11214. fi
  11215. if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
  11216. pkg_failed=no
  11217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
  11218. $as_echo_n "checking for sdl2... " >&6; }
  11219. if test -n "$SDL_CFLAGS"; then
  11220. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  11221. elif test -n "$PKG_CONFIG"; then
  11222. if test -n "$PKG_CONFIG" && \
  11223. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
  11224. ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
  11225. ac_status=$?
  11226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11227. test $ac_status = 0; }; then
  11228. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
  11229. test "x$?" != "x0" && pkg_failed=yes
  11230. else
  11231. pkg_failed=yes
  11232. fi
  11233. else
  11234. pkg_failed=untried
  11235. fi
  11236. if test -n "$SDL_LIBS"; then
  11237. pkg_cv_SDL_LIBS="$SDL_LIBS"
  11238. elif test -n "$PKG_CONFIG"; then
  11239. if test -n "$PKG_CONFIG" && \
  11240. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
  11241. ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
  11242. ac_status=$?
  11243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11244. test $ac_status = 0; }; then
  11245. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
  11246. test "x$?" != "x0" && pkg_failed=yes
  11247. else
  11248. pkg_failed=yes
  11249. fi
  11250. else
  11251. pkg_failed=untried
  11252. fi
  11253. if test $pkg_failed = no; then
  11254. pkg_save_LDFLAGS="$LDFLAGS"
  11255. LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
  11256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11257. /* end confdefs.h. */
  11258. int
  11259. main ()
  11260. {
  11261. ;
  11262. return 0;
  11263. }
  11264. _ACEOF
  11265. if ac_fn_c_try_link "$LINENO"; then :
  11266. else
  11267. pkg_failed=yes
  11268. fi
  11269. rm -f core conftest.err conftest.$ac_objext \
  11270. conftest$ac_exeext conftest.$ac_ext
  11271. LDFLAGS=$pkg_save_LDFLAGS
  11272. fi
  11273. if test $pkg_failed = yes; then
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11275. $as_echo "no" >&6; }
  11276. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11277. _pkg_short_errors_supported=yes
  11278. else
  11279. _pkg_short_errors_supported=no
  11280. fi
  11281. if test $_pkg_short_errors_supported = yes; then
  11282. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
  11283. else
  11284. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
  11285. fi
  11286. # Put the nasty error message in config.log where it belongs
  11287. echo "$SDL_PKG_ERRORS" >&5
  11288. pkg_failed=no
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
  11290. $as_echo_n "checking for sdl... " >&6; }
  11291. if test -n "$SDL_CFLAGS"; then
  11292. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  11293. elif test -n "$PKG_CONFIG"; then
  11294. if test -n "$PKG_CONFIG" && \
  11295. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  11296. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  11297. ac_status=$?
  11298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11299. test $ac_status = 0; }; then
  11300. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
  11301. test "x$?" != "x0" && pkg_failed=yes
  11302. else
  11303. pkg_failed=yes
  11304. fi
  11305. else
  11306. pkg_failed=untried
  11307. fi
  11308. if test -n "$SDL_LIBS"; then
  11309. pkg_cv_SDL_LIBS="$SDL_LIBS"
  11310. elif test -n "$PKG_CONFIG"; then
  11311. if test -n "$PKG_CONFIG" && \
  11312. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  11313. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  11314. ac_status=$?
  11315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11316. test $ac_status = 0; }; then
  11317. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
  11318. test "x$?" != "x0" && pkg_failed=yes
  11319. else
  11320. pkg_failed=yes
  11321. fi
  11322. else
  11323. pkg_failed=untried
  11324. fi
  11325. if test $pkg_failed = no; then
  11326. pkg_save_LDFLAGS="$LDFLAGS"
  11327. LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
  11328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11329. /* end confdefs.h. */
  11330. int
  11331. main ()
  11332. {
  11333. ;
  11334. return 0;
  11335. }
  11336. _ACEOF
  11337. if ac_fn_c_try_link "$LINENO"; then :
  11338. else
  11339. pkg_failed=yes
  11340. fi
  11341. rm -f core conftest.err conftest.$ac_objext \
  11342. conftest$ac_exeext conftest.$ac_ext
  11343. LDFLAGS=$pkg_save_LDFLAGS
  11344. fi
  11345. if test $pkg_failed = yes; then
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11347. $as_echo "no" >&6; }
  11348. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11349. _pkg_short_errors_supported=yes
  11350. else
  11351. _pkg_short_errors_supported=no
  11352. fi
  11353. if test $_pkg_short_errors_supported = yes; then
  11354. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
  11355. else
  11356. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
  11357. fi
  11358. # Put the nasty error message in config.log where it belongs
  11359. echo "$SDL_PKG_ERRORS" >&5
  11360. :
  11361. elif test $pkg_failed = untried; then
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11363. $as_echo "no" >&6; }
  11364. :
  11365. else
  11366. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  11367. SDL_LIBS=$pkg_cv_SDL_LIBS
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11369. $as_echo "yes" >&6; }
  11370. SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
  11371. SDL_LIBS="-ldl"
  11372. fi
  11373. elif test $pkg_failed = untried; then
  11374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11375. $as_echo "no" >&6; }
  11376. pkg_failed=no
  11377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
  11378. $as_echo_n "checking for sdl... " >&6; }
  11379. if test -n "$SDL_CFLAGS"; then
  11380. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  11381. elif test -n "$PKG_CONFIG"; then
  11382. if test -n "$PKG_CONFIG" && \
  11383. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  11384. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  11385. ac_status=$?
  11386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11387. test $ac_status = 0; }; then
  11388. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
  11389. test "x$?" != "x0" && pkg_failed=yes
  11390. else
  11391. pkg_failed=yes
  11392. fi
  11393. else
  11394. pkg_failed=untried
  11395. fi
  11396. if test -n "$SDL_LIBS"; then
  11397. pkg_cv_SDL_LIBS="$SDL_LIBS"
  11398. elif test -n "$PKG_CONFIG"; then
  11399. if test -n "$PKG_CONFIG" && \
  11400. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  11401. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  11402. ac_status=$?
  11403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11404. test $ac_status = 0; }; then
  11405. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
  11406. test "x$?" != "x0" && pkg_failed=yes
  11407. else
  11408. pkg_failed=yes
  11409. fi
  11410. else
  11411. pkg_failed=untried
  11412. fi
  11413. if test $pkg_failed = no; then
  11414. pkg_save_LDFLAGS="$LDFLAGS"
  11415. LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
  11416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11417. /* end confdefs.h. */
  11418. int
  11419. main ()
  11420. {
  11421. ;
  11422. return 0;
  11423. }
  11424. _ACEOF
  11425. if ac_fn_c_try_link "$LINENO"; then :
  11426. else
  11427. pkg_failed=yes
  11428. fi
  11429. rm -f core conftest.err conftest.$ac_objext \
  11430. conftest$ac_exeext conftest.$ac_ext
  11431. LDFLAGS=$pkg_save_LDFLAGS
  11432. fi
  11433. if test $pkg_failed = yes; then
  11434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11435. $as_echo "no" >&6; }
  11436. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11437. _pkg_short_errors_supported=yes
  11438. else
  11439. _pkg_short_errors_supported=no
  11440. fi
  11441. if test $_pkg_short_errors_supported = yes; then
  11442. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
  11443. else
  11444. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
  11445. fi
  11446. # Put the nasty error message in config.log where it belongs
  11447. echo "$SDL_PKG_ERRORS" >&5
  11448. :
  11449. elif test $pkg_failed = untried; then
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11451. $as_echo "no" >&6; }
  11452. :
  11453. else
  11454. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  11455. SDL_LIBS=$pkg_cv_SDL_LIBS
  11456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11457. $as_echo "yes" >&6; }
  11458. SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
  11459. SDL_LIBS="-ldl"
  11460. fi
  11461. else
  11462. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  11463. SDL_LIBS=$pkg_cv_SDL_LIBS
  11464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11465. $as_echo "yes" >&6; }
  11466. SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
  11467. SDL_LIBS="-ldl"
  11468. fi
  11469. else
  11470. SDL_CFLAGS=
  11471. SDL_LIBS=
  11472. fi
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
  11474. $as_echo_n "checking for cygwin... " >&6; }
  11475. if ${sim_cv_os_cygwin+:} false; then :
  11476. $as_echo_n "(cached) " >&6
  11477. else
  11478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11479. /* end confdefs.h. */
  11480. #ifdef __CYGWIN__
  11481. lose
  11482. #endif
  11483. _ACEOF
  11484. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11485. $EGREP "lose" >/dev/null 2>&1; then :
  11486. sim_cv_os_cygwin=yes
  11487. else
  11488. sim_cv_os_cygwin=no
  11489. fi
  11490. rm -f conftest*
  11491. fi
  11492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
  11493. $as_echo "$sim_cv_os_cygwin" >&6; }
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
  11495. $as_echo_n "checking for library containing tgetent... " >&6; }
  11496. if ${ac_cv_search_tgetent+:} false; then :
  11497. $as_echo_n "(cached) " >&6
  11498. else
  11499. ac_func_search_save_LIBS=$LIBS
  11500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11501. /* end confdefs.h. */
  11502. /* Override any GCC internal prototype to avoid an error.
  11503. Use char because int might match the return type of a GCC
  11504. builtin and then its argument prototype would still apply. */
  11505. #ifdef __cplusplus
  11506. extern "C"
  11507. #endif
  11508. char tgetent ();
  11509. int
  11510. main ()
  11511. {
  11512. return tgetent ();
  11513. ;
  11514. return 0;
  11515. }
  11516. _ACEOF
  11517. for ac_lib in '' termcap tinfo curses ncurses; do
  11518. if test -z "$ac_lib"; then
  11519. ac_res="none required"
  11520. else
  11521. ac_res=-l$ac_lib
  11522. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11523. fi
  11524. if ac_fn_c_try_link "$LINENO"; then :
  11525. ac_cv_search_tgetent=$ac_res
  11526. fi
  11527. rm -f core conftest.err conftest.$ac_objext \
  11528. conftest$ac_exeext
  11529. if ${ac_cv_search_tgetent+:} false; then :
  11530. break
  11531. fi
  11532. done
  11533. if ${ac_cv_search_tgetent+:} false; then :
  11534. else
  11535. ac_cv_search_tgetent=no
  11536. fi
  11537. rm conftest.$ac_ext
  11538. LIBS=$ac_func_search_save_LIBS
  11539. fi
  11540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
  11541. $as_echo "$ac_cv_search_tgetent" >&6; }
  11542. ac_res=$ac_cv_search_tgetent
  11543. if test "$ac_res" != no; then :
  11544. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11545. TERMCAP_LIB=$ac_cv_search_tgetent
  11546. else
  11547. TERMCAP_LIB=""
  11548. fi
  11549. if test x$sim_cv_os_cygwin = xyes; then
  11550. TERMCAP_LIB="${TERMCAP_LIB} -luser32"
  11551. fi
  11552. if test -r ../readline/Makefile; then
  11553. READLINE_LIB=../../readline/readline/libreadline.a
  11554. READLINE_CFLAGS='-I$(READLINE_SRC)/..'
  11555. else
  11556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  11557. $as_echo_n "checking for readline in -lreadline... " >&6; }
  11558. if ${ac_cv_lib_readline_readline+:} false; then :
  11559. $as_echo_n "(cached) " >&6
  11560. else
  11561. ac_check_lib_save_LIBS=$LIBS
  11562. LIBS="-lreadline $TERMCAP_LIB $LIBS"
  11563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11564. /* end confdefs.h. */
  11565. /* Override any GCC internal prototype to avoid an error.
  11566. Use char because int might match the return type of a GCC
  11567. builtin and then its argument prototype would still apply. */
  11568. #ifdef __cplusplus
  11569. extern "C"
  11570. #endif
  11571. char readline ();
  11572. int
  11573. main ()
  11574. {
  11575. return readline ();
  11576. ;
  11577. return 0;
  11578. }
  11579. _ACEOF
  11580. if ac_fn_c_try_link "$LINENO"; then :
  11581. ac_cv_lib_readline_readline=yes
  11582. else
  11583. ac_cv_lib_readline_readline=no
  11584. fi
  11585. rm -f core conftest.err conftest.$ac_objext \
  11586. conftest$ac_exeext conftest.$ac_ext
  11587. LIBS=$ac_check_lib_save_LIBS
  11588. fi
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  11590. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  11591. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  11592. READLINE_LIB=-lreadline
  11593. else
  11594. as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
  11595. fi
  11596. READLINE_CFLAGS=
  11597. fi
  11598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11599. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  11600. # Check whether --enable-maintainer-mode was given.
  11601. if test "${enable_maintainer_mode+set}" = set; then :
  11602. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  11603. else
  11604. USE_MAINTAINER_MODE=no
  11605. fi
  11606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  11607. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  11608. if test $USE_MAINTAINER_MODE = yes; then
  11609. MAINTAINER_MODE_TRUE=
  11610. MAINTAINER_MODE_FALSE='#'
  11611. else
  11612. MAINTAINER_MODE_TRUE='#'
  11613. MAINTAINER_MODE_FALSE=
  11614. fi
  11615. MAINT=$MAINTAINER_MODE_TRUE
  11616. am__api_version='1.15'
  11617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  11618. $as_echo_n "checking whether build environment is sane... " >&6; }
  11619. # Reject unsafe characters in $srcdir or the absolute working directory
  11620. # name. Accept space and tab only in the latter.
  11621. am_lf='
  11622. '
  11623. case `pwd` in
  11624. *[\\\"\#\$\&\'\`$am_lf]*)
  11625. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  11626. esac
  11627. case $srcdir in
  11628. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  11629. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  11630. esac
  11631. # Do 'set' in a subshell so we don't clobber the current shell's
  11632. # arguments. Must try -L first in case configure is actually a
  11633. # symlink; some systems play weird games with the mod time of symlinks
  11634. # (eg FreeBSD returns the mod time of the symlink's containing
  11635. # directory).
  11636. if (
  11637. am_has_slept=no
  11638. for am_try in 1 2; do
  11639. echo "timestamp, slept: $am_has_slept" > conftest.file
  11640. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11641. if test "$*" = "X"; then
  11642. # -L didn't work.
  11643. set X `ls -t "$srcdir/configure" conftest.file`
  11644. fi
  11645. if test "$*" != "X $srcdir/configure conftest.file" \
  11646. && test "$*" != "X conftest.file $srcdir/configure"; then
  11647. # If neither matched, then we have a broken ls. This can happen
  11648. # if, for instance, CONFIG_SHELL is bash and it inherits a
  11649. # broken ls alias from the environment. This has actually
  11650. # happened. Such a system could not be considered "sane".
  11651. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  11652. alias in your environment" "$LINENO" 5
  11653. fi
  11654. if test "$2" = conftest.file || test $am_try -eq 2; then
  11655. break
  11656. fi
  11657. # Just in case.
  11658. sleep 1
  11659. am_has_slept=yes
  11660. done
  11661. test "$2" = conftest.file
  11662. )
  11663. then
  11664. # Ok.
  11665. :
  11666. else
  11667. as_fn_error $? "newly created file is older than distributed files!
  11668. Check your system clock" "$LINENO" 5
  11669. fi
  11670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11671. $as_echo "yes" >&6; }
  11672. # If we didn't sleep, we still need to ensure time stamps of config.status and
  11673. # generated files are strictly newer.
  11674. am_sleep_pid=
  11675. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  11676. ( sleep 1 ) &
  11677. am_sleep_pid=$!
  11678. fi
  11679. rm -f conftest.file
  11680. if test x"${MISSING+set}" != xset; then
  11681. case $am_aux_dir in
  11682. *\ * | *\ *)
  11683. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11684. *)
  11685. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11686. esac
  11687. fi
  11688. # Use eval to expand $SHELL
  11689. if eval "$MISSING --is-lightweight"; then
  11690. am_missing_run="$MISSING "
  11691. else
  11692. am_missing_run=
  11693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  11694. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  11695. fi
  11696. if test x"${install_sh+set}" != xset; then
  11697. case $am_aux_dir in
  11698. *\ * | *\ *)
  11699. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  11700. *)
  11701. install_sh="\${SHELL} $am_aux_dir/install-sh"
  11702. esac
  11703. fi
  11704. # Installed binaries are usually stripped using 'strip' when the user
  11705. # run "make install-strip". However 'strip' might not be the right
  11706. # tool to use in cross-compilation environments, therefore Automake
  11707. # will honor the 'STRIP' environment variable to overrule this program.
  11708. if test "$cross_compiling" != no; then
  11709. if test -n "$ac_tool_prefix"; then
  11710. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  11711. set dummy ${ac_tool_prefix}strip; ac_word=$2
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11713. $as_echo_n "checking for $ac_word... " >&6; }
  11714. if ${ac_cv_prog_STRIP+:} false; then :
  11715. $as_echo_n "(cached) " >&6
  11716. else
  11717. if test -n "$STRIP"; then
  11718. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  11719. else
  11720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11721. for as_dir in $PATH
  11722. do
  11723. IFS=$as_save_IFS
  11724. test -z "$as_dir" && as_dir=.
  11725. for ac_exec_ext in '' $ac_executable_extensions; do
  11726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11727. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  11728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11729. break 2
  11730. fi
  11731. done
  11732. done
  11733. IFS=$as_save_IFS
  11734. fi
  11735. fi
  11736. STRIP=$ac_cv_prog_STRIP
  11737. if test -n "$STRIP"; then
  11738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  11739. $as_echo "$STRIP" >&6; }
  11740. else
  11741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11742. $as_echo "no" >&6; }
  11743. fi
  11744. fi
  11745. if test -z "$ac_cv_prog_STRIP"; then
  11746. ac_ct_STRIP=$STRIP
  11747. # Extract the first word of "strip", so it can be a program name with args.
  11748. set dummy strip; ac_word=$2
  11749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11750. $as_echo_n "checking for $ac_word... " >&6; }
  11751. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  11752. $as_echo_n "(cached) " >&6
  11753. else
  11754. if test -n "$ac_ct_STRIP"; then
  11755. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  11756. else
  11757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11758. for as_dir in $PATH
  11759. do
  11760. IFS=$as_save_IFS
  11761. test -z "$as_dir" && as_dir=.
  11762. for ac_exec_ext in '' $ac_executable_extensions; do
  11763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11764. ac_cv_prog_ac_ct_STRIP="strip"
  11765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11766. break 2
  11767. fi
  11768. done
  11769. done
  11770. IFS=$as_save_IFS
  11771. fi
  11772. fi
  11773. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  11774. if test -n "$ac_ct_STRIP"; then
  11775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  11776. $as_echo "$ac_ct_STRIP" >&6; }
  11777. else
  11778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11779. $as_echo "no" >&6; }
  11780. fi
  11781. if test "x$ac_ct_STRIP" = x; then
  11782. STRIP=":"
  11783. else
  11784. case $cross_compiling:$ac_tool_warned in
  11785. yes:)
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11787. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11788. ac_tool_warned=yes ;;
  11789. esac
  11790. STRIP=$ac_ct_STRIP
  11791. fi
  11792. else
  11793. STRIP="$ac_cv_prog_STRIP"
  11794. fi
  11795. fi
  11796. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  11798. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  11799. if test -z "$MKDIR_P"; then
  11800. if ${ac_cv_path_mkdir+:} false; then :
  11801. $as_echo_n "(cached) " >&6
  11802. else
  11803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11804. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  11805. do
  11806. IFS=$as_save_IFS
  11807. test -z "$as_dir" && as_dir=.
  11808. for ac_prog in mkdir gmkdir; do
  11809. for ac_exec_ext in '' $ac_executable_extensions; do
  11810. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  11811. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  11812. 'mkdir (GNU coreutils) '* | \
  11813. 'mkdir (coreutils) '* | \
  11814. 'mkdir (fileutils) '4.1*)
  11815. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  11816. break 3;;
  11817. esac
  11818. done
  11819. done
  11820. done
  11821. IFS=$as_save_IFS
  11822. fi
  11823. test -d ./--version && rmdir ./--version
  11824. if test "${ac_cv_path_mkdir+set}" = set; then
  11825. MKDIR_P="$ac_cv_path_mkdir -p"
  11826. else
  11827. # As a last resort, use the slow shell script. Don't cache a
  11828. # value for MKDIR_P within a source directory, because that will
  11829. # break other packages using the cache if that directory is
  11830. # removed, or if the value is a relative name.
  11831. MKDIR_P="$ac_install_sh -d"
  11832. fi
  11833. fi
  11834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  11835. $as_echo "$MKDIR_P" >&6; }
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  11837. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  11838. set x ${MAKE-make}
  11839. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  11840. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  11841. $as_echo_n "(cached) " >&6
  11842. else
  11843. cat >conftest.make <<\_ACEOF
  11844. SHELL = /bin/sh
  11845. all:
  11846. @echo '@@@%%%=$(MAKE)=@@@%%%'
  11847. _ACEOF
  11848. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  11849. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  11850. *@@@%%%=?*=@@@%%%*)
  11851. eval ac_cv_prog_make_${ac_make}_set=yes;;
  11852. *)
  11853. eval ac_cv_prog_make_${ac_make}_set=no;;
  11854. esac
  11855. rm -f conftest.make
  11856. fi
  11857. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  11858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11859. $as_echo "yes" >&6; }
  11860. SET_MAKE=
  11861. else
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11863. $as_echo "no" >&6; }
  11864. SET_MAKE="MAKE=${MAKE-make}"
  11865. fi
  11866. rm -rf .tst 2>/dev/null
  11867. mkdir .tst 2>/dev/null
  11868. if test -d .tst; then
  11869. am__leading_dot=.
  11870. else
  11871. am__leading_dot=_
  11872. fi
  11873. rmdir .tst 2>/dev/null
  11874. DEPDIR="${am__leading_dot}deps"
  11875. ac_config_commands="$ac_config_commands depfiles"
  11876. am_make=${MAKE-make}
  11877. cat > confinc << 'END'
  11878. am__doit:
  11879. @echo this is the am__doit target
  11880. .PHONY: am__doit
  11881. END
  11882. # If we don't find an include directive, just comment out the code.
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  11884. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  11885. am__include="#"
  11886. am__quote=
  11887. _am_result=none
  11888. # First try GNU make style include.
  11889. echo "include confinc" > confmf
  11890. # Ignore all kinds of additional output from 'make'.
  11891. case `$am_make -s -f confmf 2> /dev/null` in #(
  11892. *the\ am__doit\ target*)
  11893. am__include=include
  11894. am__quote=
  11895. _am_result=GNU
  11896. ;;
  11897. esac
  11898. # Now try BSD make style include.
  11899. if test "$am__include" = "#"; then
  11900. echo '.include "confinc"' > confmf
  11901. case `$am_make -s -f confmf 2> /dev/null` in #(
  11902. *the\ am__doit\ target*)
  11903. am__include=.include
  11904. am__quote="\""
  11905. _am_result=BSD
  11906. ;;
  11907. esac
  11908. fi
  11909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  11910. $as_echo "$_am_result" >&6; }
  11911. rm -f confinc confmf
  11912. # Check whether --enable-dependency-tracking was given.
  11913. if test "${enable_dependency_tracking+set}" = set; then :
  11914. enableval=$enable_dependency_tracking;
  11915. fi
  11916. if test "x$enable_dependency_tracking" != xno; then
  11917. am_depcomp="$ac_aux_dir/depcomp"
  11918. AMDEPBACKSLASH='\'
  11919. am__nodep='_no'
  11920. fi
  11921. if test "x$enable_dependency_tracking" != xno; then
  11922. AMDEP_TRUE=
  11923. AMDEP_FALSE='#'
  11924. else
  11925. AMDEP_TRUE='#'
  11926. AMDEP_FALSE=
  11927. fi
  11928. # Check whether --enable-silent-rules was given.
  11929. if test "${enable_silent_rules+set}" = set; then :
  11930. enableval=$enable_silent_rules;
  11931. fi
  11932. case $enable_silent_rules in # (((
  11933. yes) AM_DEFAULT_VERBOSITY=0;;
  11934. no) AM_DEFAULT_VERBOSITY=1;;
  11935. *) AM_DEFAULT_VERBOSITY=1;;
  11936. esac
  11937. am_make=${MAKE-make}
  11938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  11939. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  11940. if ${am_cv_make_support_nested_variables+:} false; then :
  11941. $as_echo_n "(cached) " >&6
  11942. else
  11943. if $as_echo 'TRUE=$(BAR$(V))
  11944. BAR0=false
  11945. BAR1=true
  11946. V=1
  11947. am__doit:
  11948. @$(TRUE)
  11949. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  11950. am_cv_make_support_nested_variables=yes
  11951. else
  11952. am_cv_make_support_nested_variables=no
  11953. fi
  11954. fi
  11955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  11956. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  11957. if test $am_cv_make_support_nested_variables = yes; then
  11958. AM_V='$(V)'
  11959. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  11960. else
  11961. AM_V=$AM_DEFAULT_VERBOSITY
  11962. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  11963. fi
  11964. AM_BACKSLASH='\'
  11965. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  11966. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  11967. # is not polluted with repeated "-I."
  11968. am__isrc=' -I$(srcdir)'
  11969. # test to see if srcdir already configured
  11970. if test -f $srcdir/config.status; then
  11971. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  11972. fi
  11973. fi
  11974. # test whether we have cygpath
  11975. if test -z "$CYGPATH_W"; then
  11976. if (cygpath --version) >/dev/null 2>/dev/null; then
  11977. CYGPATH_W='cygpath -w'
  11978. else
  11979. CYGPATH_W=echo
  11980. fi
  11981. fi
  11982. # Define the identity of the package.
  11983. PACKAGE='sim'
  11984. VERSION='0'
  11985. cat >>confdefs.h <<_ACEOF
  11986. #define PACKAGE "$PACKAGE"
  11987. _ACEOF
  11988. cat >>confdefs.h <<_ACEOF
  11989. #define VERSION "$VERSION"
  11990. _ACEOF
  11991. # Some tools Automake needs.
  11992. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  11993. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  11994. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  11995. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  11996. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  11997. # For better backward compatibility. To be removed once Automake 1.9.x
  11998. # dies out for good. For more background, see:
  11999. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  12000. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  12001. mkdir_p='$(MKDIR_P)'
  12002. # We need awk for the "check" target (and possibly the TAP driver). The
  12003. # system "awk" is bad on some platforms.
  12004. # Always define AMTAR for backward compatibility. Yes, it's still used
  12005. # in the wild :-( We should find a proper way to deprecate it ...
  12006. AMTAR='$${TAR-tar}'
  12007. # We'll loop over all known methods to create a tar archive until one works.
  12008. _am_tools='gnutar pax cpio none'
  12009. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  12010. depcc="$CC" am_compiler_list=
  12011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12012. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12013. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  12014. $as_echo_n "(cached) " >&6
  12015. else
  12016. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12017. # We make a subdir and do the tests there. Otherwise we can end up
  12018. # making bogus files that we don't know about and never remove. For
  12019. # instance it was reported that on HP-UX the gcc test will end up
  12020. # making a dummy file named 'D' -- because '-MD' means "put the output
  12021. # in D".
  12022. rm -rf conftest.dir
  12023. mkdir conftest.dir
  12024. # Copy depcomp to subdir because otherwise we won't find it if we're
  12025. # using a relative directory.
  12026. cp "$am_depcomp" conftest.dir
  12027. cd conftest.dir
  12028. # We will build objects and dependencies in a subdirectory because
  12029. # it helps to detect inapplicable dependency modes. For instance
  12030. # both Tru64's cc and ICC support -MD to output dependencies as a
  12031. # side effect of compilation, but ICC will put the dependencies in
  12032. # the current directory while Tru64 will put them in the object
  12033. # directory.
  12034. mkdir sub
  12035. am_cv_CC_dependencies_compiler_type=none
  12036. if test "$am_compiler_list" = ""; then
  12037. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12038. fi
  12039. am__universal=false
  12040. case " $depcc " in #(
  12041. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12042. esac
  12043. for depmode in $am_compiler_list; do
  12044. # Setup a source with many dependencies, because some compilers
  12045. # like to wrap large dependency lists on column 80 (with \), and
  12046. # we should not choose a depcomp mode which is confused by this.
  12047. #
  12048. # We need to recreate these files for each test, as the compiler may
  12049. # overwrite some of them when testing with obscure command lines.
  12050. # This happens at least with the AIX C compiler.
  12051. : > sub/conftest.c
  12052. for i in 1 2 3 4 5 6; do
  12053. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12054. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12055. # Solaris 10 /bin/sh.
  12056. echo '/* dummy */' > sub/conftst$i.h
  12057. done
  12058. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12059. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12060. # mode. It turns out that the SunPro C++ compiler does not properly
  12061. # handle '-M -o', and we need to detect this. Also, some Intel
  12062. # versions had trouble with output in subdirs.
  12063. am__obj=sub/conftest.${OBJEXT-o}
  12064. am__minus_obj="-o $am__obj"
  12065. case $depmode in
  12066. gcc)
  12067. # This depmode causes a compiler race in universal mode.
  12068. test "$am__universal" = false || continue
  12069. ;;
  12070. nosideeffect)
  12071. # After this tag, mechanisms are not by side-effect, so they'll
  12072. # only be used when explicitly requested.
  12073. if test "x$enable_dependency_tracking" = xyes; then
  12074. continue
  12075. else
  12076. break
  12077. fi
  12078. ;;
  12079. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12080. # This compiler won't grok '-c -o', but also, the minuso test has
  12081. # not run yet. These depmodes are late enough in the game, and
  12082. # so weak that their functioning should not be impacted.
  12083. am__obj=conftest.${OBJEXT-o}
  12084. am__minus_obj=
  12085. ;;
  12086. none) break ;;
  12087. esac
  12088. if depmode=$depmode \
  12089. source=sub/conftest.c object=$am__obj \
  12090. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12091. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12092. >/dev/null 2>conftest.err &&
  12093. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12094. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12095. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12096. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12097. # icc doesn't choke on unknown options, it will just issue warnings
  12098. # or remarks (even with -Werror). So we grep stderr for any message
  12099. # that says an option was ignored or not supported.
  12100. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12101. # icc: Command line warning: ignoring option '-M'; no argument required
  12102. # The diagnosis changed in icc 8.0:
  12103. # icc: Command line remark: option '-MP' not supported
  12104. if (grep 'ignoring option' conftest.err ||
  12105. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12106. am_cv_CC_dependencies_compiler_type=$depmode
  12107. break
  12108. fi
  12109. fi
  12110. done
  12111. cd ..
  12112. rm -rf conftest.dir
  12113. else
  12114. am_cv_CC_dependencies_compiler_type=none
  12115. fi
  12116. fi
  12117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12118. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12119. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12120. if
  12121. test "x$enable_dependency_tracking" != xno \
  12122. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12123. am__fastdepCC_TRUE=
  12124. am__fastdepCC_FALSE='#'
  12125. else
  12126. am__fastdepCC_TRUE='#'
  12127. am__fastdepCC_FALSE=
  12128. fi
  12129. # POSIX will say in a future version that running "rm -f" with no argument
  12130. # is OK; and we want to be able to make that assumption in our Makefile
  12131. # recipes. So use an aggressive probe to check that the usage we want is
  12132. # actually supported "in the wild" to an acceptable degree.
  12133. # See automake bug#10828.
  12134. # To make any issue more visible, cause the running configure to be aborted
  12135. # by default if the 'rm' program in use doesn't match our expectations; the
  12136. # user can still override this though.
  12137. if rm -f && rm -fr && rm -rf; then : OK; else
  12138. cat >&2 <<'END'
  12139. Oops!
  12140. Your 'rm' program seems unable to run without file operands specified
  12141. on the command line, even when the '-f' option is present. This is contrary
  12142. to the behaviour of most rm programs out there, and not conforming with
  12143. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  12144. Please tell bug-automake@gnu.org about your system, including the value
  12145. of your $PATH and any error possibly output before this message. This
  12146. can help us improve future automake versions.
  12147. END
  12148. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  12149. echo 'Configuration will proceed anyway, since you have set the' >&2
  12150. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  12151. echo >&2
  12152. else
  12153. cat >&2 <<'END'
  12154. Aborting the configuration process, to ensure you take notice of the issue.
  12155. You can download and install GNU coreutils to get an 'rm' implementation
  12156. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  12157. If you want to complete the configuration process using your problematic
  12158. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  12159. to "yes", and re-run configure.
  12160. END
  12161. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  12162. fi
  12163. fi
  12164. # Check whether --enable-silent-rules was given.
  12165. if test "${enable_silent_rules+set}" = set; then :
  12166. enableval=$enable_silent_rules;
  12167. fi
  12168. case $enable_silent_rules in # (((
  12169. yes) AM_DEFAULT_VERBOSITY=0;;
  12170. no) AM_DEFAULT_VERBOSITY=1;;
  12171. *) AM_DEFAULT_VERBOSITY=0;;
  12172. esac
  12173. am_make=${MAKE-make}
  12174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  12175. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  12176. if ${am_cv_make_support_nested_variables+:} false; then :
  12177. $as_echo_n "(cached) " >&6
  12178. else
  12179. if $as_echo 'TRUE=$(BAR$(V))
  12180. BAR0=false
  12181. BAR1=true
  12182. V=1
  12183. am__doit:
  12184. @$(TRUE)
  12185. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  12186. am_cv_make_support_nested_variables=yes
  12187. else
  12188. am_cv_make_support_nested_variables=no
  12189. fi
  12190. fi
  12191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  12192. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  12193. if test $am_cv_make_support_nested_variables = yes; then
  12194. AM_V='$(V)'
  12195. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  12196. else
  12197. AM_V=$AM_DEFAULT_VERBOSITY
  12198. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  12199. fi
  12200. AM_BACKSLASH='\'
  12201. # If a cpu ever has more than one simulator to choose from, use
  12202. # --enable-sim=... to choose.
  12203. # Check whether --enable-sim was given.
  12204. if test "${enable_sim+set}" = set; then :
  12205. enableval=$enable_sim; case "${enableval}" in
  12206. yes | no) ;;
  12207. *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
  12208. esac
  12209. fi
  12210. # Check whether --enable-example-sims was given.
  12211. if test "${enable_example_sims+set}" = set; then :
  12212. enableval=$enable_example_sims;
  12213. fi
  12214. # Check whether --enable-targets was given.
  12215. if test "${enable_targets+set}" = set; then :
  12216. enableval=$enable_targets; case "${enableval}" in
  12217. yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
  12218. ;;
  12219. no) enable_targets= ;;
  12220. *) enable_targets=$enableval ;;
  12221. esac
  12222. fi
  12223. SIM_PRIMARY_TARGET=
  12224. SIM_SUBDIRS=
  12225. SIM_COMMON_BUILD_TRUE=
  12226. SIM_COMMON_BUILD_FALSE='#'
  12227. ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
  12228. if test "${enable_sim}" != no; then
  12229. sim_igen=no
  12230. for targ in `echo $target $enable_targets | sed 's/,/ /g'`
  12231. do
  12232. sim_enable_arch_aarch64=false
  12233. case "${targ}" in
  12234. all|aarch64*-*-*)
  12235. if test "${targ}" = "${target}"; then
  12236. SIM_PRIMARY_TARGET=aarch64
  12237. fi
  12238. ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
  12239. ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
  12240. ac_config_commands="$ac_config_commands aarch64/Makefile"
  12241. as_fn_append SIM_SUBDIRS " aarch64"
  12242. ac_config_commands="$ac_config_commands depdir-aarch64"
  12243. sim_enable_arch_aarch64=true
  12244. ;;
  12245. esac
  12246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
  12247. $as_echo_n "checking where to find the target cc... " >&6; }
  12248. if test "x${build}" != "x${host}" ; then
  12249. if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12250. # We already found the complete path
  12251. ac_dir=`dirname $CC_FOR_TARGET`
  12252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12253. $as_echo "pre-installed in $ac_dir" >&6; }
  12254. else
  12255. # Canadian cross, just use what we found
  12256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12257. $as_echo "pre-installed" >&6; }
  12258. fi
  12259. else
  12260. ok=yes
  12261. case " ${configdirs} " in
  12262. *" ${target_alias}-gcc "*) ;;
  12263. *) ok=no ;;
  12264. esac
  12265. if test $ok = yes; then
  12266. # An in-tree tool is available and we can use it
  12267. CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12269. $as_echo "just compiled" >&6; }
  12270. elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12271. # We already found the complete path
  12272. ac_dir=`dirname $CC_FOR_TARGET`
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12274. $as_echo "pre-installed in $ac_dir" >&6; }
  12275. elif test "x$target" = "x$host"; then
  12276. # We can use an host tool
  12277. CC_FOR_TARGET='$(CC)'
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12279. $as_echo "host tool" >&6; }
  12280. else
  12281. # We need a cross tool
  12282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12283. $as_echo "pre-installed" >&6; }
  12284. fi
  12285. fi
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
  12287. $as_echo_n "checking where to find the target as... " >&6; }
  12288. if test "x${build}" != "x${host}" ; then
  12289. if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12290. # We already found the complete path
  12291. ac_dir=`dirname $AS_FOR_TARGET`
  12292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12293. $as_echo "pre-installed in $ac_dir" >&6; }
  12294. else
  12295. # Canadian cross, just use what we found
  12296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12297. $as_echo "pre-installed" >&6; }
  12298. fi
  12299. else
  12300. ok=yes
  12301. case " ${configdirs} " in
  12302. *" \$(abs_builddir) "*) ;;
  12303. *) ok=no ;;
  12304. esac
  12305. if test $ok = yes; then
  12306. # An in-tree tool is available and we can use it
  12307. AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
  12308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12309. $as_echo "just compiled" >&6; }
  12310. elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12311. # We already found the complete path
  12312. ac_dir=`dirname $AS_FOR_TARGET`
  12313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12314. $as_echo "pre-installed in $ac_dir" >&6; }
  12315. elif test "x$target" = "x$host"; then
  12316. # We can use an host tool
  12317. AS_FOR_TARGET='$(AS)'
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12319. $as_echo "host tool" >&6; }
  12320. else
  12321. # We need a cross tool
  12322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12323. $as_echo "pre-installed" >&6; }
  12324. fi
  12325. fi
  12326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
  12327. $as_echo_n "checking where to find the target ld... " >&6; }
  12328. if test "x${build}" != "x${host}" ; then
  12329. if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12330. # We already found the complete path
  12331. ac_dir=`dirname $LD_FOR_TARGET`
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12333. $as_echo "pre-installed in $ac_dir" >&6; }
  12334. else
  12335. # Canadian cross, just use what we found
  12336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12337. $as_echo "pre-installed" >&6; }
  12338. fi
  12339. else
  12340. ok=yes
  12341. case " ${configdirs} " in
  12342. *" \$(abs_builddir) "*) ;;
  12343. *) ok=no ;;
  12344. esac
  12345. if test $ok = yes; then
  12346. # An in-tree tool is available and we can use it
  12347. LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12349. $as_echo "just compiled" >&6; }
  12350. elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12351. # We already found the complete path
  12352. ac_dir=`dirname $LD_FOR_TARGET`
  12353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12354. $as_echo "pre-installed in $ac_dir" >&6; }
  12355. elif test "x$target" = "x$host"; then
  12356. # We can use an host tool
  12357. LD_FOR_TARGET='$(LD)'
  12358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12359. $as_echo "host tool" >&6; }
  12360. else
  12361. # We need a cross tool
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12363. $as_echo "pre-installed" >&6; }
  12364. fi
  12365. fi
  12366. if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
  12367. : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
  12368. : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
  12369. : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
  12370. fi
  12371. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
  12372. if ${sim_enable_arch_aarch64}; then
  12373. SIM_ENABLE_ARCH_aarch64_TRUE=
  12374. SIM_ENABLE_ARCH_aarch64_FALSE='#'
  12375. else
  12376. SIM_ENABLE_ARCH_aarch64_TRUE='#'
  12377. SIM_ENABLE_ARCH_aarch64_FALSE=
  12378. fi
  12379. sim_enable_arch_arm=false
  12380. case "${targ}" in
  12381. all|arm*-*-*)
  12382. if test "${targ}" = "${target}"; then
  12383. SIM_PRIMARY_TARGET=arm
  12384. fi
  12385. ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
  12386. ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
  12387. ac_config_commands="$ac_config_commands arm/Makefile"
  12388. as_fn_append SIM_SUBDIRS " arm"
  12389. ac_config_commands="$ac_config_commands depdir-arm"
  12390. sim_enable_arch_arm=true
  12391. ;;
  12392. esac
  12393. if test "$SIM_PRIMARY_TARGET" = "arm"; then :
  12394. : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
  12395. : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
  12396. : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
  12397. fi
  12398. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
  12399. if ${sim_enable_arch_arm}; then
  12400. SIM_ENABLE_ARCH_arm_TRUE=
  12401. SIM_ENABLE_ARCH_arm_FALSE='#'
  12402. else
  12403. SIM_ENABLE_ARCH_arm_TRUE='#'
  12404. SIM_ENABLE_ARCH_arm_FALSE=
  12405. fi
  12406. sim_enable_arch_avr=false
  12407. case "${targ}" in
  12408. all|avr*-*-*)
  12409. if test "${targ}" = "${target}"; then
  12410. SIM_PRIMARY_TARGET=avr
  12411. fi
  12412. ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
  12413. ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
  12414. ac_config_commands="$ac_config_commands avr/Makefile"
  12415. as_fn_append SIM_SUBDIRS " avr"
  12416. ac_config_commands="$ac_config_commands depdir-avr"
  12417. sim_enable_arch_avr=true
  12418. ;;
  12419. esac
  12420. if test "$SIM_PRIMARY_TARGET" = "avr"; then :
  12421. : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
  12422. : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
  12423. : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
  12424. fi
  12425. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
  12426. if ${sim_enable_arch_avr}; then
  12427. SIM_ENABLE_ARCH_avr_TRUE=
  12428. SIM_ENABLE_ARCH_avr_FALSE='#'
  12429. else
  12430. SIM_ENABLE_ARCH_avr_TRUE='#'
  12431. SIM_ENABLE_ARCH_avr_FALSE=
  12432. fi
  12433. sim_enable_arch_bfin=false
  12434. case "${targ}" in
  12435. all|bfin-*-*)
  12436. if test "${targ}" = "${target}"; then
  12437. SIM_PRIMARY_TARGET=bfin
  12438. fi
  12439. ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
  12440. ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
  12441. ac_config_commands="$ac_config_commands bfin/Makefile"
  12442. as_fn_append SIM_SUBDIRS " bfin"
  12443. ac_config_commands="$ac_config_commands depdir-bfin"
  12444. sim_enable_arch_bfin=true
  12445. ;;
  12446. esac
  12447. if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
  12448. : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
  12449. : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
  12450. : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
  12451. fi
  12452. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
  12453. if ${sim_enable_arch_bfin}; then
  12454. SIM_ENABLE_ARCH_bfin_TRUE=
  12455. SIM_ENABLE_ARCH_bfin_FALSE='#'
  12456. else
  12457. SIM_ENABLE_ARCH_bfin_TRUE='#'
  12458. SIM_ENABLE_ARCH_bfin_FALSE=
  12459. fi
  12460. sim_enable_arch_bpf=false
  12461. case "${targ}" in
  12462. all|bpf-*-*)
  12463. if test "${targ}" = "${target}"; then
  12464. SIM_PRIMARY_TARGET=bpf
  12465. fi
  12466. subdirs="$subdirs bpf"
  12467. ac_config_commands="$ac_config_commands depdir-bpf"
  12468. sim_enable_arch_bpf=true
  12469. ;;
  12470. esac
  12471. if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
  12472. : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
  12473. : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
  12474. : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
  12475. fi
  12476. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
  12477. if ${sim_enable_arch_bpf}; then
  12478. SIM_ENABLE_ARCH_bpf_TRUE=
  12479. SIM_ENABLE_ARCH_bpf_FALSE='#'
  12480. else
  12481. SIM_ENABLE_ARCH_bpf_TRUE='#'
  12482. SIM_ENABLE_ARCH_bpf_FALSE=
  12483. fi
  12484. sim_enable_arch_cr16=false
  12485. case "${targ}" in
  12486. all|cr16*-*-*)
  12487. if test "${targ}" = "${target}"; then
  12488. SIM_PRIMARY_TARGET=cr16
  12489. fi
  12490. ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
  12491. ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
  12492. ac_config_commands="$ac_config_commands cr16/Makefile"
  12493. as_fn_append SIM_SUBDIRS " cr16"
  12494. ac_config_commands="$ac_config_commands depdir-cr16"
  12495. sim_enable_arch_cr16=true
  12496. ;;
  12497. esac
  12498. if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
  12499. : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
  12500. : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
  12501. : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
  12502. fi
  12503. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
  12504. if ${sim_enable_arch_cr16}; then
  12505. SIM_ENABLE_ARCH_cr16_TRUE=
  12506. SIM_ENABLE_ARCH_cr16_FALSE='#'
  12507. else
  12508. SIM_ENABLE_ARCH_cr16_TRUE='#'
  12509. SIM_ENABLE_ARCH_cr16_FALSE=
  12510. fi
  12511. sim_enable_arch_cris=false
  12512. case "${targ}" in
  12513. all|cris-*-* | crisv32-*-*)
  12514. if test "${targ}" = "${target}"; then
  12515. SIM_PRIMARY_TARGET=cris
  12516. fi
  12517. ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
  12518. ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
  12519. ac_config_commands="$ac_config_commands cris/Makefile"
  12520. as_fn_append SIM_SUBDIRS " cris"
  12521. ac_config_commands="$ac_config_commands depdir-cris"
  12522. sim_enable_arch_cris=true
  12523. ;;
  12524. esac
  12525. if test "$SIM_PRIMARY_TARGET" = "cris"; then :
  12526. : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
  12527. : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
  12528. : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
  12529. fi
  12530. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
  12531. if ${sim_enable_arch_cris}; then
  12532. SIM_ENABLE_ARCH_cris_TRUE=
  12533. SIM_ENABLE_ARCH_cris_FALSE='#'
  12534. else
  12535. SIM_ENABLE_ARCH_cris_TRUE='#'
  12536. SIM_ENABLE_ARCH_cris_FALSE=
  12537. fi
  12538. sim_enable_arch_d10v=false
  12539. case "${targ}" in
  12540. all|d10v-*-*)
  12541. if test "${targ}" = "${target}"; then
  12542. SIM_PRIMARY_TARGET=d10v
  12543. fi
  12544. ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
  12545. ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
  12546. ac_config_commands="$ac_config_commands d10v/Makefile"
  12547. as_fn_append SIM_SUBDIRS " d10v"
  12548. ac_config_commands="$ac_config_commands depdir-d10v"
  12549. sim_enable_arch_d10v=true
  12550. ;;
  12551. esac
  12552. if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
  12553. : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
  12554. : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
  12555. : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
  12556. fi
  12557. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
  12558. if ${sim_enable_arch_d10v}; then
  12559. SIM_ENABLE_ARCH_d10v_TRUE=
  12560. SIM_ENABLE_ARCH_d10v_FALSE='#'
  12561. else
  12562. SIM_ENABLE_ARCH_d10v_TRUE='#'
  12563. SIM_ENABLE_ARCH_d10v_FALSE=
  12564. fi
  12565. sim_enable_arch_frv=false
  12566. case "${targ}" in
  12567. all|frv-*-*)
  12568. if test "${targ}" = "${target}"; then
  12569. SIM_PRIMARY_TARGET=frv
  12570. fi
  12571. ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
  12572. ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
  12573. ac_config_commands="$ac_config_commands frv/Makefile"
  12574. as_fn_append SIM_SUBDIRS " frv"
  12575. ac_config_commands="$ac_config_commands depdir-frv"
  12576. sim_enable_arch_frv=true
  12577. ;;
  12578. esac
  12579. if test "$SIM_PRIMARY_TARGET" = "frv"; then :
  12580. : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
  12581. : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
  12582. : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
  12583. fi
  12584. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
  12585. if ${sim_enable_arch_frv}; then
  12586. SIM_ENABLE_ARCH_frv_TRUE=
  12587. SIM_ENABLE_ARCH_frv_FALSE='#'
  12588. else
  12589. SIM_ENABLE_ARCH_frv_TRUE='#'
  12590. SIM_ENABLE_ARCH_frv_FALSE=
  12591. fi
  12592. sim_enable_arch_ft32=false
  12593. case "${targ}" in
  12594. all|ft32-*-*)
  12595. if test "${targ}" = "${target}"; then
  12596. SIM_PRIMARY_TARGET=ft32
  12597. fi
  12598. ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
  12599. ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
  12600. ac_config_commands="$ac_config_commands ft32/Makefile"
  12601. as_fn_append SIM_SUBDIRS " ft32"
  12602. ac_config_commands="$ac_config_commands depdir-ft32"
  12603. sim_enable_arch_ft32=true
  12604. ;;
  12605. esac
  12606. if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
  12607. : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
  12608. : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
  12609. : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
  12610. fi
  12611. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
  12612. if ${sim_enable_arch_ft32}; then
  12613. SIM_ENABLE_ARCH_ft32_TRUE=
  12614. SIM_ENABLE_ARCH_ft32_FALSE='#'
  12615. else
  12616. SIM_ENABLE_ARCH_ft32_TRUE='#'
  12617. SIM_ENABLE_ARCH_ft32_FALSE=
  12618. fi
  12619. sim_enable_arch_h8300=false
  12620. case "${targ}" in
  12621. all|h8300*-*-*)
  12622. if test "${targ}" = "${target}"; then
  12623. SIM_PRIMARY_TARGET=h8300
  12624. fi
  12625. ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
  12626. ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
  12627. ac_config_commands="$ac_config_commands h8300/Makefile"
  12628. as_fn_append SIM_SUBDIRS " h8300"
  12629. ac_config_commands="$ac_config_commands depdir-h8300"
  12630. sim_enable_arch_h8300=true
  12631. ;;
  12632. esac
  12633. if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
  12634. : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
  12635. : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
  12636. : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
  12637. fi
  12638. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
  12639. if ${sim_enable_arch_h8300}; then
  12640. SIM_ENABLE_ARCH_h8300_TRUE=
  12641. SIM_ENABLE_ARCH_h8300_FALSE='#'
  12642. else
  12643. SIM_ENABLE_ARCH_h8300_TRUE='#'
  12644. SIM_ENABLE_ARCH_h8300_FALSE=
  12645. fi
  12646. sim_enable_arch_iq2000=false
  12647. case "${targ}" in
  12648. all|iq2000-*-*)
  12649. if test "${targ}" = "${target}"; then
  12650. SIM_PRIMARY_TARGET=iq2000
  12651. fi
  12652. ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
  12653. ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
  12654. ac_config_commands="$ac_config_commands iq2000/Makefile"
  12655. as_fn_append SIM_SUBDIRS " iq2000"
  12656. ac_config_commands="$ac_config_commands depdir-iq2000"
  12657. sim_enable_arch_iq2000=true
  12658. ;;
  12659. esac
  12660. if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
  12661. : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
  12662. : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
  12663. : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
  12664. fi
  12665. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
  12666. if ${sim_enable_arch_iq2000}; then
  12667. SIM_ENABLE_ARCH_iq2000_TRUE=
  12668. SIM_ENABLE_ARCH_iq2000_FALSE='#'
  12669. else
  12670. SIM_ENABLE_ARCH_iq2000_TRUE='#'
  12671. SIM_ENABLE_ARCH_iq2000_FALSE=
  12672. fi
  12673. sim_enable_arch_lm32=false
  12674. case "${targ}" in
  12675. all|lm32-*-*)
  12676. if test "${targ}" = "${target}"; then
  12677. SIM_PRIMARY_TARGET=lm32
  12678. fi
  12679. ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
  12680. ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
  12681. ac_config_commands="$ac_config_commands lm32/Makefile"
  12682. as_fn_append SIM_SUBDIRS " lm32"
  12683. ac_config_commands="$ac_config_commands depdir-lm32"
  12684. sim_enable_arch_lm32=true
  12685. ;;
  12686. esac
  12687. if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
  12688. : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
  12689. : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
  12690. : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
  12691. fi
  12692. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
  12693. if ${sim_enable_arch_lm32}; then
  12694. SIM_ENABLE_ARCH_lm32_TRUE=
  12695. SIM_ENABLE_ARCH_lm32_FALSE='#'
  12696. else
  12697. SIM_ENABLE_ARCH_lm32_TRUE='#'
  12698. SIM_ENABLE_ARCH_lm32_FALSE=
  12699. fi
  12700. sim_enable_arch_m32c=false
  12701. case "${targ}" in
  12702. all|m32c-*-*)
  12703. if test "${targ}" = "${target}"; then
  12704. SIM_PRIMARY_TARGET=m32c
  12705. fi
  12706. ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
  12707. ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
  12708. ac_config_commands="$ac_config_commands m32c/Makefile"
  12709. as_fn_append SIM_SUBDIRS " m32c"
  12710. ac_config_commands="$ac_config_commands depdir-m32c"
  12711. sim_enable_arch_m32c=true
  12712. ;;
  12713. esac
  12714. if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
  12715. : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
  12716. : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
  12717. : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
  12718. fi
  12719. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
  12720. if ${sim_enable_arch_m32c}; then
  12721. SIM_ENABLE_ARCH_m32c_TRUE=
  12722. SIM_ENABLE_ARCH_m32c_FALSE='#'
  12723. else
  12724. SIM_ENABLE_ARCH_m32c_TRUE='#'
  12725. SIM_ENABLE_ARCH_m32c_FALSE=
  12726. fi
  12727. sim_enable_arch_m32r=false
  12728. case "${targ}" in
  12729. all|m32r-*-*)
  12730. if test "${targ}" = "${target}"; then
  12731. SIM_PRIMARY_TARGET=m32r
  12732. fi
  12733. ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
  12734. ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
  12735. ac_config_commands="$ac_config_commands m32r/Makefile"
  12736. as_fn_append SIM_SUBDIRS " m32r"
  12737. ac_config_commands="$ac_config_commands depdir-m32r"
  12738. sim_enable_arch_m32r=true
  12739. ;;
  12740. esac
  12741. if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
  12742. : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
  12743. : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
  12744. : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
  12745. fi
  12746. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
  12747. if ${sim_enable_arch_m32r}; then
  12748. SIM_ENABLE_ARCH_m32r_TRUE=
  12749. SIM_ENABLE_ARCH_m32r_FALSE='#'
  12750. else
  12751. SIM_ENABLE_ARCH_m32r_TRUE='#'
  12752. SIM_ENABLE_ARCH_m32r_FALSE=
  12753. fi
  12754. sim_enable_arch_m68hc11=false
  12755. case "${targ}" in
  12756. all|m68hc11-*-*|m6811-*-*)
  12757. if test "${targ}" = "${target}"; then
  12758. SIM_PRIMARY_TARGET=m68hc11
  12759. fi
  12760. ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
  12761. ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
  12762. ac_config_commands="$ac_config_commands m68hc11/Makefile"
  12763. as_fn_append SIM_SUBDIRS " m68hc11"
  12764. ac_config_commands="$ac_config_commands depdir-m68hc11"
  12765. sim_enable_arch_m68hc11=true
  12766. ;;
  12767. esac
  12768. if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
  12769. : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
  12770. : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
  12771. : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
  12772. fi
  12773. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
  12774. if ${sim_enable_arch_m68hc11}; then
  12775. SIM_ENABLE_ARCH_m68hc11_TRUE=
  12776. SIM_ENABLE_ARCH_m68hc11_FALSE='#'
  12777. else
  12778. SIM_ENABLE_ARCH_m68hc11_TRUE='#'
  12779. SIM_ENABLE_ARCH_m68hc11_FALSE=
  12780. fi
  12781. sim_enable_arch_mcore=false
  12782. case "${targ}" in
  12783. all|mcore-*-*)
  12784. if test "${targ}" = "${target}"; then
  12785. SIM_PRIMARY_TARGET=mcore
  12786. fi
  12787. ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
  12788. ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
  12789. ac_config_commands="$ac_config_commands mcore/Makefile"
  12790. as_fn_append SIM_SUBDIRS " mcore"
  12791. ac_config_commands="$ac_config_commands depdir-mcore"
  12792. sim_enable_arch_mcore=true
  12793. ;;
  12794. esac
  12795. if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
  12796. : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
  12797. : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
  12798. : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
  12799. fi
  12800. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
  12801. if ${sim_enable_arch_mcore}; then
  12802. SIM_ENABLE_ARCH_mcore_TRUE=
  12803. SIM_ENABLE_ARCH_mcore_FALSE='#'
  12804. else
  12805. SIM_ENABLE_ARCH_mcore_TRUE='#'
  12806. SIM_ENABLE_ARCH_mcore_FALSE=
  12807. fi
  12808. sim_enable_arch_microblaze=false
  12809. case "${targ}" in
  12810. all|microblaze*-*-*)
  12811. if test "${targ}" = "${target}"; then
  12812. SIM_PRIMARY_TARGET=microblaze
  12813. fi
  12814. ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
  12815. ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
  12816. ac_config_commands="$ac_config_commands microblaze/Makefile"
  12817. as_fn_append SIM_SUBDIRS " microblaze"
  12818. ac_config_commands="$ac_config_commands depdir-microblaze"
  12819. sim_enable_arch_microblaze=true
  12820. ;;
  12821. esac
  12822. if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
  12823. : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
  12824. : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
  12825. : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
  12826. fi
  12827. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
  12828. if ${sim_enable_arch_microblaze}; then
  12829. SIM_ENABLE_ARCH_microblaze_TRUE=
  12830. SIM_ENABLE_ARCH_microblaze_FALSE='#'
  12831. else
  12832. SIM_ENABLE_ARCH_microblaze_TRUE='#'
  12833. SIM_ENABLE_ARCH_microblaze_FALSE=
  12834. fi
  12835. sim_enable_arch_mips=false
  12836. case "${targ}" in
  12837. all|mips*-*-*)
  12838. if test "${targ}" = "${target}"; then
  12839. SIM_PRIMARY_TARGET=mips
  12840. fi
  12841. subdirs="$subdirs mips"
  12842. ac_config_commands="$ac_config_commands depdir-mips"
  12843. sim_enable_arch_mips=true
  12844. sim_igen=yes
  12845. ;;
  12846. esac
  12847. if test "$SIM_PRIMARY_TARGET" = "mips"; then :
  12848. : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
  12849. : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
  12850. : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
  12851. fi
  12852. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
  12853. if ${sim_enable_arch_mips}; then
  12854. SIM_ENABLE_ARCH_mips_TRUE=
  12855. SIM_ENABLE_ARCH_mips_FALSE='#'
  12856. else
  12857. SIM_ENABLE_ARCH_mips_TRUE='#'
  12858. SIM_ENABLE_ARCH_mips_FALSE=
  12859. fi
  12860. sim_enable_arch_mn10300=false
  12861. case "${targ}" in
  12862. all|mn10300*-*-*)
  12863. if test "${targ}" = "${target}"; then
  12864. SIM_PRIMARY_TARGET=mn10300
  12865. fi
  12866. subdirs="$subdirs mn10300"
  12867. ac_config_commands="$ac_config_commands depdir-mn10300"
  12868. sim_enable_arch_mn10300=true
  12869. sim_igen=yes
  12870. ;;
  12871. esac
  12872. if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
  12873. : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
  12874. : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
  12875. : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
  12876. fi
  12877. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
  12878. if ${sim_enable_arch_mn10300}; then
  12879. SIM_ENABLE_ARCH_mn10300_TRUE=
  12880. SIM_ENABLE_ARCH_mn10300_FALSE='#'
  12881. else
  12882. SIM_ENABLE_ARCH_mn10300_TRUE='#'
  12883. SIM_ENABLE_ARCH_mn10300_FALSE=
  12884. fi
  12885. sim_enable_arch_moxie=false
  12886. case "${targ}" in
  12887. all|moxie-*-*)
  12888. if test "${targ}" = "${target}"; then
  12889. SIM_PRIMARY_TARGET=moxie
  12890. fi
  12891. ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
  12892. ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
  12893. ac_config_commands="$ac_config_commands moxie/Makefile"
  12894. as_fn_append SIM_SUBDIRS " moxie"
  12895. ac_config_commands="$ac_config_commands depdir-moxie"
  12896. sim_enable_arch_moxie=true
  12897. ;;
  12898. esac
  12899. if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
  12900. : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
  12901. : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
  12902. : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
  12903. fi
  12904. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
  12905. if ${sim_enable_arch_moxie}; then
  12906. SIM_ENABLE_ARCH_moxie_TRUE=
  12907. SIM_ENABLE_ARCH_moxie_FALSE='#'
  12908. else
  12909. SIM_ENABLE_ARCH_moxie_TRUE='#'
  12910. SIM_ENABLE_ARCH_moxie_FALSE=
  12911. fi
  12912. sim_enable_arch_msp430=false
  12913. case "${targ}" in
  12914. all|msp430*-*-*)
  12915. if test "${targ}" = "${target}"; then
  12916. SIM_PRIMARY_TARGET=msp430
  12917. fi
  12918. ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
  12919. ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
  12920. ac_config_commands="$ac_config_commands msp430/Makefile"
  12921. as_fn_append SIM_SUBDIRS " msp430"
  12922. ac_config_commands="$ac_config_commands depdir-msp430"
  12923. sim_enable_arch_msp430=true
  12924. ;;
  12925. esac
  12926. if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
  12927. : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
  12928. : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
  12929. : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
  12930. fi
  12931. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
  12932. if ${sim_enable_arch_msp430}; then
  12933. SIM_ENABLE_ARCH_msp430_TRUE=
  12934. SIM_ENABLE_ARCH_msp430_FALSE='#'
  12935. else
  12936. SIM_ENABLE_ARCH_msp430_TRUE='#'
  12937. SIM_ENABLE_ARCH_msp430_FALSE=
  12938. fi
  12939. sim_enable_arch_or1k=false
  12940. case "${targ}" in
  12941. all|or1k*-*-*)
  12942. if test "${targ}" = "${target}"; then
  12943. SIM_PRIMARY_TARGET=or1k
  12944. fi
  12945. subdirs="$subdirs or1k"
  12946. ac_config_commands="$ac_config_commands depdir-or1k"
  12947. sim_enable_arch_or1k=true
  12948. ;;
  12949. esac
  12950. if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
  12951. : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
  12952. : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
  12953. : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
  12954. fi
  12955. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
  12956. if ${sim_enable_arch_or1k}; then
  12957. SIM_ENABLE_ARCH_or1k_TRUE=
  12958. SIM_ENABLE_ARCH_or1k_FALSE='#'
  12959. else
  12960. SIM_ENABLE_ARCH_or1k_TRUE='#'
  12961. SIM_ENABLE_ARCH_or1k_FALSE=
  12962. fi
  12963. sim_enable_arch_ppc=false
  12964. case "${targ}" in
  12965. all|powerpc*-*-*)
  12966. if test "${targ}" = "${target}"; then
  12967. SIM_PRIMARY_TARGET=ppc
  12968. fi
  12969. subdirs="$subdirs ppc"
  12970. ac_config_commands="$ac_config_commands depdir-ppc"
  12971. sim_enable_arch_ppc=true
  12972. ;;
  12973. esac
  12974. if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
  12975. : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
  12976. : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
  12977. : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
  12978. fi
  12979. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
  12980. if ${sim_enable_arch_ppc}; then
  12981. SIM_ENABLE_ARCH_ppc_TRUE=
  12982. SIM_ENABLE_ARCH_ppc_FALSE='#'
  12983. else
  12984. SIM_ENABLE_ARCH_ppc_TRUE='#'
  12985. SIM_ENABLE_ARCH_ppc_FALSE=
  12986. fi
  12987. sim_enable_arch_pru=false
  12988. case "${targ}" in
  12989. all|pru*-*-*)
  12990. if test "${targ}" = "${target}"; then
  12991. SIM_PRIMARY_TARGET=pru
  12992. fi
  12993. ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
  12994. ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
  12995. ac_config_commands="$ac_config_commands pru/Makefile"
  12996. as_fn_append SIM_SUBDIRS " pru"
  12997. ac_config_commands="$ac_config_commands depdir-pru"
  12998. sim_enable_arch_pru=true
  12999. ;;
  13000. esac
  13001. if test "$SIM_PRIMARY_TARGET" = "pru"; then :
  13002. : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
  13003. : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
  13004. : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
  13005. fi
  13006. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
  13007. if ${sim_enable_arch_pru}; then
  13008. SIM_ENABLE_ARCH_pru_TRUE=
  13009. SIM_ENABLE_ARCH_pru_FALSE='#'
  13010. else
  13011. SIM_ENABLE_ARCH_pru_TRUE='#'
  13012. SIM_ENABLE_ARCH_pru_FALSE=
  13013. fi
  13014. sim_enable_arch_riscv=false
  13015. case "${targ}" in
  13016. all|riscv*-*-*)
  13017. if test "${targ}" = "${target}"; then
  13018. SIM_PRIMARY_TARGET=riscv
  13019. fi
  13020. subdirs="$subdirs riscv"
  13021. ac_config_commands="$ac_config_commands depdir-riscv"
  13022. sim_enable_arch_riscv=true
  13023. ;;
  13024. esac
  13025. if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
  13026. : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
  13027. : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
  13028. : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
  13029. fi
  13030. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
  13031. if ${sim_enable_arch_riscv}; then
  13032. SIM_ENABLE_ARCH_riscv_TRUE=
  13033. SIM_ENABLE_ARCH_riscv_FALSE='#'
  13034. else
  13035. SIM_ENABLE_ARCH_riscv_TRUE='#'
  13036. SIM_ENABLE_ARCH_riscv_FALSE=
  13037. fi
  13038. sim_enable_arch_rl78=false
  13039. case "${targ}" in
  13040. all|rl78-*-*)
  13041. if test "${targ}" = "${target}"; then
  13042. SIM_PRIMARY_TARGET=rl78
  13043. fi
  13044. ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
  13045. ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
  13046. ac_config_commands="$ac_config_commands rl78/Makefile"
  13047. as_fn_append SIM_SUBDIRS " rl78"
  13048. ac_config_commands="$ac_config_commands depdir-rl78"
  13049. sim_enable_arch_rl78=true
  13050. ;;
  13051. esac
  13052. if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
  13053. : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
  13054. : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
  13055. : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
  13056. fi
  13057. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
  13058. if ${sim_enable_arch_rl78}; then
  13059. SIM_ENABLE_ARCH_rl78_TRUE=
  13060. SIM_ENABLE_ARCH_rl78_FALSE='#'
  13061. else
  13062. SIM_ENABLE_ARCH_rl78_TRUE='#'
  13063. SIM_ENABLE_ARCH_rl78_FALSE=
  13064. fi
  13065. sim_enable_arch_rx=false
  13066. case "${targ}" in
  13067. all|rx-*-*)
  13068. if test "${targ}" = "${target}"; then
  13069. SIM_PRIMARY_TARGET=rx
  13070. fi
  13071. ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
  13072. ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
  13073. ac_config_commands="$ac_config_commands rx/Makefile"
  13074. as_fn_append SIM_SUBDIRS " rx"
  13075. ac_config_commands="$ac_config_commands depdir-rx"
  13076. sim_enable_arch_rx=true
  13077. ;;
  13078. esac
  13079. if test "$SIM_PRIMARY_TARGET" = "rx"; then :
  13080. : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
  13081. : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
  13082. : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
  13083. fi
  13084. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
  13085. if ${sim_enable_arch_rx}; then
  13086. SIM_ENABLE_ARCH_rx_TRUE=
  13087. SIM_ENABLE_ARCH_rx_FALSE='#'
  13088. else
  13089. SIM_ENABLE_ARCH_rx_TRUE='#'
  13090. SIM_ENABLE_ARCH_rx_FALSE=
  13091. fi
  13092. sim_enable_arch_sh=false
  13093. case "${targ}" in
  13094. all|sh*-*-*)
  13095. if test "${targ}" = "${target}"; then
  13096. SIM_PRIMARY_TARGET=sh
  13097. fi
  13098. ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
  13099. ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
  13100. ac_config_commands="$ac_config_commands sh/Makefile"
  13101. as_fn_append SIM_SUBDIRS " sh"
  13102. ac_config_commands="$ac_config_commands depdir-sh"
  13103. sim_enable_arch_sh=true
  13104. ;;
  13105. esac
  13106. if test "$SIM_PRIMARY_TARGET" = "sh"; then :
  13107. : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
  13108. : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
  13109. : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
  13110. fi
  13111. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
  13112. if ${sim_enable_arch_sh}; then
  13113. SIM_ENABLE_ARCH_sh_TRUE=
  13114. SIM_ENABLE_ARCH_sh_FALSE='#'
  13115. else
  13116. SIM_ENABLE_ARCH_sh_TRUE='#'
  13117. SIM_ENABLE_ARCH_sh_FALSE=
  13118. fi
  13119. sim_enable_arch_erc32=false
  13120. case "${targ}" in
  13121. all|sparc-*-*)
  13122. if test "${targ}" = "${target}"; then
  13123. SIM_PRIMARY_TARGET=erc32
  13124. fi
  13125. ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
  13126. ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
  13127. ac_config_commands="$ac_config_commands erc32/Makefile"
  13128. as_fn_append SIM_SUBDIRS " erc32"
  13129. ac_config_commands="$ac_config_commands depdir-erc32"
  13130. sim_enable_arch_erc32=true
  13131. ;;
  13132. esac
  13133. if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
  13134. : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
  13135. : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
  13136. : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
  13137. fi
  13138. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
  13139. if ${sim_enable_arch_erc32}; then
  13140. SIM_ENABLE_ARCH_erc32_TRUE=
  13141. SIM_ENABLE_ARCH_erc32_FALSE='#'
  13142. else
  13143. SIM_ENABLE_ARCH_erc32_TRUE='#'
  13144. SIM_ENABLE_ARCH_erc32_FALSE=
  13145. fi
  13146. sim_enable_arch_v850=false
  13147. case "${targ}" in
  13148. all|v850*-*-*)
  13149. if test "${targ}" = "${target}"; then
  13150. SIM_PRIMARY_TARGET=v850
  13151. fi
  13152. subdirs="$subdirs v850"
  13153. ac_config_commands="$ac_config_commands depdir-v850"
  13154. sim_enable_arch_v850=true
  13155. sim_igen=yes
  13156. ;;
  13157. esac
  13158. if test "$SIM_PRIMARY_TARGET" = "v850"; then :
  13159. : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
  13160. : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
  13161. : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
  13162. fi
  13163. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
  13164. if ${sim_enable_arch_v850}; then
  13165. SIM_ENABLE_ARCH_v850_TRUE=
  13166. SIM_ENABLE_ARCH_v850_FALSE='#'
  13167. else
  13168. SIM_ENABLE_ARCH_v850_TRUE='#'
  13169. SIM_ENABLE_ARCH_v850_FALSE=
  13170. fi
  13171. done
  13172. if test "x${enable_example_sims}" = xyes; then
  13173. : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
  13174. : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
  13175. : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
  13176. as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
  13177. ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
  13178. ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
  13179. ac_config_commands="$ac_config_commands example-synacor/Makefile"
  13180. as_fn_append SIM_SUBDIRS " example-synacor"
  13181. ac_config_commands="$ac_config_commands depdir-example-synacor"
  13182. fi
  13183. fi
  13184. if test "$sim_igen" = "yes"; then
  13185. SIM_ENABLE_IGEN_TRUE=
  13186. SIM_ENABLE_IGEN_FALSE='#'
  13187. else
  13188. SIM_ENABLE_IGEN_TRUE='#'
  13189. SIM_ENABLE_IGEN_FALSE=
  13190. fi
  13191. if test -n "$SIM_SUBDIRS"; then
  13192. ENABLE_SIM_TRUE=
  13193. ENABLE_SIM_FALSE='#'
  13194. else
  13195. ENABLE_SIM_TRUE='#'
  13196. ENABLE_SIM_FALSE=
  13197. fi
  13198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
  13199. $as_echo_n "checking whether to force sim alignment... " >&6; }
  13200. sim_alignment=
  13201. # Check whether --enable-sim-alignment was given.
  13202. if test "${enable_sim_alignment+set}" = set; then :
  13203. enableval=$enable_sim_alignment; case "${enableval}" in
  13204. yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
  13205. no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
  13206. forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
  13207. *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
  13208. esac
  13209. fi
  13210. cat >>confdefs.h <<_ACEOF
  13211. #define WITH_ALIGNMENT ${sim_alignment:-0}
  13212. _ACEOF
  13213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
  13214. $as_echo "${sim_alignment:-no}" >&6; }
  13215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
  13216. $as_echo_n "checking whether to enable sim asserts... " >&6; }
  13217. sim_assert="1"
  13218. # Check whether --enable-sim-assert was given.
  13219. if test "${enable_sim_assert+set}" = set; then :
  13220. enableval=$enable_sim_assert; case "${enableval}" in
  13221. yes) sim_assert="1";;
  13222. no) sim_assert="0";;
  13223. *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
  13224. esac
  13225. fi
  13226. cat >>confdefs.h <<_ACEOF
  13227. #define WITH_ASSERT $sim_assert
  13228. _ACEOF
  13229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
  13230. $as_echo "$sim_assert" >&6; }
  13231. cgen_maint=no
  13232. cgen=guile
  13233. cgendir='$(srcdir)/../../cgen'
  13234. # Check whether --enable-cgen-maint was given.
  13235. if test "${enable_cgen_maint+set}" = set; then :
  13236. enableval=$enable_cgen_maint; case "${enableval}" in
  13237. yes) cgen_maint=yes ;;
  13238. no) cgen_maint=no ;;
  13239. *)
  13240. # Argument is a directory where cgen can be found. In some
  13241. # future world cgen could be installable, but right now this
  13242. # is not the case. Instead we assume the directory is a path
  13243. # to the cgen source tree.
  13244. cgen_maint=yes
  13245. if test -r ${enableval}/iformat.scm; then
  13246. # This looks like a cgen source tree.
  13247. cgendir=${enableval}
  13248. else
  13249. as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
  13250. fi
  13251. ;;
  13252. esac
  13253. fi
  13254. if test x${cgen_maint} != xno ; then
  13255. CGEN_MAINT=''
  13256. else
  13257. CGEN_MAINT='#'
  13258. fi
  13259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
  13260. $as_echo_n "checking for sim debug setting... " >&6; }
  13261. sim_debug="0"
  13262. # Check whether --enable-sim-debug was given.
  13263. if test "${enable_sim_debug+set}" = set; then :
  13264. enableval=$enable_sim_debug; case "${enableval}" in
  13265. yes) sim_debug="7";;
  13266. no) sim_debug="0";;
  13267. *) sim_debug="($enableval)";;
  13268. esac
  13269. fi
  13270. if test "$sim_debug" != "0"; then
  13271. cat >>confdefs.h <<_ACEOF
  13272. #define DEBUG $sim_debug
  13273. _ACEOF
  13274. fi
  13275. cat >>confdefs.h <<_ACEOF
  13276. #define WITH_DEBUG $sim_debug
  13277. _ACEOF
  13278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
  13279. $as_echo "$sim_debug" >&6; }
  13280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
  13281. $as_echo_n "checking whether to force sim endianness... " >&6; }
  13282. sim_endian=
  13283. # Check whether --enable-sim-endian was given.
  13284. if test "${enable_sim_endian+set}" = set; then :
  13285. enableval=$enable_sim_endian; case "${enableval}" in
  13286. b*|B*) sim_endian="BFD_ENDIAN_BIG";;
  13287. l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
  13288. yes | no) ;;
  13289. *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
  13290. esac
  13291. fi
  13292. cat >>confdefs.h <<_ACEOF
  13293. #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
  13294. _ACEOF
  13295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
  13296. $as_echo "${sim_alignment:-no}" >&6; }
  13297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
  13298. $as_echo_n "checking default sim environment setting... " >&6; }
  13299. sim_environment="ALL_ENVIRONMENT"
  13300. # Check whether --enable-sim-environment was given.
  13301. if test "${enable_sim_environment+set}" = set; then :
  13302. enableval=$enable_sim_environment; case "${enableval}" in
  13303. all | ALL) sim_environment="ALL_ENVIRONMENT";;
  13304. user | USER) sim_environment="USER_ENVIRONMENT";;
  13305. virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
  13306. operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
  13307. *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
  13308. esac
  13309. fi
  13310. cat >>confdefs.h <<_ACEOF
  13311. #define WITH_ENVIRONMENT $sim_environment
  13312. _ACEOF
  13313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
  13314. $as_echo "$sim_environment" >&6; }
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
  13316. $as_echo_n "checking for sim hardware settings... " >&6; }
  13317. # Check whether --enable-sim-hardware was given.
  13318. if test "${enable_sim_hardware+set}" = set; then :
  13319. enableval=$enable_sim_hardware;
  13320. else
  13321. enable_sim_hardware="yes"
  13322. fi
  13323. sim_hw_sockser=
  13324. if test "$enable_sim_hardware" = no; then
  13325. sim_hw_cflags="-DWITH_HW=0"
  13326. elif test "$enable_sim_hardware" = yes; then
  13327. sim_hw_cflags="-DWITH_HW=1"
  13328. sim_hw_sockser="dv-sockser.o"
  13329. sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
  13330. else
  13331. as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
  13332. fi
  13333. if test "$enable_sim_hardware" = "yes"; then
  13334. SIM_ENABLE_HW_TRUE=
  13335. SIM_ENABLE_HW_FALSE='#'
  13336. else
  13337. SIM_ENABLE_HW_TRUE='#'
  13338. SIM_ENABLE_HW_FALSE=
  13339. fi
  13340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
  13341. $as_echo "${enable_sim_hardware}" >&6; }
  13342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
  13343. $as_echo_n "checking sim inline settings... " >&6; }
  13344. sim_inline="-DDEFAULT_INLINE=0"
  13345. # Check whether --enable-sim-inline was given.
  13346. if test "${enable_sim_inline+set}" = set; then :
  13347. enableval=$enable_sim_inline; sim_inline=""
  13348. case "$enableval" in
  13349. no) sim_inline="-DDEFAULT_INLINE=0";;
  13350. 0) sim_inline="-DDEFAULT_INLINE=0";;
  13351. yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
  13352. 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
  13353. *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  13354. new_flag=""
  13355. case "$x" in
  13356. *_INLINE=*) new_flag="-D$x";;
  13357. *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
  13358. *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
  13359. *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
  13360. esac
  13361. if test x"$sim_inline" = x""; then
  13362. sim_inline="$new_flag"
  13363. else
  13364. sim_inline="$sim_inline $new_flag"
  13365. fi
  13366. done;;
  13367. esac
  13368. fi
  13369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
  13370. $as_echo "$sim_inline" >&6; }
  13371. SIM_INLINE=$sim_inline
  13372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
  13373. $as_echo_n "checking for sim profile settings... " >&6; }
  13374. profile="1"
  13375. sim_profile="-1"
  13376. # Check whether --enable-sim-profile was given.
  13377. if test "${enable_sim_profile+set}" = set; then :
  13378. enableval=$enable_sim_profile; case "${enableval}" in
  13379. yes) profile="1" sim_profile="-1";;
  13380. no) profile="0" sim_profile="0";;
  13381. [-0-9]*)
  13382. profile="(${enableval})" sim_profile="(${enableval})";;
  13383. [a-z]*)
  13384. profile="1"
  13385. sim_profile=""
  13386. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  13387. if test x"$sim_profile" = x; then
  13388. sim_profile="(PROFILE_$x"
  13389. else
  13390. sim_profile="${sim_profile}|PROFILE_$x"
  13391. fi
  13392. done
  13393. sim_profile="$sim_profile)" ;;
  13394. esac
  13395. fi
  13396. cat >>confdefs.h <<_ACEOF
  13397. #define PROFILE $profile
  13398. _ACEOF
  13399. cat >>confdefs.h <<_ACEOF
  13400. #define WITH_PROFILE $sim_profile
  13401. _ACEOF
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
  13403. $as_echo "$sim_profile" >&6; }
  13404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
  13405. $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
  13406. # Check whether --enable-sim-reserved-bits was given.
  13407. if test "${enable_sim_reserved_bits+set}" = set; then :
  13408. enableval=$enable_sim_reserved_bits; case "${enableval}" in
  13409. yes|no) ;;
  13410. *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
  13411. esac
  13412. fi
  13413. if test "x${enable_sim_reserved_bits}" != xno; then
  13414. sim_reserved_bits=1
  13415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13416. $as_echo "yes" >&6; }
  13417. else
  13418. sim_reserved_bits=0
  13419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13420. $as_echo "no" >&6; }
  13421. fi
  13422. cat >>confdefs.h <<_ACEOF
  13423. #define WITH_RESERVED_BITS $sim_reserved_bits
  13424. _ACEOF
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
  13426. $as_echo_n "checking for sim cache size... " >&6; }
  13427. sim_scache="16384"
  13428. # Check whether --enable-sim-scache was given.
  13429. if test "${enable_sim_scache+set}" = set; then :
  13430. enableval=$enable_sim_scache; case "${enableval}" in
  13431. yes) ;;
  13432. no) sim_scache="0";;
  13433. [0-9]*) sim_scache="${enableval}";;
  13434. *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
  13435. esac
  13436. fi
  13437. cat >>confdefs.h <<_ACEOF
  13438. #define WITH_SCACHE $sim_scache
  13439. _ACEOF
  13440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
  13441. $as_echo "$sim_scache" >&6; }
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
  13443. $as_echo_n "checking for sim stdio debug behavior... " >&6; }
  13444. sim_stdio="0"
  13445. # Check whether --enable-sim-stdio was given.
  13446. if test "${enable_sim_stdio+set}" = set; then :
  13447. enableval=$enable_sim_stdio; case "${enableval}" in
  13448. yes) sim_stdio="DO_USE_STDIO";;
  13449. no) sim_stdio="DONT_USE_STDIO";;
  13450. *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
  13451. esac
  13452. fi
  13453. cat >>confdefs.h <<_ACEOF
  13454. #define WITH_STDIO $sim_stdio
  13455. _ACEOF
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
  13457. $as_echo "$sim_stdio" >&6; }
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
  13459. $as_echo_n "checking for sim trace settings... " >&6; }
  13460. sim_trace="~TRACE_debug"
  13461. # Check whether --enable-sim-trace was given.
  13462. if test "${enable_sim_trace+set}" = set; then :
  13463. enableval=$enable_sim_trace; case "${enableval}" in
  13464. yes) sim_trace="-1";;
  13465. no) sim_trace="0";;
  13466. [-0-9]*)
  13467. sim_trace="'(${enableval})'";;
  13468. [[:lower:]]*)
  13469. sim_trace=""
  13470. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  13471. if test x"$sim_trace" = x; then
  13472. sim_trace="(TRACE_$x"
  13473. else
  13474. sim_trace="${sim_trace}|TRACE_$x"
  13475. fi
  13476. done
  13477. sim_trace="$sim_trace)" ;;
  13478. esac
  13479. fi
  13480. cat >>confdefs.h <<_ACEOF
  13481. #define WITH_TRACE $sim_trace
  13482. _ACEOF
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
  13484. $as_echo "$sim_trace" >&6; }
  13485. # Check whether --enable-werror was given.
  13486. if test "${enable_werror+set}" = set; then :
  13487. enableval=$enable_werror; case "${enableval}" in
  13488. yes | y) ERROR_ON_WARNING="yes" ;;
  13489. no | n) ERROR_ON_WARNING="no" ;;
  13490. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  13491. esac
  13492. fi
  13493. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  13494. ERROR_ON_WARNING=yes
  13495. fi
  13496. WERROR_CFLAGS=""
  13497. if test "${ERROR_ON_WARNING}" = yes ; then
  13498. WERROR_CFLAGS="-Werror"
  13499. fi
  13500. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
  13501. -Wno-unused -Wunused-value -Wunused-function
  13502. -Wno-switch -Wno-char-subscripts
  13503. -Wempty-body -Wunused-but-set-parameter
  13504. -Wno-error=maybe-uninitialized
  13505. -Wmissing-declarations
  13506. -Wmissing-prototypes
  13507. -Wdeclaration-after-statement -Wmissing-parameter-type
  13508. -Wpointer-sign
  13509. -Wold-style-declaration -Wold-style-definition
  13510. "
  13511. # Enable -Wno-format by default when using gcc on mingw since many
  13512. # GCC versions complain about %I64.
  13513. case "${host}" in
  13514. *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
  13515. *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
  13516. esac
  13517. # Check whether --enable-build-warnings was given.
  13518. if test "${enable_build_warnings+set}" = set; then :
  13519. enableval=$enable_build_warnings; case "${enableval}" in
  13520. yes) ;;
  13521. no) build_warnings="-w";;
  13522. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  13523. build_warnings="${build_warnings} ${t}";;
  13524. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  13525. build_warnings="${t} ${build_warnings}";;
  13526. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  13527. esac
  13528. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  13529. echo "Setting compiler warning flags = $build_warnings" 6>&1
  13530. fi
  13531. fi
  13532. # Check whether --enable-sim-build-warnings was given.
  13533. if test "${enable_sim_build_warnings+set}" = set; then :
  13534. enableval=$enable_sim_build_warnings; case "${enableval}" in
  13535. yes) ;;
  13536. no) build_warnings="-w";;
  13537. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  13538. build_warnings="${build_warnings} ${t}";;
  13539. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  13540. build_warnings="${t} ${build_warnings}";;
  13541. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  13542. esac
  13543. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  13544. echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  13545. fi
  13546. fi
  13547. WARN_CFLAGS=""
  13548. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  13549. then
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  13551. $as_echo_n "checking compiler warning flags... " >&6; }
  13552. # Separate out the -Werror flag as some files just cannot be
  13553. # compiled with it enabled.
  13554. for w in ${build_warnings}; do
  13555. case $w in
  13556. -Werr*) WERROR_CFLAGS=-Werror ;;
  13557. *) # Check that GCC accepts it
  13558. saved_CFLAGS="$CFLAGS"
  13559. CFLAGS="$CFLAGS -Werror $w"
  13560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13561. /* end confdefs.h. */
  13562. int
  13563. main ()
  13564. {
  13565. ;
  13566. return 0;
  13567. }
  13568. _ACEOF
  13569. if ac_fn_c_try_compile "$LINENO"; then :
  13570. WARN_CFLAGS="${WARN_CFLAGS} $w"
  13571. fi
  13572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13573. CFLAGS="$saved_CFLAGS"
  13574. esac
  13575. done
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  13577. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  13578. fi
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
  13580. $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
  13581. # Check whether --enable-sim-frv-trapdump was given.
  13582. if test "${enable_sim_frv_trapdump+set}" = set; then :
  13583. enableval=$enable_sim_frv_trapdump; case "${enableval}" in
  13584. yes|no) ;;
  13585. *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
  13586. esac
  13587. fi
  13588. if test "x${enable_sim_frv_trapdump}" = xyes; then
  13589. SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
  13590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13591. $as_echo "yes" >&6; }
  13592. else
  13593. SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13595. $as_echo "no" >&6; }
  13596. fi
  13597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
  13598. $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
  13599. # Check whether --enable-sim-rx-cycle-accurate was given.
  13600. if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
  13601. enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
  13602. yes | no) ;;
  13603. *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
  13604. esac
  13605. fi
  13606. if test "x${enable_sim_rx_cycle_accurate}" != xno; then
  13607. SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
  13608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13609. $as_echo "yes" >&6; }
  13610. else
  13611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13612. $as_echo "no" >&6; }
  13613. fi
  13614. ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
  13615. cat >confcache <<\_ACEOF
  13616. # This file is a shell script that caches the results of configure
  13617. # tests run on this system so they can be shared between configure
  13618. # scripts and configure runs, see configure's option --config-cache.
  13619. # It is not useful on other systems. If it contains results you don't
  13620. # want to keep, you may remove or edit it.
  13621. #
  13622. # config.status only pays attention to the cache file if you give it
  13623. # the --recheck option to rerun configure.
  13624. #
  13625. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13626. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13627. # following values.
  13628. _ACEOF
  13629. # The following way of writing the cache mishandles newlines in values,
  13630. # but we know of no workaround that is simple, portable, and efficient.
  13631. # So, we kill variables containing newlines.
  13632. # Ultrix sh set writes to stderr and can't be redirected directly,
  13633. # and sets the high bit in the cache file unless we assign to the vars.
  13634. (
  13635. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13636. eval ac_val=\$$ac_var
  13637. case $ac_val in #(
  13638. *${as_nl}*)
  13639. case $ac_var in #(
  13640. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13641. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13642. esac
  13643. case $ac_var in #(
  13644. _ | IFS | as_nl) ;; #(
  13645. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13646. *) { eval $ac_var=; unset $ac_var;} ;;
  13647. esac ;;
  13648. esac
  13649. done
  13650. (set) 2>&1 |
  13651. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13652. *${as_nl}ac_space=\ *)
  13653. # `set' does not quote correctly, so add quotes: double-quote
  13654. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13655. sed -n \
  13656. "s/'/'\\\\''/g;
  13657. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13658. ;; #(
  13659. *)
  13660. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13661. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13662. ;;
  13663. esac |
  13664. sort
  13665. ) |
  13666. sed '
  13667. /^ac_cv_env_/b end
  13668. t clear
  13669. :clear
  13670. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13671. t end
  13672. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13673. :end' >>confcache
  13674. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13675. if test -w "$cache_file"; then
  13676. if test "x$cache_file" != "x/dev/null"; then
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13678. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13679. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13680. cat confcache >"$cache_file"
  13681. else
  13682. case $cache_file in #(
  13683. */* | ?:*)
  13684. mv -f confcache "$cache_file"$$ &&
  13685. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13686. *)
  13687. mv -f confcache "$cache_file" ;;
  13688. esac
  13689. fi
  13690. fi
  13691. else
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13693. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13694. fi
  13695. fi
  13696. rm -f confcache
  13697. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13698. # Let make expand exec_prefix.
  13699. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13700. DEFS=-DHAVE_CONFIG_H
  13701. ac_libobjs=
  13702. ac_ltlibobjs=
  13703. U=
  13704. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13705. # 1. Remove the extension, and $U if already installed.
  13706. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13707. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13708. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13709. # will be set to the directory where LIBOBJS objects are built.
  13710. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13711. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13712. done
  13713. LIBOBJS=$ac_libobjs
  13714. LTLIBOBJS=$ac_ltlibobjs
  13715. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  13716. as_fn_error $? "conditional \"PLUGINS\" was never defined.
  13717. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13718. fi
  13719. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13720. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  13721. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13722. fi
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13724. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13725. if test -n "$am_sleep_pid"; then
  13726. # Hide warnings about reused PIDs.
  13727. wait $am_sleep_pid 2>/dev/null
  13728. fi
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13730. $as_echo "done" >&6; }
  13731. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13732. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13733. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13734. fi
  13735. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13736. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13737. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13738. fi
  13739. if test -n "$EXEEXT"; then
  13740. am__EXEEXT_TRUE=
  13741. am__EXEEXT_FALSE='#'
  13742. else
  13743. am__EXEEXT_TRUE='#'
  13744. am__EXEEXT_FALSE=
  13745. fi
  13746. if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
  13747. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
  13748. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13749. fi
  13750. if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
  13751. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
  13752. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13753. fi
  13754. if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
  13755. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
  13756. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13757. fi
  13758. if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
  13759. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
  13760. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13761. fi
  13762. if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
  13763. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
  13764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13765. fi
  13766. if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
  13767. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
  13768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13769. fi
  13770. if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
  13771. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
  13772. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13773. fi
  13774. if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
  13775. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
  13776. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13777. fi
  13778. if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
  13779. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
  13780. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13781. fi
  13782. if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
  13783. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
  13784. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13785. fi
  13786. if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
  13787. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
  13788. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13789. fi
  13790. if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
  13791. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
  13792. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13793. fi
  13794. if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
  13795. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
  13796. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13797. fi
  13798. if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
  13799. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
  13800. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13801. fi
  13802. if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
  13803. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
  13804. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13805. fi
  13806. if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
  13807. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
  13808. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13809. fi
  13810. if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
  13811. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
  13812. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13813. fi
  13814. if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
  13815. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
  13816. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13817. fi
  13818. if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
  13819. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
  13820. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13821. fi
  13822. if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
  13823. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
  13824. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13825. fi
  13826. if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
  13827. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
  13828. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13829. fi
  13830. if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
  13831. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
  13832. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13833. fi
  13834. if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
  13835. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
  13836. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13837. fi
  13838. if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
  13839. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
  13840. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13841. fi
  13842. if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
  13843. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
  13844. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13845. fi
  13846. if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
  13847. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
  13848. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13849. fi
  13850. if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
  13851. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
  13852. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13853. fi
  13854. if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
  13855. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
  13856. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13857. fi
  13858. if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
  13859. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
  13860. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13861. fi
  13862. if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
  13863. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
  13864. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13865. fi
  13866. if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
  13867. as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
  13868. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13869. fi
  13870. if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
  13871. as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
  13872. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13873. fi
  13874. if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
  13875. as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
  13876. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13877. fi
  13878. if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
  13879. as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
  13880. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13881. fi
  13882. : "${CONFIG_STATUS=./config.status}"
  13883. ac_write_fail=0
  13884. ac_clean_files_save=$ac_clean_files
  13885. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13886. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13887. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13888. as_write_fail=0
  13889. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13890. #! $SHELL
  13891. # Generated by $as_me.
  13892. # Run this file to recreate the current configuration.
  13893. # Compiler output produced by configure, useful for debugging
  13894. # configure, is in config.log if it exists.
  13895. debug=false
  13896. ac_cs_recheck=false
  13897. ac_cs_silent=false
  13898. SHELL=\${CONFIG_SHELL-$SHELL}
  13899. export SHELL
  13900. _ASEOF
  13901. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13902. ## -------------------- ##
  13903. ## M4sh Initialization. ##
  13904. ## -------------------- ##
  13905. # Be more Bourne compatible
  13906. DUALCASE=1; export DUALCASE # for MKS sh
  13907. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13908. emulate sh
  13909. NULLCMD=:
  13910. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13911. # is contrary to our usage. Disable this feature.
  13912. alias -g '${1+"$@"}'='"$@"'
  13913. setopt NO_GLOB_SUBST
  13914. else
  13915. case `(set -o) 2>/dev/null` in #(
  13916. *posix*) :
  13917. set -o posix ;; #(
  13918. *) :
  13919. ;;
  13920. esac
  13921. fi
  13922. as_nl='
  13923. '
  13924. export as_nl
  13925. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13926. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13927. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13928. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13929. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13930. # but without wasting forks for bash or zsh.
  13931. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13932. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13933. as_echo='print -r --'
  13934. as_echo_n='print -rn --'
  13935. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13936. as_echo='printf %s\n'
  13937. as_echo_n='printf %s'
  13938. else
  13939. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13940. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13941. as_echo_n='/usr/ucb/echo -n'
  13942. else
  13943. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13944. as_echo_n_body='eval
  13945. arg=$1;
  13946. case $arg in #(
  13947. *"$as_nl"*)
  13948. expr "X$arg" : "X\\(.*\\)$as_nl";
  13949. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13950. esac;
  13951. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13952. '
  13953. export as_echo_n_body
  13954. as_echo_n='sh -c $as_echo_n_body as_echo'
  13955. fi
  13956. export as_echo_body
  13957. as_echo='sh -c $as_echo_body as_echo'
  13958. fi
  13959. # The user is always right.
  13960. if test "${PATH_SEPARATOR+set}" != set; then
  13961. PATH_SEPARATOR=:
  13962. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13963. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13964. PATH_SEPARATOR=';'
  13965. }
  13966. fi
  13967. # IFS
  13968. # We need space, tab and new line, in precisely that order. Quoting is
  13969. # there to prevent editors from complaining about space-tab.
  13970. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13971. # splitting by setting IFS to empty value.)
  13972. IFS=" "" $as_nl"
  13973. # Find who we are. Look in the path if we contain no directory separator.
  13974. as_myself=
  13975. case $0 in #((
  13976. *[\\/]* ) as_myself=$0 ;;
  13977. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13978. for as_dir in $PATH
  13979. do
  13980. IFS=$as_save_IFS
  13981. test -z "$as_dir" && as_dir=.
  13982. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13983. done
  13984. IFS=$as_save_IFS
  13985. ;;
  13986. esac
  13987. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13988. # in which case we are not to be found in the path.
  13989. if test "x$as_myself" = x; then
  13990. as_myself=$0
  13991. fi
  13992. if test ! -f "$as_myself"; then
  13993. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13994. exit 1
  13995. fi
  13996. # Unset variables that we do not need and which cause bugs (e.g. in
  13997. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13998. # suppresses any "Segmentation fault" message there. '((' could
  13999. # trigger a bug in pdksh 5.2.14.
  14000. for as_var in BASH_ENV ENV MAIL MAILPATH
  14001. do eval test x\${$as_var+set} = xset \
  14002. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14003. done
  14004. PS1='$ '
  14005. PS2='> '
  14006. PS4='+ '
  14007. # NLS nuisances.
  14008. LC_ALL=C
  14009. export LC_ALL
  14010. LANGUAGE=C
  14011. export LANGUAGE
  14012. # CDPATH.
  14013. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14014. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14015. # ----------------------------------------
  14016. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14017. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14018. # script with STATUS, using 1 if that was 0.
  14019. as_fn_error ()
  14020. {
  14021. as_status=$1; test $as_status -eq 0 && as_status=1
  14022. if test "$4"; then
  14023. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14024. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14025. fi
  14026. $as_echo "$as_me: error: $2" >&2
  14027. as_fn_exit $as_status
  14028. } # as_fn_error
  14029. # as_fn_set_status STATUS
  14030. # -----------------------
  14031. # Set $? to STATUS, without forking.
  14032. as_fn_set_status ()
  14033. {
  14034. return $1
  14035. } # as_fn_set_status
  14036. # as_fn_exit STATUS
  14037. # -----------------
  14038. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14039. as_fn_exit ()
  14040. {
  14041. set +e
  14042. as_fn_set_status $1
  14043. exit $1
  14044. } # as_fn_exit
  14045. # as_fn_unset VAR
  14046. # ---------------
  14047. # Portably unset VAR.
  14048. as_fn_unset ()
  14049. {
  14050. { eval $1=; unset $1;}
  14051. }
  14052. as_unset=as_fn_unset
  14053. # as_fn_append VAR VALUE
  14054. # ----------------------
  14055. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14056. # advantage of any shell optimizations that allow amortized linear growth over
  14057. # repeated appends, instead of the typical quadratic growth present in naive
  14058. # implementations.
  14059. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14060. eval 'as_fn_append ()
  14061. {
  14062. eval $1+=\$2
  14063. }'
  14064. else
  14065. as_fn_append ()
  14066. {
  14067. eval $1=\$$1\$2
  14068. }
  14069. fi # as_fn_append
  14070. # as_fn_arith ARG...
  14071. # ------------------
  14072. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14073. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14074. # must be portable across $(()) and expr.
  14075. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14076. eval 'as_fn_arith ()
  14077. {
  14078. as_val=$(( $* ))
  14079. }'
  14080. else
  14081. as_fn_arith ()
  14082. {
  14083. as_val=`expr "$@" || test $? -eq 1`
  14084. }
  14085. fi # as_fn_arith
  14086. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14087. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14088. as_expr=expr
  14089. else
  14090. as_expr=false
  14091. fi
  14092. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14093. as_basename=basename
  14094. else
  14095. as_basename=false
  14096. fi
  14097. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14098. as_dirname=dirname
  14099. else
  14100. as_dirname=false
  14101. fi
  14102. as_me=`$as_basename -- "$0" ||
  14103. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14104. X"$0" : 'X\(//\)$' \| \
  14105. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14106. $as_echo X/"$0" |
  14107. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14108. s//\1/
  14109. q
  14110. }
  14111. /^X\/\(\/\/\)$/{
  14112. s//\1/
  14113. q
  14114. }
  14115. /^X\/\(\/\).*/{
  14116. s//\1/
  14117. q
  14118. }
  14119. s/.*/./; q'`
  14120. # Avoid depending upon Character Ranges.
  14121. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14122. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14123. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14124. as_cr_digits='0123456789'
  14125. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14126. ECHO_C= ECHO_N= ECHO_T=
  14127. case `echo -n x` in #(((((
  14128. -n*)
  14129. case `echo 'xy\c'` in
  14130. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14131. xy) ECHO_C='\c';;
  14132. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14133. ECHO_T=' ';;
  14134. esac;;
  14135. *)
  14136. ECHO_N='-n';;
  14137. esac
  14138. rm -f conf$$ conf$$.exe conf$$.file
  14139. if test -d conf$$.dir; then
  14140. rm -f conf$$.dir/conf$$.file
  14141. else
  14142. rm -f conf$$.dir
  14143. mkdir conf$$.dir 2>/dev/null
  14144. fi
  14145. if (echo >conf$$.file) 2>/dev/null; then
  14146. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14147. as_ln_s='ln -s'
  14148. # ... but there are two gotchas:
  14149. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14150. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14151. # In both cases, we have to default to `cp -pR'.
  14152. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14153. as_ln_s='cp -pR'
  14154. elif ln conf$$.file conf$$ 2>/dev/null; then
  14155. as_ln_s=ln
  14156. else
  14157. as_ln_s='cp -pR'
  14158. fi
  14159. else
  14160. as_ln_s='cp -pR'
  14161. fi
  14162. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14163. rmdir conf$$.dir 2>/dev/null
  14164. # as_fn_mkdir_p
  14165. # -------------
  14166. # Create "$as_dir" as a directory, including parents if necessary.
  14167. as_fn_mkdir_p ()
  14168. {
  14169. case $as_dir in #(
  14170. -*) as_dir=./$as_dir;;
  14171. esac
  14172. test -d "$as_dir" || eval $as_mkdir_p || {
  14173. as_dirs=
  14174. while :; do
  14175. case $as_dir in #(
  14176. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14177. *) as_qdir=$as_dir;;
  14178. esac
  14179. as_dirs="'$as_qdir' $as_dirs"
  14180. as_dir=`$as_dirname -- "$as_dir" ||
  14181. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14182. X"$as_dir" : 'X\(//\)[^/]' \| \
  14183. X"$as_dir" : 'X\(//\)$' \| \
  14184. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14185. $as_echo X"$as_dir" |
  14186. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14187. s//\1/
  14188. q
  14189. }
  14190. /^X\(\/\/\)[^/].*/{
  14191. s//\1/
  14192. q
  14193. }
  14194. /^X\(\/\/\)$/{
  14195. s//\1/
  14196. q
  14197. }
  14198. /^X\(\/\).*/{
  14199. s//\1/
  14200. q
  14201. }
  14202. s/.*/./; q'`
  14203. test -d "$as_dir" && break
  14204. done
  14205. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14206. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14207. } # as_fn_mkdir_p
  14208. if mkdir -p . 2>/dev/null; then
  14209. as_mkdir_p='mkdir -p "$as_dir"'
  14210. else
  14211. test -d ./-p && rmdir ./-p
  14212. as_mkdir_p=false
  14213. fi
  14214. # as_fn_executable_p FILE
  14215. # -----------------------
  14216. # Test if FILE is an executable regular file.
  14217. as_fn_executable_p ()
  14218. {
  14219. test -f "$1" && test -x "$1"
  14220. } # as_fn_executable_p
  14221. as_test_x='test -x'
  14222. as_executable_p=as_fn_executable_p
  14223. # Sed expression to map a string onto a valid CPP name.
  14224. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14225. # Sed expression to map a string onto a valid variable name.
  14226. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14227. exec 6>&1
  14228. ## ----------------------------------- ##
  14229. ## Main body of $CONFIG_STATUS script. ##
  14230. ## ----------------------------------- ##
  14231. _ASEOF
  14232. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14234. # Save the log message, to keep $0 and so on meaningful, and to
  14235. # report actual input values of CONFIG_FILES etc. instead of their
  14236. # values after options handling.
  14237. ac_log="
  14238. This file was extended by sim $as_me 0, which was
  14239. generated by GNU Autoconf 2.69. Invocation command line was
  14240. CONFIG_FILES = $CONFIG_FILES
  14241. CONFIG_HEADERS = $CONFIG_HEADERS
  14242. CONFIG_LINKS = $CONFIG_LINKS
  14243. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14244. $ $0 $@
  14245. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14246. "
  14247. _ACEOF
  14248. case $ac_config_files in *"
  14249. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14250. esac
  14251. case $ac_config_headers in *"
  14252. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14253. esac
  14254. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14255. # Files that config.status was made for.
  14256. config_files="$ac_config_files"
  14257. config_headers="$ac_config_headers"
  14258. config_commands="$ac_config_commands"
  14259. _ACEOF
  14260. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14261. ac_cs_usage="\
  14262. \`$as_me' instantiates files and other configuration actions
  14263. from templates according to the current configuration. Unless the files
  14264. and actions are specified as TAGs, all are instantiated by default.
  14265. Usage: $0 [OPTION]... [TAG]...
  14266. -h, --help print this help, then exit
  14267. -V, --version print version number and configuration settings, then exit
  14268. --config print configuration, then exit
  14269. -q, --quiet, --silent
  14270. do not print progress messages
  14271. -d, --debug don't remove temporary files
  14272. --recheck update $as_me by reconfiguring in the same conditions
  14273. --file=FILE[:TEMPLATE]
  14274. instantiate the configuration file FILE
  14275. --header=FILE[:TEMPLATE]
  14276. instantiate the configuration header FILE
  14277. Configuration files:
  14278. $config_files
  14279. Configuration headers:
  14280. $config_headers
  14281. Configuration commands:
  14282. $config_commands
  14283. Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
  14284. sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
  14285. _ACEOF
  14286. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14287. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14288. ac_cs_version="\\
  14289. sim config.status 0
  14290. configured by $0, generated by GNU Autoconf 2.69,
  14291. with options \\"\$ac_cs_config\\"
  14292. Copyright (C) 2012 Free Software Foundation, Inc.
  14293. This config.status script is free software; the Free Software Foundation
  14294. gives unlimited permission to copy, distribute and modify it."
  14295. ac_pwd='$ac_pwd'
  14296. srcdir='$srcdir'
  14297. INSTALL='$INSTALL'
  14298. MKDIR_P='$MKDIR_P'
  14299. AWK='$AWK'
  14300. test -n "\$AWK" || AWK=awk
  14301. _ACEOF
  14302. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14303. # The default lists apply if the user does not specify any file.
  14304. ac_need_defaults=:
  14305. while test $# != 0
  14306. do
  14307. case $1 in
  14308. --*=?*)
  14309. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14310. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14311. ac_shift=:
  14312. ;;
  14313. --*=)
  14314. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14315. ac_optarg=
  14316. ac_shift=:
  14317. ;;
  14318. *)
  14319. ac_option=$1
  14320. ac_optarg=$2
  14321. ac_shift=shift
  14322. ;;
  14323. esac
  14324. case $ac_option in
  14325. # Handling of the options.
  14326. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14327. ac_cs_recheck=: ;;
  14328. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14329. $as_echo "$ac_cs_version"; exit ;;
  14330. --config | --confi | --conf | --con | --co | --c )
  14331. $as_echo "$ac_cs_config"; exit ;;
  14332. --debug | --debu | --deb | --de | --d | -d )
  14333. debug=: ;;
  14334. --file | --fil | --fi | --f )
  14335. $ac_shift
  14336. case $ac_optarg in
  14337. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14338. '') as_fn_error $? "missing file argument" ;;
  14339. esac
  14340. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14341. ac_need_defaults=false;;
  14342. --header | --heade | --head | --hea )
  14343. $ac_shift
  14344. case $ac_optarg in
  14345. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14346. esac
  14347. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14348. ac_need_defaults=false;;
  14349. --he | --h)
  14350. # Conflict between --help and --header
  14351. as_fn_error $? "ambiguous option: \`$1'
  14352. Try \`$0 --help' for more information.";;
  14353. --help | --hel | -h )
  14354. $as_echo "$ac_cs_usage"; exit ;;
  14355. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14356. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14357. ac_cs_silent=: ;;
  14358. # This is an error.
  14359. -*) as_fn_error $? "unrecognized option: \`$1'
  14360. Try \`$0 --help' for more information." ;;
  14361. *) as_fn_append ac_config_targets " $1"
  14362. ac_need_defaults=false ;;
  14363. esac
  14364. shift
  14365. done
  14366. ac_configure_extra_args=
  14367. if $ac_cs_silent; then
  14368. exec 6>/dev/null
  14369. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14370. fi
  14371. _ACEOF
  14372. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14373. if \$ac_cs_recheck; then
  14374. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14375. shift
  14376. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14377. CONFIG_SHELL='$SHELL'
  14378. export CONFIG_SHELL
  14379. exec "\$@"
  14380. fi
  14381. _ACEOF
  14382. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14383. exec 5>>config.log
  14384. {
  14385. echo
  14386. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14387. ## Running $as_me. ##
  14388. _ASBOX
  14389. $as_echo "$ac_log"
  14390. } >&5
  14391. _ACEOF
  14392. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14393. #
  14394. # INIT-COMMANDS
  14395. #
  14396. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14397. # if CDPATH is set.
  14398. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14399. sed_quote_subst='$sed_quote_subst'
  14400. double_quote_subst='$double_quote_subst'
  14401. delay_variable_subst='$delay_variable_subst'
  14402. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14403. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14404. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14405. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14406. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14407. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14408. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14409. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14410. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14411. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14412. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14413. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14414. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14415. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14416. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14417. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14418. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14419. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14420. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14421. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14422. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14423. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14424. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14425. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14426. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14427. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14428. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14429. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14430. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14431. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14432. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14433. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14434. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14435. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14436. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14437. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14438. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14439. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14440. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14441. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14442. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14443. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14444. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14445. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14446. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14447. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14448. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14449. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14450. 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"`'
  14451. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14452. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14453. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14454. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14455. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14456. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14457. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14458. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14459. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14460. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14461. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14462. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14463. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14464. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14465. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14466. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14467. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14468. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14469. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14470. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14471. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14472. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14473. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14474. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14475. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14476. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14477. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14478. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14479. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14480. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14481. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14482. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14483. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14484. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14485. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14486. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14487. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14488. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14489. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14490. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14491. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14492. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14493. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14494. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14495. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14496. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14497. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14498. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14499. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14500. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14501. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14502. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14503. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14504. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14505. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14506. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14507. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14508. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14509. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14510. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14511. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14512. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14513. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14514. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14515. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14516. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14517. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14518. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14519. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14520. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14521. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14522. LTCC='$LTCC'
  14523. LTCFLAGS='$LTCFLAGS'
  14524. compiler='$compiler_DEFAULT'
  14525. # A function that is used when there is no print builtin or printf.
  14526. func_fallback_echo ()
  14527. {
  14528. eval 'cat <<_LTECHO_EOF
  14529. \$1
  14530. _LTECHO_EOF'
  14531. }
  14532. # Quote evaled strings.
  14533. for var in SHELL \
  14534. ECHO \
  14535. SED \
  14536. GREP \
  14537. EGREP \
  14538. FGREP \
  14539. LD \
  14540. NM \
  14541. LN_S \
  14542. lt_SP2NL \
  14543. lt_NL2SP \
  14544. reload_flag \
  14545. OBJDUMP \
  14546. deplibs_check_method \
  14547. file_magic_cmd \
  14548. AR \
  14549. AR_FLAGS \
  14550. STRIP \
  14551. RANLIB \
  14552. CC \
  14553. CFLAGS \
  14554. compiler \
  14555. lt_cv_sys_global_symbol_pipe \
  14556. lt_cv_sys_global_symbol_to_cdecl \
  14557. lt_cv_sys_global_symbol_to_c_name_address \
  14558. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14559. lt_prog_compiler_no_builtin_flag \
  14560. lt_prog_compiler_wl \
  14561. lt_prog_compiler_pic \
  14562. lt_prog_compiler_static \
  14563. lt_cv_prog_compiler_c_o \
  14564. need_locks \
  14565. DSYMUTIL \
  14566. NMEDIT \
  14567. LIPO \
  14568. OTOOL \
  14569. OTOOL64 \
  14570. shrext_cmds \
  14571. export_dynamic_flag_spec \
  14572. whole_archive_flag_spec \
  14573. compiler_needs_object \
  14574. with_gnu_ld \
  14575. allow_undefined_flag \
  14576. no_undefined_flag \
  14577. hardcode_libdir_flag_spec \
  14578. hardcode_libdir_flag_spec_ld \
  14579. hardcode_libdir_separator \
  14580. fix_srcfile_path \
  14581. exclude_expsyms \
  14582. include_expsyms \
  14583. file_list_spec \
  14584. variables_saved_for_relink \
  14585. libname_spec \
  14586. library_names_spec \
  14587. soname_spec \
  14588. install_override_mode \
  14589. finish_eval \
  14590. old_striplib \
  14591. striplib; do
  14592. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14593. *[\\\\\\\`\\"\\\$]*)
  14594. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14595. ;;
  14596. *)
  14597. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14598. ;;
  14599. esac
  14600. done
  14601. # Double-quote double-evaled strings.
  14602. for var in reload_cmds \
  14603. old_postinstall_cmds \
  14604. old_postuninstall_cmds \
  14605. old_archive_cmds \
  14606. extract_expsyms_cmds \
  14607. old_archive_from_new_cmds \
  14608. old_archive_from_expsyms_cmds \
  14609. archive_cmds \
  14610. archive_expsym_cmds \
  14611. module_cmds \
  14612. module_expsym_cmds \
  14613. export_symbols_cmds \
  14614. prelink_cmds \
  14615. postinstall_cmds \
  14616. postuninstall_cmds \
  14617. finish_cmds \
  14618. sys_lib_search_path_spec \
  14619. sys_lib_dlsearch_path_spec; do
  14620. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14621. *[\\\\\\\`\\"\\\$]*)
  14622. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14623. ;;
  14624. *)
  14625. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14626. ;;
  14627. esac
  14628. done
  14629. ac_aux_dir='$ac_aux_dir'
  14630. xsi_shell='$xsi_shell'
  14631. lt_shell_append='$lt_shell_append'
  14632. # See if we are running on zsh, and set the options which allow our
  14633. # commands through without removal of \ escapes INIT.
  14634. if test -n "\${ZSH_VERSION+set}" ; then
  14635. setopt NO_GLOB_SUBST
  14636. fi
  14637. PACKAGE='$PACKAGE'
  14638. VERSION='$VERSION'
  14639. TIMESTAMP='$TIMESTAMP'
  14640. RM='$RM'
  14641. ofile='$ofile'
  14642. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14643. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14644. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14645. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14646. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14647. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14648. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14649. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14650. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14651. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14652. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14653. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14654. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14655. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14656. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14657. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14658. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14659. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14660. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14661. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14662. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14663. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14664. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14665. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14666. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14667. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14668. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14669. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14670. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14671. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14672. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14673. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14674. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  14675. _ACEOF
  14676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14677. # Handling of arguments.
  14678. for ac_config_target in $ac_config_targets
  14679. do
  14680. case $ac_config_target in
  14681. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14682. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14683. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14684. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
  14685. "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
  14686. "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
  14687. "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
  14688. "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
  14689. "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
  14690. "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
  14691. "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
  14692. "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
  14693. "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
  14694. "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
  14695. "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
  14696. "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
  14697. "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
  14698. "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
  14699. "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
  14700. "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
  14701. "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
  14702. "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
  14703. "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
  14704. "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
  14705. "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
  14706. "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
  14707. "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
  14708. "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
  14709. "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
  14710. "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
  14711. "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
  14712. "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
  14713. "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
  14714. "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
  14715. "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
  14716. "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
  14717. "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
  14718. "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
  14719. "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
  14720. "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
  14721. "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
  14722. "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
  14723. "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
  14724. "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
  14725. "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
  14726. "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
  14727. "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
  14728. "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
  14729. "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
  14730. "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
  14731. "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
  14732. "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
  14733. "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
  14734. "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
  14735. "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
  14736. "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
  14737. "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
  14738. "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
  14739. "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
  14740. "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
  14741. "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
  14742. "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
  14743. "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
  14744. "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
  14745. "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
  14746. "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
  14747. "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
  14748. "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
  14749. "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
  14750. "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
  14751. "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
  14752. "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
  14753. "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
  14754. "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
  14755. "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
  14756. "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
  14757. "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
  14758. "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
  14759. "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
  14760. "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
  14761. "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
  14762. "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
  14763. "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
  14764. "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
  14765. "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
  14766. "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
  14767. "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
  14768. "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
  14769. "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
  14770. "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
  14771. "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
  14772. "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
  14773. "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
  14774. "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
  14775. "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
  14776. "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
  14777. "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
  14778. "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
  14779. "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
  14780. "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
  14781. "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
  14782. "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
  14783. "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
  14784. "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
  14785. "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
  14786. "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
  14787. "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
  14788. "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
  14789. "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
  14790. "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
  14791. "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
  14792. "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
  14793. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14794. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
  14795. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14796. esac
  14797. done
  14798. # If the user did not use the arguments to specify the items to instantiate,
  14799. # then the envvar interface is used. Set only those that are not.
  14800. # We use the long form for the default assignment because of an extremely
  14801. # bizarre bug on SunOS 4.1.3.
  14802. if $ac_need_defaults; then
  14803. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14804. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14805. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14806. fi
  14807. # Have a temporary directory for convenience. Make it in the build tree
  14808. # simply because there is no reason against having it here, and in addition,
  14809. # creating and moving files from /tmp can sometimes cause problems.
  14810. # Hook for its removal unless debugging.
  14811. # Note that there is a small window in which the directory will not be cleaned:
  14812. # after its creation but before its name has been assigned to `$tmp'.
  14813. $debug ||
  14814. {
  14815. tmp= ac_tmp=
  14816. trap 'exit_status=$?
  14817. : "${ac_tmp:=$tmp}"
  14818. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14819. ' 0
  14820. trap 'as_fn_exit 1' 1 2 13 15
  14821. }
  14822. # Create a (secure) tmp directory for tmp files.
  14823. {
  14824. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14825. test -d "$tmp"
  14826. } ||
  14827. {
  14828. tmp=./conf$$-$RANDOM
  14829. (umask 077 && mkdir "$tmp")
  14830. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14831. ac_tmp=$tmp
  14832. # Set up the scripts for CONFIG_FILES section.
  14833. # No need to generate them if there are no CONFIG_FILES.
  14834. # This happens for instance with `./config.status config.h'.
  14835. if test -n "$CONFIG_FILES"; then
  14836. ac_cr=`echo X | tr X '\015'`
  14837. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14838. # But we know of no other shell where ac_cr would be empty at this
  14839. # point, so we can use a bashism as a fallback.
  14840. if test "x$ac_cr" = x; then
  14841. eval ac_cr=\$\'\\r\'
  14842. fi
  14843. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14844. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14845. ac_cs_awk_cr='\\r'
  14846. else
  14847. ac_cs_awk_cr=$ac_cr
  14848. fi
  14849. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14850. _ACEOF
  14851. {
  14852. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14853. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14854. echo "_ACEOF"
  14855. } >conf$$subs.sh ||
  14856. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14857. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14858. ac_delim='%!_!# '
  14859. for ac_last_try in false false false false false :; do
  14860. . ./conf$$subs.sh ||
  14861. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14862. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14863. if test $ac_delim_n = $ac_delim_num; then
  14864. break
  14865. elif $ac_last_try; then
  14866. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14867. else
  14868. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14869. fi
  14870. done
  14871. rm -f conf$$subs.sh
  14872. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14873. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14874. _ACEOF
  14875. sed -n '
  14876. h
  14877. s/^/S["/; s/!.*/"]=/
  14878. p
  14879. g
  14880. s/^[^!]*!//
  14881. :repl
  14882. t repl
  14883. s/'"$ac_delim"'$//
  14884. t delim
  14885. :nl
  14886. h
  14887. s/\(.\{148\}\)..*/\1/
  14888. t more1
  14889. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14890. p
  14891. n
  14892. b repl
  14893. :more1
  14894. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14895. p
  14896. g
  14897. s/.\{148\}//
  14898. t nl
  14899. :delim
  14900. h
  14901. s/\(.\{148\}\)..*/\1/
  14902. t more2
  14903. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14904. p
  14905. b
  14906. :more2
  14907. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14908. p
  14909. g
  14910. s/.\{148\}//
  14911. t delim
  14912. ' <conf$$subs.awk | sed '
  14913. /^[^""]/{
  14914. N
  14915. s/\n//
  14916. }
  14917. ' >>$CONFIG_STATUS || ac_write_fail=1
  14918. rm -f conf$$subs.awk
  14919. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14920. _ACAWK
  14921. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14922. for (key in S) S_is_set[key] = 1
  14923. FS = ""
  14924. }
  14925. {
  14926. line = $ 0
  14927. nfields = split(line, field, "@")
  14928. substed = 0
  14929. len = length(field[1])
  14930. for (i = 2; i < nfields; i++) {
  14931. key = field[i]
  14932. keylen = length(key)
  14933. if (S_is_set[key]) {
  14934. value = S[key]
  14935. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14936. len += length(value) + length(field[++i])
  14937. substed = 1
  14938. } else
  14939. len += 1 + keylen
  14940. }
  14941. print line
  14942. }
  14943. _ACAWK
  14944. _ACEOF
  14945. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14946. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14947. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14948. else
  14949. cat
  14950. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14951. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14952. _ACEOF
  14953. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14954. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14955. # trailing colons and then remove the whole line if VPATH becomes empty
  14956. # (actually we leave an empty line to preserve line numbers).
  14957. if test "x$srcdir" = x.; then
  14958. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14959. h
  14960. s///
  14961. s/^/:/
  14962. s/[ ]*$/:/
  14963. s/:\$(srcdir):/:/g
  14964. s/:\${srcdir}:/:/g
  14965. s/:@srcdir@:/:/g
  14966. s/^:*//
  14967. s/:*$//
  14968. x
  14969. s/\(=[ ]*\).*/\1/
  14970. G
  14971. s/\n//
  14972. s/^[^=]*=[ ]*$//
  14973. }'
  14974. fi
  14975. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14976. fi # test -n "$CONFIG_FILES"
  14977. # Set up the scripts for CONFIG_HEADERS section.
  14978. # No need to generate them if there are no CONFIG_HEADERS.
  14979. # This happens for instance with `./config.status Makefile'.
  14980. if test -n "$CONFIG_HEADERS"; then
  14981. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14982. BEGIN {
  14983. _ACEOF
  14984. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14985. # here-document in config.status, that substitutes the proper values into
  14986. # config.h.in to produce config.h.
  14987. # Create a delimiter string that does not exist in confdefs.h, to ease
  14988. # handling of long lines.
  14989. ac_delim='%!_!# '
  14990. for ac_last_try in false false :; do
  14991. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14992. if test -z "$ac_tt"; then
  14993. break
  14994. elif $ac_last_try; then
  14995. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14996. else
  14997. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14998. fi
  14999. done
  15000. # For the awk script, D is an array of macro values keyed by name,
  15001. # likewise P contains macro parameters if any. Preserve backslash
  15002. # newline sequences.
  15003. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15004. sed -n '
  15005. s/.\{148\}/&'"$ac_delim"'/g
  15006. t rset
  15007. :rset
  15008. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15009. t def
  15010. d
  15011. :def
  15012. s/\\$//
  15013. t bsnl
  15014. s/["\\]/\\&/g
  15015. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15016. D["\1"]=" \3"/p
  15017. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15018. d
  15019. :bsnl
  15020. s/["\\]/\\&/g
  15021. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15022. D["\1"]=" \3\\\\\\n"\\/p
  15023. t cont
  15024. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15025. t cont
  15026. d
  15027. :cont
  15028. n
  15029. s/.\{148\}/&'"$ac_delim"'/g
  15030. t clear
  15031. :clear
  15032. s/\\$//
  15033. t bsnlc
  15034. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15035. d
  15036. :bsnlc
  15037. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15038. b cont
  15039. ' <confdefs.h | sed '
  15040. s/'"$ac_delim"'/"\\\
  15041. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15042. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15043. for (key in D) D_is_set[key] = 1
  15044. FS = ""
  15045. }
  15046. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15047. line = \$ 0
  15048. split(line, arg, " ")
  15049. if (arg[1] == "#") {
  15050. defundef = arg[2]
  15051. mac1 = arg[3]
  15052. } else {
  15053. defundef = substr(arg[1], 2)
  15054. mac1 = arg[2]
  15055. }
  15056. split(mac1, mac2, "(") #)
  15057. macro = mac2[1]
  15058. prefix = substr(line, 1, index(line, defundef) - 1)
  15059. if (D_is_set[macro]) {
  15060. # Preserve the white space surrounding the "#".
  15061. print prefix "define", macro P[macro] D[macro]
  15062. next
  15063. } else {
  15064. # Replace #undef with comments. This is necessary, for example,
  15065. # in the case of _POSIX_SOURCE, which is predefined and required
  15066. # on some systems where configure will not decide to define it.
  15067. if (defundef == "undef") {
  15068. print "/*", prefix defundef, macro, "*/"
  15069. next
  15070. }
  15071. }
  15072. }
  15073. { print }
  15074. _ACAWK
  15075. _ACEOF
  15076. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15077. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15078. fi # test -n "$CONFIG_HEADERS"
  15079. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15080. shift
  15081. for ac_tag
  15082. do
  15083. case $ac_tag in
  15084. :[FHLC]) ac_mode=$ac_tag; continue;;
  15085. esac
  15086. case $ac_mode$ac_tag in
  15087. :[FHL]*:*);;
  15088. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15089. :[FH]-) ac_tag=-:-;;
  15090. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15091. esac
  15092. ac_save_IFS=$IFS
  15093. IFS=:
  15094. set x $ac_tag
  15095. IFS=$ac_save_IFS
  15096. shift
  15097. ac_file=$1
  15098. shift
  15099. case $ac_mode in
  15100. :L) ac_source=$1;;
  15101. :[FH])
  15102. ac_file_inputs=
  15103. for ac_f
  15104. do
  15105. case $ac_f in
  15106. -) ac_f="$ac_tmp/stdin";;
  15107. *) # Look for the file first in the build tree, then in the source tree
  15108. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15109. # because $ac_f cannot contain `:'.
  15110. test -f "$ac_f" ||
  15111. case $ac_f in
  15112. [\\/$]*) false;;
  15113. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15114. esac ||
  15115. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15116. esac
  15117. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15118. as_fn_append ac_file_inputs " '$ac_f'"
  15119. done
  15120. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15121. # use $as_me), people would be surprised to read:
  15122. # /* config.h. Generated by config.status. */
  15123. configure_input='Generated from '`
  15124. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15125. `' by configure.'
  15126. if test x"$ac_file" != x-; then
  15127. configure_input="$ac_file. $configure_input"
  15128. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15129. $as_echo "$as_me: creating $ac_file" >&6;}
  15130. fi
  15131. # Neutralize special characters interpreted by sed in replacement strings.
  15132. case $configure_input in #(
  15133. *\&* | *\|* | *\\* )
  15134. ac_sed_conf_input=`$as_echo "$configure_input" |
  15135. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15136. *) ac_sed_conf_input=$configure_input;;
  15137. esac
  15138. case $ac_tag in
  15139. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15140. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15141. esac
  15142. ;;
  15143. esac
  15144. ac_dir=`$as_dirname -- "$ac_file" ||
  15145. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15146. X"$ac_file" : 'X\(//\)[^/]' \| \
  15147. X"$ac_file" : 'X\(//\)$' \| \
  15148. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15149. $as_echo X"$ac_file" |
  15150. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15151. s//\1/
  15152. q
  15153. }
  15154. /^X\(\/\/\)[^/].*/{
  15155. s//\1/
  15156. q
  15157. }
  15158. /^X\(\/\/\)$/{
  15159. s//\1/
  15160. q
  15161. }
  15162. /^X\(\/\).*/{
  15163. s//\1/
  15164. q
  15165. }
  15166. s/.*/./; q'`
  15167. as_dir="$ac_dir"; as_fn_mkdir_p
  15168. ac_builddir=.
  15169. case "$ac_dir" in
  15170. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15171. *)
  15172. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15173. # A ".." for each directory in $ac_dir_suffix.
  15174. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15175. case $ac_top_builddir_sub in
  15176. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15177. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15178. esac ;;
  15179. esac
  15180. ac_abs_top_builddir=$ac_pwd
  15181. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15182. # for backward compatibility:
  15183. ac_top_builddir=$ac_top_build_prefix
  15184. case $srcdir in
  15185. .) # We are building in place.
  15186. ac_srcdir=.
  15187. ac_top_srcdir=$ac_top_builddir_sub
  15188. ac_abs_top_srcdir=$ac_pwd ;;
  15189. [\\/]* | ?:[\\/]* ) # Absolute name.
  15190. ac_srcdir=$srcdir$ac_dir_suffix;
  15191. ac_top_srcdir=$srcdir
  15192. ac_abs_top_srcdir=$srcdir ;;
  15193. *) # Relative name.
  15194. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15195. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15196. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15197. esac
  15198. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15199. case $ac_mode in
  15200. :F)
  15201. #
  15202. # CONFIG_FILE
  15203. #
  15204. case $INSTALL in
  15205. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15206. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15207. esac
  15208. ac_MKDIR_P=$MKDIR_P
  15209. case $MKDIR_P in
  15210. [\\/$]* | ?:[\\/]* ) ;;
  15211. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15212. esac
  15213. _ACEOF
  15214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15215. # If the template does not know about datarootdir, expand it.
  15216. # FIXME: This hack should be removed a few years after 2.60.
  15217. ac_datarootdir_hack=; ac_datarootdir_seen=
  15218. ac_sed_dataroot='
  15219. /datarootdir/ {
  15220. p
  15221. q
  15222. }
  15223. /@datadir@/p
  15224. /@docdir@/p
  15225. /@infodir@/p
  15226. /@localedir@/p
  15227. /@mandir@/p'
  15228. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15229. *datarootdir*) ac_datarootdir_seen=yes;;
  15230. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15232. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15233. _ACEOF
  15234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15235. ac_datarootdir_hack='
  15236. s&@datadir@&$datadir&g
  15237. s&@docdir@&$docdir&g
  15238. s&@infodir@&$infodir&g
  15239. s&@localedir@&$localedir&g
  15240. s&@mandir@&$mandir&g
  15241. s&\\\${datarootdir}&$datarootdir&g' ;;
  15242. esac
  15243. _ACEOF
  15244. # Neutralize VPATH when `$srcdir' = `.'.
  15245. # Shell code in configure.ac might set extrasub.
  15246. # FIXME: do we really want to maintain this feature?
  15247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15248. ac_sed_extra="$ac_vpsub
  15249. $extrasub
  15250. _ACEOF
  15251. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15252. :t
  15253. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15254. s|@configure_input@|$ac_sed_conf_input|;t t
  15255. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15256. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15257. s&@srcdir@&$ac_srcdir&;t t
  15258. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15259. s&@top_srcdir@&$ac_top_srcdir&;t t
  15260. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15261. s&@builddir@&$ac_builddir&;t t
  15262. s&@abs_builddir@&$ac_abs_builddir&;t t
  15263. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15264. s&@INSTALL@&$ac_INSTALL&;t t
  15265. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15266. $ac_datarootdir_hack
  15267. "
  15268. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15269. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15270. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15271. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15272. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15273. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15275. which seems to be undefined. Please make sure it is defined" >&5
  15276. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15277. which seems to be undefined. Please make sure it is defined" >&2;}
  15278. rm -f "$ac_tmp/stdin"
  15279. case $ac_file in
  15280. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15281. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15282. esac \
  15283. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15284. ;;
  15285. :H)
  15286. #
  15287. # CONFIG_HEADER
  15288. #
  15289. if test x"$ac_file" != x-; then
  15290. {
  15291. $as_echo "/* $configure_input */" \
  15292. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15293. } >"$ac_tmp/config.h" \
  15294. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15295. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15296. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15297. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15298. else
  15299. rm -f "$ac_file"
  15300. mv "$ac_tmp/config.h" "$ac_file" \
  15301. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15302. fi
  15303. else
  15304. $as_echo "/* $configure_input */" \
  15305. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15306. || as_fn_error $? "could not create -" "$LINENO" 5
  15307. fi
  15308. # Compute "$ac_file"'s index in $config_headers.
  15309. _am_arg="$ac_file"
  15310. _am_stamp_count=1
  15311. for _am_header in $config_headers :; do
  15312. case $_am_header in
  15313. $_am_arg | $_am_arg:* )
  15314. break ;;
  15315. * )
  15316. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15317. esac
  15318. done
  15319. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15320. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15321. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15322. X"$_am_arg" : 'X\(//\)$' \| \
  15323. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15324. $as_echo X"$_am_arg" |
  15325. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15326. s//\1/
  15327. q
  15328. }
  15329. /^X\(\/\/\)[^/].*/{
  15330. s//\1/
  15331. q
  15332. }
  15333. /^X\(\/\/\)$/{
  15334. s//\1/
  15335. q
  15336. }
  15337. /^X\(\/\).*/{
  15338. s//\1/
  15339. q
  15340. }
  15341. s/.*/./; q'`/stamp-h$_am_stamp_count
  15342. ;;
  15343. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15344. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15345. ;;
  15346. esac
  15347. case $ac_file$ac_mode in
  15348. "libtool":C)
  15349. # See if we are running on zsh, and set the options which allow our
  15350. # commands through without removal of \ escapes.
  15351. if test -n "${ZSH_VERSION+set}" ; then
  15352. setopt NO_GLOB_SUBST
  15353. fi
  15354. cfgfile="${ofile}T"
  15355. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15356. $RM "$cfgfile"
  15357. cat <<_LT_EOF >> "$cfgfile"
  15358. #! $SHELL
  15359. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15360. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15361. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15362. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15363. #
  15364. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15365. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15366. # Written by Gordon Matzigkeit, 1996
  15367. #
  15368. # This file is part of GNU Libtool.
  15369. #
  15370. # GNU Libtool is free software; you can redistribute it and/or
  15371. # modify it under the terms of the GNU General Public License as
  15372. # published by the Free Software Foundation; either version 2 of
  15373. # the License, or (at your option) any later version.
  15374. #
  15375. # As a special exception to the GNU General Public License,
  15376. # if you distribute this file as part of a program or library that
  15377. # is built using GNU Libtool, you may include this file under the
  15378. # same distribution terms that you use for the rest of that program.
  15379. #
  15380. # GNU Libtool is distributed in the hope that it will be useful,
  15381. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15382. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15383. # GNU General Public License for more details.
  15384. #
  15385. # You should have received a copy of the GNU General Public License
  15386. # along with GNU Libtool; see the file COPYING. If not, a copy
  15387. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15388. # obtained by writing to the Free Software Foundation, Inc.,
  15389. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15390. # The names of the tagged configurations supported by this script.
  15391. available_tags=""
  15392. # ### BEGIN LIBTOOL CONFIG
  15393. # Which release of libtool.m4 was used?
  15394. macro_version=$macro_version
  15395. macro_revision=$macro_revision
  15396. # Whether or not to build shared libraries.
  15397. build_libtool_libs=$enable_shared
  15398. # Whether or not to build static libraries.
  15399. build_old_libs=$enable_static
  15400. # What type of objects to build.
  15401. pic_mode=$pic_mode
  15402. # Whether or not to optimize for fast installation.
  15403. fast_install=$enable_fast_install
  15404. # Shell to use when invoking shell scripts.
  15405. SHELL=$lt_SHELL
  15406. # An echo program that protects backslashes.
  15407. ECHO=$lt_ECHO
  15408. # The host system.
  15409. host_alias=$host_alias
  15410. host=$host
  15411. host_os=$host_os
  15412. # The build system.
  15413. build_alias=$build_alias
  15414. build=$build
  15415. build_os=$build_os
  15416. # A sed program that does not truncate output.
  15417. SED=$lt_SED
  15418. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15419. Xsed="\$SED -e 1s/^X//"
  15420. # A grep program that handles long lines.
  15421. GREP=$lt_GREP
  15422. # An ERE matcher.
  15423. EGREP=$lt_EGREP
  15424. # A literal string matcher.
  15425. FGREP=$lt_FGREP
  15426. # A BSD- or MS-compatible name lister.
  15427. NM=$lt_NM
  15428. # Whether we need soft or hard links.
  15429. LN_S=$lt_LN_S
  15430. # What is the maximum length of a command?
  15431. max_cmd_len=$max_cmd_len
  15432. # Object file suffix (normally "o").
  15433. objext=$ac_objext
  15434. # Executable file suffix (normally "").
  15435. exeext=$exeext
  15436. # whether the shell understands "unset".
  15437. lt_unset=$lt_unset
  15438. # turn spaces into newlines.
  15439. SP2NL=$lt_lt_SP2NL
  15440. # turn newlines into spaces.
  15441. NL2SP=$lt_lt_NL2SP
  15442. # An object symbol dumper.
  15443. OBJDUMP=$lt_OBJDUMP
  15444. # Method to check whether dependent libraries are shared objects.
  15445. deplibs_check_method=$lt_deplibs_check_method
  15446. # Command to use when deplibs_check_method == "file_magic".
  15447. file_magic_cmd=$lt_file_magic_cmd
  15448. # The archiver.
  15449. AR=$lt_AR
  15450. AR_FLAGS=$lt_AR_FLAGS
  15451. # A symbol stripping program.
  15452. STRIP=$lt_STRIP
  15453. # Commands used to install an old-style archive.
  15454. RANLIB=$lt_RANLIB
  15455. old_postinstall_cmds=$lt_old_postinstall_cmds
  15456. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15457. # Whether to use a lock for old archive extraction.
  15458. lock_old_archive_extraction=$lock_old_archive_extraction
  15459. # A C compiler.
  15460. LTCC=$lt_CC
  15461. # LTCC compiler flags.
  15462. LTCFLAGS=$lt_CFLAGS
  15463. # Take the output of nm and produce a listing of raw symbols and C names.
  15464. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15465. # Transform the output of nm in a proper C declaration.
  15466. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15467. # Transform the output of nm in a C name address pair.
  15468. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15469. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15470. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15471. # The name of the directory that contains temporary libtool files.
  15472. objdir=$objdir
  15473. # Used to examine libraries when file_magic_cmd begins with "file".
  15474. MAGIC_CMD=$MAGIC_CMD
  15475. # Must we lock files when doing compilation?
  15476. need_locks=$lt_need_locks
  15477. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15478. DSYMUTIL=$lt_DSYMUTIL
  15479. # Tool to change global to local symbols on Mac OS X.
  15480. NMEDIT=$lt_NMEDIT
  15481. # Tool to manipulate fat objects and archives on Mac OS X.
  15482. LIPO=$lt_LIPO
  15483. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15484. OTOOL=$lt_OTOOL
  15485. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15486. OTOOL64=$lt_OTOOL64
  15487. # Old archive suffix (normally "a").
  15488. libext=$libext
  15489. # Shared library suffix (normally ".so").
  15490. shrext_cmds=$lt_shrext_cmds
  15491. # The commands to extract the exported symbol list from a shared archive.
  15492. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15493. # Variables whose values should be saved in libtool wrapper scripts and
  15494. # restored at link time.
  15495. variables_saved_for_relink=$lt_variables_saved_for_relink
  15496. # Do we need the "lib" prefix for modules?
  15497. need_lib_prefix=$need_lib_prefix
  15498. # Do we need a version for libraries?
  15499. need_version=$need_version
  15500. # Library versioning type.
  15501. version_type=$version_type
  15502. # Shared library runtime path variable.
  15503. runpath_var=$runpath_var
  15504. # Shared library path variable.
  15505. shlibpath_var=$shlibpath_var
  15506. # Is shlibpath searched before the hard-coded library search path?
  15507. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15508. # Format of library name prefix.
  15509. libname_spec=$lt_libname_spec
  15510. # List of archive names. First name is the real one, the rest are links.
  15511. # The last name is the one that the linker finds with -lNAME
  15512. library_names_spec=$lt_library_names_spec
  15513. # The coded name of the library, if different from the real name.
  15514. soname_spec=$lt_soname_spec
  15515. # Permission mode override for installation of shared libraries.
  15516. install_override_mode=$lt_install_override_mode
  15517. # Command to use after installation of a shared archive.
  15518. postinstall_cmds=$lt_postinstall_cmds
  15519. # Command to use after uninstallation of a shared archive.
  15520. postuninstall_cmds=$lt_postuninstall_cmds
  15521. # Commands used to finish a libtool library installation in a directory.
  15522. finish_cmds=$lt_finish_cmds
  15523. # As "finish_cmds", except a single script fragment to be evaled but
  15524. # not shown.
  15525. finish_eval=$lt_finish_eval
  15526. # Whether we should hardcode library paths into libraries.
  15527. hardcode_into_libs=$hardcode_into_libs
  15528. # Compile-time system search path for libraries.
  15529. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15530. # Run-time system search path for libraries.
  15531. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15532. # Whether dlopen is supported.
  15533. dlopen_support=$enable_dlopen
  15534. # Whether dlopen of programs is supported.
  15535. dlopen_self=$enable_dlopen_self
  15536. # Whether dlopen of statically linked programs is supported.
  15537. dlopen_self_static=$enable_dlopen_self_static
  15538. # Commands to strip libraries.
  15539. old_striplib=$lt_old_striplib
  15540. striplib=$lt_striplib
  15541. # The linker used to build libraries.
  15542. LD=$lt_LD
  15543. # How to create reloadable object files.
  15544. reload_flag=$lt_reload_flag
  15545. reload_cmds=$lt_reload_cmds
  15546. # Commands used to build an old-style archive.
  15547. old_archive_cmds=$lt_old_archive_cmds
  15548. # A language specific compiler.
  15549. CC=$lt_compiler
  15550. # Is the compiler the GNU compiler?
  15551. with_gcc=$GCC
  15552. # Compiler flag to turn off builtin functions.
  15553. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15554. # How to pass a linker flag through the compiler.
  15555. wl=$lt_lt_prog_compiler_wl
  15556. # Additional compiler flags for building library objects.
  15557. pic_flag=$lt_lt_prog_compiler_pic
  15558. # Compiler flag to prevent dynamic linking.
  15559. link_static_flag=$lt_lt_prog_compiler_static
  15560. # Does compiler simultaneously support -c and -o options?
  15561. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15562. # Whether or not to add -lc for building shared libraries.
  15563. build_libtool_need_lc=$archive_cmds_need_lc
  15564. # Whether or not to disallow shared libs when runtime libs are static.
  15565. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15566. # Compiler flag to allow reflexive dlopens.
  15567. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15568. # Compiler flag to generate shared objects directly from archives.
  15569. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15570. # Whether the compiler copes with passing no objects directly.
  15571. compiler_needs_object=$lt_compiler_needs_object
  15572. # Create an old-style archive from a shared archive.
  15573. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15574. # Create a temporary old-style archive to link instead of a shared archive.
  15575. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15576. # Commands used to build a shared archive.
  15577. archive_cmds=$lt_archive_cmds
  15578. archive_expsym_cmds=$lt_archive_expsym_cmds
  15579. # Commands used to build a loadable module if different from building
  15580. # a shared archive.
  15581. module_cmds=$lt_module_cmds
  15582. module_expsym_cmds=$lt_module_expsym_cmds
  15583. # Whether we are building with GNU ld or not.
  15584. with_gnu_ld=$lt_with_gnu_ld
  15585. # Flag that allows shared libraries with undefined symbols to be built.
  15586. allow_undefined_flag=$lt_allow_undefined_flag
  15587. # Flag that enforces no undefined symbols.
  15588. no_undefined_flag=$lt_no_undefined_flag
  15589. # Flag to hardcode \$libdir into a binary during linking.
  15590. # This must work even if \$libdir does not exist
  15591. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15592. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15593. # during linking. This must work even if \$libdir does not exist.
  15594. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15595. # Whether we need a single "-rpath" flag with a separated argument.
  15596. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15597. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15598. # DIR into the resulting binary.
  15599. hardcode_direct=$hardcode_direct
  15600. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15601. # DIR into the resulting binary and the resulting library dependency is
  15602. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15603. # library is relocated.
  15604. hardcode_direct_absolute=$hardcode_direct_absolute
  15605. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15606. # into the resulting binary.
  15607. hardcode_minus_L=$hardcode_minus_L
  15608. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15609. # into the resulting binary.
  15610. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15611. # Set to "yes" if building a shared library automatically hardcodes DIR
  15612. # into the library and all subsequent libraries and executables linked
  15613. # against it.
  15614. hardcode_automatic=$hardcode_automatic
  15615. # Set to yes if linker adds runtime paths of dependent libraries
  15616. # to runtime path list.
  15617. inherit_rpath=$inherit_rpath
  15618. # Whether libtool must link a program against all its dependency libraries.
  15619. link_all_deplibs=$link_all_deplibs
  15620. # Fix the shell variable \$srcfile for the compiler.
  15621. fix_srcfile_path=$lt_fix_srcfile_path
  15622. # Set to "yes" if exported symbols are required.
  15623. always_export_symbols=$always_export_symbols
  15624. # The commands to list exported symbols.
  15625. export_symbols_cmds=$lt_export_symbols_cmds
  15626. # Symbols that should not be listed in the preloaded symbols.
  15627. exclude_expsyms=$lt_exclude_expsyms
  15628. # Symbols that must always be exported.
  15629. include_expsyms=$lt_include_expsyms
  15630. # Commands necessary for linking programs (against libraries) with templates.
  15631. prelink_cmds=$lt_prelink_cmds
  15632. # Specify filename containing input files.
  15633. file_list_spec=$lt_file_list_spec
  15634. # How to hardcode a shared library path into an executable.
  15635. hardcode_action=$hardcode_action
  15636. # ### END LIBTOOL CONFIG
  15637. _LT_EOF
  15638. case $host_os in
  15639. aix3*)
  15640. cat <<\_LT_EOF >> "$cfgfile"
  15641. # AIX sometimes has problems with the GCC collect2 program. For some
  15642. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15643. # vanish in a puff of smoke.
  15644. if test "X${COLLECT_NAMES+set}" != Xset; then
  15645. COLLECT_NAMES=
  15646. export COLLECT_NAMES
  15647. fi
  15648. _LT_EOF
  15649. ;;
  15650. esac
  15651. ltmain="$ac_aux_dir/ltmain.sh"
  15652. # We use sed instead of cat because bash on DJGPP gets confused if
  15653. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15654. # text mode, it properly converts lines to CR/LF. This bash problem
  15655. # is reportedly fixed, but why not run on old versions too?
  15656. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15657. || (rm -f "$cfgfile"; exit 1)
  15658. case $xsi_shell in
  15659. yes)
  15660. cat << \_LT_EOF >> "$cfgfile"
  15661. # func_dirname file append nondir_replacement
  15662. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15663. # otherwise set result to NONDIR_REPLACEMENT.
  15664. func_dirname ()
  15665. {
  15666. case ${1} in
  15667. */*) func_dirname_result="${1%/*}${2}" ;;
  15668. * ) func_dirname_result="${3}" ;;
  15669. esac
  15670. }
  15671. # func_basename file
  15672. func_basename ()
  15673. {
  15674. func_basename_result="${1##*/}"
  15675. }
  15676. # func_dirname_and_basename file append nondir_replacement
  15677. # perform func_basename and func_dirname in a single function
  15678. # call:
  15679. # dirname: Compute the dirname of FILE. If nonempty,
  15680. # add APPEND to the result, otherwise set result
  15681. # to NONDIR_REPLACEMENT.
  15682. # value returned in "$func_dirname_result"
  15683. # basename: Compute filename of FILE.
  15684. # value retuned in "$func_basename_result"
  15685. # Implementation must be kept synchronized with func_dirname
  15686. # and func_basename. For efficiency, we do not delegate to
  15687. # those functions but instead duplicate the functionality here.
  15688. func_dirname_and_basename ()
  15689. {
  15690. case ${1} in
  15691. */*) func_dirname_result="${1%/*}${2}" ;;
  15692. * ) func_dirname_result="${3}" ;;
  15693. esac
  15694. func_basename_result="${1##*/}"
  15695. }
  15696. # func_stripname prefix suffix name
  15697. # strip PREFIX and SUFFIX off of NAME.
  15698. # PREFIX and SUFFIX must not contain globbing or regex special
  15699. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15700. # dot (in which case that matches only a dot).
  15701. func_stripname ()
  15702. {
  15703. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15704. # positional parameters, so assign one to ordinary parameter first.
  15705. func_stripname_result=${3}
  15706. func_stripname_result=${func_stripname_result#"${1}"}
  15707. func_stripname_result=${func_stripname_result%"${2}"}
  15708. }
  15709. # func_opt_split
  15710. func_opt_split ()
  15711. {
  15712. func_opt_split_opt=${1%%=*}
  15713. func_opt_split_arg=${1#*=}
  15714. }
  15715. # func_lo2o object
  15716. func_lo2o ()
  15717. {
  15718. case ${1} in
  15719. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15720. *) func_lo2o_result=${1} ;;
  15721. esac
  15722. }
  15723. # func_xform libobj-or-source
  15724. func_xform ()
  15725. {
  15726. func_xform_result=${1%.*}.lo
  15727. }
  15728. # func_arith arithmetic-term...
  15729. func_arith ()
  15730. {
  15731. func_arith_result=$(( $* ))
  15732. }
  15733. # func_len string
  15734. # STRING may not start with a hyphen.
  15735. func_len ()
  15736. {
  15737. func_len_result=${#1}
  15738. }
  15739. _LT_EOF
  15740. ;;
  15741. *) # Bourne compatible functions.
  15742. cat << \_LT_EOF >> "$cfgfile"
  15743. # func_dirname file append nondir_replacement
  15744. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15745. # otherwise set result to NONDIR_REPLACEMENT.
  15746. func_dirname ()
  15747. {
  15748. # Extract subdirectory from the argument.
  15749. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15750. if test "X$func_dirname_result" = "X${1}"; then
  15751. func_dirname_result="${3}"
  15752. else
  15753. func_dirname_result="$func_dirname_result${2}"
  15754. fi
  15755. }
  15756. # func_basename file
  15757. func_basename ()
  15758. {
  15759. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15760. }
  15761. # func_stripname prefix suffix name
  15762. # strip PREFIX and SUFFIX off of NAME.
  15763. # PREFIX and SUFFIX must not contain globbing or regex special
  15764. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15765. # dot (in which case that matches only a dot).
  15766. # func_strip_suffix prefix name
  15767. func_stripname ()
  15768. {
  15769. case ${2} in
  15770. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15771. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15772. esac
  15773. }
  15774. # sed scripts:
  15775. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15776. my_sed_long_arg='1s/^-[^=]*=//'
  15777. # func_opt_split
  15778. func_opt_split ()
  15779. {
  15780. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15781. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15782. }
  15783. # func_lo2o object
  15784. func_lo2o ()
  15785. {
  15786. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15787. }
  15788. # func_xform libobj-or-source
  15789. func_xform ()
  15790. {
  15791. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15792. }
  15793. # func_arith arithmetic-term...
  15794. func_arith ()
  15795. {
  15796. func_arith_result=`expr "$@"`
  15797. }
  15798. # func_len string
  15799. # STRING may not start with a hyphen.
  15800. func_len ()
  15801. {
  15802. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15803. }
  15804. _LT_EOF
  15805. esac
  15806. case $lt_shell_append in
  15807. yes)
  15808. cat << \_LT_EOF >> "$cfgfile"
  15809. # func_append var value
  15810. # Append VALUE to the end of shell variable VAR.
  15811. func_append ()
  15812. {
  15813. eval "$1+=\$2"
  15814. }
  15815. _LT_EOF
  15816. ;;
  15817. *)
  15818. cat << \_LT_EOF >> "$cfgfile"
  15819. # func_append var value
  15820. # Append VALUE to the end of shell variable VAR.
  15821. func_append ()
  15822. {
  15823. eval "$1=\$$1\$2"
  15824. }
  15825. _LT_EOF
  15826. ;;
  15827. esac
  15828. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15829. || (rm -f "$cfgfile"; exit 1)
  15830. mv -f "$cfgfile" "$ofile" ||
  15831. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15832. chmod +x "$ofile"
  15833. ;;
  15834. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15835. # Older Autoconf quotes --file arguments for eval, but not when files
  15836. # are listed without --file. Let's play safe and only enable the eval
  15837. # if we detect the quoting.
  15838. case $CONFIG_FILES in
  15839. *\'*) eval set x "$CONFIG_FILES" ;;
  15840. *) set x $CONFIG_FILES ;;
  15841. esac
  15842. shift
  15843. for mf
  15844. do
  15845. # Strip MF so we end up with the name of the file.
  15846. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15847. # Check whether this is an Automake generated Makefile or not.
  15848. # We used to match only the files named 'Makefile.in', but
  15849. # some people rename them; so instead we look at the file content.
  15850. # Grep'ing the first line is not enough: some people post-process
  15851. # each Makefile.in and add a new line on top of each file to say so.
  15852. # Grep'ing the whole file is not good either: AIX grep has a line
  15853. # limit of 2048, but all sed's we know have understand at least 4000.
  15854. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15855. dirpart=`$as_dirname -- "$mf" ||
  15856. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15857. X"$mf" : 'X\(//\)[^/]' \| \
  15858. X"$mf" : 'X\(//\)$' \| \
  15859. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15860. $as_echo X"$mf" |
  15861. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15862. s//\1/
  15863. q
  15864. }
  15865. /^X\(\/\/\)[^/].*/{
  15866. s//\1/
  15867. q
  15868. }
  15869. /^X\(\/\/\)$/{
  15870. s//\1/
  15871. q
  15872. }
  15873. /^X\(\/\).*/{
  15874. s//\1/
  15875. q
  15876. }
  15877. s/.*/./; q'`
  15878. else
  15879. continue
  15880. fi
  15881. # Extract the definition of DEPDIR, am__include, and am__quote
  15882. # from the Makefile without running 'make'.
  15883. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15884. test -z "$DEPDIR" && continue
  15885. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15886. test -z "$am__include" && continue
  15887. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15888. # Find all dependency output files, they are included files with
  15889. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15890. # simplest approach to changing $(DEPDIR) to its actual value in the
  15891. # expansion.
  15892. for file in `sed -n "
  15893. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15894. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15895. # Make sure the directory exists.
  15896. test -f "$dirpart/$file" && continue
  15897. fdir=`$as_dirname -- "$file" ||
  15898. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15899. X"$file" : 'X\(//\)[^/]' \| \
  15900. X"$file" : 'X\(//\)$' \| \
  15901. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15902. $as_echo X"$file" |
  15903. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15904. s//\1/
  15905. q
  15906. }
  15907. /^X\(\/\/\)[^/].*/{
  15908. s//\1/
  15909. q
  15910. }
  15911. /^X\(\/\/\)$/{
  15912. s//\1/
  15913. q
  15914. }
  15915. /^X\(\/\).*/{
  15916. s//\1/
  15917. q
  15918. }
  15919. s/.*/./; q'`
  15920. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15921. # echo "creating $dirpart/$file"
  15922. echo '# dummy' > "$dirpart/$file"
  15923. done
  15924. done
  15925. }
  15926. ;;
  15927. "aarch64/Makefile":C) sed -n \
  15928. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  15929. /^srcdir = / s:$:/aarch64:
  15930. p
  15931. }' \
  15932. <Make-common.sim >aarch64/Makesim1.tmp
  15933. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
  15934. sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
  15935. -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
  15936. <aarch64/Makefile.sim >aarch64/Makefile
  15937. rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
  15938. ;;
  15939. "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
  15940. "arm/Makefile":C) sed -n \
  15941. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  15942. /^srcdir = / s:$:/arm:
  15943. p
  15944. }' \
  15945. <Make-common.sim >arm/Makesim1.tmp
  15946. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
  15947. sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
  15948. -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
  15949. <arm/Makefile.sim >arm/Makefile
  15950. rm -f arm/Makesim1.tmp arm/Makesim2.tmp
  15951. ;;
  15952. "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
  15953. "avr/Makefile":C) sed -n \
  15954. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  15955. /^srcdir = / s:$:/avr:
  15956. p
  15957. }' \
  15958. <Make-common.sim >avr/Makesim1.tmp
  15959. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
  15960. sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
  15961. -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
  15962. <avr/Makefile.sim >avr/Makefile
  15963. rm -f avr/Makesim1.tmp avr/Makesim2.tmp
  15964. ;;
  15965. "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
  15966. "bfin/Makefile":C) sed -n \
  15967. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  15968. /^srcdir = / s:$:/bfin:
  15969. p
  15970. }' \
  15971. <Make-common.sim >bfin/Makesim1.tmp
  15972. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
  15973. sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
  15974. -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
  15975. <bfin/Makefile.sim >bfin/Makefile
  15976. rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
  15977. ;;
  15978. "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
  15979. "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
  15980. "cr16/Makefile":C) sed -n \
  15981. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  15982. /^srcdir = / s:$:/cr16:
  15983. p
  15984. }' \
  15985. <Make-common.sim >cr16/Makesim1.tmp
  15986. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
  15987. sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
  15988. -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
  15989. <cr16/Makefile.sim >cr16/Makefile
  15990. rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
  15991. ;;
  15992. "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
  15993. "cris/Makefile":C) sed -n \
  15994. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  15995. /^srcdir = / s:$:/cris:
  15996. p
  15997. }' \
  15998. <Make-common.sim >cris/Makesim1.tmp
  15999. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
  16000. sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
  16001. -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
  16002. <cris/Makefile.sim >cris/Makefile
  16003. rm -f cris/Makesim1.tmp cris/Makesim2.tmp
  16004. ;;
  16005. "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
  16006. "d10v/Makefile":C) sed -n \
  16007. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16008. /^srcdir = / s:$:/d10v:
  16009. p
  16010. }' \
  16011. <Make-common.sim >d10v/Makesim1.tmp
  16012. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
  16013. sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
  16014. -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
  16015. <d10v/Makefile.sim >d10v/Makefile
  16016. rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
  16017. ;;
  16018. "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
  16019. "frv/Makefile":C) sed -n \
  16020. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16021. /^srcdir = / s:$:/frv:
  16022. p
  16023. }' \
  16024. <Make-common.sim >frv/Makesim1.tmp
  16025. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
  16026. sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
  16027. -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
  16028. <frv/Makefile.sim >frv/Makefile
  16029. rm -f frv/Makesim1.tmp frv/Makesim2.tmp
  16030. ;;
  16031. "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
  16032. "ft32/Makefile":C) sed -n \
  16033. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16034. /^srcdir = / s:$:/ft32:
  16035. p
  16036. }' \
  16037. <Make-common.sim >ft32/Makesim1.tmp
  16038. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
  16039. sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
  16040. -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
  16041. <ft32/Makefile.sim >ft32/Makefile
  16042. rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
  16043. ;;
  16044. "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
  16045. "h8300/Makefile":C) sed -n \
  16046. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16047. /^srcdir = / s:$:/h8300:
  16048. p
  16049. }' \
  16050. <Make-common.sim >h8300/Makesim1.tmp
  16051. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
  16052. sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
  16053. -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
  16054. <h8300/Makefile.sim >h8300/Makefile
  16055. rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
  16056. ;;
  16057. "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
  16058. "iq2000/Makefile":C) sed -n \
  16059. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16060. /^srcdir = / s:$:/iq2000:
  16061. p
  16062. }' \
  16063. <Make-common.sim >iq2000/Makesim1.tmp
  16064. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
  16065. sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
  16066. -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
  16067. <iq2000/Makefile.sim >iq2000/Makefile
  16068. rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
  16069. ;;
  16070. "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
  16071. "lm32/Makefile":C) sed -n \
  16072. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16073. /^srcdir = / s:$:/lm32:
  16074. p
  16075. }' \
  16076. <Make-common.sim >lm32/Makesim1.tmp
  16077. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
  16078. sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
  16079. -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
  16080. <lm32/Makefile.sim >lm32/Makefile
  16081. rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
  16082. ;;
  16083. "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
  16084. "m32c/Makefile":C) sed -n \
  16085. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16086. /^srcdir = / s:$:/m32c:
  16087. p
  16088. }' \
  16089. <Make-common.sim >m32c/Makesim1.tmp
  16090. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
  16091. sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
  16092. -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
  16093. <m32c/Makefile.sim >m32c/Makefile
  16094. rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
  16095. ;;
  16096. "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
  16097. "m32r/Makefile":C) sed -n \
  16098. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16099. /^srcdir = / s:$:/m32r:
  16100. p
  16101. }' \
  16102. <Make-common.sim >m32r/Makesim1.tmp
  16103. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
  16104. sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
  16105. -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
  16106. <m32r/Makefile.sim >m32r/Makefile
  16107. rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
  16108. ;;
  16109. "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
  16110. "m68hc11/Makefile":C) sed -n \
  16111. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16112. /^srcdir = / s:$:/m68hc11:
  16113. p
  16114. }' \
  16115. <Make-common.sim >m68hc11/Makesim1.tmp
  16116. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
  16117. sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
  16118. -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
  16119. <m68hc11/Makefile.sim >m68hc11/Makefile
  16120. rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
  16121. ;;
  16122. "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
  16123. "mcore/Makefile":C) sed -n \
  16124. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16125. /^srcdir = / s:$:/mcore:
  16126. p
  16127. }' \
  16128. <Make-common.sim >mcore/Makesim1.tmp
  16129. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
  16130. sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
  16131. -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
  16132. <mcore/Makefile.sim >mcore/Makefile
  16133. rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
  16134. ;;
  16135. "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
  16136. "microblaze/Makefile":C) sed -n \
  16137. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16138. /^srcdir = / s:$:/microblaze:
  16139. p
  16140. }' \
  16141. <Make-common.sim >microblaze/Makesim1.tmp
  16142. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
  16143. sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
  16144. -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
  16145. <microblaze/Makefile.sim >microblaze/Makefile
  16146. rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
  16147. ;;
  16148. "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
  16149. "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
  16150. "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
  16151. "moxie/Makefile":C) sed -n \
  16152. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16153. /^srcdir = / s:$:/moxie:
  16154. p
  16155. }' \
  16156. <Make-common.sim >moxie/Makesim1.tmp
  16157. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
  16158. sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
  16159. -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
  16160. <moxie/Makefile.sim >moxie/Makefile
  16161. rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
  16162. ;;
  16163. "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
  16164. "msp430/Makefile":C) sed -n \
  16165. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16166. /^srcdir = / s:$:/msp430:
  16167. p
  16168. }' \
  16169. <Make-common.sim >msp430/Makesim1.tmp
  16170. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
  16171. sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
  16172. -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
  16173. <msp430/Makefile.sim >msp430/Makefile
  16174. rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
  16175. ;;
  16176. "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
  16177. "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
  16178. "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
  16179. "pru/Makefile":C) sed -n \
  16180. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16181. /^srcdir = / s:$:/pru:
  16182. p
  16183. }' \
  16184. <Make-common.sim >pru/Makesim1.tmp
  16185. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
  16186. sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
  16187. -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
  16188. <pru/Makefile.sim >pru/Makefile
  16189. rm -f pru/Makesim1.tmp pru/Makesim2.tmp
  16190. ;;
  16191. "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
  16192. "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
  16193. "rl78/Makefile":C) sed -n \
  16194. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16195. /^srcdir = / s:$:/rl78:
  16196. p
  16197. }' \
  16198. <Make-common.sim >rl78/Makesim1.tmp
  16199. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
  16200. sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
  16201. -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
  16202. <rl78/Makefile.sim >rl78/Makefile
  16203. rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
  16204. ;;
  16205. "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
  16206. "rx/Makefile":C) sed -n \
  16207. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16208. /^srcdir = / s:$:/rx:
  16209. p
  16210. }' \
  16211. <Make-common.sim >rx/Makesim1.tmp
  16212. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
  16213. sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
  16214. -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
  16215. <rx/Makefile.sim >rx/Makefile
  16216. rm -f rx/Makesim1.tmp rx/Makesim2.tmp
  16217. ;;
  16218. "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
  16219. "sh/Makefile":C) sed -n \
  16220. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16221. /^srcdir = / s:$:/sh:
  16222. p
  16223. }' \
  16224. <Make-common.sim >sh/Makesim1.tmp
  16225. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
  16226. sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
  16227. -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
  16228. <sh/Makefile.sim >sh/Makefile
  16229. rm -f sh/Makesim1.tmp sh/Makesim2.tmp
  16230. ;;
  16231. "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
  16232. "erc32/Makefile":C) sed -n \
  16233. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16234. /^srcdir = / s:$:/erc32:
  16235. p
  16236. }' \
  16237. <Make-common.sim >erc32/Makesim1.tmp
  16238. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
  16239. sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
  16240. -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
  16241. <erc32/Makefile.sim >erc32/Makefile
  16242. rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
  16243. ;;
  16244. "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
  16245. "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
  16246. "example-synacor/Makefile":C) sed -n \
  16247. -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
  16248. /^srcdir = / s:$:/example-synacor:
  16249. p
  16250. }' \
  16251. <Make-common.sim >example-synacor/Makesim1.tmp
  16252. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
  16253. sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
  16254. -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
  16255. <example-synacor/Makefile.sim >example-synacor/Makefile
  16256. rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
  16257. ;;
  16258. "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
  16259. esac
  16260. done # for ac_tag
  16261. as_fn_exit 0
  16262. _ACEOF
  16263. ac_clean_files=$ac_clean_files_save
  16264. test $ac_write_fail = 0 ||
  16265. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16266. # configure is writing to config.log, and then calls config.status.
  16267. # config.status does its own redirection, appending to config.log.
  16268. # Unfortunately, on DOS this fails, as config.log is still kept open
  16269. # by configure, so config.status won't be able to write to it; its
  16270. # output is simply discarded. So we exec the FD to /dev/null,
  16271. # effectively closing config.log, so it can be properly (re)opened and
  16272. # appended to by config.status. When coming back to configure, we
  16273. # need to make the FD available again.
  16274. if test "$no_create" != yes; then
  16275. ac_cs_success=:
  16276. ac_config_status_args=
  16277. test "$silent" = yes &&
  16278. ac_config_status_args="$ac_config_status_args --quiet"
  16279. exec 5>/dev/null
  16280. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16281. exec 5>>config.log
  16282. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16283. # would make configure fail if this is the last instruction.
  16284. $ac_cs_success || as_fn_exit 1
  16285. fi
  16286. #
  16287. # CONFIG_SUBDIRS section.
  16288. #
  16289. if test "$no_recursion" != yes; then
  16290. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  16291. # so they do not pile up.
  16292. ac_sub_configure_args=
  16293. ac_prev=
  16294. eval "set x $ac_configure_args"
  16295. shift
  16296. for ac_arg
  16297. do
  16298. if test -n "$ac_prev"; then
  16299. ac_prev=
  16300. continue
  16301. fi
  16302. case $ac_arg in
  16303. -cache-file | --cache-file | --cache-fil | --cache-fi \
  16304. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  16305. ac_prev=cache_file ;;
  16306. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  16307. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  16308. | --c=*)
  16309. ;;
  16310. --config-cache | -C)
  16311. ;;
  16312. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  16313. ac_prev=srcdir ;;
  16314. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  16315. ;;
  16316. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  16317. ac_prev=prefix ;;
  16318. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  16319. ;;
  16320. --disable-option-checking)
  16321. ;;
  16322. *)
  16323. case $ac_arg in
  16324. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16325. esac
  16326. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  16327. esac
  16328. done
  16329. # Always prepend --prefix to ensure using the same prefix
  16330. # in subdir configurations.
  16331. ac_arg="--prefix=$prefix"
  16332. case $ac_arg in
  16333. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16334. esac
  16335. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  16336. # Pass --silent
  16337. if test "$silent" = yes; then
  16338. ac_sub_configure_args="--silent $ac_sub_configure_args"
  16339. fi
  16340. # Always prepend --disable-option-checking to silence warnings, since
  16341. # different subdirs can have different --enable and --with options.
  16342. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  16343. ac_popdir=`pwd`
  16344. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  16345. # Do not complain, so a configure script can configure whichever
  16346. # parts of a large source tree are present.
  16347. test -d "$srcdir/$ac_dir" || continue
  16348. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  16349. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  16350. $as_echo "$ac_msg" >&6
  16351. as_dir="$ac_dir"; as_fn_mkdir_p
  16352. ac_builddir=.
  16353. case "$ac_dir" in
  16354. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16355. *)
  16356. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16357. # A ".." for each directory in $ac_dir_suffix.
  16358. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16359. case $ac_top_builddir_sub in
  16360. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16361. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16362. esac ;;
  16363. esac
  16364. ac_abs_top_builddir=$ac_pwd
  16365. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16366. # for backward compatibility:
  16367. ac_top_builddir=$ac_top_build_prefix
  16368. case $srcdir in
  16369. .) # We are building in place.
  16370. ac_srcdir=.
  16371. ac_top_srcdir=$ac_top_builddir_sub
  16372. ac_abs_top_srcdir=$ac_pwd ;;
  16373. [\\/]* | ?:[\\/]* ) # Absolute name.
  16374. ac_srcdir=$srcdir$ac_dir_suffix;
  16375. ac_top_srcdir=$srcdir
  16376. ac_abs_top_srcdir=$srcdir ;;
  16377. *) # Relative name.
  16378. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16379. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16380. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16381. esac
  16382. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16383. cd "$ac_dir"
  16384. # Check for guested configure; otherwise get Cygnus style configure.
  16385. if test -f "$ac_srcdir/configure.gnu"; then
  16386. ac_sub_configure=$ac_srcdir/configure.gnu
  16387. elif test -f "$ac_srcdir/configure"; then
  16388. ac_sub_configure=$ac_srcdir/configure
  16389. elif test -f "$ac_srcdir/configure.in"; then
  16390. # This should be Cygnus configure.
  16391. ac_sub_configure=$ac_aux_dir/configure
  16392. else
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  16394. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  16395. ac_sub_configure=
  16396. fi
  16397. # The recursion is here.
  16398. if test -n "$ac_sub_configure"; then
  16399. # Make the cache file name correct relative to the subdirectory.
  16400. case $cache_file in
  16401. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  16402. *) # Relative name.
  16403. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  16404. esac
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  16406. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  16407. # The eval makes quoting arguments work.
  16408. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  16409. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  16410. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  16411. fi
  16412. cd "$ac_popdir"
  16413. done
  16414. fi
  16415. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16417. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16418. fi