configure 612 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="main.c"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. enable_option_checking=no
  573. ac_header_list=
  574. ac_subst_vars='LTLIBOBJS
  575. LIBOBJS
  576. GCORE_TRANSFORM_NAME
  577. GDB_TRANSFORM_NAME
  578. XSLTPROC
  579. NM_H
  580. GDB_NM_FILE
  581. LTLIBXXHASH
  582. LIBXXHASH
  583. HAVE_LIBXXHASH
  584. CTF_DEPS
  585. LIBCTF
  586. LTLIBBABELTRACE
  587. LIBBABELTRACE
  588. HAVE_LIBBABELTRACE
  589. LIBBACKTRACE_LIB
  590. LIBBACKTRACE_INC
  591. HAVE_NATIVE_GCORE_HOST
  592. NAT_GENERATED_FILES
  593. XM_CLIBS
  594. MH_CFLAGS
  595. LOADLIBES
  596. NAT_CDEPS
  597. NATDEPFILES
  598. NAT_FILE
  599. target_subdir
  600. CONFIG_UNINSTALL
  601. CONFIG_INSTALL
  602. CONFIG_CLEAN
  603. CONFIG_ALL
  604. CONFIG_SRCS
  605. CONFIG_DEPS
  606. CONFIG_OBS
  607. PROFILE_CFLAGS
  608. ENABLE_CFLAGS
  609. SIM_OBS
  610. SIM
  611. XMKMF
  612. GDBTK_SRC_DIR
  613. GDBTK_CFLAGS
  614. GDBTKLIBS
  615. X_LIBS
  616. X_LDFLAGS
  617. X_CFLAGS
  618. TK_XINCLUDES
  619. TK_DEPS
  620. TK_LIBRARY
  621. TK_INCLUDE
  622. TK_STUB_LIB_SPEC
  623. TK_STUB_LIB_FLAG
  624. TK_STUB_LIB_FILE
  625. TK_LIB_SPEC
  626. TK_LIB_FLAG
  627. TK_LIB_FILE
  628. TK_SRC_DIR
  629. TK_BIN_DIR
  630. TK_VERSION
  631. TCL_DEPS
  632. TCL_LIBRARY
  633. TCL_INCLUDE
  634. TCL_STUB_LIB_SPEC
  635. TCL_STUB_LIB_FLAG
  636. TCL_STUB_LIB_FILE
  637. TCL_LIB_SPEC
  638. TCL_LIB_FLAG
  639. TCL_LIB_FILE
  640. TCL_SRC_DIR
  641. TCL_BIN_DIR
  642. TCL_PATCH_LEVEL
  643. TCL_VERSION
  644. WIN32LDAPP
  645. WIN32LIBS
  646. GUI_CFLAGS_X
  647. LIBGUI
  648. LTLIBLZMA
  649. LIBLZMA
  650. HAVE_LIBLZMA
  651. SER_HARDWIRE
  652. WERROR_CFLAGS
  653. WARN_CFLAGS
  654. SYSTEM_GDBINIT_DIR
  655. SYSTEM_GDBINIT
  656. TARGET_SYSTEM_ROOT
  657. CONFIG_LDFLAGS
  658. RDYNAMIC
  659. LTLIBIPT
  660. LIBIPT
  661. HAVE_LIBIPT
  662. PTHREAD_CFLAGS
  663. PTHREAD_LIBS
  664. PTHREAD_CC
  665. ax_pthread_config
  666. SED
  667. ALLOCA
  668. SRCHIGH_CFLAGS
  669. SRCHIGH_LIBS
  670. HAVE_GUILE_FALSE
  671. HAVE_GUILE_TRUE
  672. GUILE_LIBS
  673. GUILE_CPPFLAGS
  674. GUILD_TARGET_FLAG
  675. GUILD
  676. pkg_config_prog_path
  677. HAVE_PYTHON_FALSE
  678. HAVE_PYTHON_TRUE
  679. PYTHON_LIBS
  680. PYTHON_CPPFLAGS
  681. PYTHON_CFLAGS
  682. python_prog_path
  683. LTLIBMPFR
  684. LIBMPFR
  685. HAVE_LIBMPFR
  686. LTLIBGMP
  687. LIBGMP
  688. HAVE_LIBGMP
  689. LTLIBEXPAT
  690. LIBEXPAT
  691. HAVE_LIBEXPAT
  692. JIT_READER_DIR
  693. TARGET_PTR
  694. READLINE_TEXI_INCFLAG
  695. READLINE_CFLAGS
  696. READLINE_DEPS
  697. READLINE
  698. LTLIBICONV
  699. LIBICONV
  700. zlibinc
  701. zlibdir
  702. MIG
  703. WINDRES
  704. DLLTOOL
  705. AR
  706. YFLAGS
  707. YACC
  708. RANLIB
  709. LN_S
  710. INSTALL_DATA
  711. INSTALL_SCRIPT
  712. INSTALL_PROGRAM
  713. AWK
  714. REPORT_BUGS_TEXI
  715. REPORT_BUGS_TO
  716. PKGVERSION
  717. CODESIGN_CERT
  718. DEBUGINFOD_LIBS
  719. DEBUGINFOD_CFLAGS
  720. PKG_CONFIG_LIBDIR
  721. PKG_CONFIG_PATH
  722. PKG_CONFIG
  723. HAVE_NATIVE_GCORE_TARGET
  724. TARGET_OBS
  725. ENABLE_BFD_64_BIT_FALSE
  726. ENABLE_BFD_64_BIT_TRUE
  727. subdirs
  728. GDB_DATADIR
  729. DEBUGDIR
  730. MAKEINFO_EXTRA_FLAGS
  731. MAKEINFOFLAGS
  732. MAKEINFO
  733. PACKAGE
  734. CATOBJEXT
  735. GENCAT
  736. INSTOBJEXT
  737. DATADIRNAME
  738. CATALOGS
  739. POSUB
  740. GMSGFMT
  741. XGETTEXT
  742. INCINTL
  743. LIBINTL_DEP
  744. LIBINTL
  745. USE_NLS
  746. CCDEPMODE
  747. DEPDIR
  748. am__leading_dot
  749. CXX_DIALECT
  750. HAVE_CXX11
  751. target_noncanonical
  752. INSTALL_STRIP_PROGRAM
  753. STRIP
  754. install_sh
  755. LARGEFILE_CPPFLAGS
  756. target_os
  757. target_vendor
  758. target_cpu
  759. target
  760. host_os
  761. host_vendor
  762. host_cpu
  763. host
  764. build_os
  765. build_vendor
  766. build_cpu
  767. build
  768. EGREP
  769. GREP
  770. CPP
  771. ac_ct_CXX
  772. CXXFLAGS
  773. CXX
  774. OBJEXT
  775. EXEEXT
  776. ac_ct_CC
  777. CPPFLAGS
  778. LDFLAGS
  779. CFLAGS
  780. CC
  781. MAINT
  782. MAINTAINER_MODE_FALSE
  783. MAINTAINER_MODE_TRUE
  784. target_alias
  785. host_alias
  786. build_alias
  787. LIBS
  788. ECHO_T
  789. ECHO_N
  790. ECHO_C
  791. DEFS
  792. mandir
  793. localedir
  794. libdir
  795. psdir
  796. pdfdir
  797. dvidir
  798. htmldir
  799. infodir
  800. docdir
  801. oldincludedir
  802. includedir
  803. localstatedir
  804. sharedstatedir
  805. sysconfdir
  806. datadir
  807. datarootdir
  808. libexecdir
  809. sbindir
  810. bindir
  811. program_transform_name
  812. prefix
  813. exec_prefix
  814. PACKAGE_URL
  815. PACKAGE_BUGREPORT
  816. PACKAGE_STRING
  817. PACKAGE_VERSION
  818. PACKAGE_TARNAME
  819. PACKAGE_NAME
  820. PATH_SEPARATOR
  821. SHELL'
  822. ac_subst_files='nat_makefile_frag'
  823. ac_user_opts='
  824. enable_option_checking
  825. enable_maintainer_mode
  826. enable_plugins
  827. enable_largefile
  828. with_separate_debug_dir
  829. with_gdb_datadir
  830. with_relocated_sources
  831. with_auto_load_dir
  832. with_auto_load_safe_path
  833. enable_targets
  834. enable_64_bit_bfd
  835. enable_gdbmi
  836. enable_tui
  837. enable_gdbtk
  838. with_debuginfod
  839. with_libunwind_ia64
  840. with_curses
  841. enable_profiling
  842. enable_codesign
  843. with_pkgversion
  844. with_bugurl
  845. with_system_zlib
  846. with_gnu_ld
  847. enable_rpath
  848. with_libiconv_prefix
  849. with_libiconv_type
  850. with_iconv_bin
  851. with_system_readline
  852. with_jit_reader_dir
  853. with_expat
  854. with_libexpat_prefix
  855. with_libexpat_type
  856. with_libgmp_prefix
  857. with_libgmp_type
  858. with_mpfr
  859. with_libmpfr_prefix
  860. with_libmpfr_type
  861. with_python
  862. with_python_libdir
  863. with_guile
  864. enable_source_highlight
  865. enable_threading
  866. with_intel_pt
  867. with_libipt_prefix
  868. with_libipt_type
  869. with_sysroot
  870. with_system_gdbinit
  871. with_system_gdbinit_dir
  872. enable_werror
  873. enable_build_warnings
  874. enable_gdb_build_warnings
  875. enable_ubsan
  876. with_lzma
  877. with_liblzma_prefix
  878. with_liblzma_type
  879. with_tcl
  880. with_tk
  881. with_x
  882. enable_sim
  883. enable_libbacktrace
  884. with_babeltrace
  885. with_libbabeltrace_prefix
  886. with_libbabeltrace_type
  887. with_xxhash
  888. enable_libctf
  889. with_libxxhash_prefix
  890. with_libxxhash_type
  891. enable_unit_tests
  892. '
  893. ac_precious_vars='build_alias
  894. host_alias
  895. target_alias
  896. CC
  897. CFLAGS
  898. LDFLAGS
  899. LIBS
  900. CPPFLAGS
  901. CXX
  902. CXXFLAGS
  903. CCC
  904. CPP
  905. MAKEINFO
  906. MAKEINFOFLAGS
  907. PKG_CONFIG
  908. PKG_CONFIG_PATH
  909. PKG_CONFIG_LIBDIR
  910. DEBUGINFOD_CFLAGS
  911. DEBUGINFOD_LIBS
  912. YACC
  913. YFLAGS
  914. XMKMF'
  915. ac_subdirs_all='testsuite
  916. gdbtk'
  917. # Initialize some variables set by options.
  918. ac_init_help=
  919. ac_init_version=false
  920. ac_unrecognized_opts=
  921. ac_unrecognized_sep=
  922. # The variables have the same names as the options, with
  923. # dashes changed to underlines.
  924. cache_file=/dev/null
  925. exec_prefix=NONE
  926. no_create=
  927. no_recursion=
  928. prefix=NONE
  929. program_prefix=NONE
  930. program_suffix=NONE
  931. program_transform_name=s,x,x,
  932. silent=
  933. site=
  934. srcdir=
  935. verbose=
  936. x_includes=NONE
  937. x_libraries=NONE
  938. # Installation directory options.
  939. # These are left unexpanded so users can "make install exec_prefix=/foo"
  940. # and all the variables that are supposed to be based on exec_prefix
  941. # by default will actually change.
  942. # Use braces instead of parens because sh, perl, etc. also accept them.
  943. # (The list follows the same order as the GNU Coding Standards.)
  944. bindir='${exec_prefix}/bin'
  945. sbindir='${exec_prefix}/sbin'
  946. libexecdir='${exec_prefix}/libexec'
  947. datarootdir='${prefix}/share'
  948. datadir='${datarootdir}'
  949. sysconfdir='${prefix}/etc'
  950. sharedstatedir='${prefix}/com'
  951. localstatedir='${prefix}/var'
  952. includedir='${prefix}/include'
  953. oldincludedir='/usr/include'
  954. docdir='${datarootdir}/doc/${PACKAGE}'
  955. infodir='${datarootdir}/info'
  956. htmldir='${docdir}'
  957. dvidir='${docdir}'
  958. pdfdir='${docdir}'
  959. psdir='${docdir}'
  960. libdir='${exec_prefix}/lib'
  961. localedir='${datarootdir}/locale'
  962. mandir='${datarootdir}/man'
  963. ac_prev=
  964. ac_dashdash=
  965. for ac_option
  966. do
  967. # If the previous option needs an argument, assign it.
  968. if test -n "$ac_prev"; then
  969. eval $ac_prev=\$ac_option
  970. ac_prev=
  971. continue
  972. fi
  973. case $ac_option in
  974. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  975. *=) ac_optarg= ;;
  976. *) ac_optarg=yes ;;
  977. esac
  978. # Accept the important Cygnus configure options, so we can diagnose typos.
  979. case $ac_dashdash$ac_option in
  980. --)
  981. ac_dashdash=yes ;;
  982. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  983. ac_prev=bindir ;;
  984. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  985. bindir=$ac_optarg ;;
  986. -build | --build | --buil | --bui | --bu)
  987. ac_prev=build_alias ;;
  988. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  989. build_alias=$ac_optarg ;;
  990. -cache-file | --cache-file | --cache-fil | --cache-fi \
  991. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  992. ac_prev=cache_file ;;
  993. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  994. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  995. cache_file=$ac_optarg ;;
  996. --config-cache | -C)
  997. cache_file=config.cache ;;
  998. -datadir | --datadir | --datadi | --datad)
  999. ac_prev=datadir ;;
  1000. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1001. datadir=$ac_optarg ;;
  1002. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1003. | --dataroo | --dataro | --datar)
  1004. ac_prev=datarootdir ;;
  1005. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1006. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1007. datarootdir=$ac_optarg ;;
  1008. -disable-* | --disable-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid feature name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "enable_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval enable_$ac_useropt=no ;;
  1023. -docdir | --docdir | --docdi | --doc | --do)
  1024. ac_prev=docdir ;;
  1025. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1026. docdir=$ac_optarg ;;
  1027. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1028. ac_prev=dvidir ;;
  1029. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1030. dvidir=$ac_optarg ;;
  1031. -enable-* | --enable-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid feature name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "enable_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval enable_$ac_useropt=\$ac_optarg ;;
  1046. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1047. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1048. | --exec | --exe | --ex)
  1049. ac_prev=exec_prefix ;;
  1050. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1051. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1052. | --exec=* | --exe=* | --ex=*)
  1053. exec_prefix=$ac_optarg ;;
  1054. -gas | --gas | --ga | --g)
  1055. # Obsolete; use --with-gas.
  1056. with_gas=yes ;;
  1057. -help | --help | --hel | --he | -h)
  1058. ac_init_help=long ;;
  1059. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1060. ac_init_help=recursive ;;
  1061. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1062. ac_init_help=short ;;
  1063. -host | --host | --hos | --ho)
  1064. ac_prev=host_alias ;;
  1065. -host=* | --host=* | --hos=* | --ho=*)
  1066. host_alias=$ac_optarg ;;
  1067. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1068. ac_prev=htmldir ;;
  1069. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1070. | --ht=*)
  1071. htmldir=$ac_optarg ;;
  1072. -includedir | --includedir | --includedi | --included | --include \
  1073. | --includ | --inclu | --incl | --inc)
  1074. ac_prev=includedir ;;
  1075. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1076. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1077. includedir=$ac_optarg ;;
  1078. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1079. ac_prev=infodir ;;
  1080. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1081. infodir=$ac_optarg ;;
  1082. -libdir | --libdir | --libdi | --libd)
  1083. ac_prev=libdir ;;
  1084. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1085. libdir=$ac_optarg ;;
  1086. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1087. | --libexe | --libex | --libe)
  1088. ac_prev=libexecdir ;;
  1089. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1090. | --libexe=* | --libex=* | --libe=*)
  1091. libexecdir=$ac_optarg ;;
  1092. -localedir | --localedir | --localedi | --localed | --locale)
  1093. ac_prev=localedir ;;
  1094. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1095. localedir=$ac_optarg ;;
  1096. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1097. | --localstate | --localstat | --localsta | --localst | --locals)
  1098. ac_prev=localstatedir ;;
  1099. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1100. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1101. localstatedir=$ac_optarg ;;
  1102. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1103. ac_prev=mandir ;;
  1104. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1105. mandir=$ac_optarg ;;
  1106. -nfp | --nfp | --nf)
  1107. # Obsolete; use --without-fp.
  1108. with_fp=no ;;
  1109. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1110. | --no-cr | --no-c | -n)
  1111. no_create=yes ;;
  1112. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1113. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1114. no_recursion=yes ;;
  1115. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1116. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1117. | --oldin | --oldi | --old | --ol | --o)
  1118. ac_prev=oldincludedir ;;
  1119. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1120. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1121. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1122. oldincludedir=$ac_optarg ;;
  1123. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1124. ac_prev=prefix ;;
  1125. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1126. prefix=$ac_optarg ;;
  1127. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1128. | --program-pre | --program-pr | --program-p)
  1129. ac_prev=program_prefix ;;
  1130. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1131. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1132. program_prefix=$ac_optarg ;;
  1133. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1134. | --program-suf | --program-su | --program-s)
  1135. ac_prev=program_suffix ;;
  1136. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1137. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1138. program_suffix=$ac_optarg ;;
  1139. -program-transform-name | --program-transform-name \
  1140. | --program-transform-nam | --program-transform-na \
  1141. | --program-transform-n | --program-transform- \
  1142. | --program-transform | --program-transfor \
  1143. | --program-transfo | --program-transf \
  1144. | --program-trans | --program-tran \
  1145. | --progr-tra | --program-tr | --program-t)
  1146. ac_prev=program_transform_name ;;
  1147. -program-transform-name=* | --program-transform-name=* \
  1148. | --program-transform-nam=* | --program-transform-na=* \
  1149. | --program-transform-n=* | --program-transform-=* \
  1150. | --program-transform=* | --program-transfor=* \
  1151. | --program-transfo=* | --program-transf=* \
  1152. | --program-trans=* | --program-tran=* \
  1153. | --progr-tra=* | --program-tr=* | --program-t=*)
  1154. program_transform_name=$ac_optarg ;;
  1155. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1156. ac_prev=pdfdir ;;
  1157. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1158. pdfdir=$ac_optarg ;;
  1159. -psdir | --psdir | --psdi | --psd | --ps)
  1160. ac_prev=psdir ;;
  1161. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1162. psdir=$ac_optarg ;;
  1163. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1164. | -silent | --silent | --silen | --sile | --sil)
  1165. silent=yes ;;
  1166. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1167. ac_prev=sbindir ;;
  1168. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1169. | --sbi=* | --sb=*)
  1170. sbindir=$ac_optarg ;;
  1171. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1172. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1173. | --sharedst | --shareds | --shared | --share | --shar \
  1174. | --sha | --sh)
  1175. ac_prev=sharedstatedir ;;
  1176. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1177. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1178. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1179. | --sha=* | --sh=*)
  1180. sharedstatedir=$ac_optarg ;;
  1181. -site | --site | --sit)
  1182. ac_prev=site ;;
  1183. -site=* | --site=* | --sit=*)
  1184. site=$ac_optarg ;;
  1185. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1186. ac_prev=srcdir ;;
  1187. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1188. srcdir=$ac_optarg ;;
  1189. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1190. | --syscon | --sysco | --sysc | --sys | --sy)
  1191. ac_prev=sysconfdir ;;
  1192. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1193. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1194. sysconfdir=$ac_optarg ;;
  1195. -target | --target | --targe | --targ | --tar | --ta | --t)
  1196. ac_prev=target_alias ;;
  1197. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1198. target_alias=$ac_optarg ;;
  1199. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1200. verbose=yes ;;
  1201. -version | --version | --versio | --versi | --vers | -V)
  1202. ac_init_version=: ;;
  1203. -with-* | --with-*)
  1204. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1205. # Reject names that are not valid shell variable names.
  1206. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207. as_fn_error $? "invalid package name: $ac_useropt"
  1208. ac_useropt_orig=$ac_useropt
  1209. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1210. case $ac_user_opts in
  1211. *"
  1212. "with_$ac_useropt"
  1213. "*) ;;
  1214. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1215. ac_unrecognized_sep=', ';;
  1216. esac
  1217. eval with_$ac_useropt=\$ac_optarg ;;
  1218. -without-* | --without-*)
  1219. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1220. # Reject names that are not valid shell variable names.
  1221. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1222. as_fn_error $? "invalid package name: $ac_useropt"
  1223. ac_useropt_orig=$ac_useropt
  1224. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1225. case $ac_user_opts in
  1226. *"
  1227. "with_$ac_useropt"
  1228. "*) ;;
  1229. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1230. ac_unrecognized_sep=', ';;
  1231. esac
  1232. eval with_$ac_useropt=no ;;
  1233. --x)
  1234. # Obsolete; use --with-x.
  1235. with_x=yes ;;
  1236. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1237. | --x-incl | --x-inc | --x-in | --x-i)
  1238. ac_prev=x_includes ;;
  1239. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1240. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1241. x_includes=$ac_optarg ;;
  1242. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1243. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1244. ac_prev=x_libraries ;;
  1245. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1246. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1247. x_libraries=$ac_optarg ;;
  1248. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1249. Try \`$0 --help' for more information"
  1250. ;;
  1251. *=*)
  1252. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1253. # Reject names that are not valid shell variable names.
  1254. case $ac_envvar in #(
  1255. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1256. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1257. esac
  1258. eval $ac_envvar=\$ac_optarg
  1259. export $ac_envvar ;;
  1260. *)
  1261. # FIXME: should be removed in autoconf 3.0.
  1262. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1263. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1264. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1265. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1266. ;;
  1267. esac
  1268. done
  1269. if test -n "$ac_prev"; then
  1270. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1271. as_fn_error $? "missing argument to $ac_option"
  1272. fi
  1273. if test -n "$ac_unrecognized_opts"; then
  1274. case $enable_option_checking in
  1275. no) ;;
  1276. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1277. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1278. esac
  1279. fi
  1280. # Check all directory arguments for consistency.
  1281. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1282. datadir sysconfdir sharedstatedir localstatedir includedir \
  1283. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1284. libdir localedir mandir
  1285. do
  1286. eval ac_val=\$$ac_var
  1287. # Remove trailing slashes.
  1288. case $ac_val in
  1289. */ )
  1290. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1291. eval $ac_var=\$ac_val;;
  1292. esac
  1293. # Be sure to have absolute directory names.
  1294. case $ac_val in
  1295. [\\/$]* | ?:[\\/]* ) continue;;
  1296. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1297. esac
  1298. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1299. done
  1300. # There might be people who depend on the old broken behavior: `$host'
  1301. # used to hold the argument of --host etc.
  1302. # FIXME: To remove some day.
  1303. build=$build_alias
  1304. host=$host_alias
  1305. target=$target_alias
  1306. # FIXME: To remove some day.
  1307. if test "x$host_alias" != x; then
  1308. if test "x$build_alias" = x; then
  1309. cross_compiling=maybe
  1310. elif test "x$build_alias" != "x$host_alias"; then
  1311. cross_compiling=yes
  1312. fi
  1313. fi
  1314. ac_tool_prefix=
  1315. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1316. test "$silent" = yes && exec 6>/dev/null
  1317. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1318. ac_ls_di=`ls -di .` &&
  1319. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1320. as_fn_error $? "working directory cannot be determined"
  1321. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1322. as_fn_error $? "pwd does not report name of working directory"
  1323. # Find the source files, if location was not specified.
  1324. if test -z "$srcdir"; then
  1325. ac_srcdir_defaulted=yes
  1326. # Try the directory containing this script, then the parent directory.
  1327. ac_confdir=`$as_dirname -- "$as_myself" ||
  1328. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1329. X"$as_myself" : 'X\(//\)[^/]' \| \
  1330. X"$as_myself" : 'X\(//\)$' \| \
  1331. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1332. $as_echo X"$as_myself" |
  1333. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\/\)[^/].*/{
  1338. s//\1/
  1339. q
  1340. }
  1341. /^X\(\/\/\)$/{
  1342. s//\1/
  1343. q
  1344. }
  1345. /^X\(\/\).*/{
  1346. s//\1/
  1347. q
  1348. }
  1349. s/.*/./; q'`
  1350. srcdir=$ac_confdir
  1351. if test ! -r "$srcdir/$ac_unique_file"; then
  1352. srcdir=..
  1353. fi
  1354. else
  1355. ac_srcdir_defaulted=no
  1356. fi
  1357. if test ! -r "$srcdir/$ac_unique_file"; then
  1358. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1359. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1360. fi
  1361. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1362. ac_abs_confdir=`(
  1363. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1364. pwd)`
  1365. # When building in place, set srcdir=.
  1366. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1367. srcdir=.
  1368. fi
  1369. # Remove unnecessary trailing slashes from srcdir.
  1370. # Double slashes in file names in object file debugging info
  1371. # mess up M-x gdb in Emacs.
  1372. case $srcdir in
  1373. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1374. esac
  1375. for ac_var in $ac_precious_vars; do
  1376. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1377. eval ac_env_${ac_var}_value=\$${ac_var}
  1378. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1379. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1380. done
  1381. #
  1382. # Report the --help message.
  1383. #
  1384. if test "$ac_init_help" = "long"; then
  1385. # Omit some internal or obsolete options to make the list less imposing.
  1386. # This message is too long to be a string in the A/UX 3.1 sh.
  1387. cat <<_ACEOF
  1388. \`configure' configures this package to adapt to many kinds of systems.
  1389. Usage: $0 [OPTION]... [VAR=VALUE]...
  1390. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1391. VAR=VALUE. See below for descriptions of some of the useful variables.
  1392. Defaults for the options are specified in brackets.
  1393. Configuration:
  1394. -h, --help display this help and exit
  1395. --help=short display options specific to this package
  1396. --help=recursive display the short help of all the included packages
  1397. -V, --version display version information and exit
  1398. -q, --quiet, --silent do not print \`checking ...' messages
  1399. --cache-file=FILE cache test results in FILE [disabled]
  1400. -C, --config-cache alias for \`--cache-file=config.cache'
  1401. -n, --no-create do not create output files
  1402. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1403. Installation directories:
  1404. --prefix=PREFIX install architecture-independent files in PREFIX
  1405. [$ac_default_prefix]
  1406. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1407. [PREFIX]
  1408. By default, \`make install' will install all the files in
  1409. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1410. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1411. for instance \`--prefix=\$HOME'.
  1412. For better control, use the options below.
  1413. Fine tuning of the installation directories:
  1414. --bindir=DIR user executables [EPREFIX/bin]
  1415. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1416. --libexecdir=DIR program executables [EPREFIX/libexec]
  1417. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1418. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1419. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1420. --libdir=DIR object code libraries [EPREFIX/lib]
  1421. --includedir=DIR C header files [PREFIX/include]
  1422. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1423. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1424. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1425. --infodir=DIR info documentation [DATAROOTDIR/info]
  1426. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1427. --mandir=DIR man documentation [DATAROOTDIR/man]
  1428. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1429. --htmldir=DIR html documentation [DOCDIR]
  1430. --dvidir=DIR dvi documentation [DOCDIR]
  1431. --pdfdir=DIR pdf documentation [DOCDIR]
  1432. --psdir=DIR ps documentation [DOCDIR]
  1433. _ACEOF
  1434. cat <<\_ACEOF
  1435. Program names:
  1436. --program-prefix=PREFIX prepend PREFIX to installed program names
  1437. --program-suffix=SUFFIX append SUFFIX to installed program names
  1438. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1439. X features:
  1440. --x-includes=DIR X include files are in DIR
  1441. --x-libraries=DIR X library files are in DIR
  1442. System types:
  1443. --build=BUILD configure for building on BUILD [guessed]
  1444. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1445. --target=TARGET configure for building compilers for TARGET [HOST]
  1446. _ACEOF
  1447. fi
  1448. if test -n "$ac_init_help"; then
  1449. cat <<\_ACEOF
  1450. Optional Features:
  1451. --disable-option-checking ignore unrecognized --enable/--with options
  1452. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1453. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1454. --enable-maintainer-mode
  1455. enable make rules and dependencies not useful (and
  1456. sometimes confusing) to the casual installer
  1457. --enable-plugins Enable support for plugins
  1458. --disable-largefile omit support for large files
  1459. --enable-targets=TARGETS
  1460. alternative target configurations
  1461. --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
  1462. --disable-gdbmi disable machine-interface (MI)
  1463. --enable-tui enable full-screen terminal user interface (TUI)
  1464. --enable-gdbtk enable gdbtk graphical user interface (GUI)
  1465. --enable-profiling enable profiling of GDB
  1466. --enable-codesign=CERT sign gdb with 'codesign -s CERT'
  1467. --disable-rpath do not hardcode runtime library paths
  1468. --enable-source-highlight
  1469. enable source-highlight for source listings
  1470. --enable-threading include support for parallel processing of data
  1471. (yes/no)
  1472. --enable-werror treat compile warnings as errors
  1473. --enable-build-warnings enable build-time compiler warnings if gcc is used
  1474. --enable-gdb-build-warnings
  1475. enable GDB specific build-time compiler warnings if
  1476. gcc is used
  1477. --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
  1478. --enable-sim link gdb with simulator
  1479. --enable-libbacktrace use libbacktrace to write a backtrace after a fatal
  1480. signal.
  1481. --enable-libctf Handle .ctf type-info sections [default=yes]
  1482. --enable-unit-tests Enable the inclusion of unit tests when compiling
  1483. GDB
  1484. Optional Packages:
  1485. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1486. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1487. --with-separate-debug-dir=PATH
  1488. look for global separate debug info in this path
  1489. [LIBDIR/debug]
  1490. --with-gdb-datadir=PATH look for global separate data files in this path
  1491. [DATADIR/gdb]
  1492. --with-relocated-sources=PATH
  1493. automatically relocate this path for source files
  1494. --with-auto-load-dir=PATH
  1495. directories from which to load auto-loaded scripts
  1496. [$debugdir:$datadir/auto-load]
  1497. --with-auto-load-safe-path=PATH
  1498. directories safe to hold auto-loaded files
  1499. [--with-auto-load-dir]
  1500. --without-auto-load-safe-path
  1501. do not restrict auto-loaded files locations
  1502. --with-debuginfod Enable debuginfo lookups with debuginfod
  1503. (auto/yes/no)
  1504. --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
  1505. --with-curses use the curses library instead of the termcap
  1506. library
  1507. --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
  1508. --with-bugurl=URL Direct users to URL to report a bug
  1509. --with-system-zlib use installed libz
  1510. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1511. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1512. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1513. --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
  1514. --with-iconv-bin=PATH specify where to find the iconv program
  1515. --with-system-readline use installed readline library
  1516. --with-jit-reader-dir=PATH
  1517. directory to load the JIT readers from
  1518. --with-expat include expat support (auto/yes/no)
  1519. --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
  1520. --without-libexpat-prefix don't search for libexpat in includedir and libdir
  1521. --with-libexpat-type=TYPE type of library to search for (auto/static/shared)
  1522. --with-libgmp-prefix[=DIR] search for libgmp in DIR/include and DIR/lib
  1523. --without-libgmp-prefix don't search for libgmp in includedir and libdir
  1524. --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
  1525. --with-mpfr include MPFR support (auto/yes/no)
  1526. --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
  1527. --without-libmpfr-prefix don't search for libmpfr in includedir and libdir
  1528. --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
  1529. --with-python[=PYTHON] include python support
  1530. (auto/yes/no/<python-program>)
  1531. --with-python-libdir[=DIR]
  1532. search for python's libraries in DIR
  1533. --with-guile[=GUILE] include guile support
  1534. (auto/yes/no/<guile-version>/<pkg-config-program>)
  1535. --with-intel-pt include Intel Processor Trace support (auto/yes/no)
  1536. --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
  1537. --without-libipt-prefix don't search for libipt in includedir and libdir
  1538. --with-libipt-type=TYPE type of library to search for (auto/static/shared)
  1539. --with-sysroot[=DIR] search for usr/lib et al within DIR
  1540. --with-system-gdbinit=PATH
  1541. automatically load a system-wide gdbinit file
  1542. --with-system-gdbinit-dir=PATH
  1543. automatically load system-wide gdbinit files from
  1544. this directory
  1545. --with-lzma support lzma compression (auto/yes/no)
  1546. --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
  1547. --without-liblzma-prefix don't search for liblzma in includedir and libdir
  1548. --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
  1549. --with-tcl directory containing tcl configuration (tclConfig.sh)
  1550. --with-tk directory containing tk configuration (tkConfig.sh)
  1551. --with-x use the X Window System
  1552. --with-babeltrace include babeltrace support (auto/yes/no)
  1553. --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
  1554. --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
  1555. --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
  1556. --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
  1557. --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
  1558. --without-libxxhash-prefix don't search for libxxhash in includedir and libdir
  1559. --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
  1560. Some influential environment variables:
  1561. CC C compiler command
  1562. CFLAGS C compiler flags
  1563. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1564. nonstandard directory <lib dir>
  1565. LIBS libraries to pass to the linker, e.g. -l<library>
  1566. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1567. you have headers in a nonstandard directory <include dir>
  1568. CXX C++ compiler command
  1569. CXXFLAGS C++ compiler flags
  1570. CPP C preprocessor
  1571. MAKEINFO Parent configure detects if it is of sufficient version.
  1572. MAKEINFOFLAGS
  1573. Parameters for MAKEINFO.
  1574. PKG_CONFIG path to pkg-config utility
  1575. PKG_CONFIG_PATH
  1576. directories to add to pkg-config's search path
  1577. PKG_CONFIG_LIBDIR
  1578. path overriding pkg-config's built-in search path
  1579. DEBUGINFOD_CFLAGS
  1580. C compiler flags for DEBUGINFOD, overriding pkg-config
  1581. DEBUGINFOD_LIBS
  1582. linker flags for DEBUGINFOD, overriding pkg-config
  1583. YACC The `Yet Another Compiler Compiler' implementation to use.
  1584. Defaults to the first program found out of: `bison -y', `byacc',
  1585. `yacc'.
  1586. YFLAGS The list of arguments that will be passed by default to $YACC.
  1587. This script will default YFLAGS to the empty string to avoid a
  1588. default value of `-d' given by some make applications.
  1589. XMKMF Path to xmkmf, Makefile generator for X Window System
  1590. Use these variables to override the choices made by `configure' or to help
  1591. it to find libraries and programs with nonstandard names/locations.
  1592. Report bugs to the package provider.
  1593. _ACEOF
  1594. ac_status=$?
  1595. fi
  1596. if test "$ac_init_help" = "recursive"; then
  1597. # If there are subdirs, report their specific --help.
  1598. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1599. test -d "$ac_dir" ||
  1600. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1601. continue
  1602. ac_builddir=.
  1603. case "$ac_dir" in
  1604. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1605. *)
  1606. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1607. # A ".." for each directory in $ac_dir_suffix.
  1608. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1609. case $ac_top_builddir_sub in
  1610. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1611. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1612. esac ;;
  1613. esac
  1614. ac_abs_top_builddir=$ac_pwd
  1615. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1616. # for backward compatibility:
  1617. ac_top_builddir=$ac_top_build_prefix
  1618. case $srcdir in
  1619. .) # We are building in place.
  1620. ac_srcdir=.
  1621. ac_top_srcdir=$ac_top_builddir_sub
  1622. ac_abs_top_srcdir=$ac_pwd ;;
  1623. [\\/]* | ?:[\\/]* ) # Absolute name.
  1624. ac_srcdir=$srcdir$ac_dir_suffix;
  1625. ac_top_srcdir=$srcdir
  1626. ac_abs_top_srcdir=$srcdir ;;
  1627. *) # Relative name.
  1628. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1629. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1630. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1631. esac
  1632. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1633. cd "$ac_dir" || { ac_status=$?; continue; }
  1634. # Check for guested configure.
  1635. if test -f "$ac_srcdir/configure.gnu"; then
  1636. echo &&
  1637. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1638. elif test -f "$ac_srcdir/configure"; then
  1639. echo &&
  1640. $SHELL "$ac_srcdir/configure" --help=recursive
  1641. else
  1642. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1643. fi || ac_status=$?
  1644. cd "$ac_pwd" || { ac_status=$?; break; }
  1645. done
  1646. fi
  1647. test -n "$ac_init_help" && exit $ac_status
  1648. if $ac_init_version; then
  1649. cat <<\_ACEOF
  1650. configure
  1651. generated by GNU Autoconf 2.69
  1652. Copyright (C) 2012 Free Software Foundation, Inc.
  1653. This configure script is free software; the Free Software Foundation
  1654. gives unlimited permission to copy, distribute and modify it.
  1655. _ACEOF
  1656. exit
  1657. fi
  1658. ## ------------------------ ##
  1659. ## Autoconf initialization. ##
  1660. ## ------------------------ ##
  1661. # ac_fn_c_try_compile LINENO
  1662. # --------------------------
  1663. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1664. ac_fn_c_try_compile ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. rm -f conftest.$ac_objext
  1668. if { { ac_try="$ac_compile"
  1669. case "(($ac_try" in
  1670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1671. *) ac_try_echo=$ac_try;;
  1672. esac
  1673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1674. $as_echo "$ac_try_echo"; } >&5
  1675. (eval "$ac_compile") 2>conftest.err
  1676. ac_status=$?
  1677. if test -s conftest.err; then
  1678. grep -v '^ *+' conftest.err >conftest.er1
  1679. cat conftest.er1 >&5
  1680. mv -f conftest.er1 conftest.err
  1681. fi
  1682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1683. test $ac_status = 0; } && {
  1684. test -z "$ac_c_werror_flag" ||
  1685. test ! -s conftest.err
  1686. } && test -s conftest.$ac_objext; then :
  1687. ac_retval=0
  1688. else
  1689. $as_echo "$as_me: failed program was:" >&5
  1690. sed 's/^/| /' conftest.$ac_ext >&5
  1691. ac_retval=1
  1692. fi
  1693. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1694. as_fn_set_status $ac_retval
  1695. } # ac_fn_c_try_compile
  1696. # ac_fn_cxx_try_compile LINENO
  1697. # ----------------------------
  1698. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1699. ac_fn_cxx_try_compile ()
  1700. {
  1701. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1702. rm -f conftest.$ac_objext
  1703. if { { ac_try="$ac_compile"
  1704. case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_compile") 2>conftest.err
  1711. ac_status=$?
  1712. if test -s conftest.err; then
  1713. grep -v '^ *+' conftest.err >conftest.er1
  1714. cat conftest.er1 >&5
  1715. mv -f conftest.er1 conftest.err
  1716. fi
  1717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1718. test $ac_status = 0; } && {
  1719. test -z "$ac_cxx_werror_flag" ||
  1720. test ! -s conftest.err
  1721. } && test -s conftest.$ac_objext; then :
  1722. ac_retval=0
  1723. else
  1724. $as_echo "$as_me: failed program was:" >&5
  1725. sed 's/^/| /' conftest.$ac_ext >&5
  1726. ac_retval=1
  1727. fi
  1728. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1729. as_fn_set_status $ac_retval
  1730. } # ac_fn_cxx_try_compile
  1731. # ac_fn_c_try_cpp LINENO
  1732. # ----------------------
  1733. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1734. ac_fn_c_try_cpp ()
  1735. {
  1736. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1737. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1738. case "(($ac_try" in
  1739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1740. *) ac_try_echo=$ac_try;;
  1741. esac
  1742. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1743. $as_echo "$ac_try_echo"; } >&5
  1744. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1745. ac_status=$?
  1746. if test -s conftest.err; then
  1747. grep -v '^ *+' conftest.err >conftest.er1
  1748. cat conftest.er1 >&5
  1749. mv -f conftest.er1 conftest.err
  1750. fi
  1751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1752. test $ac_status = 0; } > conftest.i && {
  1753. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1754. test ! -s conftest.err
  1755. }; then :
  1756. ac_retval=0
  1757. else
  1758. $as_echo "$as_me: failed program was:" >&5
  1759. sed 's/^/| /' conftest.$ac_ext >&5
  1760. ac_retval=1
  1761. fi
  1762. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1763. as_fn_set_status $ac_retval
  1764. } # ac_fn_c_try_cpp
  1765. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1766. # -------------------------------------------------------
  1767. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1768. # the include files in INCLUDES and setting the cache variable VAR
  1769. # accordingly.
  1770. ac_fn_c_check_header_mongrel ()
  1771. {
  1772. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1773. if eval \${$3+:} false; then :
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1775. $as_echo_n "checking for $2... " >&6; }
  1776. if eval \${$3+:} false; then :
  1777. $as_echo_n "(cached) " >&6
  1778. fi
  1779. eval ac_res=\$$3
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1781. $as_echo "$ac_res" >&6; }
  1782. else
  1783. # Is the header compilable?
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1785. $as_echo_n "checking $2 usability... " >&6; }
  1786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1787. /* end confdefs.h. */
  1788. $4
  1789. #include <$2>
  1790. _ACEOF
  1791. if ac_fn_c_try_compile "$LINENO"; then :
  1792. ac_header_compiler=yes
  1793. else
  1794. ac_header_compiler=no
  1795. fi
  1796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1798. $as_echo "$ac_header_compiler" >&6; }
  1799. # Is the header present?
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1801. $as_echo_n "checking $2 presence... " >&6; }
  1802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1803. /* end confdefs.h. */
  1804. #include <$2>
  1805. _ACEOF
  1806. if ac_fn_c_try_cpp "$LINENO"; then :
  1807. ac_header_preproc=yes
  1808. else
  1809. ac_header_preproc=no
  1810. fi
  1811. rm -f conftest.err conftest.i conftest.$ac_ext
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1813. $as_echo "$ac_header_preproc" >&6; }
  1814. # So? What about this header?
  1815. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1816. yes:no: )
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1818. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1820. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1821. ;;
  1822. no:yes:* )
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1824. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1826. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1828. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1830. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1832. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1833. ;;
  1834. esac
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1836. $as_echo_n "checking for $2... " >&6; }
  1837. if eval \${$3+:} false; then :
  1838. $as_echo_n "(cached) " >&6
  1839. else
  1840. eval "$3=\$ac_header_compiler"
  1841. fi
  1842. eval ac_res=\$$3
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1844. $as_echo "$ac_res" >&6; }
  1845. fi
  1846. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1847. } # ac_fn_c_check_header_mongrel
  1848. # ac_fn_c_try_run LINENO
  1849. # ----------------------
  1850. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1851. # that executables *can* be run.
  1852. ac_fn_c_try_run ()
  1853. {
  1854. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1855. if { { ac_try="$ac_link"
  1856. case "(($ac_try" in
  1857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1858. *) ac_try_echo=$ac_try;;
  1859. esac
  1860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1861. $as_echo "$ac_try_echo"; } >&5
  1862. (eval "$ac_link") 2>&5
  1863. ac_status=$?
  1864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1865. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1866. { { case "(($ac_try" in
  1867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1868. *) ac_try_echo=$ac_try;;
  1869. esac
  1870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1871. $as_echo "$ac_try_echo"; } >&5
  1872. (eval "$ac_try") 2>&5
  1873. ac_status=$?
  1874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1875. test $ac_status = 0; }; }; then :
  1876. ac_retval=0
  1877. else
  1878. $as_echo "$as_me: program exited with status $ac_status" >&5
  1879. $as_echo "$as_me: failed program was:" >&5
  1880. sed 's/^/| /' conftest.$ac_ext >&5
  1881. ac_retval=$ac_status
  1882. fi
  1883. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1884. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1885. as_fn_set_status $ac_retval
  1886. } # ac_fn_c_try_run
  1887. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1888. # -------------------------------------------------------
  1889. # Tests whether HEADER exists and can be compiled using the include files in
  1890. # INCLUDES, setting the cache variable VAR accordingly.
  1891. ac_fn_c_check_header_compile ()
  1892. {
  1893. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1895. $as_echo_n "checking for $2... " >&6; }
  1896. if eval \${$3+:} false; then :
  1897. $as_echo_n "(cached) " >&6
  1898. else
  1899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1900. /* end confdefs.h. */
  1901. $4
  1902. #include <$2>
  1903. _ACEOF
  1904. if ac_fn_c_try_compile "$LINENO"; then :
  1905. eval "$3=yes"
  1906. else
  1907. eval "$3=no"
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1910. fi
  1911. eval ac_res=\$$3
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1913. $as_echo "$ac_res" >&6; }
  1914. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1915. } # ac_fn_c_check_header_compile
  1916. # ac_fn_c_try_link LINENO
  1917. # -----------------------
  1918. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1919. ac_fn_c_try_link ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. rm -f conftest.$ac_objext conftest$ac_exeext
  1923. if { { ac_try="$ac_link"
  1924. case "(($ac_try" in
  1925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1926. *) ac_try_echo=$ac_try;;
  1927. esac
  1928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1929. $as_echo "$ac_try_echo"; } >&5
  1930. (eval "$ac_link") 2>conftest.err
  1931. ac_status=$?
  1932. if test -s conftest.err; then
  1933. grep -v '^ *+' conftest.err >conftest.er1
  1934. cat conftest.er1 >&5
  1935. mv -f conftest.er1 conftest.err
  1936. fi
  1937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1938. test $ac_status = 0; } && {
  1939. test -z "$ac_c_werror_flag" ||
  1940. test ! -s conftest.err
  1941. } && test -s conftest$ac_exeext && {
  1942. test "$cross_compiling" = yes ||
  1943. test -x conftest$ac_exeext
  1944. }; then :
  1945. ac_retval=0
  1946. else
  1947. $as_echo "$as_me: failed program was:" >&5
  1948. sed 's/^/| /' conftest.$ac_ext >&5
  1949. ac_retval=1
  1950. fi
  1951. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1952. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1953. # interfere with the next link command; also delete a directory that is
  1954. # left behind by Apple's compiler. We do this before executing the actions.
  1955. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1956. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1957. as_fn_set_status $ac_retval
  1958. } # ac_fn_c_try_link
  1959. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1960. # --------------------------------------------
  1961. # Tries to find the compile-time value of EXPR in a program that includes
  1962. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1963. # computed
  1964. ac_fn_c_compute_int ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. if test "$cross_compiling" = yes; then
  1968. # Depending upon the size, compute the lo and hi bounds.
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. $4
  1972. int
  1973. main ()
  1974. {
  1975. static int test_array [1 - 2 * !(($2) >= 0)];
  1976. test_array [0] = 0;
  1977. return test_array [0];
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. if ac_fn_c_try_compile "$LINENO"; then :
  1983. ac_lo=0 ac_mid=0
  1984. while :; do
  1985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1986. /* end confdefs.h. */
  1987. $4
  1988. int
  1989. main ()
  1990. {
  1991. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1992. test_array [0] = 0;
  1993. return test_array [0];
  1994. ;
  1995. return 0;
  1996. }
  1997. _ACEOF
  1998. if ac_fn_c_try_compile "$LINENO"; then :
  1999. ac_hi=$ac_mid; break
  2000. else
  2001. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2002. if test $ac_lo -le $ac_mid; then
  2003. ac_lo= ac_hi=
  2004. break
  2005. fi
  2006. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2007. fi
  2008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. else
  2011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2012. /* end confdefs.h. */
  2013. $4
  2014. int
  2015. main ()
  2016. {
  2017. static int test_array [1 - 2 * !(($2) < 0)];
  2018. test_array [0] = 0;
  2019. return test_array [0];
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. if ac_fn_c_try_compile "$LINENO"; then :
  2025. ac_hi=-1 ac_mid=-1
  2026. while :; do
  2027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2028. /* end confdefs.h. */
  2029. $4
  2030. int
  2031. main ()
  2032. {
  2033. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2034. test_array [0] = 0;
  2035. return test_array [0];
  2036. ;
  2037. return 0;
  2038. }
  2039. _ACEOF
  2040. if ac_fn_c_try_compile "$LINENO"; then :
  2041. ac_lo=$ac_mid; break
  2042. else
  2043. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2044. if test $ac_mid -le $ac_hi; then
  2045. ac_lo= ac_hi=
  2046. break
  2047. fi
  2048. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2049. fi
  2050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2051. done
  2052. else
  2053. ac_lo= ac_hi=
  2054. fi
  2055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2056. fi
  2057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2058. # Binary search between lo and hi bounds.
  2059. while test "x$ac_lo" != "x$ac_hi"; do
  2060. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2062. /* end confdefs.h. */
  2063. $4
  2064. int
  2065. main ()
  2066. {
  2067. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2068. test_array [0] = 0;
  2069. return test_array [0];
  2070. ;
  2071. return 0;
  2072. }
  2073. _ACEOF
  2074. if ac_fn_c_try_compile "$LINENO"; then :
  2075. ac_hi=$ac_mid
  2076. else
  2077. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2078. fi
  2079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2080. done
  2081. case $ac_lo in #((
  2082. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2083. '') ac_retval=1 ;;
  2084. esac
  2085. else
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $4
  2089. static long int longval () { return $2; }
  2090. static unsigned long int ulongval () { return $2; }
  2091. #include <stdio.h>
  2092. #include <stdlib.h>
  2093. int
  2094. main ()
  2095. {
  2096. FILE *f = fopen ("conftest.val", "w");
  2097. if (! f)
  2098. return 1;
  2099. if (($2) < 0)
  2100. {
  2101. long int i = longval ();
  2102. if (i != ($2))
  2103. return 1;
  2104. fprintf (f, "%ld", i);
  2105. }
  2106. else
  2107. {
  2108. unsigned long int i = ulongval ();
  2109. if (i != ($2))
  2110. return 1;
  2111. fprintf (f, "%lu", i);
  2112. }
  2113. /* Do not output a trailing newline, as this causes \r\n confusion
  2114. on some platforms. */
  2115. return ferror (f) || fclose (f) != 0;
  2116. ;
  2117. return 0;
  2118. }
  2119. _ACEOF
  2120. if ac_fn_c_try_run "$LINENO"; then :
  2121. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2122. else
  2123. ac_retval=1
  2124. fi
  2125. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2126. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2127. rm -f conftest.val
  2128. fi
  2129. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2130. as_fn_set_status $ac_retval
  2131. } # ac_fn_c_compute_int
  2132. # ac_fn_c_check_func LINENO FUNC VAR
  2133. # ----------------------------------
  2134. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2135. ac_fn_c_check_func ()
  2136. {
  2137. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2139. $as_echo_n "checking for $2... " >&6; }
  2140. if eval \${$3+:} false; then :
  2141. $as_echo_n "(cached) " >&6
  2142. else
  2143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2144. /* end confdefs.h. */
  2145. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2146. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2147. #define $2 innocuous_$2
  2148. /* System header to define __stub macros and hopefully few prototypes,
  2149. which can conflict with char $2 (); below.
  2150. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2151. <limits.h> exists even on freestanding compilers. */
  2152. #ifdef __STDC__
  2153. # include <limits.h>
  2154. #else
  2155. # include <assert.h>
  2156. #endif
  2157. #undef $2
  2158. /* Override any GCC internal prototype to avoid an error.
  2159. Use char because int might match the return type of a GCC
  2160. builtin and then its argument prototype would still apply. */
  2161. #ifdef __cplusplus
  2162. extern "C"
  2163. #endif
  2164. char $2 ();
  2165. /* The GNU C library defines this for functions which it implements
  2166. to always fail with ENOSYS. Some functions are actually named
  2167. something starting with __ and the normal name is an alias. */
  2168. #if defined __stub_$2 || defined __stub___$2
  2169. choke me
  2170. #endif
  2171. int
  2172. main ()
  2173. {
  2174. return $2 ();
  2175. ;
  2176. return 0;
  2177. }
  2178. _ACEOF
  2179. if ac_fn_c_try_link "$LINENO"; then :
  2180. eval "$3=yes"
  2181. else
  2182. eval "$3=no"
  2183. fi
  2184. rm -f core conftest.err conftest.$ac_objext \
  2185. conftest$ac_exeext conftest.$ac_ext
  2186. fi
  2187. eval ac_res=\$$3
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2189. $as_echo "$ac_res" >&6; }
  2190. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2191. } # ac_fn_c_check_func
  2192. # ac_fn_cxx_try_link LINENO
  2193. # -------------------------
  2194. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2195. ac_fn_cxx_try_link ()
  2196. {
  2197. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2198. rm -f conftest.$ac_objext conftest$ac_exeext
  2199. if { { ac_try="$ac_link"
  2200. case "(($ac_try" in
  2201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2202. *) ac_try_echo=$ac_try;;
  2203. esac
  2204. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2205. $as_echo "$ac_try_echo"; } >&5
  2206. (eval "$ac_link") 2>conftest.err
  2207. ac_status=$?
  2208. if test -s conftest.err; then
  2209. grep -v '^ *+' conftest.err >conftest.er1
  2210. cat conftest.er1 >&5
  2211. mv -f conftest.er1 conftest.err
  2212. fi
  2213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2214. test $ac_status = 0; } && {
  2215. test -z "$ac_cxx_werror_flag" ||
  2216. test ! -s conftest.err
  2217. } && test -s conftest$ac_exeext && {
  2218. test "$cross_compiling" = yes ||
  2219. test -x conftest$ac_exeext
  2220. }; then :
  2221. ac_retval=0
  2222. else
  2223. $as_echo "$as_me: failed program was:" >&5
  2224. sed 's/^/| /' conftest.$ac_ext >&5
  2225. ac_retval=1
  2226. fi
  2227. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2228. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2229. # interfere with the next link command; also delete a directory that is
  2230. # left behind by Apple's compiler. We do this before executing the actions.
  2231. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2232. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2233. as_fn_set_status $ac_retval
  2234. } # ac_fn_cxx_try_link
  2235. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2236. # -------------------------------------------
  2237. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2238. # variable VAR accordingly.
  2239. ac_fn_c_check_type ()
  2240. {
  2241. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2243. $as_echo_n "checking for $2... " >&6; }
  2244. if eval \${$3+:} false; then :
  2245. $as_echo_n "(cached) " >&6
  2246. else
  2247. eval "$3=no"
  2248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2249. /* end confdefs.h. */
  2250. $4
  2251. int
  2252. main ()
  2253. {
  2254. if (sizeof ($2))
  2255. return 0;
  2256. ;
  2257. return 0;
  2258. }
  2259. _ACEOF
  2260. if ac_fn_c_try_compile "$LINENO"; then :
  2261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2262. /* end confdefs.h. */
  2263. $4
  2264. int
  2265. main ()
  2266. {
  2267. if (sizeof (($2)))
  2268. return 0;
  2269. ;
  2270. return 0;
  2271. }
  2272. _ACEOF
  2273. if ac_fn_c_try_compile "$LINENO"; then :
  2274. else
  2275. eval "$3=yes"
  2276. fi
  2277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2278. fi
  2279. rm -f core conftest.err conftest.$ac_objext 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_type
  2286. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2287. # ---------------------------------------------
  2288. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2289. # accordingly.
  2290. ac_fn_c_check_decl ()
  2291. {
  2292. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2293. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2294. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2296. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2297. if eval \${$3+:} false; then :
  2298. $as_echo_n "(cached) " >&6
  2299. else
  2300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2301. /* end confdefs.h. */
  2302. $4
  2303. int
  2304. main ()
  2305. {
  2306. #ifndef $as_decl_name
  2307. #ifdef __cplusplus
  2308. (void) $as_decl_use;
  2309. #else
  2310. (void) $as_decl_name;
  2311. #endif
  2312. #endif
  2313. ;
  2314. return 0;
  2315. }
  2316. _ACEOF
  2317. if ac_fn_c_try_compile "$LINENO"; then :
  2318. eval "$3=yes"
  2319. else
  2320. eval "$3=no"
  2321. fi
  2322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2323. fi
  2324. eval ac_res=\$$3
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2326. $as_echo "$ac_res" >&6; }
  2327. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2328. } # ac_fn_c_check_decl
  2329. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2330. # ----------------------------------------------------
  2331. # Tries to find if the field MEMBER exists in type AGGR, after including
  2332. # INCLUDES, setting cache variable VAR accordingly.
  2333. ac_fn_c_check_member ()
  2334. {
  2335. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2337. $as_echo_n "checking for $2.$3... " >&6; }
  2338. if eval \${$4+:} false; then :
  2339. $as_echo_n "(cached) " >&6
  2340. else
  2341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2342. /* end confdefs.h. */
  2343. $5
  2344. int
  2345. main ()
  2346. {
  2347. static $2 ac_aggr;
  2348. if (ac_aggr.$3)
  2349. return 0;
  2350. ;
  2351. return 0;
  2352. }
  2353. _ACEOF
  2354. if ac_fn_c_try_compile "$LINENO"; then :
  2355. eval "$4=yes"
  2356. else
  2357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2358. /* end confdefs.h. */
  2359. $5
  2360. int
  2361. main ()
  2362. {
  2363. static $2 ac_aggr;
  2364. if (sizeof ac_aggr.$3)
  2365. return 0;
  2366. ;
  2367. return 0;
  2368. }
  2369. _ACEOF
  2370. if ac_fn_c_try_compile "$LINENO"; then :
  2371. eval "$4=yes"
  2372. else
  2373. eval "$4=no"
  2374. fi
  2375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2376. fi
  2377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2378. fi
  2379. eval ac_res=\$$4
  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_member
  2384. # ac_fn_cxx_check_func LINENO FUNC VAR
  2385. # ------------------------------------
  2386. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2387. ac_fn_cxx_check_func ()
  2388. {
  2389. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2391. $as_echo_n "checking for $2... " >&6; }
  2392. if eval \${$3+:} false; then :
  2393. $as_echo_n "(cached) " >&6
  2394. else
  2395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2396. /* end confdefs.h. */
  2397. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2398. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2399. #define $2 innocuous_$2
  2400. /* System header to define __stub macros and hopefully few prototypes,
  2401. which can conflict with char $2 (); below.
  2402. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2403. <limits.h> exists even on freestanding compilers. */
  2404. #ifdef __STDC__
  2405. # include <limits.h>
  2406. #else
  2407. # include <assert.h>
  2408. #endif
  2409. #undef $2
  2410. /* Override any GCC internal prototype to avoid an error.
  2411. Use char because int might match the return type of a GCC
  2412. builtin and then its argument prototype would still apply. */
  2413. #ifdef __cplusplus
  2414. extern "C"
  2415. #endif
  2416. char $2 ();
  2417. /* The GNU C library defines this for functions which it implements
  2418. to always fail with ENOSYS. Some functions are actually named
  2419. something starting with __ and the normal name is an alias. */
  2420. #if defined __stub_$2 || defined __stub___$2
  2421. choke me
  2422. #endif
  2423. int
  2424. main ()
  2425. {
  2426. return $2 ();
  2427. ;
  2428. return 0;
  2429. }
  2430. _ACEOF
  2431. if ac_fn_cxx_try_link "$LINENO"; then :
  2432. eval "$3=yes"
  2433. else
  2434. eval "$3=no"
  2435. fi
  2436. rm -f core conftest.err conftest.$ac_objext \
  2437. conftest$ac_exeext conftest.$ac_ext
  2438. fi
  2439. eval ac_res=\$$3
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2441. $as_echo "$ac_res" >&6; }
  2442. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2443. } # ac_fn_cxx_check_func
  2444. cat >config.log <<_ACEOF
  2445. This file contains any messages produced by compilers while
  2446. running configure, to aid debugging if configure makes a mistake.
  2447. It was created by $as_me, which was
  2448. generated by GNU Autoconf 2.69. Invocation command line was
  2449. $ $0 $@
  2450. _ACEOF
  2451. exec 5>>config.log
  2452. {
  2453. cat <<_ASUNAME
  2454. ## --------- ##
  2455. ## Platform. ##
  2456. ## --------- ##
  2457. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2458. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2459. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2460. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2461. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2462. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2463. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2464. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2465. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2466. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2467. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2468. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2469. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2470. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2471. _ASUNAME
  2472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2473. for as_dir in $PATH
  2474. do
  2475. IFS=$as_save_IFS
  2476. test -z "$as_dir" && as_dir=.
  2477. $as_echo "PATH: $as_dir"
  2478. done
  2479. IFS=$as_save_IFS
  2480. } >&5
  2481. cat >&5 <<_ACEOF
  2482. ## ----------- ##
  2483. ## Core tests. ##
  2484. ## ----------- ##
  2485. _ACEOF
  2486. # Keep a trace of the command line.
  2487. # Strip out --no-create and --no-recursion so they do not pile up.
  2488. # Strip out --silent because we don't want to record it for future runs.
  2489. # Also quote any args containing shell meta-characters.
  2490. # Make two passes to allow for proper duplicate-argument suppression.
  2491. ac_configure_args=
  2492. ac_configure_args0=
  2493. ac_configure_args1=
  2494. ac_must_keep_next=false
  2495. for ac_pass in 1 2
  2496. do
  2497. for ac_arg
  2498. do
  2499. case $ac_arg in
  2500. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2501. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2502. | -silent | --silent | --silen | --sile | --sil)
  2503. continue ;;
  2504. *\'*)
  2505. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2506. esac
  2507. case $ac_pass in
  2508. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2509. 2)
  2510. as_fn_append ac_configure_args1 " '$ac_arg'"
  2511. if test $ac_must_keep_next = true; then
  2512. ac_must_keep_next=false # Got value, back to normal.
  2513. else
  2514. case $ac_arg in
  2515. *=* | --config-cache | -C | -disable-* | --disable-* \
  2516. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2517. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2518. | -with-* | --with-* | -without-* | --without-* | --x)
  2519. case "$ac_configure_args0 " in
  2520. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2521. esac
  2522. ;;
  2523. -* ) ac_must_keep_next=true ;;
  2524. esac
  2525. fi
  2526. as_fn_append ac_configure_args " '$ac_arg'"
  2527. ;;
  2528. esac
  2529. done
  2530. done
  2531. { ac_configure_args0=; unset ac_configure_args0;}
  2532. { ac_configure_args1=; unset ac_configure_args1;}
  2533. # When interrupted or exit'd, cleanup temporary files, and complete
  2534. # config.log. We remove comments because anyway the quotes in there
  2535. # would cause problems or look ugly.
  2536. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2537. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2538. trap 'exit_status=$?
  2539. # Save into config.log some information that might help in debugging.
  2540. {
  2541. echo
  2542. $as_echo "## ---------------- ##
  2543. ## Cache variables. ##
  2544. ## ---------------- ##"
  2545. echo
  2546. # The following way of writing the cache mishandles newlines in values,
  2547. (
  2548. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2549. eval ac_val=\$$ac_var
  2550. case $ac_val in #(
  2551. *${as_nl}*)
  2552. case $ac_var in #(
  2553. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2554. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2555. esac
  2556. case $ac_var in #(
  2557. _ | IFS | as_nl) ;; #(
  2558. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2559. *) { eval $ac_var=; unset $ac_var;} ;;
  2560. esac ;;
  2561. esac
  2562. done
  2563. (set) 2>&1 |
  2564. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2565. *${as_nl}ac_space=\ *)
  2566. sed -n \
  2567. "s/'\''/'\''\\\\'\'''\''/g;
  2568. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2569. ;; #(
  2570. *)
  2571. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2572. ;;
  2573. esac |
  2574. sort
  2575. )
  2576. echo
  2577. $as_echo "## ----------------- ##
  2578. ## Output variables. ##
  2579. ## ----------------- ##"
  2580. echo
  2581. for ac_var in $ac_subst_vars
  2582. do
  2583. eval ac_val=\$$ac_var
  2584. case $ac_val in
  2585. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2586. esac
  2587. $as_echo "$ac_var='\''$ac_val'\''"
  2588. done | sort
  2589. echo
  2590. if test -n "$ac_subst_files"; then
  2591. $as_echo "## ------------------- ##
  2592. ## File substitutions. ##
  2593. ## ------------------- ##"
  2594. echo
  2595. for ac_var in $ac_subst_files
  2596. do
  2597. eval ac_val=\$$ac_var
  2598. case $ac_val in
  2599. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2600. esac
  2601. $as_echo "$ac_var='\''$ac_val'\''"
  2602. done | sort
  2603. echo
  2604. fi
  2605. if test -s confdefs.h; then
  2606. $as_echo "## ----------- ##
  2607. ## confdefs.h. ##
  2608. ## ----------- ##"
  2609. echo
  2610. cat confdefs.h
  2611. echo
  2612. fi
  2613. test "$ac_signal" != 0 &&
  2614. $as_echo "$as_me: caught signal $ac_signal"
  2615. $as_echo "$as_me: exit $exit_status"
  2616. } >&5
  2617. rm -f core *.core core.conftest.* &&
  2618. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2619. exit $exit_status
  2620. ' 0
  2621. for ac_signal in 1 2 13 15; do
  2622. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2623. done
  2624. ac_signal=0
  2625. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2626. rm -f -r conftest* confdefs.h
  2627. $as_echo "/* confdefs.h */" > confdefs.h
  2628. # Predefined preprocessor variables.
  2629. cat >>confdefs.h <<_ACEOF
  2630. #define PACKAGE_NAME "$PACKAGE_NAME"
  2631. _ACEOF
  2632. cat >>confdefs.h <<_ACEOF
  2633. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2634. _ACEOF
  2635. cat >>confdefs.h <<_ACEOF
  2636. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2637. _ACEOF
  2638. cat >>confdefs.h <<_ACEOF
  2639. #define PACKAGE_STRING "$PACKAGE_STRING"
  2640. _ACEOF
  2641. cat >>confdefs.h <<_ACEOF
  2642. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2643. _ACEOF
  2644. cat >>confdefs.h <<_ACEOF
  2645. #define PACKAGE_URL "$PACKAGE_URL"
  2646. _ACEOF
  2647. # Let the site file select an alternate cache file if it wants to.
  2648. # Prefer an explicitly selected file to automatically selected ones.
  2649. ac_site_file1=NONE
  2650. ac_site_file2=NONE
  2651. if test -n "$CONFIG_SITE"; then
  2652. # We do not want a PATH search for config.site.
  2653. case $CONFIG_SITE in #((
  2654. -*) ac_site_file1=./$CONFIG_SITE;;
  2655. */*) ac_site_file1=$CONFIG_SITE;;
  2656. *) ac_site_file1=./$CONFIG_SITE;;
  2657. esac
  2658. elif test "x$prefix" != xNONE; then
  2659. ac_site_file1=$prefix/share/config.site
  2660. ac_site_file2=$prefix/etc/config.site
  2661. else
  2662. ac_site_file1=$ac_default_prefix/share/config.site
  2663. ac_site_file2=$ac_default_prefix/etc/config.site
  2664. fi
  2665. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2666. do
  2667. test "x$ac_site_file" = xNONE && continue
  2668. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2670. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2671. sed 's/^/| /' "$ac_site_file" >&5
  2672. . "$ac_site_file" \
  2673. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2674. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2675. as_fn_error $? "failed to load site script $ac_site_file
  2676. See \`config.log' for more details" "$LINENO" 5; }
  2677. fi
  2678. done
  2679. if test -r "$cache_file"; then
  2680. # Some versions of bash will fail to source /dev/null (special files
  2681. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2682. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2684. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2685. case $cache_file in
  2686. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2687. *) . "./$cache_file";;
  2688. esac
  2689. fi
  2690. else
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2692. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2693. >$cache_file
  2694. fi
  2695. as_fn_append ac_header_list " stdlib.h"
  2696. as_fn_append ac_header_list " unistd.h"
  2697. as_fn_append ac_header_list " sys/param.h"
  2698. # Check that the precious variables saved in the cache have kept the same
  2699. # value.
  2700. ac_cache_corrupted=false
  2701. for ac_var in $ac_precious_vars; do
  2702. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2703. eval ac_new_set=\$ac_env_${ac_var}_set
  2704. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2705. eval ac_new_val=\$ac_env_${ac_var}_value
  2706. case $ac_old_set,$ac_new_set in
  2707. set,)
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2709. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2710. ac_cache_corrupted=: ;;
  2711. ,set)
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2713. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2714. ac_cache_corrupted=: ;;
  2715. ,);;
  2716. *)
  2717. if test "x$ac_old_val" != "x$ac_new_val"; then
  2718. # differences in whitespace do not lead to failure.
  2719. ac_old_val_w=`echo x $ac_old_val`
  2720. ac_new_val_w=`echo x $ac_new_val`
  2721. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2723. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2724. ac_cache_corrupted=:
  2725. else
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2727. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2728. eval $ac_var=\$ac_old_val
  2729. fi
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2731. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2733. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2734. fi;;
  2735. esac
  2736. # Pass precious variables to config.status.
  2737. if test "$ac_new_set" = set; then
  2738. case $ac_new_val in
  2739. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2740. *) ac_arg=$ac_var=$ac_new_val ;;
  2741. esac
  2742. case " $ac_configure_args " in
  2743. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2744. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2745. esac
  2746. fi
  2747. done
  2748. if $ac_cache_corrupted; then
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2750. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2752. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2753. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2754. fi
  2755. ## -------------------- ##
  2756. ## Main body of script. ##
  2757. ## -------------------- ##
  2758. ac_ext=c
  2759. ac_cpp='$CPP $CPPFLAGS'
  2760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2763. ac_config_headers="$ac_config_headers config.h:config.in"
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2765. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2766. # Check whether --enable-maintainer-mode was given.
  2767. if test "${enable_maintainer_mode+set}" = set; then :
  2768. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2769. else
  2770. USE_MAINTAINER_MODE=no
  2771. fi
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2773. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2774. if test $USE_MAINTAINER_MODE = yes; then
  2775. MAINTAINER_MODE_TRUE=
  2776. MAINTAINER_MODE_FALSE='#'
  2777. else
  2778. MAINTAINER_MODE_TRUE='#'
  2779. MAINTAINER_MODE_FALSE=
  2780. fi
  2781. MAINT=$MAINTAINER_MODE_TRUE
  2782. ac_ext=c
  2783. ac_cpp='$CPP $CPPFLAGS'
  2784. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2785. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2786. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2787. if test -n "$ac_tool_prefix"; then
  2788. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2789. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if ${ac_cv_prog_CC+:} false; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$CC"; then
  2796. ac_cv_prog_CC="$CC" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. CC=$ac_cv_prog_CC
  2815. if test -n "$CC"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2817. $as_echo "$CC" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. fi
  2823. if test -z "$ac_cv_prog_CC"; then
  2824. ac_ct_CC=$CC
  2825. # Extract the first word of "gcc", so it can be a program name with args.
  2826. set dummy gcc; ac_word=$2
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2828. $as_echo_n "checking for $ac_word... " >&6; }
  2829. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. if test -n "$ac_ct_CC"; then
  2833. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2834. else
  2835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2836. for as_dir in $PATH
  2837. do
  2838. IFS=$as_save_IFS
  2839. test -z "$as_dir" && as_dir=.
  2840. for ac_exec_ext in '' $ac_executable_extensions; do
  2841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2842. ac_cv_prog_ac_ct_CC="gcc"
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2844. break 2
  2845. fi
  2846. done
  2847. done
  2848. IFS=$as_save_IFS
  2849. fi
  2850. fi
  2851. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2852. if test -n "$ac_ct_CC"; then
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2854. $as_echo "$ac_ct_CC" >&6; }
  2855. else
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2857. $as_echo "no" >&6; }
  2858. fi
  2859. if test "x$ac_ct_CC" = x; then
  2860. CC=""
  2861. else
  2862. case $cross_compiling:$ac_tool_warned in
  2863. yes:)
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2866. ac_tool_warned=yes ;;
  2867. esac
  2868. CC=$ac_ct_CC
  2869. fi
  2870. else
  2871. CC="$ac_cv_prog_CC"
  2872. fi
  2873. if test -z "$CC"; then
  2874. if test -n "$ac_tool_prefix"; then
  2875. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2876. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2878. $as_echo_n "checking for $ac_word... " >&6; }
  2879. if ${ac_cv_prog_CC+:} false; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. if test -n "$CC"; then
  2883. ac_cv_prog_CC="$CC" # Let the user override the test.
  2884. else
  2885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2886. for as_dir in $PATH
  2887. do
  2888. IFS=$as_save_IFS
  2889. test -z "$as_dir" && as_dir=.
  2890. for ac_exec_ext in '' $ac_executable_extensions; do
  2891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2892. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2894. break 2
  2895. fi
  2896. done
  2897. done
  2898. IFS=$as_save_IFS
  2899. fi
  2900. fi
  2901. CC=$ac_cv_prog_CC
  2902. if test -n "$CC"; then
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2904. $as_echo "$CC" >&6; }
  2905. else
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2907. $as_echo "no" >&6; }
  2908. fi
  2909. fi
  2910. fi
  2911. if test -z "$CC"; then
  2912. # Extract the first word of "cc", so it can be a program name with args.
  2913. set dummy cc; ac_word=$2
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2915. $as_echo_n "checking for $ac_word... " >&6; }
  2916. if ${ac_cv_prog_CC+:} false; then :
  2917. $as_echo_n "(cached) " >&6
  2918. else
  2919. if test -n "$CC"; then
  2920. ac_cv_prog_CC="$CC" # Let the user override the test.
  2921. else
  2922. ac_prog_rejected=no
  2923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2924. for as_dir in $PATH
  2925. do
  2926. IFS=$as_save_IFS
  2927. test -z "$as_dir" && as_dir=.
  2928. for ac_exec_ext in '' $ac_executable_extensions; do
  2929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2930. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2931. ac_prog_rejected=yes
  2932. continue
  2933. fi
  2934. ac_cv_prog_CC="cc"
  2935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2936. break 2
  2937. fi
  2938. done
  2939. done
  2940. IFS=$as_save_IFS
  2941. if test $ac_prog_rejected = yes; then
  2942. # We found a bogon in the path, so make sure we never use it.
  2943. set dummy $ac_cv_prog_CC
  2944. shift
  2945. if test $# != 0; then
  2946. # We chose a different compiler from the bogus one.
  2947. # However, it has the same basename, so the bogon will be chosen
  2948. # first if we set CC to just the basename; use the full file name.
  2949. shift
  2950. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2951. fi
  2952. fi
  2953. fi
  2954. fi
  2955. CC=$ac_cv_prog_CC
  2956. if test -n "$CC"; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2958. $as_echo "$CC" >&6; }
  2959. else
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2961. $as_echo "no" >&6; }
  2962. fi
  2963. fi
  2964. if test -z "$CC"; then
  2965. if test -n "$ac_tool_prefix"; then
  2966. for ac_prog in cl.exe
  2967. do
  2968. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2969. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2971. $as_echo_n "checking for $ac_word... " >&6; }
  2972. if ${ac_cv_prog_CC+:} false; then :
  2973. $as_echo_n "(cached) " >&6
  2974. else
  2975. if test -n "$CC"; then
  2976. ac_cv_prog_CC="$CC" # Let the user override the test.
  2977. else
  2978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2979. for as_dir in $PATH
  2980. do
  2981. IFS=$as_save_IFS
  2982. test -z "$as_dir" && as_dir=.
  2983. for ac_exec_ext in '' $ac_executable_extensions; do
  2984. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2985. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2987. break 2
  2988. fi
  2989. done
  2990. done
  2991. IFS=$as_save_IFS
  2992. fi
  2993. fi
  2994. CC=$ac_cv_prog_CC
  2995. if test -n "$CC"; then
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2997. $as_echo "$CC" >&6; }
  2998. else
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3000. $as_echo "no" >&6; }
  3001. fi
  3002. test -n "$CC" && break
  3003. done
  3004. fi
  3005. if test -z "$CC"; then
  3006. ac_ct_CC=$CC
  3007. for ac_prog in cl.exe
  3008. do
  3009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3010. set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
  3014. $as_echo_n "(cached) " >&6
  3015. else
  3016. if test -n "$ac_ct_CC"; then
  3017. ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
  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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3036. if test -n "$ac_ct_CC"; then
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3038. $as_echo "$ac_ct_CC" >&6; }
  3039. else
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3041. $as_echo "no" >&6; }
  3042. fi
  3043. test -n "$ac_ct_CC" && break
  3044. done
  3045. if test "x$ac_ct_CC" = x; then
  3046. CC=""
  3047. else
  3048. case $cross_compiling:$ac_tool_warned in
  3049. yes:)
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3051. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3052. ac_tool_warned=yes ;;
  3053. esac
  3054. CC=$ac_ct_CC
  3055. fi
  3056. fi
  3057. fi
  3058. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3059. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3060. as_fn_error $? "no acceptable C compiler found in \$PATH
  3061. See \`config.log' for more details" "$LINENO" 5; }
  3062. # Provide some information about the compiler.
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3064. set X $ac_compile
  3065. ac_compiler=$2
  3066. for ac_option in --version -v -V -qversion; do
  3067. { { ac_try="$ac_compiler $ac_option >&5"
  3068. case "(($ac_try" in
  3069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3070. *) ac_try_echo=$ac_try;;
  3071. esac
  3072. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3073. $as_echo "$ac_try_echo"; } >&5
  3074. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3075. ac_status=$?
  3076. if test -s conftest.err; then
  3077. sed '10a\
  3078. ... rest of stderr output deleted ...
  3079. 10q' conftest.err >conftest.er1
  3080. cat conftest.er1 >&5
  3081. fi
  3082. rm -f conftest.er1 conftest.err
  3083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3084. test $ac_status = 0; }
  3085. done
  3086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3087. /* end confdefs.h. */
  3088. int
  3089. main ()
  3090. {
  3091. ;
  3092. return 0;
  3093. }
  3094. _ACEOF
  3095. ac_clean_files_save=$ac_clean_files
  3096. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3097. # Try to create an executable without -o first, disregard a.out.
  3098. # It will help us diagnose broken compilers, and finding out an intuition
  3099. # of exeext.
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3101. $as_echo_n "checking whether the C compiler works... " >&6; }
  3102. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3103. # The possible output files:
  3104. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3105. ac_rmfiles=
  3106. for ac_file in $ac_files
  3107. do
  3108. case $ac_file in
  3109. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3110. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3111. esac
  3112. done
  3113. rm -f $ac_rmfiles
  3114. if { { ac_try="$ac_link_default"
  3115. case "(($ac_try" in
  3116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3117. *) ac_try_echo=$ac_try;;
  3118. esac
  3119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3120. $as_echo "$ac_try_echo"; } >&5
  3121. (eval "$ac_link_default") 2>&5
  3122. ac_status=$?
  3123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3124. test $ac_status = 0; }; then :
  3125. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3126. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3127. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3128. # so that the user can short-circuit this test for compilers unknown to
  3129. # Autoconf.
  3130. for ac_file in $ac_files ''
  3131. do
  3132. test -f "$ac_file" || continue
  3133. case $ac_file in
  3134. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3135. ;;
  3136. [ab].out )
  3137. # We found the default executable, but exeext='' is most
  3138. # certainly right.
  3139. break;;
  3140. *.* )
  3141. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3142. then :; else
  3143. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3144. fi
  3145. # We set ac_cv_exeext here because the later test for it is not
  3146. # safe: cross compilers may not add the suffix if given an `-o'
  3147. # argument, so we may need to know it at that point already.
  3148. # Even if this section looks crufty: it has the advantage of
  3149. # actually working.
  3150. break;;
  3151. * )
  3152. break;;
  3153. esac
  3154. done
  3155. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3156. else
  3157. ac_file=''
  3158. fi
  3159. if test -z "$ac_file"; then :
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3161. $as_echo "no" >&6; }
  3162. $as_echo "$as_me: failed program was:" >&5
  3163. sed 's/^/| /' conftest.$ac_ext >&5
  3164. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3166. as_fn_error 77 "C compiler cannot create executables
  3167. See \`config.log' for more details" "$LINENO" 5; }
  3168. else
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3170. $as_echo "yes" >&6; }
  3171. fi
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3173. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3175. $as_echo "$ac_file" >&6; }
  3176. ac_exeext=$ac_cv_exeext
  3177. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3178. ac_clean_files=$ac_clean_files_save
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3180. $as_echo_n "checking for suffix of executables... " >&6; }
  3181. if { { ac_try="$ac_link"
  3182. case "(($ac_try" in
  3183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3184. *) ac_try_echo=$ac_try;;
  3185. esac
  3186. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3187. $as_echo "$ac_try_echo"; } >&5
  3188. (eval "$ac_link") 2>&5
  3189. ac_status=$?
  3190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3191. test $ac_status = 0; }; then :
  3192. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3193. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3194. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3195. # `rm'.
  3196. for ac_file in conftest.exe conftest conftest.*; do
  3197. test -f "$ac_file" || continue
  3198. case $ac_file in
  3199. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3200. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3201. break;;
  3202. * ) break;;
  3203. esac
  3204. done
  3205. else
  3206. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3208. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3209. See \`config.log' for more details" "$LINENO" 5; }
  3210. fi
  3211. rm -f conftest conftest$ac_cv_exeext
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3213. $as_echo "$ac_cv_exeext" >&6; }
  3214. rm -f conftest.$ac_ext
  3215. EXEEXT=$ac_cv_exeext
  3216. ac_exeext=$EXEEXT
  3217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3218. /* end confdefs.h. */
  3219. #include <stdio.h>
  3220. int
  3221. main ()
  3222. {
  3223. FILE *f = fopen ("conftest.out", "w");
  3224. return ferror (f) || fclose (f) != 0;
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. ac_clean_files="$ac_clean_files conftest.out"
  3230. # Check that the compiler produces executables we can run. If not, either
  3231. # the compiler is broken, or we cross compile.
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3233. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3234. if test "$cross_compiling" != yes; then
  3235. { { ac_try="$ac_link"
  3236. case "(($ac_try" in
  3237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3238. *) ac_try_echo=$ac_try;;
  3239. esac
  3240. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3241. $as_echo "$ac_try_echo"; } >&5
  3242. (eval "$ac_link") 2>&5
  3243. ac_status=$?
  3244. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3245. test $ac_status = 0; }
  3246. if { ac_try='./conftest$ac_cv_exeext'
  3247. { { case "(($ac_try" in
  3248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3249. *) ac_try_echo=$ac_try;;
  3250. esac
  3251. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3252. $as_echo "$ac_try_echo"; } >&5
  3253. (eval "$ac_try") 2>&5
  3254. ac_status=$?
  3255. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3256. test $ac_status = 0; }; }; then
  3257. cross_compiling=no
  3258. else
  3259. if test "$cross_compiling" = maybe; then
  3260. cross_compiling=yes
  3261. else
  3262. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3264. as_fn_error $? "cannot run C compiled programs.
  3265. If you meant to cross compile, use \`--host'.
  3266. See \`config.log' for more details" "$LINENO" 5; }
  3267. fi
  3268. fi
  3269. fi
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3271. $as_echo "$cross_compiling" >&6; }
  3272. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3273. ac_clean_files=$ac_clean_files_save
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3275. $as_echo_n "checking for suffix of object files... " >&6; }
  3276. if ${ac_cv_objext+:} false; then :
  3277. $as_echo_n "(cached) " >&6
  3278. else
  3279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3280. /* end confdefs.h. */
  3281. int
  3282. main ()
  3283. {
  3284. ;
  3285. return 0;
  3286. }
  3287. _ACEOF
  3288. rm -f conftest.o conftest.obj
  3289. if { { ac_try="$ac_compile"
  3290. case "(($ac_try" in
  3291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3292. *) ac_try_echo=$ac_try;;
  3293. esac
  3294. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3295. $as_echo "$ac_try_echo"; } >&5
  3296. (eval "$ac_compile") 2>&5
  3297. ac_status=$?
  3298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3299. test $ac_status = 0; }; then :
  3300. for ac_file in conftest.o conftest.obj conftest.*; do
  3301. test -f "$ac_file" || continue;
  3302. case $ac_file in
  3303. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3304. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3305. break;;
  3306. esac
  3307. done
  3308. else
  3309. $as_echo "$as_me: failed program was:" >&5
  3310. sed 's/^/| /' conftest.$ac_ext >&5
  3311. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3312. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3313. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3314. See \`config.log' for more details" "$LINENO" 5; }
  3315. fi
  3316. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3317. fi
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3319. $as_echo "$ac_cv_objext" >&6; }
  3320. OBJEXT=$ac_cv_objext
  3321. ac_objext=$OBJEXT
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3323. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3324. if ${ac_cv_c_compiler_gnu+:} false; then :
  3325. $as_echo_n "(cached) " >&6
  3326. else
  3327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3328. /* end confdefs.h. */
  3329. int
  3330. main ()
  3331. {
  3332. #ifndef __GNUC__
  3333. choke me
  3334. #endif
  3335. ;
  3336. return 0;
  3337. }
  3338. _ACEOF
  3339. if ac_fn_c_try_compile "$LINENO"; then :
  3340. ac_compiler_gnu=yes
  3341. else
  3342. ac_compiler_gnu=no
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3346. fi
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3348. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3349. if test $ac_compiler_gnu = yes; then
  3350. GCC=yes
  3351. else
  3352. GCC=
  3353. fi
  3354. ac_test_CFLAGS=${CFLAGS+set}
  3355. ac_save_CFLAGS=$CFLAGS
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3357. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3358. if ${ac_cv_prog_cc_g+:} false; then :
  3359. $as_echo_n "(cached) " >&6
  3360. else
  3361. ac_save_c_werror_flag=$ac_c_werror_flag
  3362. ac_c_werror_flag=yes
  3363. ac_cv_prog_cc_g=no
  3364. CFLAGS="-g"
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. int
  3368. main ()
  3369. {
  3370. ;
  3371. return 0;
  3372. }
  3373. _ACEOF
  3374. if ac_fn_c_try_compile "$LINENO"; then :
  3375. ac_cv_prog_cc_g=yes
  3376. else
  3377. CFLAGS=""
  3378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3379. /* end confdefs.h. */
  3380. int
  3381. main ()
  3382. {
  3383. ;
  3384. return 0;
  3385. }
  3386. _ACEOF
  3387. if ac_fn_c_try_compile "$LINENO"; then :
  3388. else
  3389. ac_c_werror_flag=$ac_save_c_werror_flag
  3390. CFLAGS="-g"
  3391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3392. /* end confdefs.h. */
  3393. int
  3394. main ()
  3395. {
  3396. ;
  3397. return 0;
  3398. }
  3399. _ACEOF
  3400. if ac_fn_c_try_compile "$LINENO"; then :
  3401. ac_cv_prog_cc_g=yes
  3402. fi
  3403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3404. fi
  3405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3406. fi
  3407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3408. ac_c_werror_flag=$ac_save_c_werror_flag
  3409. fi
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3411. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3412. if test "$ac_test_CFLAGS" = set; then
  3413. CFLAGS=$ac_save_CFLAGS
  3414. elif test $ac_cv_prog_cc_g = yes; then
  3415. if test "$GCC" = yes; then
  3416. CFLAGS="-g -O2"
  3417. else
  3418. CFLAGS="-g"
  3419. fi
  3420. else
  3421. if test "$GCC" = yes; then
  3422. CFLAGS="-O2"
  3423. else
  3424. CFLAGS=
  3425. fi
  3426. fi
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3428. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3429. if ${ac_cv_prog_cc_c89+:} false; then :
  3430. $as_echo_n "(cached) " >&6
  3431. else
  3432. ac_cv_prog_cc_c89=no
  3433. ac_save_CC=$CC
  3434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3435. /* end confdefs.h. */
  3436. #include <stdarg.h>
  3437. #include <stdio.h>
  3438. struct stat;
  3439. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3440. struct buf { int x; };
  3441. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3442. static char *e (p, i)
  3443. char **p;
  3444. int i;
  3445. {
  3446. return p[i];
  3447. }
  3448. static char *f (char * (*g) (char **, int), char **p, ...)
  3449. {
  3450. char *s;
  3451. va_list v;
  3452. va_start (v,p);
  3453. s = g (p, va_arg (v,int));
  3454. va_end (v);
  3455. return s;
  3456. }
  3457. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3458. function prototypes and stuff, but not '\xHH' hex character constants.
  3459. These don't provoke an error unfortunately, instead are silently treated
  3460. as 'x'. The following induces an error, until -std is added to get
  3461. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3462. array size at least. It's necessary to write '\x00'==0 to get something
  3463. that's true only with -std. */
  3464. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3465. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3466. inside strings and character constants. */
  3467. #define FOO(x) 'x'
  3468. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3469. int test (int i, double x);
  3470. struct s1 {int (*f) (int a);};
  3471. struct s2 {int (*f) (double a);};
  3472. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3473. int argc;
  3474. char **argv;
  3475. int
  3476. main ()
  3477. {
  3478. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3479. ;
  3480. return 0;
  3481. }
  3482. _ACEOF
  3483. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3484. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3485. do
  3486. CC="$ac_save_CC $ac_arg"
  3487. if ac_fn_c_try_compile "$LINENO"; then :
  3488. ac_cv_prog_cc_c89=$ac_arg
  3489. fi
  3490. rm -f core conftest.err conftest.$ac_objext
  3491. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3492. done
  3493. rm -f conftest.$ac_ext
  3494. CC=$ac_save_CC
  3495. fi
  3496. # AC_CACHE_VAL
  3497. case "x$ac_cv_prog_cc_c89" in
  3498. x)
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3500. $as_echo "none needed" >&6; } ;;
  3501. xno)
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3503. $as_echo "unsupported" >&6; } ;;
  3504. *)
  3505. CC="$CC $ac_cv_prog_cc_c89"
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3507. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3508. esac
  3509. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3510. fi
  3511. ac_ext=c
  3512. ac_cpp='$CPP $CPPFLAGS'
  3513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3516. ac_ext=cpp
  3517. ac_cpp='$CXXCPP $CPPFLAGS'
  3518. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3519. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3520. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3521. if test -z "$CXX"; then
  3522. if test -n "$CCC"; then
  3523. CXX=$CCC
  3524. else
  3525. if test -n "$ac_tool_prefix"; then
  3526. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3527. do
  3528. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3529. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3531. $as_echo_n "checking for $ac_word... " >&6; }
  3532. if ${ac_cv_prog_CXX+:} false; then :
  3533. $as_echo_n "(cached) " >&6
  3534. else
  3535. if test -n "$CXX"; then
  3536. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3537. else
  3538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3539. for as_dir in $PATH
  3540. do
  3541. IFS=$as_save_IFS
  3542. test -z "$as_dir" && as_dir=.
  3543. for ac_exec_ext in '' $ac_executable_extensions; do
  3544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3545. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3547. break 2
  3548. fi
  3549. done
  3550. done
  3551. IFS=$as_save_IFS
  3552. fi
  3553. fi
  3554. CXX=$ac_cv_prog_CXX
  3555. if test -n "$CXX"; then
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3557. $as_echo "$CXX" >&6; }
  3558. else
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3560. $as_echo "no" >&6; }
  3561. fi
  3562. test -n "$CXX" && break
  3563. done
  3564. fi
  3565. if test -z "$CXX"; then
  3566. ac_ct_CXX=$CXX
  3567. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3568. do
  3569. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3570. set dummy $ac_prog; ac_word=$2
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3572. $as_echo_n "checking for $ac_word... " >&6; }
  3573. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3574. $as_echo_n "(cached) " >&6
  3575. else
  3576. if test -n "$ac_ct_CXX"; then
  3577. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3578. else
  3579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3580. for as_dir in $PATH
  3581. do
  3582. IFS=$as_save_IFS
  3583. test -z "$as_dir" && as_dir=.
  3584. for ac_exec_ext in '' $ac_executable_extensions; do
  3585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3586. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3588. break 2
  3589. fi
  3590. done
  3591. done
  3592. IFS=$as_save_IFS
  3593. fi
  3594. fi
  3595. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3596. if test -n "$ac_ct_CXX"; then
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3598. $as_echo "$ac_ct_CXX" >&6; }
  3599. else
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3601. $as_echo "no" >&6; }
  3602. fi
  3603. test -n "$ac_ct_CXX" && break
  3604. done
  3605. if test "x$ac_ct_CXX" = x; then
  3606. CXX="g++"
  3607. else
  3608. case $cross_compiling:$ac_tool_warned in
  3609. yes:)
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3612. ac_tool_warned=yes ;;
  3613. esac
  3614. CXX=$ac_ct_CXX
  3615. fi
  3616. fi
  3617. fi
  3618. fi
  3619. # Provide some information about the compiler.
  3620. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3621. set X $ac_compile
  3622. ac_compiler=$2
  3623. for ac_option in --version -v -V -qversion; do
  3624. { { ac_try="$ac_compiler $ac_option >&5"
  3625. case "(($ac_try" in
  3626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3627. *) ac_try_echo=$ac_try;;
  3628. esac
  3629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3630. $as_echo "$ac_try_echo"; } >&5
  3631. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3632. ac_status=$?
  3633. if test -s conftest.err; then
  3634. sed '10a\
  3635. ... rest of stderr output deleted ...
  3636. 10q' conftest.err >conftest.er1
  3637. cat conftest.er1 >&5
  3638. fi
  3639. rm -f conftest.er1 conftest.err
  3640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3641. test $ac_status = 0; }
  3642. done
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3644. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3645. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3649. /* end confdefs.h. */
  3650. int
  3651. main ()
  3652. {
  3653. #ifndef __GNUC__
  3654. choke me
  3655. #endif
  3656. ;
  3657. return 0;
  3658. }
  3659. _ACEOF
  3660. if ac_fn_cxx_try_compile "$LINENO"; then :
  3661. ac_compiler_gnu=yes
  3662. else
  3663. ac_compiler_gnu=no
  3664. fi
  3665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3666. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3667. fi
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3669. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3670. if test $ac_compiler_gnu = yes; then
  3671. GXX=yes
  3672. else
  3673. GXX=
  3674. fi
  3675. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3676. ac_save_CXXFLAGS=$CXXFLAGS
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3678. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3679. if ${ac_cv_prog_cxx_g+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3683. ac_cxx_werror_flag=yes
  3684. ac_cv_prog_cxx_g=no
  3685. CXXFLAGS="-g"
  3686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3687. /* end confdefs.h. */
  3688. int
  3689. main ()
  3690. {
  3691. ;
  3692. return 0;
  3693. }
  3694. _ACEOF
  3695. if ac_fn_cxx_try_compile "$LINENO"; then :
  3696. ac_cv_prog_cxx_g=yes
  3697. else
  3698. CXXFLAGS=""
  3699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3700. /* end confdefs.h. */
  3701. int
  3702. main ()
  3703. {
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. if ac_fn_cxx_try_compile "$LINENO"; then :
  3709. else
  3710. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3711. CXXFLAGS="-g"
  3712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3713. /* end confdefs.h. */
  3714. int
  3715. main ()
  3716. {
  3717. ;
  3718. return 0;
  3719. }
  3720. _ACEOF
  3721. if ac_fn_cxx_try_compile "$LINENO"; then :
  3722. ac_cv_prog_cxx_g=yes
  3723. fi
  3724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3725. fi
  3726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3727. fi
  3728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3729. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3730. fi
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3732. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3733. if test "$ac_test_CXXFLAGS" = set; then
  3734. CXXFLAGS=$ac_save_CXXFLAGS
  3735. elif test $ac_cv_prog_cxx_g = yes; then
  3736. if test "$GXX" = yes; then
  3737. CXXFLAGS="-g -O2"
  3738. else
  3739. CXXFLAGS="-g"
  3740. fi
  3741. else
  3742. if test "$GXX" = yes; then
  3743. CXXFLAGS="-O2"
  3744. else
  3745. CXXFLAGS=
  3746. fi
  3747. fi
  3748. ac_ext=c
  3749. ac_cpp='$CPP $CPPFLAGS'
  3750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3753. ac_ext=c
  3754. ac_cpp='$CPP $CPPFLAGS'
  3755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3759. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3760. # On Suns, sometimes $CPP names a directory.
  3761. if test -n "$CPP" && test -d "$CPP"; then
  3762. CPP=
  3763. fi
  3764. if test -z "$CPP"; then
  3765. if ${ac_cv_prog_CPP+:} false; then :
  3766. $as_echo_n "(cached) " >&6
  3767. else
  3768. # Double quotes because CPP needs to be expanded
  3769. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3770. do
  3771. ac_preproc_ok=false
  3772. for ac_c_preproc_warn_flag in '' yes
  3773. do
  3774. # Use a header file that comes with gcc, so configuring glibc
  3775. # with a fresh cross-compiler works.
  3776. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3777. # <limits.h> exists even on freestanding compilers.
  3778. # On the NeXT, cc -E runs the code through the compiler's parser,
  3779. # not just through cpp. "Syntax error" is here to catch this case.
  3780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3781. /* end confdefs.h. */
  3782. #ifdef __STDC__
  3783. # include <limits.h>
  3784. #else
  3785. # include <assert.h>
  3786. #endif
  3787. Syntax error
  3788. _ACEOF
  3789. if ac_fn_c_try_cpp "$LINENO"; then :
  3790. else
  3791. # Broken: fails on valid input.
  3792. continue
  3793. fi
  3794. rm -f conftest.err conftest.i conftest.$ac_ext
  3795. # OK, works on sane cases. Now check whether nonexistent headers
  3796. # can be detected and how.
  3797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3798. /* end confdefs.h. */
  3799. #include <ac_nonexistent.h>
  3800. _ACEOF
  3801. if ac_fn_c_try_cpp "$LINENO"; then :
  3802. # Broken: success on invalid input.
  3803. continue
  3804. else
  3805. # Passes both tests.
  3806. ac_preproc_ok=:
  3807. break
  3808. fi
  3809. rm -f conftest.err conftest.i conftest.$ac_ext
  3810. done
  3811. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3812. rm -f conftest.i conftest.err conftest.$ac_ext
  3813. if $ac_preproc_ok; then :
  3814. break
  3815. fi
  3816. done
  3817. ac_cv_prog_CPP=$CPP
  3818. fi
  3819. CPP=$ac_cv_prog_CPP
  3820. else
  3821. ac_cv_prog_CPP=$CPP
  3822. fi
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3824. $as_echo "$CPP" >&6; }
  3825. ac_preproc_ok=false
  3826. for ac_c_preproc_warn_flag in '' yes
  3827. do
  3828. # Use a header file that comes with gcc, so configuring glibc
  3829. # with a fresh cross-compiler works.
  3830. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3831. # <limits.h> exists even on freestanding compilers.
  3832. # On the NeXT, cc -E runs the code through the compiler's parser,
  3833. # not just through cpp. "Syntax error" is here to catch this case.
  3834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3835. /* end confdefs.h. */
  3836. #ifdef __STDC__
  3837. # include <limits.h>
  3838. #else
  3839. # include <assert.h>
  3840. #endif
  3841. Syntax error
  3842. _ACEOF
  3843. if ac_fn_c_try_cpp "$LINENO"; then :
  3844. else
  3845. # Broken: fails on valid input.
  3846. continue
  3847. fi
  3848. rm -f conftest.err conftest.i conftest.$ac_ext
  3849. # OK, works on sane cases. Now check whether nonexistent headers
  3850. # can be detected and how.
  3851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3852. /* end confdefs.h. */
  3853. #include <ac_nonexistent.h>
  3854. _ACEOF
  3855. if ac_fn_c_try_cpp "$LINENO"; then :
  3856. # Broken: success on invalid input.
  3857. continue
  3858. else
  3859. # Passes both tests.
  3860. ac_preproc_ok=:
  3861. break
  3862. fi
  3863. rm -f conftest.err conftest.i conftest.$ac_ext
  3864. done
  3865. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3866. rm -f conftest.i conftest.err conftest.$ac_ext
  3867. if $ac_preproc_ok; then :
  3868. else
  3869. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3870. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3871. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3872. See \`config.log' for more details" "$LINENO" 5; }
  3873. fi
  3874. ac_ext=c
  3875. ac_cpp='$CPP $CPPFLAGS'
  3876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3880. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3881. if ${ac_cv_path_GREP+:} false; then :
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. if test -z "$GREP"; then
  3885. ac_path_GREP_found=false
  3886. # Loop through the user's path and test for each of PROGNAME-LIST
  3887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3888. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3889. do
  3890. IFS=$as_save_IFS
  3891. test -z "$as_dir" && as_dir=.
  3892. for ac_prog in grep ggrep; do
  3893. for ac_exec_ext in '' $ac_executable_extensions; do
  3894. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3895. as_fn_executable_p "$ac_path_GREP" || continue
  3896. # Check for GNU ac_path_GREP and select it if it is found.
  3897. # Check for GNU $ac_path_GREP
  3898. case `"$ac_path_GREP" --version 2>&1` in
  3899. *GNU*)
  3900. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3901. *)
  3902. ac_count=0
  3903. $as_echo_n 0123456789 >"conftest.in"
  3904. while :
  3905. do
  3906. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3907. mv "conftest.tmp" "conftest.in"
  3908. cp "conftest.in" "conftest.nl"
  3909. $as_echo 'GREP' >> "conftest.nl"
  3910. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3911. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3912. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3913. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3914. # Best one so far, save it but keep looking for a better one
  3915. ac_cv_path_GREP="$ac_path_GREP"
  3916. ac_path_GREP_max=$ac_count
  3917. fi
  3918. # 10*(2^10) chars as input seems more than enough
  3919. test $ac_count -gt 10 && break
  3920. done
  3921. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3922. esac
  3923. $ac_path_GREP_found && break 3
  3924. done
  3925. done
  3926. done
  3927. IFS=$as_save_IFS
  3928. if test -z "$ac_cv_path_GREP"; then
  3929. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3930. fi
  3931. else
  3932. ac_cv_path_GREP=$GREP
  3933. fi
  3934. fi
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3936. $as_echo "$ac_cv_path_GREP" >&6; }
  3937. GREP="$ac_cv_path_GREP"
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3939. $as_echo_n "checking for egrep... " >&6; }
  3940. if ${ac_cv_path_EGREP+:} false; then :
  3941. $as_echo_n "(cached) " >&6
  3942. else
  3943. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3944. then ac_cv_path_EGREP="$GREP -E"
  3945. else
  3946. if test -z "$EGREP"; then
  3947. ac_path_EGREP_found=false
  3948. # Loop through the user's path and test for each of PROGNAME-LIST
  3949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3950. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3951. do
  3952. IFS=$as_save_IFS
  3953. test -z "$as_dir" && as_dir=.
  3954. for ac_prog in egrep; do
  3955. for ac_exec_ext in '' $ac_executable_extensions; do
  3956. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3957. as_fn_executable_p "$ac_path_EGREP" || continue
  3958. # Check for GNU ac_path_EGREP and select it if it is found.
  3959. # Check for GNU $ac_path_EGREP
  3960. case `"$ac_path_EGREP" --version 2>&1` in
  3961. *GNU*)
  3962. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3963. *)
  3964. ac_count=0
  3965. $as_echo_n 0123456789 >"conftest.in"
  3966. while :
  3967. do
  3968. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3969. mv "conftest.tmp" "conftest.in"
  3970. cp "conftest.in" "conftest.nl"
  3971. $as_echo 'EGREP' >> "conftest.nl"
  3972. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3973. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3974. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3975. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3976. # Best one so far, save it but keep looking for a better one
  3977. ac_cv_path_EGREP="$ac_path_EGREP"
  3978. ac_path_EGREP_max=$ac_count
  3979. fi
  3980. # 10*(2^10) chars as input seems more than enough
  3981. test $ac_count -gt 10 && break
  3982. done
  3983. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3984. esac
  3985. $ac_path_EGREP_found && break 3
  3986. done
  3987. done
  3988. done
  3989. IFS=$as_save_IFS
  3990. if test -z "$ac_cv_path_EGREP"; then
  3991. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3992. fi
  3993. else
  3994. ac_cv_path_EGREP=$EGREP
  3995. fi
  3996. fi
  3997. fi
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3999. $as_echo "$ac_cv_path_EGREP" >&6; }
  4000. EGREP="$ac_cv_path_EGREP"
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4002. $as_echo_n "checking for ANSI C header files... " >&6; }
  4003. if ${ac_cv_header_stdc+:} false; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4007. /* end confdefs.h. */
  4008. #include <stdlib.h>
  4009. #include <stdarg.h>
  4010. #include <string.h>
  4011. #include <float.h>
  4012. int
  4013. main ()
  4014. {
  4015. ;
  4016. return 0;
  4017. }
  4018. _ACEOF
  4019. if ac_fn_c_try_compile "$LINENO"; then :
  4020. ac_cv_header_stdc=yes
  4021. else
  4022. ac_cv_header_stdc=no
  4023. fi
  4024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4025. if test $ac_cv_header_stdc = yes; then
  4026. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4028. /* end confdefs.h. */
  4029. #include <string.h>
  4030. _ACEOF
  4031. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4032. $EGREP "memchr" >/dev/null 2>&1; then :
  4033. else
  4034. ac_cv_header_stdc=no
  4035. fi
  4036. rm -f conftest*
  4037. fi
  4038. if test $ac_cv_header_stdc = yes; then
  4039. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4041. /* end confdefs.h. */
  4042. #include <stdlib.h>
  4043. _ACEOF
  4044. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4045. $EGREP "free" >/dev/null 2>&1; then :
  4046. else
  4047. ac_cv_header_stdc=no
  4048. fi
  4049. rm -f conftest*
  4050. fi
  4051. if test $ac_cv_header_stdc = yes; then
  4052. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4053. if test "$cross_compiling" = yes; then :
  4054. :
  4055. else
  4056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4057. /* end confdefs.h. */
  4058. #include <ctype.h>
  4059. #include <stdlib.h>
  4060. #if ((' ' & 0x0FF) == 0x020)
  4061. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4062. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4063. #else
  4064. # define ISLOWER(c) \
  4065. (('a' <= (c) && (c) <= 'i') \
  4066. || ('j' <= (c) && (c) <= 'r') \
  4067. || ('s' <= (c) && (c) <= 'z'))
  4068. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4069. #endif
  4070. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4071. int
  4072. main ()
  4073. {
  4074. int i;
  4075. for (i = 0; i < 256; i++)
  4076. if (XOR (islower (i), ISLOWER (i))
  4077. || toupper (i) != TOUPPER (i))
  4078. return 2;
  4079. return 0;
  4080. }
  4081. _ACEOF
  4082. if ac_fn_c_try_run "$LINENO"; then :
  4083. else
  4084. ac_cv_header_stdc=no
  4085. fi
  4086. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4087. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4088. fi
  4089. fi
  4090. fi
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4092. $as_echo "$ac_cv_header_stdc" >&6; }
  4093. if test $ac_cv_header_stdc = yes; then
  4094. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4095. fi
  4096. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4097. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4098. inttypes.h stdint.h unistd.h
  4099. do :
  4100. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4101. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4102. "
  4103. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4104. cat >>confdefs.h <<_ACEOF
  4105. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4106. _ACEOF
  4107. fi
  4108. done
  4109. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4110. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4111. MINIX=yes
  4112. else
  4113. MINIX=
  4114. fi
  4115. if test "$MINIX" = yes; then
  4116. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4117. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4118. $as_echo "#define _MINIX 1" >>confdefs.h
  4119. fi
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4121. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4122. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. # define __EXTENSIONS__ 1
  4128. $ac_includes_default
  4129. int
  4130. main ()
  4131. {
  4132. ;
  4133. return 0;
  4134. }
  4135. _ACEOF
  4136. if ac_fn_c_try_compile "$LINENO"; then :
  4137. ac_cv_safe_to_define___extensions__=yes
  4138. else
  4139. ac_cv_safe_to_define___extensions__=no
  4140. fi
  4141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4142. fi
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4144. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4145. test $ac_cv_safe_to_define___extensions__ = yes &&
  4146. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4147. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4148. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4149. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4150. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4151. ac_aux_dir=
  4152. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  4153. if test -f "$ac_dir/install-sh"; then
  4154. ac_aux_dir=$ac_dir
  4155. ac_install_sh="$ac_aux_dir/install-sh -c"
  4156. break
  4157. elif test -f "$ac_dir/install.sh"; then
  4158. ac_aux_dir=$ac_dir
  4159. ac_install_sh="$ac_aux_dir/install.sh -c"
  4160. break
  4161. elif test -f "$ac_dir/shtool"; then
  4162. ac_aux_dir=$ac_dir
  4163. ac_install_sh="$ac_aux_dir/shtool install -c"
  4164. break
  4165. fi
  4166. done
  4167. if test -z "$ac_aux_dir"; then
  4168. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  4169. fi
  4170. # These three variables are undocumented and unsupported,
  4171. # and are intended to be withdrawn in a future Autoconf release.
  4172. # They can cause serious problems if a builder's source tree is in a directory
  4173. # whose full name contains unusual characters.
  4174. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  4175. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  4176. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  4177. # Make sure we can run config.sub.
  4178. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4179. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4181. $as_echo_n "checking build system type... " >&6; }
  4182. if ${ac_cv_build+:} false; then :
  4183. $as_echo_n "(cached) " >&6
  4184. else
  4185. ac_build_alias=$build_alias
  4186. test "x$ac_build_alias" = x &&
  4187. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4188. test "x$ac_build_alias" = x &&
  4189. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4190. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4191. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4192. fi
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4194. $as_echo "$ac_cv_build" >&6; }
  4195. case $ac_cv_build in
  4196. *-*-*) ;;
  4197. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4198. esac
  4199. build=$ac_cv_build
  4200. ac_save_IFS=$IFS; IFS='-'
  4201. set x $ac_cv_build
  4202. shift
  4203. build_cpu=$1
  4204. build_vendor=$2
  4205. shift; shift
  4206. # Remember, the first character of IFS is used to create $*,
  4207. # except with old shells:
  4208. build_os=$*
  4209. IFS=$ac_save_IFS
  4210. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4212. $as_echo_n "checking host system type... " >&6; }
  4213. if ${ac_cv_host+:} false; then :
  4214. $as_echo_n "(cached) " >&6
  4215. else
  4216. if test "x$host_alias" = x; then
  4217. ac_cv_host=$ac_cv_build
  4218. else
  4219. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4220. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4221. fi
  4222. fi
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4224. $as_echo "$ac_cv_host" >&6; }
  4225. case $ac_cv_host in
  4226. *-*-*) ;;
  4227. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4228. esac
  4229. host=$ac_cv_host
  4230. ac_save_IFS=$IFS; IFS='-'
  4231. set x $ac_cv_host
  4232. shift
  4233. host_cpu=$1
  4234. host_vendor=$2
  4235. shift; shift
  4236. # Remember, the first character of IFS is used to create $*,
  4237. # except with old shells:
  4238. host_os=$*
  4239. IFS=$ac_save_IFS
  4240. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  4242. $as_echo_n "checking target system type... " >&6; }
  4243. if ${ac_cv_target+:} false; then :
  4244. $as_echo_n "(cached) " >&6
  4245. else
  4246. if test "x$target_alias" = x; then
  4247. ac_cv_target=$ac_cv_host
  4248. else
  4249. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  4250. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  4251. fi
  4252. fi
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  4254. $as_echo "$ac_cv_target" >&6; }
  4255. case $ac_cv_target in
  4256. *-*-*) ;;
  4257. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  4258. esac
  4259. target=$ac_cv_target
  4260. ac_save_IFS=$IFS; IFS='-'
  4261. set x $ac_cv_target
  4262. shift
  4263. target_cpu=$1
  4264. target_vendor=$2
  4265. shift; shift
  4266. # Remember, the first character of IFS is used to create $*,
  4267. # except with old shells:
  4268. target_os=$*
  4269. IFS=$ac_save_IFS
  4270. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  4271. # The aliases save the names the user supplied, while $host etc.
  4272. # will get canonicalized.
  4273. test -n "$target_alias" &&
  4274. test "$program_prefix$program_suffix$program_transform_name" = \
  4275. NONENONEs,x,x, &&
  4276. program_prefix=${target_alias}-
  4277. # The tests for host and target for $enable_largefile require
  4278. # canonical names.
  4279. # As the $enable_largefile decision depends on --enable-plugins we must set it
  4280. # even in directories otherwise not depending on the $plugins option.
  4281. maybe_plugins=no
  4282. for ac_header in dlfcn.h
  4283. do :
  4284. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  4285. "
  4286. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  4287. cat >>confdefs.h <<_ACEOF
  4288. #define HAVE_DLFCN_H 1
  4289. _ACEOF
  4290. maybe_plugins=yes
  4291. fi
  4292. done
  4293. for ac_header in windows.h
  4294. do :
  4295. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  4296. "
  4297. if test "x$ac_cv_header_windows_h" = xyes; then :
  4298. cat >>confdefs.h <<_ACEOF
  4299. #define HAVE_WINDOWS_H 1
  4300. _ACEOF
  4301. maybe_plugins=yes
  4302. fi
  4303. done
  4304. # Check whether --enable-plugins was given.
  4305. if test "${enable_plugins+set}" = set; then :
  4306. enableval=$enable_plugins; case "${enableval}" in
  4307. no) plugins=no ;;
  4308. *) plugins=yes
  4309. if test "$maybe_plugins" != "yes" ; then
  4310. as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  4311. fi ;;
  4312. esac
  4313. else
  4314. plugins=$maybe_plugins
  4315. fi
  4316. if test "$plugins" = "yes"; then
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  4318. $as_echo_n "checking for library containing dlsym... " >&6; }
  4319. if ${ac_cv_search_dlsym+:} false; then :
  4320. $as_echo_n "(cached) " >&6
  4321. else
  4322. ac_func_search_save_LIBS=$LIBS
  4323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4324. /* end confdefs.h. */
  4325. /* Override any GCC internal prototype to avoid an error.
  4326. Use char because int might match the return type of a GCC
  4327. builtin and then its argument prototype would still apply. */
  4328. #ifdef __cplusplus
  4329. extern "C"
  4330. #endif
  4331. char dlsym ();
  4332. int
  4333. main ()
  4334. {
  4335. return dlsym ();
  4336. ;
  4337. return 0;
  4338. }
  4339. _ACEOF
  4340. for ac_lib in '' dl; do
  4341. if test -z "$ac_lib"; then
  4342. ac_res="none required"
  4343. else
  4344. ac_res=-l$ac_lib
  4345. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4346. fi
  4347. if ac_fn_c_try_link "$LINENO"; then :
  4348. ac_cv_search_dlsym=$ac_res
  4349. fi
  4350. rm -f core conftest.err conftest.$ac_objext \
  4351. conftest$ac_exeext
  4352. if ${ac_cv_search_dlsym+:} false; then :
  4353. break
  4354. fi
  4355. done
  4356. if ${ac_cv_search_dlsym+:} false; then :
  4357. else
  4358. ac_cv_search_dlsym=no
  4359. fi
  4360. rm conftest.$ac_ext
  4361. LIBS=$ac_func_search_save_LIBS
  4362. fi
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  4364. $as_echo "$ac_cv_search_dlsym" >&6; }
  4365. ac_res=$ac_cv_search_dlsym
  4366. if test "$ac_res" != no; then :
  4367. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4368. fi
  4369. fi
  4370. case "${host}" in
  4371. sparc-*-solaris*|i?86-*-solaris*)
  4372. # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
  4373. # were mutually exclusive until Solaris 11.3. Without procfs support,
  4374. # the bfd/ elf module cannot provide certain routines such as
  4375. # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
  4376. # explicitly requested large-file support through the
  4377. # --enable-largefile switch, disable large-file support in favor of
  4378. # procfs support.
  4379. #
  4380. # Check if <sys/procfs.h> is incompatible with large-file support.
  4381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4382. /* end confdefs.h. */
  4383. #define _FILE_OFFSET_BITS 64
  4384. #define _STRUCTURED_PROC 1
  4385. #include <sys/procfs.h>
  4386. int
  4387. main ()
  4388. {
  4389. ;
  4390. return 0;
  4391. }
  4392. _ACEOF
  4393. if ac_fn_c_try_compile "$LINENO"; then :
  4394. acx_cv_procfs_lfs=yes
  4395. else
  4396. acx_cv_procfs_lfs=no
  4397. fi
  4398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4399. #
  4400. # Forcefully disable large-file support only if necessary, gdb is in
  4401. # tree and enabled.
  4402. if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
  4403. -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
  4404. : ${enable_largefile="no"}
  4405. if test "$plugins" = yes; then
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  4407. plugin support disabled; require large-file support which is incompatible with GDB." >&5
  4408. $as_echo "$as_me: WARNING:
  4409. plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
  4410. plugins=no
  4411. fi
  4412. fi
  4413. #
  4414. # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
  4415. # benefit of g++ 9+ which predefines it on Solaris.
  4416. if test "$enable_largefile" = no; then
  4417. LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
  4418. fi
  4419. ;;
  4420. esac
  4421. # Check whether --enable-largefile was given.
  4422. if test "${enable_largefile+set}" = set; then :
  4423. enableval=$enable_largefile;
  4424. fi
  4425. if test "$enable_largefile" != no; then
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  4427. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4428. if ${ac_cv_sys_largefile_CC+:} false; then :
  4429. $as_echo_n "(cached) " >&6
  4430. else
  4431. ac_cv_sys_largefile_CC=no
  4432. if test "$GCC" != yes; then
  4433. ac_save_CC=$CC
  4434. while :; do
  4435. # IRIX 6.2 and later do not support large files by default,
  4436. # so use the C compiler's -n32 option if that helps.
  4437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4438. /* end confdefs.h. */
  4439. #include <sys/types.h>
  4440. /* Check that off_t can represent 2**63 - 1 correctly.
  4441. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4442. since some C++ compilers masquerading as C compilers
  4443. incorrectly reject 9223372036854775807. */
  4444. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4445. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4446. && LARGE_OFF_T % 2147483647 == 1)
  4447. ? 1 : -1];
  4448. int
  4449. main ()
  4450. {
  4451. ;
  4452. return 0;
  4453. }
  4454. _ACEOF
  4455. if ac_fn_c_try_compile "$LINENO"; then :
  4456. break
  4457. fi
  4458. rm -f core conftest.err conftest.$ac_objext
  4459. CC="$CC -n32"
  4460. if ac_fn_c_try_compile "$LINENO"; then :
  4461. ac_cv_sys_largefile_CC=' -n32'; break
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext
  4464. break
  4465. done
  4466. CC=$ac_save_CC
  4467. rm -f conftest.$ac_ext
  4468. fi
  4469. fi
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4471. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4472. if test "$ac_cv_sys_largefile_CC" != no; then
  4473. CC=$CC$ac_cv_sys_largefile_CC
  4474. fi
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4476. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4477. if ${ac_cv_sys_file_offset_bits+:} false; then :
  4478. $as_echo_n "(cached) " >&6
  4479. else
  4480. while :; do
  4481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4482. /* end confdefs.h. */
  4483. #include <sys/types.h>
  4484. /* Check that off_t can represent 2**63 - 1 correctly.
  4485. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4486. since some C++ compilers masquerading as C compilers
  4487. incorrectly reject 9223372036854775807. */
  4488. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4489. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4490. && LARGE_OFF_T % 2147483647 == 1)
  4491. ? 1 : -1];
  4492. int
  4493. main ()
  4494. {
  4495. ;
  4496. return 0;
  4497. }
  4498. _ACEOF
  4499. if ac_fn_c_try_compile "$LINENO"; then :
  4500. ac_cv_sys_file_offset_bits=no; break
  4501. fi
  4502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4504. /* end confdefs.h. */
  4505. #define _FILE_OFFSET_BITS 64
  4506. #include <sys/types.h>
  4507. /* Check that off_t can represent 2**63 - 1 correctly.
  4508. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4509. since some C++ compilers masquerading as C compilers
  4510. incorrectly reject 9223372036854775807. */
  4511. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4512. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4513. && LARGE_OFF_T % 2147483647 == 1)
  4514. ? 1 : -1];
  4515. int
  4516. main ()
  4517. {
  4518. ;
  4519. return 0;
  4520. }
  4521. _ACEOF
  4522. if ac_fn_c_try_compile "$LINENO"; then :
  4523. ac_cv_sys_file_offset_bits=64; break
  4524. fi
  4525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4526. ac_cv_sys_file_offset_bits=unknown
  4527. break
  4528. done
  4529. fi
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  4531. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  4532. case $ac_cv_sys_file_offset_bits in #(
  4533. no | unknown) ;;
  4534. *)
  4535. cat >>confdefs.h <<_ACEOF
  4536. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4537. _ACEOF
  4538. ;;
  4539. esac
  4540. rm -rf conftest*
  4541. if test $ac_cv_sys_file_offset_bits = unknown; then
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  4543. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  4544. if ${ac_cv_sys_large_files+:} false; then :
  4545. $as_echo_n "(cached) " >&6
  4546. else
  4547. while :; do
  4548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4549. /* end confdefs.h. */
  4550. #include <sys/types.h>
  4551. /* Check that off_t can represent 2**63 - 1 correctly.
  4552. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4553. since some C++ compilers masquerading as C compilers
  4554. incorrectly reject 9223372036854775807. */
  4555. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4556. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4557. && LARGE_OFF_T % 2147483647 == 1)
  4558. ? 1 : -1];
  4559. int
  4560. main ()
  4561. {
  4562. ;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. if ac_fn_c_try_compile "$LINENO"; then :
  4567. ac_cv_sys_large_files=no; break
  4568. fi
  4569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4571. /* end confdefs.h. */
  4572. #define _LARGE_FILES 1
  4573. #include <sys/types.h>
  4574. /* Check that off_t can represent 2**63 - 1 correctly.
  4575. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4576. since some C++ compilers masquerading as C compilers
  4577. incorrectly reject 9223372036854775807. */
  4578. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4579. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4580. && LARGE_OFF_T % 2147483647 == 1)
  4581. ? 1 : -1];
  4582. int
  4583. main ()
  4584. {
  4585. ;
  4586. return 0;
  4587. }
  4588. _ACEOF
  4589. if ac_fn_c_try_compile "$LINENO"; then :
  4590. ac_cv_sys_large_files=1; break
  4591. fi
  4592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4593. ac_cv_sys_large_files=unknown
  4594. break
  4595. done
  4596. fi
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4598. $as_echo "$ac_cv_sys_large_files" >&6; }
  4599. case $ac_cv_sys_large_files in #(
  4600. no | unknown) ;;
  4601. *)
  4602. cat >>confdefs.h <<_ACEOF
  4603. #define _LARGE_FILES $ac_cv_sys_large_files
  4604. _ACEOF
  4605. ;;
  4606. esac
  4607. rm -rf conftest*
  4608. fi
  4609. fi
  4610. # Expand $ac_aux_dir to an absolute path.
  4611. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  4612. if test x"${install_sh+set}" != xset; then
  4613. case $am_aux_dir in
  4614. *\ * | *\ *)
  4615. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4616. *)
  4617. install_sh="\${SHELL} $am_aux_dir/install-sh"
  4618. esac
  4619. fi
  4620. # Installed binaries are usually stripped using 'strip' when the user
  4621. # run "make install-strip". However 'strip' might not be the right
  4622. # tool to use in cross-compilation environments, therefore Automake
  4623. # will honor the 'STRIP' environment variable to overrule this program.
  4624. if test "$cross_compiling" != no; then
  4625. if test -n "$ac_tool_prefix"; then
  4626. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4627. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4629. $as_echo_n "checking for $ac_word... " >&6; }
  4630. if ${ac_cv_prog_STRIP+:} false; then :
  4631. $as_echo_n "(cached) " >&6
  4632. else
  4633. if test -n "$STRIP"; then
  4634. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4635. else
  4636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4637. for as_dir in $PATH
  4638. do
  4639. IFS=$as_save_IFS
  4640. test -z "$as_dir" && as_dir=.
  4641. for ac_exec_ext in '' $ac_executable_extensions; do
  4642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4643. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4645. break 2
  4646. fi
  4647. done
  4648. done
  4649. IFS=$as_save_IFS
  4650. fi
  4651. fi
  4652. STRIP=$ac_cv_prog_STRIP
  4653. if test -n "$STRIP"; then
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4655. $as_echo "$STRIP" >&6; }
  4656. else
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4658. $as_echo "no" >&6; }
  4659. fi
  4660. fi
  4661. if test -z "$ac_cv_prog_STRIP"; then
  4662. ac_ct_STRIP=$STRIP
  4663. # Extract the first word of "strip", so it can be a program name with args.
  4664. set dummy strip; ac_word=$2
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4666. $as_echo_n "checking for $ac_word... " >&6; }
  4667. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. if test -n "$ac_ct_STRIP"; then
  4671. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4672. else
  4673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4674. for as_dir in $PATH
  4675. do
  4676. IFS=$as_save_IFS
  4677. test -z "$as_dir" && as_dir=.
  4678. for ac_exec_ext in '' $ac_executable_extensions; do
  4679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4680. ac_cv_prog_ac_ct_STRIP="strip"
  4681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4682. break 2
  4683. fi
  4684. done
  4685. done
  4686. IFS=$as_save_IFS
  4687. fi
  4688. fi
  4689. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4690. if test -n "$ac_ct_STRIP"; then
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4692. $as_echo "$ac_ct_STRIP" >&6; }
  4693. else
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4695. $as_echo "no" >&6; }
  4696. fi
  4697. if test "x$ac_ct_STRIP" = x; then
  4698. STRIP=":"
  4699. else
  4700. case $cross_compiling:$ac_tool_warned in
  4701. yes:)
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4704. ac_tool_warned=yes ;;
  4705. esac
  4706. STRIP=$ac_ct_STRIP
  4707. fi
  4708. else
  4709. STRIP="$ac_cv_prog_STRIP"
  4710. fi
  4711. fi
  4712. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4713. ac_aux_dir=
  4714. for ac_dir in .. "$srcdir"/..; do
  4715. if test -f "$ac_dir/install-sh"; then
  4716. ac_aux_dir=$ac_dir
  4717. ac_install_sh="$ac_aux_dir/install-sh -c"
  4718. break
  4719. elif test -f "$ac_dir/install.sh"; then
  4720. ac_aux_dir=$ac_dir
  4721. ac_install_sh="$ac_aux_dir/install.sh -c"
  4722. break
  4723. elif test -f "$ac_dir/shtool"; then
  4724. ac_aux_dir=$ac_dir
  4725. ac_install_sh="$ac_aux_dir/shtool install -c"
  4726. break
  4727. fi
  4728. done
  4729. if test -z "$ac_aux_dir"; then
  4730. as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
  4731. fi
  4732. # These three variables are undocumented and unsupported,
  4733. # and are intended to be withdrawn in a future Autoconf release.
  4734. # They can cause serious problems if a builder's source tree is in a directory
  4735. # whose full name contains unusual characters.
  4736. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  4737. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  4738. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  4739. # Set build, build_cpu, build_vendor and build_os.
  4740. # Set host, host_cpu, host_vendor, and host_os.
  4741. # Set target, target_cpu, target_vendor, and target_os.
  4742. case ${build_alias} in
  4743. "") build_noncanonical=${build} ;;
  4744. *) build_noncanonical=${build_alias} ;;
  4745. esac
  4746. case ${host_alias} in
  4747. "") host_noncanonical=${build_noncanonical} ;;
  4748. *) host_noncanonical=${host_alias} ;;
  4749. esac
  4750. case ${target_alias} in
  4751. "") target_noncanonical=${host_noncanonical} ;;
  4752. *) target_noncanonical=${target_alias} ;;
  4753. esac
  4754. test "$program_prefix" != NONE &&
  4755. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4756. # Use a double $ so make ignores it.
  4757. test "$program_suffix" != NONE &&
  4758. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4759. # Double any \ or $.
  4760. # By default was `s,x,x', remove it if useless.
  4761. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4762. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4763. # We require a C++11 compiler. Check if one is available, and if
  4764. # necessary, set CXX_DIALECT to some -std=xxx switch.
  4765. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  4766. ac_ext=cpp
  4767. ac_cpp='$CXXCPP $CPPFLAGS'
  4768. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4769. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4770. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4771. CXX_DIALECT=""
  4772. ac_success=no
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  4774. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  4775. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4779. /* end confdefs.h. */
  4780. // If the compiler admits that it is not ready for C++11, why torture it?
  4781. // Hopefully, this will speed up the test.
  4782. #ifndef __cplusplus
  4783. #error "This is not a C++ compiler"
  4784. #elif __cplusplus < 201103L
  4785. #error "This is not a C++11 compiler"
  4786. #else
  4787. namespace cxx11
  4788. {
  4789. namespace test_static_assert
  4790. {
  4791. template <typename T>
  4792. struct check
  4793. {
  4794. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  4795. };
  4796. }
  4797. namespace test_final_override
  4798. {
  4799. struct Base
  4800. {
  4801. virtual void f() {}
  4802. };
  4803. struct Derived : public Base
  4804. {
  4805. virtual void f() override {}
  4806. };
  4807. }
  4808. namespace test_double_right_angle_brackets
  4809. {
  4810. template < typename T >
  4811. struct check {};
  4812. typedef check<void> single_type;
  4813. typedef check<check<void>> double_type;
  4814. typedef check<check<check<void>>> triple_type;
  4815. typedef check<check<check<check<void>>>> quadruple_type;
  4816. }
  4817. namespace test_decltype
  4818. {
  4819. int
  4820. f()
  4821. {
  4822. int a = 1;
  4823. decltype(a) b = 2;
  4824. return a + b;
  4825. }
  4826. }
  4827. namespace test_type_deduction
  4828. {
  4829. template < typename T1, typename T2 >
  4830. struct is_same
  4831. {
  4832. static const bool value = false;
  4833. };
  4834. template < typename T >
  4835. struct is_same<T, T>
  4836. {
  4837. static const bool value = true;
  4838. };
  4839. template < typename T1, typename T2 >
  4840. auto
  4841. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  4842. {
  4843. return a1 + a2;
  4844. }
  4845. int
  4846. test(const int c, volatile int v)
  4847. {
  4848. static_assert(is_same<int, decltype(0)>::value == true, "");
  4849. static_assert(is_same<int, decltype(c)>::value == false, "");
  4850. static_assert(is_same<int, decltype(v)>::value == false, "");
  4851. auto ac = c;
  4852. auto av = v;
  4853. auto sumi = ac + av + 'x';
  4854. auto sumf = ac + av + 1.0;
  4855. static_assert(is_same<int, decltype(ac)>::value == true, "");
  4856. static_assert(is_same<int, decltype(av)>::value == true, "");
  4857. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  4858. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  4859. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  4860. return (sumf > 0.0) ? sumi : add(c, v);
  4861. }
  4862. }
  4863. namespace test_noexcept
  4864. {
  4865. int f() { return 0; }
  4866. int g() noexcept { return 0; }
  4867. static_assert(noexcept(f()) == false, "");
  4868. static_assert(noexcept(g()) == true, "");
  4869. }
  4870. namespace test_constexpr
  4871. {
  4872. template < typename CharT >
  4873. unsigned long constexpr
  4874. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  4875. {
  4876. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  4877. }
  4878. template < typename CharT >
  4879. unsigned long constexpr
  4880. strlen_c(const CharT *const s) noexcept
  4881. {
  4882. return strlen_c_r(s, 0UL);
  4883. }
  4884. static_assert(strlen_c("") == 0UL, "");
  4885. static_assert(strlen_c("1") == 1UL, "");
  4886. static_assert(strlen_c("example") == 7UL, "");
  4887. static_assert(strlen_c("another\0example") == 7UL, "");
  4888. }
  4889. namespace test_rvalue_references
  4890. {
  4891. template < int N >
  4892. struct answer
  4893. {
  4894. static constexpr int value = N;
  4895. };
  4896. answer<1> f(int&) { return answer<1>(); }
  4897. answer<2> f(const int&) { return answer<2>(); }
  4898. answer<3> f(int&&) { return answer<3>(); }
  4899. void
  4900. test()
  4901. {
  4902. int i = 0;
  4903. const int c = 0;
  4904. static_assert(decltype(f(i))::value == 1, "");
  4905. static_assert(decltype(f(c))::value == 2, "");
  4906. static_assert(decltype(f(0))::value == 3, "");
  4907. }
  4908. }
  4909. namespace test_uniform_initialization
  4910. {
  4911. struct test
  4912. {
  4913. static const int zero {};
  4914. static const int one {1};
  4915. };
  4916. static_assert(test::zero == 0, "");
  4917. static_assert(test::one == 1, "");
  4918. }
  4919. namespace test_lambdas
  4920. {
  4921. void
  4922. test1()
  4923. {
  4924. auto lambda1 = [](){};
  4925. auto lambda2 = lambda1;
  4926. lambda1();
  4927. lambda2();
  4928. }
  4929. int
  4930. test2()
  4931. {
  4932. auto a = [](int i, int j){ return i + j; }(1, 2);
  4933. auto b = []() -> int { return '0'; }();
  4934. auto c = [=](){ return a + b; }();
  4935. auto d = [&](){ return c; }();
  4936. auto e = [a, &b](int x) mutable {
  4937. const auto identity = [](int y){ return y; };
  4938. for (auto i = 0; i < a; ++i)
  4939. a += b--;
  4940. return x + identity(a + b);
  4941. }(0);
  4942. return a + b + c + d + e;
  4943. }
  4944. int
  4945. test3()
  4946. {
  4947. const auto nullary = [](){ return 0; };
  4948. const auto unary = [](int x){ return x; };
  4949. using nullary_t = decltype(nullary);
  4950. using unary_t = decltype(unary);
  4951. const auto higher1st = [](nullary_t f){ return f(); };
  4952. const auto higher2nd = [unary](nullary_t f1){
  4953. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  4954. };
  4955. return higher1st(nullary) + higher2nd(nullary)(unary);
  4956. }
  4957. }
  4958. namespace test_variadic_templates
  4959. {
  4960. template <int...>
  4961. struct sum;
  4962. template <int N0, int... N1toN>
  4963. struct sum<N0, N1toN...>
  4964. {
  4965. static constexpr auto value = N0 + sum<N1toN...>::value;
  4966. };
  4967. template <>
  4968. struct sum<>
  4969. {
  4970. static constexpr auto value = 0;
  4971. };
  4972. static_assert(sum<>::value == 0, "");
  4973. static_assert(sum<1>::value == 1, "");
  4974. static_assert(sum<23>::value == 23, "");
  4975. static_assert(sum<1, 2>::value == 3, "");
  4976. static_assert(sum<5, 5, 11>::value == 21, "");
  4977. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  4978. }
  4979. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  4980. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  4981. // because of this.
  4982. namespace test_template_alias_sfinae
  4983. {
  4984. struct foo {};
  4985. template<typename T>
  4986. using member = typename T::member_type;
  4987. template<typename T>
  4988. void func(...) {}
  4989. template<typename T>
  4990. void func(member<T>*) {}
  4991. void test();
  4992. void test() { func<foo>(0); }
  4993. }
  4994. } // namespace cxx11
  4995. #endif // __cplusplus >= 201103L
  4996. _ACEOF
  4997. if ac_fn_cxx_try_compile "$LINENO"; then :
  4998. ax_cv_cxx_compile_cxx11=yes
  4999. else
  5000. ax_cv_cxx_compile_cxx11=no
  5001. fi
  5002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5003. fi
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  5005. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  5006. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  5007. ac_success=yes
  5008. fi
  5009. if test x$ac_success = xno; then
  5010. for alternative in ${ax_cxx_compile_alternatives}; do
  5011. switch="-std=gnu++${alternative}"
  5012. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5014. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5015. if eval \${$cachevar+:} false; then :
  5016. $as_echo_n "(cached) " >&6
  5017. else
  5018. ac_save_CXX="$CXX"
  5019. CXX="$CXX $switch"
  5020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5021. /* end confdefs.h. */
  5022. // If the compiler admits that it is not ready for C++11, why torture it?
  5023. // Hopefully, this will speed up the test.
  5024. #ifndef __cplusplus
  5025. #error "This is not a C++ compiler"
  5026. #elif __cplusplus < 201103L
  5027. #error "This is not a C++11 compiler"
  5028. #else
  5029. namespace cxx11
  5030. {
  5031. namespace test_static_assert
  5032. {
  5033. template <typename T>
  5034. struct check
  5035. {
  5036. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5037. };
  5038. }
  5039. namespace test_final_override
  5040. {
  5041. struct Base
  5042. {
  5043. virtual void f() {}
  5044. };
  5045. struct Derived : public Base
  5046. {
  5047. virtual void f() override {}
  5048. };
  5049. }
  5050. namespace test_double_right_angle_brackets
  5051. {
  5052. template < typename T >
  5053. struct check {};
  5054. typedef check<void> single_type;
  5055. typedef check<check<void>> double_type;
  5056. typedef check<check<check<void>>> triple_type;
  5057. typedef check<check<check<check<void>>>> quadruple_type;
  5058. }
  5059. namespace test_decltype
  5060. {
  5061. int
  5062. f()
  5063. {
  5064. int a = 1;
  5065. decltype(a) b = 2;
  5066. return a + b;
  5067. }
  5068. }
  5069. namespace test_type_deduction
  5070. {
  5071. template < typename T1, typename T2 >
  5072. struct is_same
  5073. {
  5074. static const bool value = false;
  5075. };
  5076. template < typename T >
  5077. struct is_same<T, T>
  5078. {
  5079. static const bool value = true;
  5080. };
  5081. template < typename T1, typename T2 >
  5082. auto
  5083. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5084. {
  5085. return a1 + a2;
  5086. }
  5087. int
  5088. test(const int c, volatile int v)
  5089. {
  5090. static_assert(is_same<int, decltype(0)>::value == true, "");
  5091. static_assert(is_same<int, decltype(c)>::value == false, "");
  5092. static_assert(is_same<int, decltype(v)>::value == false, "");
  5093. auto ac = c;
  5094. auto av = v;
  5095. auto sumi = ac + av + 'x';
  5096. auto sumf = ac + av + 1.0;
  5097. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5098. static_assert(is_same<int, decltype(av)>::value == true, "");
  5099. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5100. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5101. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5102. return (sumf > 0.0) ? sumi : add(c, v);
  5103. }
  5104. }
  5105. namespace test_noexcept
  5106. {
  5107. int f() { return 0; }
  5108. int g() noexcept { return 0; }
  5109. static_assert(noexcept(f()) == false, "");
  5110. static_assert(noexcept(g()) == true, "");
  5111. }
  5112. namespace test_constexpr
  5113. {
  5114. template < typename CharT >
  5115. unsigned long constexpr
  5116. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5117. {
  5118. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5119. }
  5120. template < typename CharT >
  5121. unsigned long constexpr
  5122. strlen_c(const CharT *const s) noexcept
  5123. {
  5124. return strlen_c_r(s, 0UL);
  5125. }
  5126. static_assert(strlen_c("") == 0UL, "");
  5127. static_assert(strlen_c("1") == 1UL, "");
  5128. static_assert(strlen_c("example") == 7UL, "");
  5129. static_assert(strlen_c("another\0example") == 7UL, "");
  5130. }
  5131. namespace test_rvalue_references
  5132. {
  5133. template < int N >
  5134. struct answer
  5135. {
  5136. static constexpr int value = N;
  5137. };
  5138. answer<1> f(int&) { return answer<1>(); }
  5139. answer<2> f(const int&) { return answer<2>(); }
  5140. answer<3> f(int&&) { return answer<3>(); }
  5141. void
  5142. test()
  5143. {
  5144. int i = 0;
  5145. const int c = 0;
  5146. static_assert(decltype(f(i))::value == 1, "");
  5147. static_assert(decltype(f(c))::value == 2, "");
  5148. static_assert(decltype(f(0))::value == 3, "");
  5149. }
  5150. }
  5151. namespace test_uniform_initialization
  5152. {
  5153. struct test
  5154. {
  5155. static const int zero {};
  5156. static const int one {1};
  5157. };
  5158. static_assert(test::zero == 0, "");
  5159. static_assert(test::one == 1, "");
  5160. }
  5161. namespace test_lambdas
  5162. {
  5163. void
  5164. test1()
  5165. {
  5166. auto lambda1 = [](){};
  5167. auto lambda2 = lambda1;
  5168. lambda1();
  5169. lambda2();
  5170. }
  5171. int
  5172. test2()
  5173. {
  5174. auto a = [](int i, int j){ return i + j; }(1, 2);
  5175. auto b = []() -> int { return '0'; }();
  5176. auto c = [=](){ return a + b; }();
  5177. auto d = [&](){ return c; }();
  5178. auto e = [a, &b](int x) mutable {
  5179. const auto identity = [](int y){ return y; };
  5180. for (auto i = 0; i < a; ++i)
  5181. a += b--;
  5182. return x + identity(a + b);
  5183. }(0);
  5184. return a + b + c + d + e;
  5185. }
  5186. int
  5187. test3()
  5188. {
  5189. const auto nullary = [](){ return 0; };
  5190. const auto unary = [](int x){ return x; };
  5191. using nullary_t = decltype(nullary);
  5192. using unary_t = decltype(unary);
  5193. const auto higher1st = [](nullary_t f){ return f(); };
  5194. const auto higher2nd = [unary](nullary_t f1){
  5195. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5196. };
  5197. return higher1st(nullary) + higher2nd(nullary)(unary);
  5198. }
  5199. }
  5200. namespace test_variadic_templates
  5201. {
  5202. template <int...>
  5203. struct sum;
  5204. template <int N0, int... N1toN>
  5205. struct sum<N0, N1toN...>
  5206. {
  5207. static constexpr auto value = N0 + sum<N1toN...>::value;
  5208. };
  5209. template <>
  5210. struct sum<>
  5211. {
  5212. static constexpr auto value = 0;
  5213. };
  5214. static_assert(sum<>::value == 0, "");
  5215. static_assert(sum<1>::value == 1, "");
  5216. static_assert(sum<23>::value == 23, "");
  5217. static_assert(sum<1, 2>::value == 3, "");
  5218. static_assert(sum<5, 5, 11>::value == 21, "");
  5219. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5220. }
  5221. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5222. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5223. // because of this.
  5224. namespace test_template_alias_sfinae
  5225. {
  5226. struct foo {};
  5227. template<typename T>
  5228. using member = typename T::member_type;
  5229. template<typename T>
  5230. void func(...) {}
  5231. template<typename T>
  5232. void func(member<T>*) {}
  5233. void test();
  5234. void test() { func<foo>(0); }
  5235. }
  5236. } // namespace cxx11
  5237. #endif // __cplusplus >= 201103L
  5238. _ACEOF
  5239. if ac_fn_cxx_try_compile "$LINENO"; then :
  5240. eval $cachevar=yes
  5241. else
  5242. eval $cachevar=no
  5243. fi
  5244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5245. CXX="$ac_save_CXX"
  5246. fi
  5247. eval ac_res=\$$cachevar
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5249. $as_echo "$ac_res" >&6; }
  5250. if eval test x\$$cachevar = xyes; then
  5251. CXX_DIALECT="$switch"
  5252. CXX="$CXX $switch"
  5253. if test -n "$CXXCPP" ; then
  5254. CXXCPP="$CXXCPP $switch"
  5255. fi
  5256. ac_success=yes
  5257. break
  5258. fi
  5259. done
  5260. fi
  5261. if test x$ac_success = xno; then
  5262. for alternative in ${ax_cxx_compile_alternatives}; do
  5263. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  5264. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5266. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5267. if eval \${$cachevar+:} false; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. ac_save_CXX="$CXX"
  5271. CXX="$CXX $switch"
  5272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5273. /* end confdefs.h. */
  5274. // If the compiler admits that it is not ready for C++11, why torture it?
  5275. // Hopefully, this will speed up the test.
  5276. #ifndef __cplusplus
  5277. #error "This is not a C++ compiler"
  5278. #elif __cplusplus < 201103L
  5279. #error "This is not a C++11 compiler"
  5280. #else
  5281. namespace cxx11
  5282. {
  5283. namespace test_static_assert
  5284. {
  5285. template <typename T>
  5286. struct check
  5287. {
  5288. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5289. };
  5290. }
  5291. namespace test_final_override
  5292. {
  5293. struct Base
  5294. {
  5295. virtual void f() {}
  5296. };
  5297. struct Derived : public Base
  5298. {
  5299. virtual void f() override {}
  5300. };
  5301. }
  5302. namespace test_double_right_angle_brackets
  5303. {
  5304. template < typename T >
  5305. struct check {};
  5306. typedef check<void> single_type;
  5307. typedef check<check<void>> double_type;
  5308. typedef check<check<check<void>>> triple_type;
  5309. typedef check<check<check<check<void>>>> quadruple_type;
  5310. }
  5311. namespace test_decltype
  5312. {
  5313. int
  5314. f()
  5315. {
  5316. int a = 1;
  5317. decltype(a) b = 2;
  5318. return a + b;
  5319. }
  5320. }
  5321. namespace test_type_deduction
  5322. {
  5323. template < typename T1, typename T2 >
  5324. struct is_same
  5325. {
  5326. static const bool value = false;
  5327. };
  5328. template < typename T >
  5329. struct is_same<T, T>
  5330. {
  5331. static const bool value = true;
  5332. };
  5333. template < typename T1, typename T2 >
  5334. auto
  5335. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5336. {
  5337. return a1 + a2;
  5338. }
  5339. int
  5340. test(const int c, volatile int v)
  5341. {
  5342. static_assert(is_same<int, decltype(0)>::value == true, "");
  5343. static_assert(is_same<int, decltype(c)>::value == false, "");
  5344. static_assert(is_same<int, decltype(v)>::value == false, "");
  5345. auto ac = c;
  5346. auto av = v;
  5347. auto sumi = ac + av + 'x';
  5348. auto sumf = ac + av + 1.0;
  5349. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5350. static_assert(is_same<int, decltype(av)>::value == true, "");
  5351. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5352. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5353. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5354. return (sumf > 0.0) ? sumi : add(c, v);
  5355. }
  5356. }
  5357. namespace test_noexcept
  5358. {
  5359. int f() { return 0; }
  5360. int g() noexcept { return 0; }
  5361. static_assert(noexcept(f()) == false, "");
  5362. static_assert(noexcept(g()) == true, "");
  5363. }
  5364. namespace test_constexpr
  5365. {
  5366. template < typename CharT >
  5367. unsigned long constexpr
  5368. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5369. {
  5370. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5371. }
  5372. template < typename CharT >
  5373. unsigned long constexpr
  5374. strlen_c(const CharT *const s) noexcept
  5375. {
  5376. return strlen_c_r(s, 0UL);
  5377. }
  5378. static_assert(strlen_c("") == 0UL, "");
  5379. static_assert(strlen_c("1") == 1UL, "");
  5380. static_assert(strlen_c("example") == 7UL, "");
  5381. static_assert(strlen_c("another\0example") == 7UL, "");
  5382. }
  5383. namespace test_rvalue_references
  5384. {
  5385. template < int N >
  5386. struct answer
  5387. {
  5388. static constexpr int value = N;
  5389. };
  5390. answer<1> f(int&) { return answer<1>(); }
  5391. answer<2> f(const int&) { return answer<2>(); }
  5392. answer<3> f(int&&) { return answer<3>(); }
  5393. void
  5394. test()
  5395. {
  5396. int i = 0;
  5397. const int c = 0;
  5398. static_assert(decltype(f(i))::value == 1, "");
  5399. static_assert(decltype(f(c))::value == 2, "");
  5400. static_assert(decltype(f(0))::value == 3, "");
  5401. }
  5402. }
  5403. namespace test_uniform_initialization
  5404. {
  5405. struct test
  5406. {
  5407. static const int zero {};
  5408. static const int one {1};
  5409. };
  5410. static_assert(test::zero == 0, "");
  5411. static_assert(test::one == 1, "");
  5412. }
  5413. namespace test_lambdas
  5414. {
  5415. void
  5416. test1()
  5417. {
  5418. auto lambda1 = [](){};
  5419. auto lambda2 = lambda1;
  5420. lambda1();
  5421. lambda2();
  5422. }
  5423. int
  5424. test2()
  5425. {
  5426. auto a = [](int i, int j){ return i + j; }(1, 2);
  5427. auto b = []() -> int { return '0'; }();
  5428. auto c = [=](){ return a + b; }();
  5429. auto d = [&](){ return c; }();
  5430. auto e = [a, &b](int x) mutable {
  5431. const auto identity = [](int y){ return y; };
  5432. for (auto i = 0; i < a; ++i)
  5433. a += b--;
  5434. return x + identity(a + b);
  5435. }(0);
  5436. return a + b + c + d + e;
  5437. }
  5438. int
  5439. test3()
  5440. {
  5441. const auto nullary = [](){ return 0; };
  5442. const auto unary = [](int x){ return x; };
  5443. using nullary_t = decltype(nullary);
  5444. using unary_t = decltype(unary);
  5445. const auto higher1st = [](nullary_t f){ return f(); };
  5446. const auto higher2nd = [unary](nullary_t f1){
  5447. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5448. };
  5449. return higher1st(nullary) + higher2nd(nullary)(unary);
  5450. }
  5451. }
  5452. namespace test_variadic_templates
  5453. {
  5454. template <int...>
  5455. struct sum;
  5456. template <int N0, int... N1toN>
  5457. struct sum<N0, N1toN...>
  5458. {
  5459. static constexpr auto value = N0 + sum<N1toN...>::value;
  5460. };
  5461. template <>
  5462. struct sum<>
  5463. {
  5464. static constexpr auto value = 0;
  5465. };
  5466. static_assert(sum<>::value == 0, "");
  5467. static_assert(sum<1>::value == 1, "");
  5468. static_assert(sum<23>::value == 23, "");
  5469. static_assert(sum<1, 2>::value == 3, "");
  5470. static_assert(sum<5, 5, 11>::value == 21, "");
  5471. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5472. }
  5473. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5474. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5475. // because of this.
  5476. namespace test_template_alias_sfinae
  5477. {
  5478. struct foo {};
  5479. template<typename T>
  5480. using member = typename T::member_type;
  5481. template<typename T>
  5482. void func(...) {}
  5483. template<typename T>
  5484. void func(member<T>*) {}
  5485. void test();
  5486. void test() { func<foo>(0); }
  5487. }
  5488. } // namespace cxx11
  5489. #endif // __cplusplus >= 201103L
  5490. _ACEOF
  5491. if ac_fn_cxx_try_compile "$LINENO"; then :
  5492. eval $cachevar=yes
  5493. else
  5494. eval $cachevar=no
  5495. fi
  5496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5497. CXX="$ac_save_CXX"
  5498. fi
  5499. eval ac_res=\$$cachevar
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5501. $as_echo "$ac_res" >&6; }
  5502. if eval test x\$$cachevar = xyes; then
  5503. CXX_DIALECT="$switch"
  5504. CXX="$CXX $switch"
  5505. if test -n "$CXXCPP" ; then
  5506. CXXCPP="$CXXCPP $switch"
  5507. fi
  5508. ac_success=yes
  5509. break
  5510. fi
  5511. done
  5512. if test x$ac_success = xyes; then
  5513. break
  5514. fi
  5515. done
  5516. fi
  5517. ac_ext=c
  5518. ac_cpp='$CPP $CPPFLAGS'
  5519. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5520. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5521. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5522. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  5523. if test x$ac_success = xno; then
  5524. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  5525. fi
  5526. fi
  5527. if test x$ac_success = xno; then
  5528. HAVE_CXX11=0
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  5530. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  5531. else
  5532. HAVE_CXX11=1
  5533. $as_echo "#define HAVE_CXX11 1" >>confdefs.h
  5534. fi
  5535. # Dependency checking.
  5536. rm -rf .tst 2>/dev/null
  5537. mkdir .tst 2>/dev/null
  5538. if test -d .tst; then
  5539. am__leading_dot=.
  5540. else
  5541. am__leading_dot=_
  5542. fi
  5543. rmdir .tst 2>/dev/null
  5544. DEPDIR="${am__leading_dot}deps"
  5545. ac_config_commands="$ac_config_commands depdir"
  5546. depcc="$CC" am_compiler_list=
  5547. am_depcomp=$ac_aux_dir/depcomp
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5549. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5550. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5551. $as_echo_n "(cached) " >&6
  5552. else
  5553. if test -f "$am_depcomp"; then
  5554. # We make a subdir and do the tests there. Otherwise we can end up
  5555. # making bogus files that we don't know about and never remove. For
  5556. # instance it was reported that on HP-UX the gcc test will end up
  5557. # making a dummy file named `D' -- because `-MD' means `put the output
  5558. # in D'.
  5559. mkdir conftest.dir
  5560. # Copy depcomp to subdir because otherwise we won't find it if we're
  5561. # using a relative directory.
  5562. cp "$am_depcomp" conftest.dir
  5563. cd conftest.dir
  5564. # We will build objects and dependencies in a subdirectory because
  5565. # it helps to detect inapplicable dependency modes. For instance
  5566. # both Tru64's cc and ICC support -MD to output dependencies as a
  5567. # side effect of compilation, but ICC will put the dependencies in
  5568. # the current directory while Tru64 will put them in the object
  5569. # directory.
  5570. mkdir sub
  5571. am_cv_CC_dependencies_compiler_type=none
  5572. if test "$am_compiler_list" = ""; then
  5573. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5574. fi
  5575. for depmode in $am_compiler_list; do
  5576. if test $depmode = none; then break; fi
  5577. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  5578. # Setup a source with many dependencies, because some compilers
  5579. # like to wrap large dependency lists on column 80 (with \), and
  5580. # we should not choose a depcomp mode which is confused by this.
  5581. #
  5582. # We need to recreate these files for each test, as the compiler may
  5583. # overwrite some of them when testing with obscure command lines.
  5584. # This happens at least with the AIX C compiler.
  5585. : > sub/conftest.c
  5586. for i in 1 2 3 4 5 6; do
  5587. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5588. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5589. # Solaris 8's {/usr,}/bin/sh.
  5590. touch sub/conftst$i.h
  5591. done
  5592. echo "include sub/conftest.Po" > confmf
  5593. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5594. # mode. It turns out that the SunPro C++ compiler does not properly
  5595. # handle `-M -o', and we need to detect this.
  5596. depcmd="depmode=$depmode \
  5597. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5598. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5599. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  5600. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  5601. if env $depcmd > conftest.err 2>&1 &&
  5602. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  5603. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  5604. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  5605. # icc doesn't choke on unknown options, it will just issue warnings
  5606. # or remarks (even with -Werror). So we grep stderr for any message
  5607. # that says an option was ignored or not supported.
  5608. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5609. # icc: Command line warning: ignoring option '-M'; no argument required
  5610. # The diagnosis changed in icc 8.0:
  5611. # icc: Command line remark: option '-MP' not supported
  5612. if (grep 'ignoring option' conftest.err ||
  5613. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5614. am_cv_CC_dependencies_compiler_type=$depmode
  5615. $as_echo "$as_me:$LINENO: success" >&5
  5616. break
  5617. fi
  5618. fi
  5619. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  5620. sed -e 's/^/| /' < conftest.err >&5
  5621. done
  5622. cd ..
  5623. rm -rf conftest.dir
  5624. else
  5625. am_cv_CC_dependencies_compiler_type=none
  5626. fi
  5627. fi
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5629. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5630. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  5631. then as_fn_error $? "no usable dependency style found" "$LINENO" 5
  5632. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5633. fi
  5634. CONFIG_OBS=
  5635. CONFIG_DEPS=
  5636. CONFIG_SRCS=
  5637. ENABLE_CFLAGS=
  5638. CONFIG_ALL=
  5639. CONFIG_CLEAN=
  5640. CONFIG_INSTALL=
  5641. CONFIG_UNINSTALL=
  5642. # If we haven't got the data from the intl directory,
  5643. # assume NLS is disabled.
  5644. USE_NLS=no
  5645. LIBINTL=
  5646. LIBINTL_DEP=
  5647. INCINTL=
  5648. XGETTEXT=
  5649. GMSGFMT=
  5650. POSUB=
  5651. if test -f ../intl/config.intl; then
  5652. . ../intl/config.intl
  5653. fi
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  5655. $as_echo_n "checking whether NLS is requested... " >&6; }
  5656. if test x"$USE_NLS" != xyes; then
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5658. $as_echo "no" >&6; }
  5659. else
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5661. $as_echo "yes" >&6; }
  5662. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  5664. $as_echo_n "checking for catalogs to be installed... " >&6; }
  5665. # Look for .po and .gmo files in the source directory.
  5666. CATALOGS=
  5667. XLINGUAS=
  5668. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  5669. # If there aren't any .gmo files the shell will give us the
  5670. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  5671. # weeded out.
  5672. case "$cat" in *\**)
  5673. continue;;
  5674. esac
  5675. # The quadruple backslash is collapsed to a double backslash
  5676. # by the backticks, then collapsed again by the double quotes,
  5677. # leaving us with one backslash in the sed expression (right
  5678. # before the dot that mustn't act as a wildcard).
  5679. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  5680. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  5681. # The user is allowed to set LINGUAS to a list of languages to
  5682. # install catalogs for. If it's empty that means "all of them."
  5683. if test "x$LINGUAS" = x; then
  5684. CATALOGS="$CATALOGS $cat"
  5685. XLINGUAS="$XLINGUAS $lang"
  5686. else
  5687. case "$LINGUAS" in *$lang*)
  5688. CATALOGS="$CATALOGS $cat"
  5689. XLINGUAS="$XLINGUAS $lang"
  5690. ;;
  5691. esac
  5692. fi
  5693. done
  5694. LINGUAS="$XLINGUAS"
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  5696. $as_echo "$LINGUAS" >&6; }
  5697. DATADIRNAME=share
  5698. INSTOBJEXT=.mo
  5699. GENCAT=gencat
  5700. CATOBJEXT=.gmo
  5701. fi
  5702. localedir='${datadir}/locale'
  5703. if test x"$USE_NLS" = xyes; then
  5704. CONFIG_ALL="$CONFIG_ALL all-po"
  5705. CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
  5706. CONFIG_INSTALL="$CONFIG_INSTALL install-po"
  5707. CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
  5708. fi
  5709. PACKAGE=gdb
  5710. cat >>confdefs.h <<_ACEOF
  5711. #define PACKAGE "$PACKAGE"
  5712. _ACEOF
  5713. # We never need to detect it in this sub-configure.
  5714. # But preserve it for config.status --recheck.
  5715. MAKEINFO_EXTRA_FLAGS=""
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
  5717. $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
  5718. if ${gdb_cv_have_makeinfo_click+:} false; then :
  5719. $as_echo_n "(cached) " >&6
  5720. else
  5721. echo '@clicksequence{a @click{} b}' >conftest.texinfo
  5722. if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
  5723. gdb_cv_have_makeinfo_click=yes
  5724. else
  5725. gdb_cv_have_makeinfo_click=no
  5726. fi
  5727. fi
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
  5729. $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
  5730. if test x"$gdb_cv_have_makeinfo_click" = xyes; then
  5731. MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
  5732. fi
  5733. # Check whether --with-separate-debug-dir was given.
  5734. if test "${with_separate_debug_dir+set}" = set; then :
  5735. withval=$with_separate_debug_dir;
  5736. DEBUGDIR=$withval
  5737. else
  5738. DEBUGDIR=${libdir}/debug
  5739. fi
  5740. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  5741. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5742. ac_define_dir=`eval echo $DEBUGDIR`
  5743. ac_define_dir=`eval echo $ac_define_dir`
  5744. cat >>confdefs.h <<_ACEOF
  5745. #define DEBUGDIR "$ac_define_dir"
  5746. _ACEOF
  5747. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  5748. if test "x$prefix" = xNONE; then
  5749. test_prefix=/usr/local
  5750. else
  5751. test_prefix=$prefix
  5752. fi
  5753. else
  5754. test_prefix=$exec_prefix
  5755. fi
  5756. value=0
  5757. case ${ac_define_dir} in
  5758. "${test_prefix}"|"${test_prefix}/"*|\
  5759. '${exec_prefix}'|'${exec_prefix}/'*)
  5760. value=1
  5761. ;;
  5762. esac
  5763. cat >>confdefs.h <<_ACEOF
  5764. #define DEBUGDIR_RELOCATABLE $value
  5765. _ACEOF
  5766. # We can't pass paths as command line arguments.
  5767. # Mingw32 tries to be clever and will convert the paths for us.
  5768. # For example -DBINDIR="/usr/local/bin" passed on the command line may get
  5769. # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
  5770. # This breaks GDB's relocatable path conversions since paths passed in
  5771. # config.h would not get so translated, the path prefixes no longer match.
  5772. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  5773. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5774. ac_define_dir=`eval echo $bindir`
  5775. ac_define_dir=`eval echo $ac_define_dir`
  5776. cat >>confdefs.h <<_ACEOF
  5777. #define BINDIR "$ac_define_dir"
  5778. _ACEOF
  5779. # GDB's datadir relocation
  5780. # Check whether --with-gdb-datadir was given.
  5781. if test "${with_gdb_datadir+set}" = set; then :
  5782. withval=$with_gdb_datadir;
  5783. GDB_DATADIR=$withval
  5784. else
  5785. GDB_DATADIR=${datadir}/gdb
  5786. fi
  5787. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  5788. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5789. ac_define_dir=`eval echo $GDB_DATADIR`
  5790. ac_define_dir=`eval echo $ac_define_dir`
  5791. cat >>confdefs.h <<_ACEOF
  5792. #define GDB_DATADIR "$ac_define_dir"
  5793. _ACEOF
  5794. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  5795. if test "x$prefix" = xNONE; then
  5796. test_prefix=/usr/local
  5797. else
  5798. test_prefix=$prefix
  5799. fi
  5800. else
  5801. test_prefix=$exec_prefix
  5802. fi
  5803. value=0
  5804. case ${ac_define_dir} in
  5805. "${test_prefix}"|"${test_prefix}/"*|\
  5806. '${exec_prefix}'|'${exec_prefix}/'*)
  5807. value=1
  5808. ;;
  5809. esac
  5810. cat >>confdefs.h <<_ACEOF
  5811. #define GDB_DATADIR_RELOCATABLE $value
  5812. _ACEOF
  5813. # Check whether --with-relocated-sources was given.
  5814. if test "${with_relocated_sources+set}" = set; then :
  5815. withval=$with_relocated_sources; reloc_srcdir="${withval}"
  5816. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  5817. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5818. ac_define_dir=`eval echo $reloc_srcdir`
  5819. ac_define_dir=`eval echo $ac_define_dir`
  5820. cat >>confdefs.h <<_ACEOF
  5821. #define RELOC_SRCDIR "$ac_define_dir"
  5822. _ACEOF
  5823. fi
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
  5825. $as_echo_n "checking for default auto-load directory... " >&6; }
  5826. # Check whether --with-auto-load-dir was given.
  5827. if test "${with_auto_load_dir+set}" = set; then :
  5828. withval=$with_auto_load_dir;
  5829. else
  5830. with_auto_load_dir='$debugdir:$datadir/auto-load'
  5831. fi
  5832. escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
  5833. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  5834. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5835. ac_define_dir=`eval echo $escape_dir`
  5836. ac_define_dir=`eval echo $ac_define_dir`
  5837. cat >>confdefs.h <<_ACEOF
  5838. #define AUTO_LOAD_DIR "$ac_define_dir"
  5839. _ACEOF
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
  5841. $as_echo "$with_auto_load_dir" >&6; }
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
  5843. $as_echo_n "checking for default auto-load safe-path... " >&6; }
  5844. # Check whether --with-auto-load-safe-path was given.
  5845. if test "${with_auto_load_safe_path+set}" = set; then :
  5846. withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
  5847. with_auto_load_safe_path="/"
  5848. fi
  5849. else
  5850. with_auto_load_safe_path="$with_auto_load_dir"
  5851. fi
  5852. escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
  5853. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  5854. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5855. ac_define_dir=`eval echo $escape_dir`
  5856. ac_define_dir=`eval echo $ac_define_dir`
  5857. cat >>confdefs.h <<_ACEOF
  5858. #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
  5859. _ACEOF
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
  5861. $as_echo "$with_auto_load_safe_path" >&6; }
  5862. subdirs="$subdirs testsuite"
  5863. # Check whether to support alternative target configurations
  5864. # Check whether --enable-targets was given.
  5865. if test "${enable_targets+set}" = set; then :
  5866. enableval=$enable_targets; case "${enableval}" in
  5867. yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
  5868. ;;
  5869. no) enable_targets= ;;
  5870. *) enable_targets=$enableval ;;
  5871. esac
  5872. fi
  5873. # Check whether --enable-64-bit-bfd was given.
  5874. if test "${enable_64_bit_bfd+set}" = set; then :
  5875. enableval=$enable_64_bit_bfd; case $enableval in #(
  5876. yes|no) :
  5877. ;; #(
  5878. *) :
  5879. as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
  5880. *) :
  5881. ;;
  5882. esac
  5883. else
  5884. enable_64_bit_bfd=no
  5885. fi
  5886. if test "x$enable_64_bit_bfd" = "xno"; then :
  5887. # The cast to long int works around a bug in the HP C Compiler
  5888. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5889. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5890. # This bug is HP SR number 8606223364.
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  5892. $as_echo_n "checking size of void *... " >&6; }
  5893. if ${ac_cv_sizeof_void_p+:} false; then :
  5894. $as_echo_n "(cached) " >&6
  5895. else
  5896. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  5897. else
  5898. if test "$ac_cv_type_void_p" = yes; then
  5899. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5900. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5901. as_fn_error 77 "cannot compute sizeof (void *)
  5902. See \`config.log' for more details" "$LINENO" 5; }
  5903. else
  5904. ac_cv_sizeof_void_p=0
  5905. fi
  5906. fi
  5907. fi
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  5909. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  5910. cat >>confdefs.h <<_ACEOF
  5911. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  5912. _ACEOF
  5913. if test "x$ac_cv_sizeof_void_p" = "x8"; then :
  5914. enable_64_bit_bfd=yes
  5915. fi
  5916. fi
  5917. if test "x$enable_64_bit_bfd" = "xyes"; then
  5918. ENABLE_BFD_64_BIT_TRUE=
  5919. ENABLE_BFD_64_BIT_FALSE='#'
  5920. else
  5921. ENABLE_BFD_64_BIT_TRUE='#'
  5922. ENABLE_BFD_64_BIT_FALSE=
  5923. fi
  5924. # Provide defaults for some variables set by the per-host and per-target
  5925. # configuration.
  5926. gdb_host_obs=posix-hdep.o
  5927. if test "${target}" = "${host}"; then
  5928. gdb_native=yes
  5929. else
  5930. gdb_native=no
  5931. fi
  5932. . $srcdir/configure.host
  5933. # Accumulate some settings from configure.tgt over all enabled targets
  5934. TARGET_OBS=
  5935. all_targets=
  5936. HAVE_NATIVE_GCORE_TARGET=
  5937. for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
  5938. do
  5939. if test "$targ_alias" = "all"; then
  5940. all_targets=true
  5941. else
  5942. # Canonicalize the secondary target names.
  5943. result=`$ac_config_sub $targ_alias 2>/dev/null`
  5944. if test -n "$result"; then
  5945. targ=$result
  5946. else
  5947. targ=$targ_alias
  5948. fi
  5949. . ${srcdir}/configure.tgt
  5950. if test -z "${gdb_target_obs}"; then :
  5951. as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
  5952. fi
  5953. # Target-specific object files
  5954. for i in ${gdb_target_obs}; do
  5955. case " $TARGET_OBS " in
  5956. *" ${i} "*) ;;
  5957. *)
  5958. TARGET_OBS="$TARGET_OBS ${i}"
  5959. ;;
  5960. esac
  5961. done
  5962. # Check whether this target needs 64-bit CORE_ADDR
  5963. if test x${enable_64_bit_bfd} = xno; then
  5964. . ${srcdir}/../bfd/config.bfd
  5965. fi
  5966. # Check whether this target is native and supports gcore.
  5967. if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
  5968. && $gdb_have_gcore; then
  5969. HAVE_NATIVE_GCORE_TARGET=1
  5970. fi
  5971. fi
  5972. done
  5973. if test x${all_targets} = xtrue; then
  5974. if test x${enable_64_bit_bfd} = xyes; then
  5975. TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
  5976. else
  5977. TARGET_OBS='$(ALL_TARGET_OBS)'
  5978. fi
  5979. fi
  5980. # For other settings, only the main target counts.
  5981. gdb_sim=
  5982. gdb_osabi=
  5983. targ=$target; . ${srcdir}/configure.tgt
  5984. # Fetch the default architecture and default target vector from BFD.
  5985. targ=$target; . $srcdir/../bfd/config.bfd
  5986. # We only want the first architecture, so strip off the others if
  5987. # there is more than one.
  5988. targ_archs=`echo $targ_archs | sed 's/ .*//'`
  5989. if test "x$targ_archs" != x; then
  5990. cat >>confdefs.h <<_ACEOF
  5991. #define DEFAULT_BFD_ARCH $targ_archs
  5992. _ACEOF
  5993. fi
  5994. if test "x$targ_defvec" != x; then
  5995. cat >>confdefs.h <<_ACEOF
  5996. #define DEFAULT_BFD_VEC $targ_defvec
  5997. _ACEOF
  5998. fi
  5999. # Enable MI.
  6000. # Check whether --enable-gdbmi was given.
  6001. if test "${enable_gdbmi+set}" = set; then :
  6002. enableval=$enable_gdbmi; case $enableval in
  6003. yes | no)
  6004. ;;
  6005. *)
  6006. as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
  6007. esac
  6008. else
  6009. enable_gdbmi=yes
  6010. fi
  6011. if test x"$enable_gdbmi" = xyes; then
  6012. if test -d "$srcdir/mi"; then
  6013. CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
  6014. CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
  6015. CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
  6016. ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
  6017. fi
  6018. fi
  6019. # Enable TUI.
  6020. # Check whether --enable-tui was given.
  6021. if test "${enable_tui+set}" = set; then :
  6022. enableval=$enable_tui; case $enableval in
  6023. yes | no | auto)
  6024. ;;
  6025. *)
  6026. as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
  6027. esac
  6028. else
  6029. enable_tui=auto
  6030. fi
  6031. # Enable gdbtk.
  6032. # Check whether --enable-gdbtk was given.
  6033. if test "${enable_gdbtk+set}" = set; then :
  6034. enableval=$enable_gdbtk; case $enableval in
  6035. yes | no)
  6036. ;;
  6037. *)
  6038. as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
  6039. esac
  6040. else
  6041. if test -d "$srcdir/gdbtk"; then
  6042. enable_gdbtk=yes
  6043. else
  6044. enable_gdbtk=no
  6045. fi
  6046. fi
  6047. # We unconditionally disable gdbtk tests on selected platforms.
  6048. case $host_os in
  6049. go32* | windows*)
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
  6051. $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
  6052. enable_gdbtk=no ;;
  6053. esac
  6054. # Handle optional debuginfod support
  6055. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  6056. if test -n "$ac_tool_prefix"; then
  6057. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  6058. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6060. $as_echo_n "checking for $ac_word... " >&6; }
  6061. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. case $PKG_CONFIG in
  6065. [\\/]* | ?:[\\/]*)
  6066. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6067. ;;
  6068. *)
  6069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6070. for as_dir in $PATH
  6071. do
  6072. IFS=$as_save_IFS
  6073. test -z "$as_dir" && as_dir=.
  6074. for ac_exec_ext in '' $ac_executable_extensions; do
  6075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6076. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6078. break 2
  6079. fi
  6080. done
  6081. done
  6082. IFS=$as_save_IFS
  6083. ;;
  6084. esac
  6085. fi
  6086. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6087. if test -n "$PKG_CONFIG"; then
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6089. $as_echo "$PKG_CONFIG" >&6; }
  6090. else
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6092. $as_echo "no" >&6; }
  6093. fi
  6094. fi
  6095. if test -z "$ac_cv_path_PKG_CONFIG"; then
  6096. ac_pt_PKG_CONFIG=$PKG_CONFIG
  6097. # Extract the first word of "pkg-config", so it can be a program name with args.
  6098. set dummy pkg-config; ac_word=$2
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6100. $as_echo_n "checking for $ac_word... " >&6; }
  6101. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. case $ac_pt_PKG_CONFIG in
  6105. [\\/]* | ?:[\\/]*)
  6106. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  6107. ;;
  6108. *)
  6109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6110. for as_dir in $PATH
  6111. do
  6112. IFS=$as_save_IFS
  6113. test -z "$as_dir" && as_dir=.
  6114. for ac_exec_ext in '' $ac_executable_extensions; do
  6115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6116. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6118. break 2
  6119. fi
  6120. done
  6121. done
  6122. IFS=$as_save_IFS
  6123. ;;
  6124. esac
  6125. fi
  6126. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6127. if test -n "$ac_pt_PKG_CONFIG"; then
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  6129. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  6130. else
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6132. $as_echo "no" >&6; }
  6133. fi
  6134. if test "x$ac_pt_PKG_CONFIG" = x; then
  6135. PKG_CONFIG=""
  6136. else
  6137. case $cross_compiling:$ac_tool_warned in
  6138. yes:)
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6140. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6141. ac_tool_warned=yes ;;
  6142. esac
  6143. PKG_CONFIG=$ac_pt_PKG_CONFIG
  6144. fi
  6145. else
  6146. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6147. fi
  6148. fi
  6149. if test -n "$PKG_CONFIG"; then
  6150. _pkg_min_version=0.9.0
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  6152. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  6153. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6155. $as_echo "yes" >&6; }
  6156. else
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6158. $as_echo "no" >&6; }
  6159. PKG_CONFIG=""
  6160. fi
  6161. fi
  6162. # Handle optional debuginfod support
  6163. # Check whether --with-debuginfod was given.
  6164. if test "${with_debuginfod+set}" = set; then :
  6165. withval=$with_debuginfod;
  6166. else
  6167. with_debuginfod=auto
  6168. fi
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
  6170. $as_echo_n "checking whether to use debuginfod... " >&6; }
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
  6172. $as_echo "$with_debuginfod" >&6; }
  6173. if test "x$with_debuginfod" != xno; then
  6174. pkg_failed=no
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
  6176. $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
  6177. if test -n "$DEBUGINFOD_CFLAGS"; then
  6178. pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
  6179. elif test -n "$PKG_CONFIG"; then
  6180. if test -n "$PKG_CONFIG" && \
  6181. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
  6182. ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
  6183. ac_status=$?
  6184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6185. test $ac_status = 0; }; then
  6186. pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
  6187. test "x$?" != "x0" && pkg_failed=yes
  6188. else
  6189. pkg_failed=yes
  6190. fi
  6191. else
  6192. pkg_failed=untried
  6193. fi
  6194. if test -n "$DEBUGINFOD_LIBS"; then
  6195. pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
  6196. elif test -n "$PKG_CONFIG"; then
  6197. if test -n "$PKG_CONFIG" && \
  6198. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
  6199. ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
  6200. ac_status=$?
  6201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6202. test $ac_status = 0; }; then
  6203. pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
  6204. test "x$?" != "x0" && pkg_failed=yes
  6205. else
  6206. pkg_failed=yes
  6207. fi
  6208. else
  6209. pkg_failed=untried
  6210. fi
  6211. if test $pkg_failed = no; then
  6212. pkg_save_LDFLAGS="$LDFLAGS"
  6213. LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
  6214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6215. /* end confdefs.h. */
  6216. int
  6217. main ()
  6218. {
  6219. ;
  6220. return 0;
  6221. }
  6222. _ACEOF
  6223. if ac_fn_c_try_link "$LINENO"; then :
  6224. else
  6225. pkg_failed=yes
  6226. fi
  6227. rm -f core conftest.err conftest.$ac_objext \
  6228. conftest$ac_exeext conftest.$ac_ext
  6229. LDFLAGS=$pkg_save_LDFLAGS
  6230. fi
  6231. if test $pkg_failed = yes; then
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6233. $as_echo "no" >&6; }
  6234. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6235. _pkg_short_errors_supported=yes
  6236. else
  6237. _pkg_short_errors_supported=no
  6238. fi
  6239. if test $_pkg_short_errors_supported = yes; then
  6240. DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
  6241. else
  6242. DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
  6243. fi
  6244. # Put the nasty error message in config.log where it belongs
  6245. echo "$DEBUGINFOD_PKG_ERRORS" >&5
  6246. if test "x$with_debuginfod" = xyes; then
  6247. as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
  6248. else
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
  6250. $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
  6251. fi
  6252. elif test $pkg_failed = untried; then
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6254. $as_echo "no" >&6; }
  6255. if test "x$with_debuginfod" = xyes; then
  6256. as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
  6257. else
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
  6259. $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
  6260. fi
  6261. else
  6262. DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
  6263. DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6265. $as_echo "yes" >&6; }
  6266. $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
  6267. fi
  6268. else
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
  6270. $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
  6271. fi
  6272. # Libunwind support for ia64.
  6273. # Check whether --with-libunwind-ia64 was given.
  6274. if test "${with_libunwind_ia64+set}" = set; then :
  6275. withval=$with_libunwind_ia64;
  6276. else
  6277. with_libunwind_ia64=auto
  6278. fi
  6279. # Backward compatibility option.
  6280. if test "${with_libunwind+set}" = set; then
  6281. if test x"$with_libunwind_ia64" != xauto; then
  6282. as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
  6283. fi
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
  6285. $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
  6286. with_libunwind_ia64="$with_libunwind"
  6287. fi
  6288. case "$with_libunwind_ia64" in
  6289. yes | no)
  6290. ;;
  6291. auto)
  6292. for ac_header in libunwind-ia64.h
  6293. do :
  6294. ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
  6295. if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
  6296. cat >>confdefs.h <<_ACEOF
  6297. #define HAVE_LIBUNWIND_IA64_H 1
  6298. _ACEOF
  6299. fi
  6300. done
  6301. with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
  6302. ;;
  6303. *)
  6304. as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
  6305. ;;
  6306. esac
  6307. if test x"$with_libunwind_ia64" = xyes; then
  6308. for ac_header in libunwind-ia64.h
  6309. do :
  6310. ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
  6311. if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
  6312. cat >>confdefs.h <<_ACEOF
  6313. #define HAVE_LIBUNWIND_IA64_H 1
  6314. _ACEOF
  6315. fi
  6316. done
  6317. if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
  6318. as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
  6319. fi
  6320. CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
  6321. CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
  6322. CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
  6323. fi
  6324. opt_curses=no
  6325. # Check whether --with-curses was given.
  6326. if test "${with_curses+set}" = set; then :
  6327. withval=$with_curses; opt_curses=$withval
  6328. fi
  6329. prefer_curses=no
  6330. if test "$opt_curses" = "yes"; then
  6331. prefer_curses=yes
  6332. fi
  6333. # Profiling support.
  6334. # Check whether --enable-profiling was given.
  6335. if test "${enable_profiling+set}" = set; then :
  6336. enableval=$enable_profiling; case $enableval in
  6337. yes | no)
  6338. ;;
  6339. *)
  6340. as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
  6341. esac
  6342. else
  6343. enable_profiling=no
  6344. fi
  6345. for ac_func in monstartup _mcleanup
  6346. do :
  6347. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6348. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6349. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6350. cat >>confdefs.h <<_ACEOF
  6351. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6352. _ACEOF
  6353. fi
  6354. done
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
  6356. $as_echo_n "checking for _etext... " >&6; }
  6357. if ${ac_cv_var__etext+:} false; then :
  6358. $as_echo_n "(cached) " >&6
  6359. else
  6360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6361. /* end confdefs.h. */
  6362. #include <stdlib.h>
  6363. extern char _etext;
  6364. int
  6365. main ()
  6366. {
  6367. free (&_etext);
  6368. ;
  6369. return 0;
  6370. }
  6371. _ACEOF
  6372. if ac_fn_c_try_link "$LINENO"; then :
  6373. ac_cv_var__etext=yes
  6374. else
  6375. ac_cv_var__etext=no
  6376. fi
  6377. rm -f core conftest.err conftest.$ac_objext \
  6378. conftest$ac_exeext conftest.$ac_ext
  6379. fi
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
  6381. $as_echo "$ac_cv_var__etext" >&6; }
  6382. if test "$ac_cv_var__etext" = yes; then
  6383. $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
  6384. fi
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
  6386. $as_echo_n "checking for etext... " >&6; }
  6387. if ${ac_cv_var_etext+:} false; then :
  6388. $as_echo_n "(cached) " >&6
  6389. else
  6390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6391. /* end confdefs.h. */
  6392. #include <stdlib.h>
  6393. extern char etext;
  6394. int
  6395. main ()
  6396. {
  6397. free (&etext);
  6398. ;
  6399. return 0;
  6400. }
  6401. _ACEOF
  6402. if ac_fn_c_try_link "$LINENO"; then :
  6403. ac_cv_var_etext=yes
  6404. else
  6405. ac_cv_var_etext=no
  6406. fi
  6407. rm -f core conftest.err conftest.$ac_objext \
  6408. conftest$ac_exeext conftest.$ac_ext
  6409. fi
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
  6411. $as_echo "$ac_cv_var_etext" >&6; }
  6412. if test "$ac_cv_var_etext" = yes; then
  6413. $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
  6414. fi
  6415. if test "$enable_profiling" = yes ; then
  6416. if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
  6417. as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
  6418. fi
  6419. PROFILE_CFLAGS=-pg
  6420. OLD_CFLAGS="$CFLAGS"
  6421. CFLAGS="$CFLAGS $PROFILE_CFLAGS"
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
  6423. $as_echo_n "checking whether $CC supports -pg... " >&6; }
  6424. if ${ac_cv_cc_supports_pg+:} false; then :
  6425. $as_echo_n "(cached) " >&6
  6426. else
  6427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6428. /* end confdefs.h. */
  6429. int
  6430. main ()
  6431. {
  6432. int x;
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. if ac_fn_c_try_compile "$LINENO"; then :
  6438. ac_cv_cc_supports_pg=yes
  6439. else
  6440. ac_cv_cc_supports_pg=no
  6441. fi
  6442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6443. fi
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
  6445. $as_echo "$ac_cv_cc_supports_pg" >&6; }
  6446. if test "$ac_cv_cc_supports_pg" = no; then
  6447. as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
  6448. fi
  6449. CFLAGS="$OLD_CFLAGS"
  6450. fi
  6451. CODESIGN_CERT=
  6452. # Check whether --enable-codesign was given.
  6453. if test "${enable_codesign+set}" = set; then :
  6454. enableval=$enable_codesign; CODESIGN_CERT=$enableval
  6455. fi
  6456. # Check whether --with-pkgversion was given.
  6457. if test "${with_pkgversion+set}" = set; then :
  6458. withval=$with_pkgversion; case "$withval" in
  6459. yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
  6460. no) PKGVERSION= ;;
  6461. *) PKGVERSION="($withval) " ;;
  6462. esac
  6463. else
  6464. PKGVERSION="(GDB) "
  6465. fi
  6466. # Check whether --with-bugurl was given.
  6467. if test "${with_bugurl+set}" = set; then :
  6468. withval=$with_bugurl; case "$withval" in
  6469. yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
  6470. no) BUGURL=
  6471. ;;
  6472. *) BUGURL="$withval"
  6473. ;;
  6474. esac
  6475. else
  6476. BUGURL="https://www.gnu.org/software/gdb/bugs/"
  6477. fi
  6478. case ${BUGURL} in
  6479. "")
  6480. REPORT_BUGS_TO=
  6481. REPORT_BUGS_TEXI=
  6482. ;;
  6483. *)
  6484. REPORT_BUGS_TO="<$BUGURL>"
  6485. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  6486. ;;
  6487. esac;
  6488. cat >>confdefs.h <<_ACEOF
  6489. #define PKGVERSION "$PKGVERSION"
  6490. _ACEOF
  6491. cat >>confdefs.h <<_ACEOF
  6492. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  6493. _ACEOF
  6494. # --------------------- #
  6495. # Checks for programs. #
  6496. # --------------------- #
  6497. for ac_prog in gawk mawk nawk awk
  6498. do
  6499. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6500. set dummy $ac_prog; ac_word=$2
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6502. $as_echo_n "checking for $ac_word... " >&6; }
  6503. if ${ac_cv_prog_AWK+:} false; then :
  6504. $as_echo_n "(cached) " >&6
  6505. else
  6506. if test -n "$AWK"; then
  6507. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6508. else
  6509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6510. for as_dir in $PATH
  6511. do
  6512. IFS=$as_save_IFS
  6513. test -z "$as_dir" && as_dir=.
  6514. for ac_exec_ext in '' $ac_executable_extensions; do
  6515. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6516. ac_cv_prog_AWK="$ac_prog"
  6517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6518. break 2
  6519. fi
  6520. done
  6521. done
  6522. IFS=$as_save_IFS
  6523. fi
  6524. fi
  6525. AWK=$ac_cv_prog_AWK
  6526. if test -n "$AWK"; then
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6528. $as_echo "$AWK" >&6; }
  6529. else
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6531. $as_echo "no" >&6; }
  6532. fi
  6533. test -n "$AWK" && break
  6534. done
  6535. # Find a good install program. We prefer a C program (faster),
  6536. # so one script is as good as another. But avoid the broken or
  6537. # incompatible versions:
  6538. # SysV /etc/install, /usr/sbin/install
  6539. # SunOS /usr/etc/install
  6540. # IRIX /sbin/install
  6541. # AIX /bin/install
  6542. # AmigaOS /C/install, which installs bootblocks on floppy discs
  6543. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  6544. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  6545. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6546. # OS/2's system install, which has a completely different semantic
  6547. # ./install, which can be erroneously created by make from ./install.sh.
  6548. # Reject install programs that cannot install multiple files.
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  6550. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  6551. if test -z "$INSTALL"; then
  6552. if ${ac_cv_path_install+:} false; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6556. for as_dir in $PATH
  6557. do
  6558. IFS=$as_save_IFS
  6559. test -z "$as_dir" && as_dir=.
  6560. # Account for people who put trailing slashes in PATH elements.
  6561. case $as_dir/ in #((
  6562. ./ | .// | /[cC]/* | \
  6563. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  6564. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  6565. /usr/ucb/* ) ;;
  6566. *)
  6567. # OSF1 and SCO ODT 3.0 have their own names for install.
  6568. # Don't use installbsd from OSF since it installs stuff as root
  6569. # by default.
  6570. for ac_prog in ginstall scoinst install; do
  6571. for ac_exec_ext in '' $ac_executable_extensions; do
  6572. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  6573. if test $ac_prog = install &&
  6574. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6575. # AIX install. It has an incompatible calling convention.
  6576. :
  6577. elif test $ac_prog = install &&
  6578. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6579. # program-specific install script used by HP pwplus--don't use.
  6580. :
  6581. else
  6582. rm -rf conftest.one conftest.two conftest.dir
  6583. echo one > conftest.one
  6584. echo two > conftest.two
  6585. mkdir conftest.dir
  6586. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  6587. test -s conftest.one && test -s conftest.two &&
  6588. test -s conftest.dir/conftest.one &&
  6589. test -s conftest.dir/conftest.two
  6590. then
  6591. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  6592. break 3
  6593. fi
  6594. fi
  6595. fi
  6596. done
  6597. done
  6598. ;;
  6599. esac
  6600. done
  6601. IFS=$as_save_IFS
  6602. rm -rf conftest.one conftest.two conftest.dir
  6603. fi
  6604. if test "${ac_cv_path_install+set}" = set; then
  6605. INSTALL=$ac_cv_path_install
  6606. else
  6607. # As a last resort, use the slow shell script. Don't cache a
  6608. # value for INSTALL within a source directory, because that will
  6609. # break other packages using the cache if that directory is
  6610. # removed, or if the value is a relative name.
  6611. INSTALL=$ac_install_sh
  6612. fi
  6613. fi
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  6615. $as_echo "$INSTALL" >&6; }
  6616. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  6617. # It thinks the first close brace ends the variable substitution.
  6618. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  6619. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  6620. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6622. $as_echo_n "checking whether ln -s works... " >&6; }
  6623. LN_S=$as_ln_s
  6624. if test "$LN_S" = "ln -s"; then
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6626. $as_echo "yes" >&6; }
  6627. else
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6629. $as_echo "no, using $LN_S" >&6; }
  6630. fi
  6631. if test -n "$ac_tool_prefix"; then
  6632. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6633. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6635. $as_echo_n "checking for $ac_word... " >&6; }
  6636. if ${ac_cv_prog_RANLIB+:} false; then :
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. if test -n "$RANLIB"; then
  6640. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6641. else
  6642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6643. for as_dir in $PATH
  6644. do
  6645. IFS=$as_save_IFS
  6646. test -z "$as_dir" && as_dir=.
  6647. for ac_exec_ext in '' $ac_executable_extensions; do
  6648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6649. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6651. break 2
  6652. fi
  6653. done
  6654. done
  6655. IFS=$as_save_IFS
  6656. fi
  6657. fi
  6658. RANLIB=$ac_cv_prog_RANLIB
  6659. if test -n "$RANLIB"; then
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6661. $as_echo "$RANLIB" >&6; }
  6662. else
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6664. $as_echo "no" >&6; }
  6665. fi
  6666. fi
  6667. if test -z "$ac_cv_prog_RANLIB"; then
  6668. ac_ct_RANLIB=$RANLIB
  6669. # Extract the first word of "ranlib", so it can be a program name with args.
  6670. set dummy ranlib; ac_word=$2
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6672. $as_echo_n "checking for $ac_word... " >&6; }
  6673. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6674. $as_echo_n "(cached) " >&6
  6675. else
  6676. if test -n "$ac_ct_RANLIB"; then
  6677. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6678. else
  6679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6680. for as_dir in $PATH
  6681. do
  6682. IFS=$as_save_IFS
  6683. test -z "$as_dir" && as_dir=.
  6684. for ac_exec_ext in '' $ac_executable_extensions; do
  6685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6686. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6688. break 2
  6689. fi
  6690. done
  6691. done
  6692. IFS=$as_save_IFS
  6693. fi
  6694. fi
  6695. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6696. if test -n "$ac_ct_RANLIB"; then
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6698. $as_echo "$ac_ct_RANLIB" >&6; }
  6699. else
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6701. $as_echo "no" >&6; }
  6702. fi
  6703. if test "x$ac_ct_RANLIB" = x; then
  6704. RANLIB=":"
  6705. else
  6706. case $cross_compiling:$ac_tool_warned in
  6707. yes:)
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6710. ac_tool_warned=yes ;;
  6711. esac
  6712. RANLIB=$ac_ct_RANLIB
  6713. fi
  6714. else
  6715. RANLIB="$ac_cv_prog_RANLIB"
  6716. fi
  6717. for ac_prog in 'bison -y' byacc
  6718. do
  6719. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6720. set dummy $ac_prog; ac_word=$2
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6722. $as_echo_n "checking for $ac_word... " >&6; }
  6723. if ${ac_cv_prog_YACC+:} false; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. if test -n "$YACC"; then
  6727. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6728. else
  6729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6730. for as_dir in $PATH
  6731. do
  6732. IFS=$as_save_IFS
  6733. test -z "$as_dir" && as_dir=.
  6734. for ac_exec_ext in '' $ac_executable_extensions; do
  6735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6736. ac_cv_prog_YACC="$ac_prog"
  6737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6738. break 2
  6739. fi
  6740. done
  6741. done
  6742. IFS=$as_save_IFS
  6743. fi
  6744. fi
  6745. YACC=$ac_cv_prog_YACC
  6746. if test -n "$YACC"; then
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6748. $as_echo "$YACC" >&6; }
  6749. else
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6751. $as_echo "no" >&6; }
  6752. fi
  6753. test -n "$YACC" && break
  6754. done
  6755. test -n "$YACC" || YACC="yacc"
  6756. if test -n "$ac_tool_prefix"; then
  6757. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6758. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6760. $as_echo_n "checking for $ac_word... " >&6; }
  6761. if ${ac_cv_prog_AR+:} false; then :
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. if test -n "$AR"; then
  6765. ac_cv_prog_AR="$AR" # Let the user override the test.
  6766. else
  6767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6768. for as_dir in $PATH
  6769. do
  6770. IFS=$as_save_IFS
  6771. test -z "$as_dir" && as_dir=.
  6772. for ac_exec_ext in '' $ac_executable_extensions; do
  6773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6774. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6776. break 2
  6777. fi
  6778. done
  6779. done
  6780. IFS=$as_save_IFS
  6781. fi
  6782. fi
  6783. AR=$ac_cv_prog_AR
  6784. if test -n "$AR"; then
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6786. $as_echo "$AR" >&6; }
  6787. else
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6789. $as_echo "no" >&6; }
  6790. fi
  6791. fi
  6792. if test -z "$ac_cv_prog_AR"; then
  6793. ac_ct_AR=$AR
  6794. # Extract the first word of "ar", so it can be a program name with args.
  6795. set dummy ar; ac_word=$2
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6797. $as_echo_n "checking for $ac_word... " >&6; }
  6798. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6799. $as_echo_n "(cached) " >&6
  6800. else
  6801. if test -n "$ac_ct_AR"; then
  6802. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6803. else
  6804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6805. for as_dir in $PATH
  6806. do
  6807. IFS=$as_save_IFS
  6808. test -z "$as_dir" && as_dir=.
  6809. for ac_exec_ext in '' $ac_executable_extensions; do
  6810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6811. ac_cv_prog_ac_ct_AR="ar"
  6812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6813. break 2
  6814. fi
  6815. done
  6816. done
  6817. IFS=$as_save_IFS
  6818. fi
  6819. fi
  6820. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6821. if test -n "$ac_ct_AR"; then
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6823. $as_echo "$ac_ct_AR" >&6; }
  6824. else
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6826. $as_echo "no" >&6; }
  6827. fi
  6828. if test "x$ac_ct_AR" = x; then
  6829. AR=""
  6830. else
  6831. case $cross_compiling:$ac_tool_warned in
  6832. yes:)
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6835. ac_tool_warned=yes ;;
  6836. esac
  6837. AR=$ac_ct_AR
  6838. fi
  6839. else
  6840. AR="$ac_cv_prog_AR"
  6841. fi
  6842. if test -n "$ac_tool_prefix"; then
  6843. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6844. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6846. $as_echo_n "checking for $ac_word... " >&6; }
  6847. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6848. $as_echo_n "(cached) " >&6
  6849. else
  6850. if test -n "$DLLTOOL"; then
  6851. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6852. else
  6853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6854. for as_dir in $PATH
  6855. do
  6856. IFS=$as_save_IFS
  6857. test -z "$as_dir" && as_dir=.
  6858. for ac_exec_ext in '' $ac_executable_extensions; do
  6859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6860. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6862. break 2
  6863. fi
  6864. done
  6865. done
  6866. IFS=$as_save_IFS
  6867. fi
  6868. fi
  6869. DLLTOOL=$ac_cv_prog_DLLTOOL
  6870. if test -n "$DLLTOOL"; then
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6872. $as_echo "$DLLTOOL" >&6; }
  6873. else
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6875. $as_echo "no" >&6; }
  6876. fi
  6877. fi
  6878. if test -z "$ac_cv_prog_DLLTOOL"; then
  6879. ac_ct_DLLTOOL=$DLLTOOL
  6880. # Extract the first word of "dlltool", so it can be a program name with args.
  6881. set dummy dlltool; ac_word=$2
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6883. $as_echo_n "checking for $ac_word... " >&6; }
  6884. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6885. $as_echo_n "(cached) " >&6
  6886. else
  6887. if test -n "$ac_ct_DLLTOOL"; then
  6888. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6889. else
  6890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6891. for as_dir in $PATH
  6892. do
  6893. IFS=$as_save_IFS
  6894. test -z "$as_dir" && as_dir=.
  6895. for ac_exec_ext in '' $ac_executable_extensions; do
  6896. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6897. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6899. break 2
  6900. fi
  6901. done
  6902. done
  6903. IFS=$as_save_IFS
  6904. fi
  6905. fi
  6906. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6907. if test -n "$ac_ct_DLLTOOL"; then
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6909. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6910. else
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6912. $as_echo "no" >&6; }
  6913. fi
  6914. if test "x$ac_ct_DLLTOOL" = x; then
  6915. DLLTOOL=""
  6916. else
  6917. case $cross_compiling:$ac_tool_warned in
  6918. yes:)
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6920. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6921. ac_tool_warned=yes ;;
  6922. esac
  6923. DLLTOOL=$ac_ct_DLLTOOL
  6924. fi
  6925. else
  6926. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6927. fi
  6928. if test -n "$ac_tool_prefix"; then
  6929. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  6930. set dummy ${ac_tool_prefix}windres; ac_word=$2
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6932. $as_echo_n "checking for $ac_word... " >&6; }
  6933. if ${ac_cv_prog_WINDRES+:} false; then :
  6934. $as_echo_n "(cached) " >&6
  6935. else
  6936. if test -n "$WINDRES"; then
  6937. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  6938. else
  6939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6940. for as_dir in $PATH
  6941. do
  6942. IFS=$as_save_IFS
  6943. test -z "$as_dir" && as_dir=.
  6944. for ac_exec_ext in '' $ac_executable_extensions; do
  6945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6946. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  6947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6948. break 2
  6949. fi
  6950. done
  6951. done
  6952. IFS=$as_save_IFS
  6953. fi
  6954. fi
  6955. WINDRES=$ac_cv_prog_WINDRES
  6956. if test -n "$WINDRES"; then
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  6958. $as_echo "$WINDRES" >&6; }
  6959. else
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6961. $as_echo "no" >&6; }
  6962. fi
  6963. fi
  6964. if test -z "$ac_cv_prog_WINDRES"; then
  6965. ac_ct_WINDRES=$WINDRES
  6966. # Extract the first word of "windres", so it can be a program name with args.
  6967. set dummy windres; ac_word=$2
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6969. $as_echo_n "checking for $ac_word... " >&6; }
  6970. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  6971. $as_echo_n "(cached) " >&6
  6972. else
  6973. if test -n "$ac_ct_WINDRES"; then
  6974. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  6975. else
  6976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6977. for as_dir in $PATH
  6978. do
  6979. IFS=$as_save_IFS
  6980. test -z "$as_dir" && as_dir=.
  6981. for ac_exec_ext in '' $ac_executable_extensions; do
  6982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6983. ac_cv_prog_ac_ct_WINDRES="windres"
  6984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6985. break 2
  6986. fi
  6987. done
  6988. done
  6989. IFS=$as_save_IFS
  6990. fi
  6991. fi
  6992. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  6993. if test -n "$ac_ct_WINDRES"; then
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  6995. $as_echo "$ac_ct_WINDRES" >&6; }
  6996. else
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6998. $as_echo "no" >&6; }
  6999. fi
  7000. if test "x$ac_ct_WINDRES" = x; then
  7001. WINDRES=""
  7002. else
  7003. case $cross_compiling:$ac_tool_warned in
  7004. yes:)
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7007. ac_tool_warned=yes ;;
  7008. esac
  7009. WINDRES=$ac_ct_WINDRES
  7010. fi
  7011. else
  7012. WINDRES="$ac_cv_prog_WINDRES"
  7013. fi
  7014. case $host_os in
  7015. gnu*)
  7016. # Needed for GNU Hurd hosts.
  7017. if test -n "$ac_tool_prefix"; then
  7018. # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
  7019. set dummy ${ac_tool_prefix}mig; ac_word=$2
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7021. $as_echo_n "checking for $ac_word... " >&6; }
  7022. if ${ac_cv_prog_MIG+:} false; then :
  7023. $as_echo_n "(cached) " >&6
  7024. else
  7025. if test -n "$MIG"; then
  7026. ac_cv_prog_MIG="$MIG" # Let the user override the test.
  7027. else
  7028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7029. for as_dir in $PATH
  7030. do
  7031. IFS=$as_save_IFS
  7032. test -z "$as_dir" && as_dir=.
  7033. for ac_exec_ext in '' $ac_executable_extensions; do
  7034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7035. ac_cv_prog_MIG="${ac_tool_prefix}mig"
  7036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7037. break 2
  7038. fi
  7039. done
  7040. done
  7041. IFS=$as_save_IFS
  7042. fi
  7043. fi
  7044. MIG=$ac_cv_prog_MIG
  7045. if test -n "$MIG"; then
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
  7047. $as_echo "$MIG" >&6; }
  7048. else
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7050. $as_echo "no" >&6; }
  7051. fi
  7052. fi
  7053. if test -z "$ac_cv_prog_MIG"; then
  7054. ac_ct_MIG=$MIG
  7055. # Extract the first word of "mig", so it can be a program name with args.
  7056. set dummy mig; ac_word=$2
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7058. $as_echo_n "checking for $ac_word... " >&6; }
  7059. if ${ac_cv_prog_ac_ct_MIG+:} false; then :
  7060. $as_echo_n "(cached) " >&6
  7061. else
  7062. if test -n "$ac_ct_MIG"; then
  7063. ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
  7064. else
  7065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7066. for as_dir in $PATH
  7067. do
  7068. IFS=$as_save_IFS
  7069. test -z "$as_dir" && as_dir=.
  7070. for ac_exec_ext in '' $ac_executable_extensions; do
  7071. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7072. ac_cv_prog_ac_ct_MIG="mig"
  7073. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7074. break 2
  7075. fi
  7076. done
  7077. done
  7078. IFS=$as_save_IFS
  7079. fi
  7080. fi
  7081. ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
  7082. if test -n "$ac_ct_MIG"; then
  7083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
  7084. $as_echo "$ac_ct_MIG" >&6; }
  7085. else
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7087. $as_echo "no" >&6; }
  7088. fi
  7089. if test "x$ac_ct_MIG" = x; then
  7090. MIG=""
  7091. else
  7092. case $cross_compiling:$ac_tool_warned in
  7093. yes:)
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7095. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7096. ac_tool_warned=yes ;;
  7097. esac
  7098. MIG=$ac_ct_MIG
  7099. fi
  7100. else
  7101. MIG="$ac_cv_prog_MIG"
  7102. fi
  7103. if test x"$MIG" = x; then
  7104. as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
  7105. fi
  7106. ;;
  7107. esac
  7108. # ---------------------- #
  7109. # Checks for libraries. #
  7110. # ---------------------- #
  7111. # We might need to link with -lm; most simulators need it.
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
  7113. $as_echo_n "checking for main in -lm... " >&6; }
  7114. if ${ac_cv_lib_m_main+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. ac_check_lib_save_LIBS=$LIBS
  7118. LIBS="-lm $LIBS"
  7119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7120. /* end confdefs.h. */
  7121. int
  7122. main ()
  7123. {
  7124. return main ();
  7125. ;
  7126. return 0;
  7127. }
  7128. _ACEOF
  7129. if ac_fn_c_try_link "$LINENO"; then :
  7130. ac_cv_lib_m_main=yes
  7131. else
  7132. ac_cv_lib_m_main=no
  7133. fi
  7134. rm -f core conftest.err conftest.$ac_objext \
  7135. conftest$ac_exeext conftest.$ac_ext
  7136. LIBS=$ac_check_lib_save_LIBS
  7137. fi
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
  7139. $as_echo "$ac_cv_lib_m_main" >&6; }
  7140. if test "x$ac_cv_lib_m_main" = xyes; then :
  7141. cat >>confdefs.h <<_ACEOF
  7142. #define HAVE_LIBM 1
  7143. _ACEOF
  7144. LIBS="-lm $LIBS"
  7145. fi
  7146. # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  7148. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  7149. if ${ac_cv_search_gethostbyname+:} false; then :
  7150. $as_echo_n "(cached) " >&6
  7151. else
  7152. ac_func_search_save_LIBS=$LIBS
  7153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7154. /* end confdefs.h. */
  7155. /* Override any GCC internal prototype to avoid an error.
  7156. Use char because int might match the return type of a GCC
  7157. builtin and then its argument prototype would still apply. */
  7158. #ifdef __cplusplus
  7159. extern "C"
  7160. #endif
  7161. char gethostbyname ();
  7162. int
  7163. main ()
  7164. {
  7165. return gethostbyname ();
  7166. ;
  7167. return 0;
  7168. }
  7169. _ACEOF
  7170. for ac_lib in '' nsl; do
  7171. if test -z "$ac_lib"; then
  7172. ac_res="none required"
  7173. else
  7174. ac_res=-l$ac_lib
  7175. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7176. fi
  7177. if ac_fn_c_try_link "$LINENO"; then :
  7178. ac_cv_search_gethostbyname=$ac_res
  7179. fi
  7180. rm -f core conftest.err conftest.$ac_objext \
  7181. conftest$ac_exeext
  7182. if ${ac_cv_search_gethostbyname+:} false; then :
  7183. break
  7184. fi
  7185. done
  7186. if ${ac_cv_search_gethostbyname+:} false; then :
  7187. else
  7188. ac_cv_search_gethostbyname=no
  7189. fi
  7190. rm conftest.$ac_ext
  7191. LIBS=$ac_func_search_save_LIBS
  7192. fi
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  7194. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  7195. ac_res=$ac_cv_search_gethostbyname
  7196. if test "$ac_res" != no; then :
  7197. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7198. fi
  7199. # Some systems (e.g. Solaris) have `socketpair' in libsocket.
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
  7201. $as_echo_n "checking for library containing socketpair... " >&6; }
  7202. if ${ac_cv_search_socketpair+:} false; then :
  7203. $as_echo_n "(cached) " >&6
  7204. else
  7205. ac_func_search_save_LIBS=$LIBS
  7206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7207. /* end confdefs.h. */
  7208. /* Override any GCC internal prototype to avoid an error.
  7209. Use char because int might match the return type of a GCC
  7210. builtin and then its argument prototype would still apply. */
  7211. #ifdef __cplusplus
  7212. extern "C"
  7213. #endif
  7214. char socketpair ();
  7215. int
  7216. main ()
  7217. {
  7218. return socketpair ();
  7219. ;
  7220. return 0;
  7221. }
  7222. _ACEOF
  7223. for ac_lib in '' socket; do
  7224. if test -z "$ac_lib"; then
  7225. ac_res="none required"
  7226. else
  7227. ac_res=-l$ac_lib
  7228. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7229. fi
  7230. if ac_fn_c_try_link "$LINENO"; then :
  7231. ac_cv_search_socketpair=$ac_res
  7232. fi
  7233. rm -f core conftest.err conftest.$ac_objext \
  7234. conftest$ac_exeext
  7235. if ${ac_cv_search_socketpair+:} false; then :
  7236. break
  7237. fi
  7238. done
  7239. if ${ac_cv_search_socketpair+:} false; then :
  7240. else
  7241. ac_cv_search_socketpair=no
  7242. fi
  7243. rm conftest.$ac_ext
  7244. LIBS=$ac_func_search_save_LIBS
  7245. fi
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
  7247. $as_echo "$ac_cv_search_socketpair" >&6; }
  7248. ac_res=$ac_cv_search_socketpair
  7249. if test "$ac_res" != no; then :
  7250. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7251. fi
  7252. # Link in zlib if we can. This allows us to read compressed debug sections.
  7253. # Use the system's zlib library.
  7254. zlibdir="-L\$(top_builddir)/../zlib"
  7255. zlibinc="-I\$(top_srcdir)/../zlib"
  7256. # Check whether --with-system-zlib was given.
  7257. if test "${with_system_zlib+set}" = set; then :
  7258. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7259. zlibdir=
  7260. zlibinc=
  7261. fi
  7262. fi
  7263. if test "X$prefix" = "XNONE"; then
  7264. acl_final_prefix="$ac_default_prefix"
  7265. else
  7266. acl_final_prefix="$prefix"
  7267. fi
  7268. if test "X$exec_prefix" = "XNONE"; then
  7269. acl_final_exec_prefix='${prefix}'
  7270. else
  7271. acl_final_exec_prefix="$exec_prefix"
  7272. fi
  7273. acl_save_prefix="$prefix"
  7274. prefix="$acl_final_prefix"
  7275. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7276. prefix="$acl_save_prefix"
  7277. # Check whether --with-gnu-ld was given.
  7278. if test "${with_gnu_ld+set}" = set; then :
  7279. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7280. else
  7281. with_gnu_ld=no
  7282. fi
  7283. # Prepare PATH_SEPARATOR.
  7284. # The user is always right.
  7285. if test "${PATH_SEPARATOR+set}" != set; then
  7286. echo "#! /bin/sh" >conf$$.sh
  7287. echo "exit 0" >>conf$$.sh
  7288. chmod +x conf$$.sh
  7289. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7290. PATH_SEPARATOR=';'
  7291. else
  7292. PATH_SEPARATOR=:
  7293. fi
  7294. rm -f conf$$.sh
  7295. fi
  7296. ac_prog=ld
  7297. if test "$GCC" = yes; then
  7298. # Check if gcc -print-prog-name=ld gives a path.
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  7300. $as_echo_n "checking for ld used by GCC... " >&6; }
  7301. case $host in
  7302. *-*-mingw*)
  7303. # gcc leaves a trailing carriage return which upsets mingw
  7304. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7305. *)
  7306. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7307. esac
  7308. case $ac_prog in
  7309. # Accept absolute paths.
  7310. [\\/]* | [A-Za-z]:[\\/]*)
  7311. re_direlt='/[^/][^/]*/\.\./'
  7312. # Canonicalize the path of ld
  7313. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7314. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7315. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7316. done
  7317. test -z "$LD" && LD="$ac_prog"
  7318. ;;
  7319. "")
  7320. # If it fails, then pretend we aren't using GCC.
  7321. ac_prog=ld
  7322. ;;
  7323. *)
  7324. # If it is relative, then search for the first ld in PATH.
  7325. with_gnu_ld=unknown
  7326. ;;
  7327. esac
  7328. elif test "$with_gnu_ld" = yes; then
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7330. $as_echo_n "checking for GNU ld... " >&6; }
  7331. else
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7333. $as_echo_n "checking for non-GNU ld... " >&6; }
  7334. fi
  7335. if ${acl_cv_path_LD+:} false; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. if test -z "$LD"; then
  7339. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7340. for ac_dir in $PATH; do
  7341. test -z "$ac_dir" && ac_dir=.
  7342. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7343. acl_cv_path_LD="$ac_dir/$ac_prog"
  7344. # Check to see if the program is GNU ld. I'd rather use --version,
  7345. # but apparently some GNU ld's only accept -v.
  7346. # Break only if it was the GNU/non-GNU ld that we prefer.
  7347. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7348. test "$with_gnu_ld" != no && break
  7349. else
  7350. test "$with_gnu_ld" != yes && break
  7351. fi
  7352. fi
  7353. done
  7354. IFS="$ac_save_ifs"
  7355. else
  7356. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7357. fi
  7358. fi
  7359. LD="$acl_cv_path_LD"
  7360. if test -n "$LD"; then
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7362. $as_echo "$LD" >&6; }
  7363. else
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7365. $as_echo "no" >&6; }
  7366. fi
  7367. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7369. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7370. if ${acl_cv_prog_gnu_ld+:} false; then :
  7371. $as_echo_n "(cached) " >&6
  7372. else
  7373. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7374. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7375. acl_cv_prog_gnu_ld=yes
  7376. else
  7377. acl_cv_prog_gnu_ld=no
  7378. fi
  7379. fi
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  7381. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  7382. with_gnu_ld=$acl_cv_prog_gnu_ld
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  7384. $as_echo_n "checking for shared library run path origin... " >&6; }
  7385. if ${acl_cv_rpath+:} false; then :
  7386. $as_echo_n "(cached) " >&6
  7387. else
  7388. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7389. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7390. . ./conftest.sh
  7391. rm -f ./conftest.sh
  7392. acl_cv_rpath=done
  7393. fi
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  7395. $as_echo "$acl_cv_rpath" >&6; }
  7396. wl="$acl_cv_wl"
  7397. libext="$acl_cv_libext"
  7398. shlibext="$acl_cv_shlibext"
  7399. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7400. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7401. hardcode_direct="$acl_cv_hardcode_direct"
  7402. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7403. # Check whether --enable-rpath was given.
  7404. if test "${enable_rpath+set}" = set; then :
  7405. enableval=$enable_rpath; :
  7406. else
  7407. enable_rpath=yes
  7408. fi
  7409. use_additional=yes
  7410. acl_save_prefix="$prefix"
  7411. prefix="$acl_final_prefix"
  7412. acl_save_exec_prefix="$exec_prefix"
  7413. exec_prefix="$acl_final_exec_prefix"
  7414. eval additional_includedir=\"$includedir\"
  7415. eval additional_libdir=\"$libdir\"
  7416. exec_prefix="$acl_save_exec_prefix"
  7417. prefix="$acl_save_prefix"
  7418. # Check whether --with-libiconv-prefix was given.
  7419. if test "${with_libiconv_prefix+set}" = set; then :
  7420. withval=$with_libiconv_prefix;
  7421. if test "X$withval" = "Xno"; then
  7422. use_additional=no
  7423. else
  7424. if test "X$withval" = "X"; then
  7425. acl_save_prefix="$prefix"
  7426. prefix="$acl_final_prefix"
  7427. acl_save_exec_prefix="$exec_prefix"
  7428. exec_prefix="$acl_final_exec_prefix"
  7429. eval additional_includedir=\"$includedir\"
  7430. eval additional_libdir=\"$libdir\"
  7431. exec_prefix="$acl_save_exec_prefix"
  7432. prefix="$acl_save_prefix"
  7433. else
  7434. additional_includedir="$withval/include"
  7435. additional_libdir="$withval/lib"
  7436. fi
  7437. fi
  7438. fi
  7439. # Check whether --with-libiconv-type was given.
  7440. if test "${with_libiconv_type+set}" = set; then :
  7441. withval=$with_libiconv_type; with_libiconv_type=$withval
  7442. else
  7443. with_libiconv_type=auto
  7444. fi
  7445. lib_type=`eval echo \$with_libiconv_type`
  7446. LIBICONV=
  7447. LTLIBICONV=
  7448. INCICONV=
  7449. rpathdirs=
  7450. ltrpathdirs=
  7451. names_already_handled=
  7452. names_next_round='iconv '
  7453. while test -n "$names_next_round"; do
  7454. names_this_round="$names_next_round"
  7455. names_next_round=
  7456. for name in $names_this_round; do
  7457. already_handled=
  7458. for n in $names_already_handled; do
  7459. if test "$n" = "$name"; then
  7460. already_handled=yes
  7461. break
  7462. fi
  7463. done
  7464. if test -z "$already_handled"; then
  7465. names_already_handled="$names_already_handled $name"
  7466. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7467. eval value=\"\$HAVE_LIB$uppername\"
  7468. if test -n "$value"; then
  7469. if test "$value" = yes; then
  7470. eval value=\"\$LIB$uppername\"
  7471. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7472. eval value=\"\$LTLIB$uppername\"
  7473. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7474. else
  7475. :
  7476. fi
  7477. else
  7478. found_dir=
  7479. found_la=
  7480. found_so=
  7481. found_a=
  7482. if test $use_additional = yes; then
  7483. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  7484. found_dir="$additional_libdir"
  7485. found_so="$additional_libdir/lib$name.$shlibext"
  7486. if test -f "$additional_libdir/lib$name.la"; then
  7487. found_la="$additional_libdir/lib$name.la"
  7488. fi
  7489. elif test x$lib_type != xshared; then
  7490. if test -f "$additional_libdir/lib$name.$libext"; then
  7491. found_dir="$additional_libdir"
  7492. found_a="$additional_libdir/lib$name.$libext"
  7493. if test -f "$additional_libdir/lib$name.la"; then
  7494. found_la="$additional_libdir/lib$name.la"
  7495. fi
  7496. fi
  7497. fi
  7498. fi
  7499. if test "X$found_dir" = "X"; then
  7500. for x in $LDFLAGS $LTLIBICONV; do
  7501. acl_save_prefix="$prefix"
  7502. prefix="$acl_final_prefix"
  7503. acl_save_exec_prefix="$exec_prefix"
  7504. exec_prefix="$acl_final_exec_prefix"
  7505. eval x=\"$x\"
  7506. exec_prefix="$acl_save_exec_prefix"
  7507. prefix="$acl_save_prefix"
  7508. case "$x" in
  7509. -L*)
  7510. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7511. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  7512. found_dir="$dir"
  7513. found_so="$dir/lib$name.$shlibext"
  7514. if test -f "$dir/lib$name.la"; then
  7515. found_la="$dir/lib$name.la"
  7516. fi
  7517. elif test x$lib_type != xshared; then
  7518. if test -f "$dir/lib$name.$libext"; then
  7519. found_dir="$dir"
  7520. found_a="$dir/lib$name.$libext"
  7521. if test -f "$dir/lib$name.la"; then
  7522. found_la="$dir/lib$name.la"
  7523. fi
  7524. fi
  7525. fi
  7526. ;;
  7527. esac
  7528. if test "X$found_dir" != "X"; then
  7529. break
  7530. fi
  7531. done
  7532. fi
  7533. if test "X$found_dir" != "X"; then
  7534. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7535. if test "X$found_so" != "X"; then
  7536. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7537. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7538. else
  7539. haveit=
  7540. for x in $ltrpathdirs; do
  7541. if test "X$x" = "X$found_dir"; then
  7542. haveit=yes
  7543. break
  7544. fi
  7545. done
  7546. if test -z "$haveit"; then
  7547. ltrpathdirs="$ltrpathdirs $found_dir"
  7548. fi
  7549. if test "$hardcode_direct" = yes; then
  7550. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7551. else
  7552. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7553. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7554. haveit=
  7555. for x in $rpathdirs; do
  7556. if test "X$x" = "X$found_dir"; then
  7557. haveit=yes
  7558. break
  7559. fi
  7560. done
  7561. if test -z "$haveit"; then
  7562. rpathdirs="$rpathdirs $found_dir"
  7563. fi
  7564. else
  7565. haveit=
  7566. for x in $LDFLAGS $LIBICONV; do
  7567. acl_save_prefix="$prefix"
  7568. prefix="$acl_final_prefix"
  7569. acl_save_exec_prefix="$exec_prefix"
  7570. exec_prefix="$acl_final_exec_prefix"
  7571. eval x=\"$x\"
  7572. exec_prefix="$acl_save_exec_prefix"
  7573. prefix="$acl_save_prefix"
  7574. if test "X$x" = "X-L$found_dir"; then
  7575. haveit=yes
  7576. break
  7577. fi
  7578. done
  7579. if test -z "$haveit"; then
  7580. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7581. fi
  7582. if test "$hardcode_minus_L" != no; then
  7583. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7584. else
  7585. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7586. fi
  7587. fi
  7588. fi
  7589. fi
  7590. else
  7591. if test "X$found_a" != "X"; then
  7592. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7593. else
  7594. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7595. fi
  7596. fi
  7597. additional_includedir=
  7598. case "$found_dir" in
  7599. */lib | */lib/)
  7600. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7601. additional_includedir="$basedir/include"
  7602. ;;
  7603. esac
  7604. if test "X$additional_includedir" != "X"; then
  7605. if test "X$additional_includedir" != "X/usr/include"; then
  7606. haveit=
  7607. if test "X$additional_includedir" = "X/usr/local/include"; then
  7608. if test -n "$GCC"; then
  7609. case $host_os in
  7610. linux*) haveit=yes;;
  7611. esac
  7612. fi
  7613. fi
  7614. if test -z "$haveit"; then
  7615. for x in $CPPFLAGS $INCICONV; do
  7616. acl_save_prefix="$prefix"
  7617. prefix="$acl_final_prefix"
  7618. acl_save_exec_prefix="$exec_prefix"
  7619. exec_prefix="$acl_final_exec_prefix"
  7620. eval x=\"$x\"
  7621. exec_prefix="$acl_save_exec_prefix"
  7622. prefix="$acl_save_prefix"
  7623. if test "X$x" = "X-I$additional_includedir"; then
  7624. haveit=yes
  7625. break
  7626. fi
  7627. done
  7628. if test -z "$haveit"; then
  7629. if test -d "$additional_includedir"; then
  7630. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7631. fi
  7632. fi
  7633. fi
  7634. fi
  7635. fi
  7636. if test -n "$found_la"; then
  7637. save_libdir="$libdir"
  7638. case "$found_la" in
  7639. */* | *\\*) . "$found_la" ;;
  7640. *) . "./$found_la" ;;
  7641. esac
  7642. libdir="$save_libdir"
  7643. for dep in $dependency_libs; do
  7644. case "$dep" in
  7645. -L*)
  7646. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7647. if test "X$additional_libdir" != "X/usr/lib"; then
  7648. haveit=
  7649. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7650. if test -n "$GCC"; then
  7651. case $host_os in
  7652. linux*) haveit=yes;;
  7653. esac
  7654. fi
  7655. fi
  7656. if test -z "$haveit"; then
  7657. haveit=
  7658. for x in $LDFLAGS $LIBICONV; do
  7659. acl_save_prefix="$prefix"
  7660. prefix="$acl_final_prefix"
  7661. acl_save_exec_prefix="$exec_prefix"
  7662. exec_prefix="$acl_final_exec_prefix"
  7663. eval x=\"$x\"
  7664. exec_prefix="$acl_save_exec_prefix"
  7665. prefix="$acl_save_prefix"
  7666. if test "X$x" = "X-L$additional_libdir"; then
  7667. haveit=yes
  7668. break
  7669. fi
  7670. done
  7671. if test -z "$haveit"; then
  7672. if test -d "$additional_libdir"; then
  7673. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7674. fi
  7675. fi
  7676. haveit=
  7677. for x in $LDFLAGS $LTLIBICONV; do
  7678. acl_save_prefix="$prefix"
  7679. prefix="$acl_final_prefix"
  7680. acl_save_exec_prefix="$exec_prefix"
  7681. exec_prefix="$acl_final_exec_prefix"
  7682. eval x=\"$x\"
  7683. exec_prefix="$acl_save_exec_prefix"
  7684. prefix="$acl_save_prefix"
  7685. if test "X$x" = "X-L$additional_libdir"; then
  7686. haveit=yes
  7687. break
  7688. fi
  7689. done
  7690. if test -z "$haveit"; then
  7691. if test -d "$additional_libdir"; then
  7692. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7693. fi
  7694. fi
  7695. fi
  7696. fi
  7697. ;;
  7698. -R*)
  7699. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7700. if test "$enable_rpath" != no; then
  7701. haveit=
  7702. for x in $rpathdirs; do
  7703. if test "X$x" = "X$dir"; then
  7704. haveit=yes
  7705. break
  7706. fi
  7707. done
  7708. if test -z "$haveit"; then
  7709. rpathdirs="$rpathdirs $dir"
  7710. fi
  7711. haveit=
  7712. for x in $ltrpathdirs; do
  7713. if test "X$x" = "X$dir"; then
  7714. haveit=yes
  7715. break
  7716. fi
  7717. done
  7718. if test -z "$haveit"; then
  7719. ltrpathdirs="$ltrpathdirs $dir"
  7720. fi
  7721. fi
  7722. ;;
  7723. -l*)
  7724. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7725. ;;
  7726. *.la)
  7727. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7728. ;;
  7729. *)
  7730. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7731. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7732. ;;
  7733. esac
  7734. done
  7735. fi
  7736. else
  7737. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  7738. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7739. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7740. else
  7741. LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
  7742. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
  7743. fi
  7744. fi
  7745. fi
  7746. fi
  7747. done
  7748. done
  7749. if test "X$rpathdirs" != "X"; then
  7750. if test -n "$hardcode_libdir_separator"; then
  7751. alldirs=
  7752. for found_dir in $rpathdirs; do
  7753. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7754. done
  7755. acl_save_libdir="$libdir"
  7756. libdir="$alldirs"
  7757. eval flag=\"$hardcode_libdir_flag_spec\"
  7758. libdir="$acl_save_libdir"
  7759. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7760. else
  7761. for found_dir in $rpathdirs; do
  7762. acl_save_libdir="$libdir"
  7763. libdir="$found_dir"
  7764. eval flag=\"$hardcode_libdir_flag_spec\"
  7765. libdir="$acl_save_libdir"
  7766. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7767. done
  7768. fi
  7769. fi
  7770. if test "X$ltrpathdirs" != "X"; then
  7771. for found_dir in $ltrpathdirs; do
  7772. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7773. done
  7774. fi
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  7776. $as_echo_n "checking for iconv... " >&6; }
  7777. if ${am_cv_func_iconv+:} false; then :
  7778. $as_echo_n "(cached) " >&6
  7779. else
  7780. am_cv_func_iconv="no, consider installing GNU libiconv"
  7781. am_cv_lib_iconv=no
  7782. am_save_CPPFLAGS="$CPPFLAGS"
  7783. CPPFLAGS="$CPPFLAGS $INCICONV"
  7784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7785. /* end confdefs.h. */
  7786. #include <stdlib.h>
  7787. #include <iconv.h>
  7788. int
  7789. main ()
  7790. {
  7791. iconv_t cd = iconv_open("","");
  7792. iconv(cd,NULL,NULL,NULL,NULL);
  7793. iconv_close(cd);
  7794. ;
  7795. return 0;
  7796. }
  7797. _ACEOF
  7798. if ac_fn_c_try_link "$LINENO"; then :
  7799. am_cv_func_iconv=yes
  7800. fi
  7801. rm -f core conftest.err conftest.$ac_objext \
  7802. conftest$ac_exeext conftest.$ac_ext
  7803. CPPFLAGS="$am_save_CPPFLAGS"
  7804. if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
  7805. for _libs in .libs _libs; do
  7806. am_save_CPPFLAGS="$CPPFLAGS"
  7807. am_save_LIBS="$LIBS"
  7808. CPPFLAGS="$CPPFLAGS -I../libiconv/include"
  7809. LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
  7810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7811. /* end confdefs.h. */
  7812. #include <stdlib.h>
  7813. #include <iconv.h>
  7814. int
  7815. main ()
  7816. {
  7817. iconv_t cd = iconv_open("","");
  7818. iconv(cd,NULL,NULL,NULL,NULL);
  7819. iconv_close(cd);
  7820. ;
  7821. return 0;
  7822. }
  7823. _ACEOF
  7824. if ac_fn_c_try_link "$LINENO"; then :
  7825. INCICONV="-I../libiconv/include"
  7826. LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
  7827. LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
  7828. am_cv_lib_iconv=yes
  7829. am_cv_func_iconv=yes
  7830. fi
  7831. rm -f core conftest.err conftest.$ac_objext \
  7832. conftest$ac_exeext conftest.$ac_ext
  7833. CPPFLAGS="$am_save_CPPFLAGS"
  7834. LIBS="$am_save_LIBS"
  7835. if test "$am_cv_func_iconv" = "yes"; then
  7836. break
  7837. fi
  7838. done
  7839. fi
  7840. if test "$am_cv_func_iconv" != yes; then
  7841. am_save_CPPFLAGS="$CPPFLAGS"
  7842. am_save_LIBS="$LIBS"
  7843. CPPFLAGS="$CPPFLAGS $INCICONV"
  7844. LIBS="$LIBS $LIBICONV"
  7845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7846. /* end confdefs.h. */
  7847. #include <stdlib.h>
  7848. #include <iconv.h>
  7849. int
  7850. main ()
  7851. {
  7852. iconv_t cd = iconv_open("","");
  7853. iconv(cd,NULL,NULL,NULL,NULL);
  7854. iconv_close(cd);
  7855. ;
  7856. return 0;
  7857. }
  7858. _ACEOF
  7859. if ac_fn_c_try_link "$LINENO"; then :
  7860. am_cv_lib_iconv=yes
  7861. am_cv_func_iconv=yes
  7862. fi
  7863. rm -f core conftest.err conftest.$ac_objext \
  7864. conftest$ac_exeext conftest.$ac_ext
  7865. CPPFLAGS="$am_save_CPPFLAGS"
  7866. LIBS="$am_save_LIBS"
  7867. fi
  7868. fi
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  7870. $as_echo "$am_cv_func_iconv" >&6; }
  7871. if test "$am_cv_func_iconv" = yes; then
  7872. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  7873. fi
  7874. if test "$am_cv_lib_iconv" = yes; then
  7875. for element in $INCICONV; do
  7876. haveit=
  7877. for x in $CPPFLAGS; do
  7878. acl_save_prefix="$prefix"
  7879. prefix="$acl_final_prefix"
  7880. acl_save_exec_prefix="$exec_prefix"
  7881. exec_prefix="$acl_final_exec_prefix"
  7882. eval x=\"$x\"
  7883. exec_prefix="$acl_save_exec_prefix"
  7884. prefix="$acl_save_prefix"
  7885. if test "X$x" = "X$element"; then
  7886. haveit=yes
  7887. break
  7888. fi
  7889. done
  7890. if test -z "$haveit"; then
  7891. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7892. fi
  7893. done
  7894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  7895. $as_echo_n "checking how to link with libiconv... " >&6; }
  7896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  7897. $as_echo "$LIBICONV" >&6; }
  7898. else
  7899. LIBICONV=
  7900. LTLIBICONV=
  7901. fi
  7902. if test "$am_cv_func_iconv" = yes; then
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  7904. $as_echo_n "checking for iconv declaration... " >&6; }
  7905. if ${am_cv_proto_iconv+:} false; then :
  7906. $as_echo_n "(cached) " >&6
  7907. else
  7908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7909. /* end confdefs.h. */
  7910. #include <stdlib.h>
  7911. #include <iconv.h>
  7912. extern
  7913. #ifdef __cplusplus
  7914. "C"
  7915. #endif
  7916. #if defined(__STDC__) || defined(__cplusplus)
  7917. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  7918. #else
  7919. size_t iconv();
  7920. #endif
  7921. int
  7922. main ()
  7923. {
  7924. ;
  7925. return 0;
  7926. }
  7927. _ACEOF
  7928. if ac_fn_c_try_compile "$LINENO"; then :
  7929. am_cv_proto_iconv_arg1=""
  7930. else
  7931. am_cv_proto_iconv_arg1="const"
  7932. fi
  7933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7934. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  7935. fi
  7936. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  7937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  7938. }$am_cv_proto_iconv" >&5
  7939. $as_echo "${ac_t:-
  7940. }$am_cv_proto_iconv" >&6; }
  7941. cat >>confdefs.h <<_ACEOF
  7942. #define ICONV_CONST $am_cv_proto_iconv_arg1
  7943. _ACEOF
  7944. fi
  7945. # GDB may fork/exec the iconv program to get the list of supported character
  7946. # sets. Allow the user to specify where to find it.
  7947. # There are several factors affecting the choice of option name:
  7948. # - There is already --with-libiconv-prefix but we can't use it, it specifies
  7949. # the build-time location of libiconv files.
  7950. # - The program we need to find is iconv, which comes with glibc. The user
  7951. # doesn't necessarily have libiconv installed. Therefore naming this
  7952. # --with-libiconv-foo feels wrong.
  7953. # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
  7954. # defined to work on directories not files (though it really doesn't know
  7955. # the difference).
  7956. # - Calling this --with-iconv-prefix is perceived to cause too much confusion
  7957. # with --with-libiconv-prefix.
  7958. # Putting these together is why the option name is --with-iconv-bin.
  7959. # Check whether --with-iconv-bin was given.
  7960. if test "${with_iconv_bin+set}" = set; then :
  7961. withval=$with_iconv_bin; iconv_bin="${withval}"
  7962. cat >>confdefs.h <<_ACEOF
  7963. #define ICONV_BIN "${iconv_bin}"
  7964. _ACEOF
  7965. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  7966. if test "x$prefix" = xNONE; then
  7967. test_prefix=/usr/local
  7968. else
  7969. test_prefix=$prefix
  7970. fi
  7971. else
  7972. test_prefix=$exec_prefix
  7973. fi
  7974. value=0
  7975. case ${iconv_bin} in
  7976. "${test_prefix}"|"${test_prefix}/"*|\
  7977. '${exec_prefix}'|'${exec_prefix}/'*)
  7978. value=1
  7979. ;;
  7980. esac
  7981. cat >>confdefs.h <<_ACEOF
  7982. #define ICONV_BIN_RELOCATABLE $value
  7983. _ACEOF
  7984. fi
  7985. # For the TUI, we need enhanced curses functionality.
  7986. if test x"$enable_tui" != xno; then
  7987. prefer_curses=yes
  7988. fi
  7989. curses_found=no
  7990. if test x"$prefer_curses" = xyes; then
  7991. # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
  7992. # curses library because the latter might not provide all the
  7993. # functionality we need. However, this leads to problems on systems
  7994. # where the linker searches /usr/local/lib, but the compiler doesn't
  7995. # search /usr/local/include, if ncurses is installed in /usr/local. A
  7996. # default installation of ncurses on alpha*-dec-osf* will lead to such
  7997. # a situation.
  7998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
  7999. $as_echo_n "checking for library containing waddstr... " >&6; }
  8000. if ${ac_cv_search_waddstr+:} false; then :
  8001. $as_echo_n "(cached) " >&6
  8002. else
  8003. ac_func_search_save_LIBS=$LIBS
  8004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8005. /* end confdefs.h. */
  8006. /* Override any GCC internal prototype to avoid an error.
  8007. Use char because int might match the return type of a GCC
  8008. builtin and then its argument prototype would still apply. */
  8009. #ifdef __cplusplus
  8010. extern "C"
  8011. #endif
  8012. char waddstr ();
  8013. int
  8014. main ()
  8015. {
  8016. return waddstr ();
  8017. ;
  8018. return 0;
  8019. }
  8020. _ACEOF
  8021. for ac_lib in '' ncursesw ncurses cursesX curses; do
  8022. if test -z "$ac_lib"; then
  8023. ac_res="none required"
  8024. else
  8025. ac_res=-l$ac_lib
  8026. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8027. fi
  8028. if ac_fn_c_try_link "$LINENO"; then :
  8029. ac_cv_search_waddstr=$ac_res
  8030. fi
  8031. rm -f core conftest.err conftest.$ac_objext \
  8032. conftest$ac_exeext
  8033. if ${ac_cv_search_waddstr+:} false; then :
  8034. break
  8035. fi
  8036. done
  8037. if ${ac_cv_search_waddstr+:} false; then :
  8038. else
  8039. ac_cv_search_waddstr=no
  8040. fi
  8041. rm conftest.$ac_ext
  8042. LIBS=$ac_func_search_save_LIBS
  8043. fi
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
  8045. $as_echo "$ac_cv_search_waddstr" >&6; }
  8046. ac_res=$ac_cv_search_waddstr
  8047. if test "$ac_res" != no; then :
  8048. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8049. fi
  8050. if test "$ac_cv_search_waddstr" != no; then
  8051. curses_found=yes
  8052. fi
  8053. fi
  8054. # Check whether we should enable the TUI, but only do so if we really
  8055. # can.
  8056. if test x"$enable_tui" != xno; then
  8057. if test -d "$srcdir/tui"; then
  8058. if test "$curses_found" != no; then
  8059. CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
  8060. CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
  8061. CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
  8062. ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
  8063. else
  8064. if test x"$enable_tui" = xyes; then
  8065. as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
  8066. else
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
  8068. $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
  8069. fi
  8070. fi
  8071. fi
  8072. fi
  8073. # Since GDB uses Readline, we need termcap functionality. In many
  8074. # cases this will be provided by the curses library, but some systems
  8075. # have a separate termcap library, or no curses library at all.
  8076. case $host_os in
  8077. cygwin*)
  8078. if test -d "$srcdir/libtermcap"; then
  8079. LIBS="../libtermcap/libtermcap.a $LIBS"
  8080. ac_cv_search_tgetent="../libtermcap/libtermcap.a"
  8081. fi ;;
  8082. go32* | *djgpp*)
  8083. ac_cv_search_tgetent="none required"
  8084. ;;
  8085. esac
  8086. # These are the libraries checked by Readline.
  8087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
  8088. $as_echo_n "checking for library containing tgetent... " >&6; }
  8089. if ${ac_cv_search_tgetent+:} false; then :
  8090. $as_echo_n "(cached) " >&6
  8091. else
  8092. ac_func_search_save_LIBS=$LIBS
  8093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8094. /* end confdefs.h. */
  8095. /* Override any GCC internal prototype to avoid an error.
  8096. Use char because int might match the return type of a GCC
  8097. builtin and then its argument prototype would still apply. */
  8098. #ifdef __cplusplus
  8099. extern "C"
  8100. #endif
  8101. char tgetent ();
  8102. int
  8103. main ()
  8104. {
  8105. return tgetent ();
  8106. ;
  8107. return 0;
  8108. }
  8109. _ACEOF
  8110. for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
  8111. if test -z "$ac_lib"; then
  8112. ac_res="none required"
  8113. else
  8114. ac_res=-l$ac_lib
  8115. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8116. fi
  8117. if ac_fn_c_try_link "$LINENO"; then :
  8118. ac_cv_search_tgetent=$ac_res
  8119. fi
  8120. rm -f core conftest.err conftest.$ac_objext \
  8121. conftest$ac_exeext
  8122. if ${ac_cv_search_tgetent+:} false; then :
  8123. break
  8124. fi
  8125. done
  8126. if ${ac_cv_search_tgetent+:} false; then :
  8127. else
  8128. ac_cv_search_tgetent=no
  8129. fi
  8130. rm conftest.$ac_ext
  8131. LIBS=$ac_func_search_save_LIBS
  8132. fi
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
  8134. $as_echo "$ac_cv_search_tgetent" >&6; }
  8135. ac_res=$ac_cv_search_tgetent
  8136. if test "$ac_res" != no; then :
  8137. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8138. fi
  8139. if test "$ac_cv_search_tgetent" = no; then
  8140. CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
  8141. fi
  8142. # Check whether --with-system-readline was given.
  8143. if test "${with_system_readline+set}" = set; then :
  8144. withval=$with_system_readline;
  8145. fi
  8146. if test "$with_system_readline" = yes; then
  8147. for ac_header in readline/readline.h
  8148. do :
  8149. ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  8150. if test "x$ac_cv_header_readline_readline_h" = xyes; then :
  8151. cat >>confdefs.h <<_ACEOF
  8152. #define HAVE_READLINE_READLINE_H 1
  8153. _ACEOF
  8154. readline_h=yes
  8155. else
  8156. readline_h=no
  8157. fi
  8158. done
  8159. if test "$readline_h" = "no"; then
  8160. as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
  8161. fi
  8162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
  8163. $as_echo_n "checking whether system readline is new enough... " >&6; }
  8164. if ${gdb_cv_readline_ok+:} false; then :
  8165. $as_echo_n "(cached) " >&6
  8166. else
  8167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8168. /* end confdefs.h. */
  8169. #include <stdio.h>
  8170. #include <readline/readline.h>
  8171. int
  8172. main ()
  8173. {
  8174. #if RL_VERSION_MAJOR < 7
  8175. # error "readline version 7 required"
  8176. #endif
  8177. ;
  8178. return 0;
  8179. }
  8180. _ACEOF
  8181. if ac_fn_c_try_compile "$LINENO"; then :
  8182. gdb_cv_readline_ok=yes
  8183. else
  8184. gdb_cv_readline_ok=no
  8185. fi
  8186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8187. fi
  8188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
  8189. $as_echo "$gdb_cv_readline_ok" >&6; }
  8190. if test "$gdb_cv_readline_ok" != yes; then
  8191. as_fn_error $? "system readline is not new enough" "$LINENO" 5
  8192. fi
  8193. READLINE=-lreadline
  8194. READLINE_DEPS=
  8195. READLINE_CFLAGS=
  8196. READLINE_TEXI_INCFLAG=
  8197. else
  8198. READLINE='$(READLINE_DIR)/libreadline.a'
  8199. READLINE_DEPS='$(READLINE)'
  8200. READLINE_CFLAGS='-I$(READLINE_SRC)/..'
  8201. READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
  8202. fi
  8203. # Generate jit-reader.h
  8204. # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
  8205. TARGET_PTR=
  8206. # The cast to long int works around a bug in the HP C Compiler
  8207. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8208. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8209. # This bug is HP SR number 8606223364.
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
  8211. $as_echo_n "checking size of unsigned long long... " >&6; }
  8212. if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
  8213. $as_echo_n "(cached) " >&6
  8214. else
  8215. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
  8216. else
  8217. if test "$ac_cv_type_unsigned_long_long" = yes; then
  8218. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8219. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8220. as_fn_error 77 "cannot compute sizeof (unsigned long long)
  8221. See \`config.log' for more details" "$LINENO" 5; }
  8222. else
  8223. ac_cv_sizeof_unsigned_long_long=0
  8224. fi
  8225. fi
  8226. fi
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
  8228. $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  8229. cat >>confdefs.h <<_ACEOF
  8230. #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  8231. _ACEOF
  8232. # The cast to long int works around a bug in the HP C Compiler
  8233. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8234. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8235. # This bug is HP SR number 8606223364.
  8236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  8237. $as_echo_n "checking size of unsigned long... " >&6; }
  8238. if ${ac_cv_sizeof_unsigned_long+:} false; then :
  8239. $as_echo_n "(cached) " >&6
  8240. else
  8241. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
  8242. else
  8243. if test "$ac_cv_type_unsigned_long" = yes; then
  8244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8246. as_fn_error 77 "cannot compute sizeof (unsigned long)
  8247. See \`config.log' for more details" "$LINENO" 5; }
  8248. else
  8249. ac_cv_sizeof_unsigned_long=0
  8250. fi
  8251. fi
  8252. fi
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  8254. $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  8255. cat >>confdefs.h <<_ACEOF
  8256. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  8257. _ACEOF
  8258. # The cast to long int works around a bug in the HP C Compiler
  8259. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8260. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8261. # This bug is HP SR number 8606223364.
  8262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
  8263. $as_echo_n "checking size of unsigned __int128... " >&6; }
  8264. if ${ac_cv_sizeof_unsigned___int128+:} false; then :
  8265. $as_echo_n "(cached) " >&6
  8266. else
  8267. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
  8268. else
  8269. if test "$ac_cv_type_unsigned___int128" = yes; then
  8270. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8271. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8272. as_fn_error 77 "cannot compute sizeof (unsigned __int128)
  8273. See \`config.log' for more details" "$LINENO" 5; }
  8274. else
  8275. ac_cv_sizeof_unsigned___int128=0
  8276. fi
  8277. fi
  8278. fi
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
  8280. $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
  8281. cat >>confdefs.h <<_ACEOF
  8282. #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
  8283. _ACEOF
  8284. if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
  8285. TARGET_PTR="unsigned long"
  8286. elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
  8287. TARGET_PTR="unsigned long long"
  8288. elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
  8289. TARGET_PTR="unsigned __int128"
  8290. else
  8291. TARGET_PTR="unsigned long"
  8292. fi
  8293. ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  8295. $as_echo_n "checking for library containing dlopen... " >&6; }
  8296. if ${ac_cv_search_dlopen+:} false; then :
  8297. $as_echo_n "(cached) " >&6
  8298. else
  8299. ac_func_search_save_LIBS=$LIBS
  8300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8301. /* end confdefs.h. */
  8302. /* Override any GCC internal prototype to avoid an error.
  8303. Use char because int might match the return type of a GCC
  8304. builtin and then its argument prototype would still apply. */
  8305. #ifdef __cplusplus
  8306. extern "C"
  8307. #endif
  8308. char dlopen ();
  8309. int
  8310. main ()
  8311. {
  8312. return dlopen ();
  8313. ;
  8314. return 0;
  8315. }
  8316. _ACEOF
  8317. for ac_lib in '' dl; do
  8318. if test -z "$ac_lib"; then
  8319. ac_res="none required"
  8320. else
  8321. ac_res=-l$ac_lib
  8322. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8323. fi
  8324. if ac_fn_c_try_link "$LINENO"; then :
  8325. ac_cv_search_dlopen=$ac_res
  8326. fi
  8327. rm -f core conftest.err conftest.$ac_objext \
  8328. conftest$ac_exeext
  8329. if ${ac_cv_search_dlopen+:} false; then :
  8330. break
  8331. fi
  8332. done
  8333. if ${ac_cv_search_dlopen+:} false; then :
  8334. else
  8335. ac_cv_search_dlopen=no
  8336. fi
  8337. rm conftest.$ac_ext
  8338. LIBS=$ac_func_search_save_LIBS
  8339. fi
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  8341. $as_echo "$ac_cv_search_dlopen" >&6; }
  8342. ac_res=$ac_cv_search_dlopen
  8343. if test "$ac_res" != no; then :
  8344. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8345. fi
  8346. # Check whether --with-jit-reader-dir was given.
  8347. if test "${with_jit_reader_dir+set}" = set; then :
  8348. withval=$with_jit_reader_dir;
  8349. JIT_READER_DIR=$withval
  8350. else
  8351. JIT_READER_DIR=${libdir}/gdb
  8352. fi
  8353. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  8354. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8355. ac_define_dir=`eval echo $JIT_READER_DIR`
  8356. ac_define_dir=`eval echo $ac_define_dir`
  8357. cat >>confdefs.h <<_ACEOF
  8358. #define JIT_READER_DIR "$ac_define_dir"
  8359. _ACEOF
  8360. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  8361. if test "x$prefix" = xNONE; then
  8362. test_prefix=/usr/local
  8363. else
  8364. test_prefix=$prefix
  8365. fi
  8366. else
  8367. test_prefix=$exec_prefix
  8368. fi
  8369. value=0
  8370. case ${ac_define_dir} in
  8371. "${test_prefix}"|"${test_prefix}/"*|\
  8372. '${exec_prefix}'|'${exec_prefix}/'*)
  8373. value=1
  8374. ;;
  8375. esac
  8376. cat >>confdefs.h <<_ACEOF
  8377. #define JIT_READER_DIR_RELOCATABLE $value
  8378. _ACEOF
  8379. # Check whether --with-expat was given.
  8380. if test "${with_expat+set}" = set; then :
  8381. withval=$with_expat;
  8382. else
  8383. with_expat=auto
  8384. fi
  8385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
  8386. $as_echo_n "checking whether to use expat... " >&6; }
  8387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
  8388. $as_echo "$with_expat" >&6; }
  8389. if test "${with_expat}" = no; then
  8390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
  8391. $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
  8392. HAVE_LIBEXPAT=no
  8393. else
  8394. use_additional=yes
  8395. acl_save_prefix="$prefix"
  8396. prefix="$acl_final_prefix"
  8397. acl_save_exec_prefix="$exec_prefix"
  8398. exec_prefix="$acl_final_exec_prefix"
  8399. eval additional_includedir=\"$includedir\"
  8400. eval additional_libdir=\"$libdir\"
  8401. exec_prefix="$acl_save_exec_prefix"
  8402. prefix="$acl_save_prefix"
  8403. # Check whether --with-libexpat-prefix was given.
  8404. if test "${with_libexpat_prefix+set}" = set; then :
  8405. withval=$with_libexpat_prefix;
  8406. if test "X$withval" = "Xno"; then
  8407. use_additional=no
  8408. else
  8409. if test "X$withval" = "X"; then
  8410. acl_save_prefix="$prefix"
  8411. prefix="$acl_final_prefix"
  8412. acl_save_exec_prefix="$exec_prefix"
  8413. exec_prefix="$acl_final_exec_prefix"
  8414. eval additional_includedir=\"$includedir\"
  8415. eval additional_libdir=\"$libdir\"
  8416. exec_prefix="$acl_save_exec_prefix"
  8417. prefix="$acl_save_prefix"
  8418. else
  8419. additional_includedir="$withval/include"
  8420. additional_libdir="$withval/lib"
  8421. fi
  8422. fi
  8423. fi
  8424. # Check whether --with-libexpat-type was given.
  8425. if test "${with_libexpat_type+set}" = set; then :
  8426. withval=$with_libexpat_type; with_libexpat_type=$withval
  8427. else
  8428. with_libexpat_type=auto
  8429. fi
  8430. lib_type=`eval echo \$with_libexpat_type`
  8431. LIBEXPAT=
  8432. LTLIBEXPAT=
  8433. INCEXPAT=
  8434. rpathdirs=
  8435. ltrpathdirs=
  8436. names_already_handled=
  8437. names_next_round='expat '
  8438. while test -n "$names_next_round"; do
  8439. names_this_round="$names_next_round"
  8440. names_next_round=
  8441. for name in $names_this_round; do
  8442. already_handled=
  8443. for n in $names_already_handled; do
  8444. if test "$n" = "$name"; then
  8445. already_handled=yes
  8446. break
  8447. fi
  8448. done
  8449. if test -z "$already_handled"; then
  8450. names_already_handled="$names_already_handled $name"
  8451. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8452. eval value=\"\$HAVE_LIB$uppername\"
  8453. if test -n "$value"; then
  8454. if test "$value" = yes; then
  8455. eval value=\"\$LIB$uppername\"
  8456. test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
  8457. eval value=\"\$LTLIB$uppername\"
  8458. test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
  8459. else
  8460. :
  8461. fi
  8462. else
  8463. found_dir=
  8464. found_la=
  8465. found_so=
  8466. found_a=
  8467. if test $use_additional = yes; then
  8468. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  8469. found_dir="$additional_libdir"
  8470. found_so="$additional_libdir/lib$name.$shlibext"
  8471. if test -f "$additional_libdir/lib$name.la"; then
  8472. found_la="$additional_libdir/lib$name.la"
  8473. fi
  8474. elif test x$lib_type != xshared; then
  8475. if test -f "$additional_libdir/lib$name.$libext"; then
  8476. found_dir="$additional_libdir"
  8477. found_a="$additional_libdir/lib$name.$libext"
  8478. if test -f "$additional_libdir/lib$name.la"; then
  8479. found_la="$additional_libdir/lib$name.la"
  8480. fi
  8481. fi
  8482. fi
  8483. fi
  8484. if test "X$found_dir" = "X"; then
  8485. for x in $LDFLAGS $LTLIBEXPAT; do
  8486. acl_save_prefix="$prefix"
  8487. prefix="$acl_final_prefix"
  8488. acl_save_exec_prefix="$exec_prefix"
  8489. exec_prefix="$acl_final_exec_prefix"
  8490. eval x=\"$x\"
  8491. exec_prefix="$acl_save_exec_prefix"
  8492. prefix="$acl_save_prefix"
  8493. case "$x" in
  8494. -L*)
  8495. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8496. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  8497. found_dir="$dir"
  8498. found_so="$dir/lib$name.$shlibext"
  8499. if test -f "$dir/lib$name.la"; then
  8500. found_la="$dir/lib$name.la"
  8501. fi
  8502. elif test x$lib_type != xshared; then
  8503. if test -f "$dir/lib$name.$libext"; then
  8504. found_dir="$dir"
  8505. found_a="$dir/lib$name.$libext"
  8506. if test -f "$dir/lib$name.la"; then
  8507. found_la="$dir/lib$name.la"
  8508. fi
  8509. fi
  8510. fi
  8511. ;;
  8512. esac
  8513. if test "X$found_dir" != "X"; then
  8514. break
  8515. fi
  8516. done
  8517. fi
  8518. if test "X$found_dir" != "X"; then
  8519. LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
  8520. if test "X$found_so" != "X"; then
  8521. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8522. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
  8523. else
  8524. haveit=
  8525. for x in $ltrpathdirs; do
  8526. if test "X$x" = "X$found_dir"; then
  8527. haveit=yes
  8528. break
  8529. fi
  8530. done
  8531. if test -z "$haveit"; then
  8532. ltrpathdirs="$ltrpathdirs $found_dir"
  8533. fi
  8534. if test "$hardcode_direct" = yes; then
  8535. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
  8536. else
  8537. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8538. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
  8539. haveit=
  8540. for x in $rpathdirs; do
  8541. if test "X$x" = "X$found_dir"; then
  8542. haveit=yes
  8543. break
  8544. fi
  8545. done
  8546. if test -z "$haveit"; then
  8547. rpathdirs="$rpathdirs $found_dir"
  8548. fi
  8549. else
  8550. haveit=
  8551. for x in $LDFLAGS $LIBEXPAT; do
  8552. acl_save_prefix="$prefix"
  8553. prefix="$acl_final_prefix"
  8554. acl_save_exec_prefix="$exec_prefix"
  8555. exec_prefix="$acl_final_exec_prefix"
  8556. eval x=\"$x\"
  8557. exec_prefix="$acl_save_exec_prefix"
  8558. prefix="$acl_save_prefix"
  8559. if test "X$x" = "X-L$found_dir"; then
  8560. haveit=yes
  8561. break
  8562. fi
  8563. done
  8564. if test -z "$haveit"; then
  8565. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
  8566. fi
  8567. if test "$hardcode_minus_L" != no; then
  8568. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
  8569. else
  8570. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
  8571. fi
  8572. fi
  8573. fi
  8574. fi
  8575. else
  8576. if test "X$found_a" != "X"; then
  8577. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
  8578. else
  8579. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
  8580. fi
  8581. fi
  8582. additional_includedir=
  8583. case "$found_dir" in
  8584. */lib | */lib/)
  8585. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8586. additional_includedir="$basedir/include"
  8587. ;;
  8588. esac
  8589. if test "X$additional_includedir" != "X"; then
  8590. if test "X$additional_includedir" != "X/usr/include"; then
  8591. haveit=
  8592. if test "X$additional_includedir" = "X/usr/local/include"; then
  8593. if test -n "$GCC"; then
  8594. case $host_os in
  8595. linux*) haveit=yes;;
  8596. esac
  8597. fi
  8598. fi
  8599. if test -z "$haveit"; then
  8600. for x in $CPPFLAGS $INCEXPAT; do
  8601. acl_save_prefix="$prefix"
  8602. prefix="$acl_final_prefix"
  8603. acl_save_exec_prefix="$exec_prefix"
  8604. exec_prefix="$acl_final_exec_prefix"
  8605. eval x=\"$x\"
  8606. exec_prefix="$acl_save_exec_prefix"
  8607. prefix="$acl_save_prefix"
  8608. if test "X$x" = "X-I$additional_includedir"; then
  8609. haveit=yes
  8610. break
  8611. fi
  8612. done
  8613. if test -z "$haveit"; then
  8614. if test -d "$additional_includedir"; then
  8615. INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
  8616. fi
  8617. fi
  8618. fi
  8619. fi
  8620. fi
  8621. if test -n "$found_la"; then
  8622. save_libdir="$libdir"
  8623. case "$found_la" in
  8624. */* | *\\*) . "$found_la" ;;
  8625. *) . "./$found_la" ;;
  8626. esac
  8627. libdir="$save_libdir"
  8628. for dep in $dependency_libs; do
  8629. case "$dep" in
  8630. -L*)
  8631. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8632. if test "X$additional_libdir" != "X/usr/lib"; then
  8633. haveit=
  8634. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8635. if test -n "$GCC"; then
  8636. case $host_os in
  8637. linux*) haveit=yes;;
  8638. esac
  8639. fi
  8640. fi
  8641. if test -z "$haveit"; then
  8642. haveit=
  8643. for x in $LDFLAGS $LIBEXPAT; do
  8644. acl_save_prefix="$prefix"
  8645. prefix="$acl_final_prefix"
  8646. acl_save_exec_prefix="$exec_prefix"
  8647. exec_prefix="$acl_final_exec_prefix"
  8648. eval x=\"$x\"
  8649. exec_prefix="$acl_save_exec_prefix"
  8650. prefix="$acl_save_prefix"
  8651. if test "X$x" = "X-L$additional_libdir"; then
  8652. haveit=yes
  8653. break
  8654. fi
  8655. done
  8656. if test -z "$haveit"; then
  8657. if test -d "$additional_libdir"; then
  8658. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
  8659. fi
  8660. fi
  8661. haveit=
  8662. for x in $LDFLAGS $LTLIBEXPAT; do
  8663. acl_save_prefix="$prefix"
  8664. prefix="$acl_final_prefix"
  8665. acl_save_exec_prefix="$exec_prefix"
  8666. exec_prefix="$acl_final_exec_prefix"
  8667. eval x=\"$x\"
  8668. exec_prefix="$acl_save_exec_prefix"
  8669. prefix="$acl_save_prefix"
  8670. if test "X$x" = "X-L$additional_libdir"; then
  8671. haveit=yes
  8672. break
  8673. fi
  8674. done
  8675. if test -z "$haveit"; then
  8676. if test -d "$additional_libdir"; then
  8677. LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
  8678. fi
  8679. fi
  8680. fi
  8681. fi
  8682. ;;
  8683. -R*)
  8684. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8685. if test "$enable_rpath" != no; then
  8686. haveit=
  8687. for x in $rpathdirs; do
  8688. if test "X$x" = "X$dir"; then
  8689. haveit=yes
  8690. break
  8691. fi
  8692. done
  8693. if test -z "$haveit"; then
  8694. rpathdirs="$rpathdirs $dir"
  8695. fi
  8696. haveit=
  8697. for x in $ltrpathdirs; do
  8698. if test "X$x" = "X$dir"; then
  8699. haveit=yes
  8700. break
  8701. fi
  8702. done
  8703. if test -z "$haveit"; then
  8704. ltrpathdirs="$ltrpathdirs $dir"
  8705. fi
  8706. fi
  8707. ;;
  8708. -l*)
  8709. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8710. ;;
  8711. *.la)
  8712. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8713. ;;
  8714. *)
  8715. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
  8716. LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
  8717. ;;
  8718. esac
  8719. done
  8720. fi
  8721. else
  8722. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  8723. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
  8724. LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
  8725. else
  8726. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
  8727. LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
  8728. fi
  8729. fi
  8730. fi
  8731. fi
  8732. done
  8733. done
  8734. if test "X$rpathdirs" != "X"; then
  8735. if test -n "$hardcode_libdir_separator"; then
  8736. alldirs=
  8737. for found_dir in $rpathdirs; do
  8738. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8739. done
  8740. acl_save_libdir="$libdir"
  8741. libdir="$alldirs"
  8742. eval flag=\"$hardcode_libdir_flag_spec\"
  8743. libdir="$acl_save_libdir"
  8744. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
  8745. else
  8746. for found_dir in $rpathdirs; do
  8747. acl_save_libdir="$libdir"
  8748. libdir="$found_dir"
  8749. eval flag=\"$hardcode_libdir_flag_spec\"
  8750. libdir="$acl_save_libdir"
  8751. LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
  8752. done
  8753. fi
  8754. fi
  8755. if test "X$ltrpathdirs" != "X"; then
  8756. for found_dir in $ltrpathdirs; do
  8757. LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
  8758. done
  8759. fi
  8760. ac_save_CPPFLAGS="$CPPFLAGS"
  8761. for element in $INCEXPAT; do
  8762. haveit=
  8763. for x in $CPPFLAGS; do
  8764. acl_save_prefix="$prefix"
  8765. prefix="$acl_final_prefix"
  8766. acl_save_exec_prefix="$exec_prefix"
  8767. exec_prefix="$acl_final_exec_prefix"
  8768. eval x=\"$x\"
  8769. exec_prefix="$acl_save_exec_prefix"
  8770. prefix="$acl_save_prefix"
  8771. if test "X$x" = "X$element"; then
  8772. haveit=yes
  8773. break
  8774. fi
  8775. done
  8776. if test -z "$haveit"; then
  8777. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8778. fi
  8779. done
  8780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
  8781. $as_echo_n "checking for libexpat... " >&6; }
  8782. if ${ac_cv_libexpat+:} false; then :
  8783. $as_echo_n "(cached) " >&6
  8784. else
  8785. ac_save_LIBS="$LIBS"
  8786. LIBS="$LIBS $LIBEXPAT"
  8787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8788. /* end confdefs.h. */
  8789. #include "expat.h"
  8790. int
  8791. main ()
  8792. {
  8793. XML_Parser p = XML_ParserCreate (0);
  8794. ;
  8795. return 0;
  8796. }
  8797. _ACEOF
  8798. if ac_fn_c_try_link "$LINENO"; then :
  8799. ac_cv_libexpat=yes
  8800. else
  8801. ac_cv_libexpat=no
  8802. fi
  8803. rm -f core conftest.err conftest.$ac_objext \
  8804. conftest$ac_exeext conftest.$ac_ext
  8805. LIBS="$ac_save_LIBS"
  8806. fi
  8807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
  8808. $as_echo "$ac_cv_libexpat" >&6; }
  8809. if test "$ac_cv_libexpat" = yes; then
  8810. HAVE_LIBEXPAT=yes
  8811. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
  8813. $as_echo_n "checking how to link with libexpat... " >&6; }
  8814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
  8815. $as_echo "$LIBEXPAT" >&6; }
  8816. else
  8817. HAVE_LIBEXPAT=no
  8818. CPPFLAGS="$ac_save_CPPFLAGS"
  8819. LIBEXPAT=
  8820. LTLIBEXPAT=
  8821. fi
  8822. if test "$HAVE_LIBEXPAT" != yes; then
  8823. if test "$with_expat" = yes; then
  8824. as_fn_error $? "expat is missing or unusable" "$LINENO" 5
  8825. else
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
  8827. $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
  8828. fi
  8829. else
  8830. save_LIBS=$LIBS
  8831. LIBS="$LIBS $LIBEXPAT"
  8832. for ac_func in XML_StopParser
  8833. do :
  8834. ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
  8835. if test "x$ac_cv_func_XML_StopParser" = xyes; then :
  8836. cat >>confdefs.h <<_ACEOF
  8837. #define HAVE_XML_STOPPARSER 1
  8838. _ACEOF
  8839. fi
  8840. done
  8841. LIBS=$save_LIBS
  8842. fi
  8843. fi
  8844. # Verify that we have a usable GMP library.
  8845. use_additional=yes
  8846. acl_save_prefix="$prefix"
  8847. prefix="$acl_final_prefix"
  8848. acl_save_exec_prefix="$exec_prefix"
  8849. exec_prefix="$acl_final_exec_prefix"
  8850. eval additional_includedir=\"$includedir\"
  8851. eval additional_libdir=\"$libdir\"
  8852. exec_prefix="$acl_save_exec_prefix"
  8853. prefix="$acl_save_prefix"
  8854. # Check whether --with-libgmp-prefix was given.
  8855. if test "${with_libgmp_prefix+set}" = set; then :
  8856. withval=$with_libgmp_prefix;
  8857. if test "X$withval" = "Xno"; then
  8858. use_additional=no
  8859. else
  8860. if test "X$withval" = "X"; then
  8861. acl_save_prefix="$prefix"
  8862. prefix="$acl_final_prefix"
  8863. acl_save_exec_prefix="$exec_prefix"
  8864. exec_prefix="$acl_final_exec_prefix"
  8865. eval additional_includedir=\"$includedir\"
  8866. eval additional_libdir=\"$libdir\"
  8867. exec_prefix="$acl_save_exec_prefix"
  8868. prefix="$acl_save_prefix"
  8869. else
  8870. additional_includedir="$withval/include"
  8871. additional_libdir="$withval/lib"
  8872. fi
  8873. fi
  8874. fi
  8875. # Check whether --with-libgmp-type was given.
  8876. if test "${with_libgmp_type+set}" = set; then :
  8877. withval=$with_libgmp_type; with_libgmp_type=$withval
  8878. else
  8879. with_libgmp_type=auto
  8880. fi
  8881. lib_type=`eval echo \$with_libgmp_type`
  8882. LIBGMP=
  8883. LTLIBGMP=
  8884. INCGMP=
  8885. rpathdirs=
  8886. ltrpathdirs=
  8887. names_already_handled=
  8888. names_next_round='gmp '
  8889. while test -n "$names_next_round"; do
  8890. names_this_round="$names_next_round"
  8891. names_next_round=
  8892. for name in $names_this_round; do
  8893. already_handled=
  8894. for n in $names_already_handled; do
  8895. if test "$n" = "$name"; then
  8896. already_handled=yes
  8897. break
  8898. fi
  8899. done
  8900. if test -z "$already_handled"; then
  8901. names_already_handled="$names_already_handled $name"
  8902. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8903. eval value=\"\$HAVE_LIB$uppername\"
  8904. if test -n "$value"; then
  8905. if test "$value" = yes; then
  8906. eval value=\"\$LIB$uppername\"
  8907. test -z "$value" || LIBGMP="${LIBGMP}${LIBGMP:+ }$value"
  8908. eval value=\"\$LTLIB$uppername\"
  8909. test -z "$value" || LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$value"
  8910. else
  8911. :
  8912. fi
  8913. else
  8914. found_dir=
  8915. found_la=
  8916. found_so=
  8917. found_a=
  8918. if test $use_additional = yes; then
  8919. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  8920. found_dir="$additional_libdir"
  8921. found_so="$additional_libdir/lib$name.$shlibext"
  8922. if test -f "$additional_libdir/lib$name.la"; then
  8923. found_la="$additional_libdir/lib$name.la"
  8924. fi
  8925. elif test x$lib_type != xshared; then
  8926. if test -f "$additional_libdir/lib$name.$libext"; then
  8927. found_dir="$additional_libdir"
  8928. found_a="$additional_libdir/lib$name.$libext"
  8929. if test -f "$additional_libdir/lib$name.la"; then
  8930. found_la="$additional_libdir/lib$name.la"
  8931. fi
  8932. fi
  8933. fi
  8934. fi
  8935. if test "X$found_dir" = "X"; then
  8936. for x in $LDFLAGS $LTLIBGMP; do
  8937. acl_save_prefix="$prefix"
  8938. prefix="$acl_final_prefix"
  8939. acl_save_exec_prefix="$exec_prefix"
  8940. exec_prefix="$acl_final_exec_prefix"
  8941. eval x=\"$x\"
  8942. exec_prefix="$acl_save_exec_prefix"
  8943. prefix="$acl_save_prefix"
  8944. case "$x" in
  8945. -L*)
  8946. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8947. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  8948. found_dir="$dir"
  8949. found_so="$dir/lib$name.$shlibext"
  8950. if test -f "$dir/lib$name.la"; then
  8951. found_la="$dir/lib$name.la"
  8952. fi
  8953. elif test x$lib_type != xshared; then
  8954. if test -f "$dir/lib$name.$libext"; then
  8955. found_dir="$dir"
  8956. found_a="$dir/lib$name.$libext"
  8957. if test -f "$dir/lib$name.la"; then
  8958. found_la="$dir/lib$name.la"
  8959. fi
  8960. fi
  8961. fi
  8962. ;;
  8963. esac
  8964. if test "X$found_dir" != "X"; then
  8965. break
  8966. fi
  8967. done
  8968. fi
  8969. if test "X$found_dir" != "X"; then
  8970. LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
  8971. if test "X$found_so" != "X"; then
  8972. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8973. LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
  8974. else
  8975. haveit=
  8976. for x in $ltrpathdirs; do
  8977. if test "X$x" = "X$found_dir"; then
  8978. haveit=yes
  8979. break
  8980. fi
  8981. done
  8982. if test -z "$haveit"; then
  8983. ltrpathdirs="$ltrpathdirs $found_dir"
  8984. fi
  8985. if test "$hardcode_direct" = yes; then
  8986. LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
  8987. else
  8988. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8989. LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
  8990. haveit=
  8991. for x in $rpathdirs; do
  8992. if test "X$x" = "X$found_dir"; then
  8993. haveit=yes
  8994. break
  8995. fi
  8996. done
  8997. if test -z "$haveit"; then
  8998. rpathdirs="$rpathdirs $found_dir"
  8999. fi
  9000. else
  9001. haveit=
  9002. for x in $LDFLAGS $LIBGMP; do
  9003. acl_save_prefix="$prefix"
  9004. prefix="$acl_final_prefix"
  9005. acl_save_exec_prefix="$exec_prefix"
  9006. exec_prefix="$acl_final_exec_prefix"
  9007. eval x=\"$x\"
  9008. exec_prefix="$acl_save_exec_prefix"
  9009. prefix="$acl_save_prefix"
  9010. if test "X$x" = "X-L$found_dir"; then
  9011. haveit=yes
  9012. break
  9013. fi
  9014. done
  9015. if test -z "$haveit"; then
  9016. LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir"
  9017. fi
  9018. if test "$hardcode_minus_L" != no; then
  9019. LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
  9020. else
  9021. LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
  9022. fi
  9023. fi
  9024. fi
  9025. fi
  9026. else
  9027. if test "X$found_a" != "X"; then
  9028. LIBGMP="${LIBGMP}${LIBGMP:+ }$found_a"
  9029. else
  9030. LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
  9031. fi
  9032. fi
  9033. additional_includedir=
  9034. case "$found_dir" in
  9035. */lib | */lib/)
  9036. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9037. additional_includedir="$basedir/include"
  9038. ;;
  9039. esac
  9040. if test "X$additional_includedir" != "X"; then
  9041. if test "X$additional_includedir" != "X/usr/include"; then
  9042. haveit=
  9043. if test "X$additional_includedir" = "X/usr/local/include"; then
  9044. if test -n "$GCC"; then
  9045. case $host_os in
  9046. linux*) haveit=yes;;
  9047. esac
  9048. fi
  9049. fi
  9050. if test -z "$haveit"; then
  9051. for x in $CPPFLAGS $INCGMP; do
  9052. acl_save_prefix="$prefix"
  9053. prefix="$acl_final_prefix"
  9054. acl_save_exec_prefix="$exec_prefix"
  9055. exec_prefix="$acl_final_exec_prefix"
  9056. eval x=\"$x\"
  9057. exec_prefix="$acl_save_exec_prefix"
  9058. prefix="$acl_save_prefix"
  9059. if test "X$x" = "X-I$additional_includedir"; then
  9060. haveit=yes
  9061. break
  9062. fi
  9063. done
  9064. if test -z "$haveit"; then
  9065. if test -d "$additional_includedir"; then
  9066. INCGMP="${INCGMP}${INCGMP:+ }-I$additional_includedir"
  9067. fi
  9068. fi
  9069. fi
  9070. fi
  9071. fi
  9072. if test -n "$found_la"; then
  9073. save_libdir="$libdir"
  9074. case "$found_la" in
  9075. */* | *\\*) . "$found_la" ;;
  9076. *) . "./$found_la" ;;
  9077. esac
  9078. libdir="$save_libdir"
  9079. for dep in $dependency_libs; do
  9080. case "$dep" in
  9081. -L*)
  9082. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9083. if test "X$additional_libdir" != "X/usr/lib"; then
  9084. haveit=
  9085. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9086. if test -n "$GCC"; then
  9087. case $host_os in
  9088. linux*) haveit=yes;;
  9089. esac
  9090. fi
  9091. fi
  9092. if test -z "$haveit"; then
  9093. haveit=
  9094. for x in $LDFLAGS $LIBGMP; do
  9095. acl_save_prefix="$prefix"
  9096. prefix="$acl_final_prefix"
  9097. acl_save_exec_prefix="$exec_prefix"
  9098. exec_prefix="$acl_final_exec_prefix"
  9099. eval x=\"$x\"
  9100. exec_prefix="$acl_save_exec_prefix"
  9101. prefix="$acl_save_prefix"
  9102. if test "X$x" = "X-L$additional_libdir"; then
  9103. haveit=yes
  9104. break
  9105. fi
  9106. done
  9107. if test -z "$haveit"; then
  9108. if test -d "$additional_libdir"; then
  9109. LIBGMP="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
  9110. fi
  9111. fi
  9112. haveit=
  9113. for x in $LDFLAGS $LTLIBGMP; do
  9114. acl_save_prefix="$prefix"
  9115. prefix="$acl_final_prefix"
  9116. acl_save_exec_prefix="$exec_prefix"
  9117. exec_prefix="$acl_final_exec_prefix"
  9118. eval x=\"$x\"
  9119. exec_prefix="$acl_save_exec_prefix"
  9120. prefix="$acl_save_prefix"
  9121. if test "X$x" = "X-L$additional_libdir"; then
  9122. haveit=yes
  9123. break
  9124. fi
  9125. done
  9126. if test -z "$haveit"; then
  9127. if test -d "$additional_libdir"; then
  9128. LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
  9129. fi
  9130. fi
  9131. fi
  9132. fi
  9133. ;;
  9134. -R*)
  9135. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9136. if test "$enable_rpath" != no; then
  9137. haveit=
  9138. for x in $rpathdirs; do
  9139. if test "X$x" = "X$dir"; then
  9140. haveit=yes
  9141. break
  9142. fi
  9143. done
  9144. if test -z "$haveit"; then
  9145. rpathdirs="$rpathdirs $dir"
  9146. fi
  9147. haveit=
  9148. for x in $ltrpathdirs; do
  9149. if test "X$x" = "X$dir"; then
  9150. haveit=yes
  9151. break
  9152. fi
  9153. done
  9154. if test -z "$haveit"; then
  9155. ltrpathdirs="$ltrpathdirs $dir"
  9156. fi
  9157. fi
  9158. ;;
  9159. -l*)
  9160. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9161. ;;
  9162. *.la)
  9163. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9164. ;;
  9165. *)
  9166. LIBGMP="${LIBGMP}${LIBGMP:+ }$dep"
  9167. LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$dep"
  9168. ;;
  9169. esac
  9170. done
  9171. fi
  9172. else
  9173. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  9174. LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
  9175. LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
  9176. else
  9177. LIBGMP="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
  9178. LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
  9179. fi
  9180. fi
  9181. fi
  9182. fi
  9183. done
  9184. done
  9185. if test "X$rpathdirs" != "X"; then
  9186. if test -n "$hardcode_libdir_separator"; then
  9187. alldirs=
  9188. for found_dir in $rpathdirs; do
  9189. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9190. done
  9191. acl_save_libdir="$libdir"
  9192. libdir="$alldirs"
  9193. eval flag=\"$hardcode_libdir_flag_spec\"
  9194. libdir="$acl_save_libdir"
  9195. LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
  9196. else
  9197. for found_dir in $rpathdirs; do
  9198. acl_save_libdir="$libdir"
  9199. libdir="$found_dir"
  9200. eval flag=\"$hardcode_libdir_flag_spec\"
  9201. libdir="$acl_save_libdir"
  9202. LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
  9203. done
  9204. fi
  9205. fi
  9206. if test "X$ltrpathdirs" != "X"; then
  9207. for found_dir in $ltrpathdirs; do
  9208. LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
  9209. done
  9210. fi
  9211. ac_save_CPPFLAGS="$CPPFLAGS"
  9212. for element in $INCGMP; do
  9213. haveit=
  9214. for x in $CPPFLAGS; do
  9215. acl_save_prefix="$prefix"
  9216. prefix="$acl_final_prefix"
  9217. acl_save_exec_prefix="$exec_prefix"
  9218. exec_prefix="$acl_final_exec_prefix"
  9219. eval x=\"$x\"
  9220. exec_prefix="$acl_save_exec_prefix"
  9221. prefix="$acl_save_prefix"
  9222. if test "X$x" = "X$element"; then
  9223. haveit=yes
  9224. break
  9225. fi
  9226. done
  9227. if test -z "$haveit"; then
  9228. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9229. fi
  9230. done
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
  9232. $as_echo_n "checking for libgmp... " >&6; }
  9233. if ${ac_cv_libgmp+:} false; then :
  9234. $as_echo_n "(cached) " >&6
  9235. else
  9236. ac_save_LIBS="$LIBS"
  9237. LIBS="$LIBS $LIBGMP"
  9238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9239. /* end confdefs.h. */
  9240. #include <gmp.h>
  9241. int
  9242. main ()
  9243. {
  9244. mpz_t n;
  9245. mpz_init (n);
  9246. ;
  9247. return 0;
  9248. }
  9249. _ACEOF
  9250. if ac_fn_c_try_link "$LINENO"; then :
  9251. ac_cv_libgmp=yes
  9252. else
  9253. ac_cv_libgmp=no
  9254. fi
  9255. rm -f core conftest.err conftest.$ac_objext \
  9256. conftest$ac_exeext conftest.$ac_ext
  9257. LIBS="$ac_save_LIBS"
  9258. fi
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
  9260. $as_echo "$ac_cv_libgmp" >&6; }
  9261. if test "$ac_cv_libgmp" = yes; then
  9262. HAVE_LIBGMP=yes
  9263. $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
  9264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
  9265. $as_echo_n "checking how to link with libgmp... " >&6; }
  9266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
  9267. $as_echo "$LIBGMP" >&6; }
  9268. else
  9269. HAVE_LIBGMP=no
  9270. CPPFLAGS="$ac_save_CPPFLAGS"
  9271. LIBGMP=
  9272. LTLIBGMP=
  9273. fi
  9274. if test "$HAVE_LIBGMP" != yes; then
  9275. as_fn_error $? "GMP is missing or unusable" "$LINENO" 5
  9276. fi
  9277. # Check whether --with-mpfr was given.
  9278. if test "${with_mpfr+set}" = set; then :
  9279. withval=$with_mpfr;
  9280. else
  9281. with_mpfr=auto
  9282. fi
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
  9284. $as_echo_n "checking whether to use MPFR... " >&6; }
  9285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
  9286. $as_echo "$with_mpfr" >&6; }
  9287. if test "${with_mpfr}" = no; then
  9288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
  9289. $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
  9290. HAVE_LIBMPFR=no
  9291. else
  9292. use_additional=yes
  9293. acl_save_prefix="$prefix"
  9294. prefix="$acl_final_prefix"
  9295. acl_save_exec_prefix="$exec_prefix"
  9296. exec_prefix="$acl_final_exec_prefix"
  9297. eval additional_includedir=\"$includedir\"
  9298. eval additional_libdir=\"$libdir\"
  9299. exec_prefix="$acl_save_exec_prefix"
  9300. prefix="$acl_save_prefix"
  9301. # Check whether --with-libmpfr-prefix was given.
  9302. if test "${with_libmpfr_prefix+set}" = set; then :
  9303. withval=$with_libmpfr_prefix;
  9304. if test "X$withval" = "Xno"; then
  9305. use_additional=no
  9306. else
  9307. if test "X$withval" = "X"; then
  9308. acl_save_prefix="$prefix"
  9309. prefix="$acl_final_prefix"
  9310. acl_save_exec_prefix="$exec_prefix"
  9311. exec_prefix="$acl_final_exec_prefix"
  9312. eval additional_includedir=\"$includedir\"
  9313. eval additional_libdir=\"$libdir\"
  9314. exec_prefix="$acl_save_exec_prefix"
  9315. prefix="$acl_save_prefix"
  9316. else
  9317. additional_includedir="$withval/include"
  9318. additional_libdir="$withval/lib"
  9319. fi
  9320. fi
  9321. fi
  9322. # Check whether --with-libmpfr-type was given.
  9323. if test "${with_libmpfr_type+set}" = set; then :
  9324. withval=$with_libmpfr_type; with_libmpfr_type=$withval
  9325. else
  9326. with_libmpfr_type=auto
  9327. fi
  9328. lib_type=`eval echo \$with_libmpfr_type`
  9329. LIBMPFR=
  9330. LTLIBMPFR=
  9331. INCMPFR=
  9332. rpathdirs=
  9333. ltrpathdirs=
  9334. names_already_handled=
  9335. names_next_round='mpfr gmp'
  9336. while test -n "$names_next_round"; do
  9337. names_this_round="$names_next_round"
  9338. names_next_round=
  9339. for name in $names_this_round; do
  9340. already_handled=
  9341. for n in $names_already_handled; do
  9342. if test "$n" = "$name"; then
  9343. already_handled=yes
  9344. break
  9345. fi
  9346. done
  9347. if test -z "$already_handled"; then
  9348. names_already_handled="$names_already_handled $name"
  9349. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9350. eval value=\"\$HAVE_LIB$uppername\"
  9351. if test -n "$value"; then
  9352. if test "$value" = yes; then
  9353. eval value=\"\$LIB$uppername\"
  9354. test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
  9355. eval value=\"\$LTLIB$uppername\"
  9356. test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
  9357. else
  9358. :
  9359. fi
  9360. else
  9361. found_dir=
  9362. found_la=
  9363. found_so=
  9364. found_a=
  9365. if test $use_additional = yes; then
  9366. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  9367. found_dir="$additional_libdir"
  9368. found_so="$additional_libdir/lib$name.$shlibext"
  9369. if test -f "$additional_libdir/lib$name.la"; then
  9370. found_la="$additional_libdir/lib$name.la"
  9371. fi
  9372. elif test x$lib_type != xshared; then
  9373. if test -f "$additional_libdir/lib$name.$libext"; then
  9374. found_dir="$additional_libdir"
  9375. found_a="$additional_libdir/lib$name.$libext"
  9376. if test -f "$additional_libdir/lib$name.la"; then
  9377. found_la="$additional_libdir/lib$name.la"
  9378. fi
  9379. fi
  9380. fi
  9381. fi
  9382. if test "X$found_dir" = "X"; then
  9383. for x in $LDFLAGS $LTLIBMPFR; do
  9384. acl_save_prefix="$prefix"
  9385. prefix="$acl_final_prefix"
  9386. acl_save_exec_prefix="$exec_prefix"
  9387. exec_prefix="$acl_final_exec_prefix"
  9388. eval x=\"$x\"
  9389. exec_prefix="$acl_save_exec_prefix"
  9390. prefix="$acl_save_prefix"
  9391. case "$x" in
  9392. -L*)
  9393. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9394. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  9395. found_dir="$dir"
  9396. found_so="$dir/lib$name.$shlibext"
  9397. if test -f "$dir/lib$name.la"; then
  9398. found_la="$dir/lib$name.la"
  9399. fi
  9400. elif test x$lib_type != xshared; then
  9401. if test -f "$dir/lib$name.$libext"; then
  9402. found_dir="$dir"
  9403. found_a="$dir/lib$name.$libext"
  9404. if test -f "$dir/lib$name.la"; then
  9405. found_la="$dir/lib$name.la"
  9406. fi
  9407. fi
  9408. fi
  9409. ;;
  9410. esac
  9411. if test "X$found_dir" != "X"; then
  9412. break
  9413. fi
  9414. done
  9415. fi
  9416. if test "X$found_dir" != "X"; then
  9417. LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
  9418. if test "X$found_so" != "X"; then
  9419. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9420. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
  9421. else
  9422. haveit=
  9423. for x in $ltrpathdirs; do
  9424. if test "X$x" = "X$found_dir"; then
  9425. haveit=yes
  9426. break
  9427. fi
  9428. done
  9429. if test -z "$haveit"; then
  9430. ltrpathdirs="$ltrpathdirs $found_dir"
  9431. fi
  9432. if test "$hardcode_direct" = yes; then
  9433. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
  9434. else
  9435. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9436. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
  9437. haveit=
  9438. for x in $rpathdirs; do
  9439. if test "X$x" = "X$found_dir"; then
  9440. haveit=yes
  9441. break
  9442. fi
  9443. done
  9444. if test -z "$haveit"; then
  9445. rpathdirs="$rpathdirs $found_dir"
  9446. fi
  9447. else
  9448. haveit=
  9449. for x in $LDFLAGS $LIBMPFR; do
  9450. acl_save_prefix="$prefix"
  9451. prefix="$acl_final_prefix"
  9452. acl_save_exec_prefix="$exec_prefix"
  9453. exec_prefix="$acl_final_exec_prefix"
  9454. eval x=\"$x\"
  9455. exec_prefix="$acl_save_exec_prefix"
  9456. prefix="$acl_save_prefix"
  9457. if test "X$x" = "X-L$found_dir"; then
  9458. haveit=yes
  9459. break
  9460. fi
  9461. done
  9462. if test -z "$haveit"; then
  9463. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
  9464. fi
  9465. if test "$hardcode_minus_L" != no; then
  9466. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
  9467. else
  9468. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
  9469. fi
  9470. fi
  9471. fi
  9472. fi
  9473. else
  9474. if test "X$found_a" != "X"; then
  9475. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
  9476. else
  9477. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
  9478. fi
  9479. fi
  9480. additional_includedir=
  9481. case "$found_dir" in
  9482. */lib | */lib/)
  9483. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9484. additional_includedir="$basedir/include"
  9485. ;;
  9486. esac
  9487. if test "X$additional_includedir" != "X"; then
  9488. if test "X$additional_includedir" != "X/usr/include"; then
  9489. haveit=
  9490. if test "X$additional_includedir" = "X/usr/local/include"; then
  9491. if test -n "$GCC"; then
  9492. case $host_os in
  9493. linux*) haveit=yes;;
  9494. esac
  9495. fi
  9496. fi
  9497. if test -z "$haveit"; then
  9498. for x in $CPPFLAGS $INCMPFR; do
  9499. acl_save_prefix="$prefix"
  9500. prefix="$acl_final_prefix"
  9501. acl_save_exec_prefix="$exec_prefix"
  9502. exec_prefix="$acl_final_exec_prefix"
  9503. eval x=\"$x\"
  9504. exec_prefix="$acl_save_exec_prefix"
  9505. prefix="$acl_save_prefix"
  9506. if test "X$x" = "X-I$additional_includedir"; then
  9507. haveit=yes
  9508. break
  9509. fi
  9510. done
  9511. if test -z "$haveit"; then
  9512. if test -d "$additional_includedir"; then
  9513. INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
  9514. fi
  9515. fi
  9516. fi
  9517. fi
  9518. fi
  9519. if test -n "$found_la"; then
  9520. save_libdir="$libdir"
  9521. case "$found_la" in
  9522. */* | *\\*) . "$found_la" ;;
  9523. *) . "./$found_la" ;;
  9524. esac
  9525. libdir="$save_libdir"
  9526. for dep in $dependency_libs; do
  9527. case "$dep" in
  9528. -L*)
  9529. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9530. if test "X$additional_libdir" != "X/usr/lib"; then
  9531. haveit=
  9532. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9533. if test -n "$GCC"; then
  9534. case $host_os in
  9535. linux*) haveit=yes;;
  9536. esac
  9537. fi
  9538. fi
  9539. if test -z "$haveit"; then
  9540. haveit=
  9541. for x in $LDFLAGS $LIBMPFR; do
  9542. acl_save_prefix="$prefix"
  9543. prefix="$acl_final_prefix"
  9544. acl_save_exec_prefix="$exec_prefix"
  9545. exec_prefix="$acl_final_exec_prefix"
  9546. eval x=\"$x\"
  9547. exec_prefix="$acl_save_exec_prefix"
  9548. prefix="$acl_save_prefix"
  9549. if test "X$x" = "X-L$additional_libdir"; then
  9550. haveit=yes
  9551. break
  9552. fi
  9553. done
  9554. if test -z "$haveit"; then
  9555. if test -d "$additional_libdir"; then
  9556. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
  9557. fi
  9558. fi
  9559. haveit=
  9560. for x in $LDFLAGS $LTLIBMPFR; do
  9561. acl_save_prefix="$prefix"
  9562. prefix="$acl_final_prefix"
  9563. acl_save_exec_prefix="$exec_prefix"
  9564. exec_prefix="$acl_final_exec_prefix"
  9565. eval x=\"$x\"
  9566. exec_prefix="$acl_save_exec_prefix"
  9567. prefix="$acl_save_prefix"
  9568. if test "X$x" = "X-L$additional_libdir"; then
  9569. haveit=yes
  9570. break
  9571. fi
  9572. done
  9573. if test -z "$haveit"; then
  9574. if test -d "$additional_libdir"; then
  9575. LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
  9576. fi
  9577. fi
  9578. fi
  9579. fi
  9580. ;;
  9581. -R*)
  9582. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9583. if test "$enable_rpath" != no; then
  9584. haveit=
  9585. for x in $rpathdirs; do
  9586. if test "X$x" = "X$dir"; then
  9587. haveit=yes
  9588. break
  9589. fi
  9590. done
  9591. if test -z "$haveit"; then
  9592. rpathdirs="$rpathdirs $dir"
  9593. fi
  9594. haveit=
  9595. for x in $ltrpathdirs; do
  9596. if test "X$x" = "X$dir"; then
  9597. haveit=yes
  9598. break
  9599. fi
  9600. done
  9601. if test -z "$haveit"; then
  9602. ltrpathdirs="$ltrpathdirs $dir"
  9603. fi
  9604. fi
  9605. ;;
  9606. -l*)
  9607. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9608. ;;
  9609. *.la)
  9610. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9611. ;;
  9612. *)
  9613. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
  9614. LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
  9615. ;;
  9616. esac
  9617. done
  9618. fi
  9619. else
  9620. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  9621. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
  9622. LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
  9623. else
  9624. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
  9625. LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
  9626. fi
  9627. fi
  9628. fi
  9629. fi
  9630. done
  9631. done
  9632. if test "X$rpathdirs" != "X"; then
  9633. if test -n "$hardcode_libdir_separator"; then
  9634. alldirs=
  9635. for found_dir in $rpathdirs; do
  9636. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9637. done
  9638. acl_save_libdir="$libdir"
  9639. libdir="$alldirs"
  9640. eval flag=\"$hardcode_libdir_flag_spec\"
  9641. libdir="$acl_save_libdir"
  9642. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
  9643. else
  9644. for found_dir in $rpathdirs; do
  9645. acl_save_libdir="$libdir"
  9646. libdir="$found_dir"
  9647. eval flag=\"$hardcode_libdir_flag_spec\"
  9648. libdir="$acl_save_libdir"
  9649. LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
  9650. done
  9651. fi
  9652. fi
  9653. if test "X$ltrpathdirs" != "X"; then
  9654. for found_dir in $ltrpathdirs; do
  9655. LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
  9656. done
  9657. fi
  9658. ac_save_CPPFLAGS="$CPPFLAGS"
  9659. for element in $INCMPFR; do
  9660. haveit=
  9661. for x in $CPPFLAGS; do
  9662. acl_save_prefix="$prefix"
  9663. prefix="$acl_final_prefix"
  9664. acl_save_exec_prefix="$exec_prefix"
  9665. exec_prefix="$acl_final_exec_prefix"
  9666. eval x=\"$x\"
  9667. exec_prefix="$acl_save_exec_prefix"
  9668. prefix="$acl_save_prefix"
  9669. if test "X$x" = "X$element"; then
  9670. haveit=yes
  9671. break
  9672. fi
  9673. done
  9674. if test -z "$haveit"; then
  9675. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9676. fi
  9677. done
  9678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
  9679. $as_echo_n "checking for libmpfr... " >&6; }
  9680. if ${ac_cv_libmpfr+:} false; then :
  9681. $as_echo_n "(cached) " >&6
  9682. else
  9683. ac_save_LIBS="$LIBS"
  9684. LIBS="$LIBS $LIBMPFR"
  9685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9686. /* end confdefs.h. */
  9687. #include <mpfr.h>
  9688. int
  9689. main ()
  9690. {
  9691. mpfr_exp_t exp; mpfr_t x;
  9692. mpfr_frexp (&exp, x, x, MPFR_RNDN);
  9693. ;
  9694. return 0;
  9695. }
  9696. _ACEOF
  9697. if ac_fn_c_try_link "$LINENO"; then :
  9698. ac_cv_libmpfr=yes
  9699. else
  9700. ac_cv_libmpfr=no
  9701. fi
  9702. rm -f core conftest.err conftest.$ac_objext \
  9703. conftest$ac_exeext conftest.$ac_ext
  9704. LIBS="$ac_save_LIBS"
  9705. fi
  9706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
  9707. $as_echo "$ac_cv_libmpfr" >&6; }
  9708. if test "$ac_cv_libmpfr" = yes; then
  9709. HAVE_LIBMPFR=yes
  9710. $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
  9712. $as_echo_n "checking how to link with libmpfr... " >&6; }
  9713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
  9714. $as_echo "$LIBMPFR" >&6; }
  9715. else
  9716. HAVE_LIBMPFR=no
  9717. CPPFLAGS="$ac_save_CPPFLAGS"
  9718. LIBMPFR=
  9719. LTLIBMPFR=
  9720. fi
  9721. if test "$HAVE_LIBMPFR" != yes; then
  9722. if test "$with_mpfr" = yes; then
  9723. as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
  9724. else
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
  9726. $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
  9727. fi
  9728. fi
  9729. fi
  9730. # --------------------- #
  9731. # Check for libpython. #
  9732. # --------------------- #
  9733. # Check whether --with-python was given.
  9734. if test "${with_python+set}" = set; then :
  9735. withval=$with_python;
  9736. else
  9737. with_python=auto
  9738. fi
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
  9740. $as_echo_n "checking whether to use python... " >&6; }
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
  9742. $as_echo "$with_python" >&6; }
  9743. if test "${with_python}" = no; then
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
  9745. $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
  9746. have_libpython=no
  9747. else
  9748. case "${with_python}" in
  9749. [\\/]* | ?:[\\/]*)
  9750. if test -d "${with_python}"; then
  9751. # Assume the python binary is ${with_python}/bin/python.
  9752. python_prog="${with_python}/bin/python"
  9753. python_prefix=
  9754. # If python does not exit ${with_python}/bin, then try in
  9755. # ${with_python}. On Windows/MinGW, this is where the Python
  9756. # executable is.
  9757. if test ! -x "${python_prog}"; then
  9758. python_prog="${with_python}/python"
  9759. python_prefix=
  9760. fi
  9761. if test ! -x "${python_prog}"; then
  9762. # Fall back to gdb 7.0/7.1 behaviour.
  9763. python_prog=missing
  9764. python_prefix=${with_python}
  9765. fi
  9766. elif test -x "${with_python}"; then
  9767. # While we can't run python compiled for $host (unless host == build),
  9768. # the user could write a script that provides the needed information,
  9769. # so we support that.
  9770. python_prog=${with_python}
  9771. python_prefix=
  9772. else
  9773. as_fn_error $? "invalid value for --with-python" "$LINENO" 5
  9774. fi
  9775. ;;
  9776. */*)
  9777. # Disallow --with-python=foo/bar.
  9778. as_fn_error $? "invalid value for --with-python" "$LINENO" 5
  9779. ;;
  9780. *)
  9781. # The user has either specified auto, yes, or the name of the python
  9782. # program assumed to be in $PATH.
  9783. python_prefix=
  9784. case "${with_python}" in
  9785. yes | auto)
  9786. if test "${build}" = "${host}"; then
  9787. # Extract the first word of "python", so it can be a program name with args.
  9788. set dummy python; ac_word=$2
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9790. $as_echo_n "checking for $ac_word... " >&6; }
  9791. if ${ac_cv_path_python_prog_path+:} false; then :
  9792. $as_echo_n "(cached) " >&6
  9793. else
  9794. case $python_prog_path in
  9795. [\\/]* | ?:[\\/]*)
  9796. ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
  9797. ;;
  9798. *)
  9799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9800. for as_dir in $PATH
  9801. do
  9802. IFS=$as_save_IFS
  9803. test -z "$as_dir" && as_dir=.
  9804. for ac_exec_ext in '' $ac_executable_extensions; do
  9805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9806. ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
  9807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9808. break 2
  9809. fi
  9810. done
  9811. done
  9812. IFS=$as_save_IFS
  9813. test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
  9814. ;;
  9815. esac
  9816. fi
  9817. python_prog_path=$ac_cv_path_python_prog_path
  9818. if test -n "$python_prog_path"; then
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
  9820. $as_echo "$python_prog_path" >&6; }
  9821. else
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9823. $as_echo "no" >&6; }
  9824. fi
  9825. if test "${python_prog_path}" = missing; then
  9826. python_prog=missing
  9827. else
  9828. python_prog=${python_prog_path}
  9829. fi
  9830. else
  9831. # Not much we can do except assume the cross-compiler will find the
  9832. # right files.
  9833. python_prog=missing
  9834. fi
  9835. ;;
  9836. *)
  9837. # While we can't run python compiled for $host (unless host == build),
  9838. # the user could write a script that provides the needed information,
  9839. # so we support that.
  9840. python_prog="${with_python}"
  9841. # Extract the first word of "${python_prog}", so it can be a program name with args.
  9842. set dummy ${python_prog}; ac_word=$2
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9844. $as_echo_n "checking for $ac_word... " >&6; }
  9845. if ${ac_cv_path_python_prog_path+:} false; then :
  9846. $as_echo_n "(cached) " >&6
  9847. else
  9848. case $python_prog_path in
  9849. [\\/]* | ?:[\\/]*)
  9850. ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
  9851. ;;
  9852. *)
  9853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9854. for as_dir in $PATH
  9855. do
  9856. IFS=$as_save_IFS
  9857. test -z "$as_dir" && as_dir=.
  9858. for ac_exec_ext in '' $ac_executable_extensions; do
  9859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9860. ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
  9861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9862. break 2
  9863. fi
  9864. done
  9865. done
  9866. IFS=$as_save_IFS
  9867. test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
  9868. ;;
  9869. esac
  9870. fi
  9871. python_prog_path=$ac_cv_path_python_prog_path
  9872. if test -n "$python_prog_path"; then
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
  9874. $as_echo "$python_prog_path" >&6; }
  9875. else
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9877. $as_echo "no" >&6; }
  9878. fi
  9879. if test "${python_prog_path}" = missing; then
  9880. as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
  9881. fi
  9882. ;;
  9883. esac
  9884. esac
  9885. if test "${python_prog}" != missing; then
  9886. # We have a python program to use, but it may be too old.
  9887. # Don't flag an error for --with-python=auto (the default).
  9888. have_python_config=yes
  9889. python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
  9890. if test $? != 0; then
  9891. have_python_config=failed
  9892. if test "${with_python}" != auto; then
  9893. as_fn_error $? "failure running python-config --includes" "$LINENO" 5
  9894. fi
  9895. fi
  9896. python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
  9897. if test $? != 0; then
  9898. have_python_config=failed
  9899. if test "${with_python}" != auto; then
  9900. as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
  9901. fi
  9902. fi
  9903. python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
  9904. if test $? != 0; then
  9905. have_python_config=failed
  9906. if test "${with_python}" != auto; then
  9907. as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
  9908. fi
  9909. fi
  9910. else
  9911. # We do not have a python executable we can use to determine where
  9912. # to find the Python headers and libs. We cannot guess the include
  9913. # path from the python_prefix either, because that include path
  9914. # depends on the Python version. So, there is nothing much we can
  9915. # do except assume that the compiler will be able to find those files.
  9916. python_includes=
  9917. python_libs=
  9918. have_python_config=no
  9919. fi
  9920. # If we have python-config, only try the configuration it provides.
  9921. # Otherwise fallback on the old way of trying different versions of
  9922. # python in turn.
  9923. have_libpython=no
  9924. if test "${have_python_config}" = yes; then
  9925. new_CPPFLAGS=${python_includes}
  9926. new_LIBS=${python_libs}
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
  9928. $as_echo_n "checking for python... " >&6; }
  9929. save_CPPFLAGS=$CPPFLAGS
  9930. save_LIBS=$LIBS
  9931. CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  9932. LIBS="$new_LIBS $LIBS"
  9933. found_usable_python=no
  9934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9935. /* end confdefs.h. */
  9936. #include "Python.h"
  9937. int
  9938. main ()
  9939. {
  9940. #if PY_MAJOR_VERSION != 3
  9941. # error "We only support Python 3"
  9942. #endif
  9943. Py_Initialize ();
  9944. ;
  9945. return 0;
  9946. }
  9947. _ACEOF
  9948. if ac_fn_c_try_link "$LINENO"; then :
  9949. have_libpython=yes
  9950. found_usable_python=yes
  9951. PYTHON_CPPFLAGS=$new_CPPFLAGS
  9952. PYTHON_LIBS=$new_LIBS
  9953. fi
  9954. rm -f core conftest.err conftest.$ac_objext \
  9955. conftest$ac_exeext conftest.$ac_ext
  9956. CPPFLAGS=$save_CPPFLAGS
  9957. LIBS=$save_LIBS
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
  9959. $as_echo "${found_usable_python}" >&6; }
  9960. fi
  9961. if test "${have_libpython}" = no; then
  9962. case "${with_python}" in
  9963. yes)
  9964. as_fn_error $? "python is missing or unusable" "$LINENO" 5
  9965. ;;
  9966. auto)
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
  9968. $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
  9969. ;;
  9970. *)
  9971. as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
  9972. ;;
  9973. esac
  9974. else
  9975. if test -n "${python_prefix}"; then
  9976. cat >>confdefs.h <<_ACEOF
  9977. #define WITH_PYTHON_PATH "${python_prefix}"
  9978. _ACEOF
  9979. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  9980. if test "x$prefix" = xNONE; then
  9981. test_prefix=/usr/local
  9982. else
  9983. test_prefix=$prefix
  9984. fi
  9985. else
  9986. test_prefix=$exec_prefix
  9987. fi
  9988. value=0
  9989. case ${python_prefix} in
  9990. "${test_prefix}"|"${test_prefix}/"*|\
  9991. '${exec_prefix}'|'${exec_prefix}/'*)
  9992. value=1
  9993. ;;
  9994. esac
  9995. cat >>confdefs.h <<_ACEOF
  9996. #define PYTHON_PATH_RELOCATABLE $value
  9997. _ACEOF
  9998. fi
  9999. fi
  10000. fi
  10001. # Check whether --with-python-libdir was given.
  10002. if test "${with_python_libdir+set}" = set; then :
  10003. withval=$with_python_libdir;
  10004. else
  10005. # If no python libdir is specified then select one based on
  10006. # python's prefix path.
  10007. if test -n "${python_prefix}"; then
  10008. with_python_libdir=${python_prefix}/lib
  10009. fi
  10010. fi
  10011. if test "${have_libpython}" != no; then
  10012. $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
  10013. CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
  10014. CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
  10015. CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
  10016. CONFIG_INSTALL="$CONFIG_INSTALL install-python"
  10017. ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
  10018. if test -n "${with_python_libdir}"; then
  10019. cat >>confdefs.h <<_ACEOF
  10020. #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
  10021. _ACEOF
  10022. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  10023. if test "x$prefix" = xNONE; then
  10024. test_prefix=/usr/local
  10025. else
  10026. test_prefix=$prefix
  10027. fi
  10028. else
  10029. test_prefix=$exec_prefix
  10030. fi
  10031. value=0
  10032. case ${with_python_libdir} in
  10033. "${test_prefix}"|"${test_prefix}/"*|\
  10034. '${exec_prefix}'|'${exec_prefix}/'*)
  10035. value=1
  10036. ;;
  10037. esac
  10038. cat >>confdefs.h <<_ACEOF
  10039. #define PYTHON_LIBDIR_RELOCATABLE $value
  10040. _ACEOF
  10041. fi
  10042. # Flags needed to compile Python code (taken from python-config --cflags).
  10043. # We cannot call python-config directly because it will output whatever was
  10044. # used when compiling the Python interpreter itself, including flags which
  10045. # would make the python-related objects be compiled differently from the
  10046. # rest of GDB (e.g., -O2 and -fPIC).
  10047. if test "${GCC}" = yes; then
  10048. tentative_python_cflags="-fno-strict-aliasing -fwrapv"
  10049. # Python headers recommend -DNDEBUG, but it's unclear if that just
  10050. # refers to building Python itself. In release mode, though, it
  10051. # doesn't hurt for the Python code in gdb to follow.
  10052. $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
  10053. fi
  10054. if test "x${tentative_python_cflags}" != x; then
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
  10056. $as_echo_n "checking compiler flags for python code... " >&6; }
  10057. for flag in ${tentative_python_cflags}; do
  10058. # Check that the compiler accepts it
  10059. saved_CFLAGS="$CFLAGS"
  10060. CFLAGS="$CFLAGS $flag"
  10061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10062. /* end confdefs.h. */
  10063. int
  10064. main ()
  10065. {
  10066. ;
  10067. return 0;
  10068. }
  10069. _ACEOF
  10070. if ac_fn_c_try_compile "$LINENO"; then :
  10071. PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
  10072. fi
  10073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10074. CFLAGS="$saved_CFLAGS"
  10075. done
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
  10077. $as_echo "${PYTHON_CFLAGS}" >&6; }
  10078. fi
  10079. # On x64 Windows, Python's include headers, and pyconfig.h in
  10080. # particular, rely on MS_WIN64 macro to detect that it's a 64bit
  10081. # version of Windows. Unfortunately, MS_WIN64 is only defined if
  10082. # _MSC_VER, a Microsoft-specific macro, is defined. So, when
  10083. # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
  10084. # The issue was reported to the Python community, but still isn't
  10085. # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
  10086. case "$gdb_host" in
  10087. mingw64)
  10088. if test "${GCC}" = yes; then
  10089. CPPFLAGS="$CPPFLAGS -DMS_WIN64"
  10090. fi
  10091. ;;
  10092. esac
  10093. else
  10094. # Even if Python support is not compiled in, we need to have this file
  10095. # included so that the "python" command, et.al., still exists.
  10096. CONFIG_OBS="$CONFIG_OBS python/python.o"
  10097. CONFIG_SRCS="$CONFIG_SRCS python/python.c"
  10098. fi
  10099. # Work around Python http://bugs.python.org/issue10112. See also
  10100. # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
  10101. # no effect. Note that the only test after this that uses Python is
  10102. # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
  10103. # run without -export-dynamic too.
  10104. PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
  10105. if test "${have_libpython}" != no; then
  10106. HAVE_PYTHON_TRUE=
  10107. HAVE_PYTHON_FALSE='#'
  10108. else
  10109. HAVE_PYTHON_TRUE='#'
  10110. HAVE_PYTHON_FALSE=
  10111. fi
  10112. # -------------------- #
  10113. # Check for libguile. #
  10114. # -------------------- #
  10115. # Check whether --with-guile was given.
  10116. if test "${with_guile+set}" = set; then :
  10117. withval=$with_guile;
  10118. else
  10119. with_guile=auto
  10120. fi
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
  10122. $as_echo_n "checking whether to use guile... " >&6; }
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
  10124. $as_echo "$with_guile" >&6; }
  10125. # Extract the first word of "pkg-config", so it can be a program name with args.
  10126. set dummy pkg-config; ac_word=$2
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10128. $as_echo_n "checking for $ac_word... " >&6; }
  10129. if ${ac_cv_path_pkg_config_prog_path+:} false; then :
  10130. $as_echo_n "(cached) " >&6
  10131. else
  10132. case $pkg_config_prog_path in
  10133. [\\/]* | ?:[\\/]*)
  10134. ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
  10135. ;;
  10136. *)
  10137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10138. for as_dir in $PATH
  10139. do
  10140. IFS=$as_save_IFS
  10141. test -z "$as_dir" && as_dir=.
  10142. for ac_exec_ext in '' $ac_executable_extensions; do
  10143. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10144. ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
  10145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10146. break 2
  10147. fi
  10148. done
  10149. done
  10150. IFS=$as_save_IFS
  10151. test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
  10152. ;;
  10153. esac
  10154. fi
  10155. pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
  10156. if test -n "$pkg_config_prog_path"; then
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
  10158. $as_echo "$pkg_config_prog_path" >&6; }
  10159. else
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10161. $as_echo "no" >&6; }
  10162. fi
  10163. try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
  10164. have_libguile=no
  10165. case "${with_guile}" in
  10166. no)
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
  10168. $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
  10169. ;;
  10170. auto)
  10171. if test "${pkg_config_prog_path}" = "missing"; then
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
  10173. $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
  10174. else
  10175. pkg_config=${pkg_config_prog_path}
  10176. guile_version_list=${try_guile_versions}
  10177. flag_errors=no
  10178. found_usable_guile=checking
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
  10180. $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
  10181. for guile_version in ${guile_version_list}; do
  10182. ${pkg_config} --exists ${guile_version} 2>/dev/null
  10183. if test $? != 0; then
  10184. continue
  10185. fi
  10186. new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
  10187. if test $? != 0; then
  10188. as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
  10189. fi
  10190. new_LIBS=`${pkg_config} --libs ${guile_version}`
  10191. if test $? != 0; then
  10192. as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
  10193. fi
  10194. found_usable_guile=${guile_version}
  10195. break
  10196. done
  10197. if test "${found_usable_guile}" = "checking"; then
  10198. if test "${flag_errors}" = "yes"; then
  10199. as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
  10200. else
  10201. found_usable_guile=no
  10202. fi
  10203. fi
  10204. if test "${found_usable_guile}" != no; then
  10205. save_CPPFLAGS=$CPPFLAGS
  10206. save_LIBS=$LIBS
  10207. CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  10208. LIBS="$LIBS $new_LIBS"
  10209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10210. /* end confdefs.h. */
  10211. #include "libguile.h"
  10212. int
  10213. main ()
  10214. {
  10215. scm_init_guile ();
  10216. ;
  10217. return 0;
  10218. }
  10219. _ACEOF
  10220. if ac_fn_c_try_link "$LINENO"; then :
  10221. have_libguile=yes
  10222. GUILE_CPPFLAGS=$new_CPPFLAGS
  10223. GUILE_LIBS=$new_LIBS
  10224. else
  10225. found_usable_guile=no
  10226. fi
  10227. rm -f core conftest.err conftest.$ac_objext \
  10228. conftest$ac_exeext conftest.$ac_ext
  10229. ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
  10230. if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
  10231. $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
  10232. fi
  10233. CPPFLAGS=$save_CPPFLAGS
  10234. LIBS=$save_LIBS
  10235. if test "${found_usable_guile}" = no; then
  10236. if test "${flag_errors}" = yes; then
  10237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10239. as_fn_error $? "linking guile version ${guile_version} test program failed
  10240. See \`config.log' for more details" "$LINENO" 5; }
  10241. fi
  10242. fi
  10243. fi
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
  10245. $as_echo "${found_usable_guile}" >&6; }
  10246. fi
  10247. ;;
  10248. yes)
  10249. if test "${pkg_config_prog_path}" = "missing"; then
  10250. as_fn_error $? "pkg-config not found" "$LINENO" 5
  10251. fi
  10252. pkg_config=${pkg_config_prog_path}
  10253. guile_version_list=${try_guile_versions}
  10254. flag_errors=yes
  10255. found_usable_guile=checking
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
  10257. $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
  10258. for guile_version in ${guile_version_list}; do
  10259. ${pkg_config} --exists ${guile_version} 2>/dev/null
  10260. if test $? != 0; then
  10261. continue
  10262. fi
  10263. new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
  10264. if test $? != 0; then
  10265. as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
  10266. fi
  10267. new_LIBS=`${pkg_config} --libs ${guile_version}`
  10268. if test $? != 0; then
  10269. as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
  10270. fi
  10271. found_usable_guile=${guile_version}
  10272. break
  10273. done
  10274. if test "${found_usable_guile}" = "checking"; then
  10275. if test "${flag_errors}" = "yes"; then
  10276. as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
  10277. else
  10278. found_usable_guile=no
  10279. fi
  10280. fi
  10281. if test "${found_usable_guile}" != no; then
  10282. save_CPPFLAGS=$CPPFLAGS
  10283. save_LIBS=$LIBS
  10284. CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  10285. LIBS="$LIBS $new_LIBS"
  10286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10287. /* end confdefs.h. */
  10288. #include "libguile.h"
  10289. int
  10290. main ()
  10291. {
  10292. scm_init_guile ();
  10293. ;
  10294. return 0;
  10295. }
  10296. _ACEOF
  10297. if ac_fn_c_try_link "$LINENO"; then :
  10298. have_libguile=yes
  10299. GUILE_CPPFLAGS=$new_CPPFLAGS
  10300. GUILE_LIBS=$new_LIBS
  10301. else
  10302. found_usable_guile=no
  10303. fi
  10304. rm -f core conftest.err conftest.$ac_objext \
  10305. conftest$ac_exeext conftest.$ac_ext
  10306. ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
  10307. if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
  10308. $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
  10309. fi
  10310. CPPFLAGS=$save_CPPFLAGS
  10311. LIBS=$save_LIBS
  10312. if test "${found_usable_guile}" = no; then
  10313. if test "${flag_errors}" = yes; then
  10314. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10315. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10316. as_fn_error $? "linking guile version ${guile_version} test program failed
  10317. See \`config.log' for more details" "$LINENO" 5; }
  10318. fi
  10319. fi
  10320. fi
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
  10322. $as_echo "${found_usable_guile}" >&6; }
  10323. ;;
  10324. [\\/]* | ?:[\\/]*)
  10325. if test -x "${with_guile}"; then
  10326. pkg_config=${with_guile}
  10327. guile_version_list=${try_guile_versions}
  10328. flag_errors=yes
  10329. found_usable_guile=checking
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
  10331. $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
  10332. for guile_version in ${guile_version_list}; do
  10333. ${pkg_config} --exists ${guile_version} 2>/dev/null
  10334. if test $? != 0; then
  10335. continue
  10336. fi
  10337. new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
  10338. if test $? != 0; then
  10339. as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
  10340. fi
  10341. new_LIBS=`${pkg_config} --libs ${guile_version}`
  10342. if test $? != 0; then
  10343. as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
  10344. fi
  10345. found_usable_guile=${guile_version}
  10346. break
  10347. done
  10348. if test "${found_usable_guile}" = "checking"; then
  10349. if test "${flag_errors}" = "yes"; then
  10350. as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
  10351. else
  10352. found_usable_guile=no
  10353. fi
  10354. fi
  10355. if test "${found_usable_guile}" != no; then
  10356. save_CPPFLAGS=$CPPFLAGS
  10357. save_LIBS=$LIBS
  10358. CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  10359. LIBS="$LIBS $new_LIBS"
  10360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10361. /* end confdefs.h. */
  10362. #include "libguile.h"
  10363. int
  10364. main ()
  10365. {
  10366. scm_init_guile ();
  10367. ;
  10368. return 0;
  10369. }
  10370. _ACEOF
  10371. if ac_fn_c_try_link "$LINENO"; then :
  10372. have_libguile=yes
  10373. GUILE_CPPFLAGS=$new_CPPFLAGS
  10374. GUILE_LIBS=$new_LIBS
  10375. else
  10376. found_usable_guile=no
  10377. fi
  10378. rm -f core conftest.err conftest.$ac_objext \
  10379. conftest$ac_exeext conftest.$ac_ext
  10380. ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
  10381. if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
  10382. $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
  10383. fi
  10384. CPPFLAGS=$save_CPPFLAGS
  10385. LIBS=$save_LIBS
  10386. if test "${found_usable_guile}" = no; then
  10387. if test "${flag_errors}" = yes; then
  10388. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10390. as_fn_error $? "linking guile version ${guile_version} test program failed
  10391. See \`config.log' for more details" "$LINENO" 5; }
  10392. fi
  10393. fi
  10394. fi
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
  10396. $as_echo "${found_usable_guile}" >&6; }
  10397. else
  10398. as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
  10399. fi
  10400. ;;
  10401. "" | */*)
  10402. # Disallow --with=guile="" and --with-guile=foo/bar.
  10403. as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
  10404. ;;
  10405. *)
  10406. # A space separate list of guile versions to try, in order.
  10407. if test "${pkg_config_prog_path}" = "missing"; then
  10408. as_fn_error $? "pkg-config not found" "$LINENO" 5
  10409. fi
  10410. pkg_config=${pkg_config_prog_path}
  10411. guile_version_list=${with_guile}
  10412. flag_errors=yes
  10413. found_usable_guile=checking
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
  10415. $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
  10416. for guile_version in ${guile_version_list}; do
  10417. ${pkg_config} --exists ${guile_version} 2>/dev/null
  10418. if test $? != 0; then
  10419. continue
  10420. fi
  10421. new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
  10422. if test $? != 0; then
  10423. as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
  10424. fi
  10425. new_LIBS=`${pkg_config} --libs ${guile_version}`
  10426. if test $? != 0; then
  10427. as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
  10428. fi
  10429. found_usable_guile=${guile_version}
  10430. break
  10431. done
  10432. if test "${found_usable_guile}" = "checking"; then
  10433. if test "${flag_errors}" = "yes"; then
  10434. as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
  10435. else
  10436. found_usable_guile=no
  10437. fi
  10438. fi
  10439. if test "${found_usable_guile}" != no; then
  10440. save_CPPFLAGS=$CPPFLAGS
  10441. save_LIBS=$LIBS
  10442. CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  10443. LIBS="$LIBS $new_LIBS"
  10444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10445. /* end confdefs.h. */
  10446. #include "libguile.h"
  10447. int
  10448. main ()
  10449. {
  10450. scm_init_guile ();
  10451. ;
  10452. return 0;
  10453. }
  10454. _ACEOF
  10455. if ac_fn_c_try_link "$LINENO"; then :
  10456. have_libguile=yes
  10457. GUILE_CPPFLAGS=$new_CPPFLAGS
  10458. GUILE_LIBS=$new_LIBS
  10459. else
  10460. found_usable_guile=no
  10461. fi
  10462. rm -f core conftest.err conftest.$ac_objext \
  10463. conftest$ac_exeext conftest.$ac_ext
  10464. ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
  10465. if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
  10466. $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
  10467. fi
  10468. CPPFLAGS=$save_CPPFLAGS
  10469. LIBS=$save_LIBS
  10470. if test "${found_usable_guile}" = no; then
  10471. if test "${flag_errors}" = yes; then
  10472. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10473. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10474. as_fn_error $? "linking guile version ${guile_version} test program failed
  10475. See \`config.log' for more details" "$LINENO" 5; }
  10476. fi
  10477. fi
  10478. fi
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
  10480. $as_echo "${found_usable_guile}" >&6; }
  10481. ;;
  10482. esac
  10483. if test "${have_libguile}" != no; then
  10484. case "${with_guile}" in
  10485. [\\/]* | ?:[\\/]*)
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
  10487. $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
  10488. if ${ac_cv_guild_program_name+:} false; then :
  10489. $as_echo_n "(cached) " >&6
  10490. else
  10491. ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
  10492. # In Guile up to 2.0.11 included, guile-2.0.pc would not define
  10493. # the 'guild' and 'bindir' variables. In that case, try to guess
  10494. # what the program name is, at the risk of getting it wrong if
  10495. # Guile was configured with '--program-suffix' or similar.
  10496. if test "x$ac_cv_guild_program_name" = "x"; then
  10497. guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
  10498. ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
  10499. fi
  10500. fi
  10501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
  10502. $as_echo "$ac_cv_guild_program_name" >&6; }
  10503. if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
  10504. as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
  10505. fi
  10506. GUILD="$ac_cv_guild_program_name"
  10507. ;;
  10508. *)
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
  10510. $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
  10511. if ${ac_cv_guild_program_name+:} false; then :
  10512. $as_echo_n "(cached) " >&6
  10513. else
  10514. ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
  10515. # In Guile up to 2.0.11 included, guile-2.0.pc would not define
  10516. # the 'guild' and 'bindir' variables. In that case, try to guess
  10517. # what the program name is, at the risk of getting it wrong if
  10518. # Guile was configured with '--program-suffix' or similar.
  10519. if test "x$ac_cv_guild_program_name" = "x"; then
  10520. guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
  10521. ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
  10522. fi
  10523. fi
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
  10525. $as_echo "$ac_cv_guild_program_name" >&6; }
  10526. if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
  10527. as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
  10528. fi
  10529. GUILD="$ac_cv_guild_program_name"
  10530. ;;
  10531. esac
  10532. if test "$cross_compiling" = no; then
  10533. GUILD_TARGET_FLAG=
  10534. else
  10535. GUILD_TARGET_FLAG="--target=$host"
  10536. fi
  10537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
  10538. $as_echo_n "checking whether guild supports this host... " >&6; }
  10539. if ${ac_cv_guild_ok+:} false; then :
  10540. $as_echo_n "(cached) " >&6
  10541. else
  10542. echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
  10543. if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
  10544. ac_cv_guild_ok=yes
  10545. else
  10546. ac_cv_guild_ok=no
  10547. fi
  10548. fi
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
  10550. $as_echo "$ac_cv_guild_ok" >&6; }
  10551. if test "$ac_cv_guild_ok" = no; then
  10552. have_libguile=no
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
  10554. $as_echo "$as_me: WARNING: disabling guile support" >&2;}
  10555. fi
  10556. fi
  10557. if test "${have_libguile}" != no; then
  10558. $as_echo "#define HAVE_GUILE 1" >>confdefs.h
  10559. CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
  10560. CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
  10561. CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
  10562. CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
  10563. ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
  10564. save_LIBS="$LIBS"
  10565. save_CPPFLAGS="$CPPFLAGS"
  10566. LIBS="$GUILE_LIBS"
  10567. CPPFLAGS="$GUILE_CPPFLAGS"
  10568. for ac_func in scm_new_smob
  10569. do :
  10570. ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
  10571. if test "x$ac_cv_func_scm_new_smob" = xyes; then :
  10572. cat >>confdefs.h <<_ACEOF
  10573. #define HAVE_SCM_NEW_SMOB 1
  10574. _ACEOF
  10575. fi
  10576. done
  10577. LIBS="$save_LIBS"
  10578. CPPFLAGS="$save_CPPFLAGS"
  10579. else
  10580. # Even if Guile support is not compiled in, we need to have these files
  10581. # included.
  10582. CONFIG_OBS="$CONFIG_OBS guile/guile.o"
  10583. CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
  10584. fi
  10585. if test "${have_libguile}" != no; then
  10586. HAVE_GUILE_TRUE=
  10587. HAVE_GUILE_FALSE='#'
  10588. else
  10589. HAVE_GUILE_TRUE='#'
  10590. HAVE_GUILE_FALSE=
  10591. fi
  10592. # ---------------------------- #
  10593. # Check for source highlight. #
  10594. # ---------------------------- #
  10595. SRCHIGH_LIBS=
  10596. SRCHIGH_CFLAGS=
  10597. # Check whether --enable-source-highlight was given.
  10598. if test "${enable_source_highlight+set}" = set; then :
  10599. enableval=$enable_source_highlight; case "${enableval}" in
  10600. yes) enable_source_highlight=yes ;;
  10601. no) enable_source_highlight=no ;;
  10602. *) as_fn_error $? "bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
  10603. esac
  10604. else
  10605. enable_source_highlight=auto
  10606. fi
  10607. if test "${enable_source_highlight}" != "no"; then
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
  10609. $as_echo_n "checking for the source-highlight library... " >&6; }
  10610. if test "${pkg_config_prog_path}" = "missing"; then
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
  10612. $as_echo "no - pkg-config not found" >&6; }
  10613. if test "${enable_source_highlight}" = "yes"; then
  10614. as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
  10615. fi
  10616. else
  10617. if ${pkg_config_prog_path} --exists source-highlight; then
  10618. case "$LDFLAGS" in
  10619. *static-libstdc*)
  10620. as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
  10621. ;;
  10622. esac
  10623. srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
  10624. srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
  10625. # Now that we have found a source-highlight library, check if we can use
  10626. # it. In particular, we're trying to detect the situation that the
  10627. # library is using the new libstdc++ library abi ( see
  10628. # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
  10629. # while the compiler being used to compile gdb is using the old abi.
  10630. # Such a situation will result in an undefined reference to
  10631. # srchilite::SourceHighlight::SourceHighlight(std::string const&).
  10632. # This situation can occur for instance when using a source highlight
  10633. # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
  10634. ac_ext=cpp
  10635. ac_cpp='$CXXCPP $CPPFLAGS'
  10636. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10637. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10638. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10639. save_CXXFLAGS="$CXXFLAGS"
  10640. save_LIBS="$LIBS"
  10641. CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
  10642. LIBS="$LIBS $srchigh_pkg_libs"
  10643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10644. /* end confdefs.h. */
  10645. #include <srchilite/sourcehighlight.h>
  10646. int
  10647. main ()
  10648. {
  10649. std::string outlang = "esc.outlang";
  10650. new srchilite::SourceHighlight (outlang);
  10651. ;
  10652. return 0;
  10653. }
  10654. _ACEOF
  10655. if ac_fn_cxx_try_link "$LINENO"; then :
  10656. have_usable_source_highlight=yes
  10657. else
  10658. have_usable_source_highlight=no
  10659. fi
  10660. rm -f core conftest.err conftest.$ac_objext \
  10661. conftest$ac_exeext conftest.$ac_ext
  10662. CXXFLAGS="$save_CXXFLAGS"
  10663. LIBS="$save_LIBS"
  10664. ac_ext=c
  10665. ac_cpp='$CPP $CPPFLAGS'
  10666. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10667. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10668. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10669. if test "${have_usable_source_highlight}" = "yes"; then
  10670. $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10672. $as_echo "yes" >&6; }
  10673. SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
  10674. SRCHIGH_LIBS="$srchigh_pkg_libs"
  10675. else
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10677. $as_echo "no" >&6; }
  10678. if test "${enable_source_highlight}" = "yes"; then
  10679. as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
  10680. fi
  10681. fi
  10682. else
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10684. $as_echo "no" >&6; }
  10685. if test "${enable_source_highlight}" = "yes"; then
  10686. as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
  10687. fi
  10688. fi
  10689. fi
  10690. fi
  10691. # ------------------------- #
  10692. # Checks for header files. #
  10693. # ------------------------- #
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10695. $as_echo_n "checking for ANSI C header files... " >&6; }
  10696. if ${ac_cv_header_stdc+:} false; then :
  10697. $as_echo_n "(cached) " >&6
  10698. else
  10699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10700. /* end confdefs.h. */
  10701. #include <stdlib.h>
  10702. #include <stdarg.h>
  10703. #include <string.h>
  10704. #include <float.h>
  10705. int
  10706. main ()
  10707. {
  10708. ;
  10709. return 0;
  10710. }
  10711. _ACEOF
  10712. if ac_fn_c_try_compile "$LINENO"; then :
  10713. ac_cv_header_stdc=yes
  10714. else
  10715. ac_cv_header_stdc=no
  10716. fi
  10717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10718. if test $ac_cv_header_stdc = yes; then
  10719. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10721. /* end confdefs.h. */
  10722. #include <string.h>
  10723. _ACEOF
  10724. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10725. $EGREP "memchr" >/dev/null 2>&1; then :
  10726. else
  10727. ac_cv_header_stdc=no
  10728. fi
  10729. rm -f conftest*
  10730. fi
  10731. if test $ac_cv_header_stdc = yes; then
  10732. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10734. /* end confdefs.h. */
  10735. #include <stdlib.h>
  10736. _ACEOF
  10737. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10738. $EGREP "free" >/dev/null 2>&1; then :
  10739. else
  10740. ac_cv_header_stdc=no
  10741. fi
  10742. rm -f conftest*
  10743. fi
  10744. if test $ac_cv_header_stdc = yes; then
  10745. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10746. if test "$cross_compiling" = yes; then :
  10747. :
  10748. else
  10749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10750. /* end confdefs.h. */
  10751. #include <ctype.h>
  10752. #include <stdlib.h>
  10753. #if ((' ' & 0x0FF) == 0x020)
  10754. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10755. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10756. #else
  10757. # define ISLOWER(c) \
  10758. (('a' <= (c) && (c) <= 'i') \
  10759. || ('j' <= (c) && (c) <= 'r') \
  10760. || ('s' <= (c) && (c) <= 'z'))
  10761. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10762. #endif
  10763. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10764. int
  10765. main ()
  10766. {
  10767. int i;
  10768. for (i = 0; i < 256; i++)
  10769. if (XOR (islower (i), ISLOWER (i))
  10770. || toupper (i) != TOUPPER (i))
  10771. return 2;
  10772. return 0;
  10773. }
  10774. _ACEOF
  10775. if ac_fn_c_try_run "$LINENO"; then :
  10776. else
  10777. ac_cv_header_stdc=no
  10778. fi
  10779. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10780. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10781. fi
  10782. fi
  10783. fi
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10785. $as_echo "$ac_cv_header_stdc" >&6; }
  10786. if test $ac_cv_header_stdc = yes; then
  10787. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10788. fi
  10789. # elf_hp.h is for HP/UX 64-bit shared library support.
  10790. for ac_header in nlist.h machine/reg.h \
  10791. thread_db.h \
  10792. sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
  10793. sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
  10794. sys/reg.h sys/debugreg.h \
  10795. termios.h elf_hp.h
  10796. do :
  10797. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10798. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10799. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10800. cat >>confdefs.h <<_ACEOF
  10801. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10802. _ACEOF
  10803. fi
  10804. done
  10805. for ac_header in sys/user.h
  10806. do :
  10807. ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
  10808. # include <sys/param.h>
  10809. #endif
  10810. "
  10811. if test "x$ac_cv_header_sys_user_h" = xyes; then :
  10812. cat >>confdefs.h <<_ACEOF
  10813. #define HAVE_SYS_USER_H 1
  10814. _ACEOF
  10815. fi
  10816. done
  10817. for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
  10818. do :
  10819. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10820. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10821. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10822. cat >>confdefs.h <<_ACEOF
  10823. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10824. _ACEOF
  10825. fi
  10826. done
  10827. for ac_header in term.h
  10828. do :
  10829. ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
  10830. # include <curses.h>
  10831. #endif
  10832. "
  10833. if test "x$ac_cv_header_term_h" = xyes; then :
  10834. cat >>confdefs.h <<_ACEOF
  10835. #define HAVE_TERM_H 1
  10836. _ACEOF
  10837. fi
  10838. done
  10839. for ac_header in sys/socket.h
  10840. do :
  10841. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  10842. if test "x$ac_cv_header_sys_socket_h" = xyes; then :
  10843. cat >>confdefs.h <<_ACEOF
  10844. #define HAVE_SYS_SOCKET_H 1
  10845. _ACEOF
  10846. fi
  10847. done
  10848. for ac_header in ws2tcpip.h
  10849. do :
  10850. ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  10851. if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
  10852. cat >>confdefs.h <<_ACEOF
  10853. #define HAVE_WS2TCPIP_H 1
  10854. _ACEOF
  10855. fi
  10856. done
  10857. for ac_header in execinfo.h
  10858. do :
  10859. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  10860. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  10861. cat >>confdefs.h <<_ACEOF
  10862. #define HAVE_EXECINFO_H 1
  10863. _ACEOF
  10864. fi
  10865. done
  10866. # ------------------------- #
  10867. # Checks for declarations. #
  10868. # ------------------------- #
  10869. # Check for presence and size of long long.
  10870. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  10871. if test "x$ac_cv_type_long_long" = xyes; then :
  10872. cat >>confdefs.h <<_ACEOF
  10873. #define HAVE_LONG_LONG 1
  10874. _ACEOF
  10875. # The cast to long int works around a bug in the HP C Compiler
  10876. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10877. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10878. # This bug is HP SR number 8606223364.
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  10880. $as_echo_n "checking size of long long... " >&6; }
  10881. if ${ac_cv_sizeof_long_long+:} false; then :
  10882. $as_echo_n "(cached) " >&6
  10883. else
  10884. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  10885. else
  10886. if test "$ac_cv_type_long_long" = yes; then
  10887. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10888. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10889. as_fn_error 77 "cannot compute sizeof (long long)
  10890. See \`config.log' for more details" "$LINENO" 5; }
  10891. else
  10892. ac_cv_sizeof_long_long=0
  10893. fi
  10894. fi
  10895. fi
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  10897. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  10898. cat >>confdefs.h <<_ACEOF
  10899. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10900. _ACEOF
  10901. fi
  10902. as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
  10903. ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
  10904. if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
  10905. ac_have_decl=1
  10906. else
  10907. ac_have_decl=0
  10908. fi
  10909. cat >>confdefs.h <<_ACEOF
  10910. #define HAVE_DECL_BASENAME $ac_have_decl
  10911. _ACEOF
  10912. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  10913. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  10914. ac_have_decl=1
  10915. else
  10916. ac_have_decl=0
  10917. fi
  10918. cat >>confdefs.h <<_ACEOF
  10919. #define HAVE_DECL_FFS $ac_have_decl
  10920. _ACEOF
  10921. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  10922. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  10923. ac_have_decl=1
  10924. else
  10925. ac_have_decl=0
  10926. fi
  10927. cat >>confdefs.h <<_ACEOF
  10928. #define HAVE_DECL_ASPRINTF $ac_have_decl
  10929. _ACEOF
  10930. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  10931. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  10932. ac_have_decl=1
  10933. else
  10934. ac_have_decl=0
  10935. fi
  10936. cat >>confdefs.h <<_ACEOF
  10937. #define HAVE_DECL_VASPRINTF $ac_have_decl
  10938. _ACEOF
  10939. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  10940. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  10941. ac_have_decl=1
  10942. else
  10943. ac_have_decl=0
  10944. fi
  10945. cat >>confdefs.h <<_ACEOF
  10946. #define HAVE_DECL_SNPRINTF $ac_have_decl
  10947. _ACEOF
  10948. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  10949. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  10950. ac_have_decl=1
  10951. else
  10952. ac_have_decl=0
  10953. fi
  10954. cat >>confdefs.h <<_ACEOF
  10955. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  10956. _ACEOF
  10957. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  10958. if test "x$ac_cv_have_decl_strtol" = xyes; then :
  10959. ac_have_decl=1
  10960. else
  10961. ac_have_decl=0
  10962. fi
  10963. cat >>confdefs.h <<_ACEOF
  10964. #define HAVE_DECL_STRTOL $ac_have_decl
  10965. _ACEOF
  10966. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  10967. if test "x$ac_cv_have_decl_strtoul" = xyes; then :
  10968. ac_have_decl=1
  10969. else
  10970. ac_have_decl=0
  10971. fi
  10972. cat >>confdefs.h <<_ACEOF
  10973. #define HAVE_DECL_STRTOUL $ac_have_decl
  10974. _ACEOF
  10975. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  10976. if test "x$ac_cv_have_decl_strtoll" = xyes; then :
  10977. ac_have_decl=1
  10978. else
  10979. ac_have_decl=0
  10980. fi
  10981. cat >>confdefs.h <<_ACEOF
  10982. #define HAVE_DECL_STRTOLL $ac_have_decl
  10983. _ACEOF
  10984. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  10985. if test "x$ac_cv_have_decl_strtoull" = xyes; then :
  10986. ac_have_decl=1
  10987. else
  10988. ac_have_decl=0
  10989. fi
  10990. cat >>confdefs.h <<_ACEOF
  10991. #define HAVE_DECL_STRTOULL $ac_have_decl
  10992. _ACEOF
  10993. ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
  10994. if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
  10995. ac_have_decl=1
  10996. else
  10997. ac_have_decl=0
  10998. fi
  10999. cat >>confdefs.h <<_ACEOF
  11000. #define HAVE_DECL_STRVERSCMP $ac_have_decl
  11001. _ACEOF
  11002. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  11003. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  11004. ac_have_decl=1
  11005. else
  11006. ac_have_decl=0
  11007. fi
  11008. cat >>confdefs.h <<_ACEOF
  11009. #define HAVE_DECL_SNPRINTF $ac_have_decl
  11010. _ACEOF
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11012. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11013. if ${am_cv_val_LC_MESSAGES+:} false; then :
  11014. $as_echo_n "(cached) " >&6
  11015. else
  11016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11017. /* end confdefs.h. */
  11018. #include <locale.h>
  11019. int
  11020. main ()
  11021. {
  11022. return LC_MESSAGES
  11023. ;
  11024. return 0;
  11025. }
  11026. _ACEOF
  11027. if ac_fn_c_try_link "$LINENO"; then :
  11028. am_cv_val_LC_MESSAGES=yes
  11029. else
  11030. am_cv_val_LC_MESSAGES=no
  11031. fi
  11032. rm -f core conftest.err conftest.$ac_objext \
  11033. conftest$ac_exeext conftest.$ac_ext
  11034. fi
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  11036. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  11037. if test $am_cv_val_LC_MESSAGES = yes; then
  11038. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11039. fi
  11040. # ------------------ #
  11041. # Checks for types. #
  11042. # ------------------ #
  11043. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  11044. #if HAVE_SYS_SOCKET_H
  11045. # include <sys/socket.h>
  11046. #elif HAVE_WS2TCPIP_H
  11047. # include <ws2tcpip.h>
  11048. #endif
  11049. "
  11050. if test "x$ac_cv_type_socklen_t" = xyes; then :
  11051. cat >>confdefs.h <<_ACEOF
  11052. #define HAVE_SOCKLEN_T 1
  11053. _ACEOF
  11054. fi
  11055. # ------------------------------------- #
  11056. # Checks for compiler characteristics. #
  11057. # ------------------------------------- #
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  11059. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  11060. if ${ac_cv_c_const+:} false; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. int
  11066. main ()
  11067. {
  11068. #ifndef __cplusplus
  11069. /* Ultrix mips cc rejects this sort of thing. */
  11070. typedef int charset[2];
  11071. const charset cs = { 0, 0 };
  11072. /* SunOS 4.1.1 cc rejects this. */
  11073. char const *const *pcpcc;
  11074. char **ppc;
  11075. /* NEC SVR4.0.2 mips cc rejects this. */
  11076. struct point {int x, y;};
  11077. static struct point const zero = {0,0};
  11078. /* AIX XL C 1.02.0.0 rejects this.
  11079. It does not let you subtract one const X* pointer from another in
  11080. an arm of an if-expression whose if-part is not a constant
  11081. expression */
  11082. const char *g = "string";
  11083. pcpcc = &g + (g ? g-g : 0);
  11084. /* HPUX 7.0 cc rejects these. */
  11085. ++pcpcc;
  11086. ppc = (char**) pcpcc;
  11087. pcpcc = (char const *const *) ppc;
  11088. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11089. char tx;
  11090. char *t = &tx;
  11091. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11092. *t++ = 0;
  11093. if (s) return 0;
  11094. }
  11095. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11096. int x[] = {25, 17};
  11097. const int *foo = &x[0];
  11098. ++foo;
  11099. }
  11100. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11101. typedef const int *iptr;
  11102. iptr p = 0;
  11103. ++p;
  11104. }
  11105. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11106. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11107. struct s { int j; const int *ap[3]; } bx;
  11108. struct s *b = &bx; b->j = 5;
  11109. }
  11110. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11111. const int foo = 10;
  11112. if (!foo) return 0;
  11113. }
  11114. return !cs[0] && !zero.x;
  11115. #endif
  11116. ;
  11117. return 0;
  11118. }
  11119. _ACEOF
  11120. if ac_fn_c_try_compile "$LINENO"; then :
  11121. ac_cv_c_const=yes
  11122. else
  11123. ac_cv_c_const=no
  11124. fi
  11125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11126. fi
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11128. $as_echo "$ac_cv_c_const" >&6; }
  11129. if test $ac_cv_c_const = no; then
  11130. $as_echo "#define const /**/" >>confdefs.h
  11131. fi
  11132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11133. $as_echo_n "checking for inline... " >&6; }
  11134. if ${ac_cv_c_inline+:} false; then :
  11135. $as_echo_n "(cached) " >&6
  11136. else
  11137. ac_cv_c_inline=no
  11138. for ac_kw in inline __inline__ __inline; do
  11139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11140. /* end confdefs.h. */
  11141. #ifndef __cplusplus
  11142. typedef int foo_t;
  11143. static $ac_kw foo_t static_foo () {return 0; }
  11144. $ac_kw foo_t foo () {return 0; }
  11145. #endif
  11146. _ACEOF
  11147. if ac_fn_c_try_compile "$LINENO"; then :
  11148. ac_cv_c_inline=$ac_kw
  11149. fi
  11150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11151. test "$ac_cv_c_inline" != no && break
  11152. done
  11153. fi
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11155. $as_echo "$ac_cv_c_inline" >&6; }
  11156. case $ac_cv_c_inline in
  11157. inline | yes) ;;
  11158. *)
  11159. case $ac_cv_c_inline in
  11160. no) ac_val=;;
  11161. *) ac_val=$ac_cv_c_inline;;
  11162. esac
  11163. cat >>confdefs.h <<_ACEOF
  11164. #ifndef __cplusplus
  11165. #define inline $ac_val
  11166. #endif
  11167. _ACEOF
  11168. ;;
  11169. esac
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  11171. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  11172. if ${ac_cv_c_bigendian+:} false; then :
  11173. $as_echo_n "(cached) " >&6
  11174. else
  11175. ac_cv_c_bigendian=unknown
  11176. # See if we're dealing with a universal compiler.
  11177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11178. /* end confdefs.h. */
  11179. #ifndef __APPLE_CC__
  11180. not a universal capable compiler
  11181. #endif
  11182. typedef int dummy;
  11183. _ACEOF
  11184. if ac_fn_c_try_compile "$LINENO"; then :
  11185. # Check for potential -arch flags. It is not universal unless
  11186. # there are at least two -arch flags with different values.
  11187. ac_arch=
  11188. ac_prev=
  11189. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  11190. if test -n "$ac_prev"; then
  11191. case $ac_word in
  11192. i?86 | x86_64 | ppc | ppc64)
  11193. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  11194. ac_arch=$ac_word
  11195. else
  11196. ac_cv_c_bigendian=universal
  11197. break
  11198. fi
  11199. ;;
  11200. esac
  11201. ac_prev=
  11202. elif test "x$ac_word" = "x-arch"; then
  11203. ac_prev=arch
  11204. fi
  11205. done
  11206. fi
  11207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11208. if test $ac_cv_c_bigendian = unknown; then
  11209. # See if sys/param.h defines the BYTE_ORDER macro.
  11210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11211. /* end confdefs.h. */
  11212. #include <sys/types.h>
  11213. #include <sys/param.h>
  11214. int
  11215. main ()
  11216. {
  11217. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  11218. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  11219. && LITTLE_ENDIAN)
  11220. bogus endian macros
  11221. #endif
  11222. ;
  11223. return 0;
  11224. }
  11225. _ACEOF
  11226. if ac_fn_c_try_compile "$LINENO"; then :
  11227. # It does; now see whether it defined to BIG_ENDIAN or not.
  11228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11229. /* end confdefs.h. */
  11230. #include <sys/types.h>
  11231. #include <sys/param.h>
  11232. int
  11233. main ()
  11234. {
  11235. #if BYTE_ORDER != BIG_ENDIAN
  11236. not big endian
  11237. #endif
  11238. ;
  11239. return 0;
  11240. }
  11241. _ACEOF
  11242. if ac_fn_c_try_compile "$LINENO"; then :
  11243. ac_cv_c_bigendian=yes
  11244. else
  11245. ac_cv_c_bigendian=no
  11246. fi
  11247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11248. fi
  11249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11250. fi
  11251. if test $ac_cv_c_bigendian = unknown; then
  11252. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  11253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11254. /* end confdefs.h. */
  11255. #include <limits.h>
  11256. int
  11257. main ()
  11258. {
  11259. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  11260. bogus endian macros
  11261. #endif
  11262. ;
  11263. return 0;
  11264. }
  11265. _ACEOF
  11266. if ac_fn_c_try_compile "$LINENO"; then :
  11267. # It does; now see whether it defined to _BIG_ENDIAN or not.
  11268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11269. /* end confdefs.h. */
  11270. #include <limits.h>
  11271. int
  11272. main ()
  11273. {
  11274. #ifndef _BIG_ENDIAN
  11275. not big endian
  11276. #endif
  11277. ;
  11278. return 0;
  11279. }
  11280. _ACEOF
  11281. if ac_fn_c_try_compile "$LINENO"; then :
  11282. ac_cv_c_bigendian=yes
  11283. else
  11284. ac_cv_c_bigendian=no
  11285. fi
  11286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11287. fi
  11288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11289. fi
  11290. if test $ac_cv_c_bigendian = unknown; then
  11291. # Compile a test program.
  11292. if test "$cross_compiling" = yes; then :
  11293. # Try to guess by grepping values from an object file.
  11294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11295. /* end confdefs.h. */
  11296. short int ascii_mm[] =
  11297. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  11298. short int ascii_ii[] =
  11299. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  11300. int use_ascii (int i) {
  11301. return ascii_mm[i] + ascii_ii[i];
  11302. }
  11303. short int ebcdic_ii[] =
  11304. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  11305. short int ebcdic_mm[] =
  11306. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  11307. int use_ebcdic (int i) {
  11308. return ebcdic_mm[i] + ebcdic_ii[i];
  11309. }
  11310. extern int foo;
  11311. int
  11312. main ()
  11313. {
  11314. return use_ascii (foo) == use_ebcdic (foo);
  11315. ;
  11316. return 0;
  11317. }
  11318. _ACEOF
  11319. if ac_fn_c_try_compile "$LINENO"; then :
  11320. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  11321. ac_cv_c_bigendian=yes
  11322. fi
  11323. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  11324. if test "$ac_cv_c_bigendian" = unknown; then
  11325. ac_cv_c_bigendian=no
  11326. else
  11327. # finding both strings is unlikely to happen, but who knows?
  11328. ac_cv_c_bigendian=unknown
  11329. fi
  11330. fi
  11331. fi
  11332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11333. else
  11334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11335. /* end confdefs.h. */
  11336. $ac_includes_default
  11337. int
  11338. main ()
  11339. {
  11340. /* Are we little or big endian? From Harbison&Steele. */
  11341. union
  11342. {
  11343. long int l;
  11344. char c[sizeof (long int)];
  11345. } u;
  11346. u.l = 1;
  11347. return u.c[sizeof (long int) - 1] == 1;
  11348. ;
  11349. return 0;
  11350. }
  11351. _ACEOF
  11352. if ac_fn_c_try_run "$LINENO"; then :
  11353. ac_cv_c_bigendian=no
  11354. else
  11355. ac_cv_c_bigendian=yes
  11356. fi
  11357. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11358. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11359. fi
  11360. fi
  11361. fi
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  11363. $as_echo "$ac_cv_c_bigendian" >&6; }
  11364. case $ac_cv_c_bigendian in #(
  11365. yes)
  11366. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  11367. ;; #(
  11368. no)
  11369. ;; #(
  11370. universal)
  11371. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  11372. ;; #(
  11373. *)
  11374. as_fn_error $? "unknown endianness
  11375. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  11376. esac
  11377. # ------------------------------ #
  11378. # Checks for library functions. #
  11379. # ------------------------------ #
  11380. for ac_func in getuid getgid \
  11381. pipe pread pread64 pwrite resize_term \
  11382. getpgid setsid \
  11383. sigaction sigsetmask socketpair \
  11384. ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
  11385. setrlimit getrlimit posix_madvise waitpid \
  11386. use_default_colors
  11387. do :
  11388. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11389. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11390. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11391. cat >>confdefs.h <<_ACEOF
  11392. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11393. _ACEOF
  11394. fi
  11395. done
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11397. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11398. if ${am_cv_langinfo_codeset+:} false; then :
  11399. $as_echo_n "(cached) " >&6
  11400. else
  11401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11402. /* end confdefs.h. */
  11403. #include <langinfo.h>
  11404. int
  11405. main ()
  11406. {
  11407. char* cs = nl_langinfo(CODESET);
  11408. ;
  11409. return 0;
  11410. }
  11411. _ACEOF
  11412. if ac_fn_c_try_link "$LINENO"; then :
  11413. am_cv_langinfo_codeset=yes
  11414. else
  11415. am_cv_langinfo_codeset=no
  11416. fi
  11417. rm -f core conftest.err conftest.$ac_objext \
  11418. conftest$ac_exeext conftest.$ac_ext
  11419. fi
  11420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11421. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11422. if test $am_cv_langinfo_codeset = yes; then
  11423. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11424. fi
  11425. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11426. if test "x$ac_cv_type_size_t" = xyes; then :
  11427. else
  11428. cat >>confdefs.h <<_ACEOF
  11429. #define size_t unsigned int
  11430. _ACEOF
  11431. fi
  11432. for ac_header in $ac_header_list
  11433. do :
  11434. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11435. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11436. "
  11437. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11438. cat >>confdefs.h <<_ACEOF
  11439. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11440. _ACEOF
  11441. fi
  11442. done
  11443. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11444. if test "x$ac_cv_type_pid_t" = xyes; then :
  11445. else
  11446. cat >>confdefs.h <<_ACEOF
  11447. #define pid_t int
  11448. _ACEOF
  11449. fi
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  11451. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  11452. if ${ac_cv_path_SED+:} false; then :
  11453. $as_echo_n "(cached) " >&6
  11454. else
  11455. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  11456. for ac_i in 1 2 3 4 5 6 7; do
  11457. ac_script="$ac_script$as_nl$ac_script"
  11458. done
  11459. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  11460. { ac_script=; unset ac_script;}
  11461. if test -z "$SED"; then
  11462. ac_path_SED_found=false
  11463. # Loop through the user's path and test for each of PROGNAME-LIST
  11464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11465. for as_dir in $PATH
  11466. do
  11467. IFS=$as_save_IFS
  11468. test -z "$as_dir" && as_dir=.
  11469. for ac_prog in sed gsed; do
  11470. for ac_exec_ext in '' $ac_executable_extensions; do
  11471. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  11472. as_fn_executable_p "$ac_path_SED" || continue
  11473. # Check for GNU ac_path_SED and select it if it is found.
  11474. # Check for GNU $ac_path_SED
  11475. case `"$ac_path_SED" --version 2>&1` in
  11476. *GNU*)
  11477. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  11478. *)
  11479. ac_count=0
  11480. $as_echo_n 0123456789 >"conftest.in"
  11481. while :
  11482. do
  11483. cat "conftest.in" "conftest.in" >"conftest.tmp"
  11484. mv "conftest.tmp" "conftest.in"
  11485. cp "conftest.in" "conftest.nl"
  11486. $as_echo '' >> "conftest.nl"
  11487. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  11488. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  11489. as_fn_arith $ac_count + 1 && ac_count=$as_val
  11490. if test $ac_count -gt ${ac_path_SED_max-0}; then
  11491. # Best one so far, save it but keep looking for a better one
  11492. ac_cv_path_SED="$ac_path_SED"
  11493. ac_path_SED_max=$ac_count
  11494. fi
  11495. # 10*(2^10) chars as input seems more than enough
  11496. test $ac_count -gt 10 && break
  11497. done
  11498. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  11499. esac
  11500. $ac_path_SED_found && break 3
  11501. done
  11502. done
  11503. done
  11504. IFS=$as_save_IFS
  11505. if test -z "$ac_cv_path_SED"; then
  11506. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  11507. fi
  11508. else
  11509. ac_cv_path_SED=$SED
  11510. fi
  11511. fi
  11512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  11513. $as_echo "$ac_cv_path_SED" >&6; }
  11514. SED="$ac_cv_path_SED"
  11515. rm -f conftest.sed
  11516. # Set the 'development' global.
  11517. . $srcdir/../bfd/development.sh
  11518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11519. $as_echo_n "checking for ANSI C header files... " >&6; }
  11520. if ${ac_cv_header_stdc+:} false; then :
  11521. $as_echo_n "(cached) " >&6
  11522. else
  11523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11524. /* end confdefs.h. */
  11525. #include <stdlib.h>
  11526. #include <stdarg.h>
  11527. #include <string.h>
  11528. #include <float.h>
  11529. int
  11530. main ()
  11531. {
  11532. ;
  11533. return 0;
  11534. }
  11535. _ACEOF
  11536. if ac_fn_c_try_compile "$LINENO"; then :
  11537. ac_cv_header_stdc=yes
  11538. else
  11539. ac_cv_header_stdc=no
  11540. fi
  11541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11542. if test $ac_cv_header_stdc = yes; then
  11543. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11545. /* end confdefs.h. */
  11546. #include <string.h>
  11547. _ACEOF
  11548. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11549. $EGREP "memchr" >/dev/null 2>&1; then :
  11550. else
  11551. ac_cv_header_stdc=no
  11552. fi
  11553. rm -f conftest*
  11554. fi
  11555. if test $ac_cv_header_stdc = yes; then
  11556. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11558. /* end confdefs.h. */
  11559. #include <stdlib.h>
  11560. _ACEOF
  11561. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11562. $EGREP "free" >/dev/null 2>&1; then :
  11563. else
  11564. ac_cv_header_stdc=no
  11565. fi
  11566. rm -f conftest*
  11567. fi
  11568. if test $ac_cv_header_stdc = yes; then
  11569. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11570. if test "$cross_compiling" = yes; then :
  11571. :
  11572. else
  11573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11574. /* end confdefs.h. */
  11575. #include <ctype.h>
  11576. #include <stdlib.h>
  11577. #if ((' ' & 0x0FF) == 0x020)
  11578. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11579. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11580. #else
  11581. # define ISLOWER(c) \
  11582. (('a' <= (c) && (c) <= 'i') \
  11583. || ('j' <= (c) && (c) <= 'r') \
  11584. || ('s' <= (c) && (c) <= 'z'))
  11585. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11586. #endif
  11587. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11588. int
  11589. main ()
  11590. {
  11591. int i;
  11592. for (i = 0; i < 256; i++)
  11593. if (XOR (islower (i), ISLOWER (i))
  11594. || toupper (i) != TOUPPER (i))
  11595. return 2;
  11596. return 0;
  11597. }
  11598. _ACEOF
  11599. if ac_fn_c_try_run "$LINENO"; then :
  11600. else
  11601. ac_cv_header_stdc=no
  11602. fi
  11603. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11604. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11605. fi
  11606. fi
  11607. fi
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11609. $as_echo "$ac_cv_header_stdc" >&6; }
  11610. if test $ac_cv_header_stdc = yes; then
  11611. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11612. fi
  11613. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  11614. # for constant arguments. Useless!
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  11616. $as_echo_n "checking for working alloca.h... " >&6; }
  11617. if ${ac_cv_working_alloca_h+:} false; then :
  11618. $as_echo_n "(cached) " >&6
  11619. else
  11620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11621. /* end confdefs.h. */
  11622. #include <alloca.h>
  11623. int
  11624. main ()
  11625. {
  11626. char *p = (char *) alloca (2 * sizeof (int));
  11627. if (p) return 0;
  11628. ;
  11629. return 0;
  11630. }
  11631. _ACEOF
  11632. if ac_fn_c_try_link "$LINENO"; then :
  11633. ac_cv_working_alloca_h=yes
  11634. else
  11635. ac_cv_working_alloca_h=no
  11636. fi
  11637. rm -f core conftest.err conftest.$ac_objext \
  11638. conftest$ac_exeext conftest.$ac_ext
  11639. fi
  11640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  11641. $as_echo "$ac_cv_working_alloca_h" >&6; }
  11642. if test $ac_cv_working_alloca_h = yes; then
  11643. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  11644. fi
  11645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  11646. $as_echo_n "checking for alloca... " >&6; }
  11647. if ${ac_cv_func_alloca_works+:} false; then :
  11648. $as_echo_n "(cached) " >&6
  11649. else
  11650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11651. /* end confdefs.h. */
  11652. #ifdef __GNUC__
  11653. # define alloca __builtin_alloca
  11654. #else
  11655. # ifdef _MSC_VER
  11656. # include <malloc.h>
  11657. # define alloca _alloca
  11658. # else
  11659. # ifdef HAVE_ALLOCA_H
  11660. # include <alloca.h>
  11661. # else
  11662. # ifdef _AIX
  11663. #pragma alloca
  11664. # else
  11665. # ifndef alloca /* predefined by HP cc +Olibcalls */
  11666. void *alloca (size_t);
  11667. # endif
  11668. # endif
  11669. # endif
  11670. # endif
  11671. #endif
  11672. int
  11673. main ()
  11674. {
  11675. char *p = (char *) alloca (1);
  11676. if (p) return 0;
  11677. ;
  11678. return 0;
  11679. }
  11680. _ACEOF
  11681. if ac_fn_c_try_link "$LINENO"; then :
  11682. ac_cv_func_alloca_works=yes
  11683. else
  11684. ac_cv_func_alloca_works=no
  11685. fi
  11686. rm -f core conftest.err conftest.$ac_objext \
  11687. conftest$ac_exeext conftest.$ac_ext
  11688. fi
  11689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  11690. $as_echo "$ac_cv_func_alloca_works" >&6; }
  11691. if test $ac_cv_func_alloca_works = yes; then
  11692. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  11693. else
  11694. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  11695. # that cause trouble. Some versions do not even contain alloca or
  11696. # contain a buggy version. If you still want to use their alloca,
  11697. # use ar to extract alloca.o from them instead of compiling alloca.c.
  11698. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  11699. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  11700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  11701. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  11702. if ${ac_cv_os_cray+:} false; then :
  11703. $as_echo_n "(cached) " >&6
  11704. else
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. #if defined CRAY && ! defined CRAY2
  11708. webecray
  11709. #else
  11710. wenotbecray
  11711. #endif
  11712. _ACEOF
  11713. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11714. $EGREP "webecray" >/dev/null 2>&1; then :
  11715. ac_cv_os_cray=yes
  11716. else
  11717. ac_cv_os_cray=no
  11718. fi
  11719. rm -f conftest*
  11720. fi
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  11722. $as_echo "$ac_cv_os_cray" >&6; }
  11723. if test $ac_cv_os_cray = yes; then
  11724. for ac_func in _getb67 GETB67 getb67; do
  11725. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11726. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11727. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11728. cat >>confdefs.h <<_ACEOF
  11729. #define CRAY_STACKSEG_END $ac_func
  11730. _ACEOF
  11731. break
  11732. fi
  11733. done
  11734. fi
  11735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  11736. $as_echo_n "checking stack direction for C alloca... " >&6; }
  11737. if ${ac_cv_c_stack_direction+:} false; then :
  11738. $as_echo_n "(cached) " >&6
  11739. else
  11740. if test "$cross_compiling" = yes; then :
  11741. ac_cv_c_stack_direction=0
  11742. else
  11743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11744. /* end confdefs.h. */
  11745. $ac_includes_default
  11746. int
  11747. find_stack_direction (int *addr, int depth)
  11748. {
  11749. int dir, dummy = 0;
  11750. if (! addr)
  11751. addr = &dummy;
  11752. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  11753. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  11754. return dir + dummy;
  11755. }
  11756. int
  11757. main (int argc, char **argv)
  11758. {
  11759. return find_stack_direction (0, argc + !argv + 20) < 0;
  11760. }
  11761. _ACEOF
  11762. if ac_fn_c_try_run "$LINENO"; then :
  11763. ac_cv_c_stack_direction=1
  11764. else
  11765. ac_cv_c_stack_direction=-1
  11766. fi
  11767. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11768. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11769. fi
  11770. fi
  11771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  11772. $as_echo "$ac_cv_c_stack_direction" >&6; }
  11773. cat >>confdefs.h <<_ACEOF
  11774. #define STACK_DIRECTION $ac_cv_c_stack_direction
  11775. _ACEOF
  11776. fi
  11777. WIN32APILIBS=
  11778. case ${host} in
  11779. *mingw32*)
  11780. $as_echo "#define USE_WIN32API 1" >>confdefs.h
  11781. WIN32APILIBS="-lws2_32"
  11782. ;;
  11783. esac
  11784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11785. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11786. if ${am_cv_langinfo_codeset+:} false; then :
  11787. $as_echo_n "(cached) " >&6
  11788. else
  11789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11790. /* end confdefs.h. */
  11791. #include <langinfo.h>
  11792. int
  11793. main ()
  11794. {
  11795. char* cs = nl_langinfo(CODESET);
  11796. ;
  11797. return 0;
  11798. }
  11799. _ACEOF
  11800. if ac_fn_c_try_link "$LINENO"; then :
  11801. am_cv_langinfo_codeset=yes
  11802. else
  11803. am_cv_langinfo_codeset=no
  11804. fi
  11805. rm -f core conftest.err conftest.$ac_objext \
  11806. conftest$ac_exeext conftest.$ac_ext
  11807. fi
  11808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11809. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11810. if test $am_cv_langinfo_codeset = yes; then
  11811. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11812. fi
  11813. for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
  11814. do :
  11815. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11816. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11817. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11818. cat >>confdefs.h <<_ACEOF
  11819. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11820. _ACEOF
  11821. fi
  11822. done
  11823. for ac_func in getpagesize
  11824. do :
  11825. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11826. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11827. cat >>confdefs.h <<_ACEOF
  11828. #define HAVE_GETPAGESIZE 1
  11829. _ACEOF
  11830. fi
  11831. done
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11833. $as_echo_n "checking for working mmap... " >&6; }
  11834. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11835. $as_echo_n "(cached) " >&6
  11836. else
  11837. if test "$cross_compiling" = yes; then :
  11838. ac_cv_func_mmap_fixed_mapped=no
  11839. else
  11840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11841. /* end confdefs.h. */
  11842. $ac_includes_default
  11843. /* malloc might have been renamed as rpl_malloc. */
  11844. #undef malloc
  11845. /* Thanks to Mike Haertel and Jim Avera for this test.
  11846. Here is a matrix of mmap possibilities:
  11847. mmap private not fixed
  11848. mmap private fixed at somewhere currently unmapped
  11849. mmap private fixed at somewhere already mapped
  11850. mmap shared not fixed
  11851. mmap shared fixed at somewhere currently unmapped
  11852. mmap shared fixed at somewhere already mapped
  11853. For private mappings, we should verify that changes cannot be read()
  11854. back from the file, nor mmap's back from the file at a different
  11855. address. (There have been systems where private was not correctly
  11856. implemented like the infamous i386 svr4.0, and systems where the
  11857. VM page cache was not coherent with the file system buffer cache
  11858. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11859. For shared mappings, we should conversely verify that changes get
  11860. propagated back to all the places they're supposed to be.
  11861. Grep wants private fixed already mapped.
  11862. The main things grep needs to know about mmap are:
  11863. * does it exist and is it safe to write into the mmap'd area
  11864. * how to use it (BSD variants) */
  11865. #include <fcntl.h>
  11866. #include <sys/mman.h>
  11867. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11868. char *malloc ();
  11869. #endif
  11870. /* This mess was copied from the GNU getpagesize.h. */
  11871. #ifndef HAVE_GETPAGESIZE
  11872. # ifdef _SC_PAGESIZE
  11873. # define getpagesize() sysconf(_SC_PAGESIZE)
  11874. # else /* no _SC_PAGESIZE */
  11875. # ifdef HAVE_SYS_PARAM_H
  11876. # include <sys/param.h>
  11877. # ifdef EXEC_PAGESIZE
  11878. # define getpagesize() EXEC_PAGESIZE
  11879. # else /* no EXEC_PAGESIZE */
  11880. # ifdef NBPG
  11881. # define getpagesize() NBPG * CLSIZE
  11882. # ifndef CLSIZE
  11883. # define CLSIZE 1
  11884. # endif /* no CLSIZE */
  11885. # else /* no NBPG */
  11886. # ifdef NBPC
  11887. # define getpagesize() NBPC
  11888. # else /* no NBPC */
  11889. # ifdef PAGESIZE
  11890. # define getpagesize() PAGESIZE
  11891. # endif /* PAGESIZE */
  11892. # endif /* no NBPC */
  11893. # endif /* no NBPG */
  11894. # endif /* no EXEC_PAGESIZE */
  11895. # else /* no HAVE_SYS_PARAM_H */
  11896. # define getpagesize() 8192 /* punt totally */
  11897. # endif /* no HAVE_SYS_PARAM_H */
  11898. # endif /* no _SC_PAGESIZE */
  11899. #endif /* no HAVE_GETPAGESIZE */
  11900. int
  11901. main ()
  11902. {
  11903. char *data, *data2, *data3;
  11904. const char *cdata2;
  11905. int i, pagesize;
  11906. int fd, fd2;
  11907. pagesize = getpagesize ();
  11908. /* First, make a file with some known garbage in it. */
  11909. data = (char *) malloc (pagesize);
  11910. if (!data)
  11911. return 1;
  11912. for (i = 0; i < pagesize; ++i)
  11913. *(data + i) = rand ();
  11914. umask (0);
  11915. fd = creat ("conftest.mmap", 0600);
  11916. if (fd < 0)
  11917. return 2;
  11918. if (write (fd, data, pagesize) != pagesize)
  11919. return 3;
  11920. close (fd);
  11921. /* Next, check that the tail of a page is zero-filled. File must have
  11922. non-zero length, otherwise we risk SIGBUS for entire page. */
  11923. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11924. if (fd2 < 0)
  11925. return 4;
  11926. cdata2 = "";
  11927. if (write (fd2, cdata2, 1) != 1)
  11928. return 5;
  11929. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11930. if (data2 == MAP_FAILED)
  11931. return 6;
  11932. for (i = 0; i < pagesize; ++i)
  11933. if (*(data2 + i))
  11934. return 7;
  11935. close (fd2);
  11936. if (munmap (data2, pagesize))
  11937. return 8;
  11938. /* Next, try to mmap the file at a fixed address which already has
  11939. something else allocated at it. If we can, also make sure that
  11940. we see the same garbage. */
  11941. fd = open ("conftest.mmap", O_RDWR);
  11942. if (fd < 0)
  11943. return 9;
  11944. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11945. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11946. return 10;
  11947. for (i = 0; i < pagesize; ++i)
  11948. if (*(data + i) != *(data2 + i))
  11949. return 11;
  11950. /* Finally, make sure that changes to the mapped area do not
  11951. percolate back to the file as seen by read(). (This is a bug on
  11952. some variants of i386 svr4.0.) */
  11953. for (i = 0; i < pagesize; ++i)
  11954. *(data2 + i) = *(data2 + i) + 1;
  11955. data3 = (char *) malloc (pagesize);
  11956. if (!data3)
  11957. return 12;
  11958. if (read (fd, data3, pagesize) != pagesize)
  11959. return 13;
  11960. for (i = 0; i < pagesize; ++i)
  11961. if (*(data + i) != *(data3 + i))
  11962. return 14;
  11963. close (fd);
  11964. return 0;
  11965. }
  11966. _ACEOF
  11967. if ac_fn_c_try_run "$LINENO"; then :
  11968. ac_cv_func_mmap_fixed_mapped=yes
  11969. else
  11970. ac_cv_func_mmap_fixed_mapped=no
  11971. fi
  11972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11973. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11974. fi
  11975. fi
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11977. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11978. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11979. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11980. fi
  11981. rm -f conftest.mmap conftest.txt
  11982. for ac_header in vfork.h
  11983. do :
  11984. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11985. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11986. cat >>confdefs.h <<_ACEOF
  11987. #define HAVE_VFORK_H 1
  11988. _ACEOF
  11989. fi
  11990. done
  11991. for ac_func in fork vfork
  11992. do :
  11993. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11994. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11995. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11996. cat >>confdefs.h <<_ACEOF
  11997. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11998. _ACEOF
  11999. fi
  12000. done
  12001. if test "x$ac_cv_func_fork" = xyes; then
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12003. $as_echo_n "checking for working fork... " >&6; }
  12004. if ${ac_cv_func_fork_works+:} false; then :
  12005. $as_echo_n "(cached) " >&6
  12006. else
  12007. if test "$cross_compiling" = yes; then :
  12008. ac_cv_func_fork_works=cross
  12009. else
  12010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12011. /* end confdefs.h. */
  12012. $ac_includes_default
  12013. int
  12014. main ()
  12015. {
  12016. /* By Ruediger Kuhlmann. */
  12017. return fork () < 0;
  12018. ;
  12019. return 0;
  12020. }
  12021. _ACEOF
  12022. if ac_fn_c_try_run "$LINENO"; then :
  12023. ac_cv_func_fork_works=yes
  12024. else
  12025. ac_cv_func_fork_works=no
  12026. fi
  12027. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12028. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12029. fi
  12030. fi
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12032. $as_echo "$ac_cv_func_fork_works" >&6; }
  12033. else
  12034. ac_cv_func_fork_works=$ac_cv_func_fork
  12035. fi
  12036. if test "x$ac_cv_func_fork_works" = xcross; then
  12037. case $host in
  12038. *-*-amigaos* | *-*-msdosdjgpp*)
  12039. # Override, as these systems have only a dummy fork() stub
  12040. ac_cv_func_fork_works=no
  12041. ;;
  12042. *)
  12043. ac_cv_func_fork_works=yes
  12044. ;;
  12045. esac
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12047. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12048. fi
  12049. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12050. if test "x$ac_cv_func_vfork" = xyes; then
  12051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12052. $as_echo_n "checking for working vfork... " >&6; }
  12053. if ${ac_cv_func_vfork_works+:} false; then :
  12054. $as_echo_n "(cached) " >&6
  12055. else
  12056. if test "$cross_compiling" = yes; then :
  12057. ac_cv_func_vfork_works=cross
  12058. else
  12059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12060. /* end confdefs.h. */
  12061. /* Thanks to Paul Eggert for this test. */
  12062. $ac_includes_default
  12063. #include <sys/wait.h>
  12064. #ifdef HAVE_VFORK_H
  12065. # include <vfork.h>
  12066. #endif
  12067. /* On some sparc systems, changes by the child to local and incoming
  12068. argument registers are propagated back to the parent. The compiler
  12069. is told about this with #include <vfork.h>, but some compilers
  12070. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12071. static variable whose address is put into a register that is
  12072. clobbered by the vfork. */
  12073. static void
  12074. #ifdef __cplusplus
  12075. sparc_address_test (int arg)
  12076. # else
  12077. sparc_address_test (arg) int arg;
  12078. #endif
  12079. {
  12080. static pid_t child;
  12081. if (!child) {
  12082. child = vfork ();
  12083. if (child < 0) {
  12084. perror ("vfork");
  12085. _exit(2);
  12086. }
  12087. if (!child) {
  12088. arg = getpid();
  12089. write(-1, "", 0);
  12090. _exit (arg);
  12091. }
  12092. }
  12093. }
  12094. int
  12095. main ()
  12096. {
  12097. pid_t parent = getpid ();
  12098. pid_t child;
  12099. sparc_address_test (0);
  12100. child = vfork ();
  12101. if (child == 0) {
  12102. /* Here is another test for sparc vfork register problems. This
  12103. test uses lots of local variables, at least as many local
  12104. variables as main has allocated so far including compiler
  12105. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12106. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12107. reuse the register of parent for one of the local variables,
  12108. since it will think that parent can't possibly be used any more
  12109. in this routine. Assigning to the local variable will thus
  12110. munge parent in the parent process. */
  12111. pid_t
  12112. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12113. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12114. /* Convince the compiler that p..p7 are live; otherwise, it might
  12115. use the same hardware register for all 8 local variables. */
  12116. if (p != p1 || p != p2 || p != p3 || p != p4
  12117. || p != p5 || p != p6 || p != p7)
  12118. _exit(1);
  12119. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12120. from child file descriptors. If the child closes a descriptor
  12121. before it execs or exits, this munges the parent's descriptor
  12122. as well. Test for this by closing stdout in the child. */
  12123. _exit(close(fileno(stdout)) != 0);
  12124. } else {
  12125. int status;
  12126. struct stat st;
  12127. while (wait(&status) != child)
  12128. ;
  12129. return (
  12130. /* Was there some problem with vforking? */
  12131. child < 0
  12132. /* Did the child fail? (This shouldn't happen.) */
  12133. || status
  12134. /* Did the vfork/compiler bug occur? */
  12135. || parent != getpid()
  12136. /* Did the file descriptor bug occur? */
  12137. || fstat(fileno(stdout), &st) != 0
  12138. );
  12139. }
  12140. }
  12141. _ACEOF
  12142. if ac_fn_c_try_run "$LINENO"; then :
  12143. ac_cv_func_vfork_works=yes
  12144. else
  12145. ac_cv_func_vfork_works=no
  12146. fi
  12147. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12148. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12149. fi
  12150. fi
  12151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12152. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12153. fi;
  12154. if test "x$ac_cv_func_fork_works" = xcross; then
  12155. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12157. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12158. fi
  12159. if test "x$ac_cv_func_vfork_works" = xyes; then
  12160. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12161. else
  12162. $as_echo "#define vfork fork" >>confdefs.h
  12163. fi
  12164. if test "x$ac_cv_func_fork_works" = xyes; then
  12165. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12166. fi
  12167. for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
  12168. ptrace64 sbrk setns sigaltstack sigprocmask \
  12169. setpgid setpgrp getrusage getauxval sigtimedwait
  12170. do :
  12171. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12172. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12173. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12174. cat >>confdefs.h <<_ACEOF
  12175. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12176. _ACEOF
  12177. fi
  12178. done
  12179. # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
  12180. # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
  12181. # only in linux/personality.h.
  12182. ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
  12183. "
  12184. if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
  12185. ac_have_decl=1
  12186. else
  12187. ac_have_decl=0
  12188. fi
  12189. cat >>confdefs.h <<_ACEOF
  12190. #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
  12191. _ACEOF
  12192. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  12193. if test "x$ac_cv_have_decl_strstr" = xyes; then :
  12194. ac_have_decl=1
  12195. else
  12196. ac_have_decl=0
  12197. fi
  12198. cat >>confdefs.h <<_ACEOF
  12199. #define HAVE_DECL_STRSTR $ac_have_decl
  12200. _ACEOF
  12201. # ----------------------- #
  12202. # Checks for structures. #
  12203. # ----------------------- #
  12204. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  12205. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  12206. cat >>confdefs.h <<_ACEOF
  12207. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  12208. _ACEOF
  12209. fi
  12210. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  12211. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  12212. cat >>confdefs.h <<_ACEOF
  12213. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  12214. _ACEOF
  12215. fi
  12216. # On FreeBSD we need libutil for the kinfo_get* functions. On
  12217. # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
  12218. # Figure out which one to use.
  12219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
  12220. $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
  12221. if ${ac_cv_search_kinfo_getfile+:} false; then :
  12222. $as_echo_n "(cached) " >&6
  12223. else
  12224. ac_func_search_save_LIBS=$LIBS
  12225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12226. /* end confdefs.h. */
  12227. /* Override any GCC internal prototype to avoid an error.
  12228. Use char because int might match the return type of a GCC
  12229. builtin and then its argument prototype would still apply. */
  12230. #ifdef __cplusplus
  12231. extern "C"
  12232. #endif
  12233. char kinfo_getfile ();
  12234. int
  12235. main ()
  12236. {
  12237. return kinfo_getfile ();
  12238. ;
  12239. return 0;
  12240. }
  12241. _ACEOF
  12242. for ac_lib in '' util util-freebsd; do
  12243. if test -z "$ac_lib"; then
  12244. ac_res="none required"
  12245. else
  12246. ac_res=-l$ac_lib
  12247. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12248. fi
  12249. if ac_fn_c_try_link "$LINENO"; then :
  12250. ac_cv_search_kinfo_getfile=$ac_res
  12251. fi
  12252. rm -f core conftest.err conftest.$ac_objext \
  12253. conftest$ac_exeext
  12254. if ${ac_cv_search_kinfo_getfile+:} false; then :
  12255. break
  12256. fi
  12257. done
  12258. if ${ac_cv_search_kinfo_getfile+:} false; then :
  12259. else
  12260. ac_cv_search_kinfo_getfile=no
  12261. fi
  12262. rm conftest.$ac_ext
  12263. LIBS=$ac_func_search_save_LIBS
  12264. fi
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
  12266. $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
  12267. ac_res=$ac_cv_search_kinfo_getfile
  12268. if test "$ac_res" != no; then :
  12269. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12270. fi
  12271. # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
  12272. for ac_func in kinfo_getfile
  12273. do :
  12274. ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
  12275. if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
  12276. cat >>confdefs.h <<_ACEOF
  12277. #define HAVE_KINFO_GETFILE 1
  12278. _ACEOF
  12279. fi
  12280. done
  12281. # ----------------------- #
  12282. # Check for threading. #
  12283. # ----------------------- #
  12284. # Check whether --enable-threading was given.
  12285. if test "${enable_threading+set}" = set; then :
  12286. enableval=$enable_threading; case "$enableval" in
  12287. yes) want_threading=yes ;;
  12288. no) want_threading=no ;;
  12289. *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
  12290. esac
  12291. else
  12292. want_threading=yes
  12293. fi
  12294. # Check for std::thread. This does not work on some platforms, like
  12295. # mingw and DJGPP.
  12296. ac_ext=cpp
  12297. ac_cpp='$CXXCPP $CPPFLAGS'
  12298. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12299. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12300. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12301. ac_ext=c
  12302. ac_cpp='$CPP $CPPFLAGS'
  12303. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12304. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12305. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12306. ax_pthread_ok=no
  12307. # We used to check for pthread.h first, but this fails if pthread.h
  12308. # requires special compiler flags (e.g. on Tru64 or Sequent).
  12309. # It gets checked for in the link test anyway.
  12310. # First of all, check if the user has set any of the PTHREAD_LIBS,
  12311. # etcetera environment variables, and if threads linking works using
  12312. # them:
  12313. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  12314. ax_pthread_save_CC="$CC"
  12315. ax_pthread_save_CFLAGS="$CFLAGS"
  12316. ax_pthread_save_LIBS="$LIBS"
  12317. if test "x$PTHREAD_CC" != "x"; then :
  12318. CC="$PTHREAD_CC"
  12319. fi
  12320. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12321. LIBS="$PTHREAD_LIBS $LIBS"
  12322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  12323. $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  12324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12325. /* end confdefs.h. */
  12326. /* Override any GCC internal prototype to avoid an error.
  12327. Use char because int might match the return type of a GCC
  12328. builtin and then its argument prototype would still apply. */
  12329. #ifdef __cplusplus
  12330. extern "C"
  12331. #endif
  12332. char pthread_join ();
  12333. int
  12334. main ()
  12335. {
  12336. return pthread_join ();
  12337. ;
  12338. return 0;
  12339. }
  12340. _ACEOF
  12341. if ac_fn_c_try_link "$LINENO"; then :
  12342. ax_pthread_ok=yes
  12343. fi
  12344. rm -f core conftest.err conftest.$ac_objext \
  12345. conftest$ac_exeext conftest.$ac_ext
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  12347. $as_echo "$ax_pthread_ok" >&6; }
  12348. if test "x$ax_pthread_ok" = "xno"; then
  12349. PTHREAD_LIBS=""
  12350. PTHREAD_CFLAGS=""
  12351. fi
  12352. CC="$ax_pthread_save_CC"
  12353. CFLAGS="$ax_pthread_save_CFLAGS"
  12354. LIBS="$ax_pthread_save_LIBS"
  12355. fi
  12356. # We must check for the threads library under a number of different
  12357. # names; the ordering is very important because some systems
  12358. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  12359. # libraries is broken (non-POSIX).
  12360. # Create a list of thread flags to try. Items starting with a "-" are
  12361. # C compiler flags, and other items are library names, except for "none"
  12362. # which indicates that we try without any flags at all, and "pthread-config"
  12363. # which is a program returning the flags for the Pth emulation library.
  12364. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  12365. # The ordering *is* (sometimes) important. Some notes on the
  12366. # individual items follow:
  12367. # pthreads: AIX (must check this before -lpthread)
  12368. # none: in case threads are in libc; should be tried before -Kthread and
  12369. # other compiler flags to prevent continual compiler warnings
  12370. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  12371. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  12372. # (Note: HP C rejects this with "bad form for `-t' option")
  12373. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  12374. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  12375. # doesn't hurt to check since this sometimes defines pthreads and
  12376. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  12377. # is present but should not be used directly; and before -mthreads,
  12378. # because the compiler interprets this as "-mt" + "-hreads")
  12379. # -mthreads: Mingw32/gcc, Lynx/gcc
  12380. # pthread: Linux, etcetera
  12381. # --thread-safe: KAI C++
  12382. # pthread-config: use pthread-config program (for GNU Pth library)
  12383. case $host_os in
  12384. freebsd*)
  12385. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  12386. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  12387. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  12388. ;;
  12389. hpux*)
  12390. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  12391. # multi-threading and also sets -lpthread."
  12392. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  12393. ;;
  12394. openedition*)
  12395. # IBM z/OS requires a feature-test macro to be defined in order to
  12396. # enable POSIX threads at all, so give the user a hint if this is
  12397. # not set. (We don't define these ourselves, as they can affect
  12398. # other portions of the system API in unpredictable ways.)
  12399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12400. /* end confdefs.h. */
  12401. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  12402. AX_PTHREAD_ZOS_MISSING
  12403. # endif
  12404. _ACEOF
  12405. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12406. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  12408. $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  12409. fi
  12410. rm -f conftest*
  12411. ;;
  12412. solaris*)
  12413. # On Solaris (at least, for some versions), libc contains stubbed
  12414. # (non-functional) versions of the pthreads routines, so link-based
  12415. # tests will erroneously succeed. (N.B.: The stubs are missing
  12416. # pthread_cleanup_push, or rather a function called by this macro,
  12417. # so we could check for that, but who knows whether they'll stub
  12418. # that too in a future libc.) So we'll check first for the
  12419. # standard Solaris way of linking pthreads (-mt -lpthread).
  12420. ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
  12421. ;;
  12422. esac
  12423. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  12424. if test "x$GCC" = "xyes"; then :
  12425. ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
  12426. fi
  12427. # The presence of a feature test macro requesting re-entrant function
  12428. # definitions is, on some systems, a strong hint that pthreads support is
  12429. # correctly enabled
  12430. case $host_os in
  12431. darwin* | hpux* | linux* | osf* | solaris*)
  12432. ax_pthread_check_macro="_REENTRANT"
  12433. ;;
  12434. aix*)
  12435. ax_pthread_check_macro="_THREAD_SAFE"
  12436. ;;
  12437. *)
  12438. ax_pthread_check_macro="--"
  12439. ;;
  12440. esac
  12441. if test "x$ax_pthread_check_macro" = "x--"; then :
  12442. ax_pthread_check_cond=0
  12443. else
  12444. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  12445. fi
  12446. # Are we compiling with Clang?
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  12448. $as_echo_n "checking whether $CC is Clang... " >&6; }
  12449. if ${ax_cv_PTHREAD_CLANG+:} false; then :
  12450. $as_echo_n "(cached) " >&6
  12451. else
  12452. ax_cv_PTHREAD_CLANG=no
  12453. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  12454. if test "x$GCC" = "xyes"; then
  12455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12456. /* end confdefs.h. */
  12457. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  12458. # if defined(__clang__) && defined(__llvm__)
  12459. AX_PTHREAD_CC_IS_CLANG
  12460. # endif
  12461. _ACEOF
  12462. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12463. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
  12464. ax_cv_PTHREAD_CLANG=yes
  12465. fi
  12466. rm -f conftest*
  12467. fi
  12468. fi
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  12470. $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
  12471. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  12472. ax_pthread_clang_warning=no
  12473. # Clang needs special handling, because older versions handle the -pthread
  12474. # option in a rather... idiosyncratic way
  12475. if test "x$ax_pthread_clang" = "xyes"; then
  12476. # Clang takes -pthread; it has never supported any other flag
  12477. # (Note 1: This will need to be revisited if a system that Clang
  12478. # supports has POSIX threads in a separate library. This tends not
  12479. # to be the way of modern systems, but it's conceivable.)
  12480. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  12481. # to get POSIX threads support; the API is always present and
  12482. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  12483. # -pthread does define _REENTRANT, and while the Darwin headers
  12484. # ignore this macro, third-party headers might not.)
  12485. PTHREAD_CFLAGS="-pthread"
  12486. PTHREAD_LIBS=
  12487. ax_pthread_ok=yes
  12488. # However, older versions of Clang make a point of warning the user
  12489. # that, in an invocation where only linking and no compilation is
  12490. # taking place, the -pthread option has no effect ("argument unused
  12491. # during compilation"). They expect -pthread to be passed in only
  12492. # when source code is being compiled.
  12493. #
  12494. # Problem is, this is at odds with the way Automake and most other
  12495. # C build frameworks function, which is that the same flags used in
  12496. # compilation (CFLAGS) are also used in linking. Many systems
  12497. # supported by AX_PTHREAD require exactly this for POSIX threads
  12498. # support, and in fact it is often not straightforward to specify a
  12499. # flag that is used only in the compilation phase and not in
  12500. # linking. Such a scenario is extremely rare in practice.
  12501. #
  12502. # Even though use of the -pthread flag in linking would only print
  12503. # a warning, this can be a nuisance for well-run software projects
  12504. # that build with -Werror. So if the active version of Clang has
  12505. # this misfeature, we search for an option to squash it.
  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  12507. $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  12508. if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
  12509. $as_echo_n "(cached) " >&6
  12510. else
  12511. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  12512. # Create an alternate version of $ac_link that compiles and
  12513. # links in two steps (.c -> .o, .o -> exe) instead of one
  12514. # (.c -> exe), because the warning occurs only in the second
  12515. # step
  12516. ax_pthread_save_ac_link="$ac_link"
  12517. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  12518. ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
  12519. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  12520. ax_pthread_save_CFLAGS="$CFLAGS"
  12521. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  12522. if test "x$ax_pthread_try" = "xunknown"; then :
  12523. break
  12524. fi
  12525. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  12526. ac_link="$ax_pthread_save_ac_link"
  12527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12528. /* end confdefs.h. */
  12529. int main(void){return 0;}
  12530. _ACEOF
  12531. if ac_fn_c_try_link "$LINENO"; then :
  12532. ac_link="$ax_pthread_2step_ac_link"
  12533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12534. /* end confdefs.h. */
  12535. int main(void){return 0;}
  12536. _ACEOF
  12537. if ac_fn_c_try_link "$LINENO"; then :
  12538. break
  12539. fi
  12540. rm -f core conftest.err conftest.$ac_objext \
  12541. conftest$ac_exeext conftest.$ac_ext
  12542. fi
  12543. rm -f core conftest.err conftest.$ac_objext \
  12544. conftest$ac_exeext conftest.$ac_ext
  12545. done
  12546. ac_link="$ax_pthread_save_ac_link"
  12547. CFLAGS="$ax_pthread_save_CFLAGS"
  12548. if test "x$ax_pthread_try" = "x"; then :
  12549. ax_pthread_try=no
  12550. fi
  12551. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  12552. fi
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  12554. $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  12555. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  12556. no | unknown) ;;
  12557. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  12558. esac
  12559. fi # $ax_pthread_clang = yes
  12560. if test "x$ax_pthread_ok" = "xno"; then
  12561. for ax_pthread_try_flag in $ax_pthread_flags; do
  12562. case $ax_pthread_try_flag in
  12563. none)
  12564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  12565. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  12566. ;;
  12567. -mt,pthread)
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
  12569. $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
  12570. PTHREAD_CFLAGS="-mt"
  12571. PTHREAD_LIBS="-lpthread"
  12572. ;;
  12573. -*)
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  12575. $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  12576. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  12577. ;;
  12578. pthread-config)
  12579. # Extract the first word of "pthread-config", so it can be a program name with args.
  12580. set dummy pthread-config; ac_word=$2
  12581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12582. $as_echo_n "checking for $ac_word... " >&6; }
  12583. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  12584. $as_echo_n "(cached) " >&6
  12585. else
  12586. if test -n "$ax_pthread_config"; then
  12587. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  12588. else
  12589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12590. for as_dir in $PATH
  12591. do
  12592. IFS=$as_save_IFS
  12593. test -z "$as_dir" && as_dir=.
  12594. for ac_exec_ext in '' $ac_executable_extensions; do
  12595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12596. ac_cv_prog_ax_pthread_config="yes"
  12597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12598. break 2
  12599. fi
  12600. done
  12601. done
  12602. IFS=$as_save_IFS
  12603. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  12604. fi
  12605. fi
  12606. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  12607. if test -n "$ax_pthread_config"; then
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  12609. $as_echo "$ax_pthread_config" >&6; }
  12610. else
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12612. $as_echo "no" >&6; }
  12613. fi
  12614. if test "x$ax_pthread_config" = "xno"; then :
  12615. continue
  12616. fi
  12617. PTHREAD_CFLAGS="`pthread-config --cflags`"
  12618. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  12619. ;;
  12620. *)
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  12622. $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  12623. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  12624. ;;
  12625. esac
  12626. ax_pthread_save_CFLAGS="$CFLAGS"
  12627. ax_pthread_save_LIBS="$LIBS"
  12628. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12629. LIBS="$PTHREAD_LIBS $LIBS"
  12630. # Check for various functions. We must include pthread.h,
  12631. # since some functions may be macros. (On the Sequent, we
  12632. # need a special flag -Kthread to make this header compile.)
  12633. # We check for pthread_join because it is in -lpthread on IRIX
  12634. # while pthread_create is in libc. We check for pthread_attr_init
  12635. # due to DEC craziness with -lpthreads. We check for
  12636. # pthread_cleanup_push because it is one of the few pthread
  12637. # functions on Solaris that doesn't have a non-functional libc stub.
  12638. # We try pthread_create on general principles.
  12639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12640. /* end confdefs.h. */
  12641. #include <pthread.h>
  12642. # if $ax_pthread_check_cond
  12643. # error "$ax_pthread_check_macro must be defined"
  12644. # endif
  12645. static void routine(void *a) { a = 0; }
  12646. static void *start_routine(void *a) { return a; }
  12647. int
  12648. main ()
  12649. {
  12650. pthread_t th; pthread_attr_t attr;
  12651. pthread_create(&th, 0, start_routine, 0);
  12652. pthread_join(th, 0);
  12653. pthread_attr_init(&attr);
  12654. pthread_cleanup_push(routine, 0);
  12655. pthread_cleanup_pop(0) /* ; */
  12656. ;
  12657. return 0;
  12658. }
  12659. _ACEOF
  12660. if ac_fn_c_try_link "$LINENO"; then :
  12661. ax_pthread_ok=yes
  12662. fi
  12663. rm -f core conftest.err conftest.$ac_objext \
  12664. conftest$ac_exeext conftest.$ac_ext
  12665. CFLAGS="$ax_pthread_save_CFLAGS"
  12666. LIBS="$ax_pthread_save_LIBS"
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  12668. $as_echo "$ax_pthread_ok" >&6; }
  12669. if test "x$ax_pthread_ok" = "xyes"; then :
  12670. break
  12671. fi
  12672. PTHREAD_LIBS=""
  12673. PTHREAD_CFLAGS=""
  12674. done
  12675. fi
  12676. # Various other checks:
  12677. if test "x$ax_pthread_ok" = "xyes"; then
  12678. ax_pthread_save_CFLAGS="$CFLAGS"
  12679. ax_pthread_save_LIBS="$LIBS"
  12680. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12681. LIBS="$PTHREAD_LIBS $LIBS"
  12682. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  12684. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  12685. if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
  12686. $as_echo_n "(cached) " >&6
  12687. else
  12688. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  12689. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  12690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12691. /* end confdefs.h. */
  12692. #include <pthread.h>
  12693. int
  12694. main ()
  12695. {
  12696. int attr = $ax_pthread_attr; return attr /* ; */
  12697. ;
  12698. return 0;
  12699. }
  12700. _ACEOF
  12701. if ac_fn_c_try_link "$LINENO"; then :
  12702. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  12703. fi
  12704. rm -f core conftest.err conftest.$ac_objext \
  12705. conftest$ac_exeext conftest.$ac_ext
  12706. done
  12707. fi
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  12709. $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  12710. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  12711. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  12712. test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
  12713. cat >>confdefs.h <<_ACEOF
  12714. #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
  12715. _ACEOF
  12716. ax_pthread_joinable_attr_defined=yes
  12717. fi
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  12719. $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
  12720. if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
  12721. $as_echo_n "(cached) " >&6
  12722. else
  12723. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  12724. case $host_os in
  12725. solaris*)
  12726. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  12727. ;;
  12728. esac
  12729. fi
  12730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  12731. $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  12732. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  12733. test "x$ax_pthread_special_flags_added" != "xyes"; then :
  12734. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  12735. ax_pthread_special_flags_added=yes
  12736. fi
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  12738. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  12739. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  12740. $as_echo_n "(cached) " >&6
  12741. else
  12742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12743. /* end confdefs.h. */
  12744. #include <pthread.h>
  12745. int
  12746. main ()
  12747. {
  12748. int i = PTHREAD_PRIO_INHERIT;
  12749. ;
  12750. return 0;
  12751. }
  12752. _ACEOF
  12753. if ac_fn_c_try_link "$LINENO"; then :
  12754. ax_cv_PTHREAD_PRIO_INHERIT=yes
  12755. else
  12756. ax_cv_PTHREAD_PRIO_INHERIT=no
  12757. fi
  12758. rm -f core conftest.err conftest.$ac_objext \
  12759. conftest$ac_exeext conftest.$ac_ext
  12760. fi
  12761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  12762. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  12763. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  12764. test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
  12765. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  12766. ax_pthread_prio_inherit_defined=yes
  12767. fi
  12768. CFLAGS="$ax_pthread_save_CFLAGS"
  12769. LIBS="$ax_pthread_save_LIBS"
  12770. # More AIX lossage: compile with *_r variant
  12771. if test "x$GCC" != "xyes"; then
  12772. case $host_os in
  12773. aix*)
  12774. case "x/$CC" in #(
  12775. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  12776. #handle absolute path differently from PATH based program lookup
  12777. case "x$CC" in #(
  12778. x/*) :
  12779. if as_fn_executable_p ${CC}_r; then :
  12780. PTHREAD_CC="${CC}_r"
  12781. fi ;; #(
  12782. *) :
  12783. for ac_prog in ${CC}_r
  12784. do
  12785. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12786. set dummy $ac_prog; ac_word=$2
  12787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12788. $as_echo_n "checking for $ac_word... " >&6; }
  12789. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  12790. $as_echo_n "(cached) " >&6
  12791. else
  12792. if test -n "$PTHREAD_CC"; then
  12793. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  12794. else
  12795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12796. for as_dir in $PATH
  12797. do
  12798. IFS=$as_save_IFS
  12799. test -z "$as_dir" && as_dir=.
  12800. for ac_exec_ext in '' $ac_executable_extensions; do
  12801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12802. ac_cv_prog_PTHREAD_CC="$ac_prog"
  12803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12804. break 2
  12805. fi
  12806. done
  12807. done
  12808. IFS=$as_save_IFS
  12809. fi
  12810. fi
  12811. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  12812. if test -n "$PTHREAD_CC"; then
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  12814. $as_echo "$PTHREAD_CC" >&6; }
  12815. else
  12816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12817. $as_echo "no" >&6; }
  12818. fi
  12819. test -n "$PTHREAD_CC" && break
  12820. done
  12821. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  12822. ;;
  12823. esac ;; #(
  12824. *) :
  12825. ;;
  12826. esac
  12827. ;;
  12828. esac
  12829. fi
  12830. fi
  12831. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  12832. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  12833. if test "x$ax_pthread_ok" = "xyes"; then
  12834. threads=yes
  12835. :
  12836. else
  12837. ax_pthread_ok=no
  12838. threads=no
  12839. fi
  12840. ac_ext=cpp
  12841. ac_cpp='$CXXCPP $CPPFLAGS'
  12842. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12843. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12844. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12845. if test "$threads" = "yes"; then
  12846. save_LIBS="$LIBS"
  12847. LIBS="$PTHREAD_LIBS $LIBS"
  12848. save_CXXFLAGS="$CXXFLAGS"
  12849. CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
  12850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
  12851. $as_echo_n "checking for std::thread... " >&6; }
  12852. if ${gdb_cv_cxx_std_thread+:} false; then :
  12853. $as_echo_n "(cached) " >&6
  12854. else
  12855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h. */
  12857. #include <thread>
  12858. void callback() { }
  12859. int
  12860. main ()
  12861. {
  12862. std::thread t(callback);
  12863. ;
  12864. return 0;
  12865. }
  12866. _ACEOF
  12867. if ac_fn_cxx_try_compile "$LINENO"; then :
  12868. gdb_cv_cxx_std_thread=yes
  12869. else
  12870. gdb_cv_cxx_std_thread=no
  12871. fi
  12872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12873. fi
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
  12875. $as_echo "$gdb_cv_cxx_std_thread" >&6; }
  12876. # This check must be here, while LIBS includes any necessary
  12877. # threading library.
  12878. for ac_func in pthread_sigmask pthread_setname_np
  12879. do :
  12880. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12881. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12882. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12883. cat >>confdefs.h <<_ACEOF
  12884. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12885. _ACEOF
  12886. fi
  12887. done
  12888. LIBS="$save_LIBS"
  12889. CXXFLAGS="$save_CXXFLAGS"
  12890. fi
  12891. if test "$want_threading" = "yes"; then
  12892. if test "$gdb_cv_cxx_std_thread" = "yes"; then
  12893. $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
  12894. fi
  12895. fi
  12896. ac_ext=c
  12897. ac_cpp='$CPP $CPPFLAGS'
  12898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
  12902. $as_echo_n "checking for sigsetjmp... " >&6; }
  12903. if ${gdb_cv_func_sigsetjmp+:} false; then :
  12904. $as_echo_n "(cached) " >&6
  12905. else
  12906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12907. /* end confdefs.h. */
  12908. #include <setjmp.h>
  12909. int
  12910. main ()
  12911. {
  12912. sigjmp_buf env;
  12913. while (! sigsetjmp (env, 1))
  12914. siglongjmp (env, 1);
  12915. ;
  12916. return 0;
  12917. }
  12918. _ACEOF
  12919. if ac_fn_c_try_compile "$LINENO"; then :
  12920. gdb_cv_func_sigsetjmp=yes
  12921. else
  12922. gdb_cv_func_sigsetjmp=no
  12923. fi
  12924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12925. fi
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
  12927. $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
  12928. if test "$gdb_cv_func_sigsetjmp" = "yes"; then
  12929. $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
  12930. fi
  12931. # Check whether --with-intel_pt was given.
  12932. if test "${with_intel_pt+set}" = set; then :
  12933. withval=$with_intel_pt;
  12934. else
  12935. with_intel_pt=auto
  12936. fi
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
  12938. $as_echo_n "checking whether to use intel pt... " >&6; }
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
  12940. $as_echo "$with_intel_pt" >&6; }
  12941. if test "${with_intel_pt}" = no; then
  12942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
  12943. $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
  12944. HAVE_LIBIPT=no
  12945. else
  12946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12947. /* end confdefs.h. */
  12948. #include <linux/perf_event.h>
  12949. #ifndef PERF_ATTR_SIZE_VER5
  12950. # error
  12951. #endif
  12952. _ACEOF
  12953. if ac_fn_c_try_cpp "$LINENO"; then :
  12954. perf_event=yes
  12955. else
  12956. perf_event=no
  12957. fi
  12958. rm -f conftest.err conftest.i conftest.$ac_ext
  12959. if test "$perf_event" != yes; then
  12960. if test "$with_intel_pt" = yes; then
  12961. as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
  12962. else
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
  12964. $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
  12965. fi
  12966. fi
  12967. use_additional=yes
  12968. acl_save_prefix="$prefix"
  12969. prefix="$acl_final_prefix"
  12970. acl_save_exec_prefix="$exec_prefix"
  12971. exec_prefix="$acl_final_exec_prefix"
  12972. eval additional_includedir=\"$includedir\"
  12973. eval additional_libdir=\"$libdir\"
  12974. exec_prefix="$acl_save_exec_prefix"
  12975. prefix="$acl_save_prefix"
  12976. # Check whether --with-libipt-prefix was given.
  12977. if test "${with_libipt_prefix+set}" = set; then :
  12978. withval=$with_libipt_prefix;
  12979. if test "X$withval" = "Xno"; then
  12980. use_additional=no
  12981. else
  12982. if test "X$withval" = "X"; then
  12983. acl_save_prefix="$prefix"
  12984. prefix="$acl_final_prefix"
  12985. acl_save_exec_prefix="$exec_prefix"
  12986. exec_prefix="$acl_final_exec_prefix"
  12987. eval additional_includedir=\"$includedir\"
  12988. eval additional_libdir=\"$libdir\"
  12989. exec_prefix="$acl_save_exec_prefix"
  12990. prefix="$acl_save_prefix"
  12991. else
  12992. additional_includedir="$withval/include"
  12993. additional_libdir="$withval/lib"
  12994. fi
  12995. fi
  12996. fi
  12997. # Check whether --with-libipt-type was given.
  12998. if test "${with_libipt_type+set}" = set; then :
  12999. withval=$with_libipt_type; with_libipt_type=$withval
  13000. else
  13001. with_libipt_type=auto
  13002. fi
  13003. lib_type=`eval echo \$with_libipt_type`
  13004. LIBIPT=
  13005. LTLIBIPT=
  13006. INCIPT=
  13007. rpathdirs=
  13008. ltrpathdirs=
  13009. names_already_handled=
  13010. names_next_round='ipt '
  13011. while test -n "$names_next_round"; do
  13012. names_this_round="$names_next_round"
  13013. names_next_round=
  13014. for name in $names_this_round; do
  13015. already_handled=
  13016. for n in $names_already_handled; do
  13017. if test "$n" = "$name"; then
  13018. already_handled=yes
  13019. break
  13020. fi
  13021. done
  13022. if test -z "$already_handled"; then
  13023. names_already_handled="$names_already_handled $name"
  13024. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13025. eval value=\"\$HAVE_LIB$uppername\"
  13026. if test -n "$value"; then
  13027. if test "$value" = yes; then
  13028. eval value=\"\$LIB$uppername\"
  13029. test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
  13030. eval value=\"\$LTLIB$uppername\"
  13031. test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
  13032. else
  13033. :
  13034. fi
  13035. else
  13036. found_dir=
  13037. found_la=
  13038. found_so=
  13039. found_a=
  13040. if test $use_additional = yes; then
  13041. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  13042. found_dir="$additional_libdir"
  13043. found_so="$additional_libdir/lib$name.$shlibext"
  13044. if test -f "$additional_libdir/lib$name.la"; then
  13045. found_la="$additional_libdir/lib$name.la"
  13046. fi
  13047. elif test x$lib_type != xshared; then
  13048. if test -f "$additional_libdir/lib$name.$libext"; then
  13049. found_dir="$additional_libdir"
  13050. found_a="$additional_libdir/lib$name.$libext"
  13051. if test -f "$additional_libdir/lib$name.la"; then
  13052. found_la="$additional_libdir/lib$name.la"
  13053. fi
  13054. fi
  13055. fi
  13056. fi
  13057. if test "X$found_dir" = "X"; then
  13058. for x in $LDFLAGS $LTLIBIPT; do
  13059. acl_save_prefix="$prefix"
  13060. prefix="$acl_final_prefix"
  13061. acl_save_exec_prefix="$exec_prefix"
  13062. exec_prefix="$acl_final_exec_prefix"
  13063. eval x=\"$x\"
  13064. exec_prefix="$acl_save_exec_prefix"
  13065. prefix="$acl_save_prefix"
  13066. case "$x" in
  13067. -L*)
  13068. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13069. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  13070. found_dir="$dir"
  13071. found_so="$dir/lib$name.$shlibext"
  13072. if test -f "$dir/lib$name.la"; then
  13073. found_la="$dir/lib$name.la"
  13074. fi
  13075. elif test x$lib_type != xshared; then
  13076. if test -f "$dir/lib$name.$libext"; then
  13077. found_dir="$dir"
  13078. found_a="$dir/lib$name.$libext"
  13079. if test -f "$dir/lib$name.la"; then
  13080. found_la="$dir/lib$name.la"
  13081. fi
  13082. fi
  13083. fi
  13084. ;;
  13085. esac
  13086. if test "X$found_dir" != "X"; then
  13087. break
  13088. fi
  13089. done
  13090. fi
  13091. if test "X$found_dir" != "X"; then
  13092. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
  13093. if test "X$found_so" != "X"; then
  13094. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  13095. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  13096. else
  13097. haveit=
  13098. for x in $ltrpathdirs; do
  13099. if test "X$x" = "X$found_dir"; then
  13100. haveit=yes
  13101. break
  13102. fi
  13103. done
  13104. if test -z "$haveit"; then
  13105. ltrpathdirs="$ltrpathdirs $found_dir"
  13106. fi
  13107. if test "$hardcode_direct" = yes; then
  13108. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  13109. else
  13110. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  13111. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  13112. haveit=
  13113. for x in $rpathdirs; do
  13114. if test "X$x" = "X$found_dir"; then
  13115. haveit=yes
  13116. break
  13117. fi
  13118. done
  13119. if test -z "$haveit"; then
  13120. rpathdirs="$rpathdirs $found_dir"
  13121. fi
  13122. else
  13123. haveit=
  13124. for x in $LDFLAGS $LIBIPT; do
  13125. acl_save_prefix="$prefix"
  13126. prefix="$acl_final_prefix"
  13127. acl_save_exec_prefix="$exec_prefix"
  13128. exec_prefix="$acl_final_exec_prefix"
  13129. eval x=\"$x\"
  13130. exec_prefix="$acl_save_exec_prefix"
  13131. prefix="$acl_save_prefix"
  13132. if test "X$x" = "X-L$found_dir"; then
  13133. haveit=yes
  13134. break
  13135. fi
  13136. done
  13137. if test -z "$haveit"; then
  13138. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
  13139. fi
  13140. if test "$hardcode_minus_L" != no; then
  13141. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  13142. else
  13143. LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
  13144. fi
  13145. fi
  13146. fi
  13147. fi
  13148. else
  13149. if test "X$found_a" != "X"; then
  13150. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
  13151. else
  13152. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
  13153. fi
  13154. fi
  13155. additional_includedir=
  13156. case "$found_dir" in
  13157. */lib | */lib/)
  13158. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  13159. additional_includedir="$basedir/include"
  13160. ;;
  13161. esac
  13162. if test "X$additional_includedir" != "X"; then
  13163. if test "X$additional_includedir" != "X/usr/include"; then
  13164. haveit=
  13165. if test "X$additional_includedir" = "X/usr/local/include"; then
  13166. if test -n "$GCC"; then
  13167. case $host_os in
  13168. linux*) haveit=yes;;
  13169. esac
  13170. fi
  13171. fi
  13172. if test -z "$haveit"; then
  13173. for x in $CPPFLAGS $INCIPT; do
  13174. acl_save_prefix="$prefix"
  13175. prefix="$acl_final_prefix"
  13176. acl_save_exec_prefix="$exec_prefix"
  13177. exec_prefix="$acl_final_exec_prefix"
  13178. eval x=\"$x\"
  13179. exec_prefix="$acl_save_exec_prefix"
  13180. prefix="$acl_save_prefix"
  13181. if test "X$x" = "X-I$additional_includedir"; then
  13182. haveit=yes
  13183. break
  13184. fi
  13185. done
  13186. if test -z "$haveit"; then
  13187. if test -d "$additional_includedir"; then
  13188. INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
  13189. fi
  13190. fi
  13191. fi
  13192. fi
  13193. fi
  13194. if test -n "$found_la"; then
  13195. save_libdir="$libdir"
  13196. case "$found_la" in
  13197. */* | *\\*) . "$found_la" ;;
  13198. *) . "./$found_la" ;;
  13199. esac
  13200. libdir="$save_libdir"
  13201. for dep in $dependency_libs; do
  13202. case "$dep" in
  13203. -L*)
  13204. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13205. if test "X$additional_libdir" != "X/usr/lib"; then
  13206. haveit=
  13207. if test "X$additional_libdir" = "X/usr/local/lib"; then
  13208. if test -n "$GCC"; then
  13209. case $host_os in
  13210. linux*) haveit=yes;;
  13211. esac
  13212. fi
  13213. fi
  13214. if test -z "$haveit"; then
  13215. haveit=
  13216. for x in $LDFLAGS $LIBIPT; do
  13217. acl_save_prefix="$prefix"
  13218. prefix="$acl_final_prefix"
  13219. acl_save_exec_prefix="$exec_prefix"
  13220. exec_prefix="$acl_final_exec_prefix"
  13221. eval x=\"$x\"
  13222. exec_prefix="$acl_save_exec_prefix"
  13223. prefix="$acl_save_prefix"
  13224. if test "X$x" = "X-L$additional_libdir"; then
  13225. haveit=yes
  13226. break
  13227. fi
  13228. done
  13229. if test -z "$haveit"; then
  13230. if test -d "$additional_libdir"; then
  13231. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
  13232. fi
  13233. fi
  13234. haveit=
  13235. for x in $LDFLAGS $LTLIBIPT; do
  13236. acl_save_prefix="$prefix"
  13237. prefix="$acl_final_prefix"
  13238. acl_save_exec_prefix="$exec_prefix"
  13239. exec_prefix="$acl_final_exec_prefix"
  13240. eval x=\"$x\"
  13241. exec_prefix="$acl_save_exec_prefix"
  13242. prefix="$acl_save_prefix"
  13243. if test "X$x" = "X-L$additional_libdir"; then
  13244. haveit=yes
  13245. break
  13246. fi
  13247. done
  13248. if test -z "$haveit"; then
  13249. if test -d "$additional_libdir"; then
  13250. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
  13251. fi
  13252. fi
  13253. fi
  13254. fi
  13255. ;;
  13256. -R*)
  13257. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13258. if test "$enable_rpath" != no; then
  13259. haveit=
  13260. for x in $rpathdirs; do
  13261. if test "X$x" = "X$dir"; then
  13262. haveit=yes
  13263. break
  13264. fi
  13265. done
  13266. if test -z "$haveit"; then
  13267. rpathdirs="$rpathdirs $dir"
  13268. fi
  13269. haveit=
  13270. for x in $ltrpathdirs; do
  13271. if test "X$x" = "X$dir"; then
  13272. haveit=yes
  13273. break
  13274. fi
  13275. done
  13276. if test -z "$haveit"; then
  13277. ltrpathdirs="$ltrpathdirs $dir"
  13278. fi
  13279. fi
  13280. ;;
  13281. -l*)
  13282. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13283. ;;
  13284. *.la)
  13285. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13286. ;;
  13287. *)
  13288. LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
  13289. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
  13290. ;;
  13291. esac
  13292. done
  13293. fi
  13294. else
  13295. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  13296. LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
  13297. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
  13298. else
  13299. LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
  13300. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
  13301. fi
  13302. fi
  13303. fi
  13304. fi
  13305. done
  13306. done
  13307. if test "X$rpathdirs" != "X"; then
  13308. if test -n "$hardcode_libdir_separator"; then
  13309. alldirs=
  13310. for found_dir in $rpathdirs; do
  13311. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  13312. done
  13313. acl_save_libdir="$libdir"
  13314. libdir="$alldirs"
  13315. eval flag=\"$hardcode_libdir_flag_spec\"
  13316. libdir="$acl_save_libdir"
  13317. LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
  13318. else
  13319. for found_dir in $rpathdirs; do
  13320. acl_save_libdir="$libdir"
  13321. libdir="$found_dir"
  13322. eval flag=\"$hardcode_libdir_flag_spec\"
  13323. libdir="$acl_save_libdir"
  13324. LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
  13325. done
  13326. fi
  13327. fi
  13328. if test "X$ltrpathdirs" != "X"; then
  13329. for found_dir in $ltrpathdirs; do
  13330. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
  13331. done
  13332. fi
  13333. ac_save_CPPFLAGS="$CPPFLAGS"
  13334. for element in $INCIPT; do
  13335. haveit=
  13336. for x in $CPPFLAGS; do
  13337. acl_save_prefix="$prefix"
  13338. prefix="$acl_final_prefix"
  13339. acl_save_exec_prefix="$exec_prefix"
  13340. exec_prefix="$acl_final_exec_prefix"
  13341. eval x=\"$x\"
  13342. exec_prefix="$acl_save_exec_prefix"
  13343. prefix="$acl_save_prefix"
  13344. if test "X$x" = "X$element"; then
  13345. haveit=yes
  13346. break
  13347. fi
  13348. done
  13349. if test -z "$haveit"; then
  13350. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13351. fi
  13352. done
  13353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
  13354. $as_echo_n "checking for libipt... " >&6; }
  13355. if ${ac_cv_libipt+:} false; then :
  13356. $as_echo_n "(cached) " >&6
  13357. else
  13358. ac_save_LIBS="$LIBS"
  13359. LIBS="$LIBS $LIBIPT"
  13360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13361. /* end confdefs.h. */
  13362. #include "intel-pt.h"
  13363. int
  13364. main ()
  13365. {
  13366. pt_insn_alloc_decoder (0);
  13367. ;
  13368. return 0;
  13369. }
  13370. _ACEOF
  13371. if ac_fn_c_try_link "$LINENO"; then :
  13372. ac_cv_libipt=yes
  13373. else
  13374. ac_cv_libipt=no
  13375. fi
  13376. rm -f core conftest.err conftest.$ac_objext \
  13377. conftest$ac_exeext conftest.$ac_ext
  13378. LIBS="$ac_save_LIBS"
  13379. fi
  13380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
  13381. $as_echo "$ac_cv_libipt" >&6; }
  13382. if test "$ac_cv_libipt" = yes; then
  13383. HAVE_LIBIPT=yes
  13384. $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
  13385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
  13386. $as_echo_n "checking how to link with libipt... " >&6; }
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
  13388. $as_echo "$LIBIPT" >&6; }
  13389. else
  13390. HAVE_LIBIPT=no
  13391. CPPFLAGS="$ac_save_CPPFLAGS"
  13392. LIBIPT=
  13393. LTLIBIPT=
  13394. fi
  13395. if test "$HAVE_LIBIPT" != yes; then
  13396. if test "$with_intel_pt" = yes; then
  13397. as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
  13398. else
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
  13400. $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
  13401. fi
  13402. else
  13403. save_LIBS=$LIBS
  13404. LIBS="$LIBS $LIBIPT"
  13405. for ac_func in pt_insn_event
  13406. do :
  13407. ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
  13408. if test "x$ac_cv_func_pt_insn_event" = xyes; then :
  13409. cat >>confdefs.h <<_ACEOF
  13410. #define HAVE_PT_INSN_EVENT 1
  13411. _ACEOF
  13412. fi
  13413. done
  13414. ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
  13415. "
  13416. if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
  13417. cat >>confdefs.h <<_ACEOF
  13418. #define HAVE_STRUCT_PT_INSN_ENABLED 1
  13419. _ACEOF
  13420. fi
  13421. ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
  13422. "
  13423. if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
  13424. cat >>confdefs.h <<_ACEOF
  13425. #define HAVE_STRUCT_PT_INSN_RESYNCED 1
  13426. _ACEOF
  13427. fi
  13428. LIBS=$save_LIBS
  13429. fi
  13430. fi
  13431. # Check if the compiler and runtime support printing long longs.
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
  13433. $as_echo_n "checking for long long support in printf... " >&6; }
  13434. if ${gdb_cv_printf_has_long_long+:} false; then :
  13435. $as_echo_n "(cached) " >&6
  13436. else
  13437. if test "$cross_compiling" = yes; then :
  13438. gdb_cv_printf_has_long_long=no
  13439. else
  13440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13441. /* end confdefs.h. */
  13442. $ac_includes_default
  13443. int
  13444. main ()
  13445. {
  13446. char buf[32];
  13447. long long l = 0;
  13448. l = (l << 16) + 0x0123;
  13449. l = (l << 16) + 0x4567;
  13450. l = (l << 16) + 0x89ab;
  13451. l = (l << 16) + 0xcdef;
  13452. sprintf (buf, "0x%016llx", l);
  13453. return (strcmp ("0x0123456789abcdef", buf));
  13454. ;
  13455. return 0;
  13456. }
  13457. _ACEOF
  13458. if ac_fn_c_try_run "$LINENO"; then :
  13459. gdb_cv_printf_has_long_long=yes
  13460. else
  13461. gdb_cv_printf_has_long_long=no
  13462. fi
  13463. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13464. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13465. fi
  13466. fi
  13467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
  13468. $as_echo "$gdb_cv_printf_has_long_long" >&6; }
  13469. if test "$gdb_cv_printf_has_long_long" = yes; then
  13470. $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
  13471. fi
  13472. $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
  13473. for ac_header in sys/procfs.h
  13474. do :
  13475. ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
  13476. if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
  13477. cat >>confdefs.h <<_ACEOF
  13478. #define HAVE_SYS_PROCFS_H 1
  13479. _ACEOF
  13480. fi
  13481. done
  13482. if test "$ac_cv_header_sys_procfs_h" = yes; then
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
  13484. $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
  13485. if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
  13486. $as_echo_n "(cached) " >&6
  13487. else
  13488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13489. /* end confdefs.h. */
  13490. #define _SYSCALL32
  13491. #include <sys/procfs.h>
  13492. int
  13493. main ()
  13494. {
  13495. gregset_t avar
  13496. ;
  13497. return 0;
  13498. }
  13499. _ACEOF
  13500. if ac_fn_c_try_compile "$LINENO"; then :
  13501. bfd_cv_have_sys_procfs_type_gregset_t=yes
  13502. else
  13503. bfd_cv_have_sys_procfs_type_gregset_t=no
  13504. fi
  13505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13506. fi
  13507. if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
  13508. $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
  13509. fi
  13510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
  13511. $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
  13513. $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
  13514. if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
  13515. $as_echo_n "(cached) " >&6
  13516. else
  13517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13518. /* end confdefs.h. */
  13519. #define _SYSCALL32
  13520. #include <sys/procfs.h>
  13521. int
  13522. main ()
  13523. {
  13524. fpregset_t avar
  13525. ;
  13526. return 0;
  13527. }
  13528. _ACEOF
  13529. if ac_fn_c_try_compile "$LINENO"; then :
  13530. bfd_cv_have_sys_procfs_type_fpregset_t=yes
  13531. else
  13532. bfd_cv_have_sys_procfs_type_fpregset_t=no
  13533. fi
  13534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13535. fi
  13536. if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
  13537. $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
  13538. fi
  13539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
  13540. $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
  13541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
  13542. $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
  13543. if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
  13544. $as_echo_n "(cached) " >&6
  13545. else
  13546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13547. /* end confdefs.h. */
  13548. #define _SYSCALL32
  13549. #include <sys/procfs.h>
  13550. int
  13551. main ()
  13552. {
  13553. prgregset_t avar
  13554. ;
  13555. return 0;
  13556. }
  13557. _ACEOF
  13558. if ac_fn_c_try_compile "$LINENO"; then :
  13559. bfd_cv_have_sys_procfs_type_prgregset_t=yes
  13560. else
  13561. bfd_cv_have_sys_procfs_type_prgregset_t=no
  13562. fi
  13563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13564. fi
  13565. if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
  13566. $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
  13567. fi
  13568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
  13569. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
  13571. $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
  13572. if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
  13573. $as_echo_n "(cached) " >&6
  13574. else
  13575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13576. /* end confdefs.h. */
  13577. #define _SYSCALL32
  13578. #include <sys/procfs.h>
  13579. int
  13580. main ()
  13581. {
  13582. prfpregset_t avar
  13583. ;
  13584. return 0;
  13585. }
  13586. _ACEOF
  13587. if ac_fn_c_try_compile "$LINENO"; then :
  13588. bfd_cv_have_sys_procfs_type_prfpregset_t=yes
  13589. else
  13590. bfd_cv_have_sys_procfs_type_prfpregset_t=no
  13591. fi
  13592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13593. fi
  13594. if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
  13595. $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
  13596. fi
  13597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
  13598. $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
  13599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
  13600. $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
  13601. if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
  13602. $as_echo_n "(cached) " >&6
  13603. else
  13604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13605. /* end confdefs.h. */
  13606. #define _SYSCALL32
  13607. #include <sys/procfs.h>
  13608. int
  13609. main ()
  13610. {
  13611. prgregset32_t avar
  13612. ;
  13613. return 0;
  13614. }
  13615. _ACEOF
  13616. if ac_fn_c_try_compile "$LINENO"; then :
  13617. bfd_cv_have_sys_procfs_type_prgregset32_t=yes
  13618. else
  13619. bfd_cv_have_sys_procfs_type_prgregset32_t=no
  13620. fi
  13621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13622. fi
  13623. if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
  13624. $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
  13625. fi
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
  13627. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
  13628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
  13629. $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
  13630. if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
  13631. $as_echo_n "(cached) " >&6
  13632. else
  13633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13634. /* end confdefs.h. */
  13635. #define _SYSCALL32
  13636. #include <sys/procfs.h>
  13637. int
  13638. main ()
  13639. {
  13640. lwpid_t avar
  13641. ;
  13642. return 0;
  13643. }
  13644. _ACEOF
  13645. if ac_fn_c_try_compile "$LINENO"; then :
  13646. bfd_cv_have_sys_procfs_type_lwpid_t=yes
  13647. else
  13648. bfd_cv_have_sys_procfs_type_lwpid_t=no
  13649. fi
  13650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13651. fi
  13652. if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
  13653. $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
  13654. fi
  13655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
  13656. $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
  13658. $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
  13659. if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
  13660. $as_echo_n "(cached) " >&6
  13661. else
  13662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13663. /* end confdefs.h. */
  13664. #define _SYSCALL32
  13665. #include <sys/procfs.h>
  13666. int
  13667. main ()
  13668. {
  13669. psaddr_t avar
  13670. ;
  13671. return 0;
  13672. }
  13673. _ACEOF
  13674. if ac_fn_c_try_compile "$LINENO"; then :
  13675. bfd_cv_have_sys_procfs_type_psaddr_t=yes
  13676. else
  13677. bfd_cv_have_sys_procfs_type_psaddr_t=no
  13678. fi
  13679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13680. fi
  13681. if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
  13682. $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
  13683. fi
  13684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
  13685. $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
  13687. $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
  13688. if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
  13689. $as_echo_n "(cached) " >&6
  13690. else
  13691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13692. /* end confdefs.h. */
  13693. #define _SYSCALL32
  13694. #include <sys/procfs.h>
  13695. int
  13696. main ()
  13697. {
  13698. elf_fpregset_t avar
  13699. ;
  13700. return 0;
  13701. }
  13702. _ACEOF
  13703. if ac_fn_c_try_compile "$LINENO"; then :
  13704. bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
  13705. else
  13706. bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
  13707. fi
  13708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13709. fi
  13710. if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
  13711. $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
  13712. fi
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
  13714. $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
  13715. fi
  13716. # Check the return and argument types of ptrace.
  13717. for ac_header in sys/ptrace.h ptrace.h
  13718. do :
  13719. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13720. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13721. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13722. cat >>confdefs.h <<_ACEOF
  13723. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13724. _ACEOF
  13725. fi
  13726. done
  13727. gdb_ptrace_headers='
  13728. #include <sys/types.h>
  13729. #if HAVE_SYS_PTRACE_H
  13730. # include <sys/ptrace.h>
  13731. #endif
  13732. #if HAVE_UNISTD_H
  13733. # include <unistd.h>
  13734. #endif
  13735. '
  13736. # Check return type. Varargs (used on GNU/Linux) conflict with the
  13737. # empty argument list, so check for that explicitly.
  13738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
  13739. $as_echo_n "checking return type of ptrace... " >&6; }
  13740. if ${gdb_cv_func_ptrace_ret+:} false; then :
  13741. $as_echo_n "(cached) " >&6
  13742. else
  13743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13744. /* end confdefs.h. */
  13745.  $gdb_ptrace_headers
  13746. int
  13747. main ()
  13748. {
  13749. extern long ptrace (enum __ptrace_request, ...);
  13750. ;
  13751. return 0;
  13752. }
  13753. _ACEOF
  13754. if ac_fn_c_try_compile "$LINENO"; then :
  13755. gdb_cv_func_ptrace_ret='long'
  13756. else
  13757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13758. /* end confdefs.h. */
  13759. $gdb_ptrace_headers
  13760. int
  13761. main ()
  13762. {
  13763. extern int ptrace ();
  13764. ;
  13765. return 0;
  13766. }
  13767. _ACEOF
  13768. if ac_fn_c_try_compile "$LINENO"; then :
  13769. gdb_cv_func_ptrace_ret='int'
  13770. else
  13771. gdb_cv_func_ptrace_ret='long'
  13772. fi
  13773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13774. fi
  13775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13776. fi
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
  13778. $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
  13779. cat >>confdefs.h <<_ACEOF
  13780. #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
  13781. _ACEOF
  13782. # Check argument types.
  13783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
  13784. $as_echo_n "checking types of arguments for ptrace... " >&6; }
  13785. if ${gdb_cv_func_ptrace_args+:} false; then :
  13786. $as_echo_n "(cached) " >&6
  13787. else
  13788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13789. /* end confdefs.h. */
  13790. $gdb_ptrace_headers
  13791. int
  13792. main ()
  13793. {
  13794. extern long ptrace (enum __ptrace_request, ...);
  13795. ;
  13796. return 0;
  13797. }
  13798. _ACEOF
  13799. if ac_fn_c_try_compile "$LINENO"; then :
  13800. gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
  13801. else
  13802. for gdb_arg1 in 'int' 'long'; do
  13803. for gdb_arg2 in 'pid_t' 'int' 'long'; do
  13804. for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
  13805. for gdb_arg4 in 'int' 'long' 'void *'; do
  13806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13807. /* end confdefs.h. */
  13808. $gdb_ptrace_headers
  13809. int
  13810. main ()
  13811. {
  13812. extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
  13813. ;
  13814. return 0;
  13815. }
  13816. _ACEOF
  13817. if ac_fn_c_try_compile "$LINENO"; then :
  13818. gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
  13819. break 4;
  13820. fi
  13821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13822. for gdb_arg5 in 'int *' 'int' 'long'; do
  13823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13824. /* end confdefs.h. */
  13825. $gdb_ptrace_headers
  13826. int
  13827. main ()
  13828. {
  13829. extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
  13830. ;
  13831. return 0;
  13832. }
  13833. _ACEOF
  13834. if ac_fn_c_try_compile "$LINENO"; then :
  13835. gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
  13836. break 5;
  13837. fi
  13838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13839. done
  13840. done
  13841. done
  13842. done
  13843. done
  13844. # Provide a safe default value.
  13845. : ${gdb_cv_func_ptrace_args='int,int,long,long'}
  13846. fi
  13847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13848. fi
  13849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
  13850. $as_echo "$gdb_cv_func_ptrace_args" >&6; }
  13851. ac_save_IFS=$IFS; IFS=','
  13852. set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
  13853. IFS=$ac_save_IFS
  13854. shift
  13855. cat >>confdefs.h <<_ACEOF
  13856. #define PTRACE_TYPE_ARG1 $1
  13857. _ACEOF
  13858. cat >>confdefs.h <<_ACEOF
  13859. #define PTRACE_TYPE_ARG3 $3
  13860. _ACEOF
  13861. cat >>confdefs.h <<_ACEOF
  13862. #define PTRACE_TYPE_ARG4 $4
  13863. _ACEOF
  13864. if test -n "$5"; then
  13865. cat >>confdefs.h <<_ACEOF
  13866. #define PTRACE_TYPE_ARG5 $5
  13867. _ACEOF
  13868. fi
  13869. if test "$cross_compiling" = no; then
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  13871. $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  13872. if ${ac_cv_func_setpgrp_void+:} false; then :
  13873. $as_echo_n "(cached) " >&6
  13874. else
  13875. if test "$cross_compiling" = yes; then :
  13876. as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
  13877. else
  13878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13879. /* end confdefs.h. */
  13880. $ac_includes_default
  13881. int
  13882. main ()
  13883. {
  13884. /* If this system has a BSD-style setpgrp which takes arguments,
  13885. setpgrp(1, 1) will fail with ESRCH and return -1, in that case
  13886. exit successfully. */
  13887. return setpgrp (1,1) != -1;
  13888. ;
  13889. return 0;
  13890. }
  13891. _ACEOF
  13892. if ac_fn_c_try_run "$LINENO"; then :
  13893. ac_cv_func_setpgrp_void=no
  13894. else
  13895. ac_cv_func_setpgrp_void=yes
  13896. fi
  13897. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13898. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13899. fi
  13900. fi
  13901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  13902. $as_echo "$ac_cv_func_setpgrp_void" >&6; }
  13903. if test $ac_cv_func_setpgrp_void = yes; then
  13904. $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
  13905. fi
  13906. else
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  13908. $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  13909. if ${ac_cv_func_setpgrp_void+:} false; then :
  13910. $as_echo_n "(cached) " >&6
  13911. else
  13912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13913. /* end confdefs.h. */
  13914. #include <unistd.h>
  13915. int
  13916. main ()
  13917. {
  13918. if (setpgrp(1,1) == -1)
  13919. exit (0);
  13920. else
  13921. exit (1);
  13922. ;
  13923. return 0;
  13924. }
  13925. _ACEOF
  13926. if ac_fn_c_try_compile "$LINENO"; then :
  13927. ac_cv_func_setpgrp_void=no
  13928. else
  13929. ac_cv_func_setpgrp_void=yes
  13930. fi
  13931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13932. fi
  13933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  13934. $as_echo "$ac_cv_func_setpgrp_void" >&6; }
  13935. if test "$ac_cv_func_setpgrp_void" = yes; then
  13936. $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
  13937. fi
  13938. fi
  13939. # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
  13940. ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
  13941. #include <sys/proc.h>
  13942. "
  13943. if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
  13944. cat >>confdefs.h <<_ACEOF
  13945. #define HAVE_STRUCT_THREAD_TD_PCB 1
  13946. _ACEOF
  13947. fi
  13948. # See if <sys/lwp.h> defines `struct lwp`.
  13949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
  13950. $as_echo_n "checking for struct lwp... " >&6; }
  13951. if ${gdb_cv_struct_lwp+:} false; then :
  13952. $as_echo_n "(cached) " >&6
  13953. else
  13954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13955. /* end confdefs.h. */
  13956. #include <sys/param.h>
  13957. #define _KMEMUSER
  13958. #include <sys/lwp.h>
  13959. int
  13960. main ()
  13961. {
  13962. struct lwp l;
  13963. ;
  13964. return 0;
  13965. }
  13966. _ACEOF
  13967. if ac_fn_c_try_compile "$LINENO"; then :
  13968. gdb_cv_struct_lwp=yes
  13969. else
  13970. gdb_cv_struct_lwp=no
  13971. fi
  13972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13973. fi
  13974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
  13975. $as_echo "$gdb_cv_struct_lwp" >&6; }
  13976. if test "$gdb_cv_struct_lwp" = yes; then
  13977. $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
  13978. fi
  13979. # See if <machine/reg.h> degines `struct reg'.
  13980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
  13981. $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
  13982. if ${gdb_cv_struct_reg+:} false; then :
  13983. $as_echo_n "(cached) " >&6
  13984. else
  13985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13986. /* end confdefs.h. */
  13987. #include <sys/types.h>
  13988. #include <machine/reg.h>
  13989. int
  13990. main ()
  13991. {
  13992. struct reg r;
  13993. ;
  13994. return 0;
  13995. }
  13996. _ACEOF
  13997. if ac_fn_c_try_compile "$LINENO"; then :
  13998. gdb_cv_struct_reg=yes
  13999. else
  14000. gdb_cv_struct_reg=no
  14001. fi
  14002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14003. fi
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
  14005. $as_echo "$gdb_cv_struct_reg" >&6; }
  14006. if test "$gdb_cv_struct_reg" = yes; then
  14007. $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
  14008. fi
  14009. # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
  14010. # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
  14011. ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
  14012. #include <machine/reg.h>
  14013. "
  14014. if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
  14015. cat >>confdefs.h <<_ACEOF
  14016. #define HAVE_STRUCT_REG_R_FS 1
  14017. _ACEOF
  14018. fi
  14019. ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
  14020. #include <machine/reg.h>
  14021. "
  14022. if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
  14023. cat >>confdefs.h <<_ACEOF
  14024. #define HAVE_STRUCT_REG_R_GS 1
  14025. _ACEOF
  14026. fi
  14027. # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
  14028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
  14029. $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
  14030. if ${gdb_cv_have_ptrace_getregs+:} false; then :
  14031. $as_echo_n "(cached) " >&6
  14032. else
  14033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14034. /* end confdefs.h. */
  14035. #include <sys/ptrace.h>
  14036. int
  14037. main ()
  14038. {
  14039. PTRACE_GETREGS;
  14040. ;
  14041. return 0;
  14042. }
  14043. _ACEOF
  14044. if ac_fn_c_try_compile "$LINENO"; then :
  14045. gdb_cv_have_ptrace_getregs=yes
  14046. else
  14047. gdb_cv_have_ptrace_getregs=no
  14048. fi
  14049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
  14052. $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
  14053. if test "$gdb_cv_have_ptrace_getregs" = yes; then
  14054. $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
  14055. fi
  14056. # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
  14057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
  14058. $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
  14059. if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
  14060. $as_echo_n "(cached) " >&6
  14061. else
  14062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14063. /* end confdefs.h. */
  14064. #include <sys/ptrace.h>
  14065. int
  14066. main ()
  14067. {
  14068. PTRACE_GETFPXREGS;
  14069. ;
  14070. return 0;
  14071. }
  14072. _ACEOF
  14073. if ac_fn_c_try_compile "$LINENO"; then :
  14074. gdb_cv_have_ptrace_getfpxregs=yes
  14075. else
  14076. gdb_cv_have_ptrace_getfpxregs=no
  14077. fi
  14078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14079. fi
  14080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
  14081. $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
  14082. if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
  14083. $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
  14084. fi
  14085. # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
  14086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
  14087. $as_echo_n "checking for PT_GETDBREGS... " >&6; }
  14088. if ${gdb_cv_have_pt_getdbregs+:} false; then :
  14089. $as_echo_n "(cached) " >&6
  14090. else
  14091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14092. /* end confdefs.h. */
  14093. #include <sys/types.h>
  14094. #include <sys/ptrace.h>
  14095. int
  14096. main ()
  14097. {
  14098. PT_GETDBREGS;
  14099. ;
  14100. return 0;
  14101. }
  14102. _ACEOF
  14103. if ac_fn_c_try_compile "$LINENO"; then :
  14104. gdb_cv_have_pt_getdbregs=yes
  14105. else
  14106. gdb_cv_have_pt_getdbregs=no
  14107. fi
  14108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14109. fi
  14110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
  14111. $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
  14112. if test "$gdb_cv_have_pt_getdbregs" = yes; then
  14113. $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
  14114. fi
  14115. # See if <sys/ptrace.h> supports LWP names on FreeBSD
  14116. # Older FreeBSD versions don't have the pl_tdname member of
  14117. # `struct ptrace_lwpinfo'.
  14118. ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
  14119. "
  14120. if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
  14121. cat >>confdefs.h <<_ACEOF
  14122. #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
  14123. _ACEOF
  14124. fi
  14125. # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
  14126. # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
  14127. # FreeBSD 10.3.
  14128. ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
  14129. "
  14130. if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
  14131. cat >>confdefs.h <<_ACEOF
  14132. #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
  14133. _ACEOF
  14134. fi
  14135. # Check if the compiler supports the `long long' type.
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
  14137. $as_echo_n "checking for long long support in compiler... " >&6; }
  14138. if ${gdb_cv_c_long_long+:} false; then :
  14139. $as_echo_n "(cached) " >&6
  14140. else
  14141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14142. /* end confdefs.h. */
  14143. extern long long foo;
  14144. int
  14145. main ()
  14146. {
  14147. switch (foo & 2) { case 0: return 1; }
  14148. ;
  14149. return 0;
  14150. }
  14151. _ACEOF
  14152. if ac_fn_c_try_compile "$LINENO"; then :
  14153. gdb_cv_c_long_long=yes
  14154. else
  14155. gdb_cv_c_long_long=no
  14156. fi
  14157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14158. fi
  14159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
  14160. $as_echo "$gdb_cv_c_long_long" >&6; }
  14161. if test "$gdb_cv_c_long_long" != yes; then
  14162. # libdecnumber requires long long.
  14163. as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
  14164. fi
  14165. # Check if the compiler and runtime support printing decfloats.
  14166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
  14167. $as_echo_n "checking for decfloat support in printf... " >&6; }
  14168. if ${gdb_cv_printf_has_decfloat+:} false; then :
  14169. $as_echo_n "(cached) " >&6
  14170. else
  14171. if test "$cross_compiling" = yes; then :
  14172. gdb_cv_printf_has_decfloat=no
  14173. else
  14174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14175. /* end confdefs.h. */
  14176. $ac_includes_default
  14177. int
  14178. main ()
  14179. {
  14180. char buf[64];
  14181. _Decimal32 d32 = 1.2345df;
  14182. _Decimal64 d64 = 1.2345dd;
  14183. _Decimal128 d128 = 1.2345dl;
  14184. sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
  14185. return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
  14186. ;
  14187. return 0;
  14188. }
  14189. _ACEOF
  14190. if ac_fn_c_try_run "$LINENO"; then :
  14191. gdb_cv_printf_has_decfloat=yes
  14192. else
  14193. gdb_cv_printf_has_decfloat=no
  14194. fi
  14195. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14196. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14197. fi
  14198. fi
  14199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
  14200. $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
  14201. if test "$gdb_cv_printf_has_decfloat" = yes; then
  14202. $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
  14203. fi
  14204. # Check if the compiler supports the `long double' type. We can't use
  14205. # AC_C_LONG_DOUBLE because that one does additional checks on the
  14206. # constants defined in <float.h> that fail on some systems,
  14207. # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
  14209. $as_echo_n "checking for long double support in compiler... " >&6; }
  14210. if ${gdb_cv_c_long_double+:} false; then :
  14211. $as_echo_n "(cached) " >&6
  14212. else
  14213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14214. /* end confdefs.h. */
  14215. long double foo;
  14216. _ACEOF
  14217. if ac_fn_c_try_compile "$LINENO"; then :
  14218. gdb_cv_c_long_double=yes
  14219. else
  14220. gdb_cv_c_long_double=no
  14221. fi
  14222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14223. fi
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
  14225. $as_echo "$gdb_cv_c_long_double" >&6; }
  14226. if test "$gdb_cv_c_long_double" = yes; then
  14227. $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
  14228. fi
  14229. # Check if the compiler and runtime support printing long doubles.
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
  14231. $as_echo_n "checking for long double support in printf... " >&6; }
  14232. if ${gdb_cv_printf_has_long_double+:} false; then :
  14233. $as_echo_n "(cached) " >&6
  14234. else
  14235. if test "$cross_compiling" = yes; then :
  14236. gdb_cv_printf_has_long_double=no
  14237. else
  14238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14239. /* end confdefs.h. */
  14240. $ac_includes_default
  14241. int
  14242. main ()
  14243. {
  14244. char buf[16];
  14245. long double f = 3.141592653;
  14246. sprintf (buf, "%Lg", f);
  14247. return (strncmp ("3.14159", buf, 7));
  14248. ;
  14249. return 0;
  14250. }
  14251. _ACEOF
  14252. if ac_fn_c_try_run "$LINENO"; then :
  14253. gdb_cv_printf_has_long_double=yes
  14254. else
  14255. gdb_cv_printf_has_long_double=no
  14256. fi
  14257. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14258. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14259. fi
  14260. fi
  14261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
  14262. $as_echo "$gdb_cv_printf_has_long_double" >&6; }
  14263. if test "$gdb_cv_printf_has_long_double" = yes; then
  14264. $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
  14265. fi
  14266. # Check if the compiler and runtime support scanning long doubles.
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
  14268. $as_echo_n "checking for long double support in scanf... " >&6; }
  14269. if ${gdb_cv_scanf_has_long_double+:} false; then :
  14270. $as_echo_n "(cached) " >&6
  14271. else
  14272. if test "$cross_compiling" = yes; then :
  14273. gdb_cv_scanf_has_long_double=no
  14274. else
  14275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14276. /* end confdefs.h. */
  14277. #include <stdio.h>
  14278. int
  14279. main ()
  14280. {
  14281. char *buf = "3.141592653";
  14282. long double f = 0;
  14283. sscanf (buf, "%Lg", &f);
  14284. return !(f > 3.14159 && f < 3.14160);
  14285. ;
  14286. return 0;
  14287. }
  14288. _ACEOF
  14289. if ac_fn_c_try_run "$LINENO"; then :
  14290. gdb_cv_scanf_has_long_double=yes
  14291. else
  14292. gdb_cv_scanf_has_long_double=no
  14293. fi
  14294. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14295. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14296. fi
  14297. fi
  14298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
  14299. $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
  14300. if test "$gdb_cv_scanf_has_long_double" = yes; then
  14301. $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
  14302. fi
  14303. case ${host_os} in
  14304. aix*)
  14305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
  14306. $as_echo_n "checking for -bbigtoc option... " >&6; }
  14307. if ${gdb_cv_bigtoc+:} false; then :
  14308. $as_echo_n "(cached) " >&6
  14309. else
  14310. SAVE_LDFLAGS=$LDFLAGS
  14311. case $GCC in
  14312. yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
  14313. *) gdb_cv_bigtoc=-bbigtoc ;;
  14314. esac
  14315. LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
  14316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14317. /* end confdefs.h. */
  14318. int
  14319. main ()
  14320. {
  14321. int i;
  14322. ;
  14323. return 0;
  14324. }
  14325. _ACEOF
  14326. if ac_fn_c_try_link "$LINENO"; then :
  14327. else
  14328. gdb_cv_bigtoc=
  14329. fi
  14330. rm -f core conftest.err conftest.$ac_objext \
  14331. conftest$ac_exeext conftest.$ac_ext
  14332. LDFLAGS="${SAVE_LDFLAGS}"
  14333. fi
  14334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
  14335. $as_echo "$gdb_cv_bigtoc" >&6; }
  14336. CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
  14337. ;;
  14338. esac
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
  14340. $as_echo_n "checking for the dynamic export flag... " >&6; }
  14341. dynamic_list=false
  14342. if test "${gdb_native}" = yes; then
  14343. # The dynamically loaded libthread_db needs access to symbols in the gdb
  14344. # executable. Older GNU ld supports --export-dynamic but --dynamic-list
  14345. # may not be supported there.
  14346. old_LDFLAGS="$LDFLAGS"
  14347. # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
  14348. RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
  14349. LDFLAGS="$LDFLAGS $RDYNAMIC"
  14350. if test "${have_libpython}" = no; then
  14351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14352. /* end confdefs.h. */
  14353. int
  14354. main ()
  14355. {
  14356. ;
  14357. return 0;
  14358. }
  14359. _ACEOF
  14360. if ac_fn_c_try_link "$LINENO"; then :
  14361. dynamic_list=true
  14362. fi
  14363. rm -f core conftest.err conftest.$ac_objext \
  14364. conftest$ac_exeext conftest.$ac_ext
  14365. else
  14366. # Workaround http://bugs.python.org/issue4434 where static
  14367. # libpythonX.Y.a would get its symbols required for
  14368. # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
  14369. # Problem does not happen for the recommended libpythonX.Y.so linkage.
  14370. # Note the workaround for Python
  14371. # http://bugs.python.org/issue10112 earlier has removed
  14372. # -export-dynamic from PYTHON_LIBS. That's exactly what we want
  14373. # here too, as otherwise it'd make this -Wl,--dynamic-list test
  14374. # always pass.
  14375. old_CFLAGS="$CFLAGS"
  14376. CFLAGS="$CFLAGS $PYTHON_CFLAGS"
  14377. old_LIBS="$LIBS"
  14378. LIBS="$LIBS $PYTHON_LIBS"
  14379. old_CPPFLAGS="$CPPFLAGS"
  14380. CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
  14381. if test "$cross_compiling" = yes; then :
  14382. true
  14383. else
  14384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14385. /* end confdefs.h. */
  14386. #include "Python.h"
  14387. int
  14388. main ()
  14389. {
  14390. int err;
  14391. Py_Initialize ();
  14392. err = PyRun_SimpleString ("import ctypes\n");
  14393. Py_Finalize ();
  14394. return err == 0 ? 0 : 1;
  14395. ;
  14396. return 0;
  14397. }
  14398. _ACEOF
  14399. if ac_fn_c_try_run "$LINENO"; then :
  14400. dynamic_list=true
  14401. fi
  14402. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14403. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14404. fi
  14405. LIBS="$old_LIBS"
  14406. CFLAGS="$old_CFLAGS"
  14407. CPPFLAGS="$old_CPPFLAGS"
  14408. fi
  14409. LDFLAGS="$old_LDFLAGS"
  14410. fi
  14411. if $dynamic_list; then
  14412. found="-Wl,--dynamic-list"
  14413. RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
  14414. else
  14415. found="-rdynamic"
  14416. RDYNAMIC="-rdynamic"
  14417. fi
  14418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
  14419. $as_echo "$found" >&6; }
  14420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
  14421. $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
  14422. if ${gdb_cv_execinfo_backtrace+:} false; then :
  14423. $as_echo_n "(cached) " >&6
  14424. else
  14425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14426. /* end confdefs.h. */
  14427. #include <execinfo.h>
  14428. int
  14429. main ()
  14430. {
  14431. int f;
  14432. void *b[2];
  14433. f = backtrace (b, 2);
  14434. backtrace_symbols_fd (b, f, 2);
  14435. ;
  14436. return 0;
  14437. }
  14438. _ACEOF
  14439. if ac_fn_c_try_link "$LINENO"; then :
  14440. gdb_cv_execinfo_backtrace=yes
  14441. else
  14442. gdb_cv_execinfo_backtrace=no
  14443. fi
  14444. rm -f core conftest.err conftest.$ac_objext \
  14445. conftest$ac_exeext conftest.$ac_ext
  14446. fi
  14447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
  14448. $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
  14449. if test "$gdb_cv_execinfo_backtrace" = yes; then
  14450. $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
  14451. fi
  14452. if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
  14453. case ${host_os} in
  14454. aix*)
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
  14456. $as_echo_n "checking for AiX thread debugging library... " >&6; }
  14457. if ${gdb_cv_have_aix_thread_debug+:} false; then :
  14458. $as_echo_n "(cached) " >&6
  14459. else
  14460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14461. /* end confdefs.h. */
  14462. #include <sys/pthdebug.h>
  14463. int
  14464. main ()
  14465. {
  14466. #ifndef PTHDB_VERSION_3
  14467. #error
  14468. #endif
  14469. ;
  14470. return 0;
  14471. }
  14472. _ACEOF
  14473. if ac_fn_c_try_compile "$LINENO"; then :
  14474. gdb_cv_have_aix_thread_debug=yes
  14475. else
  14476. gdb_cv_have_aix_thread_debug=no
  14477. fi
  14478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14479. fi
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
  14481. $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
  14482. if test "$gdb_cv_have_aix_thread_debug" = yes; then
  14483. CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
  14484. CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
  14485. LIBS="$LIBS -lpthdebug"
  14486. # Older versions of AIX do not provide the declaration for
  14487. # the getthrds function (it appears that it was introduced
  14488. # with AIX 6.x).
  14489. ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
  14490. "
  14491. if test "x$ac_cv_have_decl_getthrds" = xyes; then :
  14492. ac_have_decl=1
  14493. else
  14494. ac_have_decl=0
  14495. fi
  14496. cat >>confdefs.h <<_ACEOF
  14497. #define HAVE_DECL_GETTHRDS $ac_have_decl
  14498. _ACEOF
  14499. fi
  14500. ;;
  14501. esac
  14502. fi
  14503. if test "x$ac_cv_header_thread_db_h" = "xyes"; then
  14504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
  14505. $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
  14506. if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
  14507. $as_echo_n "(cached) " >&6
  14508. else
  14509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14510. /* end confdefs.h. */
  14511. #include <thread_db.h>
  14512. int
  14513. main ()
  14514. {
  14515. int i = TD_NOTALLOC;
  14516. ;
  14517. return 0;
  14518. }
  14519. _ACEOF
  14520. if ac_fn_c_try_compile "$LINENO"; then :
  14521. gdb_cv_thread_db_h_has_td_notalloc=yes
  14522. else
  14523. gdb_cv_thread_db_h_has_td_notalloc=no
  14524. fi
  14525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14526. fi
  14527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
  14528. $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
  14530. $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
  14531. if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
  14532. $as_echo_n "(cached) " >&6
  14533. else
  14534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14535. /* end confdefs.h. */
  14536. #include <thread_db.h>
  14537. int
  14538. main ()
  14539. {
  14540. int i = TD_VERSION;
  14541. ;
  14542. return 0;
  14543. }
  14544. _ACEOF
  14545. if ac_fn_c_try_compile "$LINENO"; then :
  14546. gdb_cv_thread_db_h_has_td_version=yes
  14547. else
  14548. gdb_cv_thread_db_h_has_td_version=no
  14549. fi
  14550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14551. fi
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
  14553. $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
  14554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
  14555. $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
  14556. if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
  14557. $as_echo_n "(cached) " >&6
  14558. else
  14559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14560. /* end confdefs.h. */
  14561. #include <thread_db.h>
  14562. int
  14563. main ()
  14564. {
  14565. int i = TD_NOTLS;
  14566. ;
  14567. return 0;
  14568. }
  14569. _ACEOF
  14570. if ac_fn_c_try_compile "$LINENO"; then :
  14571. gdb_cv_thread_db_h_has_td_notls=yes
  14572. else
  14573. gdb_cv_thread_db_h_has_td_notls=no
  14574. fi
  14575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14576. fi
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
  14578. $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
  14579. fi
  14580. if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
  14581. $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
  14582. fi
  14583. if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
  14584. $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
  14585. fi
  14586. if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
  14587. $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
  14588. fi
  14589. case $host_os in
  14590. go32* | *djgpp*)
  14591. gdbinit=gdb.ini
  14592. ;;
  14593. *)
  14594. gdbinit=.gdbinit
  14595. ;;
  14596. esac
  14597. cat >>confdefs.h <<_ACEOF
  14598. #define GDBINIT "$gdbinit"
  14599. _ACEOF
  14600. cat >>confdefs.h <<_ACEOF
  14601. #define GDBEARLYINIT ".gdbearlyinit"
  14602. _ACEOF
  14603. # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
  14604. # except that the argument to --with-sysroot is optional.
  14605. # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
  14606. if test "x$with_sysroot" = xyes; then
  14607. with_sysroot="${exec_prefix}/${target_alias}/sys-root"
  14608. fi
  14609. # Check whether --with-sysroot was given.
  14610. if test "${with_sysroot+set}" = set; then :
  14611. withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
  14612. else
  14613. TARGET_SYSTEM_ROOT=
  14614. fi
  14615. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  14616. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14617. ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
  14618. ac_define_dir=`eval echo $ac_define_dir`
  14619. cat >>confdefs.h <<_ACEOF
  14620. #define TARGET_SYSTEM_ROOT "$ac_define_dir"
  14621. _ACEOF
  14622. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  14623. if test "x$prefix" = xNONE; then
  14624. test_prefix=/usr/local
  14625. else
  14626. test_prefix=$prefix
  14627. fi
  14628. else
  14629. test_prefix=$exec_prefix
  14630. fi
  14631. value=0
  14632. case ${ac_define_dir} in
  14633. "${test_prefix}"|"${test_prefix}/"*|\
  14634. '${exec_prefix}'|'${exec_prefix}/'*)
  14635. value=1
  14636. ;;
  14637. esac
  14638. cat >>confdefs.h <<_ACEOF
  14639. #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
  14640. _ACEOF
  14641. # Check whether --with-system-gdbinit was given.
  14642. if test "${with_system_gdbinit+set}" = set; then :
  14643. withval=$with_system_gdbinit;
  14644. SYSTEM_GDBINIT=$withval
  14645. else
  14646. SYSTEM_GDBINIT=
  14647. fi
  14648. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  14649. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14650. ac_define_dir=`eval echo $SYSTEM_GDBINIT`
  14651. ac_define_dir=`eval echo $ac_define_dir`
  14652. cat >>confdefs.h <<_ACEOF
  14653. #define SYSTEM_GDBINIT "$ac_define_dir"
  14654. _ACEOF
  14655. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  14656. if test "x$prefix" = xNONE; then
  14657. test_prefix=/usr/local
  14658. else
  14659. test_prefix=$prefix
  14660. fi
  14661. else
  14662. test_prefix=$exec_prefix
  14663. fi
  14664. value=0
  14665. case ${ac_define_dir} in
  14666. "${test_prefix}"|"${test_prefix}/"*|\
  14667. '${exec_prefix}'|'${exec_prefix}/'*)
  14668. value=1
  14669. ;;
  14670. esac
  14671. cat >>confdefs.h <<_ACEOF
  14672. #define SYSTEM_GDBINIT_RELOCATABLE $value
  14673. _ACEOF
  14674. # Check whether --with-system-gdbinit-dir was given.
  14675. if test "${with_system_gdbinit_dir+set}" = set; then :
  14676. withval=$with_system_gdbinit_dir;
  14677. SYSTEM_GDBINIT_DIR=$withval
  14678. else
  14679. SYSTEM_GDBINIT_DIR=
  14680. fi
  14681. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  14682. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14683. ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
  14684. ac_define_dir=`eval echo $ac_define_dir`
  14685. cat >>confdefs.h <<_ACEOF
  14686. #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
  14687. _ACEOF
  14688. if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  14689. if test "x$prefix" = xNONE; then
  14690. test_prefix=/usr/local
  14691. else
  14692. test_prefix=$prefix
  14693. fi
  14694. else
  14695. test_prefix=$exec_prefix
  14696. fi
  14697. value=0
  14698. case ${ac_define_dir} in
  14699. "${test_prefix}"|"${test_prefix}/"*|\
  14700. '${exec_prefix}'|'${exec_prefix}/'*)
  14701. value=1
  14702. ;;
  14703. esac
  14704. cat >>confdefs.h <<_ACEOF
  14705. #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
  14706. _ACEOF
  14707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
  14708. $as_echo_n "checking the compiler type... " >&6; }
  14709. if ${gdb_cv_compiler_type+:} false; then :
  14710. $as_echo_n "(cached) " >&6
  14711. else
  14712. gdb_cv_compiler_type=unknown
  14713. if test "$gdb_cv_compiler_type" = unknown; then
  14714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14715. /* end confdefs.h. */
  14716. int
  14717. main ()
  14718. {
  14719. #if !defined __GNUC__ || defined __clang__
  14720. #error not gcc
  14721. #endif
  14722. ;
  14723. return 0;
  14724. }
  14725. _ACEOF
  14726. if ac_fn_c_try_compile "$LINENO"; then :
  14727. gdb_cv_compiler_type=gcc
  14728. fi
  14729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14730. fi
  14731. if test "$gdb_cv_compiler_type" = unknown; then
  14732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14733. /* end confdefs.h. */
  14734. int
  14735. main ()
  14736. {
  14737. #ifndef __clang__
  14738. #error not clang
  14739. #endif
  14740. ;
  14741. return 0;
  14742. }
  14743. _ACEOF
  14744. if ac_fn_c_try_compile "$LINENO"; then :
  14745. gdb_cv_compiler_type=clang
  14746. fi
  14747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14748. fi
  14749. fi
  14750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
  14751. $as_echo "$gdb_cv_compiler_type" >&6; }
  14752. GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
  14753. # Check whether --enable-werror was given.
  14754. if test "${enable_werror+set}" = set; then :
  14755. enableval=$enable_werror; case "${enableval}" in
  14756. yes | y) ERROR_ON_WARNING="yes" ;;
  14757. no | n) ERROR_ON_WARNING="no" ;;
  14758. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  14759. esac
  14760. fi
  14761. # Enable -Werror by default when using gcc. Turn it off for releases.
  14762. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
  14763. ERROR_ON_WARNING=yes
  14764. fi
  14765. WERROR_CFLAGS=""
  14766. if test "${ERROR_ON_WARNING}" = yes ; then
  14767. WERROR_CFLAGS="-Werror"
  14768. fi
  14769. # The options we'll try to enable.
  14770. build_warnings="-Wall -Wpointer-arith \
  14771. -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
  14772. -Wno-switch -Wno-char-subscripts \
  14773. -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
  14774. -Wno-sign-compare -Wno-error=maybe-uninitialized \
  14775. -Wno-mismatched-tags \
  14776. -Wno-error=deprecated-register \
  14777. -Wsuggest-override \
  14778. -Wimplicit-fallthrough=3 \
  14779. -Wduplicated-cond \
  14780. -Wshadow=local \
  14781. -Wdeprecated-copy \
  14782. -Wdeprecated-copy-dtor \
  14783. -Wredundant-move \
  14784. -Wmissing-declarations \
  14785. -Wstrict-null-sentinel \
  14786. "
  14787. # The -Wmissing-prototypes flag will be accepted by GCC, but results
  14788. # in a warning being printed about the flag not being valid for C++,
  14789. # this is something to do with using ccache, and argument ordering.
  14790. if test "$GDB_COMPILER_TYPE" != gcc; then
  14791. build_warnings="$build_warnings -Wmissing-prototypes"
  14792. fi
  14793. case "${host}" in
  14794. *-*-mingw32*)
  14795. # Enable -Wno-format by default when using gcc on mingw since many
  14796. # GCC versions complain about %I64.
  14797. build_warnings="$build_warnings -Wno-format" ;;
  14798. *-*-solaris*)
  14799. # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
  14800. # doesn't understand.
  14801. build_warnings="$build_warnings -Wno-unknown-pragmas"
  14802. # Solaris 11 <unistd.h> marks vfork deprecated.
  14803. build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
  14804. *)
  14805. # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
  14806. # but there's a special case for this below.
  14807. build_warnings="$build_warnings -Wformat-nonliteral" ;;
  14808. esac
  14809. # Check whether --enable-build-warnings was given.
  14810. if test "${enable_build_warnings+set}" = set; then :
  14811. enableval=$enable_build_warnings; case "${enableval}" in
  14812. yes) ;;
  14813. no) build_warnings="-w";;
  14814. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  14815. build_warnings="${build_warnings} ${t}";;
  14816. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  14817. build_warnings="${t} ${build_warnings}";;
  14818. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  14819. esac
  14820. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  14821. echo "Setting compiler warning flags = $build_warnings" 6>&1
  14822. fi
  14823. fi
  14824. # Check whether --enable-gdb-build-warnings was given.
  14825. if test "${enable_gdb_build_warnings+set}" = set; then :
  14826. enableval=$enable_gdb_build_warnings; case "${enableval}" in
  14827. yes) ;;
  14828. no) build_warnings="-w";;
  14829. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  14830. build_warnings="${build_warnings} ${t}";;
  14831. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  14832. build_warnings="${t} ${build_warnings}";;
  14833. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  14834. esac
  14835. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  14836. echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  14837. fi
  14838. fi
  14839. # The set of warnings supported by a C++ compiler is not the same as
  14840. # of the C compiler.
  14841. ac_ext=cpp
  14842. ac_cpp='$CXXCPP $CPPFLAGS'
  14843. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14844. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14845. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14846. WARN_CFLAGS=""
  14847. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  14848. then
  14849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  14850. $as_echo_n "checking compiler warning flags... " >&6; }
  14851. # Separate out the -Werror flag as some files just cannot be
  14852. # compiled with it enabled.
  14853. for w in ${build_warnings}; do
  14854. # GCC does not complain about -Wno-unknown-warning. Invert
  14855. # and test -Wunknown-warning instead.
  14856. case $w in
  14857. -Wno-*)
  14858. wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
  14859. -Wformat-nonliteral)
  14860. # gcc requires -Wformat before -Wformat-nonliteral
  14861. # will work, so stick them together.
  14862. w="-Wformat $w"
  14863. wtest="$w"
  14864. ;;
  14865. *)
  14866. wtest=$w ;;
  14867. esac
  14868. case $w in
  14869. -Werr*) WERROR_CFLAGS=-Werror ;;
  14870. *)
  14871. # Check whether GCC accepts it.
  14872. saved_CFLAGS="$CFLAGS"
  14873. CFLAGS="$CFLAGS -Werror $wtest"
  14874. saved_CXXFLAGS="$CXXFLAGS"
  14875. CXXFLAGS="$CXXFLAGS -Werror $wtest"
  14876. if test "x$w" = "x-Wunused-variable"; then
  14877. # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
  14878. # fixed in GCC 4.9. This test is derived from the gdb
  14879. # source code that triggered this bug in GCC.
  14880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14881. /* end confdefs.h. */
  14882. struct scoped_restore_base {};
  14883. struct scoped_restore_tmpl : public scoped_restore_base {
  14884. ~scoped_restore_tmpl() {}
  14885. };
  14886. int
  14887. main ()
  14888. {
  14889. const scoped_restore_base &b = scoped_restore_tmpl();
  14890. ;
  14891. return 0;
  14892. }
  14893. _ACEOF
  14894. if ac_fn_cxx_try_compile "$LINENO"; then :
  14895. WARN_CFLAGS="${WARN_CFLAGS} $w"
  14896. fi
  14897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14898. else
  14899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14900. /* end confdefs.h. */
  14901. int
  14902. main ()
  14903. {
  14904. ;
  14905. return 0;
  14906. }
  14907. _ACEOF
  14908. if ac_fn_cxx_try_compile "$LINENO"; then :
  14909. WARN_CFLAGS="${WARN_CFLAGS} $w"
  14910. fi
  14911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14912. fi
  14913. CFLAGS="$saved_CFLAGS"
  14914. CXXFLAGS="$saved_CXXFLAGS"
  14915. esac
  14916. done
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  14918. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  14919. fi
  14920. ac_ext=c
  14921. ac_cpp='$CPP $CPPFLAGS'
  14922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14925. # Check whether --enable-ubsan was given.
  14926. if test "${enable_ubsan+set}" = set; then :
  14927. enableval=$enable_ubsan;
  14928. else
  14929. enable_ubsan=no
  14930. fi
  14931. if test "x$enable_ubsan" = xauto; then
  14932. if $development; then
  14933. enable_ubsan=yes
  14934. fi
  14935. fi
  14936. ac_ext=cpp
  14937. ac_cpp='$CXXCPP $CPPFLAGS'
  14938. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14939. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14940. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14941. if test "x$enable_ubsan" = xyes; then
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
  14943. $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
  14944. saved_CXXFLAGS="$CXXFLAGS"
  14945. CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
  14946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14947. /* end confdefs.h. */
  14948. int
  14949. main ()
  14950. {
  14951. ;
  14952. return 0;
  14953. }
  14954. _ACEOF
  14955. if ac_fn_cxx_try_link "$LINENO"; then :
  14956. enable_ubsan=yes
  14957. else
  14958. enable_ubsan=no
  14959. fi
  14960. rm -f core conftest.err conftest.$ac_objext \
  14961. conftest$ac_exeext conftest.$ac_ext
  14962. CXXFLAGS="$saved_CXXFLAGS"
  14963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
  14964. $as_echo "$enable_ubsan" >&6; }
  14965. if test "x$enable_ubsan" = xyes; then
  14966. WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
  14967. CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
  14968. fi
  14969. fi
  14970. ac_ext=c
  14971. ac_cpp='$CPP $CPPFLAGS'
  14972. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14973. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14974. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14975. # In the Cygwin environment, we need some additional flags.
  14976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
  14977. $as_echo_n "checking for cygwin... " >&6; }
  14978. if ${gdb_cv_os_cygwin+:} false; then :
  14979. $as_echo_n "(cached) " >&6
  14980. else
  14981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14982. /* end confdefs.h. */
  14983. #if defined (__CYGWIN__) || defined (__CYGWIN32__)
  14984. lose
  14985. #endif
  14986. _ACEOF
  14987. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14988. $EGREP "^lose$" >/dev/null 2>&1; then :
  14989. gdb_cv_os_cygwin=yes
  14990. else
  14991. gdb_cv_os_cygwin=no
  14992. fi
  14993. rm -f conftest*
  14994. fi
  14995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
  14996. $as_echo "$gdb_cv_os_cygwin" >&6; }
  14997. SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
  14998. case ${host} in
  14999. *go32* ) SER_HARDWIRE=ser-go32.o ;;
  15000. *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
  15001. *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
  15002. *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
  15003. esac
  15004. # libreadline needs libuser32.a in a cygwin environment
  15005. WIN32LIBS=
  15006. if test x"$gdb_cv_os_cygwin" = xyes; then
  15007. WIN32LIBS="-luser32"
  15008. case "${target}" in
  15009. *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
  15010. ;;
  15011. esac
  15012. fi
  15013. # The ser-tcp.c module requires sockets.
  15014. # Note that WIN32APILIBS is set by GDB_AC_COMMON.
  15015. WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
  15016. # Add ELF support to GDB, but only if BFD includes ELF support.
  15017. OLD_CFLAGS=$CFLAGS
  15018. OLD_LDFLAGS=$LDFLAGS
  15019. OLD_LIBS=$LIBS
  15020. # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
  15021. # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
  15022. # always want our bfd.
  15023. CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
  15024. ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
  15025. LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
  15026. intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
  15027. LIBS="-lbfd -liberty -lz $intl $LIBS"
  15028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
  15029. $as_echo_n "checking for ELF support in BFD... " >&6; }
  15030. if ${gdb_cv_var_elf+:} false; then :
  15031. $as_echo_n "(cached) " >&6
  15032. else
  15033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15034. /* end confdefs.h. */
  15035. #include <stdlib.h>
  15036. #include <string.h>
  15037. #include "bfd.h"
  15038. #include "elf-bfd.h"
  15039. int
  15040. main ()
  15041. {
  15042. return bfd_get_elf_phdr_upper_bound (NULL);
  15043. ;
  15044. return 0;
  15045. }
  15046. _ACEOF
  15047. if ac_fn_c_try_link "$LINENO"; then :
  15048. gdb_cv_var_elf=yes
  15049. else
  15050. gdb_cv_var_elf=no
  15051. fi
  15052. rm -f core conftest.err conftest.$ac_objext \
  15053. conftest$ac_exeext conftest.$ac_ext
  15054. fi
  15055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
  15056. $as_echo "$gdb_cv_var_elf" >&6; }
  15057. CFLAGS=$OLD_CFLAGS
  15058. LDFLAGS=$OLD_LDFLAGS
  15059. LIBS=$OLD_LIBS
  15060. if test "$gdb_cv_var_elf" = yes; then
  15061. CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
  15062. gcore-elf.o elf-none-tdep.o"
  15063. $as_echo "#define HAVE_ELF 1" >>confdefs.h
  15064. # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
  15065. if test "$plugins" = "yes"; then
  15066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  15067. $as_echo_n "checking for library containing dlopen... " >&6; }
  15068. if ${ac_cv_search_dlopen+:} false; then :
  15069. $as_echo_n "(cached) " >&6
  15070. else
  15071. ac_func_search_save_LIBS=$LIBS
  15072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15073. /* end confdefs.h. */
  15074. /* Override any GCC internal prototype to avoid an error.
  15075. Use char because int might match the return type of a GCC
  15076. builtin and then its argument prototype would still apply. */
  15077. #ifdef __cplusplus
  15078. extern "C"
  15079. #endif
  15080. char dlopen ();
  15081. int
  15082. main ()
  15083. {
  15084. return dlopen ();
  15085. ;
  15086. return 0;
  15087. }
  15088. _ACEOF
  15089. for ac_lib in '' dl; do
  15090. if test -z "$ac_lib"; then
  15091. ac_res="none required"
  15092. else
  15093. ac_res=-l$ac_lib
  15094. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15095. fi
  15096. if ac_fn_c_try_link "$LINENO"; then :
  15097. ac_cv_search_dlopen=$ac_res
  15098. fi
  15099. rm -f core conftest.err conftest.$ac_objext \
  15100. conftest$ac_exeext
  15101. if ${ac_cv_search_dlopen+:} false; then :
  15102. break
  15103. fi
  15104. done
  15105. if ${ac_cv_search_dlopen+:} false; then :
  15106. else
  15107. ac_cv_search_dlopen=no
  15108. fi
  15109. rm conftest.$ac_ext
  15110. LIBS=$ac_func_search_save_LIBS
  15111. fi
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  15113. $as_echo "$ac_cv_search_dlopen" >&6; }
  15114. ac_res=$ac_cv_search_dlopen
  15115. if test "$ac_res" != no; then :
  15116. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15117. fi
  15118. fi
  15119. fi
  15120. # Add macho support to GDB, but only if BFD includes it.
  15121. OLD_CFLAGS=$CFLAGS
  15122. OLD_LDFLAGS=$LDFLAGS
  15123. OLD_LIBS=$LIBS
  15124. # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
  15125. # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
  15126. # always want our bfd.
  15127. CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
  15128. ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
  15129. LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
  15130. intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
  15131. LIBS="-lbfd -liberty -lz $intl $LIBS"
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
  15133. $as_echo_n "checking for Mach-O support in BFD... " >&6; }
  15134. if ${gdb_cv_var_macho+:} false; then :
  15135. $as_echo_n "(cached) " >&6
  15136. else
  15137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15138. /* end confdefs.h. */
  15139. #include <stdlib.h>
  15140. #include <string.h>
  15141. #include "bfd.h"
  15142. #include "mach-o.h"
  15143. int
  15144. main ()
  15145. {
  15146. return bfd_mach_o_lookup_command (NULL, 0, NULL);
  15147. ;
  15148. return 0;
  15149. }
  15150. _ACEOF
  15151. if ac_fn_c_try_link "$LINENO"; then :
  15152. gdb_cv_var_macho=yes
  15153. else
  15154. gdb_cv_var_macho=no
  15155. fi
  15156. rm -f core conftest.err conftest.$ac_objext \
  15157. conftest$ac_exeext conftest.$ac_ext
  15158. fi
  15159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
  15160. $as_echo "$gdb_cv_var_macho" >&6; }
  15161. CFLAGS=$OLD_CFLAGS
  15162. LDFLAGS=$OLD_LDFLAGS
  15163. LIBS=$OLD_LIBS
  15164. if test "$gdb_cv_var_macho" = yes; then
  15165. CONFIG_OBS="$CONFIG_OBS machoread.o"
  15166. fi
  15167. # Add any host-specific objects to GDB.
  15168. CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
  15169. # If building on ELF, look for lzma support for embedded compressed debug info.
  15170. if test "$gdb_cv_var_elf" = yes; then
  15171. # Check whether --with-lzma was given.
  15172. if test "${with_lzma+set}" = set; then :
  15173. withval=$with_lzma;
  15174. else
  15175. with_lzma=auto
  15176. fi
  15177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
  15178. $as_echo_n "checking whether to use lzma... " >&6; }
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
  15180. $as_echo "$with_lzma" >&6; }
  15181. if test "${with_lzma}" != no; then
  15182. use_additional=yes
  15183. acl_save_prefix="$prefix"
  15184. prefix="$acl_final_prefix"
  15185. acl_save_exec_prefix="$exec_prefix"
  15186. exec_prefix="$acl_final_exec_prefix"
  15187. eval additional_includedir=\"$includedir\"
  15188. eval additional_libdir=\"$libdir\"
  15189. exec_prefix="$acl_save_exec_prefix"
  15190. prefix="$acl_save_prefix"
  15191. # Check whether --with-liblzma-prefix was given.
  15192. if test "${with_liblzma_prefix+set}" = set; then :
  15193. withval=$with_liblzma_prefix;
  15194. if test "X$withval" = "Xno"; then
  15195. use_additional=no
  15196. else
  15197. if test "X$withval" = "X"; then
  15198. acl_save_prefix="$prefix"
  15199. prefix="$acl_final_prefix"
  15200. acl_save_exec_prefix="$exec_prefix"
  15201. exec_prefix="$acl_final_exec_prefix"
  15202. eval additional_includedir=\"$includedir\"
  15203. eval additional_libdir=\"$libdir\"
  15204. exec_prefix="$acl_save_exec_prefix"
  15205. prefix="$acl_save_prefix"
  15206. else
  15207. additional_includedir="$withval/include"
  15208. additional_libdir="$withval/lib"
  15209. fi
  15210. fi
  15211. fi
  15212. # Check whether --with-liblzma-type was given.
  15213. if test "${with_liblzma_type+set}" = set; then :
  15214. withval=$with_liblzma_type; with_liblzma_type=$withval
  15215. else
  15216. with_liblzma_type=auto
  15217. fi
  15218. lib_type=`eval echo \$with_liblzma_type`
  15219. LIBLZMA=
  15220. LTLIBLZMA=
  15221. INCLZMA=
  15222. rpathdirs=
  15223. ltrpathdirs=
  15224. names_already_handled=
  15225. names_next_round='lzma '
  15226. while test -n "$names_next_round"; do
  15227. names_this_round="$names_next_round"
  15228. names_next_round=
  15229. for name in $names_this_round; do
  15230. already_handled=
  15231. for n in $names_already_handled; do
  15232. if test "$n" = "$name"; then
  15233. already_handled=yes
  15234. break
  15235. fi
  15236. done
  15237. if test -z "$already_handled"; then
  15238. names_already_handled="$names_already_handled $name"
  15239. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15240. eval value=\"\$HAVE_LIB$uppername\"
  15241. if test -n "$value"; then
  15242. if test "$value" = yes; then
  15243. eval value=\"\$LIB$uppername\"
  15244. test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
  15245. eval value=\"\$LTLIB$uppername\"
  15246. test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
  15247. else
  15248. :
  15249. fi
  15250. else
  15251. found_dir=
  15252. found_la=
  15253. found_so=
  15254. found_a=
  15255. if test $use_additional = yes; then
  15256. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  15257. found_dir="$additional_libdir"
  15258. found_so="$additional_libdir/lib$name.$shlibext"
  15259. if test -f "$additional_libdir/lib$name.la"; then
  15260. found_la="$additional_libdir/lib$name.la"
  15261. fi
  15262. elif test x$lib_type != xshared; then
  15263. if test -f "$additional_libdir/lib$name.$libext"; then
  15264. found_dir="$additional_libdir"
  15265. found_a="$additional_libdir/lib$name.$libext"
  15266. if test -f "$additional_libdir/lib$name.la"; then
  15267. found_la="$additional_libdir/lib$name.la"
  15268. fi
  15269. fi
  15270. fi
  15271. fi
  15272. if test "X$found_dir" = "X"; then
  15273. for x in $LDFLAGS $LTLIBLZMA; do
  15274. acl_save_prefix="$prefix"
  15275. prefix="$acl_final_prefix"
  15276. acl_save_exec_prefix="$exec_prefix"
  15277. exec_prefix="$acl_final_exec_prefix"
  15278. eval x=\"$x\"
  15279. exec_prefix="$acl_save_exec_prefix"
  15280. prefix="$acl_save_prefix"
  15281. case "$x" in
  15282. -L*)
  15283. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15284. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  15285. found_dir="$dir"
  15286. found_so="$dir/lib$name.$shlibext"
  15287. if test -f "$dir/lib$name.la"; then
  15288. found_la="$dir/lib$name.la"
  15289. fi
  15290. elif test x$lib_type != xshared; then
  15291. if test -f "$dir/lib$name.$libext"; then
  15292. found_dir="$dir"
  15293. found_a="$dir/lib$name.$libext"
  15294. if test -f "$dir/lib$name.la"; then
  15295. found_la="$dir/lib$name.la"
  15296. fi
  15297. fi
  15298. fi
  15299. ;;
  15300. esac
  15301. if test "X$found_dir" != "X"; then
  15302. break
  15303. fi
  15304. done
  15305. fi
  15306. if test "X$found_dir" != "X"; then
  15307. LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
  15308. if test "X$found_so" != "X"; then
  15309. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  15310. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
  15311. else
  15312. haveit=
  15313. for x in $ltrpathdirs; do
  15314. if test "X$x" = "X$found_dir"; then
  15315. haveit=yes
  15316. break
  15317. fi
  15318. done
  15319. if test -z "$haveit"; then
  15320. ltrpathdirs="$ltrpathdirs $found_dir"
  15321. fi
  15322. if test "$hardcode_direct" = yes; then
  15323. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
  15324. else
  15325. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  15326. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
  15327. haveit=
  15328. for x in $rpathdirs; do
  15329. if test "X$x" = "X$found_dir"; then
  15330. haveit=yes
  15331. break
  15332. fi
  15333. done
  15334. if test -z "$haveit"; then
  15335. rpathdirs="$rpathdirs $found_dir"
  15336. fi
  15337. else
  15338. haveit=
  15339. for x in $LDFLAGS $LIBLZMA; do
  15340. acl_save_prefix="$prefix"
  15341. prefix="$acl_final_prefix"
  15342. acl_save_exec_prefix="$exec_prefix"
  15343. exec_prefix="$acl_final_exec_prefix"
  15344. eval x=\"$x\"
  15345. exec_prefix="$acl_save_exec_prefix"
  15346. prefix="$acl_save_prefix"
  15347. if test "X$x" = "X-L$found_dir"; then
  15348. haveit=yes
  15349. break
  15350. fi
  15351. done
  15352. if test -z "$haveit"; then
  15353. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
  15354. fi
  15355. if test "$hardcode_minus_L" != no; then
  15356. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
  15357. else
  15358. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
  15359. fi
  15360. fi
  15361. fi
  15362. fi
  15363. else
  15364. if test "X$found_a" != "X"; then
  15365. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
  15366. else
  15367. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
  15368. fi
  15369. fi
  15370. additional_includedir=
  15371. case "$found_dir" in
  15372. */lib | */lib/)
  15373. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  15374. additional_includedir="$basedir/include"
  15375. ;;
  15376. esac
  15377. if test "X$additional_includedir" != "X"; then
  15378. if test "X$additional_includedir" != "X/usr/include"; then
  15379. haveit=
  15380. if test "X$additional_includedir" = "X/usr/local/include"; then
  15381. if test -n "$GCC"; then
  15382. case $host_os in
  15383. linux*) haveit=yes;;
  15384. esac
  15385. fi
  15386. fi
  15387. if test -z "$haveit"; then
  15388. for x in $CPPFLAGS $INCLZMA; do
  15389. acl_save_prefix="$prefix"
  15390. prefix="$acl_final_prefix"
  15391. acl_save_exec_prefix="$exec_prefix"
  15392. exec_prefix="$acl_final_exec_prefix"
  15393. eval x=\"$x\"
  15394. exec_prefix="$acl_save_exec_prefix"
  15395. prefix="$acl_save_prefix"
  15396. if test "X$x" = "X-I$additional_includedir"; then
  15397. haveit=yes
  15398. break
  15399. fi
  15400. done
  15401. if test -z "$haveit"; then
  15402. if test -d "$additional_includedir"; then
  15403. INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
  15404. fi
  15405. fi
  15406. fi
  15407. fi
  15408. fi
  15409. if test -n "$found_la"; then
  15410. save_libdir="$libdir"
  15411. case "$found_la" in
  15412. */* | *\\*) . "$found_la" ;;
  15413. *) . "./$found_la" ;;
  15414. esac
  15415. libdir="$save_libdir"
  15416. for dep in $dependency_libs; do
  15417. case "$dep" in
  15418. -L*)
  15419. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15420. if test "X$additional_libdir" != "X/usr/lib"; then
  15421. haveit=
  15422. if test "X$additional_libdir" = "X/usr/local/lib"; then
  15423. if test -n "$GCC"; then
  15424. case $host_os in
  15425. linux*) haveit=yes;;
  15426. esac
  15427. fi
  15428. fi
  15429. if test -z "$haveit"; then
  15430. haveit=
  15431. for x in $LDFLAGS $LIBLZMA; do
  15432. acl_save_prefix="$prefix"
  15433. prefix="$acl_final_prefix"
  15434. acl_save_exec_prefix="$exec_prefix"
  15435. exec_prefix="$acl_final_exec_prefix"
  15436. eval x=\"$x\"
  15437. exec_prefix="$acl_save_exec_prefix"
  15438. prefix="$acl_save_prefix"
  15439. if test "X$x" = "X-L$additional_libdir"; then
  15440. haveit=yes
  15441. break
  15442. fi
  15443. done
  15444. if test -z "$haveit"; then
  15445. if test -d "$additional_libdir"; then
  15446. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
  15447. fi
  15448. fi
  15449. haveit=
  15450. for x in $LDFLAGS $LTLIBLZMA; do
  15451. acl_save_prefix="$prefix"
  15452. prefix="$acl_final_prefix"
  15453. acl_save_exec_prefix="$exec_prefix"
  15454. exec_prefix="$acl_final_exec_prefix"
  15455. eval x=\"$x\"
  15456. exec_prefix="$acl_save_exec_prefix"
  15457. prefix="$acl_save_prefix"
  15458. if test "X$x" = "X-L$additional_libdir"; then
  15459. haveit=yes
  15460. break
  15461. fi
  15462. done
  15463. if test -z "$haveit"; then
  15464. if test -d "$additional_libdir"; then
  15465. LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
  15466. fi
  15467. fi
  15468. fi
  15469. fi
  15470. ;;
  15471. -R*)
  15472. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15473. if test "$enable_rpath" != no; then
  15474. haveit=
  15475. for x in $rpathdirs; do
  15476. if test "X$x" = "X$dir"; then
  15477. haveit=yes
  15478. break
  15479. fi
  15480. done
  15481. if test -z "$haveit"; then
  15482. rpathdirs="$rpathdirs $dir"
  15483. fi
  15484. haveit=
  15485. for x in $ltrpathdirs; do
  15486. if test "X$x" = "X$dir"; then
  15487. haveit=yes
  15488. break
  15489. fi
  15490. done
  15491. if test -z "$haveit"; then
  15492. ltrpathdirs="$ltrpathdirs $dir"
  15493. fi
  15494. fi
  15495. ;;
  15496. -l*)
  15497. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15498. ;;
  15499. *.la)
  15500. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15501. ;;
  15502. *)
  15503. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
  15504. LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
  15505. ;;
  15506. esac
  15507. done
  15508. fi
  15509. else
  15510. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  15511. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
  15512. LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
  15513. else
  15514. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
  15515. LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
  15516. fi
  15517. fi
  15518. fi
  15519. fi
  15520. done
  15521. done
  15522. if test "X$rpathdirs" != "X"; then
  15523. if test -n "$hardcode_libdir_separator"; then
  15524. alldirs=
  15525. for found_dir in $rpathdirs; do
  15526. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  15527. done
  15528. acl_save_libdir="$libdir"
  15529. libdir="$alldirs"
  15530. eval flag=\"$hardcode_libdir_flag_spec\"
  15531. libdir="$acl_save_libdir"
  15532. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
  15533. else
  15534. for found_dir in $rpathdirs; do
  15535. acl_save_libdir="$libdir"
  15536. libdir="$found_dir"
  15537. eval flag=\"$hardcode_libdir_flag_spec\"
  15538. libdir="$acl_save_libdir"
  15539. LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
  15540. done
  15541. fi
  15542. fi
  15543. if test "X$ltrpathdirs" != "X"; then
  15544. for found_dir in $ltrpathdirs; do
  15545. LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
  15546. done
  15547. fi
  15548. ac_save_CPPFLAGS="$CPPFLAGS"
  15549. for element in $INCLZMA; do
  15550. haveit=
  15551. for x in $CPPFLAGS; do
  15552. acl_save_prefix="$prefix"
  15553. prefix="$acl_final_prefix"
  15554. acl_save_exec_prefix="$exec_prefix"
  15555. exec_prefix="$acl_final_exec_prefix"
  15556. eval x=\"$x\"
  15557. exec_prefix="$acl_save_exec_prefix"
  15558. prefix="$acl_save_prefix"
  15559. if test "X$x" = "X$element"; then
  15560. haveit=yes
  15561. break
  15562. fi
  15563. done
  15564. if test -z "$haveit"; then
  15565. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15566. fi
  15567. done
  15568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
  15569. $as_echo_n "checking for liblzma... " >&6; }
  15570. if ${ac_cv_liblzma+:} false; then :
  15571. $as_echo_n "(cached) " >&6
  15572. else
  15573. ac_save_LIBS="$LIBS"
  15574. LIBS="$LIBS $LIBLZMA"
  15575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15576. /* end confdefs.h. */
  15577. #include "lzma.h"
  15578. int
  15579. main ()
  15580. {
  15581. lzma_index_iter iter;
  15582. lzma_index_iter_init (&iter, 0);
  15583. lzma_mf_is_supported (LZMA_MF_HC3);
  15584. ;
  15585. return 0;
  15586. }
  15587. _ACEOF
  15588. if ac_fn_c_try_link "$LINENO"; then :
  15589. ac_cv_liblzma=yes
  15590. else
  15591. ac_cv_liblzma=no
  15592. fi
  15593. rm -f core conftest.err conftest.$ac_objext \
  15594. conftest$ac_exeext conftest.$ac_ext
  15595. LIBS="$ac_save_LIBS"
  15596. fi
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
  15598. $as_echo "$ac_cv_liblzma" >&6; }
  15599. if test "$ac_cv_liblzma" = yes; then
  15600. HAVE_LIBLZMA=yes
  15601. $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
  15603. $as_echo_n "checking how to link with liblzma... " >&6; }
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
  15605. $as_echo "$LIBLZMA" >&6; }
  15606. else
  15607. HAVE_LIBLZMA=no
  15608. CPPFLAGS="$ac_save_CPPFLAGS"
  15609. LIBLZMA=
  15610. LTLIBLZMA=
  15611. fi
  15612. if test "$HAVE_LIBLZMA" != yes; then
  15613. if test "$with_lzma" = yes; then
  15614. as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
  15615. fi
  15616. fi
  15617. fi
  15618. fi
  15619. LIBGUI="../libgui/src/libgui.a"
  15620. GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
  15621. WIN32LDAPP=
  15622. case "${host}" in
  15623. *-*-cygwin* | *-*-mingw* )
  15624. configdir="win"
  15625. ;;
  15626. *)
  15627. configdir="unix"
  15628. ;;
  15629. esac
  15630. GDBTKLIBS=
  15631. if test "${enable_gdbtk}" = "yes"; then
  15632. # Gdbtk must have an absolute path to srcdir in order to run
  15633. # properly when not installed.
  15634. here=`pwd`
  15635. cd ${srcdir}
  15636. GDBTK_SRC_DIR=`pwd`
  15637. cd $here
  15638. #
  15639. # Ok, lets find the tcl configuration
  15640. # First, look for one uninstalled.
  15641. # the alternative search directory is invoked by --with-tcl
  15642. #
  15643. if test x"${no_tcl}" = x ; then
  15644. # we reset no_tcl in case something fails here
  15645. no_tcl=true
  15646. # Check whether --with-tcl was given.
  15647. if test "${with_tcl+set}" = set; then :
  15648. withval=$with_tcl; with_tclconfig=${withval}
  15649. fi
  15650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
  15651. $as_echo_n "checking for Tcl configuration... " >&6; }
  15652. if ${ac_cv_c_tclconfig+:} false; then :
  15653. $as_echo_n "(cached) " >&6
  15654. else
  15655. # First check to see if --with-tcl was specified.
  15656. case "${host}" in
  15657. *-*-cygwin*) platDir="win" ;;
  15658. *) platDir="unix" ;;
  15659. esac
  15660. if test x"${with_tclconfig}" != x ; then
  15661. if test -f "${with_tclconfig}/tclConfig.sh" ; then
  15662. ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
  15663. else
  15664. as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
  15665. fi
  15666. fi
  15667. # then check for a private Tcl installation
  15668. if test x"${ac_cv_c_tclconfig}" = x ; then
  15669. for i in \
  15670. ../tcl \
  15671. `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  15672. `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
  15673. `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
  15674. ../../tcl \
  15675. `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  15676. `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
  15677. `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
  15678. ../../../tcl \
  15679. `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  15680. `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
  15681. `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
  15682. if test -f "$i/$platDir/tclConfig.sh" ; then
  15683. ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
  15684. break
  15685. fi
  15686. done
  15687. fi
  15688. # on Darwin, check in Framework installation locations
  15689. if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
  15690. for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
  15691. `ls -d /Library/Frameworks 2>/dev/null` \
  15692. `ls -d /Network/Library/Frameworks 2>/dev/null` \
  15693. `ls -d /System/Library/Frameworks 2>/dev/null` \
  15694. ; do
  15695. if test -f "$i/Tcl.framework/tclConfig.sh" ; then
  15696. ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
  15697. break
  15698. fi
  15699. done
  15700. fi
  15701. # check in a few common install locations
  15702. if test x"${ac_cv_c_tclconfig}" = x ; then
  15703. for i in `ls -d ${libdir} 2>/dev/null` \
  15704. `ls -d ${exec_prefix}/lib 2>/dev/null` \
  15705. `ls -d ${prefix}/lib 2>/dev/null` \
  15706. `ls -d /usr/local/lib 2>/dev/null` \
  15707. `ls -d /usr/contrib/lib 2>/dev/null` \
  15708. `ls -d /usr/lib 2>/dev/null` \
  15709. ; do
  15710. if test -f "$i/tclConfig.sh" ; then
  15711. ac_cv_c_tclconfig=`(cd $i; pwd)`
  15712. break
  15713. fi
  15714. done
  15715. fi
  15716. # check in a few other private locations
  15717. if test x"${ac_cv_c_tclconfig}" = x ; then
  15718. for i in \
  15719. ${srcdir}/../tcl \
  15720. `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  15721. `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
  15722. `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
  15723. if test -f "$i/$platDir/tclConfig.sh" ; then
  15724. ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
  15725. break
  15726. fi
  15727. done
  15728. fi
  15729. fi
  15730. if test x"${ac_cv_c_tclconfig}" = x ; then
  15731. TCL_BIN_DIR="# no Tcl configs found"
  15732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
  15733. $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
  15734. else
  15735. no_tcl=
  15736. TCL_BIN_DIR=${ac_cv_c_tclconfig}
  15737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
  15738. $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
  15739. fi
  15740. fi
  15741. # If $no_tk is nonempty, then we can't do Tk, and there is no
  15742. # point to doing Tcl.
  15743. #
  15744. # Ok, lets find the tk configuration
  15745. # First, look for one uninstalled.
  15746. # the alternative search directory is invoked by --with-tk
  15747. #
  15748. if test x"${no_tk}" = x ; then
  15749. # we reset no_tk in case something fails here
  15750. no_tk=true
  15751. # Check whether --with-tk was given.
  15752. if test "${with_tk+set}" = set; then :
  15753. withval=$with_tk; with_tkconfig=${withval}
  15754. fi
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
  15756. $as_echo_n "checking for Tk configuration... " >&6; }
  15757. if ${ac_cv_c_tkconfig+:} false; then :
  15758. $as_echo_n "(cached) " >&6
  15759. else
  15760. # First check to see if --with-tkconfig was specified.
  15761. if test x"${with_tkconfig}" != x ; then
  15762. if test -f "${with_tkconfig}/tkConfig.sh" ; then
  15763. ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
  15764. else
  15765. as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
  15766. fi
  15767. fi
  15768. # then check for a private Tk library
  15769. case "${host}" in
  15770. *-*-cygwin*) platDir="win" ;;
  15771. *) platDir="unix" ;;
  15772. esac
  15773. if test x"${ac_cv_c_tkconfig}" = x ; then
  15774. for i in \
  15775. ../tk \
  15776. `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
  15777. `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
  15778. `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
  15779. ../../tk \
  15780. `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
  15781. `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
  15782. `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
  15783. ../../../tk \
  15784. `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
  15785. `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
  15786. `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
  15787. if test -f "$i/$platDir/tkConfig.sh" ; then
  15788. ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
  15789. break
  15790. fi
  15791. done
  15792. fi
  15793. # on Darwin, check in Framework installation locations
  15794. if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
  15795. for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
  15796. `ls -d /Library/Frameworks 2>/dev/null` \
  15797. `ls -d /Network/Library/Frameworks 2>/dev/null` \
  15798. `ls -d /System/Library/Frameworks 2>/dev/null` \
  15799. ; do
  15800. if test -f "$i/Tk.framework/tkConfig.sh" ; then
  15801. ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
  15802. break
  15803. fi
  15804. done
  15805. fi
  15806. # check in a few common install locations
  15807. if test x"${ac_cv_c_tkconfig}" = x ; then
  15808. for i in `ls -d ${libdir} 2>/dev/null` \
  15809. `ls -d ${exec_prefix}/lib 2>/dev/null` \
  15810. `ls -d ${prefix}/lib 2>/dev/null` \
  15811. `ls -d /usr/local/lib 2>/dev/null` \
  15812. `ls -d /usr/contrib/lib 2>/dev/null` \
  15813. `ls -d /usr/lib 2>/dev/null` \
  15814. ; do
  15815. if test -f "$i/tkConfig.sh" ; then
  15816. ac_cv_c_tkconfig=`(cd $i; pwd)`
  15817. break
  15818. fi
  15819. done
  15820. fi
  15821. # check in a few other private locations
  15822. if test x"${ac_cv_c_tkconfig}" = x ; then
  15823. for i in \
  15824. ${srcdir}/../tk \
  15825. `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
  15826. `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
  15827. `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
  15828. if test -f "$i/$platDir/tkConfig.sh" ; then
  15829. ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
  15830. break
  15831. fi
  15832. done
  15833. fi
  15834. fi
  15835. if test x"${ac_cv_c_tkconfig}" = x ; then
  15836. TK_BIN_DIR="# no Tk configs found"
  15837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
  15838. $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
  15839. else
  15840. no_tk=
  15841. TK_BIN_DIR=${ac_cv_c_tkconfig}
  15842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
  15843. $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
  15844. fi
  15845. fi
  15846. if test -z "${no_tcl}" -a -z "${no_tk}"; then
  15847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
  15848. $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
  15849. if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
  15850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
  15851. $as_echo "loading" >&6; }
  15852. . ${TCL_BIN_DIR}/tclConfig.sh
  15853. else
  15854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
  15855. $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
  15856. fi
  15857. # eval is required to do the TCL_DBGX substitution
  15858. eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
  15859. eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
  15860. # If the TCL_BIN_DIR is the build directory (not the install directory),
  15861. # then set the common variable name to the value of the build variables.
  15862. # For example, the variable TCL_LIB_SPEC will be set to the value
  15863. # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
  15864. # instead of TCL_BUILD_LIB_SPEC since it will work with both an
  15865. # installed and uninstalled version of Tcl.
  15866. if test -f "${TCL_BIN_DIR}/Makefile" ; then
  15867. TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
  15868. TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
  15869. TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
  15870. elif test "`uname -s`" = "Darwin"; then
  15871. # If Tcl was built as a framework, attempt to use the libraries
  15872. # from the framework at the given location so that linking works
  15873. # against Tcl.framework installed in an arbitrary location.
  15874. case ${TCL_DEFS} in
  15875. *TCL_FRAMEWORK*)
  15876. if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
  15877. for i in "`cd ${TCL_BIN_DIR}; pwd`" \
  15878. "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
  15879. if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
  15880. TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
  15881. break
  15882. fi
  15883. done
  15884. fi
  15885. if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
  15886. TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
  15887. TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
  15888. fi
  15889. ;;
  15890. esac
  15891. fi
  15892. # eval is required to do the TCL_DBGX substitution
  15893. eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
  15894. eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
  15895. eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
  15896. eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
  15897. # Check for in-tree tcl
  15898. here=`pwd`
  15899. cd ${srcdir}/..
  15900. topdir=`pwd`
  15901. cd ${here}
  15902. intree="no"
  15903. if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
  15904. intree="yes"
  15905. fi
  15906. # Find Tcl private headers
  15907. if test x"${intree}" = xno; then
  15908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
  15909. $as_echo_n "checking for Tcl private headers... " >&6; }
  15910. private_dir=""
  15911. dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
  15912. if test -f ${dir}/tclInt.h ; then
  15913. private_dir=${dir}
  15914. fi
  15915. if test x"${private_dir}" = x; then
  15916. as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
  15917. else
  15918. TCL_PRIVATE_INCLUDE="-I${private_dir}"
  15919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
  15920. $as_echo "${private_dir}" >&6; }
  15921. fi
  15922. TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
  15923. TCL_LIBRARY="${TCL_LIB_SPEC}"
  15924. TCL_DEPS=""
  15925. else
  15926. # If building tcl in the same src tree, private headers
  15927. # are not needed, but we need to be sure to use the right
  15928. # headers library
  15929. TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
  15930. TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
  15931. TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
  15932. fi
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
  15934. $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
  15935. if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
  15936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
  15937. $as_echo "loading" >&6; }
  15938. . ${TK_BIN_DIR}/tkConfig.sh
  15939. else
  15940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
  15941. $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
  15942. fi
  15943. # eval is required to do the TK_DBGX substitution
  15944. eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
  15945. eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
  15946. # If the TK_BIN_DIR is the build directory (not the install directory),
  15947. # then set the common variable name to the value of the build variables.
  15948. # For example, the variable TK_LIB_SPEC will be set to the value
  15949. # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
  15950. # instead of TK_BUILD_LIB_SPEC since it will work with both an
  15951. # installed and uninstalled version of Tcl.
  15952. if test -f "${TK_BIN_DIR}/Makefile" ; then
  15953. TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
  15954. TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
  15955. TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
  15956. elif test "`uname -s`" = "Darwin"; then
  15957. # If Tk was built as a framework, attempt to use the libraries
  15958. # from the framework at the given location so that linking works
  15959. # against Tk.framework installed in an arbitrary location.
  15960. case ${TK_DEFS} in
  15961. *TK_FRAMEWORK*)
  15962. if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
  15963. for i in "`cd ${TK_BIN_DIR}; pwd`" \
  15964. "`cd ${TK_BIN_DIR}/../..; pwd`"; do
  15965. if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
  15966. TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
  15967. break
  15968. fi
  15969. done
  15970. fi
  15971. if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
  15972. TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
  15973. TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
  15974. fi
  15975. ;;
  15976. esac
  15977. fi
  15978. # eval is required to do the TK_DBGX substitution
  15979. eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
  15980. eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
  15981. eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
  15982. eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
  15983. # Check for in-tree Tk
  15984. intree="no"
  15985. if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
  15986. intree="yes"
  15987. fi
  15988. # Find Tk private headers
  15989. if test x"${intree}" = xno; then
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
  15991. $as_echo_n "checking for Tk private headers... " >&6; }
  15992. private_dir=""
  15993. dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
  15994. if test -f ${dir}/tkInt.h; then
  15995. private_dir=${dir}
  15996. fi
  15997. if test x"${private_dir}" = x; then
  15998. as_fn_error $? "could not find Tk private headers" "$LINENO" 5
  15999. else
  16000. TK_PRIVATE_INCLUDE="-I${private_dir}"
  16001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
  16002. $as_echo "${private_dir}" >&6; }
  16003. fi
  16004. TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
  16005. TK_LIBRARY=${TK_LIB_SPEC}
  16006. TK_DEPS=""
  16007. else
  16008. TK_INCLUDE="-I${TK_SRC_DIR}/generic"
  16009. TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
  16010. TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
  16011. fi
  16012. ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
  16013. # Include some libraries that Tcl and Tk want.
  16014. TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
  16015. # Yes, the ordering seems wrong here. But it isn't.
  16016. # TK_LIBS is the list of libraries that need to be linked
  16017. # after Tcl/Tk. Note that this isn't put into LIBS. If it
  16018. # were in LIBS then any link tests after this point would
  16019. # try to include things like `$(LIBGUI)', which wouldn't work.
  16020. GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
  16021. CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
  16022. CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
  16023. CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
  16024. CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
  16025. CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
  16026. CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
  16027. CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
  16028. if test x"$gdb_cv_os_cygwin" = xyes; then
  16029. WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
  16030. WIN32LDAPP="-Wl,--subsystem,console"
  16031. CONFIG_OBS="${CONFIG_OBS} gdbres.o"
  16032. fi
  16033. subdirs="$subdirs gdbtk"
  16034. fi
  16035. fi
  16036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16037. $as_echo_n "checking for X... " >&6; }
  16038. # Check whether --with-x was given.
  16039. if test "${with_x+set}" = set; then :
  16040. withval=$with_x;
  16041. fi
  16042. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16043. if test "x$with_x" = xno; then
  16044. # The user explicitly disabled X.
  16045. have_x=disabled
  16046. else
  16047. case $x_includes,$x_libraries in #(
  16048. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16049. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16050. $as_echo_n "(cached) " >&6
  16051. else
  16052. # One or both of the vars are not set, and there is no cached value.
  16053. ac_x_includes=no ac_x_libraries=no
  16054. rm -f -r conftest.dir
  16055. if mkdir conftest.dir; then
  16056. cd conftest.dir
  16057. cat >Imakefile <<'_ACEOF'
  16058. incroot:
  16059. @echo incroot='${INCROOT}'
  16060. usrlibdir:
  16061. @echo usrlibdir='${USRLIBDIR}'
  16062. libdir:
  16063. @echo libdir='${LIBDIR}'
  16064. _ACEOF
  16065. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16066. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16067. for ac_var in incroot usrlibdir libdir; do
  16068. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16069. done
  16070. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16071. for ac_extension in a so sl dylib la dll; do
  16072. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16073. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16074. ac_im_usrlibdir=$ac_im_libdir; break
  16075. fi
  16076. done
  16077. # Screen out bogus values from the imake configuration. They are
  16078. # bogus both because they are the default anyway, and because
  16079. # using them would break gcc on systems where it needs fixed includes.
  16080. case $ac_im_incroot in
  16081. /usr/include) ac_x_includes= ;;
  16082. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16083. esac
  16084. case $ac_im_usrlibdir in
  16085. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16086. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16087. esac
  16088. fi
  16089. cd ..
  16090. rm -f -r conftest.dir
  16091. fi
  16092. # Standard set of common directories for X headers.
  16093. # Check X11 before X11Rn because it is often a symlink to the current release.
  16094. ac_x_header_dirs='
  16095. /usr/X11/include
  16096. /usr/X11R7/include
  16097. /usr/X11R6/include
  16098. /usr/X11R5/include
  16099. /usr/X11R4/include
  16100. /usr/include/X11
  16101. /usr/include/X11R7
  16102. /usr/include/X11R6
  16103. /usr/include/X11R5
  16104. /usr/include/X11R4
  16105. /usr/local/X11/include
  16106. /usr/local/X11R7/include
  16107. /usr/local/X11R6/include
  16108. /usr/local/X11R5/include
  16109. /usr/local/X11R4/include
  16110. /usr/local/include/X11
  16111. /usr/local/include/X11R7
  16112. /usr/local/include/X11R6
  16113. /usr/local/include/X11R5
  16114. /usr/local/include/X11R4
  16115. /usr/X386/include
  16116. /usr/x386/include
  16117. /usr/XFree86/include/X11
  16118. /usr/include
  16119. /usr/local/include
  16120. /usr/unsupported/include
  16121. /usr/athena/include
  16122. /usr/local/x11r5/include
  16123. /usr/lpp/Xamples/include
  16124. /usr/openwin/include
  16125. /usr/openwin/share/include'
  16126. if test "$ac_x_includes" = no; then
  16127. # Guess where to find include files, by looking for Xlib.h.
  16128. # First, try using that file with no special directory specified.
  16129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16130. /* end confdefs.h. */
  16131. #include <X11/Xlib.h>
  16132. _ACEOF
  16133. if ac_fn_c_try_cpp "$LINENO"; then :
  16134. # We can compile using X headers with no special include directory.
  16135. ac_x_includes=
  16136. else
  16137. for ac_dir in $ac_x_header_dirs; do
  16138. if test -r "$ac_dir/X11/Xlib.h"; then
  16139. ac_x_includes=$ac_dir
  16140. break
  16141. fi
  16142. done
  16143. fi
  16144. rm -f conftest.err conftest.i conftest.$ac_ext
  16145. fi # $ac_x_includes = no
  16146. if test "$ac_x_libraries" = no; then
  16147. # Check for the libraries.
  16148. # See if we find them without any special options.
  16149. # Don't add to $LIBS permanently.
  16150. ac_save_LIBS=$LIBS
  16151. LIBS="-lX11 $LIBS"
  16152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16153. /* end confdefs.h. */
  16154. #include <X11/Xlib.h>
  16155. int
  16156. main ()
  16157. {
  16158. XrmInitialize ()
  16159. ;
  16160. return 0;
  16161. }
  16162. _ACEOF
  16163. if ac_fn_c_try_link "$LINENO"; then :
  16164. LIBS=$ac_save_LIBS
  16165. # We can link X programs with no special library path.
  16166. ac_x_libraries=
  16167. else
  16168. LIBS=$ac_save_LIBS
  16169. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16170. do
  16171. # Don't even attempt the hair of trying to link an X program!
  16172. for ac_extension in a so sl dylib la dll; do
  16173. if test -r "$ac_dir/libX11.$ac_extension"; then
  16174. ac_x_libraries=$ac_dir
  16175. break 2
  16176. fi
  16177. done
  16178. done
  16179. fi
  16180. rm -f core conftest.err conftest.$ac_objext \
  16181. conftest$ac_exeext conftest.$ac_ext
  16182. fi # $ac_x_libraries = no
  16183. case $ac_x_includes,$ac_x_libraries in #(
  16184. no,* | *,no | *\'*)
  16185. # Didn't find X, or a directory has "'" in its name.
  16186. ac_cv_have_x="have_x=no";; #(
  16187. *)
  16188. # Record where we found X for the cache.
  16189. ac_cv_have_x="have_x=yes\
  16190. ac_x_includes='$ac_x_includes'\
  16191. ac_x_libraries='$ac_x_libraries'"
  16192. esac
  16193. fi
  16194. ;; #(
  16195. *) have_x=yes;;
  16196. esac
  16197. eval "$ac_cv_have_x"
  16198. fi # $with_x != no
  16199. if test "$have_x" != yes; then
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16201. $as_echo "$have_x" >&6; }
  16202. no_x=yes
  16203. else
  16204. # If each of the values was on the command line, it overrides each guess.
  16205. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16206. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16207. # Update the cache value to reflect the command line values.
  16208. ac_cv_have_x="have_x=yes\
  16209. ac_x_includes='$x_includes'\
  16210. ac_x_libraries='$x_libraries'"
  16211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16212. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16213. fi
  16214. # Unlike the sim directory, whether a simulator is linked is controlled by
  16215. # presence of a gdb_sim definition in the target configure.tgt entry.
  16216. # This code just checks for a few cases where we'd like to ignore those
  16217. # definitions, even when they're present in the '.mt' file. These cases
  16218. # are when --disable-sim is specified, or if the simulator directory is
  16219. # not part of the source tree.
  16220. #
  16221. # Check whether --enable-sim was given.
  16222. if test "${enable_sim+set}" = set; then :
  16223. enableval=$enable_sim; echo "enable_sim = $enable_sim";
  16224. echo "enableval = ${enableval}";
  16225. case "${enableval}" in
  16226. yes) ignore_sim=false ;;
  16227. no) ignore_sim=true ;;
  16228. *) ignore_sim=false ;;
  16229. esac
  16230. else
  16231. ignore_sim=false
  16232. fi
  16233. if test ! -d "${srcdir}/../sim"; then
  16234. ignore_sim=true
  16235. fi
  16236. SIM=
  16237. SIM_OBS=
  16238. if test "${ignore_sim}" = "false"; then
  16239. if test x"${gdb_sim}" != x ; then
  16240. SIM="${gdb_sim}"
  16241. SIM_OBS="remote-sim.o"
  16242. $as_echo "#define WITH_SIM 1" >>confdefs.h
  16243. # Some tdep code should only be compiled in when the ppc sim is
  16244. # built. PR sim/13418.
  16245. case $target in
  16246. powerpc*-*-*)
  16247. $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
  16248. ;;
  16249. esac
  16250. fi
  16251. fi
  16252. # List of host floatformats.
  16253. cat >>confdefs.h <<_ACEOF
  16254. #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
  16255. _ACEOF
  16256. cat >>confdefs.h <<_ACEOF
  16257. #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
  16258. _ACEOF
  16259. cat >>confdefs.h <<_ACEOF
  16260. #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
  16261. _ACEOF
  16262. # target_subdir is used by the testsuite to find the target libraries.
  16263. target_subdir=
  16264. if test "${host}" != "${target}"; then
  16265. target_subdir="${target_alias}/"
  16266. fi
  16267. # Import nat definitions.
  16268. nat_makefile_frag=/dev/null
  16269. if test "${gdb_native}" = "yes"; then
  16270. . ${srcdir}/configure.nat
  16271. nativefile=$NAT_FILE
  16272. fi
  16273. if test x"${gdb_osabi}" != x ; then
  16274. cat >>confdefs.h <<_ACEOF
  16275. #define GDB_OSABI_DEFAULT $gdb_osabi
  16276. _ACEOF
  16277. fi
  16278. # Setup possible use of libbacktrace.
  16279. # Check whether --enable-libbacktrace was given.
  16280. if test "${enable_libbacktrace+set}" = set; then :
  16281. enableval=$enable_libbacktrace; case "${enableval}" in
  16282. yes) enable_libbacktrace=yes ;;
  16283. no) enable_libbacktrace=no ;;
  16284. *) as_fn_error $? "bad value ${enableval} for --enable-libbacktrace option" "$LINENO" 5 ;;
  16285. esac
  16286. else
  16287. enable_libbacktrace=yes
  16288. fi
  16289. if test "${enable_libbacktrace}" == "yes"; then
  16290. LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
  16291. LIBBACKTRACE_LIB=../libbacktrace/.libs/libbacktrace.a
  16292. $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
  16293. else
  16294. LIBBACKTRACE_INC=
  16295. LIBBACKTRACE_LIB=
  16296. fi
  16297. # Check for babeltrace and babeltrace-ctf
  16298. # Check whether --with-babeltrace was given.
  16299. if test "${with_babeltrace+set}" = set; then :
  16300. withval=$with_babeltrace;
  16301. else
  16302. with_babeltrace=auto
  16303. fi
  16304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
  16305. $as_echo_n "checking whether to use babeltrace... " >&6; }
  16306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
  16307. $as_echo "$with_babeltrace" >&6; }
  16308. if test "x$with_babeltrace" = "xno"; then
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
  16310. $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
  16311. else
  16312. # Append -Werror to CFLAGS so that configure can catch the warning
  16313. # "assignment from incompatible pointer type", which is related to
  16314. # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
  16315. # in GDB, while babeltrace 1.0.3 is broken.
  16316. # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
  16317. # safe to save and restore CFLAGS here.
  16318. saved_CFLAGS=$CFLAGS
  16319. CFLAGS="$CFLAGS -Werror"
  16320. use_additional=yes
  16321. acl_save_prefix="$prefix"
  16322. prefix="$acl_final_prefix"
  16323. acl_save_exec_prefix="$exec_prefix"
  16324. exec_prefix="$acl_final_exec_prefix"
  16325. eval additional_includedir=\"$includedir\"
  16326. eval additional_libdir=\"$libdir\"
  16327. exec_prefix="$acl_save_exec_prefix"
  16328. prefix="$acl_save_prefix"
  16329. # Check whether --with-libbabeltrace-prefix was given.
  16330. if test "${with_libbabeltrace_prefix+set}" = set; then :
  16331. withval=$with_libbabeltrace_prefix;
  16332. if test "X$withval" = "Xno"; then
  16333. use_additional=no
  16334. else
  16335. if test "X$withval" = "X"; then
  16336. acl_save_prefix="$prefix"
  16337. prefix="$acl_final_prefix"
  16338. acl_save_exec_prefix="$exec_prefix"
  16339. exec_prefix="$acl_final_exec_prefix"
  16340. eval additional_includedir=\"$includedir\"
  16341. eval additional_libdir=\"$libdir\"
  16342. exec_prefix="$acl_save_exec_prefix"
  16343. prefix="$acl_save_prefix"
  16344. else
  16345. additional_includedir="$withval/include"
  16346. additional_libdir="$withval/lib"
  16347. fi
  16348. fi
  16349. fi
  16350. # Check whether --with-libbabeltrace-type was given.
  16351. if test "${with_libbabeltrace_type+set}" = set; then :
  16352. withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval
  16353. else
  16354. with_libbabeltrace_type=auto
  16355. fi
  16356. lib_type=`eval echo \$with_libbabeltrace_type`
  16357. LIBBABELTRACE=
  16358. LTLIBBABELTRACE=
  16359. INCBABELTRACE=
  16360. rpathdirs=
  16361. ltrpathdirs=
  16362. names_already_handled=
  16363. names_next_round='babeltrace babeltrace-ctf'
  16364. while test -n "$names_next_round"; do
  16365. names_this_round="$names_next_round"
  16366. names_next_round=
  16367. for name in $names_this_round; do
  16368. already_handled=
  16369. for n in $names_already_handled; do
  16370. if test "$n" = "$name"; then
  16371. already_handled=yes
  16372. break
  16373. fi
  16374. done
  16375. if test -z "$already_handled"; then
  16376. names_already_handled="$names_already_handled $name"
  16377. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16378. eval value=\"\$HAVE_LIB$uppername\"
  16379. if test -n "$value"; then
  16380. if test "$value" = yes; then
  16381. eval value=\"\$LIB$uppername\"
  16382. test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
  16383. eval value=\"\$LTLIB$uppername\"
  16384. test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
  16385. else
  16386. :
  16387. fi
  16388. else
  16389. found_dir=
  16390. found_la=
  16391. found_so=
  16392. found_a=
  16393. if test $use_additional = yes; then
  16394. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  16395. found_dir="$additional_libdir"
  16396. found_so="$additional_libdir/lib$name.$shlibext"
  16397. if test -f "$additional_libdir/lib$name.la"; then
  16398. found_la="$additional_libdir/lib$name.la"
  16399. fi
  16400. elif test x$lib_type != xshared; then
  16401. if test -f "$additional_libdir/lib$name.$libext"; then
  16402. found_dir="$additional_libdir"
  16403. found_a="$additional_libdir/lib$name.$libext"
  16404. if test -f "$additional_libdir/lib$name.la"; then
  16405. found_la="$additional_libdir/lib$name.la"
  16406. fi
  16407. fi
  16408. fi
  16409. fi
  16410. if test "X$found_dir" = "X"; then
  16411. for x in $LDFLAGS $LTLIBBABELTRACE; do
  16412. acl_save_prefix="$prefix"
  16413. prefix="$acl_final_prefix"
  16414. acl_save_exec_prefix="$exec_prefix"
  16415. exec_prefix="$acl_final_exec_prefix"
  16416. eval x=\"$x\"
  16417. exec_prefix="$acl_save_exec_prefix"
  16418. prefix="$acl_save_prefix"
  16419. case "$x" in
  16420. -L*)
  16421. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16422. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  16423. found_dir="$dir"
  16424. found_so="$dir/lib$name.$shlibext"
  16425. if test -f "$dir/lib$name.la"; then
  16426. found_la="$dir/lib$name.la"
  16427. fi
  16428. elif test x$lib_type != xshared; then
  16429. if test -f "$dir/lib$name.$libext"; then
  16430. found_dir="$dir"
  16431. found_a="$dir/lib$name.$libext"
  16432. if test -f "$dir/lib$name.la"; then
  16433. found_la="$dir/lib$name.la"
  16434. fi
  16435. fi
  16436. fi
  16437. ;;
  16438. esac
  16439. if test "X$found_dir" != "X"; then
  16440. break
  16441. fi
  16442. done
  16443. fi
  16444. if test "X$found_dir" != "X"; then
  16445. LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
  16446. if test "X$found_so" != "X"; then
  16447. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  16448. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
  16449. else
  16450. haveit=
  16451. for x in $ltrpathdirs; do
  16452. if test "X$x" = "X$found_dir"; then
  16453. haveit=yes
  16454. break
  16455. fi
  16456. done
  16457. if test -z "$haveit"; then
  16458. ltrpathdirs="$ltrpathdirs $found_dir"
  16459. fi
  16460. if test "$hardcode_direct" = yes; then
  16461. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
  16462. else
  16463. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  16464. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
  16465. haveit=
  16466. for x in $rpathdirs; do
  16467. if test "X$x" = "X$found_dir"; then
  16468. haveit=yes
  16469. break
  16470. fi
  16471. done
  16472. if test -z "$haveit"; then
  16473. rpathdirs="$rpathdirs $found_dir"
  16474. fi
  16475. else
  16476. haveit=
  16477. for x in $LDFLAGS $LIBBABELTRACE; do
  16478. acl_save_prefix="$prefix"
  16479. prefix="$acl_final_prefix"
  16480. acl_save_exec_prefix="$exec_prefix"
  16481. exec_prefix="$acl_final_exec_prefix"
  16482. eval x=\"$x\"
  16483. exec_prefix="$acl_save_exec_prefix"
  16484. prefix="$acl_save_prefix"
  16485. if test "X$x" = "X-L$found_dir"; then
  16486. haveit=yes
  16487. break
  16488. fi
  16489. done
  16490. if test -z "$haveit"; then
  16491. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
  16492. fi
  16493. if test "$hardcode_minus_L" != no; then
  16494. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
  16495. else
  16496. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
  16497. fi
  16498. fi
  16499. fi
  16500. fi
  16501. else
  16502. if test "X$found_a" != "X"; then
  16503. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
  16504. else
  16505. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
  16506. fi
  16507. fi
  16508. additional_includedir=
  16509. case "$found_dir" in
  16510. */lib | */lib/)
  16511. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  16512. additional_includedir="$basedir/include"
  16513. ;;
  16514. esac
  16515. if test "X$additional_includedir" != "X"; then
  16516. if test "X$additional_includedir" != "X/usr/include"; then
  16517. haveit=
  16518. if test "X$additional_includedir" = "X/usr/local/include"; then
  16519. if test -n "$GCC"; then
  16520. case $host_os in
  16521. linux*) haveit=yes;;
  16522. esac
  16523. fi
  16524. fi
  16525. if test -z "$haveit"; then
  16526. for x in $CPPFLAGS $INCBABELTRACE; do
  16527. acl_save_prefix="$prefix"
  16528. prefix="$acl_final_prefix"
  16529. acl_save_exec_prefix="$exec_prefix"
  16530. exec_prefix="$acl_final_exec_prefix"
  16531. eval x=\"$x\"
  16532. exec_prefix="$acl_save_exec_prefix"
  16533. prefix="$acl_save_prefix"
  16534. if test "X$x" = "X-I$additional_includedir"; then
  16535. haveit=yes
  16536. break
  16537. fi
  16538. done
  16539. if test -z "$haveit"; then
  16540. if test -d "$additional_includedir"; then
  16541. INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
  16542. fi
  16543. fi
  16544. fi
  16545. fi
  16546. fi
  16547. if test -n "$found_la"; then
  16548. save_libdir="$libdir"
  16549. case "$found_la" in
  16550. */* | *\\*) . "$found_la" ;;
  16551. *) . "./$found_la" ;;
  16552. esac
  16553. libdir="$save_libdir"
  16554. for dep in $dependency_libs; do
  16555. case "$dep" in
  16556. -L*)
  16557. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  16558. if test "X$additional_libdir" != "X/usr/lib"; then
  16559. haveit=
  16560. if test "X$additional_libdir" = "X/usr/local/lib"; then
  16561. if test -n "$GCC"; then
  16562. case $host_os in
  16563. linux*) haveit=yes;;
  16564. esac
  16565. fi
  16566. fi
  16567. if test -z "$haveit"; then
  16568. haveit=
  16569. for x in $LDFLAGS $LIBBABELTRACE; do
  16570. acl_save_prefix="$prefix"
  16571. prefix="$acl_final_prefix"
  16572. acl_save_exec_prefix="$exec_prefix"
  16573. exec_prefix="$acl_final_exec_prefix"
  16574. eval x=\"$x\"
  16575. exec_prefix="$acl_save_exec_prefix"
  16576. prefix="$acl_save_prefix"
  16577. if test "X$x" = "X-L$additional_libdir"; then
  16578. haveit=yes
  16579. break
  16580. fi
  16581. done
  16582. if test -z "$haveit"; then
  16583. if test -d "$additional_libdir"; then
  16584. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
  16585. fi
  16586. fi
  16587. haveit=
  16588. for x in $LDFLAGS $LTLIBBABELTRACE; do
  16589. acl_save_prefix="$prefix"
  16590. prefix="$acl_final_prefix"
  16591. acl_save_exec_prefix="$exec_prefix"
  16592. exec_prefix="$acl_final_exec_prefix"
  16593. eval x=\"$x\"
  16594. exec_prefix="$acl_save_exec_prefix"
  16595. prefix="$acl_save_prefix"
  16596. if test "X$x" = "X-L$additional_libdir"; then
  16597. haveit=yes
  16598. break
  16599. fi
  16600. done
  16601. if test -z "$haveit"; then
  16602. if test -d "$additional_libdir"; then
  16603. LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
  16604. fi
  16605. fi
  16606. fi
  16607. fi
  16608. ;;
  16609. -R*)
  16610. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16611. if test "$enable_rpath" != no; then
  16612. haveit=
  16613. for x in $rpathdirs; do
  16614. if test "X$x" = "X$dir"; then
  16615. haveit=yes
  16616. break
  16617. fi
  16618. done
  16619. if test -z "$haveit"; then
  16620. rpathdirs="$rpathdirs $dir"
  16621. fi
  16622. haveit=
  16623. for x in $ltrpathdirs; do
  16624. if test "X$x" = "X$dir"; then
  16625. haveit=yes
  16626. break
  16627. fi
  16628. done
  16629. if test -z "$haveit"; then
  16630. ltrpathdirs="$ltrpathdirs $dir"
  16631. fi
  16632. fi
  16633. ;;
  16634. -l*)
  16635. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16636. ;;
  16637. *.la)
  16638. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16639. ;;
  16640. *)
  16641. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
  16642. LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
  16643. ;;
  16644. esac
  16645. done
  16646. fi
  16647. else
  16648. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  16649. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
  16650. LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
  16651. else
  16652. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
  16653. LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
  16654. fi
  16655. fi
  16656. fi
  16657. fi
  16658. done
  16659. done
  16660. if test "X$rpathdirs" != "X"; then
  16661. if test -n "$hardcode_libdir_separator"; then
  16662. alldirs=
  16663. for found_dir in $rpathdirs; do
  16664. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  16665. done
  16666. acl_save_libdir="$libdir"
  16667. libdir="$alldirs"
  16668. eval flag=\"$hardcode_libdir_flag_spec\"
  16669. libdir="$acl_save_libdir"
  16670. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
  16671. else
  16672. for found_dir in $rpathdirs; do
  16673. acl_save_libdir="$libdir"
  16674. libdir="$found_dir"
  16675. eval flag=\"$hardcode_libdir_flag_spec\"
  16676. libdir="$acl_save_libdir"
  16677. LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
  16678. done
  16679. fi
  16680. fi
  16681. if test "X$ltrpathdirs" != "X"; then
  16682. for found_dir in $ltrpathdirs; do
  16683. LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
  16684. done
  16685. fi
  16686. ac_save_CPPFLAGS="$CPPFLAGS"
  16687. for element in $INCBABELTRACE; do
  16688. haveit=
  16689. for x in $CPPFLAGS; do
  16690. acl_save_prefix="$prefix"
  16691. prefix="$acl_final_prefix"
  16692. acl_save_exec_prefix="$exec_prefix"
  16693. exec_prefix="$acl_final_exec_prefix"
  16694. eval x=\"$x\"
  16695. exec_prefix="$acl_save_exec_prefix"
  16696. prefix="$acl_save_prefix"
  16697. if test "X$x" = "X$element"; then
  16698. haveit=yes
  16699. break
  16700. fi
  16701. done
  16702. if test -z "$haveit"; then
  16703. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16704. fi
  16705. done
  16706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
  16707. $as_echo_n "checking for libbabeltrace... " >&6; }
  16708. if ${ac_cv_libbabeltrace+:} false; then :
  16709. $as_echo_n "(cached) " >&6
  16710. else
  16711. ac_save_LIBS="$LIBS"
  16712. LIBS="$LIBS $LIBBABELTRACE"
  16713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16714. /* end confdefs.h. */
  16715. #include <babeltrace/babeltrace.h>
  16716. #include <babeltrace/ctf/events.h>
  16717. #include <babeltrace/ctf/iterator.h>
  16718. int
  16719. main ()
  16720. {
  16721. struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
  16722. struct bt_ctf_event *event = NULL;
  16723. const struct bt_definition *scope;
  16724. pos->type = BT_SEEK_BEGIN;
  16725. bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
  16726. scope = bt_ctf_get_top_level_scope (event,
  16727. BT_STREAM_EVENT_HEADER);
  16728. bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
  16729. ;
  16730. return 0;
  16731. }
  16732. _ACEOF
  16733. if ac_fn_c_try_link "$LINENO"; then :
  16734. ac_cv_libbabeltrace=yes
  16735. else
  16736. ac_cv_libbabeltrace=no
  16737. fi
  16738. rm -f core conftest.err conftest.$ac_objext \
  16739. conftest$ac_exeext conftest.$ac_ext
  16740. LIBS="$ac_save_LIBS"
  16741. fi
  16742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
  16743. $as_echo "$ac_cv_libbabeltrace" >&6; }
  16744. if test "$ac_cv_libbabeltrace" = yes; then
  16745. HAVE_LIBBABELTRACE=yes
  16746. $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
  16748. $as_echo_n "checking how to link with libbabeltrace... " >&6; }
  16749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
  16750. $as_echo "$LIBBABELTRACE" >&6; }
  16751. else
  16752. HAVE_LIBBABELTRACE=no
  16753. CPPFLAGS="$ac_save_CPPFLAGS"
  16754. LIBBABELTRACE=
  16755. LTLIBBABELTRACE=
  16756. fi
  16757. CFLAGS=$saved_CFLAGS
  16758. if test "$HAVE_LIBBABELTRACE" != yes; then
  16759. if test "$with_babeltrace" = yes; then
  16760. as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
  16761. else
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
  16763. $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
  16764. fi
  16765. fi
  16766. fi
  16767. # Check for xxhash
  16768. # Check whether --with-xxhash was given.
  16769. if test "${with_xxhash+set}" = set; then :
  16770. withval=$with_xxhash;
  16771. else
  16772. with_xxhash=auto
  16773. fi
  16774. # Check whether --enable-libctf was given.
  16775. if test "${enable_libctf+set}" = set; then :
  16776. enableval=$enable_libctf;
  16777. case "$enableval" in
  16778. yes|no) ;;
  16779. *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
  16780. esac
  16781. else
  16782. enable_libctf=yes
  16783. fi
  16784. if test x${enable_static} = xno; then
  16785. LIBCTF="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
  16786. CTF_DEPS="../libctf/.libs/libctf.so"
  16787. else
  16788. LIBCTF="../libctf/.libs/libctf.a"
  16789. CTF_DEPS="$LIBCTF"
  16790. fi
  16791. if test "${enable_libctf}" = yes; then
  16792. $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
  16793. else
  16794. LIBCTF=
  16795. CTF_DEPS=
  16796. fi
  16797. # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
  16798. # empty version.
  16799. if test "x$with_xxhash" != "xno"; then
  16800. use_additional=yes
  16801. acl_save_prefix="$prefix"
  16802. prefix="$acl_final_prefix"
  16803. acl_save_exec_prefix="$exec_prefix"
  16804. exec_prefix="$acl_final_exec_prefix"
  16805. eval additional_includedir=\"$includedir\"
  16806. eval additional_libdir=\"$libdir\"
  16807. exec_prefix="$acl_save_exec_prefix"
  16808. prefix="$acl_save_prefix"
  16809. # Check whether --with-libxxhash-prefix was given.
  16810. if test "${with_libxxhash_prefix+set}" = set; then :
  16811. withval=$with_libxxhash_prefix;
  16812. if test "X$withval" = "Xno"; then
  16813. use_additional=no
  16814. else
  16815. if test "X$withval" = "X"; then
  16816. acl_save_prefix="$prefix"
  16817. prefix="$acl_final_prefix"
  16818. acl_save_exec_prefix="$exec_prefix"
  16819. exec_prefix="$acl_final_exec_prefix"
  16820. eval additional_includedir=\"$includedir\"
  16821. eval additional_libdir=\"$libdir\"
  16822. exec_prefix="$acl_save_exec_prefix"
  16823. prefix="$acl_save_prefix"
  16824. else
  16825. additional_includedir="$withval/include"
  16826. additional_libdir="$withval/lib"
  16827. fi
  16828. fi
  16829. fi
  16830. # Check whether --with-libxxhash-type was given.
  16831. if test "${with_libxxhash_type+set}" = set; then :
  16832. withval=$with_libxxhash_type; with_libxxhash_type=$withval
  16833. else
  16834. with_libxxhash_type=auto
  16835. fi
  16836. lib_type=`eval echo \$with_libxxhash_type`
  16837. LIBXXHASH=
  16838. LTLIBXXHASH=
  16839. INCXXHASH=
  16840. rpathdirs=
  16841. ltrpathdirs=
  16842. names_already_handled=
  16843. names_next_round='xxhash '
  16844. while test -n "$names_next_round"; do
  16845. names_this_round="$names_next_round"
  16846. names_next_round=
  16847. for name in $names_this_round; do
  16848. already_handled=
  16849. for n in $names_already_handled; do
  16850. if test "$n" = "$name"; then
  16851. already_handled=yes
  16852. break
  16853. fi
  16854. done
  16855. if test -z "$already_handled"; then
  16856. names_already_handled="$names_already_handled $name"
  16857. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16858. eval value=\"\$HAVE_LIB$uppername\"
  16859. if test -n "$value"; then
  16860. if test "$value" = yes; then
  16861. eval value=\"\$LIB$uppername\"
  16862. test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
  16863. eval value=\"\$LTLIB$uppername\"
  16864. test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
  16865. else
  16866. :
  16867. fi
  16868. else
  16869. found_dir=
  16870. found_la=
  16871. found_so=
  16872. found_a=
  16873. if test $use_additional = yes; then
  16874. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  16875. found_dir="$additional_libdir"
  16876. found_so="$additional_libdir/lib$name.$shlibext"
  16877. if test -f "$additional_libdir/lib$name.la"; then
  16878. found_la="$additional_libdir/lib$name.la"
  16879. fi
  16880. elif test x$lib_type != xshared; then
  16881. if test -f "$additional_libdir/lib$name.$libext"; then
  16882. found_dir="$additional_libdir"
  16883. found_a="$additional_libdir/lib$name.$libext"
  16884. if test -f "$additional_libdir/lib$name.la"; then
  16885. found_la="$additional_libdir/lib$name.la"
  16886. fi
  16887. fi
  16888. fi
  16889. fi
  16890. if test "X$found_dir" = "X"; then
  16891. for x in $LDFLAGS $LTLIBXXHASH; do
  16892. acl_save_prefix="$prefix"
  16893. prefix="$acl_final_prefix"
  16894. acl_save_exec_prefix="$exec_prefix"
  16895. exec_prefix="$acl_final_exec_prefix"
  16896. eval x=\"$x\"
  16897. exec_prefix="$acl_save_exec_prefix"
  16898. prefix="$acl_save_prefix"
  16899. case "$x" in
  16900. -L*)
  16901. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16902. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  16903. found_dir="$dir"
  16904. found_so="$dir/lib$name.$shlibext"
  16905. if test -f "$dir/lib$name.la"; then
  16906. found_la="$dir/lib$name.la"
  16907. fi
  16908. elif test x$lib_type != xshared; then
  16909. if test -f "$dir/lib$name.$libext"; then
  16910. found_dir="$dir"
  16911. found_a="$dir/lib$name.$libext"
  16912. if test -f "$dir/lib$name.la"; then
  16913. found_la="$dir/lib$name.la"
  16914. fi
  16915. fi
  16916. fi
  16917. ;;
  16918. esac
  16919. if test "X$found_dir" != "X"; then
  16920. break
  16921. fi
  16922. done
  16923. fi
  16924. if test "X$found_dir" != "X"; then
  16925. LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
  16926. if test "X$found_so" != "X"; then
  16927. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  16928. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
  16929. else
  16930. haveit=
  16931. for x in $ltrpathdirs; do
  16932. if test "X$x" = "X$found_dir"; then
  16933. haveit=yes
  16934. break
  16935. fi
  16936. done
  16937. if test -z "$haveit"; then
  16938. ltrpathdirs="$ltrpathdirs $found_dir"
  16939. fi
  16940. if test "$hardcode_direct" = yes; then
  16941. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
  16942. else
  16943. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  16944. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
  16945. haveit=
  16946. for x in $rpathdirs; do
  16947. if test "X$x" = "X$found_dir"; then
  16948. haveit=yes
  16949. break
  16950. fi
  16951. done
  16952. if test -z "$haveit"; then
  16953. rpathdirs="$rpathdirs $found_dir"
  16954. fi
  16955. else
  16956. haveit=
  16957. for x in $LDFLAGS $LIBXXHASH; do
  16958. acl_save_prefix="$prefix"
  16959. prefix="$acl_final_prefix"
  16960. acl_save_exec_prefix="$exec_prefix"
  16961. exec_prefix="$acl_final_exec_prefix"
  16962. eval x=\"$x\"
  16963. exec_prefix="$acl_save_exec_prefix"
  16964. prefix="$acl_save_prefix"
  16965. if test "X$x" = "X-L$found_dir"; then
  16966. haveit=yes
  16967. break
  16968. fi
  16969. done
  16970. if test -z "$haveit"; then
  16971. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
  16972. fi
  16973. if test "$hardcode_minus_L" != no; then
  16974. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
  16975. else
  16976. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
  16977. fi
  16978. fi
  16979. fi
  16980. fi
  16981. else
  16982. if test "X$found_a" != "X"; then
  16983. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
  16984. else
  16985. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
  16986. fi
  16987. fi
  16988. additional_includedir=
  16989. case "$found_dir" in
  16990. */lib | */lib/)
  16991. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  16992. additional_includedir="$basedir/include"
  16993. ;;
  16994. esac
  16995. if test "X$additional_includedir" != "X"; then
  16996. if test "X$additional_includedir" != "X/usr/include"; then
  16997. haveit=
  16998. if test "X$additional_includedir" = "X/usr/local/include"; then
  16999. if test -n "$GCC"; then
  17000. case $host_os in
  17001. linux*) haveit=yes;;
  17002. esac
  17003. fi
  17004. fi
  17005. if test -z "$haveit"; then
  17006. for x in $CPPFLAGS $INCXXHASH; do
  17007. acl_save_prefix="$prefix"
  17008. prefix="$acl_final_prefix"
  17009. acl_save_exec_prefix="$exec_prefix"
  17010. exec_prefix="$acl_final_exec_prefix"
  17011. eval x=\"$x\"
  17012. exec_prefix="$acl_save_exec_prefix"
  17013. prefix="$acl_save_prefix"
  17014. if test "X$x" = "X-I$additional_includedir"; then
  17015. haveit=yes
  17016. break
  17017. fi
  17018. done
  17019. if test -z "$haveit"; then
  17020. if test -d "$additional_includedir"; then
  17021. INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
  17022. fi
  17023. fi
  17024. fi
  17025. fi
  17026. fi
  17027. if test -n "$found_la"; then
  17028. save_libdir="$libdir"
  17029. case "$found_la" in
  17030. */* | *\\*) . "$found_la" ;;
  17031. *) . "./$found_la" ;;
  17032. esac
  17033. libdir="$save_libdir"
  17034. for dep in $dependency_libs; do
  17035. case "$dep" in
  17036. -L*)
  17037. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17038. if test "X$additional_libdir" != "X/usr/lib"; then
  17039. haveit=
  17040. if test "X$additional_libdir" = "X/usr/local/lib"; then
  17041. if test -n "$GCC"; then
  17042. case $host_os in
  17043. linux*) haveit=yes;;
  17044. esac
  17045. fi
  17046. fi
  17047. if test -z "$haveit"; then
  17048. haveit=
  17049. for x in $LDFLAGS $LIBXXHASH; do
  17050. acl_save_prefix="$prefix"
  17051. prefix="$acl_final_prefix"
  17052. acl_save_exec_prefix="$exec_prefix"
  17053. exec_prefix="$acl_final_exec_prefix"
  17054. eval x=\"$x\"
  17055. exec_prefix="$acl_save_exec_prefix"
  17056. prefix="$acl_save_prefix"
  17057. if test "X$x" = "X-L$additional_libdir"; then
  17058. haveit=yes
  17059. break
  17060. fi
  17061. done
  17062. if test -z "$haveit"; then
  17063. if test -d "$additional_libdir"; then
  17064. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
  17065. fi
  17066. fi
  17067. haveit=
  17068. for x in $LDFLAGS $LTLIBXXHASH; do
  17069. acl_save_prefix="$prefix"
  17070. prefix="$acl_final_prefix"
  17071. acl_save_exec_prefix="$exec_prefix"
  17072. exec_prefix="$acl_final_exec_prefix"
  17073. eval x=\"$x\"
  17074. exec_prefix="$acl_save_exec_prefix"
  17075. prefix="$acl_save_prefix"
  17076. if test "X$x" = "X-L$additional_libdir"; then
  17077. haveit=yes
  17078. break
  17079. fi
  17080. done
  17081. if test -z "$haveit"; then
  17082. if test -d "$additional_libdir"; then
  17083. LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
  17084. fi
  17085. fi
  17086. fi
  17087. fi
  17088. ;;
  17089. -R*)
  17090. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17091. if test "$enable_rpath" != no; then
  17092. haveit=
  17093. for x in $rpathdirs; do
  17094. if test "X$x" = "X$dir"; then
  17095. haveit=yes
  17096. break
  17097. fi
  17098. done
  17099. if test -z "$haveit"; then
  17100. rpathdirs="$rpathdirs $dir"
  17101. fi
  17102. haveit=
  17103. for x in $ltrpathdirs; do
  17104. if test "X$x" = "X$dir"; then
  17105. haveit=yes
  17106. break
  17107. fi
  17108. done
  17109. if test -z "$haveit"; then
  17110. ltrpathdirs="$ltrpathdirs $dir"
  17111. fi
  17112. fi
  17113. ;;
  17114. -l*)
  17115. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17116. ;;
  17117. *.la)
  17118. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17119. ;;
  17120. *)
  17121. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
  17122. LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
  17123. ;;
  17124. esac
  17125. done
  17126. fi
  17127. else
  17128. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  17129. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
  17130. LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
  17131. else
  17132. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
  17133. LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
  17134. fi
  17135. fi
  17136. fi
  17137. fi
  17138. done
  17139. done
  17140. if test "X$rpathdirs" != "X"; then
  17141. if test -n "$hardcode_libdir_separator"; then
  17142. alldirs=
  17143. for found_dir in $rpathdirs; do
  17144. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  17145. done
  17146. acl_save_libdir="$libdir"
  17147. libdir="$alldirs"
  17148. eval flag=\"$hardcode_libdir_flag_spec\"
  17149. libdir="$acl_save_libdir"
  17150. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
  17151. else
  17152. for found_dir in $rpathdirs; do
  17153. acl_save_libdir="$libdir"
  17154. libdir="$found_dir"
  17155. eval flag=\"$hardcode_libdir_flag_spec\"
  17156. libdir="$acl_save_libdir"
  17157. LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
  17158. done
  17159. fi
  17160. fi
  17161. if test "X$ltrpathdirs" != "X"; then
  17162. for found_dir in $ltrpathdirs; do
  17163. LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
  17164. done
  17165. fi
  17166. ac_save_CPPFLAGS="$CPPFLAGS"
  17167. for element in $INCXXHASH; do
  17168. haveit=
  17169. for x in $CPPFLAGS; do
  17170. acl_save_prefix="$prefix"
  17171. prefix="$acl_final_prefix"
  17172. acl_save_exec_prefix="$exec_prefix"
  17173. exec_prefix="$acl_final_exec_prefix"
  17174. eval x=\"$x\"
  17175. exec_prefix="$acl_save_exec_prefix"
  17176. prefix="$acl_save_prefix"
  17177. if test "X$x" = "X$element"; then
  17178. haveit=yes
  17179. break
  17180. fi
  17181. done
  17182. if test -z "$haveit"; then
  17183. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17184. fi
  17185. done
  17186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
  17187. $as_echo_n "checking for libxxhash... " >&6; }
  17188. if ${ac_cv_libxxhash+:} false; then :
  17189. $as_echo_n "(cached) " >&6
  17190. else
  17191. ac_save_LIBS="$LIBS"
  17192. LIBS="$LIBS $LIBXXHASH"
  17193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17194. /* end confdefs.h. */
  17195. #include <xxhash.h>
  17196. int
  17197. main ()
  17198. {
  17199. XXH32("foo", 3, 0);
  17200. ;
  17201. return 0;
  17202. }
  17203. _ACEOF
  17204. if ac_fn_c_try_link "$LINENO"; then :
  17205. ac_cv_libxxhash=yes
  17206. else
  17207. ac_cv_libxxhash=no
  17208. fi
  17209. rm -f core conftest.err conftest.$ac_objext \
  17210. conftest$ac_exeext conftest.$ac_ext
  17211. LIBS="$ac_save_LIBS"
  17212. fi
  17213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
  17214. $as_echo "$ac_cv_libxxhash" >&6; }
  17215. if test "$ac_cv_libxxhash" = yes; then
  17216. HAVE_LIBXXHASH=yes
  17217. $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
  17218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
  17219. $as_echo_n "checking how to link with libxxhash... " >&6; }
  17220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
  17221. $as_echo "$LIBXXHASH" >&6; }
  17222. else
  17223. HAVE_LIBXXHASH=no
  17224. CPPFLAGS="$ac_save_CPPFLAGS"
  17225. LIBXXHASH=
  17226. LTLIBXXHASH=
  17227. fi
  17228. if test "$HAVE_LIBXXHASH" != yes; then
  17229. if test "$with_xxhash" = yes; then
  17230. as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
  17231. fi
  17232. fi
  17233. if test "x$with_xxhash" = "xauto"; then
  17234. with_xxhash="$HAVE_LIBXXHASH"
  17235. fi
  17236. fi
  17237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
  17238. $as_echo_n "checking whether to use xxhash... " >&6; }
  17239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
  17240. $as_echo "$with_xxhash" >&6; }
  17241. NM_H=
  17242. rm -f nm.h
  17243. if test "${nativefile}" != ""; then
  17244. case "${nativefile}" in
  17245. nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
  17246. * ) GDB_NM_FILE="${nativefile}"
  17247. esac
  17248. ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
  17249. cat >>confdefs.h <<_ACEOF
  17250. #define GDB_NM_FILE "${GDB_NM_FILE}"
  17251. _ACEOF
  17252. NM_H=nm.h
  17253. fi
  17254. for ac_prog in xsltproc
  17255. do
  17256. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17257. set dummy $ac_prog; ac_word=$2
  17258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17259. $as_echo_n "checking for $ac_word... " >&6; }
  17260. if ${ac_cv_path_XSLTPROC+:} false; then :
  17261. $as_echo_n "(cached) " >&6
  17262. else
  17263. case $XSLTPROC in
  17264. [\\/]* | ?:[\\/]*)
  17265. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  17266. ;;
  17267. *)
  17268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17269. for as_dir in $PATH
  17270. do
  17271. IFS=$as_save_IFS
  17272. test -z "$as_dir" && as_dir=.
  17273. for ac_exec_ext in '' $ac_executable_extensions; do
  17274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17275. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  17276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17277. break 2
  17278. fi
  17279. done
  17280. done
  17281. IFS=$as_save_IFS
  17282. ;;
  17283. esac
  17284. fi
  17285. XSLTPROC=$ac_cv_path_XSLTPROC
  17286. if test -n "$XSLTPROC"; then
  17287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  17288. $as_echo "$XSLTPROC" >&6; }
  17289. else
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17291. $as_echo "no" >&6; }
  17292. fi
  17293. test -n "$XSLTPROC" && break
  17294. done
  17295. test -n "$XSLTPROC" || XSLTPROC="missing"
  17296. if test "x$USE_MAINTAINER_MODE" = xyes; then
  17297. if test "${XSLTPROC}" = missing; then
  17298. as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
  17299. fi
  17300. fi
  17301. $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
  17302. # Check whether we will enable the inclusion of unit tests when
  17303. # compiling GDB.
  17304. #
  17305. # The default value of this option changes depending whether we're on
  17306. # development mode (in which case it's "true") or not (in which case
  17307. # it's "false"). The $development variable is set by the GDB_AC_COMMON
  17308. # macro, which must therefore be used before GDB_AC_SELFTEST.
  17309. if test "x$development" != xtrue && test "x$development" != xfalse; then :
  17310. as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
  17311. fi
  17312. # Check whether --enable-unit-tests was given.
  17313. if test "${enable_unit_tests+set}" = set; then :
  17314. enableval=$enable_unit_tests; case "${enableval}" in
  17315. yes) enable_unittests=true ;;
  17316. no) enable_unittests=false ;;
  17317. *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
  17318. esac
  17319. else
  17320. enable_unittests=$development
  17321. fi
  17322. if $enable_unittests; then
  17323. $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
  17324. CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
  17325. CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
  17326. fi
  17327. gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
  17328. GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
  17329. if test "x$GDB_TRANSFORM_NAME" = x; then
  17330. GDB_TRANSFORM_NAME=gdb
  17331. fi
  17332. gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
  17333. GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
  17334. if test "x$GCORE_TRANSFORM_NAME" = x; then
  17335. GCORE_TRANSFORM_NAME=gcore
  17336. fi
  17337. ac_config_files="$ac_config_files gcore"
  17338. ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
  17339. cat >confcache <<\_ACEOF
  17340. # This file is a shell script that caches the results of configure
  17341. # tests run on this system so they can be shared between configure
  17342. # scripts and configure runs, see configure's option --config-cache.
  17343. # It is not useful on other systems. If it contains results you don't
  17344. # want to keep, you may remove or edit it.
  17345. #
  17346. # config.status only pays attention to the cache file if you give it
  17347. # the --recheck option to rerun configure.
  17348. #
  17349. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17350. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17351. # following values.
  17352. _ACEOF
  17353. # The following way of writing the cache mishandles newlines in values,
  17354. # but we know of no workaround that is simple, portable, and efficient.
  17355. # So, we kill variables containing newlines.
  17356. # Ultrix sh set writes to stderr and can't be redirected directly,
  17357. # and sets the high bit in the cache file unless we assign to the vars.
  17358. (
  17359. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17360. eval ac_val=\$$ac_var
  17361. case $ac_val in #(
  17362. *${as_nl}*)
  17363. case $ac_var in #(
  17364. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17365. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17366. esac
  17367. case $ac_var in #(
  17368. _ | IFS | as_nl) ;; #(
  17369. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17370. *) { eval $ac_var=; unset $ac_var;} ;;
  17371. esac ;;
  17372. esac
  17373. done
  17374. (set) 2>&1 |
  17375. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17376. *${as_nl}ac_space=\ *)
  17377. # `set' does not quote correctly, so add quotes: double-quote
  17378. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17379. sed -n \
  17380. "s/'/'\\\\''/g;
  17381. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17382. ;; #(
  17383. *)
  17384. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17385. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17386. ;;
  17387. esac |
  17388. sort
  17389. ) |
  17390. sed '
  17391. /^ac_cv_env_/b end
  17392. t clear
  17393. :clear
  17394. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17395. t end
  17396. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17397. :end' >>confcache
  17398. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17399. if test -w "$cache_file"; then
  17400. if test "x$cache_file" != "x/dev/null"; then
  17401. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17402. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17403. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17404. cat confcache >"$cache_file"
  17405. else
  17406. case $cache_file in #(
  17407. */* | ?:*)
  17408. mv -f confcache "$cache_file"$$ &&
  17409. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17410. *)
  17411. mv -f confcache "$cache_file" ;;
  17412. esac
  17413. fi
  17414. fi
  17415. else
  17416. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17417. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17418. fi
  17419. fi
  17420. rm -f confcache
  17421. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17422. # Let make expand exec_prefix.
  17423. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17424. DEFS=-DHAVE_CONFIG_H
  17425. ac_libobjs=
  17426. ac_ltlibobjs=
  17427. U=
  17428. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17429. # 1. Remove the extension, and $U if already installed.
  17430. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17431. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17432. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17433. # will be set to the directory where LIBOBJS objects are built.
  17434. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17435. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17436. done
  17437. LIBOBJS=$ac_libobjs
  17438. LTLIBOBJS=$ac_ltlibobjs
  17439. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17440. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17442. fi
  17443. if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
  17444. as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
  17445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17446. fi
  17447. if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
  17448. as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
  17449. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17450. fi
  17451. if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
  17452. as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
  17453. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17454. fi
  17455. : "${CONFIG_STATUS=./config.status}"
  17456. ac_write_fail=0
  17457. ac_clean_files_save=$ac_clean_files
  17458. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17459. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17460. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17461. as_write_fail=0
  17462. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17463. #! $SHELL
  17464. # Generated by $as_me.
  17465. # Run this file to recreate the current configuration.
  17466. # Compiler output produced by configure, useful for debugging
  17467. # configure, is in config.log if it exists.
  17468. debug=false
  17469. ac_cs_recheck=false
  17470. ac_cs_silent=false
  17471. SHELL=\${CONFIG_SHELL-$SHELL}
  17472. export SHELL
  17473. _ASEOF
  17474. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17475. ## -------------------- ##
  17476. ## M4sh Initialization. ##
  17477. ## -------------------- ##
  17478. # Be more Bourne compatible
  17479. DUALCASE=1; export DUALCASE # for MKS sh
  17480. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17481. emulate sh
  17482. NULLCMD=:
  17483. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17484. # is contrary to our usage. Disable this feature.
  17485. alias -g '${1+"$@"}'='"$@"'
  17486. setopt NO_GLOB_SUBST
  17487. else
  17488. case `(set -o) 2>/dev/null` in #(
  17489. *posix*) :
  17490. set -o posix ;; #(
  17491. *) :
  17492. ;;
  17493. esac
  17494. fi
  17495. as_nl='
  17496. '
  17497. export as_nl
  17498. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17499. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17500. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17501. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17502. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17503. # but without wasting forks for bash or zsh.
  17504. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17505. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17506. as_echo='print -r --'
  17507. as_echo_n='print -rn --'
  17508. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17509. as_echo='printf %s\n'
  17510. as_echo_n='printf %s'
  17511. else
  17512. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17513. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17514. as_echo_n='/usr/ucb/echo -n'
  17515. else
  17516. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17517. as_echo_n_body='eval
  17518. arg=$1;
  17519. case $arg in #(
  17520. *"$as_nl"*)
  17521. expr "X$arg" : "X\\(.*\\)$as_nl";
  17522. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17523. esac;
  17524. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17525. '
  17526. export as_echo_n_body
  17527. as_echo_n='sh -c $as_echo_n_body as_echo'
  17528. fi
  17529. export as_echo_body
  17530. as_echo='sh -c $as_echo_body as_echo'
  17531. fi
  17532. # The user is always right.
  17533. if test "${PATH_SEPARATOR+set}" != set; then
  17534. PATH_SEPARATOR=:
  17535. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17536. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17537. PATH_SEPARATOR=';'
  17538. }
  17539. fi
  17540. # IFS
  17541. # We need space, tab and new line, in precisely that order. Quoting is
  17542. # there to prevent editors from complaining about space-tab.
  17543. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17544. # splitting by setting IFS to empty value.)
  17545. IFS=" "" $as_nl"
  17546. # Find who we are. Look in the path if we contain no directory separator.
  17547. as_myself=
  17548. case $0 in #((
  17549. *[\\/]* ) as_myself=$0 ;;
  17550. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17551. for as_dir in $PATH
  17552. do
  17553. IFS=$as_save_IFS
  17554. test -z "$as_dir" && as_dir=.
  17555. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17556. done
  17557. IFS=$as_save_IFS
  17558. ;;
  17559. esac
  17560. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17561. # in which case we are not to be found in the path.
  17562. if test "x$as_myself" = x; then
  17563. as_myself=$0
  17564. fi
  17565. if test ! -f "$as_myself"; then
  17566. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17567. exit 1
  17568. fi
  17569. # Unset variables that we do not need and which cause bugs (e.g. in
  17570. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17571. # suppresses any "Segmentation fault" message there. '((' could
  17572. # trigger a bug in pdksh 5.2.14.
  17573. for as_var in BASH_ENV ENV MAIL MAILPATH
  17574. do eval test x\${$as_var+set} = xset \
  17575. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17576. done
  17577. PS1='$ '
  17578. PS2='> '
  17579. PS4='+ '
  17580. # NLS nuisances.
  17581. LC_ALL=C
  17582. export LC_ALL
  17583. LANGUAGE=C
  17584. export LANGUAGE
  17585. # CDPATH.
  17586. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17587. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17588. # ----------------------------------------
  17589. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17590. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17591. # script with STATUS, using 1 if that was 0.
  17592. as_fn_error ()
  17593. {
  17594. as_status=$1; test $as_status -eq 0 && as_status=1
  17595. if test "$4"; then
  17596. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17597. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17598. fi
  17599. $as_echo "$as_me: error: $2" >&2
  17600. as_fn_exit $as_status
  17601. } # as_fn_error
  17602. # as_fn_set_status STATUS
  17603. # -----------------------
  17604. # Set $? to STATUS, without forking.
  17605. as_fn_set_status ()
  17606. {
  17607. return $1
  17608. } # as_fn_set_status
  17609. # as_fn_exit STATUS
  17610. # -----------------
  17611. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17612. as_fn_exit ()
  17613. {
  17614. set +e
  17615. as_fn_set_status $1
  17616. exit $1
  17617. } # as_fn_exit
  17618. # as_fn_unset VAR
  17619. # ---------------
  17620. # Portably unset VAR.
  17621. as_fn_unset ()
  17622. {
  17623. { eval $1=; unset $1;}
  17624. }
  17625. as_unset=as_fn_unset
  17626. # as_fn_append VAR VALUE
  17627. # ----------------------
  17628. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17629. # advantage of any shell optimizations that allow amortized linear growth over
  17630. # repeated appends, instead of the typical quadratic growth present in naive
  17631. # implementations.
  17632. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17633. eval 'as_fn_append ()
  17634. {
  17635. eval $1+=\$2
  17636. }'
  17637. else
  17638. as_fn_append ()
  17639. {
  17640. eval $1=\$$1\$2
  17641. }
  17642. fi # as_fn_append
  17643. # as_fn_arith ARG...
  17644. # ------------------
  17645. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17646. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17647. # must be portable across $(()) and expr.
  17648. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17649. eval 'as_fn_arith ()
  17650. {
  17651. as_val=$(( $* ))
  17652. }'
  17653. else
  17654. as_fn_arith ()
  17655. {
  17656. as_val=`expr "$@" || test $? -eq 1`
  17657. }
  17658. fi # as_fn_arith
  17659. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17660. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17661. as_expr=expr
  17662. else
  17663. as_expr=false
  17664. fi
  17665. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17666. as_basename=basename
  17667. else
  17668. as_basename=false
  17669. fi
  17670. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17671. as_dirname=dirname
  17672. else
  17673. as_dirname=false
  17674. fi
  17675. as_me=`$as_basename -- "$0" ||
  17676. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17677. X"$0" : 'X\(//\)$' \| \
  17678. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17679. $as_echo X/"$0" |
  17680. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17681. s//\1/
  17682. q
  17683. }
  17684. /^X\/\(\/\/\)$/{
  17685. s//\1/
  17686. q
  17687. }
  17688. /^X\/\(\/\).*/{
  17689. s//\1/
  17690. q
  17691. }
  17692. s/.*/./; q'`
  17693. # Avoid depending upon Character Ranges.
  17694. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17695. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17696. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17697. as_cr_digits='0123456789'
  17698. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17699. ECHO_C= ECHO_N= ECHO_T=
  17700. case `echo -n x` in #(((((
  17701. -n*)
  17702. case `echo 'xy\c'` in
  17703. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17704. xy) ECHO_C='\c';;
  17705. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17706. ECHO_T=' ';;
  17707. esac;;
  17708. *)
  17709. ECHO_N='-n';;
  17710. esac
  17711. rm -f conf$$ conf$$.exe conf$$.file
  17712. if test -d conf$$.dir; then
  17713. rm -f conf$$.dir/conf$$.file
  17714. else
  17715. rm -f conf$$.dir
  17716. mkdir conf$$.dir 2>/dev/null
  17717. fi
  17718. if (echo >conf$$.file) 2>/dev/null; then
  17719. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17720. as_ln_s='ln -s'
  17721. # ... but there are two gotchas:
  17722. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17723. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17724. # In both cases, we have to default to `cp -pR'.
  17725. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17726. as_ln_s='cp -pR'
  17727. elif ln conf$$.file conf$$ 2>/dev/null; then
  17728. as_ln_s=ln
  17729. else
  17730. as_ln_s='cp -pR'
  17731. fi
  17732. else
  17733. as_ln_s='cp -pR'
  17734. fi
  17735. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17736. rmdir conf$$.dir 2>/dev/null
  17737. # as_fn_mkdir_p
  17738. # -------------
  17739. # Create "$as_dir" as a directory, including parents if necessary.
  17740. as_fn_mkdir_p ()
  17741. {
  17742. case $as_dir in #(
  17743. -*) as_dir=./$as_dir;;
  17744. esac
  17745. test -d "$as_dir" || eval $as_mkdir_p || {
  17746. as_dirs=
  17747. while :; do
  17748. case $as_dir in #(
  17749. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17750. *) as_qdir=$as_dir;;
  17751. esac
  17752. as_dirs="'$as_qdir' $as_dirs"
  17753. as_dir=`$as_dirname -- "$as_dir" ||
  17754. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17755. X"$as_dir" : 'X\(//\)[^/]' \| \
  17756. X"$as_dir" : 'X\(//\)$' \| \
  17757. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17758. $as_echo X"$as_dir" |
  17759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17760. s//\1/
  17761. q
  17762. }
  17763. /^X\(\/\/\)[^/].*/{
  17764. s//\1/
  17765. q
  17766. }
  17767. /^X\(\/\/\)$/{
  17768. s//\1/
  17769. q
  17770. }
  17771. /^X\(\/\).*/{
  17772. s//\1/
  17773. q
  17774. }
  17775. s/.*/./; q'`
  17776. test -d "$as_dir" && break
  17777. done
  17778. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17779. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17780. } # as_fn_mkdir_p
  17781. if mkdir -p . 2>/dev/null; then
  17782. as_mkdir_p='mkdir -p "$as_dir"'
  17783. else
  17784. test -d ./-p && rmdir ./-p
  17785. as_mkdir_p=false
  17786. fi
  17787. # as_fn_executable_p FILE
  17788. # -----------------------
  17789. # Test if FILE is an executable regular file.
  17790. as_fn_executable_p ()
  17791. {
  17792. test -f "$1" && test -x "$1"
  17793. } # as_fn_executable_p
  17794. as_test_x='test -x'
  17795. as_executable_p=as_fn_executable_p
  17796. # Sed expression to map a string onto a valid CPP name.
  17797. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17798. # Sed expression to map a string onto a valid variable name.
  17799. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17800. exec 6>&1
  17801. ## ----------------------------------- ##
  17802. ## Main body of $CONFIG_STATUS script. ##
  17803. ## ----------------------------------- ##
  17804. _ASEOF
  17805. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17806. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17807. # Save the log message, to keep $0 and so on meaningful, and to
  17808. # report actual input values of CONFIG_FILES etc. instead of their
  17809. # values after options handling.
  17810. ac_log="
  17811. This file was extended by $as_me, which was
  17812. generated by GNU Autoconf 2.69. Invocation command line was
  17813. CONFIG_FILES = $CONFIG_FILES
  17814. CONFIG_HEADERS = $CONFIG_HEADERS
  17815. CONFIG_LINKS = $CONFIG_LINKS
  17816. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17817. $ $0 $@
  17818. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17819. "
  17820. _ACEOF
  17821. case $ac_config_files in *"
  17822. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17823. esac
  17824. case $ac_config_headers in *"
  17825. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17826. esac
  17827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17828. # Files that config.status was made for.
  17829. config_files="$ac_config_files"
  17830. config_headers="$ac_config_headers"
  17831. config_links="$ac_config_links"
  17832. config_commands="$ac_config_commands"
  17833. _ACEOF
  17834. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17835. ac_cs_usage="\
  17836. \`$as_me' instantiates files and other configuration actions
  17837. from templates according to the current configuration. Unless the files
  17838. and actions are specified as TAGs, all are instantiated by default.
  17839. Usage: $0 [OPTION]... [TAG]...
  17840. -h, --help print this help, then exit
  17841. -V, --version print version number and configuration settings, then exit
  17842. --config print configuration, then exit
  17843. -q, --quiet, --silent
  17844. do not print progress messages
  17845. -d, --debug don't remove temporary files
  17846. --recheck update $as_me by reconfiguring in the same conditions
  17847. --file=FILE[:TEMPLATE]
  17848. instantiate the configuration file FILE
  17849. --header=FILE[:TEMPLATE]
  17850. instantiate the configuration header FILE
  17851. Configuration files:
  17852. $config_files
  17853. Configuration headers:
  17854. $config_headers
  17855. Configuration links:
  17856. $config_links
  17857. Configuration commands:
  17858. $config_commands
  17859. Report bugs to the package provider."
  17860. _ACEOF
  17861. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17862. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17863. ac_cs_version="\\
  17864. config.status
  17865. configured by $0, generated by GNU Autoconf 2.69,
  17866. with options \\"\$ac_cs_config\\"
  17867. Copyright (C) 2012 Free Software Foundation, Inc.
  17868. This config.status script is free software; the Free Software Foundation
  17869. gives unlimited permission to copy, distribute and modify it."
  17870. ac_pwd='$ac_pwd'
  17871. srcdir='$srcdir'
  17872. INSTALL='$INSTALL'
  17873. AWK='$AWK'
  17874. test -n "\$AWK" || AWK=awk
  17875. _ACEOF
  17876. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17877. # The default lists apply if the user does not specify any file.
  17878. ac_need_defaults=:
  17879. while test $# != 0
  17880. do
  17881. case $1 in
  17882. --*=?*)
  17883. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17884. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17885. ac_shift=:
  17886. ;;
  17887. --*=)
  17888. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17889. ac_optarg=
  17890. ac_shift=:
  17891. ;;
  17892. *)
  17893. ac_option=$1
  17894. ac_optarg=$2
  17895. ac_shift=shift
  17896. ;;
  17897. esac
  17898. case $ac_option in
  17899. # Handling of the options.
  17900. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17901. ac_cs_recheck=: ;;
  17902. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17903. $as_echo "$ac_cs_version"; exit ;;
  17904. --config | --confi | --conf | --con | --co | --c )
  17905. $as_echo "$ac_cs_config"; exit ;;
  17906. --debug | --debu | --deb | --de | --d | -d )
  17907. debug=: ;;
  17908. --file | --fil | --fi | --f )
  17909. $ac_shift
  17910. case $ac_optarg in
  17911. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17912. '') as_fn_error $? "missing file argument" ;;
  17913. esac
  17914. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17915. ac_need_defaults=false;;
  17916. --header | --heade | --head | --hea )
  17917. $ac_shift
  17918. case $ac_optarg in
  17919. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17920. esac
  17921. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  17922. ac_need_defaults=false;;
  17923. --he | --h)
  17924. # Conflict between --help and --header
  17925. as_fn_error $? "ambiguous option: \`$1'
  17926. Try \`$0 --help' for more information.";;
  17927. --help | --hel | -h )
  17928. $as_echo "$ac_cs_usage"; exit ;;
  17929. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17930. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17931. ac_cs_silent=: ;;
  17932. # This is an error.
  17933. -*) as_fn_error $? "unrecognized option: \`$1'
  17934. Try \`$0 --help' for more information." ;;
  17935. *) as_fn_append ac_config_targets " $1"
  17936. ac_need_defaults=false ;;
  17937. esac
  17938. shift
  17939. done
  17940. ac_configure_extra_args=
  17941. if $ac_cs_silent; then
  17942. exec 6>/dev/null
  17943. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17944. fi
  17945. _ACEOF
  17946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17947. if \$ac_cs_recheck; then
  17948. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17949. shift
  17950. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  17951. CONFIG_SHELL='$SHELL'
  17952. export CONFIG_SHELL
  17953. exec "\$@"
  17954. fi
  17955. _ACEOF
  17956. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17957. exec 5>>config.log
  17958. {
  17959. echo
  17960. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17961. ## Running $as_me. ##
  17962. _ASBOX
  17963. $as_echo "$ac_log"
  17964. } >&5
  17965. _ACEOF
  17966. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17967. #
  17968. # INIT-COMMANDS
  17969. #
  17970. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  17971. GDB_NM_FILE=$GDB_NM_FILE
  17972. _ACEOF
  17973. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17974. # Handling of arguments.
  17975. for ac_config_target in $ac_config_targets
  17976. do
  17977. case $ac_config_target in
  17978. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  17979. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  17980. "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
  17981. "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
  17982. "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
  17983. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17984. "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
  17985. "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
  17986. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  17987. "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
  17988. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  17989. esac
  17990. done
  17991. # If the user did not use the arguments to specify the items to instantiate,
  17992. # then the envvar interface is used. Set only those that are not.
  17993. # We use the long form for the default assignment because of an extremely
  17994. # bizarre bug on SunOS 4.1.3.
  17995. if $ac_need_defaults; then
  17996. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17997. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17998. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  17999. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18000. fi
  18001. # Have a temporary directory for convenience. Make it in the build tree
  18002. # simply because there is no reason against having it here, and in addition,
  18003. # creating and moving files from /tmp can sometimes cause problems.
  18004. # Hook for its removal unless debugging.
  18005. # Note that there is a small window in which the directory will not be cleaned:
  18006. # after its creation but before its name has been assigned to `$tmp'.
  18007. $debug ||
  18008. {
  18009. tmp= ac_tmp=
  18010. trap 'exit_status=$?
  18011. : "${ac_tmp:=$tmp}"
  18012. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18013. ' 0
  18014. trap 'as_fn_exit 1' 1 2 13 15
  18015. }
  18016. # Create a (secure) tmp directory for tmp files.
  18017. {
  18018. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18019. test -d "$tmp"
  18020. } ||
  18021. {
  18022. tmp=./conf$$-$RANDOM
  18023. (umask 077 && mkdir "$tmp")
  18024. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18025. ac_tmp=$tmp
  18026. # Set up the scripts for CONFIG_FILES section.
  18027. # No need to generate them if there are no CONFIG_FILES.
  18028. # This happens for instance with `./config.status config.h'.
  18029. if test -n "$CONFIG_FILES"; then
  18030. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  18031. ac_cs_awk_getline=:
  18032. ac_cs_awk_pipe_init=
  18033. ac_cs_awk_read_file='
  18034. while ((getline aline < (F[key])) > 0)
  18035. print(aline)
  18036. close(F[key])'
  18037. ac_cs_awk_pipe_fini=
  18038. else
  18039. ac_cs_awk_getline=false
  18040. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  18041. ac_cs_awk_read_file='
  18042. print "|#_!!_#|"
  18043. print "cat " F[key] " &&"
  18044. '$ac_cs_awk_pipe_init
  18045. # The final `:' finishes the AND list.
  18046. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  18047. fi
  18048. ac_cr=`echo X | tr X '\015'`
  18049. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18050. # But we know of no other shell where ac_cr would be empty at this
  18051. # point, so we can use a bashism as a fallback.
  18052. if test "x$ac_cr" = x; then
  18053. eval ac_cr=\$\'\\r\'
  18054. fi
  18055. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18056. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18057. ac_cs_awk_cr='\\r'
  18058. else
  18059. ac_cs_awk_cr=$ac_cr
  18060. fi
  18061. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18062. _ACEOF
  18063. # Create commands to substitute file output variables.
  18064. {
  18065. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  18066. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  18067. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  18068. echo "_ACAWK" &&
  18069. echo "_ACEOF"
  18070. } >conf$$files.sh &&
  18071. . ./conf$$files.sh ||
  18072. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18073. rm -f conf$$files.sh
  18074. {
  18075. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18076. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18077. echo "_ACEOF"
  18078. } >conf$$subs.sh ||
  18079. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18080. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18081. ac_delim='%!_!# '
  18082. for ac_last_try in false false false false false :; do
  18083. . ./conf$$subs.sh ||
  18084. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18085. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18086. if test $ac_delim_n = $ac_delim_num; then
  18087. break
  18088. elif $ac_last_try; then
  18089. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18090. else
  18091. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18092. fi
  18093. done
  18094. rm -f conf$$subs.sh
  18095. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18096. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18097. _ACEOF
  18098. sed -n '
  18099. h
  18100. s/^/S["/; s/!.*/"]=/
  18101. p
  18102. g
  18103. s/^[^!]*!//
  18104. :repl
  18105. t repl
  18106. s/'"$ac_delim"'$//
  18107. t delim
  18108. :nl
  18109. h
  18110. s/\(.\{148\}\)..*/\1/
  18111. t more1
  18112. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18113. p
  18114. n
  18115. b repl
  18116. :more1
  18117. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18118. p
  18119. g
  18120. s/.\{148\}//
  18121. t nl
  18122. :delim
  18123. h
  18124. s/\(.\{148\}\)..*/\1/
  18125. t more2
  18126. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18127. p
  18128. b
  18129. :more2
  18130. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18131. p
  18132. g
  18133. s/.\{148\}//
  18134. t delim
  18135. ' <conf$$subs.awk | sed '
  18136. /^[^""]/{
  18137. N
  18138. s/\n//
  18139. }
  18140. ' >>$CONFIG_STATUS || ac_write_fail=1
  18141. rm -f conf$$subs.awk
  18142. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18143. _ACAWK
  18144. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18145. for (key in S) S_is_set[key] = 1
  18146. FS = ""
  18147. \$ac_cs_awk_pipe_init
  18148. }
  18149. {
  18150. line = $ 0
  18151. nfields = split(line, field, "@")
  18152. substed = 0
  18153. len = length(field[1])
  18154. for (i = 2; i < nfields; i++) {
  18155. key = field[i]
  18156. keylen = length(key)
  18157. if (S_is_set[key]) {
  18158. value = S[key]
  18159. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18160. len += length(value) + length(field[++i])
  18161. substed = 1
  18162. } else
  18163. len += 1 + keylen
  18164. }
  18165. if (nfields == 3 && !substed) {
  18166. key = field[2]
  18167. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  18168. \$ac_cs_awk_read_file
  18169. next
  18170. }
  18171. }
  18172. print line
  18173. }
  18174. \$ac_cs_awk_pipe_fini
  18175. _ACAWK
  18176. _ACEOF
  18177. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18178. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18179. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18180. else
  18181. cat
  18182. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18183. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18184. _ACEOF
  18185. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18186. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18187. # trailing colons and then remove the whole line if VPATH becomes empty
  18188. # (actually we leave an empty line to preserve line numbers).
  18189. if test "x$srcdir" = x.; then
  18190. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18191. h
  18192. s///
  18193. s/^/:/
  18194. s/[ ]*$/:/
  18195. s/:\$(srcdir):/:/g
  18196. s/:\${srcdir}:/:/g
  18197. s/:@srcdir@:/:/g
  18198. s/^:*//
  18199. s/:*$//
  18200. x
  18201. s/\(=[ ]*\).*/\1/
  18202. G
  18203. s/\n//
  18204. s/^[^=]*=[ ]*$//
  18205. }'
  18206. fi
  18207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18208. fi # test -n "$CONFIG_FILES"
  18209. # Set up the scripts for CONFIG_HEADERS section.
  18210. # No need to generate them if there are no CONFIG_HEADERS.
  18211. # This happens for instance with `./config.status Makefile'.
  18212. if test -n "$CONFIG_HEADERS"; then
  18213. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18214. BEGIN {
  18215. _ACEOF
  18216. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18217. # here-document in config.status, that substitutes the proper values into
  18218. # config.h.in to produce config.h.
  18219. # Create a delimiter string that does not exist in confdefs.h, to ease
  18220. # handling of long lines.
  18221. ac_delim='%!_!# '
  18222. for ac_last_try in false false :; do
  18223. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18224. if test -z "$ac_tt"; then
  18225. break
  18226. elif $ac_last_try; then
  18227. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18228. else
  18229. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18230. fi
  18231. done
  18232. # For the awk script, D is an array of macro values keyed by name,
  18233. # likewise P contains macro parameters if any. Preserve backslash
  18234. # newline sequences.
  18235. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18236. sed -n '
  18237. s/.\{148\}/&'"$ac_delim"'/g
  18238. t rset
  18239. :rset
  18240. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18241. t def
  18242. d
  18243. :def
  18244. s/\\$//
  18245. t bsnl
  18246. s/["\\]/\\&/g
  18247. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18248. D["\1"]=" \3"/p
  18249. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18250. d
  18251. :bsnl
  18252. s/["\\]/\\&/g
  18253. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18254. D["\1"]=" \3\\\\\\n"\\/p
  18255. t cont
  18256. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18257. t cont
  18258. d
  18259. :cont
  18260. n
  18261. s/.\{148\}/&'"$ac_delim"'/g
  18262. t clear
  18263. :clear
  18264. s/\\$//
  18265. t bsnlc
  18266. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18267. d
  18268. :bsnlc
  18269. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18270. b cont
  18271. ' <confdefs.h | sed '
  18272. s/'"$ac_delim"'/"\\\
  18273. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18274. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18275. for (key in D) D_is_set[key] = 1
  18276. FS = ""
  18277. }
  18278. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18279. line = \$ 0
  18280. split(line, arg, " ")
  18281. if (arg[1] == "#") {
  18282. defundef = arg[2]
  18283. mac1 = arg[3]
  18284. } else {
  18285. defundef = substr(arg[1], 2)
  18286. mac1 = arg[2]
  18287. }
  18288. split(mac1, mac2, "(") #)
  18289. macro = mac2[1]
  18290. prefix = substr(line, 1, index(line, defundef) - 1)
  18291. if (D_is_set[macro]) {
  18292. # Preserve the white space surrounding the "#".
  18293. print prefix "define", macro P[macro] D[macro]
  18294. next
  18295. } else {
  18296. # Replace #undef with comments. This is necessary, for example,
  18297. # in the case of _POSIX_SOURCE, which is predefined and required
  18298. # on some systems where configure will not decide to define it.
  18299. if (defundef == "undef") {
  18300. print "/*", prefix defundef, macro, "*/"
  18301. next
  18302. }
  18303. }
  18304. }
  18305. { print }
  18306. _ACAWK
  18307. _ACEOF
  18308. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18309. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18310. fi # test -n "$CONFIG_HEADERS"
  18311. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  18312. shift
  18313. for ac_tag
  18314. do
  18315. case $ac_tag in
  18316. :[FHLC]) ac_mode=$ac_tag; continue;;
  18317. esac
  18318. case $ac_mode$ac_tag in
  18319. :[FHL]*:*);;
  18320. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18321. :[FH]-) ac_tag=-:-;;
  18322. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18323. esac
  18324. ac_save_IFS=$IFS
  18325. IFS=:
  18326. set x $ac_tag
  18327. IFS=$ac_save_IFS
  18328. shift
  18329. ac_file=$1
  18330. shift
  18331. case $ac_mode in
  18332. :L) ac_source=$1;;
  18333. :[FH])
  18334. ac_file_inputs=
  18335. for ac_f
  18336. do
  18337. case $ac_f in
  18338. -) ac_f="$ac_tmp/stdin";;
  18339. *) # Look for the file first in the build tree, then in the source tree
  18340. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18341. # because $ac_f cannot contain `:'.
  18342. test -f "$ac_f" ||
  18343. case $ac_f in
  18344. [\\/$]*) false;;
  18345. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18346. esac ||
  18347. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18348. esac
  18349. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18350. as_fn_append ac_file_inputs " '$ac_f'"
  18351. done
  18352. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18353. # use $as_me), people would be surprised to read:
  18354. # /* config.h. Generated by config.status. */
  18355. configure_input='Generated from '`
  18356. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18357. `' by configure.'
  18358. if test x"$ac_file" != x-; then
  18359. configure_input="$ac_file. $configure_input"
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18361. $as_echo "$as_me: creating $ac_file" >&6;}
  18362. fi
  18363. # Neutralize special characters interpreted by sed in replacement strings.
  18364. case $configure_input in #(
  18365. *\&* | *\|* | *\\* )
  18366. ac_sed_conf_input=`$as_echo "$configure_input" |
  18367. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18368. *) ac_sed_conf_input=$configure_input;;
  18369. esac
  18370. case $ac_tag in
  18371. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18372. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18373. esac
  18374. ;;
  18375. esac
  18376. ac_dir=`$as_dirname -- "$ac_file" ||
  18377. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18378. X"$ac_file" : 'X\(//\)[^/]' \| \
  18379. X"$ac_file" : 'X\(//\)$' \| \
  18380. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18381. $as_echo X"$ac_file" |
  18382. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18383. s//\1/
  18384. q
  18385. }
  18386. /^X\(\/\/\)[^/].*/{
  18387. s//\1/
  18388. q
  18389. }
  18390. /^X\(\/\/\)$/{
  18391. s//\1/
  18392. q
  18393. }
  18394. /^X\(\/\).*/{
  18395. s//\1/
  18396. q
  18397. }
  18398. s/.*/./; q'`
  18399. as_dir="$ac_dir"; as_fn_mkdir_p
  18400. ac_builddir=.
  18401. case "$ac_dir" in
  18402. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18403. *)
  18404. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18405. # A ".." for each directory in $ac_dir_suffix.
  18406. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18407. case $ac_top_builddir_sub in
  18408. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18409. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18410. esac ;;
  18411. esac
  18412. ac_abs_top_builddir=$ac_pwd
  18413. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18414. # for backward compatibility:
  18415. ac_top_builddir=$ac_top_build_prefix
  18416. case $srcdir in
  18417. .) # We are building in place.
  18418. ac_srcdir=.
  18419. ac_top_srcdir=$ac_top_builddir_sub
  18420. ac_abs_top_srcdir=$ac_pwd ;;
  18421. [\\/]* | ?:[\\/]* ) # Absolute name.
  18422. ac_srcdir=$srcdir$ac_dir_suffix;
  18423. ac_top_srcdir=$srcdir
  18424. ac_abs_top_srcdir=$srcdir ;;
  18425. *) # Relative name.
  18426. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18427. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18428. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18429. esac
  18430. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18431. case $ac_mode in
  18432. :F)
  18433. #
  18434. # CONFIG_FILE
  18435. #
  18436. case $INSTALL in
  18437. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18438. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18439. esac
  18440. _ACEOF
  18441. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18442. # If the template does not know about datarootdir, expand it.
  18443. # FIXME: This hack should be removed a few years after 2.60.
  18444. ac_datarootdir_hack=; ac_datarootdir_seen=
  18445. ac_sed_dataroot='
  18446. /datarootdir/ {
  18447. p
  18448. q
  18449. }
  18450. /@datadir@/p
  18451. /@docdir@/p
  18452. /@infodir@/p
  18453. /@localedir@/p
  18454. /@mandir@/p'
  18455. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18456. *datarootdir*) ac_datarootdir_seen=yes;;
  18457. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18459. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18460. _ACEOF
  18461. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18462. ac_datarootdir_hack='
  18463. s&@datadir@&$datadir&g
  18464. s&@docdir@&$docdir&g
  18465. s&@infodir@&$infodir&g
  18466. s&@localedir@&$localedir&g
  18467. s&@mandir@&$mandir&g
  18468. s&\\\${datarootdir}&$datarootdir&g' ;;
  18469. esac
  18470. _ACEOF
  18471. # Neutralize VPATH when `$srcdir' = `.'.
  18472. # Shell code in configure.ac might set extrasub.
  18473. # FIXME: do we really want to maintain this feature?
  18474. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18475. ac_sed_extra="$ac_vpsub
  18476. $extrasub
  18477. _ACEOF
  18478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18479. :t
  18480. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18481. s|@configure_input@|$ac_sed_conf_input|;t t
  18482. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18483. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18484. s&@srcdir@&$ac_srcdir&;t t
  18485. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18486. s&@top_srcdir@&$ac_top_srcdir&;t t
  18487. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18488. s&@builddir@&$ac_builddir&;t t
  18489. s&@abs_builddir@&$ac_abs_builddir&;t t
  18490. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18491. s&@INSTALL@&$ac_INSTALL&;t t
  18492. $ac_datarootdir_hack
  18493. "
  18494. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  18495. if $ac_cs_awk_getline; then
  18496. $AWK -f "$ac_tmp/subs.awk"
  18497. else
  18498. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  18499. fi \
  18500. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18501. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18502. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18503. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18504. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18506. which seems to be undefined. Please make sure it is defined" >&5
  18507. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18508. which seems to be undefined. Please make sure it is defined" >&2;}
  18509. rm -f "$ac_tmp/stdin"
  18510. case $ac_file in
  18511. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18512. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18513. esac \
  18514. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18515. ;;
  18516. :H)
  18517. #
  18518. # CONFIG_HEADER
  18519. #
  18520. if test x"$ac_file" != x-; then
  18521. {
  18522. $as_echo "/* $configure_input */" \
  18523. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  18524. } >"$ac_tmp/config.h" \
  18525. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18526. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  18527. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18528. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  18529. else
  18530. rm -f "$ac_file"
  18531. mv "$ac_tmp/config.h" "$ac_file" \
  18532. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18533. fi
  18534. else
  18535. $as_echo "/* $configure_input */" \
  18536. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  18537. || as_fn_error $? "could not create -" "$LINENO" 5
  18538. fi
  18539. ;;
  18540. :L)
  18541. #
  18542. # CONFIG_LINK
  18543. #
  18544. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  18545. :
  18546. else
  18547. # Prefer the file from the source tree if names are identical.
  18548. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  18549. ac_source=$srcdir/$ac_source
  18550. fi
  18551. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  18552. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  18553. if test ! -r "$ac_source"; then
  18554. as_fn_error $? "$ac_source: file not found" "$LINENO" 5
  18555. fi
  18556. rm -f "$ac_file"
  18557. # Try a relative symlink, then a hard link, then a copy.
  18558. case $ac_source in
  18559. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  18560. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  18561. esac
  18562. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  18563. ln "$ac_source" "$ac_file" 2>/dev/null ||
  18564. cp -p "$ac_source" "$ac_file" ||
  18565. as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  18566. fi
  18567. ;;
  18568. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  18569. $as_echo "$as_me: executing $ac_file commands" >&6;}
  18570. ;;
  18571. esac
  18572. case $ac_file$ac_mode in
  18573. "config.h":H) echo > stamp-h ;;
  18574. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  18575. "nm.h":L) echo > stamp-nmh ;;
  18576. "gcore":F) chmod +x gcore ;;
  18577. esac
  18578. done # for ac_tag
  18579. as_fn_exit 0
  18580. _ACEOF
  18581. ac_clean_files=$ac_clean_files_save
  18582. test $ac_write_fail = 0 ||
  18583. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  18584. # configure is writing to config.log, and then calls config.status.
  18585. # config.status does its own redirection, appending to config.log.
  18586. # Unfortunately, on DOS this fails, as config.log is still kept open
  18587. # by configure, so config.status won't be able to write to it; its
  18588. # output is simply discarded. So we exec the FD to /dev/null,
  18589. # effectively closing config.log, so it can be properly (re)opened and
  18590. # appended to by config.status. When coming back to configure, we
  18591. # need to make the FD available again.
  18592. if test "$no_create" != yes; then
  18593. ac_cs_success=:
  18594. ac_config_status_args=
  18595. test "$silent" = yes &&
  18596. ac_config_status_args="$ac_config_status_args --quiet"
  18597. exec 5>/dev/null
  18598. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18599. exec 5>>config.log
  18600. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18601. # would make configure fail if this is the last instruction.
  18602. $ac_cs_success || as_fn_exit 1
  18603. fi
  18604. #
  18605. # CONFIG_SUBDIRS section.
  18606. #
  18607. if test "$no_recursion" != yes; then
  18608. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  18609. # so they do not pile up.
  18610. ac_sub_configure_args=
  18611. ac_prev=
  18612. eval "set x $ac_configure_args"
  18613. shift
  18614. for ac_arg
  18615. do
  18616. if test -n "$ac_prev"; then
  18617. ac_prev=
  18618. continue
  18619. fi
  18620. case $ac_arg in
  18621. -cache-file | --cache-file | --cache-fil | --cache-fi \
  18622. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  18623. ac_prev=cache_file ;;
  18624. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  18625. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  18626. | --c=*)
  18627. ;;
  18628. --config-cache | -C)
  18629. ;;
  18630. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  18631. ac_prev=srcdir ;;
  18632. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  18633. ;;
  18634. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  18635. ac_prev=prefix ;;
  18636. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  18637. ;;
  18638. --disable-option-checking)
  18639. ;;
  18640. *)
  18641. case $ac_arg in
  18642. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18643. esac
  18644. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  18645. esac
  18646. done
  18647. # Always prepend --prefix to ensure using the same prefix
  18648. # in subdir configurations.
  18649. ac_arg="--prefix=$prefix"
  18650. case $ac_arg in
  18651. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18652. esac
  18653. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  18654. # Pass --silent
  18655. if test "$silent" = yes; then
  18656. ac_sub_configure_args="--silent $ac_sub_configure_args"
  18657. fi
  18658. # Always prepend --disable-option-checking to silence warnings, since
  18659. # different subdirs can have different --enable and --with options.
  18660. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  18661. ac_popdir=`pwd`
  18662. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  18663. # Do not complain, so a configure script can configure whichever
  18664. # parts of a large source tree are present.
  18665. test -d "$srcdir/$ac_dir" || continue
  18666. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  18667. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  18668. $as_echo "$ac_msg" >&6
  18669. as_dir="$ac_dir"; as_fn_mkdir_p
  18670. ac_builddir=.
  18671. case "$ac_dir" in
  18672. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18673. *)
  18674. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18675. # A ".." for each directory in $ac_dir_suffix.
  18676. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18677. case $ac_top_builddir_sub in
  18678. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18679. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18680. esac ;;
  18681. esac
  18682. ac_abs_top_builddir=$ac_pwd
  18683. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18684. # for backward compatibility:
  18685. ac_top_builddir=$ac_top_build_prefix
  18686. case $srcdir in
  18687. .) # We are building in place.
  18688. ac_srcdir=.
  18689. ac_top_srcdir=$ac_top_builddir_sub
  18690. ac_abs_top_srcdir=$ac_pwd ;;
  18691. [\\/]* | ?:[\\/]* ) # Absolute name.
  18692. ac_srcdir=$srcdir$ac_dir_suffix;
  18693. ac_top_srcdir=$srcdir
  18694. ac_abs_top_srcdir=$srcdir ;;
  18695. *) # Relative name.
  18696. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18697. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18698. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18699. esac
  18700. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18701. cd "$ac_dir"
  18702. # Check for guested configure; otherwise get Cygnus style configure.
  18703. if test -f "$ac_srcdir/configure.gnu"; then
  18704. ac_sub_configure=$ac_srcdir/configure.gnu
  18705. elif test -f "$ac_srcdir/configure"; then
  18706. ac_sub_configure=$ac_srcdir/configure
  18707. elif test -f "$ac_srcdir/configure.in"; then
  18708. # This should be Cygnus configure.
  18709. ac_sub_configure=$ac_aux_dir/configure
  18710. else
  18711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  18712. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  18713. ac_sub_configure=
  18714. fi
  18715. # The recursion is here.
  18716. if test -n "$ac_sub_configure"; then
  18717. # Make the cache file name correct relative to the subdirectory.
  18718. case $cache_file in
  18719. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  18720. *) # Relative name.
  18721. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  18722. esac
  18723. { $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
  18724. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  18725. # The eval makes quoting arguments work.
  18726. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  18727. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  18728. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  18729. fi
  18730. cd "$ac_popdir"
  18731. done
  18732. fi
  18733. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  18734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  18735. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  18736. fi