configure 331 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137
  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="server.cc"
  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. ac_header_list=
  573. ac_subst_vars='LTLIBOBJS
  574. LIBOBJS
  575. GNULIB_STDINT_H
  576. extra_libraries
  577. IPA_DEPFILES
  578. srv_xmlfiles
  579. srv_xmlbuiltin
  580. GDBSERVER_LIBS
  581. GDBSERVER_DEPFILES
  582. RDYNAMIC
  583. REPORT_BUGS_TEXI
  584. REPORT_BUGS_TO
  585. PKGVERSION
  586. WERROR_CFLAGS
  587. WARN_CFLAGS
  588. ustinc
  589. ustlibs
  590. CCDEPMODE
  591. CONFIG_SRC_SUBDIR
  592. CATOBJEXT
  593. GENCAT
  594. INSTOBJEXT
  595. DATADIRNAME
  596. CATALOGS
  597. POSUB
  598. GMSGFMT
  599. XGETTEXT
  600. INCINTL
  601. LIBINTL_DEP
  602. LIBINTL
  603. USE_NLS
  604. DEPDIR
  605. am__leading_dot
  606. host_noncanonical
  607. target_noncanonical
  608. WIN32APILIBS
  609. LTLIBIPT
  610. LIBIPT
  611. HAVE_LIBIPT
  612. PTHREAD_CFLAGS
  613. PTHREAD_LIBS
  614. PTHREAD_CC
  615. ax_pthread_config
  616. SED
  617. ALLOCA
  618. CXX_DIALECT
  619. HAVE_CXX11
  620. RANLIB
  621. AR
  622. INSTALL_DATA
  623. INSTALL_SCRIPT
  624. INSTALL_PROGRAM
  625. target_os
  626. target_vendor
  627. target_cpu
  628. target
  629. host_os
  630. host_vendor
  631. host_cpu
  632. host
  633. build_os
  634. build_vendor
  635. build_cpu
  636. build
  637. INSTALL_STRIP_PROGRAM
  638. STRIP
  639. install_sh
  640. EGREP
  641. GREP
  642. CPP
  643. ac_ct_CXX
  644. CXXFLAGS
  645. CXX
  646. OBJEXT
  647. EXEEXT
  648. ac_ct_CC
  649. CPPFLAGS
  650. LDFLAGS
  651. CFLAGS
  652. CC
  653. MAINT
  654. MAINTAINER_MODE_FALSE
  655. MAINTAINER_MODE_TRUE
  656. target_alias
  657. host_alias
  658. build_alias
  659. LIBS
  660. ECHO_T
  661. ECHO_N
  662. ECHO_C
  663. DEFS
  664. mandir
  665. localedir
  666. libdir
  667. psdir
  668. pdfdir
  669. dvidir
  670. htmldir
  671. infodir
  672. docdir
  673. oldincludedir
  674. includedir
  675. localstatedir
  676. sharedstatedir
  677. sysconfdir
  678. datadir
  679. datarootdir
  680. libexecdir
  681. sbindir
  682. bindir
  683. program_transform_name
  684. prefix
  685. exec_prefix
  686. PACKAGE_URL
  687. PACKAGE_BUGREPORT
  688. PACKAGE_STRING
  689. PACKAGE_VERSION
  690. PACKAGE_TARNAME
  691. PACKAGE_NAME
  692. PATH_SEPARATOR
  693. SHELL'
  694. ac_subst_files=''
  695. ac_user_opts='
  696. enable_option_checking
  697. enable_maintainer_mode
  698. enable_largefile
  699. enable_threading
  700. with_intel_pt
  701. with_gnu_ld
  702. enable_rpath
  703. with_libipt_prefix
  704. with_libipt_type
  705. enable_unit_tests
  706. with_ust
  707. with_ust_include
  708. with_ust_lib
  709. enable_werror
  710. enable_build_warnings
  711. enable_gdb_build_warnings
  712. with_pkgversion
  713. with_bugurl
  714. with_libthread_db
  715. enable_inprocess_agent
  716. '
  717. ac_precious_vars='build_alias
  718. host_alias
  719. target_alias
  720. CC
  721. CFLAGS
  722. LDFLAGS
  723. LIBS
  724. CPPFLAGS
  725. CXX
  726. CXXFLAGS
  727. CCC
  728. CPP'
  729. # Initialize some variables set by options.
  730. ac_init_help=
  731. ac_init_version=false
  732. ac_unrecognized_opts=
  733. ac_unrecognized_sep=
  734. # The variables have the same names as the options, with
  735. # dashes changed to underlines.
  736. cache_file=/dev/null
  737. exec_prefix=NONE
  738. no_create=
  739. no_recursion=
  740. prefix=NONE
  741. program_prefix=NONE
  742. program_suffix=NONE
  743. program_transform_name=s,x,x,
  744. silent=
  745. site=
  746. srcdir=
  747. verbose=
  748. x_includes=NONE
  749. x_libraries=NONE
  750. # Installation directory options.
  751. # These are left unexpanded so users can "make install exec_prefix=/foo"
  752. # and all the variables that are supposed to be based on exec_prefix
  753. # by default will actually change.
  754. # Use braces instead of parens because sh, perl, etc. also accept them.
  755. # (The list follows the same order as the GNU Coding Standards.)
  756. bindir='${exec_prefix}/bin'
  757. sbindir='${exec_prefix}/sbin'
  758. libexecdir='${exec_prefix}/libexec'
  759. datarootdir='${prefix}/share'
  760. datadir='${datarootdir}'
  761. sysconfdir='${prefix}/etc'
  762. sharedstatedir='${prefix}/com'
  763. localstatedir='${prefix}/var'
  764. includedir='${prefix}/include'
  765. oldincludedir='/usr/include'
  766. docdir='${datarootdir}/doc/${PACKAGE}'
  767. infodir='${datarootdir}/info'
  768. htmldir='${docdir}'
  769. dvidir='${docdir}'
  770. pdfdir='${docdir}'
  771. psdir='${docdir}'
  772. libdir='${exec_prefix}/lib'
  773. localedir='${datarootdir}/locale'
  774. mandir='${datarootdir}/man'
  775. ac_prev=
  776. ac_dashdash=
  777. for ac_option
  778. do
  779. # If the previous option needs an argument, assign it.
  780. if test -n "$ac_prev"; then
  781. eval $ac_prev=\$ac_option
  782. ac_prev=
  783. continue
  784. fi
  785. case $ac_option in
  786. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  787. *=) ac_optarg= ;;
  788. *) ac_optarg=yes ;;
  789. esac
  790. # Accept the important Cygnus configure options, so we can diagnose typos.
  791. case $ac_dashdash$ac_option in
  792. --)
  793. ac_dashdash=yes ;;
  794. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  795. ac_prev=bindir ;;
  796. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  797. bindir=$ac_optarg ;;
  798. -build | --build | --buil | --bui | --bu)
  799. ac_prev=build_alias ;;
  800. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  801. build_alias=$ac_optarg ;;
  802. -cache-file | --cache-file | --cache-fil | --cache-fi \
  803. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  804. ac_prev=cache_file ;;
  805. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  806. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  807. cache_file=$ac_optarg ;;
  808. --config-cache | -C)
  809. cache_file=config.cache ;;
  810. -datadir | --datadir | --datadi | --datad)
  811. ac_prev=datadir ;;
  812. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  813. datadir=$ac_optarg ;;
  814. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  815. | --dataroo | --dataro | --datar)
  816. ac_prev=datarootdir ;;
  817. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  818. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  819. datarootdir=$ac_optarg ;;
  820. -disable-* | --disable-*)
  821. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  822. # Reject names that are not valid shell variable names.
  823. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  824. as_fn_error $? "invalid feature name: $ac_useropt"
  825. ac_useropt_orig=$ac_useropt
  826. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  827. case $ac_user_opts in
  828. *"
  829. "enable_$ac_useropt"
  830. "*) ;;
  831. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  832. ac_unrecognized_sep=', ';;
  833. esac
  834. eval enable_$ac_useropt=no ;;
  835. -docdir | --docdir | --docdi | --doc | --do)
  836. ac_prev=docdir ;;
  837. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  838. docdir=$ac_optarg ;;
  839. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  840. ac_prev=dvidir ;;
  841. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  842. dvidir=$ac_optarg ;;
  843. -enable-* | --enable-*)
  844. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  847. as_fn_error $? "invalid feature name: $ac_useropt"
  848. ac_useropt_orig=$ac_useropt
  849. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  850. case $ac_user_opts in
  851. *"
  852. "enable_$ac_useropt"
  853. "*) ;;
  854. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  855. ac_unrecognized_sep=', ';;
  856. esac
  857. eval enable_$ac_useropt=\$ac_optarg ;;
  858. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  859. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  860. | --exec | --exe | --ex)
  861. ac_prev=exec_prefix ;;
  862. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  863. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  864. | --exec=* | --exe=* | --ex=*)
  865. exec_prefix=$ac_optarg ;;
  866. -gas | --gas | --ga | --g)
  867. # Obsolete; use --with-gas.
  868. with_gas=yes ;;
  869. -help | --help | --hel | --he | -h)
  870. ac_init_help=long ;;
  871. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  872. ac_init_help=recursive ;;
  873. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  874. ac_init_help=short ;;
  875. -host | --host | --hos | --ho)
  876. ac_prev=host_alias ;;
  877. -host=* | --host=* | --hos=* | --ho=*)
  878. host_alias=$ac_optarg ;;
  879. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  880. ac_prev=htmldir ;;
  881. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  882. | --ht=*)
  883. htmldir=$ac_optarg ;;
  884. -includedir | --includedir | --includedi | --included | --include \
  885. | --includ | --inclu | --incl | --inc)
  886. ac_prev=includedir ;;
  887. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  888. | --includ=* | --inclu=* | --incl=* | --inc=*)
  889. includedir=$ac_optarg ;;
  890. -infodir | --infodir | --infodi | --infod | --info | --inf)
  891. ac_prev=infodir ;;
  892. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  893. infodir=$ac_optarg ;;
  894. -libdir | --libdir | --libdi | --libd)
  895. ac_prev=libdir ;;
  896. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  897. libdir=$ac_optarg ;;
  898. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  899. | --libexe | --libex | --libe)
  900. ac_prev=libexecdir ;;
  901. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  902. | --libexe=* | --libex=* | --libe=*)
  903. libexecdir=$ac_optarg ;;
  904. -localedir | --localedir | --localedi | --localed | --locale)
  905. ac_prev=localedir ;;
  906. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  907. localedir=$ac_optarg ;;
  908. -localstatedir | --localstatedir | --localstatedi | --localstated \
  909. | --localstate | --localstat | --localsta | --localst | --locals)
  910. ac_prev=localstatedir ;;
  911. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  912. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  913. localstatedir=$ac_optarg ;;
  914. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  915. ac_prev=mandir ;;
  916. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  917. mandir=$ac_optarg ;;
  918. -nfp | --nfp | --nf)
  919. # Obsolete; use --without-fp.
  920. with_fp=no ;;
  921. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  922. | --no-cr | --no-c | -n)
  923. no_create=yes ;;
  924. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  925. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  926. no_recursion=yes ;;
  927. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  928. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  929. | --oldin | --oldi | --old | --ol | --o)
  930. ac_prev=oldincludedir ;;
  931. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  932. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  933. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  934. oldincludedir=$ac_optarg ;;
  935. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  936. ac_prev=prefix ;;
  937. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  938. prefix=$ac_optarg ;;
  939. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  940. | --program-pre | --program-pr | --program-p)
  941. ac_prev=program_prefix ;;
  942. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  943. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  944. program_prefix=$ac_optarg ;;
  945. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  946. | --program-suf | --program-su | --program-s)
  947. ac_prev=program_suffix ;;
  948. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  949. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  950. program_suffix=$ac_optarg ;;
  951. -program-transform-name | --program-transform-name \
  952. | --program-transform-nam | --program-transform-na \
  953. | --program-transform-n | --program-transform- \
  954. | --program-transform | --program-transfor \
  955. | --program-transfo | --program-transf \
  956. | --program-trans | --program-tran \
  957. | --progr-tra | --program-tr | --program-t)
  958. ac_prev=program_transform_name ;;
  959. -program-transform-name=* | --program-transform-name=* \
  960. | --program-transform-nam=* | --program-transform-na=* \
  961. | --program-transform-n=* | --program-transform-=* \
  962. | --program-transform=* | --program-transfor=* \
  963. | --program-transfo=* | --program-transf=* \
  964. | --program-trans=* | --program-tran=* \
  965. | --progr-tra=* | --program-tr=* | --program-t=*)
  966. program_transform_name=$ac_optarg ;;
  967. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  968. ac_prev=pdfdir ;;
  969. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  970. pdfdir=$ac_optarg ;;
  971. -psdir | --psdir | --psdi | --psd | --ps)
  972. ac_prev=psdir ;;
  973. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  974. psdir=$ac_optarg ;;
  975. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  976. | -silent | --silent | --silen | --sile | --sil)
  977. silent=yes ;;
  978. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  979. ac_prev=sbindir ;;
  980. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  981. | --sbi=* | --sb=*)
  982. sbindir=$ac_optarg ;;
  983. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  984. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  985. | --sharedst | --shareds | --shared | --share | --shar \
  986. | --sha | --sh)
  987. ac_prev=sharedstatedir ;;
  988. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  989. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  990. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  991. | --sha=* | --sh=*)
  992. sharedstatedir=$ac_optarg ;;
  993. -site | --site | --sit)
  994. ac_prev=site ;;
  995. -site=* | --site=* | --sit=*)
  996. site=$ac_optarg ;;
  997. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  998. ac_prev=srcdir ;;
  999. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1000. srcdir=$ac_optarg ;;
  1001. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1002. | --syscon | --sysco | --sysc | --sys | --sy)
  1003. ac_prev=sysconfdir ;;
  1004. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1005. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1006. sysconfdir=$ac_optarg ;;
  1007. -target | --target | --targe | --targ | --tar | --ta | --t)
  1008. ac_prev=target_alias ;;
  1009. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1010. target_alias=$ac_optarg ;;
  1011. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1012. verbose=yes ;;
  1013. -version | --version | --versio | --versi | --vers | -V)
  1014. ac_init_version=: ;;
  1015. -with-* | --with-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error $? "invalid package name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "with_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval with_$ac_useropt=\$ac_optarg ;;
  1030. -without-* | --without-*)
  1031. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1034. as_fn_error $? "invalid package name: $ac_useropt"
  1035. ac_useropt_orig=$ac_useropt
  1036. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1037. case $ac_user_opts in
  1038. *"
  1039. "with_$ac_useropt"
  1040. "*) ;;
  1041. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1042. ac_unrecognized_sep=', ';;
  1043. esac
  1044. eval with_$ac_useropt=no ;;
  1045. --x)
  1046. # Obsolete; use --with-x.
  1047. with_x=yes ;;
  1048. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1049. | --x-incl | --x-inc | --x-in | --x-i)
  1050. ac_prev=x_includes ;;
  1051. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1052. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1053. x_includes=$ac_optarg ;;
  1054. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1055. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1056. ac_prev=x_libraries ;;
  1057. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1058. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1059. x_libraries=$ac_optarg ;;
  1060. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1061. Try \`$0 --help' for more information"
  1062. ;;
  1063. *=*)
  1064. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1065. # Reject names that are not valid shell variable names.
  1066. case $ac_envvar in #(
  1067. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1068. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1069. esac
  1070. eval $ac_envvar=\$ac_optarg
  1071. export $ac_envvar ;;
  1072. *)
  1073. # FIXME: should be removed in autoconf 3.0.
  1074. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1075. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1076. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1077. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1078. ;;
  1079. esac
  1080. done
  1081. if test -n "$ac_prev"; then
  1082. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1083. as_fn_error $? "missing argument to $ac_option"
  1084. fi
  1085. if test -n "$ac_unrecognized_opts"; then
  1086. case $enable_option_checking in
  1087. no) ;;
  1088. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1089. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1090. esac
  1091. fi
  1092. # Check all directory arguments for consistency.
  1093. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1094. datadir sysconfdir sharedstatedir localstatedir includedir \
  1095. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1096. libdir localedir mandir
  1097. do
  1098. eval ac_val=\$$ac_var
  1099. # Remove trailing slashes.
  1100. case $ac_val in
  1101. */ )
  1102. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1103. eval $ac_var=\$ac_val;;
  1104. esac
  1105. # Be sure to have absolute directory names.
  1106. case $ac_val in
  1107. [\\/$]* | ?:[\\/]* ) continue;;
  1108. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1109. esac
  1110. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1111. done
  1112. # There might be people who depend on the old broken behavior: `$host'
  1113. # used to hold the argument of --host etc.
  1114. # FIXME: To remove some day.
  1115. build=$build_alias
  1116. host=$host_alias
  1117. target=$target_alias
  1118. # FIXME: To remove some day.
  1119. if test "x$host_alias" != x; then
  1120. if test "x$build_alias" = x; then
  1121. cross_compiling=maybe
  1122. elif test "x$build_alias" != "x$host_alias"; then
  1123. cross_compiling=yes
  1124. fi
  1125. fi
  1126. ac_tool_prefix=
  1127. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1128. test "$silent" = yes && exec 6>/dev/null
  1129. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1130. ac_ls_di=`ls -di .` &&
  1131. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1132. as_fn_error $? "working directory cannot be determined"
  1133. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1134. as_fn_error $? "pwd does not report name of working directory"
  1135. # Find the source files, if location was not specified.
  1136. if test -z "$srcdir"; then
  1137. ac_srcdir_defaulted=yes
  1138. # Try the directory containing this script, then the parent directory.
  1139. ac_confdir=`$as_dirname -- "$as_myself" ||
  1140. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1141. X"$as_myself" : 'X\(//\)[^/]' \| \
  1142. X"$as_myself" : 'X\(//\)$' \| \
  1143. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1144. $as_echo X"$as_myself" |
  1145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\/\)[^/].*/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)$/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\).*/{
  1158. s//\1/
  1159. q
  1160. }
  1161. s/.*/./; q'`
  1162. srcdir=$ac_confdir
  1163. if test ! -r "$srcdir/$ac_unique_file"; then
  1164. srcdir=..
  1165. fi
  1166. else
  1167. ac_srcdir_defaulted=no
  1168. fi
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1171. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1172. fi
  1173. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1174. ac_abs_confdir=`(
  1175. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1176. pwd)`
  1177. # When building in place, set srcdir=.
  1178. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1179. srcdir=.
  1180. fi
  1181. # Remove unnecessary trailing slashes from srcdir.
  1182. # Double slashes in file names in object file debugging info
  1183. # mess up M-x gdb in Emacs.
  1184. case $srcdir in
  1185. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1186. esac
  1187. for ac_var in $ac_precious_vars; do
  1188. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1189. eval ac_env_${ac_var}_value=\$${ac_var}
  1190. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1192. done
  1193. #
  1194. # Report the --help message.
  1195. #
  1196. if test "$ac_init_help" = "long"; then
  1197. # Omit some internal or obsolete options to make the list less imposing.
  1198. # This message is too long to be a string in the A/UX 3.1 sh.
  1199. cat <<_ACEOF
  1200. \`configure' configures this package to adapt to many kinds of systems.
  1201. Usage: $0 [OPTION]... [VAR=VALUE]...
  1202. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1203. VAR=VALUE. See below for descriptions of some of the useful variables.
  1204. Defaults for the options are specified in brackets.
  1205. Configuration:
  1206. -h, --help display this help and exit
  1207. --help=short display options specific to this package
  1208. --help=recursive display the short help of all the included packages
  1209. -V, --version display version information and exit
  1210. -q, --quiet, --silent do not print \`checking ...' messages
  1211. --cache-file=FILE cache test results in FILE [disabled]
  1212. -C, --config-cache alias for \`--cache-file=config.cache'
  1213. -n, --no-create do not create output files
  1214. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1215. Installation directories:
  1216. --prefix=PREFIX install architecture-independent files in PREFIX
  1217. [$ac_default_prefix]
  1218. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1219. [PREFIX]
  1220. By default, \`make install' will install all the files in
  1221. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1222. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1223. for instance \`--prefix=\$HOME'.
  1224. For better control, use the options below.
  1225. Fine tuning of the installation directories:
  1226. --bindir=DIR user executables [EPREFIX/bin]
  1227. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1228. --libexecdir=DIR program executables [EPREFIX/libexec]
  1229. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1230. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1231. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1232. --libdir=DIR object code libraries [EPREFIX/lib]
  1233. --includedir=DIR C header files [PREFIX/include]
  1234. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1235. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1236. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1237. --infodir=DIR info documentation [DATAROOTDIR/info]
  1238. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1239. --mandir=DIR man documentation [DATAROOTDIR/man]
  1240. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1241. --htmldir=DIR html documentation [DOCDIR]
  1242. --dvidir=DIR dvi documentation [DOCDIR]
  1243. --pdfdir=DIR pdf documentation [DOCDIR]
  1244. --psdir=DIR ps documentation [DOCDIR]
  1245. _ACEOF
  1246. cat <<\_ACEOF
  1247. Program names:
  1248. --program-prefix=PREFIX prepend PREFIX to installed program names
  1249. --program-suffix=SUFFIX append SUFFIX to installed program names
  1250. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1251. System types:
  1252. --build=BUILD configure for building on BUILD [guessed]
  1253. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1254. --target=TARGET configure for building compilers for TARGET [HOST]
  1255. _ACEOF
  1256. fi
  1257. if test -n "$ac_init_help"; then
  1258. cat <<\_ACEOF
  1259. Optional Features:
  1260. --disable-option-checking ignore unrecognized --enable/--with options
  1261. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1262. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1263. --enable-maintainer-mode
  1264. enable make rules and dependencies not useful (and
  1265. sometimes confusing) to the casual installer
  1266. --disable-largefile omit support for large files
  1267. --enable-threading include support for parallel processing of data
  1268. (yes/no)
  1269. --disable-rpath do not hardcode runtime library paths
  1270. --enable-unit-tests Enable the inclusion of unit tests when compiling
  1271. GDB
  1272. --enable-werror treat compile warnings as errors
  1273. --enable-build-warnings enable build-time compiler warnings if gcc is used
  1274. --enable-gdb-build-warnings
  1275. enable GDB specific build-time compiler warnings if
  1276. gcc is used
  1277. --enable-inprocess-agent
  1278. inprocess agent
  1279. Optional Packages:
  1280. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1281. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1282. --with-intel-pt include Intel Processor Trace support (auto/yes/no)
  1283. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1284. --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
  1285. --without-libipt-prefix don't search for libipt in includedir and libdir
  1286. --with-libipt-type=TYPE type of library to search for (auto/static/shared)
  1287. --with-ust=PATH Specify prefix directory for the installed UST package
  1288. Equivalent to --with-ust-include=PATH/include
  1289. plus --with-ust-lib=PATH/lib
  1290. --with-ust-include=PATH Specify directory for installed UST include files
  1291. --with-ust-lib=PATH Specify the directory for the installed UST library
  1292. --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
  1293. --with-bugurl=URL Direct users to URL to report a bug
  1294. --with-libthread-db=PATH
  1295. use given libthread_db directly
  1296. Some influential environment variables:
  1297. CC C compiler command
  1298. CFLAGS C compiler flags
  1299. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1300. nonstandard directory <lib dir>
  1301. LIBS libraries to pass to the linker, e.g. -l<library>
  1302. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1303. you have headers in a nonstandard directory <include dir>
  1304. CXX C++ compiler command
  1305. CXXFLAGS C++ compiler flags
  1306. CPP C preprocessor
  1307. Use these variables to override the choices made by `configure' or to help
  1308. it to find libraries and programs with nonstandard names/locations.
  1309. Report bugs to the package provider.
  1310. _ACEOF
  1311. ac_status=$?
  1312. fi
  1313. if test "$ac_init_help" = "recursive"; then
  1314. # If there are subdirs, report their specific --help.
  1315. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1316. test -d "$ac_dir" ||
  1317. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1318. continue
  1319. ac_builddir=.
  1320. case "$ac_dir" in
  1321. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *)
  1323. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1324. # A ".." for each directory in $ac_dir_suffix.
  1325. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1326. case $ac_top_builddir_sub in
  1327. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1329. esac ;;
  1330. esac
  1331. ac_abs_top_builddir=$ac_pwd
  1332. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1333. # for backward compatibility:
  1334. ac_top_builddir=$ac_top_build_prefix
  1335. case $srcdir in
  1336. .) # We are building in place.
  1337. ac_srcdir=.
  1338. ac_top_srcdir=$ac_top_builddir_sub
  1339. ac_abs_top_srcdir=$ac_pwd ;;
  1340. [\\/]* | ?:[\\/]* ) # Absolute name.
  1341. ac_srcdir=$srcdir$ac_dir_suffix;
  1342. ac_top_srcdir=$srcdir
  1343. ac_abs_top_srcdir=$srcdir ;;
  1344. *) # Relative name.
  1345. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1346. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1347. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1348. esac
  1349. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1350. cd "$ac_dir" || { ac_status=$?; continue; }
  1351. # Check for guested configure.
  1352. if test -f "$ac_srcdir/configure.gnu"; then
  1353. echo &&
  1354. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1355. elif test -f "$ac_srcdir/configure"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure" --help=recursive
  1358. else
  1359. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1360. fi || ac_status=$?
  1361. cd "$ac_pwd" || { ac_status=$?; break; }
  1362. done
  1363. fi
  1364. test -n "$ac_init_help" && exit $ac_status
  1365. if $ac_init_version; then
  1366. cat <<\_ACEOF
  1367. configure
  1368. generated by GNU Autoconf 2.69
  1369. Copyright (C) 2012 Free Software Foundation, Inc.
  1370. This configure script is free software; the Free Software Foundation
  1371. gives unlimited permission to copy, distribute and modify it.
  1372. _ACEOF
  1373. exit
  1374. fi
  1375. ## ------------------------ ##
  1376. ## Autoconf initialization. ##
  1377. ## ------------------------ ##
  1378. # ac_fn_c_try_compile LINENO
  1379. # --------------------------
  1380. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1381. ac_fn_c_try_compile ()
  1382. {
  1383. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1384. rm -f conftest.$ac_objext
  1385. if { { ac_try="$ac_compile"
  1386. case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_compile") 2>conftest.err
  1393. ac_status=$?
  1394. if test -s conftest.err; then
  1395. grep -v '^ *+' conftest.err >conftest.er1
  1396. cat conftest.er1 >&5
  1397. mv -f conftest.er1 conftest.err
  1398. fi
  1399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1400. test $ac_status = 0; } && {
  1401. test -z "$ac_c_werror_flag" ||
  1402. test ! -s conftest.err
  1403. } && test -s conftest.$ac_objext; then :
  1404. ac_retval=0
  1405. else
  1406. $as_echo "$as_me: failed program was:" >&5
  1407. sed 's/^/| /' conftest.$ac_ext >&5
  1408. ac_retval=1
  1409. fi
  1410. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1411. as_fn_set_status $ac_retval
  1412. } # ac_fn_c_try_compile
  1413. # ac_fn_cxx_try_compile LINENO
  1414. # ----------------------------
  1415. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1416. ac_fn_cxx_try_compile ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. rm -f conftest.$ac_objext
  1420. if { { ac_try="$ac_compile"
  1421. case "(($ac_try" in
  1422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1423. *) ac_try_echo=$ac_try;;
  1424. esac
  1425. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1426. $as_echo "$ac_try_echo"; } >&5
  1427. (eval "$ac_compile") 2>conftest.err
  1428. ac_status=$?
  1429. if test -s conftest.err; then
  1430. grep -v '^ *+' conftest.err >conftest.er1
  1431. cat conftest.er1 >&5
  1432. mv -f conftest.er1 conftest.err
  1433. fi
  1434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1435. test $ac_status = 0; } && {
  1436. test -z "$ac_cxx_werror_flag" ||
  1437. test ! -s conftest.err
  1438. } && test -s conftest.$ac_objext; then :
  1439. ac_retval=0
  1440. else
  1441. $as_echo "$as_me: failed program was:" >&5
  1442. sed 's/^/| /' conftest.$ac_ext >&5
  1443. ac_retval=1
  1444. fi
  1445. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1446. as_fn_set_status $ac_retval
  1447. } # ac_fn_cxx_try_compile
  1448. # ac_fn_c_try_cpp LINENO
  1449. # ----------------------
  1450. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1451. ac_fn_c_try_cpp ()
  1452. {
  1453. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1454. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1455. case "(($ac_try" in
  1456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1457. *) ac_try_echo=$ac_try;;
  1458. esac
  1459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1460. $as_echo "$ac_try_echo"; } >&5
  1461. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1462. ac_status=$?
  1463. if test -s conftest.err; then
  1464. grep -v '^ *+' conftest.err >conftest.er1
  1465. cat conftest.er1 >&5
  1466. mv -f conftest.er1 conftest.err
  1467. fi
  1468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1469. test $ac_status = 0; } > conftest.i && {
  1470. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1471. test ! -s conftest.err
  1472. }; then :
  1473. ac_retval=0
  1474. else
  1475. $as_echo "$as_me: failed program was:" >&5
  1476. sed 's/^/| /' conftest.$ac_ext >&5
  1477. ac_retval=1
  1478. fi
  1479. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1480. as_fn_set_status $ac_retval
  1481. } # ac_fn_c_try_cpp
  1482. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1483. # -------------------------------------------------------
  1484. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1485. # the include files in INCLUDES and setting the cache variable VAR
  1486. # accordingly.
  1487. ac_fn_c_check_header_mongrel ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. if eval \${$3+:} false; then :
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1492. $as_echo_n "checking for $2... " >&6; }
  1493. if eval \${$3+:} false; then :
  1494. $as_echo_n "(cached) " >&6
  1495. fi
  1496. eval ac_res=\$$3
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1498. $as_echo "$ac_res" >&6; }
  1499. else
  1500. # Is the header compilable?
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1502. $as_echo_n "checking $2 usability... " >&6; }
  1503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1504. /* end confdefs.h. */
  1505. $4
  1506. #include <$2>
  1507. _ACEOF
  1508. if ac_fn_c_try_compile "$LINENO"; then :
  1509. ac_header_compiler=yes
  1510. else
  1511. ac_header_compiler=no
  1512. fi
  1513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1515. $as_echo "$ac_header_compiler" >&6; }
  1516. # Is the header present?
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1518. $as_echo_n "checking $2 presence... " >&6; }
  1519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1520. /* end confdefs.h. */
  1521. #include <$2>
  1522. _ACEOF
  1523. if ac_fn_c_try_cpp "$LINENO"; then :
  1524. ac_header_preproc=yes
  1525. else
  1526. ac_header_preproc=no
  1527. fi
  1528. rm -f conftest.err conftest.i conftest.$ac_ext
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1530. $as_echo "$ac_header_preproc" >&6; }
  1531. # So? What about this header?
  1532. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1533. yes:no: )
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1535. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1537. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1538. ;;
  1539. no:yes:* )
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1541. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1543. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1545. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1547. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1549. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1550. ;;
  1551. esac
  1552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1553. $as_echo_n "checking for $2... " >&6; }
  1554. if eval \${$3+:} false; then :
  1555. $as_echo_n "(cached) " >&6
  1556. else
  1557. eval "$3=\$ac_header_compiler"
  1558. fi
  1559. eval ac_res=\$$3
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1561. $as_echo "$ac_res" >&6; }
  1562. fi
  1563. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1564. } # ac_fn_c_check_header_mongrel
  1565. # ac_fn_c_try_run LINENO
  1566. # ----------------------
  1567. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1568. # that executables *can* be run.
  1569. ac_fn_c_try_run ()
  1570. {
  1571. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1572. if { { ac_try="$ac_link"
  1573. case "(($ac_try" in
  1574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1575. *) ac_try_echo=$ac_try;;
  1576. esac
  1577. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1578. $as_echo "$ac_try_echo"; } >&5
  1579. (eval "$ac_link") 2>&5
  1580. ac_status=$?
  1581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1583. { { case "(($ac_try" in
  1584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1585. *) ac_try_echo=$ac_try;;
  1586. esac
  1587. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1588. $as_echo "$ac_try_echo"; } >&5
  1589. (eval "$ac_try") 2>&5
  1590. ac_status=$?
  1591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1592. test $ac_status = 0; }; }; then :
  1593. ac_retval=0
  1594. else
  1595. $as_echo "$as_me: program exited with status $ac_status" >&5
  1596. $as_echo "$as_me: failed program was:" >&5
  1597. sed 's/^/| /' conftest.$ac_ext >&5
  1598. ac_retval=$ac_status
  1599. fi
  1600. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1601. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1602. as_fn_set_status $ac_retval
  1603. } # ac_fn_c_try_run
  1604. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1605. # -------------------------------------------------------
  1606. # Tests whether HEADER exists and can be compiled using the include files in
  1607. # INCLUDES, setting the cache variable VAR accordingly.
  1608. ac_fn_c_check_header_compile ()
  1609. {
  1610. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1612. $as_echo_n "checking for $2... " >&6; }
  1613. if eval \${$3+:} false; then :
  1614. $as_echo_n "(cached) " >&6
  1615. else
  1616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1617. /* end confdefs.h. */
  1618. $4
  1619. #include <$2>
  1620. _ACEOF
  1621. if ac_fn_c_try_compile "$LINENO"; then :
  1622. eval "$3=yes"
  1623. else
  1624. eval "$3=no"
  1625. fi
  1626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1627. fi
  1628. eval ac_res=\$$3
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1630. $as_echo "$ac_res" >&6; }
  1631. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1632. } # ac_fn_c_check_header_compile
  1633. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1634. # -------------------------------------------
  1635. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1636. # variable VAR accordingly.
  1637. ac_fn_c_check_type ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1641. $as_echo_n "checking for $2... " >&6; }
  1642. if eval \${$3+:} false; then :
  1643. $as_echo_n "(cached) " >&6
  1644. else
  1645. eval "$3=no"
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. int
  1650. main ()
  1651. {
  1652. if (sizeof ($2))
  1653. return 0;
  1654. ;
  1655. return 0;
  1656. }
  1657. _ACEOF
  1658. if ac_fn_c_try_compile "$LINENO"; then :
  1659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1660. /* end confdefs.h. */
  1661. $4
  1662. int
  1663. main ()
  1664. {
  1665. if (sizeof (($2)))
  1666. return 0;
  1667. ;
  1668. return 0;
  1669. }
  1670. _ACEOF
  1671. if ac_fn_c_try_compile "$LINENO"; then :
  1672. else
  1673. eval "$3=yes"
  1674. fi
  1675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1676. fi
  1677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1678. fi
  1679. eval ac_res=\$$3
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1681. $as_echo "$ac_res" >&6; }
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. } # ac_fn_c_check_type
  1684. # ac_fn_c_try_link LINENO
  1685. # -----------------------
  1686. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1687. ac_fn_c_try_link ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. rm -f conftest.$ac_objext conftest$ac_exeext
  1691. if { { ac_try="$ac_link"
  1692. case "(($ac_try" in
  1693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1694. *) ac_try_echo=$ac_try;;
  1695. esac
  1696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1697. $as_echo "$ac_try_echo"; } >&5
  1698. (eval "$ac_link") 2>conftest.err
  1699. ac_status=$?
  1700. if test -s conftest.err; then
  1701. grep -v '^ *+' conftest.err >conftest.er1
  1702. cat conftest.er1 >&5
  1703. mv -f conftest.er1 conftest.err
  1704. fi
  1705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1706. test $ac_status = 0; } && {
  1707. test -z "$ac_c_werror_flag" ||
  1708. test ! -s conftest.err
  1709. } && test -s conftest$ac_exeext && {
  1710. test "$cross_compiling" = yes ||
  1711. test -x conftest$ac_exeext
  1712. }; then :
  1713. ac_retval=0
  1714. else
  1715. $as_echo "$as_me: failed program was:" >&5
  1716. sed 's/^/| /' conftest.$ac_ext >&5
  1717. ac_retval=1
  1718. fi
  1719. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1720. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1721. # interfere with the next link command; also delete a directory that is
  1722. # left behind by Apple's compiler. We do this before executing the actions.
  1723. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. as_fn_set_status $ac_retval
  1726. } # ac_fn_c_try_link
  1727. # ac_fn_c_check_func LINENO FUNC VAR
  1728. # ----------------------------------
  1729. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1730. ac_fn_c_check_func ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1734. $as_echo_n "checking for $2... " >&6; }
  1735. if eval \${$3+:} false; then :
  1736. $as_echo_n "(cached) " >&6
  1737. else
  1738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h. */
  1740. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1741. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1742. #define $2 innocuous_$2
  1743. /* System header to define __stub macros and hopefully few prototypes,
  1744. which can conflict with char $2 (); below.
  1745. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1746. <limits.h> exists even on freestanding compilers. */
  1747. #ifdef __STDC__
  1748. # include <limits.h>
  1749. #else
  1750. # include <assert.h>
  1751. #endif
  1752. #undef $2
  1753. /* Override any GCC internal prototype to avoid an error.
  1754. Use char because int might match the return type of a GCC
  1755. builtin and then its argument prototype would still apply. */
  1756. #ifdef __cplusplus
  1757. extern "C"
  1758. #endif
  1759. char $2 ();
  1760. /* The GNU C library defines this for functions which it implements
  1761. to always fail with ENOSYS. Some functions are actually named
  1762. something starting with __ and the normal name is an alias. */
  1763. #if defined __stub_$2 || defined __stub___$2
  1764. choke me
  1765. #endif
  1766. int
  1767. main ()
  1768. {
  1769. return $2 ();
  1770. ;
  1771. return 0;
  1772. }
  1773. _ACEOF
  1774. if ac_fn_c_try_link "$LINENO"; then :
  1775. eval "$3=yes"
  1776. else
  1777. eval "$3=no"
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext \
  1780. conftest$ac_exeext conftest.$ac_ext
  1781. fi
  1782. eval ac_res=\$$3
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1784. $as_echo "$ac_res" >&6; }
  1785. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1786. } # ac_fn_c_check_func
  1787. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1788. # ---------------------------------------------
  1789. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1790. # accordingly.
  1791. ac_fn_c_check_decl ()
  1792. {
  1793. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1794. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1795. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1797. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1798. if eval \${$3+:} false; then :
  1799. $as_echo_n "(cached) " >&6
  1800. else
  1801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1802. /* end confdefs.h. */
  1803. $4
  1804. int
  1805. main ()
  1806. {
  1807. #ifndef $as_decl_name
  1808. #ifdef __cplusplus
  1809. (void) $as_decl_use;
  1810. #else
  1811. (void) $as_decl_name;
  1812. #endif
  1813. #endif
  1814. ;
  1815. return 0;
  1816. }
  1817. _ACEOF
  1818. if ac_fn_c_try_compile "$LINENO"; then :
  1819. eval "$3=yes"
  1820. else
  1821. eval "$3=no"
  1822. fi
  1823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1824. fi
  1825. eval ac_res=\$$3
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1827. $as_echo "$ac_res" >&6; }
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. } # ac_fn_c_check_decl
  1830. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1831. # ----------------------------------------------------
  1832. # Tries to find if the field MEMBER exists in type AGGR, after including
  1833. # INCLUDES, setting cache variable VAR accordingly.
  1834. ac_fn_c_check_member ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1838. $as_echo_n "checking for $2.$3... " >&6; }
  1839. if eval \${$4+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end confdefs.h. */
  1844. $5
  1845. int
  1846. main ()
  1847. {
  1848. static $2 ac_aggr;
  1849. if (ac_aggr.$3)
  1850. return 0;
  1851. ;
  1852. return 0;
  1853. }
  1854. _ACEOF
  1855. if ac_fn_c_try_compile "$LINENO"; then :
  1856. eval "$4=yes"
  1857. else
  1858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1859. /* end confdefs.h. */
  1860. $5
  1861. int
  1862. main ()
  1863. {
  1864. static $2 ac_aggr;
  1865. if (sizeof ac_aggr.$3)
  1866. return 0;
  1867. ;
  1868. return 0;
  1869. }
  1870. _ACEOF
  1871. if ac_fn_c_try_compile "$LINENO"; then :
  1872. eval "$4=yes"
  1873. else
  1874. eval "$4=no"
  1875. fi
  1876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1877. fi
  1878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1879. fi
  1880. eval ac_res=\$$4
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1882. $as_echo "$ac_res" >&6; }
  1883. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1884. } # ac_fn_c_check_member
  1885. # ac_fn_cxx_try_link LINENO
  1886. # -------------------------
  1887. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1888. ac_fn_cxx_try_link ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. rm -f conftest.$ac_objext conftest$ac_exeext
  1892. if { { ac_try="$ac_link"
  1893. case "(($ac_try" in
  1894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1895. *) ac_try_echo=$ac_try;;
  1896. esac
  1897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1898. $as_echo "$ac_try_echo"; } >&5
  1899. (eval "$ac_link") 2>conftest.err
  1900. ac_status=$?
  1901. if test -s conftest.err; then
  1902. grep -v '^ *+' conftest.err >conftest.er1
  1903. cat conftest.er1 >&5
  1904. mv -f conftest.er1 conftest.err
  1905. fi
  1906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1907. test $ac_status = 0; } && {
  1908. test -z "$ac_cxx_werror_flag" ||
  1909. test ! -s conftest.err
  1910. } && test -s conftest$ac_exeext && {
  1911. test "$cross_compiling" = yes ||
  1912. test -x conftest$ac_exeext
  1913. }; then :
  1914. ac_retval=0
  1915. else
  1916. $as_echo "$as_me: failed program was:" >&5
  1917. sed 's/^/| /' conftest.$ac_ext >&5
  1918. ac_retval=1
  1919. fi
  1920. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1921. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1922. # interfere with the next link command; also delete a directory that is
  1923. # left behind by Apple's compiler. We do this before executing the actions.
  1924. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1925. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1926. as_fn_set_status $ac_retval
  1927. } # ac_fn_cxx_try_link
  1928. # ac_fn_cxx_check_func LINENO FUNC VAR
  1929. # ------------------------------------
  1930. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1931. ac_fn_cxx_check_func ()
  1932. {
  1933. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1935. $as_echo_n "checking for $2... " >&6; }
  1936. if eval \${$3+:} false; then :
  1937. $as_echo_n "(cached) " >&6
  1938. else
  1939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1940. /* end confdefs.h. */
  1941. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1942. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1943. #define $2 innocuous_$2
  1944. /* System header to define __stub macros and hopefully few prototypes,
  1945. which can conflict with char $2 (); below.
  1946. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1947. <limits.h> exists even on freestanding compilers. */
  1948. #ifdef __STDC__
  1949. # include <limits.h>
  1950. #else
  1951. # include <assert.h>
  1952. #endif
  1953. #undef $2
  1954. /* Override any GCC internal prototype to avoid an error.
  1955. Use char because int might match the return type of a GCC
  1956. builtin and then its argument prototype would still apply. */
  1957. #ifdef __cplusplus
  1958. extern "C"
  1959. #endif
  1960. char $2 ();
  1961. /* The GNU C library defines this for functions which it implements
  1962. to always fail with ENOSYS. Some functions are actually named
  1963. something starting with __ and the normal name is an alias. */
  1964. #if defined __stub_$2 || defined __stub___$2
  1965. choke me
  1966. #endif
  1967. int
  1968. main ()
  1969. {
  1970. return $2 ();
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_cxx_try_link "$LINENO"; then :
  1976. eval "$3=yes"
  1977. else
  1978. eval "$3=no"
  1979. fi
  1980. rm -f core conftest.err conftest.$ac_objext \
  1981. conftest$ac_exeext conftest.$ac_ext
  1982. fi
  1983. eval ac_res=\$$3
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1985. $as_echo "$ac_res" >&6; }
  1986. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1987. } # ac_fn_cxx_check_func
  1988. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1989. # --------------------------------------------
  1990. # Tries to find the compile-time value of EXPR in a program that includes
  1991. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1992. # computed
  1993. ac_fn_c_compute_int ()
  1994. {
  1995. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1996. if test "$cross_compiling" = yes; then
  1997. # Depending upon the size, compute the lo and hi bounds.
  1998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1999. /* end confdefs.h. */
  2000. $4
  2001. int
  2002. main ()
  2003. {
  2004. static int test_array [1 - 2 * !(($2) >= 0)];
  2005. test_array [0] = 0;
  2006. return test_array [0];
  2007. ;
  2008. return 0;
  2009. }
  2010. _ACEOF
  2011. if ac_fn_c_try_compile "$LINENO"; then :
  2012. ac_lo=0 ac_mid=0
  2013. while :; do
  2014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2015. /* end confdefs.h. */
  2016. $4
  2017. int
  2018. main ()
  2019. {
  2020. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2021. test_array [0] = 0;
  2022. return test_array [0];
  2023. ;
  2024. return 0;
  2025. }
  2026. _ACEOF
  2027. if ac_fn_c_try_compile "$LINENO"; then :
  2028. ac_hi=$ac_mid; break
  2029. else
  2030. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2031. if test $ac_lo -le $ac_mid; then
  2032. ac_lo= ac_hi=
  2033. break
  2034. fi
  2035. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2036. fi
  2037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2038. done
  2039. else
  2040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2041. /* end confdefs.h. */
  2042. $4
  2043. int
  2044. main ()
  2045. {
  2046. static int test_array [1 - 2 * !(($2) < 0)];
  2047. test_array [0] = 0;
  2048. return test_array [0];
  2049. ;
  2050. return 0;
  2051. }
  2052. _ACEOF
  2053. if ac_fn_c_try_compile "$LINENO"; then :
  2054. ac_hi=-1 ac_mid=-1
  2055. while :; do
  2056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2057. /* end confdefs.h. */
  2058. $4
  2059. int
  2060. main ()
  2061. {
  2062. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2063. test_array [0] = 0;
  2064. return test_array [0];
  2065. ;
  2066. return 0;
  2067. }
  2068. _ACEOF
  2069. if ac_fn_c_try_compile "$LINENO"; then :
  2070. ac_lo=$ac_mid; break
  2071. else
  2072. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2073. if test $ac_mid -le $ac_hi; then
  2074. ac_lo= ac_hi=
  2075. break
  2076. fi
  2077. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2078. fi
  2079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2080. done
  2081. else
  2082. ac_lo= ac_hi=
  2083. fi
  2084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2085. fi
  2086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2087. # Binary search between lo and hi bounds.
  2088. while test "x$ac_lo" != "x$ac_hi"; do
  2089. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. int
  2094. main ()
  2095. {
  2096. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2097. test_array [0] = 0;
  2098. return test_array [0];
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. if ac_fn_c_try_compile "$LINENO"; then :
  2104. ac_hi=$ac_mid
  2105. else
  2106. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2107. fi
  2108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2109. done
  2110. case $ac_lo in #((
  2111. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2112. '') ac_retval=1 ;;
  2113. esac
  2114. else
  2115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2116. /* end confdefs.h. */
  2117. $4
  2118. static long int longval () { return $2; }
  2119. static unsigned long int ulongval () { return $2; }
  2120. #include <stdio.h>
  2121. #include <stdlib.h>
  2122. int
  2123. main ()
  2124. {
  2125. FILE *f = fopen ("conftest.val", "w");
  2126. if (! f)
  2127. return 1;
  2128. if (($2) < 0)
  2129. {
  2130. long int i = longval ();
  2131. if (i != ($2))
  2132. return 1;
  2133. fprintf (f, "%ld", i);
  2134. }
  2135. else
  2136. {
  2137. unsigned long int i = ulongval ();
  2138. if (i != ($2))
  2139. return 1;
  2140. fprintf (f, "%lu", i);
  2141. }
  2142. /* Do not output a trailing newline, as this causes \r\n confusion
  2143. on some platforms. */
  2144. return ferror (f) || fclose (f) != 0;
  2145. ;
  2146. return 0;
  2147. }
  2148. _ACEOF
  2149. if ac_fn_c_try_run "$LINENO"; then :
  2150. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2151. else
  2152. ac_retval=1
  2153. fi
  2154. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2155. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2156. rm -f conftest.val
  2157. fi
  2158. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2159. as_fn_set_status $ac_retval
  2160. } # ac_fn_c_compute_int
  2161. cat >config.log <<_ACEOF
  2162. This file contains any messages produced by compilers while
  2163. running configure, to aid debugging if configure makes a mistake.
  2164. It was created by $as_me, which was
  2165. generated by GNU Autoconf 2.69. Invocation command line was
  2166. $ $0 $@
  2167. _ACEOF
  2168. exec 5>>config.log
  2169. {
  2170. cat <<_ASUNAME
  2171. ## --------- ##
  2172. ## Platform. ##
  2173. ## --------- ##
  2174. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2175. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2176. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2177. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2178. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2179. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2180. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2181. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2182. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2183. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2184. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2185. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2186. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2187. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2188. _ASUNAME
  2189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2190. for as_dir in $PATH
  2191. do
  2192. IFS=$as_save_IFS
  2193. test -z "$as_dir" && as_dir=.
  2194. $as_echo "PATH: $as_dir"
  2195. done
  2196. IFS=$as_save_IFS
  2197. } >&5
  2198. cat >&5 <<_ACEOF
  2199. ## ----------- ##
  2200. ## Core tests. ##
  2201. ## ----------- ##
  2202. _ACEOF
  2203. # Keep a trace of the command line.
  2204. # Strip out --no-create and --no-recursion so they do not pile up.
  2205. # Strip out --silent because we don't want to record it for future runs.
  2206. # Also quote any args containing shell meta-characters.
  2207. # Make two passes to allow for proper duplicate-argument suppression.
  2208. ac_configure_args=
  2209. ac_configure_args0=
  2210. ac_configure_args1=
  2211. ac_must_keep_next=false
  2212. for ac_pass in 1 2
  2213. do
  2214. for ac_arg
  2215. do
  2216. case $ac_arg in
  2217. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2218. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2219. | -silent | --silent | --silen | --sile | --sil)
  2220. continue ;;
  2221. *\'*)
  2222. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2223. esac
  2224. case $ac_pass in
  2225. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2226. 2)
  2227. as_fn_append ac_configure_args1 " '$ac_arg'"
  2228. if test $ac_must_keep_next = true; then
  2229. ac_must_keep_next=false # Got value, back to normal.
  2230. else
  2231. case $ac_arg in
  2232. *=* | --config-cache | -C | -disable-* | --disable-* \
  2233. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2234. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2235. | -with-* | --with-* | -without-* | --without-* | --x)
  2236. case "$ac_configure_args0 " in
  2237. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2238. esac
  2239. ;;
  2240. -* ) ac_must_keep_next=true ;;
  2241. esac
  2242. fi
  2243. as_fn_append ac_configure_args " '$ac_arg'"
  2244. ;;
  2245. esac
  2246. done
  2247. done
  2248. { ac_configure_args0=; unset ac_configure_args0;}
  2249. { ac_configure_args1=; unset ac_configure_args1;}
  2250. # When interrupted or exit'd, cleanup temporary files, and complete
  2251. # config.log. We remove comments because anyway the quotes in there
  2252. # would cause problems or look ugly.
  2253. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2254. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2255. trap 'exit_status=$?
  2256. # Save into config.log some information that might help in debugging.
  2257. {
  2258. echo
  2259. $as_echo "## ---------------- ##
  2260. ## Cache variables. ##
  2261. ## ---------------- ##"
  2262. echo
  2263. # The following way of writing the cache mishandles newlines in values,
  2264. (
  2265. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2266. eval ac_val=\$$ac_var
  2267. case $ac_val in #(
  2268. *${as_nl}*)
  2269. case $ac_var in #(
  2270. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2271. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2272. esac
  2273. case $ac_var in #(
  2274. _ | IFS | as_nl) ;; #(
  2275. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2276. *) { eval $ac_var=; unset $ac_var;} ;;
  2277. esac ;;
  2278. esac
  2279. done
  2280. (set) 2>&1 |
  2281. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2282. *${as_nl}ac_space=\ *)
  2283. sed -n \
  2284. "s/'\''/'\''\\\\'\'''\''/g;
  2285. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2286. ;; #(
  2287. *)
  2288. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2289. ;;
  2290. esac |
  2291. sort
  2292. )
  2293. echo
  2294. $as_echo "## ----------------- ##
  2295. ## Output variables. ##
  2296. ## ----------------- ##"
  2297. echo
  2298. for ac_var in $ac_subst_vars
  2299. do
  2300. eval ac_val=\$$ac_var
  2301. case $ac_val in
  2302. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2303. esac
  2304. $as_echo "$ac_var='\''$ac_val'\''"
  2305. done | sort
  2306. echo
  2307. if test -n "$ac_subst_files"; then
  2308. $as_echo "## ------------------- ##
  2309. ## File substitutions. ##
  2310. ## ------------------- ##"
  2311. echo
  2312. for ac_var in $ac_subst_files
  2313. do
  2314. eval ac_val=\$$ac_var
  2315. case $ac_val in
  2316. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2317. esac
  2318. $as_echo "$ac_var='\''$ac_val'\''"
  2319. done | sort
  2320. echo
  2321. fi
  2322. if test -s confdefs.h; then
  2323. $as_echo "## ----------- ##
  2324. ## confdefs.h. ##
  2325. ## ----------- ##"
  2326. echo
  2327. cat confdefs.h
  2328. echo
  2329. fi
  2330. test "$ac_signal" != 0 &&
  2331. $as_echo "$as_me: caught signal $ac_signal"
  2332. $as_echo "$as_me: exit $exit_status"
  2333. } >&5
  2334. rm -f core *.core core.conftest.* &&
  2335. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2336. exit $exit_status
  2337. ' 0
  2338. for ac_signal in 1 2 13 15; do
  2339. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2340. done
  2341. ac_signal=0
  2342. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2343. rm -f -r conftest* confdefs.h
  2344. $as_echo "/* confdefs.h */" > confdefs.h
  2345. # Predefined preprocessor variables.
  2346. cat >>confdefs.h <<_ACEOF
  2347. #define PACKAGE_NAME "$PACKAGE_NAME"
  2348. _ACEOF
  2349. cat >>confdefs.h <<_ACEOF
  2350. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2351. _ACEOF
  2352. cat >>confdefs.h <<_ACEOF
  2353. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2354. _ACEOF
  2355. cat >>confdefs.h <<_ACEOF
  2356. #define PACKAGE_STRING "$PACKAGE_STRING"
  2357. _ACEOF
  2358. cat >>confdefs.h <<_ACEOF
  2359. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2360. _ACEOF
  2361. cat >>confdefs.h <<_ACEOF
  2362. #define PACKAGE_URL "$PACKAGE_URL"
  2363. _ACEOF
  2364. # Let the site file select an alternate cache file if it wants to.
  2365. # Prefer an explicitly selected file to automatically selected ones.
  2366. ac_site_file1=NONE
  2367. ac_site_file2=NONE
  2368. if test -n "$CONFIG_SITE"; then
  2369. # We do not want a PATH search for config.site.
  2370. case $CONFIG_SITE in #((
  2371. -*) ac_site_file1=./$CONFIG_SITE;;
  2372. */*) ac_site_file1=$CONFIG_SITE;;
  2373. *) ac_site_file1=./$CONFIG_SITE;;
  2374. esac
  2375. elif test "x$prefix" != xNONE; then
  2376. ac_site_file1=$prefix/share/config.site
  2377. ac_site_file2=$prefix/etc/config.site
  2378. else
  2379. ac_site_file1=$ac_default_prefix/share/config.site
  2380. ac_site_file2=$ac_default_prefix/etc/config.site
  2381. fi
  2382. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2383. do
  2384. test "x$ac_site_file" = xNONE && continue
  2385. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2387. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2388. sed 's/^/| /' "$ac_site_file" >&5
  2389. . "$ac_site_file" \
  2390. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2392. as_fn_error $? "failed to load site script $ac_site_file
  2393. See \`config.log' for more details" "$LINENO" 5; }
  2394. fi
  2395. done
  2396. if test -r "$cache_file"; then
  2397. # Some versions of bash will fail to source /dev/null (special files
  2398. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2399. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2401. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2402. case $cache_file in
  2403. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2404. *) . "./$cache_file";;
  2405. esac
  2406. fi
  2407. else
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2409. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2410. >$cache_file
  2411. fi
  2412. as_fn_append ac_header_list " stdlib.h"
  2413. as_fn_append ac_header_list " unistd.h"
  2414. as_fn_append ac_header_list " sys/param.h"
  2415. # Check that the precious variables saved in the cache have kept the same
  2416. # value.
  2417. ac_cache_corrupted=false
  2418. for ac_var in $ac_precious_vars; do
  2419. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2420. eval ac_new_set=\$ac_env_${ac_var}_set
  2421. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2422. eval ac_new_val=\$ac_env_${ac_var}_value
  2423. case $ac_old_set,$ac_new_set in
  2424. set,)
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2426. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2427. ac_cache_corrupted=: ;;
  2428. ,set)
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2430. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2431. ac_cache_corrupted=: ;;
  2432. ,);;
  2433. *)
  2434. if test "x$ac_old_val" != "x$ac_new_val"; then
  2435. # differences in whitespace do not lead to failure.
  2436. ac_old_val_w=`echo x $ac_old_val`
  2437. ac_new_val_w=`echo x $ac_new_val`
  2438. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2440. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2441. ac_cache_corrupted=:
  2442. else
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2444. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2445. eval $ac_var=\$ac_old_val
  2446. fi
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2448. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2450. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2451. fi;;
  2452. esac
  2453. # Pass precious variables to config.status.
  2454. if test "$ac_new_set" = set; then
  2455. case $ac_new_val in
  2456. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2457. *) ac_arg=$ac_var=$ac_new_val ;;
  2458. esac
  2459. case " $ac_configure_args " in
  2460. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2461. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2462. esac
  2463. fi
  2464. done
  2465. if $ac_cache_corrupted; then
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2467. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2469. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2470. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2471. fi
  2472. ## -------------------- ##
  2473. ## Main body of script. ##
  2474. ## -------------------- ##
  2475. ac_ext=c
  2476. ac_cpp='$CPP $CPPFLAGS'
  2477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2480. ac_config_headers="$ac_config_headers config.h:config.in"
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2482. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2483. # Check whether --enable-maintainer-mode was given.
  2484. if test "${enable_maintainer_mode+set}" = set; then :
  2485. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2486. else
  2487. USE_MAINTAINER_MODE=no
  2488. fi
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2490. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2491. if test $USE_MAINTAINER_MODE = yes; then
  2492. MAINTAINER_MODE_TRUE=
  2493. MAINTAINER_MODE_FALSE='#'
  2494. else
  2495. MAINTAINER_MODE_TRUE='#'
  2496. MAINTAINER_MODE_FALSE=
  2497. fi
  2498. MAINT=$MAINTAINER_MODE_TRUE
  2499. ac_ext=c
  2500. ac_cpp='$CPP $CPPFLAGS'
  2501. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2502. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2503. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2504. if test -n "$ac_tool_prefix"; then
  2505. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2506. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2508. $as_echo_n "checking for $ac_word... " >&6; }
  2509. if ${ac_cv_prog_CC+:} false; then :
  2510. $as_echo_n "(cached) " >&6
  2511. else
  2512. if test -n "$CC"; then
  2513. ac_cv_prog_CC="$CC" # Let the user override the test.
  2514. else
  2515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2516. for as_dir in $PATH
  2517. do
  2518. IFS=$as_save_IFS
  2519. test -z "$as_dir" && as_dir=.
  2520. for ac_exec_ext in '' $ac_executable_extensions; do
  2521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2522. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2524. break 2
  2525. fi
  2526. done
  2527. done
  2528. IFS=$as_save_IFS
  2529. fi
  2530. fi
  2531. CC=$ac_cv_prog_CC
  2532. if test -n "$CC"; then
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2534. $as_echo "$CC" >&6; }
  2535. else
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2537. $as_echo "no" >&6; }
  2538. fi
  2539. fi
  2540. if test -z "$ac_cv_prog_CC"; then
  2541. ac_ct_CC=$CC
  2542. # Extract the first word of "gcc", so it can be a program name with args.
  2543. set dummy gcc; ac_word=$2
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2545. $as_echo_n "checking for $ac_word... " >&6; }
  2546. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. if test -n "$ac_ct_CC"; then
  2550. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2551. else
  2552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2553. for as_dir in $PATH
  2554. do
  2555. IFS=$as_save_IFS
  2556. test -z "$as_dir" && as_dir=.
  2557. for ac_exec_ext in '' $ac_executable_extensions; do
  2558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2559. ac_cv_prog_ac_ct_CC="gcc"
  2560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2561. break 2
  2562. fi
  2563. done
  2564. done
  2565. IFS=$as_save_IFS
  2566. fi
  2567. fi
  2568. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2569. if test -n "$ac_ct_CC"; then
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2571. $as_echo "$ac_ct_CC" >&6; }
  2572. else
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2574. $as_echo "no" >&6; }
  2575. fi
  2576. if test "x$ac_ct_CC" = x; then
  2577. CC=""
  2578. else
  2579. case $cross_compiling:$ac_tool_warned in
  2580. yes:)
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2583. ac_tool_warned=yes ;;
  2584. esac
  2585. CC=$ac_ct_CC
  2586. fi
  2587. else
  2588. CC="$ac_cv_prog_CC"
  2589. fi
  2590. if test -z "$CC"; then
  2591. if test -n "$ac_tool_prefix"; then
  2592. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2593. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2595. $as_echo_n "checking for $ac_word... " >&6; }
  2596. if ${ac_cv_prog_CC+:} false; then :
  2597. $as_echo_n "(cached) " >&6
  2598. else
  2599. if test -n "$CC"; then
  2600. ac_cv_prog_CC="$CC" # Let the user override the test.
  2601. else
  2602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2603. for as_dir in $PATH
  2604. do
  2605. IFS=$as_save_IFS
  2606. test -z "$as_dir" && as_dir=.
  2607. for ac_exec_ext in '' $ac_executable_extensions; do
  2608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2609. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2611. break 2
  2612. fi
  2613. done
  2614. done
  2615. IFS=$as_save_IFS
  2616. fi
  2617. fi
  2618. CC=$ac_cv_prog_CC
  2619. if test -n "$CC"; then
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2621. $as_echo "$CC" >&6; }
  2622. else
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2624. $as_echo "no" >&6; }
  2625. fi
  2626. fi
  2627. fi
  2628. if test -z "$CC"; then
  2629. # Extract the first word of "cc", so it can be a program name with args.
  2630. set dummy cc; ac_word=$2
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2632. $as_echo_n "checking for $ac_word... " >&6; }
  2633. if ${ac_cv_prog_CC+:} false; then :
  2634. $as_echo_n "(cached) " >&6
  2635. else
  2636. if test -n "$CC"; then
  2637. ac_cv_prog_CC="$CC" # Let the user override the test.
  2638. else
  2639. ac_prog_rejected=no
  2640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2641. for as_dir in $PATH
  2642. do
  2643. IFS=$as_save_IFS
  2644. test -z "$as_dir" && as_dir=.
  2645. for ac_exec_ext in '' $ac_executable_extensions; do
  2646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2647. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2648. ac_prog_rejected=yes
  2649. continue
  2650. fi
  2651. ac_cv_prog_CC="cc"
  2652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2653. break 2
  2654. fi
  2655. done
  2656. done
  2657. IFS=$as_save_IFS
  2658. if test $ac_prog_rejected = yes; then
  2659. # We found a bogon in the path, so make sure we never use it.
  2660. set dummy $ac_cv_prog_CC
  2661. shift
  2662. if test $# != 0; then
  2663. # We chose a different compiler from the bogus one.
  2664. # However, it has the same basename, so the bogon will be chosen
  2665. # first if we set CC to just the basename; use the full file name.
  2666. shift
  2667. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2668. fi
  2669. fi
  2670. fi
  2671. fi
  2672. CC=$ac_cv_prog_CC
  2673. if test -n "$CC"; then
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2675. $as_echo "$CC" >&6; }
  2676. else
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2678. $as_echo "no" >&6; }
  2679. fi
  2680. fi
  2681. if test -z "$CC"; then
  2682. if test -n "$ac_tool_prefix"; then
  2683. for ac_prog in cl.exe
  2684. do
  2685. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2686. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2688. $as_echo_n "checking for $ac_word... " >&6; }
  2689. if ${ac_cv_prog_CC+:} false; then :
  2690. $as_echo_n "(cached) " >&6
  2691. else
  2692. if test -n "$CC"; then
  2693. ac_cv_prog_CC="$CC" # Let the user override the test.
  2694. else
  2695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2696. for as_dir in $PATH
  2697. do
  2698. IFS=$as_save_IFS
  2699. test -z "$as_dir" && as_dir=.
  2700. for ac_exec_ext in '' $ac_executable_extensions; do
  2701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2702. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2704. break 2
  2705. fi
  2706. done
  2707. done
  2708. IFS=$as_save_IFS
  2709. fi
  2710. fi
  2711. CC=$ac_cv_prog_CC
  2712. if test -n "$CC"; then
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2714. $as_echo "$CC" >&6; }
  2715. else
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2717. $as_echo "no" >&6; }
  2718. fi
  2719. test -n "$CC" && break
  2720. done
  2721. fi
  2722. if test -z "$CC"; then
  2723. ac_ct_CC=$CC
  2724. for ac_prog in cl.exe
  2725. do
  2726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2727. set dummy $ac_prog; ac_word=$2
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2729. $as_echo_n "checking for $ac_word... " >&6; }
  2730. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2731. $as_echo_n "(cached) " >&6
  2732. else
  2733. if test -n "$ac_ct_CC"; then
  2734. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2735. else
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739. IFS=$as_save_IFS
  2740. test -z "$as_dir" && as_dir=.
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2743. ac_cv_prog_ac_ct_CC="$ac_prog"
  2744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2745. break 2
  2746. fi
  2747. done
  2748. done
  2749. IFS=$as_save_IFS
  2750. fi
  2751. fi
  2752. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2753. if test -n "$ac_ct_CC"; then
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2755. $as_echo "$ac_ct_CC" >&6; }
  2756. else
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2758. $as_echo "no" >&6; }
  2759. fi
  2760. test -n "$ac_ct_CC" && break
  2761. done
  2762. if test "x$ac_ct_CC" = x; then
  2763. CC=""
  2764. else
  2765. case $cross_compiling:$ac_tool_warned in
  2766. yes:)
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2769. ac_tool_warned=yes ;;
  2770. esac
  2771. CC=$ac_ct_CC
  2772. fi
  2773. fi
  2774. fi
  2775. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2776. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2777. as_fn_error $? "no acceptable C compiler found in \$PATH
  2778. See \`config.log' for more details" "$LINENO" 5; }
  2779. # Provide some information about the compiler.
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2781. set X $ac_compile
  2782. ac_compiler=$2
  2783. for ac_option in --version -v -V -qversion; do
  2784. { { ac_try="$ac_compiler $ac_option >&5"
  2785. case "(($ac_try" in
  2786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2787. *) ac_try_echo=$ac_try;;
  2788. esac
  2789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2790. $as_echo "$ac_try_echo"; } >&5
  2791. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2792. ac_status=$?
  2793. if test -s conftest.err; then
  2794. sed '10a\
  2795. ... rest of stderr output deleted ...
  2796. 10q' conftest.err >conftest.er1
  2797. cat conftest.er1 >&5
  2798. fi
  2799. rm -f conftest.er1 conftest.err
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2801. test $ac_status = 0; }
  2802. done
  2803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2804. /* end confdefs.h. */
  2805. int
  2806. main ()
  2807. {
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. ac_clean_files_save=$ac_clean_files
  2813. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2814. # Try to create an executable without -o first, disregard a.out.
  2815. # It will help us diagnose broken compilers, and finding out an intuition
  2816. # of exeext.
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2818. $as_echo_n "checking whether the C compiler works... " >&6; }
  2819. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2820. # The possible output files:
  2821. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2822. ac_rmfiles=
  2823. for ac_file in $ac_files
  2824. do
  2825. case $ac_file in
  2826. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2827. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2828. esac
  2829. done
  2830. rm -f $ac_rmfiles
  2831. if { { ac_try="$ac_link_default"
  2832. case "(($ac_try" in
  2833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2834. *) ac_try_echo=$ac_try;;
  2835. esac
  2836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2837. $as_echo "$ac_try_echo"; } >&5
  2838. (eval "$ac_link_default") 2>&5
  2839. ac_status=$?
  2840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2841. test $ac_status = 0; }; then :
  2842. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2843. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2844. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2845. # so that the user can short-circuit this test for compilers unknown to
  2846. # Autoconf.
  2847. for ac_file in $ac_files ''
  2848. do
  2849. test -f "$ac_file" || continue
  2850. case $ac_file in
  2851. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2852. ;;
  2853. [ab].out )
  2854. # We found the default executable, but exeext='' is most
  2855. # certainly right.
  2856. break;;
  2857. *.* )
  2858. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2859. then :; else
  2860. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2861. fi
  2862. # We set ac_cv_exeext here because the later test for it is not
  2863. # safe: cross compilers may not add the suffix if given an `-o'
  2864. # argument, so we may need to know it at that point already.
  2865. # Even if this section looks crufty: it has the advantage of
  2866. # actually working.
  2867. break;;
  2868. * )
  2869. break;;
  2870. esac
  2871. done
  2872. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2873. else
  2874. ac_file=''
  2875. fi
  2876. if test -z "$ac_file"; then :
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2878. $as_echo "no" >&6; }
  2879. $as_echo "$as_me: failed program was:" >&5
  2880. sed 's/^/| /' conftest.$ac_ext >&5
  2881. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2883. as_fn_error 77 "C compiler cannot create executables
  2884. See \`config.log' for more details" "$LINENO" 5; }
  2885. else
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2887. $as_echo "yes" >&6; }
  2888. fi
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2890. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2892. $as_echo "$ac_file" >&6; }
  2893. ac_exeext=$ac_cv_exeext
  2894. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2895. ac_clean_files=$ac_clean_files_save
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2897. $as_echo_n "checking for suffix of executables... " >&6; }
  2898. if { { ac_try="$ac_link"
  2899. case "(($ac_try" in
  2900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2901. *) ac_try_echo=$ac_try;;
  2902. esac
  2903. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2904. $as_echo "$ac_try_echo"; } >&5
  2905. (eval "$ac_link") 2>&5
  2906. ac_status=$?
  2907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2908. test $ac_status = 0; }; then :
  2909. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2910. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2911. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2912. # `rm'.
  2913. for ac_file in conftest.exe conftest conftest.*; do
  2914. test -f "$ac_file" || continue
  2915. case $ac_file in
  2916. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2917. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2918. break;;
  2919. * ) break;;
  2920. esac
  2921. done
  2922. else
  2923. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2924. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2925. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2926. See \`config.log' for more details" "$LINENO" 5; }
  2927. fi
  2928. rm -f conftest conftest$ac_cv_exeext
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2930. $as_echo "$ac_cv_exeext" >&6; }
  2931. rm -f conftest.$ac_ext
  2932. EXEEXT=$ac_cv_exeext
  2933. ac_exeext=$EXEEXT
  2934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2935. /* end confdefs.h. */
  2936. #include <stdio.h>
  2937. int
  2938. main ()
  2939. {
  2940. FILE *f = fopen ("conftest.out", "w");
  2941. return ferror (f) || fclose (f) != 0;
  2942. ;
  2943. return 0;
  2944. }
  2945. _ACEOF
  2946. ac_clean_files="$ac_clean_files conftest.out"
  2947. # Check that the compiler produces executables we can run. If not, either
  2948. # the compiler is broken, or we cross compile.
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2950. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2951. if test "$cross_compiling" != yes; then
  2952. { { ac_try="$ac_link"
  2953. case "(($ac_try" in
  2954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2955. *) ac_try_echo=$ac_try;;
  2956. esac
  2957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2958. $as_echo "$ac_try_echo"; } >&5
  2959. (eval "$ac_link") 2>&5
  2960. ac_status=$?
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2962. test $ac_status = 0; }
  2963. if { ac_try='./conftest$ac_cv_exeext'
  2964. { { case "(($ac_try" in
  2965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2966. *) ac_try_echo=$ac_try;;
  2967. esac
  2968. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2969. $as_echo "$ac_try_echo"; } >&5
  2970. (eval "$ac_try") 2>&5
  2971. ac_status=$?
  2972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2973. test $ac_status = 0; }; }; then
  2974. cross_compiling=no
  2975. else
  2976. if test "$cross_compiling" = maybe; then
  2977. cross_compiling=yes
  2978. else
  2979. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2980. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2981. as_fn_error $? "cannot run C compiled programs.
  2982. If you meant to cross compile, use \`--host'.
  2983. See \`config.log' for more details" "$LINENO" 5; }
  2984. fi
  2985. fi
  2986. fi
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2988. $as_echo "$cross_compiling" >&6; }
  2989. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2990. ac_clean_files=$ac_clean_files_save
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2992. $as_echo_n "checking for suffix of object files... " >&6; }
  2993. if ${ac_cv_objext+:} false; then :
  2994. $as_echo_n "(cached) " >&6
  2995. else
  2996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2997. /* end confdefs.h. */
  2998. int
  2999. main ()
  3000. {
  3001. ;
  3002. return 0;
  3003. }
  3004. _ACEOF
  3005. rm -f conftest.o conftest.obj
  3006. if { { ac_try="$ac_compile"
  3007. case "(($ac_try" in
  3008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3009. *) ac_try_echo=$ac_try;;
  3010. esac
  3011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3012. $as_echo "$ac_try_echo"; } >&5
  3013. (eval "$ac_compile") 2>&5
  3014. ac_status=$?
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3016. test $ac_status = 0; }; then :
  3017. for ac_file in conftest.o conftest.obj conftest.*; do
  3018. test -f "$ac_file" || continue;
  3019. case $ac_file in
  3020. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3021. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3022. break;;
  3023. esac
  3024. done
  3025. else
  3026. $as_echo "$as_me: failed program was:" >&5
  3027. sed 's/^/| /' conftest.$ac_ext >&5
  3028. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3030. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3031. See \`config.log' for more details" "$LINENO" 5; }
  3032. fi
  3033. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3034. fi
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3036. $as_echo "$ac_cv_objext" >&6; }
  3037. OBJEXT=$ac_cv_objext
  3038. ac_objext=$OBJEXT
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3040. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3041. if ${ac_cv_c_compiler_gnu+:} false; then :
  3042. $as_echo_n "(cached) " >&6
  3043. else
  3044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3045. /* end confdefs.h. */
  3046. int
  3047. main ()
  3048. {
  3049. #ifndef __GNUC__
  3050. choke me
  3051. #endif
  3052. ;
  3053. return 0;
  3054. }
  3055. _ACEOF
  3056. if ac_fn_c_try_compile "$LINENO"; then :
  3057. ac_compiler_gnu=yes
  3058. else
  3059. ac_compiler_gnu=no
  3060. fi
  3061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3062. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3063. fi
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3065. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3066. if test $ac_compiler_gnu = yes; then
  3067. GCC=yes
  3068. else
  3069. GCC=
  3070. fi
  3071. ac_test_CFLAGS=${CFLAGS+set}
  3072. ac_save_CFLAGS=$CFLAGS
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3074. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3075. if ${ac_cv_prog_cc_g+:} false; then :
  3076. $as_echo_n "(cached) " >&6
  3077. else
  3078. ac_save_c_werror_flag=$ac_c_werror_flag
  3079. ac_c_werror_flag=yes
  3080. ac_cv_prog_cc_g=no
  3081. CFLAGS="-g"
  3082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3083. /* end confdefs.h. */
  3084. int
  3085. main ()
  3086. {
  3087. ;
  3088. return 0;
  3089. }
  3090. _ACEOF
  3091. if ac_fn_c_try_compile "$LINENO"; then :
  3092. ac_cv_prog_cc_g=yes
  3093. else
  3094. CFLAGS=""
  3095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3096. /* end confdefs.h. */
  3097. int
  3098. main ()
  3099. {
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. if ac_fn_c_try_compile "$LINENO"; then :
  3105. else
  3106. ac_c_werror_flag=$ac_save_c_werror_flag
  3107. CFLAGS="-g"
  3108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3109. /* end confdefs.h. */
  3110. int
  3111. main ()
  3112. {
  3113. ;
  3114. return 0;
  3115. }
  3116. _ACEOF
  3117. if ac_fn_c_try_compile "$LINENO"; then :
  3118. ac_cv_prog_cc_g=yes
  3119. fi
  3120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3121. fi
  3122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3123. fi
  3124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3125. ac_c_werror_flag=$ac_save_c_werror_flag
  3126. fi
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3128. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3129. if test "$ac_test_CFLAGS" = set; then
  3130. CFLAGS=$ac_save_CFLAGS
  3131. elif test $ac_cv_prog_cc_g = yes; then
  3132. if test "$GCC" = yes; then
  3133. CFLAGS="-g -O2"
  3134. else
  3135. CFLAGS="-g"
  3136. fi
  3137. else
  3138. if test "$GCC" = yes; then
  3139. CFLAGS="-O2"
  3140. else
  3141. CFLAGS=
  3142. fi
  3143. fi
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3145. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3146. if ${ac_cv_prog_cc_c89+:} false; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. ac_cv_prog_cc_c89=no
  3150. ac_save_CC=$CC
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. #include <stdarg.h>
  3154. #include <stdio.h>
  3155. struct stat;
  3156. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3157. struct buf { int x; };
  3158. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3159. static char *e (p, i)
  3160. char **p;
  3161. int i;
  3162. {
  3163. return p[i];
  3164. }
  3165. static char *f (char * (*g) (char **, int), char **p, ...)
  3166. {
  3167. char *s;
  3168. va_list v;
  3169. va_start (v,p);
  3170. s = g (p, va_arg (v,int));
  3171. va_end (v);
  3172. return s;
  3173. }
  3174. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3175. function prototypes and stuff, but not '\xHH' hex character constants.
  3176. These don't provoke an error unfortunately, instead are silently treated
  3177. as 'x'. The following induces an error, until -std is added to get
  3178. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3179. array size at least. It's necessary to write '\x00'==0 to get something
  3180. that's true only with -std. */
  3181. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3182. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3183. inside strings and character constants. */
  3184. #define FOO(x) 'x'
  3185. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3186. int test (int i, double x);
  3187. struct s1 {int (*f) (int a);};
  3188. struct s2 {int (*f) (double a);};
  3189. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3190. int argc;
  3191. char **argv;
  3192. int
  3193. main ()
  3194. {
  3195. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3201. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3202. do
  3203. CC="$ac_save_CC $ac_arg"
  3204. if ac_fn_c_try_compile "$LINENO"; then :
  3205. ac_cv_prog_cc_c89=$ac_arg
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext
  3208. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3209. done
  3210. rm -f conftest.$ac_ext
  3211. CC=$ac_save_CC
  3212. fi
  3213. # AC_CACHE_VAL
  3214. case "x$ac_cv_prog_cc_c89" in
  3215. x)
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3217. $as_echo "none needed" >&6; } ;;
  3218. xno)
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3220. $as_echo "unsupported" >&6; } ;;
  3221. *)
  3222. CC="$CC $ac_cv_prog_cc_c89"
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3224. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3225. esac
  3226. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3227. fi
  3228. ac_ext=c
  3229. ac_cpp='$CPP $CPPFLAGS'
  3230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3233. ac_ext=cpp
  3234. ac_cpp='$CXXCPP $CPPFLAGS'
  3235. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3236. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3238. if test -z "$CXX"; then
  3239. if test -n "$CCC"; then
  3240. CXX=$CCC
  3241. else
  3242. if test -n "$ac_tool_prefix"; then
  3243. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3244. do
  3245. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3246. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3248. $as_echo_n "checking for $ac_word... " >&6; }
  3249. if ${ac_cv_prog_CXX+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. if test -n "$CXX"; then
  3253. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3254. else
  3255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3256. for as_dir in $PATH
  3257. do
  3258. IFS=$as_save_IFS
  3259. test -z "$as_dir" && as_dir=.
  3260. for ac_exec_ext in '' $ac_executable_extensions; do
  3261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3262. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3264. break 2
  3265. fi
  3266. done
  3267. done
  3268. IFS=$as_save_IFS
  3269. fi
  3270. fi
  3271. CXX=$ac_cv_prog_CXX
  3272. if test -n "$CXX"; then
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3274. $as_echo "$CXX" >&6; }
  3275. else
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3277. $as_echo "no" >&6; }
  3278. fi
  3279. test -n "$CXX" && break
  3280. done
  3281. fi
  3282. if test -z "$CXX"; then
  3283. ac_ct_CXX=$CXX
  3284. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3285. do
  3286. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3287. set dummy $ac_prog; ac_word=$2
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3289. $as_echo_n "checking for $ac_word... " >&6; }
  3290. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3291. $as_echo_n "(cached) " >&6
  3292. else
  3293. if test -n "$ac_ct_CXX"; then
  3294. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3295. else
  3296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3297. for as_dir in $PATH
  3298. do
  3299. IFS=$as_save_IFS
  3300. test -z "$as_dir" && as_dir=.
  3301. for ac_exec_ext in '' $ac_executable_extensions; do
  3302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3303. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3305. break 2
  3306. fi
  3307. done
  3308. done
  3309. IFS=$as_save_IFS
  3310. fi
  3311. fi
  3312. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3313. if test -n "$ac_ct_CXX"; then
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3315. $as_echo "$ac_ct_CXX" >&6; }
  3316. else
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3318. $as_echo "no" >&6; }
  3319. fi
  3320. test -n "$ac_ct_CXX" && break
  3321. done
  3322. if test "x$ac_ct_CXX" = x; then
  3323. CXX="g++"
  3324. else
  3325. case $cross_compiling:$ac_tool_warned in
  3326. yes:)
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3328. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3329. ac_tool_warned=yes ;;
  3330. esac
  3331. CXX=$ac_ct_CXX
  3332. fi
  3333. fi
  3334. fi
  3335. fi
  3336. # Provide some information about the compiler.
  3337. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3338. set X $ac_compile
  3339. ac_compiler=$2
  3340. for ac_option in --version -v -V -qversion; do
  3341. { { ac_try="$ac_compiler $ac_option >&5"
  3342. case "(($ac_try" in
  3343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3344. *) ac_try_echo=$ac_try;;
  3345. esac
  3346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3347. $as_echo "$ac_try_echo"; } >&5
  3348. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3349. ac_status=$?
  3350. if test -s conftest.err; then
  3351. sed '10a\
  3352. ... rest of stderr output deleted ...
  3353. 10q' conftest.err >conftest.er1
  3354. cat conftest.er1 >&5
  3355. fi
  3356. rm -f conftest.er1 conftest.err
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3358. test $ac_status = 0; }
  3359. done
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3361. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3362. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. int
  3368. main ()
  3369. {
  3370. #ifndef __GNUC__
  3371. choke me
  3372. #endif
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. if ac_fn_cxx_try_compile "$LINENO"; then :
  3378. ac_compiler_gnu=yes
  3379. else
  3380. ac_compiler_gnu=no
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3384. fi
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3386. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3387. if test $ac_compiler_gnu = yes; then
  3388. GXX=yes
  3389. else
  3390. GXX=
  3391. fi
  3392. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3393. ac_save_CXXFLAGS=$CXXFLAGS
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3395. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3396. if ${ac_cv_prog_cxx_g+:} false; then :
  3397. $as_echo_n "(cached) " >&6
  3398. else
  3399. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3400. ac_cxx_werror_flag=yes
  3401. ac_cv_prog_cxx_g=no
  3402. CXXFLAGS="-g"
  3403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3404. /* end confdefs.h. */
  3405. int
  3406. main ()
  3407. {
  3408. ;
  3409. return 0;
  3410. }
  3411. _ACEOF
  3412. if ac_fn_cxx_try_compile "$LINENO"; then :
  3413. ac_cv_prog_cxx_g=yes
  3414. else
  3415. CXXFLAGS=""
  3416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3417. /* end confdefs.h. */
  3418. int
  3419. main ()
  3420. {
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. if ac_fn_cxx_try_compile "$LINENO"; then :
  3426. else
  3427. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3428. CXXFLAGS="-g"
  3429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3430. /* end confdefs.h. */
  3431. int
  3432. main ()
  3433. {
  3434. ;
  3435. return 0;
  3436. }
  3437. _ACEOF
  3438. if ac_fn_cxx_try_compile "$LINENO"; then :
  3439. ac_cv_prog_cxx_g=yes
  3440. fi
  3441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3442. fi
  3443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3444. fi
  3445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3446. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3447. fi
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3449. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3450. if test "$ac_test_CXXFLAGS" = set; then
  3451. CXXFLAGS=$ac_save_CXXFLAGS
  3452. elif test $ac_cv_prog_cxx_g = yes; then
  3453. if test "$GXX" = yes; then
  3454. CXXFLAGS="-g -O2"
  3455. else
  3456. CXXFLAGS="-g"
  3457. fi
  3458. else
  3459. if test "$GXX" = yes; then
  3460. CXXFLAGS="-O2"
  3461. else
  3462. CXXFLAGS=
  3463. fi
  3464. fi
  3465. ac_ext=c
  3466. ac_cpp='$CPP $CPPFLAGS'
  3467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3470. ac_ext=c
  3471. ac_cpp='$CPP $CPPFLAGS'
  3472. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3473. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3474. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3476. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3477. # On Suns, sometimes $CPP names a directory.
  3478. if test -n "$CPP" && test -d "$CPP"; then
  3479. CPP=
  3480. fi
  3481. if test -z "$CPP"; then
  3482. if ${ac_cv_prog_CPP+:} false; then :
  3483. $as_echo_n "(cached) " >&6
  3484. else
  3485. # Double quotes because CPP needs to be expanded
  3486. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3487. do
  3488. ac_preproc_ok=false
  3489. for ac_c_preproc_warn_flag in '' yes
  3490. do
  3491. # Use a header file that comes with gcc, so configuring glibc
  3492. # with a fresh cross-compiler works.
  3493. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3494. # <limits.h> exists even on freestanding compilers.
  3495. # On the NeXT, cc -E runs the code through the compiler's parser,
  3496. # not just through cpp. "Syntax error" is here to catch this case.
  3497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3498. /* end confdefs.h. */
  3499. #ifdef __STDC__
  3500. # include <limits.h>
  3501. #else
  3502. # include <assert.h>
  3503. #endif
  3504. Syntax error
  3505. _ACEOF
  3506. if ac_fn_c_try_cpp "$LINENO"; then :
  3507. else
  3508. # Broken: fails on valid input.
  3509. continue
  3510. fi
  3511. rm -f conftest.err conftest.i conftest.$ac_ext
  3512. # OK, works on sane cases. Now check whether nonexistent headers
  3513. # can be detected and how.
  3514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3515. /* end confdefs.h. */
  3516. #include <ac_nonexistent.h>
  3517. _ACEOF
  3518. if ac_fn_c_try_cpp "$LINENO"; then :
  3519. # Broken: success on invalid input.
  3520. continue
  3521. else
  3522. # Passes both tests.
  3523. ac_preproc_ok=:
  3524. break
  3525. fi
  3526. rm -f conftest.err conftest.i conftest.$ac_ext
  3527. done
  3528. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3529. rm -f conftest.i conftest.err conftest.$ac_ext
  3530. if $ac_preproc_ok; then :
  3531. break
  3532. fi
  3533. done
  3534. ac_cv_prog_CPP=$CPP
  3535. fi
  3536. CPP=$ac_cv_prog_CPP
  3537. else
  3538. ac_cv_prog_CPP=$CPP
  3539. fi
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3541. $as_echo "$CPP" >&6; }
  3542. ac_preproc_ok=false
  3543. for ac_c_preproc_warn_flag in '' yes
  3544. do
  3545. # Use a header file that comes with gcc, so configuring glibc
  3546. # with a fresh cross-compiler works.
  3547. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3548. # <limits.h> exists even on freestanding compilers.
  3549. # On the NeXT, cc -E runs the code through the compiler's parser,
  3550. # not just through cpp. "Syntax error" is here to catch this case.
  3551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3552. /* end confdefs.h. */
  3553. #ifdef __STDC__
  3554. # include <limits.h>
  3555. #else
  3556. # include <assert.h>
  3557. #endif
  3558. Syntax error
  3559. _ACEOF
  3560. if ac_fn_c_try_cpp "$LINENO"; then :
  3561. else
  3562. # Broken: fails on valid input.
  3563. continue
  3564. fi
  3565. rm -f conftest.err conftest.i conftest.$ac_ext
  3566. # OK, works on sane cases. Now check whether nonexistent headers
  3567. # can be detected and how.
  3568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3569. /* end confdefs.h. */
  3570. #include <ac_nonexistent.h>
  3571. _ACEOF
  3572. if ac_fn_c_try_cpp "$LINENO"; then :
  3573. # Broken: success on invalid input.
  3574. continue
  3575. else
  3576. # Passes both tests.
  3577. ac_preproc_ok=:
  3578. break
  3579. fi
  3580. rm -f conftest.err conftest.i conftest.$ac_ext
  3581. done
  3582. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3583. rm -f conftest.i conftest.err conftest.$ac_ext
  3584. if $ac_preproc_ok; then :
  3585. else
  3586. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3588. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3589. See \`config.log' for more details" "$LINENO" 5; }
  3590. fi
  3591. ac_ext=c
  3592. ac_cpp='$CPP $CPPFLAGS'
  3593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3597. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3598. if ${ac_cv_path_GREP+:} false; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. if test -z "$GREP"; then
  3602. ac_path_GREP_found=false
  3603. # Loop through the user's path and test for each of PROGNAME-LIST
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3606. do
  3607. IFS=$as_save_IFS
  3608. test -z "$as_dir" && as_dir=.
  3609. for ac_prog in grep ggrep; do
  3610. for ac_exec_ext in '' $ac_executable_extensions; do
  3611. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3612. as_fn_executable_p "$ac_path_GREP" || continue
  3613. # Check for GNU ac_path_GREP and select it if it is found.
  3614. # Check for GNU $ac_path_GREP
  3615. case `"$ac_path_GREP" --version 2>&1` in
  3616. *GNU*)
  3617. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3618. *)
  3619. ac_count=0
  3620. $as_echo_n 0123456789 >"conftest.in"
  3621. while :
  3622. do
  3623. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3624. mv "conftest.tmp" "conftest.in"
  3625. cp "conftest.in" "conftest.nl"
  3626. $as_echo 'GREP' >> "conftest.nl"
  3627. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3628. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3629. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3630. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3631. # Best one so far, save it but keep looking for a better one
  3632. ac_cv_path_GREP="$ac_path_GREP"
  3633. ac_path_GREP_max=$ac_count
  3634. fi
  3635. # 10*(2^10) chars as input seems more than enough
  3636. test $ac_count -gt 10 && break
  3637. done
  3638. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3639. esac
  3640. $ac_path_GREP_found && break 3
  3641. done
  3642. done
  3643. done
  3644. IFS=$as_save_IFS
  3645. if test -z "$ac_cv_path_GREP"; then
  3646. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3647. fi
  3648. else
  3649. ac_cv_path_GREP=$GREP
  3650. fi
  3651. fi
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3653. $as_echo "$ac_cv_path_GREP" >&6; }
  3654. GREP="$ac_cv_path_GREP"
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3656. $as_echo_n "checking for egrep... " >&6; }
  3657. if ${ac_cv_path_EGREP+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3661. then ac_cv_path_EGREP="$GREP -E"
  3662. else
  3663. if test -z "$EGREP"; then
  3664. ac_path_EGREP_found=false
  3665. # Loop through the user's path and test for each of PROGNAME-LIST
  3666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3667. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3668. do
  3669. IFS=$as_save_IFS
  3670. test -z "$as_dir" && as_dir=.
  3671. for ac_prog in egrep; do
  3672. for ac_exec_ext in '' $ac_executable_extensions; do
  3673. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3674. as_fn_executable_p "$ac_path_EGREP" || continue
  3675. # Check for GNU ac_path_EGREP and select it if it is found.
  3676. # Check for GNU $ac_path_EGREP
  3677. case `"$ac_path_EGREP" --version 2>&1` in
  3678. *GNU*)
  3679. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3680. *)
  3681. ac_count=0
  3682. $as_echo_n 0123456789 >"conftest.in"
  3683. while :
  3684. do
  3685. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3686. mv "conftest.tmp" "conftest.in"
  3687. cp "conftest.in" "conftest.nl"
  3688. $as_echo 'EGREP' >> "conftest.nl"
  3689. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3690. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3691. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3692. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3693. # Best one so far, save it but keep looking for a better one
  3694. ac_cv_path_EGREP="$ac_path_EGREP"
  3695. ac_path_EGREP_max=$ac_count
  3696. fi
  3697. # 10*(2^10) chars as input seems more than enough
  3698. test $ac_count -gt 10 && break
  3699. done
  3700. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3701. esac
  3702. $ac_path_EGREP_found && break 3
  3703. done
  3704. done
  3705. done
  3706. IFS=$as_save_IFS
  3707. if test -z "$ac_cv_path_EGREP"; then
  3708. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3709. fi
  3710. else
  3711. ac_cv_path_EGREP=$EGREP
  3712. fi
  3713. fi
  3714. fi
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3716. $as_echo "$ac_cv_path_EGREP" >&6; }
  3717. EGREP="$ac_cv_path_EGREP"
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3719. $as_echo_n "checking for ANSI C header files... " >&6; }
  3720. if ${ac_cv_header_stdc+:} false; then :
  3721. $as_echo_n "(cached) " >&6
  3722. else
  3723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3724. /* end confdefs.h. */
  3725. #include <stdlib.h>
  3726. #include <stdarg.h>
  3727. #include <string.h>
  3728. #include <float.h>
  3729. int
  3730. main ()
  3731. {
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. if ac_fn_c_try_compile "$LINENO"; then :
  3737. ac_cv_header_stdc=yes
  3738. else
  3739. ac_cv_header_stdc=no
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. if test $ac_cv_header_stdc = yes; then
  3743. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3745. /* end confdefs.h. */
  3746. #include <string.h>
  3747. _ACEOF
  3748. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3749. $EGREP "memchr" >/dev/null 2>&1; then :
  3750. else
  3751. ac_cv_header_stdc=no
  3752. fi
  3753. rm -f conftest*
  3754. fi
  3755. if test $ac_cv_header_stdc = yes; then
  3756. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3758. /* end confdefs.h. */
  3759. #include <stdlib.h>
  3760. _ACEOF
  3761. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3762. $EGREP "free" >/dev/null 2>&1; then :
  3763. else
  3764. ac_cv_header_stdc=no
  3765. fi
  3766. rm -f conftest*
  3767. fi
  3768. if test $ac_cv_header_stdc = yes; then
  3769. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3770. if test "$cross_compiling" = yes; then :
  3771. :
  3772. else
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. #include <ctype.h>
  3776. #include <stdlib.h>
  3777. #if ((' ' & 0x0FF) == 0x020)
  3778. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3779. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3780. #else
  3781. # define ISLOWER(c) \
  3782. (('a' <= (c) && (c) <= 'i') \
  3783. || ('j' <= (c) && (c) <= 'r') \
  3784. || ('s' <= (c) && (c) <= 'z'))
  3785. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3786. #endif
  3787. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3788. int
  3789. main ()
  3790. {
  3791. int i;
  3792. for (i = 0; i < 256; i++)
  3793. if (XOR (islower (i), ISLOWER (i))
  3794. || toupper (i) != TOUPPER (i))
  3795. return 2;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. if ac_fn_c_try_run "$LINENO"; then :
  3800. else
  3801. ac_cv_header_stdc=no
  3802. fi
  3803. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3804. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3805. fi
  3806. fi
  3807. fi
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3809. $as_echo "$ac_cv_header_stdc" >&6; }
  3810. if test $ac_cv_header_stdc = yes; then
  3811. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3812. fi
  3813. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3814. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3815. inttypes.h stdint.h unistd.h
  3816. do :
  3817. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3818. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3819. "
  3820. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3821. cat >>confdefs.h <<_ACEOF
  3822. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3823. _ACEOF
  3824. fi
  3825. done
  3826. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3827. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3828. MINIX=yes
  3829. else
  3830. MINIX=
  3831. fi
  3832. if test "$MINIX" = yes; then
  3833. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3834. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3835. $as_echo "#define _MINIX 1" >>confdefs.h
  3836. fi
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3838. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3839. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3840. $as_echo_n "(cached) " >&6
  3841. else
  3842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3843. /* end confdefs.h. */
  3844. # define __EXTENSIONS__ 1
  3845. $ac_includes_default
  3846. int
  3847. main ()
  3848. {
  3849. ;
  3850. return 0;
  3851. }
  3852. _ACEOF
  3853. if ac_fn_c_try_compile "$LINENO"; then :
  3854. ac_cv_safe_to_define___extensions__=yes
  3855. else
  3856. ac_cv_safe_to_define___extensions__=no
  3857. fi
  3858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3859. fi
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3861. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3862. test $ac_cv_safe_to_define___extensions__ = yes &&
  3863. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3864. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3865. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3866. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3867. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3868. # Check whether --enable-largefile was given.
  3869. if test "${enable_largefile+set}" = set; then :
  3870. enableval=$enable_largefile;
  3871. fi
  3872. if test "$enable_largefile" != no; then
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3874. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3875. if ${ac_cv_sys_largefile_CC+:} false; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. ac_cv_sys_largefile_CC=no
  3879. if test "$GCC" != yes; then
  3880. ac_save_CC=$CC
  3881. while :; do
  3882. # IRIX 6.2 and later do not support large files by default,
  3883. # so use the C compiler's -n32 option if that helps.
  3884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3885. /* end confdefs.h. */
  3886. #include <sys/types.h>
  3887. /* Check that off_t can represent 2**63 - 1 correctly.
  3888. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3889. since some C++ compilers masquerading as C compilers
  3890. incorrectly reject 9223372036854775807. */
  3891. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3892. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3893. && LARGE_OFF_T % 2147483647 == 1)
  3894. ? 1 : -1];
  3895. int
  3896. main ()
  3897. {
  3898. ;
  3899. return 0;
  3900. }
  3901. _ACEOF
  3902. if ac_fn_c_try_compile "$LINENO"; then :
  3903. break
  3904. fi
  3905. rm -f core conftest.err conftest.$ac_objext
  3906. CC="$CC -n32"
  3907. if ac_fn_c_try_compile "$LINENO"; then :
  3908. ac_cv_sys_largefile_CC=' -n32'; break
  3909. fi
  3910. rm -f core conftest.err conftest.$ac_objext
  3911. break
  3912. done
  3913. CC=$ac_save_CC
  3914. rm -f conftest.$ac_ext
  3915. fi
  3916. fi
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3918. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3919. if test "$ac_cv_sys_largefile_CC" != no; then
  3920. CC=$CC$ac_cv_sys_largefile_CC
  3921. fi
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3923. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3924. if ${ac_cv_sys_file_offset_bits+:} false; then :
  3925. $as_echo_n "(cached) " >&6
  3926. else
  3927. while :; do
  3928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3929. /* end confdefs.h. */
  3930. #include <sys/types.h>
  3931. /* Check that off_t can represent 2**63 - 1 correctly.
  3932. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3933. since some C++ compilers masquerading as C compilers
  3934. incorrectly reject 9223372036854775807. */
  3935. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3936. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3937. && LARGE_OFF_T % 2147483647 == 1)
  3938. ? 1 : -1];
  3939. int
  3940. main ()
  3941. {
  3942. ;
  3943. return 0;
  3944. }
  3945. _ACEOF
  3946. if ac_fn_c_try_compile "$LINENO"; then :
  3947. ac_cv_sys_file_offset_bits=no; break
  3948. fi
  3949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3951. /* end confdefs.h. */
  3952. #define _FILE_OFFSET_BITS 64
  3953. #include <sys/types.h>
  3954. /* Check that off_t can represent 2**63 - 1 correctly.
  3955. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3956. since some C++ compilers masquerading as C compilers
  3957. incorrectly reject 9223372036854775807. */
  3958. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3959. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3960. && LARGE_OFF_T % 2147483647 == 1)
  3961. ? 1 : -1];
  3962. int
  3963. main ()
  3964. {
  3965. ;
  3966. return 0;
  3967. }
  3968. _ACEOF
  3969. if ac_fn_c_try_compile "$LINENO"; then :
  3970. ac_cv_sys_file_offset_bits=64; break
  3971. fi
  3972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3973. ac_cv_sys_file_offset_bits=unknown
  3974. break
  3975. done
  3976. fi
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3978. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3979. case $ac_cv_sys_file_offset_bits in #(
  3980. no | unknown) ;;
  3981. *)
  3982. cat >>confdefs.h <<_ACEOF
  3983. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3984. _ACEOF
  3985. ;;
  3986. esac
  3987. rm -rf conftest*
  3988. if test $ac_cv_sys_file_offset_bits = unknown; then
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3990. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3991. if ${ac_cv_sys_large_files+:} false; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. while :; do
  3995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3996. /* end confdefs.h. */
  3997. #include <sys/types.h>
  3998. /* Check that off_t can represent 2**63 - 1 correctly.
  3999. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4000. since some C++ compilers masquerading as C compilers
  4001. incorrectly reject 9223372036854775807. */
  4002. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4003. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4004. && LARGE_OFF_T % 2147483647 == 1)
  4005. ? 1 : -1];
  4006. int
  4007. main ()
  4008. {
  4009. ;
  4010. return 0;
  4011. }
  4012. _ACEOF
  4013. if ac_fn_c_try_compile "$LINENO"; then :
  4014. ac_cv_sys_large_files=no; break
  4015. fi
  4016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. #define _LARGE_FILES 1
  4020. #include <sys/types.h>
  4021. /* Check that off_t can represent 2**63 - 1 correctly.
  4022. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4023. since some C++ compilers masquerading as C compilers
  4024. incorrectly reject 9223372036854775807. */
  4025. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4026. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4027. && LARGE_OFF_T % 2147483647 == 1)
  4028. ? 1 : -1];
  4029. int
  4030. main ()
  4031. {
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. if ac_fn_c_try_compile "$LINENO"; then :
  4037. ac_cv_sys_large_files=1; break
  4038. fi
  4039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4040. ac_cv_sys_large_files=unknown
  4041. break
  4042. done
  4043. fi
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4045. $as_echo "$ac_cv_sys_large_files" >&6; }
  4046. case $ac_cv_sys_large_files in #(
  4047. no | unknown) ;;
  4048. *)
  4049. cat >>confdefs.h <<_ACEOF
  4050. #define _LARGE_FILES $ac_cv_sys_large_files
  4051. _ACEOF
  4052. ;;
  4053. esac
  4054. rm -rf conftest*
  4055. fi
  4056. fi
  4057. ac_aux_dir=
  4058. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  4059. if test -f "$ac_dir/install-sh"; then
  4060. ac_aux_dir=$ac_dir
  4061. ac_install_sh="$ac_aux_dir/install-sh -c"
  4062. break
  4063. elif test -f "$ac_dir/install.sh"; then
  4064. ac_aux_dir=$ac_dir
  4065. ac_install_sh="$ac_aux_dir/install.sh -c"
  4066. break
  4067. elif test -f "$ac_dir/shtool"; then
  4068. ac_aux_dir=$ac_dir
  4069. ac_install_sh="$ac_aux_dir/shtool install -c"
  4070. break
  4071. fi
  4072. done
  4073. if test -z "$ac_aux_dir"; then
  4074. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  4075. fi
  4076. # These three variables are undocumented and unsupported,
  4077. # and are intended to be withdrawn in a future Autoconf release.
  4078. # They can cause serious problems if a builder's source tree is in a directory
  4079. # whose full name contains unusual characters.
  4080. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  4081. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  4082. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  4083. # Expand $ac_aux_dir to an absolute path.
  4084. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  4085. if test x"${install_sh+set}" != xset; then
  4086. case $am_aux_dir in
  4087. *\ * | *\ *)
  4088. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4089. *)
  4090. install_sh="\${SHELL} $am_aux_dir/install-sh"
  4091. esac
  4092. fi
  4093. # Installed binaries are usually stripped using 'strip' when the user
  4094. # run "make install-strip". However 'strip' might not be the right
  4095. # tool to use in cross-compilation environments, therefore Automake
  4096. # will honor the 'STRIP' environment variable to overrule this program.
  4097. if test "$cross_compiling" != no; then
  4098. if test -n "$ac_tool_prefix"; then
  4099. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4100. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4102. $as_echo_n "checking for $ac_word... " >&6; }
  4103. if ${ac_cv_prog_STRIP+:} false; then :
  4104. $as_echo_n "(cached) " >&6
  4105. else
  4106. if test -n "$STRIP"; then
  4107. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4108. else
  4109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4110. for as_dir in $PATH
  4111. do
  4112. IFS=$as_save_IFS
  4113. test -z "$as_dir" && as_dir=.
  4114. for ac_exec_ext in '' $ac_executable_extensions; do
  4115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4116. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4118. break 2
  4119. fi
  4120. done
  4121. done
  4122. IFS=$as_save_IFS
  4123. fi
  4124. fi
  4125. STRIP=$ac_cv_prog_STRIP
  4126. if test -n "$STRIP"; then
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4128. $as_echo "$STRIP" >&6; }
  4129. else
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4131. $as_echo "no" >&6; }
  4132. fi
  4133. fi
  4134. if test -z "$ac_cv_prog_STRIP"; then
  4135. ac_ct_STRIP=$STRIP
  4136. # Extract the first word of "strip", so it can be a program name with args.
  4137. set dummy strip; ac_word=$2
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4139. $as_echo_n "checking for $ac_word... " >&6; }
  4140. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4141. $as_echo_n "(cached) " >&6
  4142. else
  4143. if test -n "$ac_ct_STRIP"; then
  4144. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4145. else
  4146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4147. for as_dir in $PATH
  4148. do
  4149. IFS=$as_save_IFS
  4150. test -z "$as_dir" && as_dir=.
  4151. for ac_exec_ext in '' $ac_executable_extensions; do
  4152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4153. ac_cv_prog_ac_ct_STRIP="strip"
  4154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4155. break 2
  4156. fi
  4157. done
  4158. done
  4159. IFS=$as_save_IFS
  4160. fi
  4161. fi
  4162. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4163. if test -n "$ac_ct_STRIP"; then
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4165. $as_echo "$ac_ct_STRIP" >&6; }
  4166. else
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4168. $as_echo "no" >&6; }
  4169. fi
  4170. if test "x$ac_ct_STRIP" = x; then
  4171. STRIP=":"
  4172. else
  4173. case $cross_compiling:$ac_tool_warned in
  4174. yes:)
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4176. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4177. ac_tool_warned=yes ;;
  4178. esac
  4179. STRIP=$ac_ct_STRIP
  4180. fi
  4181. else
  4182. STRIP="$ac_cv_prog_STRIP"
  4183. fi
  4184. fi
  4185. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4186. # Set build, build_cpu, build_vendor and build_os.
  4187. # Make sure we can run config.sub.
  4188. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4189. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4191. $as_echo_n "checking build system type... " >&6; }
  4192. if ${ac_cv_build+:} false; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. ac_build_alias=$build_alias
  4196. test "x$ac_build_alias" = x &&
  4197. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4198. test "x$ac_build_alias" = x &&
  4199. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4200. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4201. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4202. fi
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4204. $as_echo "$ac_cv_build" >&6; }
  4205. case $ac_cv_build in
  4206. *-*-*) ;;
  4207. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4208. esac
  4209. build=$ac_cv_build
  4210. ac_save_IFS=$IFS; IFS='-'
  4211. set x $ac_cv_build
  4212. shift
  4213. build_cpu=$1
  4214. build_vendor=$2
  4215. shift; shift
  4216. # Remember, the first character of IFS is used to create $*,
  4217. # except with old shells:
  4218. build_os=$*
  4219. IFS=$ac_save_IFS
  4220. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4221. # Set host, host_cpu, host_vendor, and host_os.
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4223. $as_echo_n "checking host system type... " >&6; }
  4224. if ${ac_cv_host+:} false; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. if test "x$host_alias" = x; then
  4228. ac_cv_host=$ac_cv_build
  4229. else
  4230. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4231. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4232. fi
  4233. fi
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4235. $as_echo "$ac_cv_host" >&6; }
  4236. case $ac_cv_host in
  4237. *-*-*) ;;
  4238. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4239. esac
  4240. host=$ac_cv_host
  4241. ac_save_IFS=$IFS; IFS='-'
  4242. set x $ac_cv_host
  4243. shift
  4244. host_cpu=$1
  4245. host_vendor=$2
  4246. shift; shift
  4247. # Remember, the first character of IFS is used to create $*,
  4248. # except with old shells:
  4249. host_os=$*
  4250. IFS=$ac_save_IFS
  4251. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4252. # Set target, target_cpu, target_vendor, and target_os.
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  4254. $as_echo_n "checking target system type... " >&6; }
  4255. if ${ac_cv_target+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. if test "x$target_alias" = x; then
  4259. ac_cv_target=$ac_cv_host
  4260. else
  4261. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  4262. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  4263. fi
  4264. fi
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  4266. $as_echo "$ac_cv_target" >&6; }
  4267. case $ac_cv_target in
  4268. *-*-*) ;;
  4269. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  4270. esac
  4271. target=$ac_cv_target
  4272. ac_save_IFS=$IFS; IFS='-'
  4273. set x $ac_cv_target
  4274. shift
  4275. target_cpu=$1
  4276. target_vendor=$2
  4277. shift; shift
  4278. # Remember, the first character of IFS is used to create $*,
  4279. # except with old shells:
  4280. target_os=$*
  4281. IFS=$ac_save_IFS
  4282. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  4283. # The aliases save the names the user supplied, while $host etc.
  4284. # will get canonicalized.
  4285. test -n "$target_alias" &&
  4286. test "$program_prefix$program_suffix$program_transform_name" = \
  4287. NONENONEs,x,x, &&
  4288. program_prefix=${target_alias}-
  4289. # Find a good install program. We prefer a C program (faster),
  4290. # so one script is as good as another. But avoid the broken or
  4291. # incompatible versions:
  4292. # SysV /etc/install, /usr/sbin/install
  4293. # SunOS /usr/etc/install
  4294. # IRIX /sbin/install
  4295. # AIX /bin/install
  4296. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4297. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4298. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4299. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4300. # OS/2's system install, which has a completely different semantic
  4301. # ./install, which can be erroneously created by make from ./install.sh.
  4302. # Reject install programs that cannot install multiple files.
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4304. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4305. if test -z "$INSTALL"; then
  4306. if ${ac_cv_path_install+:} false; then :
  4307. $as_echo_n "(cached) " >&6
  4308. else
  4309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4310. for as_dir in $PATH
  4311. do
  4312. IFS=$as_save_IFS
  4313. test -z "$as_dir" && as_dir=.
  4314. # Account for people who put trailing slashes in PATH elements.
  4315. case $as_dir/ in #((
  4316. ./ | .// | /[cC]/* | \
  4317. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4318. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4319. /usr/ucb/* ) ;;
  4320. *)
  4321. # OSF1 and SCO ODT 3.0 have their own names for install.
  4322. # Don't use installbsd from OSF since it installs stuff as root
  4323. # by default.
  4324. for ac_prog in ginstall scoinst install; do
  4325. for ac_exec_ext in '' $ac_executable_extensions; do
  4326. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4327. if test $ac_prog = install &&
  4328. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4329. # AIX install. It has an incompatible calling convention.
  4330. :
  4331. elif test $ac_prog = install &&
  4332. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4333. # program-specific install script used by HP pwplus--don't use.
  4334. :
  4335. else
  4336. rm -rf conftest.one conftest.two conftest.dir
  4337. echo one > conftest.one
  4338. echo two > conftest.two
  4339. mkdir conftest.dir
  4340. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4341. test -s conftest.one && test -s conftest.two &&
  4342. test -s conftest.dir/conftest.one &&
  4343. test -s conftest.dir/conftest.two
  4344. then
  4345. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4346. break 3
  4347. fi
  4348. fi
  4349. fi
  4350. done
  4351. done
  4352. ;;
  4353. esac
  4354. done
  4355. IFS=$as_save_IFS
  4356. rm -rf conftest.one conftest.two conftest.dir
  4357. fi
  4358. if test "${ac_cv_path_install+set}" = set; then
  4359. INSTALL=$ac_cv_path_install
  4360. else
  4361. # As a last resort, use the slow shell script. Don't cache a
  4362. # value for INSTALL within a source directory, because that will
  4363. # break other packages using the cache if that directory is
  4364. # removed, or if the value is a relative name.
  4365. INSTALL=$ac_install_sh
  4366. fi
  4367. fi
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4369. $as_echo "$INSTALL" >&6; }
  4370. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4371. # It thinks the first close brace ends the variable substitution.
  4372. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4373. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4374. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4375. if test -n "$ac_tool_prefix"; then
  4376. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4377. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4379. $as_echo_n "checking for $ac_word... " >&6; }
  4380. if ${ac_cv_prog_AR+:} false; then :
  4381. $as_echo_n "(cached) " >&6
  4382. else
  4383. if test -n "$AR"; then
  4384. ac_cv_prog_AR="$AR" # Let the user override the test.
  4385. else
  4386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4387. for as_dir in $PATH
  4388. do
  4389. IFS=$as_save_IFS
  4390. test -z "$as_dir" && as_dir=.
  4391. for ac_exec_ext in '' $ac_executable_extensions; do
  4392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4393. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4395. break 2
  4396. fi
  4397. done
  4398. done
  4399. IFS=$as_save_IFS
  4400. fi
  4401. fi
  4402. AR=$ac_cv_prog_AR
  4403. if test -n "$AR"; then
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4405. $as_echo "$AR" >&6; }
  4406. else
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4408. $as_echo "no" >&6; }
  4409. fi
  4410. fi
  4411. if test -z "$ac_cv_prog_AR"; then
  4412. ac_ct_AR=$AR
  4413. # Extract the first word of "ar", so it can be a program name with args.
  4414. set dummy ar; ac_word=$2
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4416. $as_echo_n "checking for $ac_word... " >&6; }
  4417. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4418. $as_echo_n "(cached) " >&6
  4419. else
  4420. if test -n "$ac_ct_AR"; then
  4421. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4422. else
  4423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4424. for as_dir in $PATH
  4425. do
  4426. IFS=$as_save_IFS
  4427. test -z "$as_dir" && as_dir=.
  4428. for ac_exec_ext in '' $ac_executable_extensions; do
  4429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4430. ac_cv_prog_ac_ct_AR="ar"
  4431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4432. break 2
  4433. fi
  4434. done
  4435. done
  4436. IFS=$as_save_IFS
  4437. fi
  4438. fi
  4439. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4440. if test -n "$ac_ct_AR"; then
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4442. $as_echo "$ac_ct_AR" >&6; }
  4443. else
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4445. $as_echo "no" >&6; }
  4446. fi
  4447. if test "x$ac_ct_AR" = x; then
  4448. AR=""
  4449. else
  4450. case $cross_compiling:$ac_tool_warned in
  4451. yes:)
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4454. ac_tool_warned=yes ;;
  4455. esac
  4456. AR=$ac_ct_AR
  4457. fi
  4458. else
  4459. AR="$ac_cv_prog_AR"
  4460. fi
  4461. if test -n "$ac_tool_prefix"; then
  4462. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4463. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4465. $as_echo_n "checking for $ac_word... " >&6; }
  4466. if ${ac_cv_prog_RANLIB+:} false; then :
  4467. $as_echo_n "(cached) " >&6
  4468. else
  4469. if test -n "$RANLIB"; then
  4470. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4471. else
  4472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4473. for as_dir in $PATH
  4474. do
  4475. IFS=$as_save_IFS
  4476. test -z "$as_dir" && as_dir=.
  4477. for ac_exec_ext in '' $ac_executable_extensions; do
  4478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4479. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4481. break 2
  4482. fi
  4483. done
  4484. done
  4485. IFS=$as_save_IFS
  4486. fi
  4487. fi
  4488. RANLIB=$ac_cv_prog_RANLIB
  4489. if test -n "$RANLIB"; then
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4491. $as_echo "$RANLIB" >&6; }
  4492. else
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4494. $as_echo "no" >&6; }
  4495. fi
  4496. fi
  4497. if test -z "$ac_cv_prog_RANLIB"; then
  4498. ac_ct_RANLIB=$RANLIB
  4499. # Extract the first word of "ranlib", so it can be a program name with args.
  4500. set dummy ranlib; ac_word=$2
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4502. $as_echo_n "checking for $ac_word... " >&6; }
  4503. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4504. $as_echo_n "(cached) " >&6
  4505. else
  4506. if test -n "$ac_ct_RANLIB"; then
  4507. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4508. else
  4509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4510. for as_dir in $PATH
  4511. do
  4512. IFS=$as_save_IFS
  4513. test -z "$as_dir" && as_dir=.
  4514. for ac_exec_ext in '' $ac_executable_extensions; do
  4515. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4516. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4518. break 2
  4519. fi
  4520. done
  4521. done
  4522. IFS=$as_save_IFS
  4523. fi
  4524. fi
  4525. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4526. if test -n "$ac_ct_RANLIB"; then
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4528. $as_echo "$ac_ct_RANLIB" >&6; }
  4529. else
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4531. $as_echo "no" >&6; }
  4532. fi
  4533. if test "x$ac_ct_RANLIB" = x; then
  4534. RANLIB=":"
  4535. else
  4536. case $cross_compiling:$ac_tool_warned in
  4537. yes:)
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4539. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4540. ac_tool_warned=yes ;;
  4541. esac
  4542. RANLIB=$ac_ct_RANLIB
  4543. fi
  4544. else
  4545. RANLIB="$ac_cv_prog_RANLIB"
  4546. fi
  4547. test "$program_prefix" != NONE &&
  4548. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4549. # Use a double $ so make ignores it.
  4550. test "$program_suffix" != NONE &&
  4551. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4552. # Double any \ or $.
  4553. # By default was `s,x,x', remove it if useless.
  4554. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4555. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4556. # We require a C++11 compiler. Check if one is available, and if
  4557. # necessary, set CXX_DIALECT to some -std=xxx switch.
  4558. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  4559. ac_ext=cpp
  4560. ac_cpp='$CXXCPP $CPPFLAGS'
  4561. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4562. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4563. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4564. CXX_DIALECT=""
  4565. ac_success=no
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  4567. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  4568. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4572. /* end confdefs.h. */
  4573. // If the compiler admits that it is not ready for C++11, why torture it?
  4574. // Hopefully, this will speed up the test.
  4575. #ifndef __cplusplus
  4576. #error "This is not a C++ compiler"
  4577. #elif __cplusplus < 201103L
  4578. #error "This is not a C++11 compiler"
  4579. #else
  4580. namespace cxx11
  4581. {
  4582. namespace test_static_assert
  4583. {
  4584. template <typename T>
  4585. struct check
  4586. {
  4587. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  4588. };
  4589. }
  4590. namespace test_final_override
  4591. {
  4592. struct Base
  4593. {
  4594. virtual void f() {}
  4595. };
  4596. struct Derived : public Base
  4597. {
  4598. virtual void f() override {}
  4599. };
  4600. }
  4601. namespace test_double_right_angle_brackets
  4602. {
  4603. template < typename T >
  4604. struct check {};
  4605. typedef check<void> single_type;
  4606. typedef check<check<void>> double_type;
  4607. typedef check<check<check<void>>> triple_type;
  4608. typedef check<check<check<check<void>>>> quadruple_type;
  4609. }
  4610. namespace test_decltype
  4611. {
  4612. int
  4613. f()
  4614. {
  4615. int a = 1;
  4616. decltype(a) b = 2;
  4617. return a + b;
  4618. }
  4619. }
  4620. namespace test_type_deduction
  4621. {
  4622. template < typename T1, typename T2 >
  4623. struct is_same
  4624. {
  4625. static const bool value = false;
  4626. };
  4627. template < typename T >
  4628. struct is_same<T, T>
  4629. {
  4630. static const bool value = true;
  4631. };
  4632. template < typename T1, typename T2 >
  4633. auto
  4634. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  4635. {
  4636. return a1 + a2;
  4637. }
  4638. int
  4639. test(const int c, volatile int v)
  4640. {
  4641. static_assert(is_same<int, decltype(0)>::value == true, "");
  4642. static_assert(is_same<int, decltype(c)>::value == false, "");
  4643. static_assert(is_same<int, decltype(v)>::value == false, "");
  4644. auto ac = c;
  4645. auto av = v;
  4646. auto sumi = ac + av + 'x';
  4647. auto sumf = ac + av + 1.0;
  4648. static_assert(is_same<int, decltype(ac)>::value == true, "");
  4649. static_assert(is_same<int, decltype(av)>::value == true, "");
  4650. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  4651. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  4652. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  4653. return (sumf > 0.0) ? sumi : add(c, v);
  4654. }
  4655. }
  4656. namespace test_noexcept
  4657. {
  4658. int f() { return 0; }
  4659. int g() noexcept { return 0; }
  4660. static_assert(noexcept(f()) == false, "");
  4661. static_assert(noexcept(g()) == true, "");
  4662. }
  4663. namespace test_constexpr
  4664. {
  4665. template < typename CharT >
  4666. unsigned long constexpr
  4667. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  4668. {
  4669. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  4670. }
  4671. template < typename CharT >
  4672. unsigned long constexpr
  4673. strlen_c(const CharT *const s) noexcept
  4674. {
  4675. return strlen_c_r(s, 0UL);
  4676. }
  4677. static_assert(strlen_c("") == 0UL, "");
  4678. static_assert(strlen_c("1") == 1UL, "");
  4679. static_assert(strlen_c("example") == 7UL, "");
  4680. static_assert(strlen_c("another\0example") == 7UL, "");
  4681. }
  4682. namespace test_rvalue_references
  4683. {
  4684. template < int N >
  4685. struct answer
  4686. {
  4687. static constexpr int value = N;
  4688. };
  4689. answer<1> f(int&) { return answer<1>(); }
  4690. answer<2> f(const int&) { return answer<2>(); }
  4691. answer<3> f(int&&) { return answer<3>(); }
  4692. void
  4693. test()
  4694. {
  4695. int i = 0;
  4696. const int c = 0;
  4697. static_assert(decltype(f(i))::value == 1, "");
  4698. static_assert(decltype(f(c))::value == 2, "");
  4699. static_assert(decltype(f(0))::value == 3, "");
  4700. }
  4701. }
  4702. namespace test_uniform_initialization
  4703. {
  4704. struct test
  4705. {
  4706. static const int zero {};
  4707. static const int one {1};
  4708. };
  4709. static_assert(test::zero == 0, "");
  4710. static_assert(test::one == 1, "");
  4711. }
  4712. namespace test_lambdas
  4713. {
  4714. void
  4715. test1()
  4716. {
  4717. auto lambda1 = [](){};
  4718. auto lambda2 = lambda1;
  4719. lambda1();
  4720. lambda2();
  4721. }
  4722. int
  4723. test2()
  4724. {
  4725. auto a = [](int i, int j){ return i + j; }(1, 2);
  4726. auto b = []() -> int { return '0'; }();
  4727. auto c = [=](){ return a + b; }();
  4728. auto d = [&](){ return c; }();
  4729. auto e = [a, &b](int x) mutable {
  4730. const auto identity = [](int y){ return y; };
  4731. for (auto i = 0; i < a; ++i)
  4732. a += b--;
  4733. return x + identity(a + b);
  4734. }(0);
  4735. return a + b + c + d + e;
  4736. }
  4737. int
  4738. test3()
  4739. {
  4740. const auto nullary = [](){ return 0; };
  4741. const auto unary = [](int x){ return x; };
  4742. using nullary_t = decltype(nullary);
  4743. using unary_t = decltype(unary);
  4744. const auto higher1st = [](nullary_t f){ return f(); };
  4745. const auto higher2nd = [unary](nullary_t f1){
  4746. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  4747. };
  4748. return higher1st(nullary) + higher2nd(nullary)(unary);
  4749. }
  4750. }
  4751. namespace test_variadic_templates
  4752. {
  4753. template <int...>
  4754. struct sum;
  4755. template <int N0, int... N1toN>
  4756. struct sum<N0, N1toN...>
  4757. {
  4758. static constexpr auto value = N0 + sum<N1toN...>::value;
  4759. };
  4760. template <>
  4761. struct sum<>
  4762. {
  4763. static constexpr auto value = 0;
  4764. };
  4765. static_assert(sum<>::value == 0, "");
  4766. static_assert(sum<1>::value == 1, "");
  4767. static_assert(sum<23>::value == 23, "");
  4768. static_assert(sum<1, 2>::value == 3, "");
  4769. static_assert(sum<5, 5, 11>::value == 21, "");
  4770. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  4771. }
  4772. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  4773. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  4774. // because of this.
  4775. namespace test_template_alias_sfinae
  4776. {
  4777. struct foo {};
  4778. template<typename T>
  4779. using member = typename T::member_type;
  4780. template<typename T>
  4781. void func(...) {}
  4782. template<typename T>
  4783. void func(member<T>*) {}
  4784. void test();
  4785. void test() { func<foo>(0); }
  4786. }
  4787. } // namespace cxx11
  4788. #endif // __cplusplus >= 201103L
  4789. _ACEOF
  4790. if ac_fn_cxx_try_compile "$LINENO"; then :
  4791. ax_cv_cxx_compile_cxx11=yes
  4792. else
  4793. ax_cv_cxx_compile_cxx11=no
  4794. fi
  4795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4796. fi
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  4798. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  4799. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  4800. ac_success=yes
  4801. fi
  4802. if test x$ac_success = xno; then
  4803. for alternative in ${ax_cxx_compile_alternatives}; do
  4804. switch="-std=gnu++${alternative}"
  4805. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  4807. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  4808. if eval \${$cachevar+:} false; then :
  4809. $as_echo_n "(cached) " >&6
  4810. else
  4811. ac_save_CXX="$CXX"
  4812. CXX="$CXX $switch"
  4813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4814. /* end confdefs.h. */
  4815. // If the compiler admits that it is not ready for C++11, why torture it?
  4816. // Hopefully, this will speed up the test.
  4817. #ifndef __cplusplus
  4818. #error "This is not a C++ compiler"
  4819. #elif __cplusplus < 201103L
  4820. #error "This is not a C++11 compiler"
  4821. #else
  4822. namespace cxx11
  4823. {
  4824. namespace test_static_assert
  4825. {
  4826. template <typename T>
  4827. struct check
  4828. {
  4829. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  4830. };
  4831. }
  4832. namespace test_final_override
  4833. {
  4834. struct Base
  4835. {
  4836. virtual void f() {}
  4837. };
  4838. struct Derived : public Base
  4839. {
  4840. virtual void f() override {}
  4841. };
  4842. }
  4843. namespace test_double_right_angle_brackets
  4844. {
  4845. template < typename T >
  4846. struct check {};
  4847. typedef check<void> single_type;
  4848. typedef check<check<void>> double_type;
  4849. typedef check<check<check<void>>> triple_type;
  4850. typedef check<check<check<check<void>>>> quadruple_type;
  4851. }
  4852. namespace test_decltype
  4853. {
  4854. int
  4855. f()
  4856. {
  4857. int a = 1;
  4858. decltype(a) b = 2;
  4859. return a + b;
  4860. }
  4861. }
  4862. namespace test_type_deduction
  4863. {
  4864. template < typename T1, typename T2 >
  4865. struct is_same
  4866. {
  4867. static const bool value = false;
  4868. };
  4869. template < typename T >
  4870. struct is_same<T, T>
  4871. {
  4872. static const bool value = true;
  4873. };
  4874. template < typename T1, typename T2 >
  4875. auto
  4876. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  4877. {
  4878. return a1 + a2;
  4879. }
  4880. int
  4881. test(const int c, volatile int v)
  4882. {
  4883. static_assert(is_same<int, decltype(0)>::value == true, "");
  4884. static_assert(is_same<int, decltype(c)>::value == false, "");
  4885. static_assert(is_same<int, decltype(v)>::value == false, "");
  4886. auto ac = c;
  4887. auto av = v;
  4888. auto sumi = ac + av + 'x';
  4889. auto sumf = ac + av + 1.0;
  4890. static_assert(is_same<int, decltype(ac)>::value == true, "");
  4891. static_assert(is_same<int, decltype(av)>::value == true, "");
  4892. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  4893. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  4894. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  4895. return (sumf > 0.0) ? sumi : add(c, v);
  4896. }
  4897. }
  4898. namespace test_noexcept
  4899. {
  4900. int f() { return 0; }
  4901. int g() noexcept { return 0; }
  4902. static_assert(noexcept(f()) == false, "");
  4903. static_assert(noexcept(g()) == true, "");
  4904. }
  4905. namespace test_constexpr
  4906. {
  4907. template < typename CharT >
  4908. unsigned long constexpr
  4909. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  4910. {
  4911. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  4912. }
  4913. template < typename CharT >
  4914. unsigned long constexpr
  4915. strlen_c(const CharT *const s) noexcept
  4916. {
  4917. return strlen_c_r(s, 0UL);
  4918. }
  4919. static_assert(strlen_c("") == 0UL, "");
  4920. static_assert(strlen_c("1") == 1UL, "");
  4921. static_assert(strlen_c("example") == 7UL, "");
  4922. static_assert(strlen_c("another\0example") == 7UL, "");
  4923. }
  4924. namespace test_rvalue_references
  4925. {
  4926. template < int N >
  4927. struct answer
  4928. {
  4929. static constexpr int value = N;
  4930. };
  4931. answer<1> f(int&) { return answer<1>(); }
  4932. answer<2> f(const int&) { return answer<2>(); }
  4933. answer<3> f(int&&) { return answer<3>(); }
  4934. void
  4935. test()
  4936. {
  4937. int i = 0;
  4938. const int c = 0;
  4939. static_assert(decltype(f(i))::value == 1, "");
  4940. static_assert(decltype(f(c))::value == 2, "");
  4941. static_assert(decltype(f(0))::value == 3, "");
  4942. }
  4943. }
  4944. namespace test_uniform_initialization
  4945. {
  4946. struct test
  4947. {
  4948. static const int zero {};
  4949. static const int one {1};
  4950. };
  4951. static_assert(test::zero == 0, "");
  4952. static_assert(test::one == 1, "");
  4953. }
  4954. namespace test_lambdas
  4955. {
  4956. void
  4957. test1()
  4958. {
  4959. auto lambda1 = [](){};
  4960. auto lambda2 = lambda1;
  4961. lambda1();
  4962. lambda2();
  4963. }
  4964. int
  4965. test2()
  4966. {
  4967. auto a = [](int i, int j){ return i + j; }(1, 2);
  4968. auto b = []() -> int { return '0'; }();
  4969. auto c = [=](){ return a + b; }();
  4970. auto d = [&](){ return c; }();
  4971. auto e = [a, &b](int x) mutable {
  4972. const auto identity = [](int y){ return y; };
  4973. for (auto i = 0; i < a; ++i)
  4974. a += b--;
  4975. return x + identity(a + b);
  4976. }(0);
  4977. return a + b + c + d + e;
  4978. }
  4979. int
  4980. test3()
  4981. {
  4982. const auto nullary = [](){ return 0; };
  4983. const auto unary = [](int x){ return x; };
  4984. using nullary_t = decltype(nullary);
  4985. using unary_t = decltype(unary);
  4986. const auto higher1st = [](nullary_t f){ return f(); };
  4987. const auto higher2nd = [unary](nullary_t f1){
  4988. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  4989. };
  4990. return higher1st(nullary) + higher2nd(nullary)(unary);
  4991. }
  4992. }
  4993. namespace test_variadic_templates
  4994. {
  4995. template <int...>
  4996. struct sum;
  4997. template <int N0, int... N1toN>
  4998. struct sum<N0, N1toN...>
  4999. {
  5000. static constexpr auto value = N0 + sum<N1toN...>::value;
  5001. };
  5002. template <>
  5003. struct sum<>
  5004. {
  5005. static constexpr auto value = 0;
  5006. };
  5007. static_assert(sum<>::value == 0, "");
  5008. static_assert(sum<1>::value == 1, "");
  5009. static_assert(sum<23>::value == 23, "");
  5010. static_assert(sum<1, 2>::value == 3, "");
  5011. static_assert(sum<5, 5, 11>::value == 21, "");
  5012. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5013. }
  5014. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5015. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5016. // because of this.
  5017. namespace test_template_alias_sfinae
  5018. {
  5019. struct foo {};
  5020. template<typename T>
  5021. using member = typename T::member_type;
  5022. template<typename T>
  5023. void func(...) {}
  5024. template<typename T>
  5025. void func(member<T>*) {}
  5026. void test();
  5027. void test() { func<foo>(0); }
  5028. }
  5029. } // namespace cxx11
  5030. #endif // __cplusplus >= 201103L
  5031. _ACEOF
  5032. if ac_fn_cxx_try_compile "$LINENO"; then :
  5033. eval $cachevar=yes
  5034. else
  5035. eval $cachevar=no
  5036. fi
  5037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5038. CXX="$ac_save_CXX"
  5039. fi
  5040. eval ac_res=\$$cachevar
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5042. $as_echo "$ac_res" >&6; }
  5043. if eval test x\$$cachevar = xyes; then
  5044. CXX_DIALECT="$switch"
  5045. CXX="$CXX $switch"
  5046. if test -n "$CXXCPP" ; then
  5047. CXXCPP="$CXXCPP $switch"
  5048. fi
  5049. ac_success=yes
  5050. break
  5051. fi
  5052. done
  5053. fi
  5054. if test x$ac_success = xno; then
  5055. for alternative in ${ax_cxx_compile_alternatives}; do
  5056. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  5057. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5059. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5060. if eval \${$cachevar+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. ac_save_CXX="$CXX"
  5064. CXX="$CXX $switch"
  5065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5066. /* end confdefs.h. */
  5067. // If the compiler admits that it is not ready for C++11, why torture it?
  5068. // Hopefully, this will speed up the test.
  5069. #ifndef __cplusplus
  5070. #error "This is not a C++ compiler"
  5071. #elif __cplusplus < 201103L
  5072. #error "This is not a C++11 compiler"
  5073. #else
  5074. namespace cxx11
  5075. {
  5076. namespace test_static_assert
  5077. {
  5078. template <typename T>
  5079. struct check
  5080. {
  5081. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5082. };
  5083. }
  5084. namespace test_final_override
  5085. {
  5086. struct Base
  5087. {
  5088. virtual void f() {}
  5089. };
  5090. struct Derived : public Base
  5091. {
  5092. virtual void f() override {}
  5093. };
  5094. }
  5095. namespace test_double_right_angle_brackets
  5096. {
  5097. template < typename T >
  5098. struct check {};
  5099. typedef check<void> single_type;
  5100. typedef check<check<void>> double_type;
  5101. typedef check<check<check<void>>> triple_type;
  5102. typedef check<check<check<check<void>>>> quadruple_type;
  5103. }
  5104. namespace test_decltype
  5105. {
  5106. int
  5107. f()
  5108. {
  5109. int a = 1;
  5110. decltype(a) b = 2;
  5111. return a + b;
  5112. }
  5113. }
  5114. namespace test_type_deduction
  5115. {
  5116. template < typename T1, typename T2 >
  5117. struct is_same
  5118. {
  5119. static const bool value = false;
  5120. };
  5121. template < typename T >
  5122. struct is_same<T, T>
  5123. {
  5124. static const bool value = true;
  5125. };
  5126. template < typename T1, typename T2 >
  5127. auto
  5128. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5129. {
  5130. return a1 + a2;
  5131. }
  5132. int
  5133. test(const int c, volatile int v)
  5134. {
  5135. static_assert(is_same<int, decltype(0)>::value == true, "");
  5136. static_assert(is_same<int, decltype(c)>::value == false, "");
  5137. static_assert(is_same<int, decltype(v)>::value == false, "");
  5138. auto ac = c;
  5139. auto av = v;
  5140. auto sumi = ac + av + 'x';
  5141. auto sumf = ac + av + 1.0;
  5142. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5143. static_assert(is_same<int, decltype(av)>::value == true, "");
  5144. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5145. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5146. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5147. return (sumf > 0.0) ? sumi : add(c, v);
  5148. }
  5149. }
  5150. namespace test_noexcept
  5151. {
  5152. int f() { return 0; }
  5153. int g() noexcept { return 0; }
  5154. static_assert(noexcept(f()) == false, "");
  5155. static_assert(noexcept(g()) == true, "");
  5156. }
  5157. namespace test_constexpr
  5158. {
  5159. template < typename CharT >
  5160. unsigned long constexpr
  5161. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5162. {
  5163. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5164. }
  5165. template < typename CharT >
  5166. unsigned long constexpr
  5167. strlen_c(const CharT *const s) noexcept
  5168. {
  5169. return strlen_c_r(s, 0UL);
  5170. }
  5171. static_assert(strlen_c("") == 0UL, "");
  5172. static_assert(strlen_c("1") == 1UL, "");
  5173. static_assert(strlen_c("example") == 7UL, "");
  5174. static_assert(strlen_c("another\0example") == 7UL, "");
  5175. }
  5176. namespace test_rvalue_references
  5177. {
  5178. template < int N >
  5179. struct answer
  5180. {
  5181. static constexpr int value = N;
  5182. };
  5183. answer<1> f(int&) { return answer<1>(); }
  5184. answer<2> f(const int&) { return answer<2>(); }
  5185. answer<3> f(int&&) { return answer<3>(); }
  5186. void
  5187. test()
  5188. {
  5189. int i = 0;
  5190. const int c = 0;
  5191. static_assert(decltype(f(i))::value == 1, "");
  5192. static_assert(decltype(f(c))::value == 2, "");
  5193. static_assert(decltype(f(0))::value == 3, "");
  5194. }
  5195. }
  5196. namespace test_uniform_initialization
  5197. {
  5198. struct test
  5199. {
  5200. static const int zero {};
  5201. static const int one {1};
  5202. };
  5203. static_assert(test::zero == 0, "");
  5204. static_assert(test::one == 1, "");
  5205. }
  5206. namespace test_lambdas
  5207. {
  5208. void
  5209. test1()
  5210. {
  5211. auto lambda1 = [](){};
  5212. auto lambda2 = lambda1;
  5213. lambda1();
  5214. lambda2();
  5215. }
  5216. int
  5217. test2()
  5218. {
  5219. auto a = [](int i, int j){ return i + j; }(1, 2);
  5220. auto b = []() -> int { return '0'; }();
  5221. auto c = [=](){ return a + b; }();
  5222. auto d = [&](){ return c; }();
  5223. auto e = [a, &b](int x) mutable {
  5224. const auto identity = [](int y){ return y; };
  5225. for (auto i = 0; i < a; ++i)
  5226. a += b--;
  5227. return x + identity(a + b);
  5228. }(0);
  5229. return a + b + c + d + e;
  5230. }
  5231. int
  5232. test3()
  5233. {
  5234. const auto nullary = [](){ return 0; };
  5235. const auto unary = [](int x){ return x; };
  5236. using nullary_t = decltype(nullary);
  5237. using unary_t = decltype(unary);
  5238. const auto higher1st = [](nullary_t f){ return f(); };
  5239. const auto higher2nd = [unary](nullary_t f1){
  5240. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5241. };
  5242. return higher1st(nullary) + higher2nd(nullary)(unary);
  5243. }
  5244. }
  5245. namespace test_variadic_templates
  5246. {
  5247. template <int...>
  5248. struct sum;
  5249. template <int N0, int... N1toN>
  5250. struct sum<N0, N1toN...>
  5251. {
  5252. static constexpr auto value = N0 + sum<N1toN...>::value;
  5253. };
  5254. template <>
  5255. struct sum<>
  5256. {
  5257. static constexpr auto value = 0;
  5258. };
  5259. static_assert(sum<>::value == 0, "");
  5260. static_assert(sum<1>::value == 1, "");
  5261. static_assert(sum<23>::value == 23, "");
  5262. static_assert(sum<1, 2>::value == 3, "");
  5263. static_assert(sum<5, 5, 11>::value == 21, "");
  5264. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5265. }
  5266. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5267. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5268. // because of this.
  5269. namespace test_template_alias_sfinae
  5270. {
  5271. struct foo {};
  5272. template<typename T>
  5273. using member = typename T::member_type;
  5274. template<typename T>
  5275. void func(...) {}
  5276. template<typename T>
  5277. void func(member<T>*) {}
  5278. void test();
  5279. void test() { func<foo>(0); }
  5280. }
  5281. } // namespace cxx11
  5282. #endif // __cplusplus >= 201103L
  5283. _ACEOF
  5284. if ac_fn_cxx_try_compile "$LINENO"; then :
  5285. eval $cachevar=yes
  5286. else
  5287. eval $cachevar=no
  5288. fi
  5289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5290. CXX="$ac_save_CXX"
  5291. fi
  5292. eval ac_res=\$$cachevar
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5294. $as_echo "$ac_res" >&6; }
  5295. if eval test x\$$cachevar = xyes; then
  5296. CXX_DIALECT="$switch"
  5297. CXX="$CXX $switch"
  5298. if test -n "$CXXCPP" ; then
  5299. CXXCPP="$CXXCPP $switch"
  5300. fi
  5301. ac_success=yes
  5302. break
  5303. fi
  5304. done
  5305. if test x$ac_success = xyes; then
  5306. break
  5307. fi
  5308. done
  5309. fi
  5310. ac_ext=c
  5311. ac_cpp='$CPP $CPPFLAGS'
  5312. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5313. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5314. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5315. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  5316. if test x$ac_success = xno; then
  5317. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  5318. fi
  5319. fi
  5320. if test x$ac_success = xno; then
  5321. HAVE_CXX11=0
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  5323. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  5324. else
  5325. HAVE_CXX11=1
  5326. $as_echo "#define HAVE_CXX11 1" >>confdefs.h
  5327. fi
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5329. $as_echo_n "checking for ANSI C header files... " >&6; }
  5330. if ${ac_cv_header_stdc+:} false; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5334. /* end confdefs.h. */
  5335. #include <stdlib.h>
  5336. #include <stdarg.h>
  5337. #include <string.h>
  5338. #include <float.h>
  5339. int
  5340. main ()
  5341. {
  5342. ;
  5343. return 0;
  5344. }
  5345. _ACEOF
  5346. if ac_fn_c_try_compile "$LINENO"; then :
  5347. ac_cv_header_stdc=yes
  5348. else
  5349. ac_cv_header_stdc=no
  5350. fi
  5351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5352. if test $ac_cv_header_stdc = yes; then
  5353. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5355. /* end confdefs.h. */
  5356. #include <string.h>
  5357. _ACEOF
  5358. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5359. $EGREP "memchr" >/dev/null 2>&1; then :
  5360. else
  5361. ac_cv_header_stdc=no
  5362. fi
  5363. rm -f conftest*
  5364. fi
  5365. if test $ac_cv_header_stdc = yes; then
  5366. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5368. /* end confdefs.h. */
  5369. #include <stdlib.h>
  5370. _ACEOF
  5371. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5372. $EGREP "free" >/dev/null 2>&1; then :
  5373. else
  5374. ac_cv_header_stdc=no
  5375. fi
  5376. rm -f conftest*
  5377. fi
  5378. if test $ac_cv_header_stdc = yes; then
  5379. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5380. if test "$cross_compiling" = yes; then :
  5381. :
  5382. else
  5383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5384. /* end confdefs.h. */
  5385. #include <ctype.h>
  5386. #include <stdlib.h>
  5387. #if ((' ' & 0x0FF) == 0x020)
  5388. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5389. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5390. #else
  5391. # define ISLOWER(c) \
  5392. (('a' <= (c) && (c) <= 'i') \
  5393. || ('j' <= (c) && (c) <= 'r') \
  5394. || ('s' <= (c) && (c) <= 'z'))
  5395. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5396. #endif
  5397. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5398. int
  5399. main ()
  5400. {
  5401. int i;
  5402. for (i = 0; i < 256; i++)
  5403. if (XOR (islower (i), ISLOWER (i))
  5404. || toupper (i) != TOUPPER (i))
  5405. return 2;
  5406. return 0;
  5407. }
  5408. _ACEOF
  5409. if ac_fn_c_try_run "$LINENO"; then :
  5410. else
  5411. ac_cv_header_stdc=no
  5412. fi
  5413. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5414. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5415. fi
  5416. fi
  5417. fi
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5419. $as_echo "$ac_cv_header_stdc" >&6; }
  5420. if test $ac_cv_header_stdc = yes; then
  5421. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5422. fi
  5423. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5424. if test "x$ac_cv_type_size_t" = xyes; then :
  5425. else
  5426. cat >>confdefs.h <<_ACEOF
  5427. #define size_t unsigned int
  5428. _ACEOF
  5429. fi
  5430. for ac_header in $ac_header_list
  5431. do :
  5432. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5433. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5434. "
  5435. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5436. cat >>confdefs.h <<_ACEOF
  5437. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5438. _ACEOF
  5439. fi
  5440. done
  5441. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5442. if test "x$ac_cv_type_pid_t" = xyes; then :
  5443. else
  5444. cat >>confdefs.h <<_ACEOF
  5445. #define pid_t int
  5446. _ACEOF
  5447. fi
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5449. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5450. if ${ac_cv_path_SED+:} false; then :
  5451. $as_echo_n "(cached) " >&6
  5452. else
  5453. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5454. for ac_i in 1 2 3 4 5 6 7; do
  5455. ac_script="$ac_script$as_nl$ac_script"
  5456. done
  5457. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5458. { ac_script=; unset ac_script;}
  5459. if test -z "$SED"; then
  5460. ac_path_SED_found=false
  5461. # Loop through the user's path and test for each of PROGNAME-LIST
  5462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5463. for as_dir in $PATH
  5464. do
  5465. IFS=$as_save_IFS
  5466. test -z "$as_dir" && as_dir=.
  5467. for ac_prog in sed gsed; do
  5468. for ac_exec_ext in '' $ac_executable_extensions; do
  5469. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5470. as_fn_executable_p "$ac_path_SED" || continue
  5471. # Check for GNU ac_path_SED and select it if it is found.
  5472. # Check for GNU $ac_path_SED
  5473. case `"$ac_path_SED" --version 2>&1` in
  5474. *GNU*)
  5475. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5476. *)
  5477. ac_count=0
  5478. $as_echo_n 0123456789 >"conftest.in"
  5479. while :
  5480. do
  5481. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5482. mv "conftest.tmp" "conftest.in"
  5483. cp "conftest.in" "conftest.nl"
  5484. $as_echo '' >> "conftest.nl"
  5485. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5486. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5487. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5488. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5489. # Best one so far, save it but keep looking for a better one
  5490. ac_cv_path_SED="$ac_path_SED"
  5491. ac_path_SED_max=$ac_count
  5492. fi
  5493. # 10*(2^10) chars as input seems more than enough
  5494. test $ac_count -gt 10 && break
  5495. done
  5496. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5497. esac
  5498. $ac_path_SED_found && break 3
  5499. done
  5500. done
  5501. done
  5502. IFS=$as_save_IFS
  5503. if test -z "$ac_cv_path_SED"; then
  5504. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5505. fi
  5506. else
  5507. ac_cv_path_SED=$SED
  5508. fi
  5509. fi
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5511. $as_echo "$ac_cv_path_SED" >&6; }
  5512. SED="$ac_cv_path_SED"
  5513. rm -f conftest.sed
  5514. if test "X$prefix" = "XNONE"; then
  5515. acl_final_prefix="$ac_default_prefix"
  5516. else
  5517. acl_final_prefix="$prefix"
  5518. fi
  5519. if test "X$exec_prefix" = "XNONE"; then
  5520. acl_final_exec_prefix='${prefix}'
  5521. else
  5522. acl_final_exec_prefix="$exec_prefix"
  5523. fi
  5524. acl_save_prefix="$prefix"
  5525. prefix="$acl_final_prefix"
  5526. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  5527. prefix="$acl_save_prefix"
  5528. # Check whether --with-gnu-ld was given.
  5529. if test "${with_gnu_ld+set}" = set; then :
  5530. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5531. else
  5532. with_gnu_ld=no
  5533. fi
  5534. # Prepare PATH_SEPARATOR.
  5535. # The user is always right.
  5536. if test "${PATH_SEPARATOR+set}" != set; then
  5537. echo "#! /bin/sh" >conf$$.sh
  5538. echo "exit 0" >>conf$$.sh
  5539. chmod +x conf$$.sh
  5540. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5541. PATH_SEPARATOR=';'
  5542. else
  5543. PATH_SEPARATOR=:
  5544. fi
  5545. rm -f conf$$.sh
  5546. fi
  5547. ac_prog=ld
  5548. if test "$GCC" = yes; then
  5549. # Check if gcc -print-prog-name=ld gives a path.
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  5551. $as_echo_n "checking for ld used by GCC... " >&6; }
  5552. case $host in
  5553. *-*-mingw*)
  5554. # gcc leaves a trailing carriage return which upsets mingw
  5555. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5556. *)
  5557. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5558. esac
  5559. case $ac_prog in
  5560. # Accept absolute paths.
  5561. [\\/]* | [A-Za-z]:[\\/]*)
  5562. re_direlt='/[^/][^/]*/\.\./'
  5563. # Canonicalize the path of ld
  5564. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  5565. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5566. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  5567. done
  5568. test -z "$LD" && LD="$ac_prog"
  5569. ;;
  5570. "")
  5571. # If it fails, then pretend we aren't using GCC.
  5572. ac_prog=ld
  5573. ;;
  5574. *)
  5575. # If it is relative, then search for the first ld in PATH.
  5576. with_gnu_ld=unknown
  5577. ;;
  5578. esac
  5579. elif test "$with_gnu_ld" = yes; then
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5581. $as_echo_n "checking for GNU ld... " >&6; }
  5582. else
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5584. $as_echo_n "checking for non-GNU ld... " >&6; }
  5585. fi
  5586. if ${acl_cv_path_LD+:} false; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. if test -z "$LD"; then
  5590. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  5591. for ac_dir in $PATH; do
  5592. test -z "$ac_dir" && ac_dir=.
  5593. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5594. acl_cv_path_LD="$ac_dir/$ac_prog"
  5595. # Check to see if the program is GNU ld. I'd rather use --version,
  5596. # but apparently some GNU ld's only accept -v.
  5597. # Break only if it was the GNU/non-GNU ld that we prefer.
  5598. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  5599. test "$with_gnu_ld" != no && break
  5600. else
  5601. test "$with_gnu_ld" != yes && break
  5602. fi
  5603. fi
  5604. done
  5605. IFS="$ac_save_ifs"
  5606. else
  5607. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  5608. fi
  5609. fi
  5610. LD="$acl_cv_path_LD"
  5611. if test -n "$LD"; then
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5613. $as_echo "$LD" >&6; }
  5614. else
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5616. $as_echo "no" >&6; }
  5617. fi
  5618. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5620. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5621. if ${acl_cv_prog_gnu_ld+:} false; then :
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  5625. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  5626. acl_cv_prog_gnu_ld=yes
  5627. else
  5628. acl_cv_prog_gnu_ld=no
  5629. fi
  5630. fi
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  5632. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  5633. with_gnu_ld=$acl_cv_prog_gnu_ld
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  5635. $as_echo_n "checking for shared library run path origin... " >&6; }
  5636. if ${acl_cv_rpath+:} false; then :
  5637. $as_echo_n "(cached) " >&6
  5638. else
  5639. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  5640. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  5641. . ./conftest.sh
  5642. rm -f ./conftest.sh
  5643. acl_cv_rpath=done
  5644. fi
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  5646. $as_echo "$acl_cv_rpath" >&6; }
  5647. wl="$acl_cv_wl"
  5648. libext="$acl_cv_libext"
  5649. shlibext="$acl_cv_shlibext"
  5650. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  5651. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  5652. hardcode_direct="$acl_cv_hardcode_direct"
  5653. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  5654. # Check whether --enable-rpath was given.
  5655. if test "${enable_rpath+set}" = set; then :
  5656. enableval=$enable_rpath; :
  5657. else
  5658. enable_rpath=yes
  5659. fi
  5660. # Set the 'development' global.
  5661. . $srcdir/../bfd/development.sh
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5663. $as_echo_n "checking for ANSI C header files... " >&6; }
  5664. if ${ac_cv_header_stdc+:} false; then :
  5665. $as_echo_n "(cached) " >&6
  5666. else
  5667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5668. /* end confdefs.h. */
  5669. #include <stdlib.h>
  5670. #include <stdarg.h>
  5671. #include <string.h>
  5672. #include <float.h>
  5673. int
  5674. main ()
  5675. {
  5676. ;
  5677. return 0;
  5678. }
  5679. _ACEOF
  5680. if ac_fn_c_try_compile "$LINENO"; then :
  5681. ac_cv_header_stdc=yes
  5682. else
  5683. ac_cv_header_stdc=no
  5684. fi
  5685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5686. if test $ac_cv_header_stdc = yes; then
  5687. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5689. /* end confdefs.h. */
  5690. #include <string.h>
  5691. _ACEOF
  5692. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5693. $EGREP "memchr" >/dev/null 2>&1; then :
  5694. else
  5695. ac_cv_header_stdc=no
  5696. fi
  5697. rm -f conftest*
  5698. fi
  5699. if test $ac_cv_header_stdc = yes; then
  5700. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5702. /* end confdefs.h. */
  5703. #include <stdlib.h>
  5704. _ACEOF
  5705. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5706. $EGREP "free" >/dev/null 2>&1; then :
  5707. else
  5708. ac_cv_header_stdc=no
  5709. fi
  5710. rm -f conftest*
  5711. fi
  5712. if test $ac_cv_header_stdc = yes; then
  5713. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5714. if test "$cross_compiling" = yes; then :
  5715. :
  5716. else
  5717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5718. /* end confdefs.h. */
  5719. #include <ctype.h>
  5720. #include <stdlib.h>
  5721. #if ((' ' & 0x0FF) == 0x020)
  5722. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5723. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5724. #else
  5725. # define ISLOWER(c) \
  5726. (('a' <= (c) && (c) <= 'i') \
  5727. || ('j' <= (c) && (c) <= 'r') \
  5728. || ('s' <= (c) && (c) <= 'z'))
  5729. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5730. #endif
  5731. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5732. int
  5733. main ()
  5734. {
  5735. int i;
  5736. for (i = 0; i < 256; i++)
  5737. if (XOR (islower (i), ISLOWER (i))
  5738. || toupper (i) != TOUPPER (i))
  5739. return 2;
  5740. return 0;
  5741. }
  5742. _ACEOF
  5743. if ac_fn_c_try_run "$LINENO"; then :
  5744. else
  5745. ac_cv_header_stdc=no
  5746. fi
  5747. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5748. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5749. fi
  5750. fi
  5751. fi
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5753. $as_echo "$ac_cv_header_stdc" >&6; }
  5754. if test $ac_cv_header_stdc = yes; then
  5755. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5756. fi
  5757. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5758. # for constant arguments. Useless!
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  5760. $as_echo_n "checking for working alloca.h... " >&6; }
  5761. if ${ac_cv_working_alloca_h+:} false; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5765. /* end confdefs.h. */
  5766. #include <alloca.h>
  5767. int
  5768. main ()
  5769. {
  5770. char *p = (char *) alloca (2 * sizeof (int));
  5771. if (p) return 0;
  5772. ;
  5773. return 0;
  5774. }
  5775. _ACEOF
  5776. if ac_fn_c_try_link "$LINENO"; then :
  5777. ac_cv_working_alloca_h=yes
  5778. else
  5779. ac_cv_working_alloca_h=no
  5780. fi
  5781. rm -f core conftest.err conftest.$ac_objext \
  5782. conftest$ac_exeext conftest.$ac_ext
  5783. fi
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  5785. $as_echo "$ac_cv_working_alloca_h" >&6; }
  5786. if test $ac_cv_working_alloca_h = yes; then
  5787. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  5788. fi
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  5790. $as_echo_n "checking for alloca... " >&6; }
  5791. if ${ac_cv_func_alloca_works+:} false; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5795. /* end confdefs.h. */
  5796. #ifdef __GNUC__
  5797. # define alloca __builtin_alloca
  5798. #else
  5799. # ifdef _MSC_VER
  5800. # include <malloc.h>
  5801. # define alloca _alloca
  5802. # else
  5803. # ifdef HAVE_ALLOCA_H
  5804. # include <alloca.h>
  5805. # else
  5806. # ifdef _AIX
  5807. #pragma alloca
  5808. # else
  5809. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5810. void *alloca (size_t);
  5811. # endif
  5812. # endif
  5813. # endif
  5814. # endif
  5815. #endif
  5816. int
  5817. main ()
  5818. {
  5819. char *p = (char *) alloca (1);
  5820. if (p) return 0;
  5821. ;
  5822. return 0;
  5823. }
  5824. _ACEOF
  5825. if ac_fn_c_try_link "$LINENO"; then :
  5826. ac_cv_func_alloca_works=yes
  5827. else
  5828. ac_cv_func_alloca_works=no
  5829. fi
  5830. rm -f core conftest.err conftest.$ac_objext \
  5831. conftest$ac_exeext conftest.$ac_ext
  5832. fi
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  5834. $as_echo "$ac_cv_func_alloca_works" >&6; }
  5835. if test $ac_cv_func_alloca_works = yes; then
  5836. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  5837. else
  5838. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5839. # that cause trouble. Some versions do not even contain alloca or
  5840. # contain a buggy version. If you still want to use their alloca,
  5841. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5842. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5843. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  5845. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  5846. if ${ac_cv_os_cray+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5850. /* end confdefs.h. */
  5851. #if defined CRAY && ! defined CRAY2
  5852. webecray
  5853. #else
  5854. wenotbecray
  5855. #endif
  5856. _ACEOF
  5857. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5858. $EGREP "webecray" >/dev/null 2>&1; then :
  5859. ac_cv_os_cray=yes
  5860. else
  5861. ac_cv_os_cray=no
  5862. fi
  5863. rm -f conftest*
  5864. fi
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  5866. $as_echo "$ac_cv_os_cray" >&6; }
  5867. if test $ac_cv_os_cray = yes; then
  5868. for ac_func in _getb67 GETB67 getb67; do
  5869. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5870. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5871. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5872. cat >>confdefs.h <<_ACEOF
  5873. #define CRAY_STACKSEG_END $ac_func
  5874. _ACEOF
  5875. break
  5876. fi
  5877. done
  5878. fi
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  5880. $as_echo_n "checking stack direction for C alloca... " >&6; }
  5881. if ${ac_cv_c_stack_direction+:} false; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. if test "$cross_compiling" = yes; then :
  5885. ac_cv_c_stack_direction=0
  5886. else
  5887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5888. /* end confdefs.h. */
  5889. $ac_includes_default
  5890. int
  5891. find_stack_direction (int *addr, int depth)
  5892. {
  5893. int dir, dummy = 0;
  5894. if (! addr)
  5895. addr = &dummy;
  5896. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  5897. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  5898. return dir + dummy;
  5899. }
  5900. int
  5901. main (int argc, char **argv)
  5902. {
  5903. return find_stack_direction (0, argc + !argv + 20) < 0;
  5904. }
  5905. _ACEOF
  5906. if ac_fn_c_try_run "$LINENO"; then :
  5907. ac_cv_c_stack_direction=1
  5908. else
  5909. ac_cv_c_stack_direction=-1
  5910. fi
  5911. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5912. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5913. fi
  5914. fi
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  5916. $as_echo "$ac_cv_c_stack_direction" >&6; }
  5917. cat >>confdefs.h <<_ACEOF
  5918. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5919. _ACEOF
  5920. fi
  5921. WIN32APILIBS=
  5922. case ${host} in
  5923. *mingw32*)
  5924. $as_echo "#define USE_WIN32API 1" >>confdefs.h
  5925. WIN32APILIBS="-lws2_32"
  5926. ;;
  5927. esac
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  5929. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  5930. if ${am_cv_langinfo_codeset+:} false; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5934. /* end confdefs.h. */
  5935. #include <langinfo.h>
  5936. int
  5937. main ()
  5938. {
  5939. char* cs = nl_langinfo(CODESET);
  5940. ;
  5941. return 0;
  5942. }
  5943. _ACEOF
  5944. if ac_fn_c_try_link "$LINENO"; then :
  5945. am_cv_langinfo_codeset=yes
  5946. else
  5947. am_cv_langinfo_codeset=no
  5948. fi
  5949. rm -f core conftest.err conftest.$ac_objext \
  5950. conftest$ac_exeext conftest.$ac_ext
  5951. fi
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  5953. $as_echo "$am_cv_langinfo_codeset" >&6; }
  5954. if test $am_cv_langinfo_codeset = yes; then
  5955. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  5956. fi
  5957. 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
  5958. do :
  5959. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5960. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5961. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5962. cat >>confdefs.h <<_ACEOF
  5963. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5964. _ACEOF
  5965. fi
  5966. done
  5967. for ac_func in getpagesize
  5968. do :
  5969. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  5970. if test "x$ac_cv_func_getpagesize" = xyes; then :
  5971. cat >>confdefs.h <<_ACEOF
  5972. #define HAVE_GETPAGESIZE 1
  5973. _ACEOF
  5974. fi
  5975. done
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  5977. $as_echo_n "checking for working mmap... " >&6; }
  5978. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. if test "$cross_compiling" = yes; then :
  5982. ac_cv_func_mmap_fixed_mapped=no
  5983. else
  5984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5985. /* end confdefs.h. */
  5986. $ac_includes_default
  5987. /* malloc might have been renamed as rpl_malloc. */
  5988. #undef malloc
  5989. /* Thanks to Mike Haertel and Jim Avera for this test.
  5990. Here is a matrix of mmap possibilities:
  5991. mmap private not fixed
  5992. mmap private fixed at somewhere currently unmapped
  5993. mmap private fixed at somewhere already mapped
  5994. mmap shared not fixed
  5995. mmap shared fixed at somewhere currently unmapped
  5996. mmap shared fixed at somewhere already mapped
  5997. For private mappings, we should verify that changes cannot be read()
  5998. back from the file, nor mmap's back from the file at a different
  5999. address. (There have been systems where private was not correctly
  6000. implemented like the infamous i386 svr4.0, and systems where the
  6001. VM page cache was not coherent with the file system buffer cache
  6002. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6003. For shared mappings, we should conversely verify that changes get
  6004. propagated back to all the places they're supposed to be.
  6005. Grep wants private fixed already mapped.
  6006. The main things grep needs to know about mmap are:
  6007. * does it exist and is it safe to write into the mmap'd area
  6008. * how to use it (BSD variants) */
  6009. #include <fcntl.h>
  6010. #include <sys/mman.h>
  6011. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6012. char *malloc ();
  6013. #endif
  6014. /* This mess was copied from the GNU getpagesize.h. */
  6015. #ifndef HAVE_GETPAGESIZE
  6016. # ifdef _SC_PAGESIZE
  6017. # define getpagesize() sysconf(_SC_PAGESIZE)
  6018. # else /* no _SC_PAGESIZE */
  6019. # ifdef HAVE_SYS_PARAM_H
  6020. # include <sys/param.h>
  6021. # ifdef EXEC_PAGESIZE
  6022. # define getpagesize() EXEC_PAGESIZE
  6023. # else /* no EXEC_PAGESIZE */
  6024. # ifdef NBPG
  6025. # define getpagesize() NBPG * CLSIZE
  6026. # ifndef CLSIZE
  6027. # define CLSIZE 1
  6028. # endif /* no CLSIZE */
  6029. # else /* no NBPG */
  6030. # ifdef NBPC
  6031. # define getpagesize() NBPC
  6032. # else /* no NBPC */
  6033. # ifdef PAGESIZE
  6034. # define getpagesize() PAGESIZE
  6035. # endif /* PAGESIZE */
  6036. # endif /* no NBPC */
  6037. # endif /* no NBPG */
  6038. # endif /* no EXEC_PAGESIZE */
  6039. # else /* no HAVE_SYS_PARAM_H */
  6040. # define getpagesize() 8192 /* punt totally */
  6041. # endif /* no HAVE_SYS_PARAM_H */
  6042. # endif /* no _SC_PAGESIZE */
  6043. #endif /* no HAVE_GETPAGESIZE */
  6044. int
  6045. main ()
  6046. {
  6047. char *data, *data2, *data3;
  6048. const char *cdata2;
  6049. int i, pagesize;
  6050. int fd, fd2;
  6051. pagesize = getpagesize ();
  6052. /* First, make a file with some known garbage in it. */
  6053. data = (char *) malloc (pagesize);
  6054. if (!data)
  6055. return 1;
  6056. for (i = 0; i < pagesize; ++i)
  6057. *(data + i) = rand ();
  6058. umask (0);
  6059. fd = creat ("conftest.mmap", 0600);
  6060. if (fd < 0)
  6061. return 2;
  6062. if (write (fd, data, pagesize) != pagesize)
  6063. return 3;
  6064. close (fd);
  6065. /* Next, check that the tail of a page is zero-filled. File must have
  6066. non-zero length, otherwise we risk SIGBUS for entire page. */
  6067. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  6068. if (fd2 < 0)
  6069. return 4;
  6070. cdata2 = "";
  6071. if (write (fd2, cdata2, 1) != 1)
  6072. return 5;
  6073. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  6074. if (data2 == MAP_FAILED)
  6075. return 6;
  6076. for (i = 0; i < pagesize; ++i)
  6077. if (*(data2 + i))
  6078. return 7;
  6079. close (fd2);
  6080. if (munmap (data2, pagesize))
  6081. return 8;
  6082. /* Next, try to mmap the file at a fixed address which already has
  6083. something else allocated at it. If we can, also make sure that
  6084. we see the same garbage. */
  6085. fd = open ("conftest.mmap", O_RDWR);
  6086. if (fd < 0)
  6087. return 9;
  6088. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6089. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6090. return 10;
  6091. for (i = 0; i < pagesize; ++i)
  6092. if (*(data + i) != *(data2 + i))
  6093. return 11;
  6094. /* Finally, make sure that changes to the mapped area do not
  6095. percolate back to the file as seen by read(). (This is a bug on
  6096. some variants of i386 svr4.0.) */
  6097. for (i = 0; i < pagesize; ++i)
  6098. *(data2 + i) = *(data2 + i) + 1;
  6099. data3 = (char *) malloc (pagesize);
  6100. if (!data3)
  6101. return 12;
  6102. if (read (fd, data3, pagesize) != pagesize)
  6103. return 13;
  6104. for (i = 0; i < pagesize; ++i)
  6105. if (*(data + i) != *(data3 + i))
  6106. return 14;
  6107. close (fd);
  6108. return 0;
  6109. }
  6110. _ACEOF
  6111. if ac_fn_c_try_run "$LINENO"; then :
  6112. ac_cv_func_mmap_fixed_mapped=yes
  6113. else
  6114. ac_cv_func_mmap_fixed_mapped=no
  6115. fi
  6116. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6117. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6118. fi
  6119. fi
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6121. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  6122. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6123. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  6124. fi
  6125. rm -f conftest.mmap conftest.txt
  6126. for ac_header in vfork.h
  6127. do :
  6128. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6129. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6130. cat >>confdefs.h <<_ACEOF
  6131. #define HAVE_VFORK_H 1
  6132. _ACEOF
  6133. fi
  6134. done
  6135. for ac_func in fork vfork
  6136. do :
  6137. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6138. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6139. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6140. cat >>confdefs.h <<_ACEOF
  6141. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6142. _ACEOF
  6143. fi
  6144. done
  6145. if test "x$ac_cv_func_fork" = xyes; then
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6147. $as_echo_n "checking for working fork... " >&6; }
  6148. if ${ac_cv_func_fork_works+:} false; then :
  6149. $as_echo_n "(cached) " >&6
  6150. else
  6151. if test "$cross_compiling" = yes; then :
  6152. ac_cv_func_fork_works=cross
  6153. else
  6154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6155. /* end confdefs.h. */
  6156. $ac_includes_default
  6157. int
  6158. main ()
  6159. {
  6160. /* By Ruediger Kuhlmann. */
  6161. return fork () < 0;
  6162. ;
  6163. return 0;
  6164. }
  6165. _ACEOF
  6166. if ac_fn_c_try_run "$LINENO"; then :
  6167. ac_cv_func_fork_works=yes
  6168. else
  6169. ac_cv_func_fork_works=no
  6170. fi
  6171. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6172. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6173. fi
  6174. fi
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6176. $as_echo "$ac_cv_func_fork_works" >&6; }
  6177. else
  6178. ac_cv_func_fork_works=$ac_cv_func_fork
  6179. fi
  6180. if test "x$ac_cv_func_fork_works" = xcross; then
  6181. case $host in
  6182. *-*-amigaos* | *-*-msdosdjgpp*)
  6183. # Override, as these systems have only a dummy fork() stub
  6184. ac_cv_func_fork_works=no
  6185. ;;
  6186. *)
  6187. ac_cv_func_fork_works=yes
  6188. ;;
  6189. esac
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6191. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6192. fi
  6193. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6194. if test "x$ac_cv_func_vfork" = xyes; then
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6196. $as_echo_n "checking for working vfork... " >&6; }
  6197. if ${ac_cv_func_vfork_works+:} false; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. if test "$cross_compiling" = yes; then :
  6201. ac_cv_func_vfork_works=cross
  6202. else
  6203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6204. /* end confdefs.h. */
  6205. /* Thanks to Paul Eggert for this test. */
  6206. $ac_includes_default
  6207. #include <sys/wait.h>
  6208. #ifdef HAVE_VFORK_H
  6209. # include <vfork.h>
  6210. #endif
  6211. /* On some sparc systems, changes by the child to local and incoming
  6212. argument registers are propagated back to the parent. The compiler
  6213. is told about this with #include <vfork.h>, but some compilers
  6214. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6215. static variable whose address is put into a register that is
  6216. clobbered by the vfork. */
  6217. static void
  6218. #ifdef __cplusplus
  6219. sparc_address_test (int arg)
  6220. # else
  6221. sparc_address_test (arg) int arg;
  6222. #endif
  6223. {
  6224. static pid_t child;
  6225. if (!child) {
  6226. child = vfork ();
  6227. if (child < 0) {
  6228. perror ("vfork");
  6229. _exit(2);
  6230. }
  6231. if (!child) {
  6232. arg = getpid();
  6233. write(-1, "", 0);
  6234. _exit (arg);
  6235. }
  6236. }
  6237. }
  6238. int
  6239. main ()
  6240. {
  6241. pid_t parent = getpid ();
  6242. pid_t child;
  6243. sparc_address_test (0);
  6244. child = vfork ();
  6245. if (child == 0) {
  6246. /* Here is another test for sparc vfork register problems. This
  6247. test uses lots of local variables, at least as many local
  6248. variables as main has allocated so far including compiler
  6249. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6250. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6251. reuse the register of parent for one of the local variables,
  6252. since it will think that parent can't possibly be used any more
  6253. in this routine. Assigning to the local variable will thus
  6254. munge parent in the parent process. */
  6255. pid_t
  6256. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6257. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6258. /* Convince the compiler that p..p7 are live; otherwise, it might
  6259. use the same hardware register for all 8 local variables. */
  6260. if (p != p1 || p != p2 || p != p3 || p != p4
  6261. || p != p5 || p != p6 || p != p7)
  6262. _exit(1);
  6263. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6264. from child file descriptors. If the child closes a descriptor
  6265. before it execs or exits, this munges the parent's descriptor
  6266. as well. Test for this by closing stdout in the child. */
  6267. _exit(close(fileno(stdout)) != 0);
  6268. } else {
  6269. int status;
  6270. struct stat st;
  6271. while (wait(&status) != child)
  6272. ;
  6273. return (
  6274. /* Was there some problem with vforking? */
  6275. child < 0
  6276. /* Did the child fail? (This shouldn't happen.) */
  6277. || status
  6278. /* Did the vfork/compiler bug occur? */
  6279. || parent != getpid()
  6280. /* Did the file descriptor bug occur? */
  6281. || fstat(fileno(stdout), &st) != 0
  6282. );
  6283. }
  6284. }
  6285. _ACEOF
  6286. if ac_fn_c_try_run "$LINENO"; then :
  6287. ac_cv_func_vfork_works=yes
  6288. else
  6289. ac_cv_func_vfork_works=no
  6290. fi
  6291. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6292. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6293. fi
  6294. fi
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6296. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6297. fi;
  6298. if test "x$ac_cv_func_fork_works" = xcross; then
  6299. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6301. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6302. fi
  6303. if test "x$ac_cv_func_vfork_works" = xyes; then
  6304. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  6305. else
  6306. $as_echo "#define vfork fork" >>confdefs.h
  6307. fi
  6308. if test "x$ac_cv_func_fork_works" = xyes; then
  6309. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  6310. fi
  6311. for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
  6312. ptrace64 sbrk setns sigaltstack sigprocmask \
  6313. setpgid setpgrp getrusage getauxval sigtimedwait
  6314. do :
  6315. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6316. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6317. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6318. cat >>confdefs.h <<_ACEOF
  6319. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6320. _ACEOF
  6321. fi
  6322. done
  6323. # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
  6324. # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
  6325. # only in linux/personality.h.
  6326. ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
  6327. "
  6328. if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
  6329. ac_have_decl=1
  6330. else
  6331. ac_have_decl=0
  6332. fi
  6333. cat >>confdefs.h <<_ACEOF
  6334. #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
  6335. _ACEOF
  6336. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  6337. if test "x$ac_cv_have_decl_strstr" = xyes; then :
  6338. ac_have_decl=1
  6339. else
  6340. ac_have_decl=0
  6341. fi
  6342. cat >>confdefs.h <<_ACEOF
  6343. #define HAVE_DECL_STRSTR $ac_have_decl
  6344. _ACEOF
  6345. # ----------------------- #
  6346. # Checks for structures. #
  6347. # ----------------------- #
  6348. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  6349. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  6350. cat >>confdefs.h <<_ACEOF
  6351. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  6352. _ACEOF
  6353. fi
  6354. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  6355. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  6356. cat >>confdefs.h <<_ACEOF
  6357. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  6358. _ACEOF
  6359. fi
  6360. # On FreeBSD we need libutil for the kinfo_get* functions. On
  6361. # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
  6362. # Figure out which one to use.
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
  6364. $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
  6365. if ${ac_cv_search_kinfo_getfile+:} false; then :
  6366. $as_echo_n "(cached) " >&6
  6367. else
  6368. ac_func_search_save_LIBS=$LIBS
  6369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6370. /* end confdefs.h. */
  6371. /* Override any GCC internal prototype to avoid an error.
  6372. Use char because int might match the return type of a GCC
  6373. builtin and then its argument prototype would still apply. */
  6374. #ifdef __cplusplus
  6375. extern "C"
  6376. #endif
  6377. char kinfo_getfile ();
  6378. int
  6379. main ()
  6380. {
  6381. return kinfo_getfile ();
  6382. ;
  6383. return 0;
  6384. }
  6385. _ACEOF
  6386. for ac_lib in '' util util-freebsd; do
  6387. if test -z "$ac_lib"; then
  6388. ac_res="none required"
  6389. else
  6390. ac_res=-l$ac_lib
  6391. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6392. fi
  6393. if ac_fn_c_try_link "$LINENO"; then :
  6394. ac_cv_search_kinfo_getfile=$ac_res
  6395. fi
  6396. rm -f core conftest.err conftest.$ac_objext \
  6397. conftest$ac_exeext
  6398. if ${ac_cv_search_kinfo_getfile+:} false; then :
  6399. break
  6400. fi
  6401. done
  6402. if ${ac_cv_search_kinfo_getfile+:} false; then :
  6403. else
  6404. ac_cv_search_kinfo_getfile=no
  6405. fi
  6406. rm conftest.$ac_ext
  6407. LIBS=$ac_func_search_save_LIBS
  6408. fi
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
  6410. $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
  6411. ac_res=$ac_cv_search_kinfo_getfile
  6412. if test "$ac_res" != no; then :
  6413. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6414. fi
  6415. # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
  6416. for ac_func in kinfo_getfile
  6417. do :
  6418. ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
  6419. if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
  6420. cat >>confdefs.h <<_ACEOF
  6421. #define HAVE_KINFO_GETFILE 1
  6422. _ACEOF
  6423. fi
  6424. done
  6425. # ----------------------- #
  6426. # Check for threading. #
  6427. # ----------------------- #
  6428. # Check whether --enable-threading was given.
  6429. if test "${enable_threading+set}" = set; then :
  6430. enableval=$enable_threading; case "$enableval" in
  6431. yes) want_threading=yes ;;
  6432. no) want_threading=no ;;
  6433. *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
  6434. esac
  6435. else
  6436. want_threading=yes
  6437. fi
  6438. # Check for std::thread. This does not work on some platforms, like
  6439. # mingw and DJGPP.
  6440. ac_ext=cpp
  6441. ac_cpp='$CXXCPP $CPPFLAGS'
  6442. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6443. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6445. ac_ext=c
  6446. ac_cpp='$CPP $CPPFLAGS'
  6447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6450. ax_pthread_ok=no
  6451. # We used to check for pthread.h first, but this fails if pthread.h
  6452. # requires special compiler flags (e.g. on Tru64 or Sequent).
  6453. # It gets checked for in the link test anyway.
  6454. # First of all, check if the user has set any of the PTHREAD_LIBS,
  6455. # etcetera environment variables, and if threads linking works using
  6456. # them:
  6457. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  6458. ax_pthread_save_CC="$CC"
  6459. ax_pthread_save_CFLAGS="$CFLAGS"
  6460. ax_pthread_save_LIBS="$LIBS"
  6461. if test "x$PTHREAD_CC" != "x"; then :
  6462. CC="$PTHREAD_CC"
  6463. fi
  6464. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6465. LIBS="$PTHREAD_LIBS $LIBS"
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  6467. $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  6468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6469. /* end confdefs.h. */
  6470. /* Override any GCC internal prototype to avoid an error.
  6471. Use char because int might match the return type of a GCC
  6472. builtin and then its argument prototype would still apply. */
  6473. #ifdef __cplusplus
  6474. extern "C"
  6475. #endif
  6476. char pthread_join ();
  6477. int
  6478. main ()
  6479. {
  6480. return pthread_join ();
  6481. ;
  6482. return 0;
  6483. }
  6484. _ACEOF
  6485. if ac_fn_c_try_link "$LINENO"; then :
  6486. ax_pthread_ok=yes
  6487. fi
  6488. rm -f core conftest.err conftest.$ac_objext \
  6489. conftest$ac_exeext conftest.$ac_ext
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  6491. $as_echo "$ax_pthread_ok" >&6; }
  6492. if test "x$ax_pthread_ok" = "xno"; then
  6493. PTHREAD_LIBS=""
  6494. PTHREAD_CFLAGS=""
  6495. fi
  6496. CC="$ax_pthread_save_CC"
  6497. CFLAGS="$ax_pthread_save_CFLAGS"
  6498. LIBS="$ax_pthread_save_LIBS"
  6499. fi
  6500. # We must check for the threads library under a number of different
  6501. # names; the ordering is very important because some systems
  6502. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  6503. # libraries is broken (non-POSIX).
  6504. # Create a list of thread flags to try. Items starting with a "-" are
  6505. # C compiler flags, and other items are library names, except for "none"
  6506. # which indicates that we try without any flags at all, and "pthread-config"
  6507. # which is a program returning the flags for the Pth emulation library.
  6508. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  6509. # The ordering *is* (sometimes) important. Some notes on the
  6510. # individual items follow:
  6511. # pthreads: AIX (must check this before -lpthread)
  6512. # none: in case threads are in libc; should be tried before -Kthread and
  6513. # other compiler flags to prevent continual compiler warnings
  6514. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  6515. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  6516. # (Note: HP C rejects this with "bad form for `-t' option")
  6517. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  6518. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  6519. # doesn't hurt to check since this sometimes defines pthreads and
  6520. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  6521. # is present but should not be used directly; and before -mthreads,
  6522. # because the compiler interprets this as "-mt" + "-hreads")
  6523. # -mthreads: Mingw32/gcc, Lynx/gcc
  6524. # pthread: Linux, etcetera
  6525. # --thread-safe: KAI C++
  6526. # pthread-config: use pthread-config program (for GNU Pth library)
  6527. case $host_os in
  6528. freebsd*)
  6529. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  6530. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  6531. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  6532. ;;
  6533. hpux*)
  6534. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  6535. # multi-threading and also sets -lpthread."
  6536. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  6537. ;;
  6538. openedition*)
  6539. # IBM z/OS requires a feature-test macro to be defined in order to
  6540. # enable POSIX threads at all, so give the user a hint if this is
  6541. # not set. (We don't define these ourselves, as they can affect
  6542. # other portions of the system API in unpredictable ways.)
  6543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6544. /* end confdefs.h. */
  6545. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  6546. AX_PTHREAD_ZOS_MISSING
  6547. # endif
  6548. _ACEOF
  6549. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6550. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  6552. $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  6553. fi
  6554. rm -f conftest*
  6555. ;;
  6556. solaris*)
  6557. # On Solaris (at least, for some versions), libc contains stubbed
  6558. # (non-functional) versions of the pthreads routines, so link-based
  6559. # tests will erroneously succeed. (N.B.: The stubs are missing
  6560. # pthread_cleanup_push, or rather a function called by this macro,
  6561. # so we could check for that, but who knows whether they'll stub
  6562. # that too in a future libc.) So we'll check first for the
  6563. # standard Solaris way of linking pthreads (-mt -lpthread).
  6564. ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
  6565. ;;
  6566. esac
  6567. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  6568. if test "x$GCC" = "xyes"; then :
  6569. ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
  6570. fi
  6571. # The presence of a feature test macro requesting re-entrant function
  6572. # definitions is, on some systems, a strong hint that pthreads support is
  6573. # correctly enabled
  6574. case $host_os in
  6575. darwin* | hpux* | linux* | osf* | solaris*)
  6576. ax_pthread_check_macro="_REENTRANT"
  6577. ;;
  6578. aix*)
  6579. ax_pthread_check_macro="_THREAD_SAFE"
  6580. ;;
  6581. *)
  6582. ax_pthread_check_macro="--"
  6583. ;;
  6584. esac
  6585. if test "x$ax_pthread_check_macro" = "x--"; then :
  6586. ax_pthread_check_cond=0
  6587. else
  6588. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  6589. fi
  6590. # Are we compiling with Clang?
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  6592. $as_echo_n "checking whether $CC is Clang... " >&6; }
  6593. if ${ax_cv_PTHREAD_CLANG+:} false; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. ax_cv_PTHREAD_CLANG=no
  6597. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  6598. if test "x$GCC" = "xyes"; then
  6599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6600. /* end confdefs.h. */
  6601. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  6602. # if defined(__clang__) && defined(__llvm__)
  6603. AX_PTHREAD_CC_IS_CLANG
  6604. # endif
  6605. _ACEOF
  6606. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6607. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
  6608. ax_cv_PTHREAD_CLANG=yes
  6609. fi
  6610. rm -f conftest*
  6611. fi
  6612. fi
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  6614. $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
  6615. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  6616. ax_pthread_clang_warning=no
  6617. # Clang needs special handling, because older versions handle the -pthread
  6618. # option in a rather... idiosyncratic way
  6619. if test "x$ax_pthread_clang" = "xyes"; then
  6620. # Clang takes -pthread; it has never supported any other flag
  6621. # (Note 1: This will need to be revisited if a system that Clang
  6622. # supports has POSIX threads in a separate library. This tends not
  6623. # to be the way of modern systems, but it's conceivable.)
  6624. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  6625. # to get POSIX threads support; the API is always present and
  6626. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  6627. # -pthread does define _REENTRANT, and while the Darwin headers
  6628. # ignore this macro, third-party headers might not.)
  6629. PTHREAD_CFLAGS="-pthread"
  6630. PTHREAD_LIBS=
  6631. ax_pthread_ok=yes
  6632. # However, older versions of Clang make a point of warning the user
  6633. # that, in an invocation where only linking and no compilation is
  6634. # taking place, the -pthread option has no effect ("argument unused
  6635. # during compilation"). They expect -pthread to be passed in only
  6636. # when source code is being compiled.
  6637. #
  6638. # Problem is, this is at odds with the way Automake and most other
  6639. # C build frameworks function, which is that the same flags used in
  6640. # compilation (CFLAGS) are also used in linking. Many systems
  6641. # supported by AX_PTHREAD require exactly this for POSIX threads
  6642. # support, and in fact it is often not straightforward to specify a
  6643. # flag that is used only in the compilation phase and not in
  6644. # linking. Such a scenario is extremely rare in practice.
  6645. #
  6646. # Even though use of the -pthread flag in linking would only print
  6647. # a warning, this can be a nuisance for well-run software projects
  6648. # that build with -Werror. So if the active version of Clang has
  6649. # this misfeature, we search for an option to squash it.
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  6651. $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  6652. if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  6656. # Create an alternate version of $ac_link that compiles and
  6657. # links in two steps (.c -> .o, .o -> exe) instead of one
  6658. # (.c -> exe), because the warning occurs only in the second
  6659. # step
  6660. ax_pthread_save_ac_link="$ac_link"
  6661. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  6662. ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
  6663. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  6664. ax_pthread_save_CFLAGS="$CFLAGS"
  6665. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  6666. if test "x$ax_pthread_try" = "xunknown"; then :
  6667. break
  6668. fi
  6669. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  6670. ac_link="$ax_pthread_save_ac_link"
  6671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6672. /* end confdefs.h. */
  6673. int main(void){return 0;}
  6674. _ACEOF
  6675. if ac_fn_c_try_link "$LINENO"; then :
  6676. ac_link="$ax_pthread_2step_ac_link"
  6677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6678. /* end confdefs.h. */
  6679. int main(void){return 0;}
  6680. _ACEOF
  6681. if ac_fn_c_try_link "$LINENO"; then :
  6682. break
  6683. fi
  6684. rm -f core conftest.err conftest.$ac_objext \
  6685. conftest$ac_exeext conftest.$ac_ext
  6686. fi
  6687. rm -f core conftest.err conftest.$ac_objext \
  6688. conftest$ac_exeext conftest.$ac_ext
  6689. done
  6690. ac_link="$ax_pthread_save_ac_link"
  6691. CFLAGS="$ax_pthread_save_CFLAGS"
  6692. if test "x$ax_pthread_try" = "x"; then :
  6693. ax_pthread_try=no
  6694. fi
  6695. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  6696. fi
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  6698. $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  6699. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  6700. no | unknown) ;;
  6701. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  6702. esac
  6703. fi # $ax_pthread_clang = yes
  6704. if test "x$ax_pthread_ok" = "xno"; then
  6705. for ax_pthread_try_flag in $ax_pthread_flags; do
  6706. case $ax_pthread_try_flag in
  6707. none)
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  6709. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  6710. ;;
  6711. -mt,pthread)
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
  6713. $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
  6714. PTHREAD_CFLAGS="-mt"
  6715. PTHREAD_LIBS="-lpthread"
  6716. ;;
  6717. -*)
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  6719. $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  6720. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  6721. ;;
  6722. pthread-config)
  6723. # Extract the first word of "pthread-config", so it can be a program name with args.
  6724. set dummy pthread-config; ac_word=$2
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6726. $as_echo_n "checking for $ac_word... " >&6; }
  6727. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. if test -n "$ax_pthread_config"; then
  6731. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  6732. else
  6733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6734. for as_dir in $PATH
  6735. do
  6736. IFS=$as_save_IFS
  6737. test -z "$as_dir" && as_dir=.
  6738. for ac_exec_ext in '' $ac_executable_extensions; do
  6739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6740. ac_cv_prog_ax_pthread_config="yes"
  6741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6742. break 2
  6743. fi
  6744. done
  6745. done
  6746. IFS=$as_save_IFS
  6747. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  6748. fi
  6749. fi
  6750. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  6751. if test -n "$ax_pthread_config"; then
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  6753. $as_echo "$ax_pthread_config" >&6; }
  6754. else
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6756. $as_echo "no" >&6; }
  6757. fi
  6758. if test "x$ax_pthread_config" = "xno"; then :
  6759. continue
  6760. fi
  6761. PTHREAD_CFLAGS="`pthread-config --cflags`"
  6762. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  6763. ;;
  6764. *)
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  6766. $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  6767. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  6768. ;;
  6769. esac
  6770. ax_pthread_save_CFLAGS="$CFLAGS"
  6771. ax_pthread_save_LIBS="$LIBS"
  6772. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6773. LIBS="$PTHREAD_LIBS $LIBS"
  6774. # Check for various functions. We must include pthread.h,
  6775. # since some functions may be macros. (On the Sequent, we
  6776. # need a special flag -Kthread to make this header compile.)
  6777. # We check for pthread_join because it is in -lpthread on IRIX
  6778. # while pthread_create is in libc. We check for pthread_attr_init
  6779. # due to DEC craziness with -lpthreads. We check for
  6780. # pthread_cleanup_push because it is one of the few pthread
  6781. # functions on Solaris that doesn't have a non-functional libc stub.
  6782. # We try pthread_create on general principles.
  6783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6784. /* end confdefs.h. */
  6785. #include <pthread.h>
  6786. # if $ax_pthread_check_cond
  6787. # error "$ax_pthread_check_macro must be defined"
  6788. # endif
  6789. static void routine(void *a) { a = 0; }
  6790. static void *start_routine(void *a) { return a; }
  6791. int
  6792. main ()
  6793. {
  6794. pthread_t th; pthread_attr_t attr;
  6795. pthread_create(&th, 0, start_routine, 0);
  6796. pthread_join(th, 0);
  6797. pthread_attr_init(&attr);
  6798. pthread_cleanup_push(routine, 0);
  6799. pthread_cleanup_pop(0) /* ; */
  6800. ;
  6801. return 0;
  6802. }
  6803. _ACEOF
  6804. if ac_fn_c_try_link "$LINENO"; then :
  6805. ax_pthread_ok=yes
  6806. fi
  6807. rm -f core conftest.err conftest.$ac_objext \
  6808. conftest$ac_exeext conftest.$ac_ext
  6809. CFLAGS="$ax_pthread_save_CFLAGS"
  6810. LIBS="$ax_pthread_save_LIBS"
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  6812. $as_echo "$ax_pthread_ok" >&6; }
  6813. if test "x$ax_pthread_ok" = "xyes"; then :
  6814. break
  6815. fi
  6816. PTHREAD_LIBS=""
  6817. PTHREAD_CFLAGS=""
  6818. done
  6819. fi
  6820. # Various other checks:
  6821. if test "x$ax_pthread_ok" = "xyes"; then
  6822. ax_pthread_save_CFLAGS="$CFLAGS"
  6823. ax_pthread_save_LIBS="$LIBS"
  6824. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6825. LIBS="$PTHREAD_LIBS $LIBS"
  6826. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  6828. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  6829. if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
  6830. $as_echo_n "(cached) " >&6
  6831. else
  6832. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  6833. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  6834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6835. /* end confdefs.h. */
  6836. #include <pthread.h>
  6837. int
  6838. main ()
  6839. {
  6840. int attr = $ax_pthread_attr; return attr /* ; */
  6841. ;
  6842. return 0;
  6843. }
  6844. _ACEOF
  6845. if ac_fn_c_try_link "$LINENO"; then :
  6846. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  6847. fi
  6848. rm -f core conftest.err conftest.$ac_objext \
  6849. conftest$ac_exeext conftest.$ac_ext
  6850. done
  6851. fi
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  6853. $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  6854. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  6855. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  6856. test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
  6857. cat >>confdefs.h <<_ACEOF
  6858. #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
  6859. _ACEOF
  6860. ax_pthread_joinable_attr_defined=yes
  6861. fi
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  6863. $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
  6864. if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
  6865. $as_echo_n "(cached) " >&6
  6866. else
  6867. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  6868. case $host_os in
  6869. solaris*)
  6870. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  6871. ;;
  6872. esac
  6873. fi
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  6875. $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  6876. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  6877. test "x$ax_pthread_special_flags_added" != "xyes"; then :
  6878. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  6879. ax_pthread_special_flags_added=yes
  6880. fi
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  6882. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  6883. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  6884. $as_echo_n "(cached) " >&6
  6885. else
  6886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6887. /* end confdefs.h. */
  6888. #include <pthread.h>
  6889. int
  6890. main ()
  6891. {
  6892. int i = PTHREAD_PRIO_INHERIT;
  6893. ;
  6894. return 0;
  6895. }
  6896. _ACEOF
  6897. if ac_fn_c_try_link "$LINENO"; then :
  6898. ax_cv_PTHREAD_PRIO_INHERIT=yes
  6899. else
  6900. ax_cv_PTHREAD_PRIO_INHERIT=no
  6901. fi
  6902. rm -f core conftest.err conftest.$ac_objext \
  6903. conftest$ac_exeext conftest.$ac_ext
  6904. fi
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  6906. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  6907. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  6908. test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
  6909. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  6910. ax_pthread_prio_inherit_defined=yes
  6911. fi
  6912. CFLAGS="$ax_pthread_save_CFLAGS"
  6913. LIBS="$ax_pthread_save_LIBS"
  6914. # More AIX lossage: compile with *_r variant
  6915. if test "x$GCC" != "xyes"; then
  6916. case $host_os in
  6917. aix*)
  6918. case "x/$CC" in #(
  6919. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  6920. #handle absolute path differently from PATH based program lookup
  6921. case "x$CC" in #(
  6922. x/*) :
  6923. if as_fn_executable_p ${CC}_r; then :
  6924. PTHREAD_CC="${CC}_r"
  6925. fi ;; #(
  6926. *) :
  6927. for ac_prog in ${CC}_r
  6928. do
  6929. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6930. set dummy $ac_prog; 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_PTHREAD_CC+:} false; then :
  6934. $as_echo_n "(cached) " >&6
  6935. else
  6936. if test -n "$PTHREAD_CC"; then
  6937. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # 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_PTHREAD_CC="$ac_prog"
  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. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  6956. if test -n "$PTHREAD_CC"; then
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  6958. $as_echo "$PTHREAD_CC" >&6; }
  6959. else
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6961. $as_echo "no" >&6; }
  6962. fi
  6963. test -n "$PTHREAD_CC" && break
  6964. done
  6965. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  6966. ;;
  6967. esac ;; #(
  6968. *) :
  6969. ;;
  6970. esac
  6971. ;;
  6972. esac
  6973. fi
  6974. fi
  6975. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  6976. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  6977. if test "x$ax_pthread_ok" = "xyes"; then
  6978. threads=yes
  6979. :
  6980. else
  6981. ax_pthread_ok=no
  6982. threads=no
  6983. fi
  6984. ac_ext=cpp
  6985. ac_cpp='$CXXCPP $CPPFLAGS'
  6986. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6987. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6988. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6989. if test "$threads" = "yes"; then
  6990. save_LIBS="$LIBS"
  6991. LIBS="$PTHREAD_LIBS $LIBS"
  6992. save_CXXFLAGS="$CXXFLAGS"
  6993. CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
  6995. $as_echo_n "checking for std::thread... " >&6; }
  6996. if ${gdb_cv_cxx_std_thread+:} false; then :
  6997. $as_echo_n "(cached) " >&6
  6998. else
  6999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7000. /* end confdefs.h. */
  7001. #include <thread>
  7002. void callback() { }
  7003. int
  7004. main ()
  7005. {
  7006. std::thread t(callback);
  7007. ;
  7008. return 0;
  7009. }
  7010. _ACEOF
  7011. if ac_fn_cxx_try_compile "$LINENO"; then :
  7012. gdb_cv_cxx_std_thread=yes
  7013. else
  7014. gdb_cv_cxx_std_thread=no
  7015. fi
  7016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7017. fi
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
  7019. $as_echo "$gdb_cv_cxx_std_thread" >&6; }
  7020. # This check must be here, while LIBS includes any necessary
  7021. # threading library.
  7022. for ac_func in pthread_sigmask pthread_setname_np
  7023. do :
  7024. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7025. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7026. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7027. cat >>confdefs.h <<_ACEOF
  7028. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7029. _ACEOF
  7030. fi
  7031. done
  7032. LIBS="$save_LIBS"
  7033. CXXFLAGS="$save_CXXFLAGS"
  7034. fi
  7035. if test "$want_threading" = "yes"; then
  7036. if test "$gdb_cv_cxx_std_thread" = "yes"; then
  7037. $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
  7038. fi
  7039. fi
  7040. ac_ext=c
  7041. ac_cpp='$CPP $CPPFLAGS'
  7042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
  7046. $as_echo_n "checking for sigsetjmp... " >&6; }
  7047. if ${gdb_cv_func_sigsetjmp+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7051. /* end confdefs.h. */
  7052. #include <setjmp.h>
  7053. int
  7054. main ()
  7055. {
  7056. sigjmp_buf env;
  7057. while (! sigsetjmp (env, 1))
  7058. siglongjmp (env, 1);
  7059. ;
  7060. return 0;
  7061. }
  7062. _ACEOF
  7063. if ac_fn_c_try_compile "$LINENO"; then :
  7064. gdb_cv_func_sigsetjmp=yes
  7065. else
  7066. gdb_cv_func_sigsetjmp=no
  7067. fi
  7068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7069. fi
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
  7071. $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
  7072. if test "$gdb_cv_func_sigsetjmp" = "yes"; then
  7073. $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
  7074. fi
  7075. # Check whether --with-intel_pt was given.
  7076. if test "${with_intel_pt+set}" = set; then :
  7077. withval=$with_intel_pt;
  7078. else
  7079. with_intel_pt=auto
  7080. fi
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
  7082. $as_echo_n "checking whether to use intel pt... " >&6; }
  7083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
  7084. $as_echo "$with_intel_pt" >&6; }
  7085. if test "${with_intel_pt}" = no; then
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
  7087. $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
  7088. HAVE_LIBIPT=no
  7089. else
  7090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7091. /* end confdefs.h. */
  7092. #include <linux/perf_event.h>
  7093. #ifndef PERF_ATTR_SIZE_VER5
  7094. # error
  7095. #endif
  7096. _ACEOF
  7097. if ac_fn_c_try_cpp "$LINENO"; then :
  7098. perf_event=yes
  7099. else
  7100. perf_event=no
  7101. fi
  7102. rm -f conftest.err conftest.i conftest.$ac_ext
  7103. if test "$perf_event" != yes; then
  7104. if test "$with_intel_pt" = yes; then
  7105. as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
  7106. else
  7107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
  7108. $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
  7109. fi
  7110. fi
  7111. use_additional=yes
  7112. acl_save_prefix="$prefix"
  7113. prefix="$acl_final_prefix"
  7114. acl_save_exec_prefix="$exec_prefix"
  7115. exec_prefix="$acl_final_exec_prefix"
  7116. eval additional_includedir=\"$includedir\"
  7117. eval additional_libdir=\"$libdir\"
  7118. exec_prefix="$acl_save_exec_prefix"
  7119. prefix="$acl_save_prefix"
  7120. # Check whether --with-libipt-prefix was given.
  7121. if test "${with_libipt_prefix+set}" = set; then :
  7122. withval=$with_libipt_prefix;
  7123. if test "X$withval" = "Xno"; then
  7124. use_additional=no
  7125. else
  7126. if test "X$withval" = "X"; then
  7127. acl_save_prefix="$prefix"
  7128. prefix="$acl_final_prefix"
  7129. acl_save_exec_prefix="$exec_prefix"
  7130. exec_prefix="$acl_final_exec_prefix"
  7131. eval additional_includedir=\"$includedir\"
  7132. eval additional_libdir=\"$libdir\"
  7133. exec_prefix="$acl_save_exec_prefix"
  7134. prefix="$acl_save_prefix"
  7135. else
  7136. additional_includedir="$withval/include"
  7137. additional_libdir="$withval/lib"
  7138. fi
  7139. fi
  7140. fi
  7141. # Check whether --with-libipt-type was given.
  7142. if test "${with_libipt_type+set}" = set; then :
  7143. withval=$with_libipt_type; with_libipt_type=$withval
  7144. else
  7145. with_libipt_type=auto
  7146. fi
  7147. lib_type=`eval echo \$with_libipt_type`
  7148. LIBIPT=
  7149. LTLIBIPT=
  7150. INCIPT=
  7151. rpathdirs=
  7152. ltrpathdirs=
  7153. names_already_handled=
  7154. names_next_round='ipt '
  7155. while test -n "$names_next_round"; do
  7156. names_this_round="$names_next_round"
  7157. names_next_round=
  7158. for name in $names_this_round; do
  7159. already_handled=
  7160. for n in $names_already_handled; do
  7161. if test "$n" = "$name"; then
  7162. already_handled=yes
  7163. break
  7164. fi
  7165. done
  7166. if test -z "$already_handled"; then
  7167. names_already_handled="$names_already_handled $name"
  7168. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7169. eval value=\"\$HAVE_LIB$uppername\"
  7170. if test -n "$value"; then
  7171. if test "$value" = yes; then
  7172. eval value=\"\$LIB$uppername\"
  7173. test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
  7174. eval value=\"\$LTLIB$uppername\"
  7175. test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
  7176. else
  7177. :
  7178. fi
  7179. else
  7180. found_dir=
  7181. found_la=
  7182. found_so=
  7183. found_a=
  7184. if test $use_additional = yes; then
  7185. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  7186. found_dir="$additional_libdir"
  7187. found_so="$additional_libdir/lib$name.$shlibext"
  7188. if test -f "$additional_libdir/lib$name.la"; then
  7189. found_la="$additional_libdir/lib$name.la"
  7190. fi
  7191. elif test x$lib_type != xshared; then
  7192. if test -f "$additional_libdir/lib$name.$libext"; then
  7193. found_dir="$additional_libdir"
  7194. found_a="$additional_libdir/lib$name.$libext"
  7195. if test -f "$additional_libdir/lib$name.la"; then
  7196. found_la="$additional_libdir/lib$name.la"
  7197. fi
  7198. fi
  7199. fi
  7200. fi
  7201. if test "X$found_dir" = "X"; then
  7202. for x in $LDFLAGS $LTLIBIPT; do
  7203. acl_save_prefix="$prefix"
  7204. prefix="$acl_final_prefix"
  7205. acl_save_exec_prefix="$exec_prefix"
  7206. exec_prefix="$acl_final_exec_prefix"
  7207. eval x=\"$x\"
  7208. exec_prefix="$acl_save_exec_prefix"
  7209. prefix="$acl_save_prefix"
  7210. case "$x" in
  7211. -L*)
  7212. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7213. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  7214. found_dir="$dir"
  7215. found_so="$dir/lib$name.$shlibext"
  7216. if test -f "$dir/lib$name.la"; then
  7217. found_la="$dir/lib$name.la"
  7218. fi
  7219. elif test x$lib_type != xshared; then
  7220. if test -f "$dir/lib$name.$libext"; then
  7221. found_dir="$dir"
  7222. found_a="$dir/lib$name.$libext"
  7223. if test -f "$dir/lib$name.la"; then
  7224. found_la="$dir/lib$name.la"
  7225. fi
  7226. fi
  7227. fi
  7228. ;;
  7229. esac
  7230. if test "X$found_dir" != "X"; then
  7231. break
  7232. fi
  7233. done
  7234. fi
  7235. if test "X$found_dir" != "X"; then
  7236. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
  7237. if test "X$found_so" != "X"; then
  7238. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7239. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  7240. else
  7241. haveit=
  7242. for x in $ltrpathdirs; do
  7243. if test "X$x" = "X$found_dir"; then
  7244. haveit=yes
  7245. break
  7246. fi
  7247. done
  7248. if test -z "$haveit"; then
  7249. ltrpathdirs="$ltrpathdirs $found_dir"
  7250. fi
  7251. if test "$hardcode_direct" = yes; then
  7252. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  7253. else
  7254. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7255. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  7256. haveit=
  7257. for x in $rpathdirs; do
  7258. if test "X$x" = "X$found_dir"; then
  7259. haveit=yes
  7260. break
  7261. fi
  7262. done
  7263. if test -z "$haveit"; then
  7264. rpathdirs="$rpathdirs $found_dir"
  7265. fi
  7266. else
  7267. haveit=
  7268. for x in $LDFLAGS $LIBIPT; do
  7269. acl_save_prefix="$prefix"
  7270. prefix="$acl_final_prefix"
  7271. acl_save_exec_prefix="$exec_prefix"
  7272. exec_prefix="$acl_final_exec_prefix"
  7273. eval x=\"$x\"
  7274. exec_prefix="$acl_save_exec_prefix"
  7275. prefix="$acl_save_prefix"
  7276. if test "X$x" = "X-L$found_dir"; then
  7277. haveit=yes
  7278. break
  7279. fi
  7280. done
  7281. if test -z "$haveit"; then
  7282. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
  7283. fi
  7284. if test "$hardcode_minus_L" != no; then
  7285. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  7286. else
  7287. LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
  7288. fi
  7289. fi
  7290. fi
  7291. fi
  7292. else
  7293. if test "X$found_a" != "X"; then
  7294. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
  7295. else
  7296. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
  7297. fi
  7298. fi
  7299. additional_includedir=
  7300. case "$found_dir" in
  7301. */lib | */lib/)
  7302. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7303. additional_includedir="$basedir/include"
  7304. ;;
  7305. esac
  7306. if test "X$additional_includedir" != "X"; then
  7307. if test "X$additional_includedir" != "X/usr/include"; then
  7308. haveit=
  7309. if test "X$additional_includedir" = "X/usr/local/include"; then
  7310. if test -n "$GCC"; then
  7311. case $host_os in
  7312. linux*) haveit=yes;;
  7313. esac
  7314. fi
  7315. fi
  7316. if test -z "$haveit"; then
  7317. for x in $CPPFLAGS $INCIPT; do
  7318. acl_save_prefix="$prefix"
  7319. prefix="$acl_final_prefix"
  7320. acl_save_exec_prefix="$exec_prefix"
  7321. exec_prefix="$acl_final_exec_prefix"
  7322. eval x=\"$x\"
  7323. exec_prefix="$acl_save_exec_prefix"
  7324. prefix="$acl_save_prefix"
  7325. if test "X$x" = "X-I$additional_includedir"; then
  7326. haveit=yes
  7327. break
  7328. fi
  7329. done
  7330. if test -z "$haveit"; then
  7331. if test -d "$additional_includedir"; then
  7332. INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
  7333. fi
  7334. fi
  7335. fi
  7336. fi
  7337. fi
  7338. if test -n "$found_la"; then
  7339. save_libdir="$libdir"
  7340. case "$found_la" in
  7341. */* | *\\*) . "$found_la" ;;
  7342. *) . "./$found_la" ;;
  7343. esac
  7344. libdir="$save_libdir"
  7345. for dep in $dependency_libs; do
  7346. case "$dep" in
  7347. -L*)
  7348. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7349. if test "X$additional_libdir" != "X/usr/lib"; then
  7350. haveit=
  7351. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7352. if test -n "$GCC"; then
  7353. case $host_os in
  7354. linux*) haveit=yes;;
  7355. esac
  7356. fi
  7357. fi
  7358. if test -z "$haveit"; then
  7359. haveit=
  7360. for x in $LDFLAGS $LIBIPT; do
  7361. acl_save_prefix="$prefix"
  7362. prefix="$acl_final_prefix"
  7363. acl_save_exec_prefix="$exec_prefix"
  7364. exec_prefix="$acl_final_exec_prefix"
  7365. eval x=\"$x\"
  7366. exec_prefix="$acl_save_exec_prefix"
  7367. prefix="$acl_save_prefix"
  7368. if test "X$x" = "X-L$additional_libdir"; then
  7369. haveit=yes
  7370. break
  7371. fi
  7372. done
  7373. if test -z "$haveit"; then
  7374. if test -d "$additional_libdir"; then
  7375. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
  7376. fi
  7377. fi
  7378. haveit=
  7379. for x in $LDFLAGS $LTLIBIPT; do
  7380. acl_save_prefix="$prefix"
  7381. prefix="$acl_final_prefix"
  7382. acl_save_exec_prefix="$exec_prefix"
  7383. exec_prefix="$acl_final_exec_prefix"
  7384. eval x=\"$x\"
  7385. exec_prefix="$acl_save_exec_prefix"
  7386. prefix="$acl_save_prefix"
  7387. if test "X$x" = "X-L$additional_libdir"; then
  7388. haveit=yes
  7389. break
  7390. fi
  7391. done
  7392. if test -z "$haveit"; then
  7393. if test -d "$additional_libdir"; then
  7394. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
  7395. fi
  7396. fi
  7397. fi
  7398. fi
  7399. ;;
  7400. -R*)
  7401. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7402. if test "$enable_rpath" != no; then
  7403. haveit=
  7404. for x in $rpathdirs; do
  7405. if test "X$x" = "X$dir"; then
  7406. haveit=yes
  7407. break
  7408. fi
  7409. done
  7410. if test -z "$haveit"; then
  7411. rpathdirs="$rpathdirs $dir"
  7412. fi
  7413. haveit=
  7414. for x in $ltrpathdirs; do
  7415. if test "X$x" = "X$dir"; then
  7416. haveit=yes
  7417. break
  7418. fi
  7419. done
  7420. if test -z "$haveit"; then
  7421. ltrpathdirs="$ltrpathdirs $dir"
  7422. fi
  7423. fi
  7424. ;;
  7425. -l*)
  7426. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7427. ;;
  7428. *.la)
  7429. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7430. ;;
  7431. *)
  7432. LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
  7433. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
  7434. ;;
  7435. esac
  7436. done
  7437. fi
  7438. else
  7439. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  7440. LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
  7441. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
  7442. else
  7443. LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
  7444. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
  7445. fi
  7446. fi
  7447. fi
  7448. fi
  7449. done
  7450. done
  7451. if test "X$rpathdirs" != "X"; then
  7452. if test -n "$hardcode_libdir_separator"; then
  7453. alldirs=
  7454. for found_dir in $rpathdirs; do
  7455. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7456. done
  7457. acl_save_libdir="$libdir"
  7458. libdir="$alldirs"
  7459. eval flag=\"$hardcode_libdir_flag_spec\"
  7460. libdir="$acl_save_libdir"
  7461. LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
  7462. else
  7463. for found_dir in $rpathdirs; do
  7464. acl_save_libdir="$libdir"
  7465. libdir="$found_dir"
  7466. eval flag=\"$hardcode_libdir_flag_spec\"
  7467. libdir="$acl_save_libdir"
  7468. LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
  7469. done
  7470. fi
  7471. fi
  7472. if test "X$ltrpathdirs" != "X"; then
  7473. for found_dir in $ltrpathdirs; do
  7474. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
  7475. done
  7476. fi
  7477. ac_save_CPPFLAGS="$CPPFLAGS"
  7478. for element in $INCIPT; do
  7479. haveit=
  7480. for x in $CPPFLAGS; do
  7481. acl_save_prefix="$prefix"
  7482. prefix="$acl_final_prefix"
  7483. acl_save_exec_prefix="$exec_prefix"
  7484. exec_prefix="$acl_final_exec_prefix"
  7485. eval x=\"$x\"
  7486. exec_prefix="$acl_save_exec_prefix"
  7487. prefix="$acl_save_prefix"
  7488. if test "X$x" = "X$element"; then
  7489. haveit=yes
  7490. break
  7491. fi
  7492. done
  7493. if test -z "$haveit"; then
  7494. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7495. fi
  7496. done
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
  7498. $as_echo_n "checking for libipt... " >&6; }
  7499. if ${ac_cv_libipt+:} false; then :
  7500. $as_echo_n "(cached) " >&6
  7501. else
  7502. ac_save_LIBS="$LIBS"
  7503. LIBS="$LIBS $LIBIPT"
  7504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7505. /* end confdefs.h. */
  7506. #include "intel-pt.h"
  7507. int
  7508. main ()
  7509. {
  7510. pt_insn_alloc_decoder (0);
  7511. ;
  7512. return 0;
  7513. }
  7514. _ACEOF
  7515. if ac_fn_c_try_link "$LINENO"; then :
  7516. ac_cv_libipt=yes
  7517. else
  7518. ac_cv_libipt=no
  7519. fi
  7520. rm -f core conftest.err conftest.$ac_objext \
  7521. conftest$ac_exeext conftest.$ac_ext
  7522. LIBS="$ac_save_LIBS"
  7523. fi
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
  7525. $as_echo "$ac_cv_libipt" >&6; }
  7526. if test "$ac_cv_libipt" = yes; then
  7527. HAVE_LIBIPT=yes
  7528. $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
  7530. $as_echo_n "checking how to link with libipt... " >&6; }
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
  7532. $as_echo "$LIBIPT" >&6; }
  7533. else
  7534. HAVE_LIBIPT=no
  7535. CPPFLAGS="$ac_save_CPPFLAGS"
  7536. LIBIPT=
  7537. LTLIBIPT=
  7538. fi
  7539. if test "$HAVE_LIBIPT" != yes; then
  7540. if test "$with_intel_pt" = yes; then
  7541. as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
  7542. else
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
  7544. $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
  7545. fi
  7546. else
  7547. save_LIBS=$LIBS
  7548. LIBS="$LIBS $LIBIPT"
  7549. for ac_func in pt_insn_event
  7550. do :
  7551. ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
  7552. if test "x$ac_cv_func_pt_insn_event" = xyes; then :
  7553. cat >>confdefs.h <<_ACEOF
  7554. #define HAVE_PT_INSN_EVENT 1
  7555. _ACEOF
  7556. fi
  7557. done
  7558. ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
  7559. "
  7560. if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
  7561. cat >>confdefs.h <<_ACEOF
  7562. #define HAVE_STRUCT_PT_INSN_ENABLED 1
  7563. _ACEOF
  7564. fi
  7565. ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
  7566. "
  7567. if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
  7568. cat >>confdefs.h <<_ACEOF
  7569. #define HAVE_STRUCT_PT_INSN_RESYNCED 1
  7570. _ACEOF
  7571. fi
  7572. LIBS=$save_LIBS
  7573. fi
  7574. fi
  7575. # Check if the compiler and runtime support printing long longs.
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
  7577. $as_echo_n "checking for long long support in printf... " >&6; }
  7578. if ${gdb_cv_printf_has_long_long+:} false; then :
  7579. $as_echo_n "(cached) " >&6
  7580. else
  7581. if test "$cross_compiling" = yes; then :
  7582. gdb_cv_printf_has_long_long=no
  7583. else
  7584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7585. /* end confdefs.h. */
  7586. $ac_includes_default
  7587. int
  7588. main ()
  7589. {
  7590. char buf[32];
  7591. long long l = 0;
  7592. l = (l << 16) + 0x0123;
  7593. l = (l << 16) + 0x4567;
  7594. l = (l << 16) + 0x89ab;
  7595. l = (l << 16) + 0xcdef;
  7596. sprintf (buf, "0x%016llx", l);
  7597. return (strcmp ("0x0123456789abcdef", buf));
  7598. ;
  7599. return 0;
  7600. }
  7601. _ACEOF
  7602. if ac_fn_c_try_run "$LINENO"; then :
  7603. gdb_cv_printf_has_long_long=yes
  7604. else
  7605. gdb_cv_printf_has_long_long=no
  7606. fi
  7607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7608. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7609. fi
  7610. fi
  7611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
  7612. $as_echo "$gdb_cv_printf_has_long_long" >&6; }
  7613. if test "$gdb_cv_printf_has_long_long" = yes; then
  7614. $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
  7615. fi
  7616. $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
  7617. for ac_header in sys/procfs.h
  7618. do :
  7619. ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
  7620. if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
  7621. cat >>confdefs.h <<_ACEOF
  7622. #define HAVE_SYS_PROCFS_H 1
  7623. _ACEOF
  7624. fi
  7625. done
  7626. if test "$ac_cv_header_sys_procfs_h" = yes; then
  7627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
  7628. $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
  7629. if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
  7630. $as_echo_n "(cached) " >&6
  7631. else
  7632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7633. /* end confdefs.h. */
  7634. #define _SYSCALL32
  7635. #include <sys/procfs.h>
  7636. int
  7637. main ()
  7638. {
  7639. gregset_t avar
  7640. ;
  7641. return 0;
  7642. }
  7643. _ACEOF
  7644. if ac_fn_c_try_compile "$LINENO"; then :
  7645. bfd_cv_have_sys_procfs_type_gregset_t=yes
  7646. else
  7647. bfd_cv_have_sys_procfs_type_gregset_t=no
  7648. fi
  7649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7650. fi
  7651. if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
  7652. $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
  7653. fi
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
  7655. $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
  7657. $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
  7658. if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
  7659. $as_echo_n "(cached) " >&6
  7660. else
  7661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7662. /* end confdefs.h. */
  7663. #define _SYSCALL32
  7664. #include <sys/procfs.h>
  7665. int
  7666. main ()
  7667. {
  7668. fpregset_t avar
  7669. ;
  7670. return 0;
  7671. }
  7672. _ACEOF
  7673. if ac_fn_c_try_compile "$LINENO"; then :
  7674. bfd_cv_have_sys_procfs_type_fpregset_t=yes
  7675. else
  7676. bfd_cv_have_sys_procfs_type_fpregset_t=no
  7677. fi
  7678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7679. fi
  7680. if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
  7681. $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
  7684. $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
  7686. $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
  7687. if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
  7688. $as_echo_n "(cached) " >&6
  7689. else
  7690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7691. /* end confdefs.h. */
  7692. #define _SYSCALL32
  7693. #include <sys/procfs.h>
  7694. int
  7695. main ()
  7696. {
  7697. prgregset_t avar
  7698. ;
  7699. return 0;
  7700. }
  7701. _ACEOF
  7702. if ac_fn_c_try_compile "$LINENO"; then :
  7703. bfd_cv_have_sys_procfs_type_prgregset_t=yes
  7704. else
  7705. bfd_cv_have_sys_procfs_type_prgregset_t=no
  7706. fi
  7707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7708. fi
  7709. if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
  7710. $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
  7711. fi
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
  7713. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
  7715. $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
  7716. if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
  7717. $as_echo_n "(cached) " >&6
  7718. else
  7719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7720. /* end confdefs.h. */
  7721. #define _SYSCALL32
  7722. #include <sys/procfs.h>
  7723. int
  7724. main ()
  7725. {
  7726. prfpregset_t avar
  7727. ;
  7728. return 0;
  7729. }
  7730. _ACEOF
  7731. if ac_fn_c_try_compile "$LINENO"; then :
  7732. bfd_cv_have_sys_procfs_type_prfpregset_t=yes
  7733. else
  7734. bfd_cv_have_sys_procfs_type_prfpregset_t=no
  7735. fi
  7736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7737. fi
  7738. if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
  7739. $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
  7740. fi
  7741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
  7742. $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
  7744. $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
  7745. if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
  7746. $as_echo_n "(cached) " >&6
  7747. else
  7748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7749. /* end confdefs.h. */
  7750. #define _SYSCALL32
  7751. #include <sys/procfs.h>
  7752. int
  7753. main ()
  7754. {
  7755. prgregset32_t avar
  7756. ;
  7757. return 0;
  7758. }
  7759. _ACEOF
  7760. if ac_fn_c_try_compile "$LINENO"; then :
  7761. bfd_cv_have_sys_procfs_type_prgregset32_t=yes
  7762. else
  7763. bfd_cv_have_sys_procfs_type_prgregset32_t=no
  7764. fi
  7765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7766. fi
  7767. if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
  7768. $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
  7769. fi
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
  7771. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
  7772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
  7773. $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
  7774. if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
  7775. $as_echo_n "(cached) " >&6
  7776. else
  7777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7778. /* end confdefs.h. */
  7779. #define _SYSCALL32
  7780. #include <sys/procfs.h>
  7781. int
  7782. main ()
  7783. {
  7784. lwpid_t avar
  7785. ;
  7786. return 0;
  7787. }
  7788. _ACEOF
  7789. if ac_fn_c_try_compile "$LINENO"; then :
  7790. bfd_cv_have_sys_procfs_type_lwpid_t=yes
  7791. else
  7792. bfd_cv_have_sys_procfs_type_lwpid_t=no
  7793. fi
  7794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7795. fi
  7796. if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
  7797. $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
  7798. fi
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
  7800. $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
  7802. $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
  7803. if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
  7804. $as_echo_n "(cached) " >&6
  7805. else
  7806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7807. /* end confdefs.h. */
  7808. #define _SYSCALL32
  7809. #include <sys/procfs.h>
  7810. int
  7811. main ()
  7812. {
  7813. psaddr_t avar
  7814. ;
  7815. return 0;
  7816. }
  7817. _ACEOF
  7818. if ac_fn_c_try_compile "$LINENO"; then :
  7819. bfd_cv_have_sys_procfs_type_psaddr_t=yes
  7820. else
  7821. bfd_cv_have_sys_procfs_type_psaddr_t=no
  7822. fi
  7823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7824. fi
  7825. if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
  7826. $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
  7827. fi
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
  7829. $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
  7830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
  7831. $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
  7832. if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
  7833. $as_echo_n "(cached) " >&6
  7834. else
  7835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7836. /* end confdefs.h. */
  7837. #define _SYSCALL32
  7838. #include <sys/procfs.h>
  7839. int
  7840. main ()
  7841. {
  7842. elf_fpregset_t avar
  7843. ;
  7844. return 0;
  7845. }
  7846. _ACEOF
  7847. if ac_fn_c_try_compile "$LINENO"; then :
  7848. bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
  7849. else
  7850. bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
  7851. fi
  7852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7853. fi
  7854. if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
  7855. $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
  7856. fi
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
  7858. $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
  7859. fi
  7860. # This is set by GDB_AC_COMMON.
  7861. # Check whether we will enable the inclusion of unit tests when
  7862. # compiling GDB.
  7863. #
  7864. # The default value of this option changes depending whether we're on
  7865. # development mode (in which case it's "true") or not (in which case
  7866. # it's "false"). The $development variable is set by the GDB_AC_COMMON
  7867. # macro, which must therefore be used before GDB_AC_SELFTEST.
  7868. if test "x$development" != xtrue && test "x$development" != xfalse; then :
  7869. as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
  7870. fi
  7871. # Check whether --enable-unit-tests was given.
  7872. if test "${enable_unit_tests+set}" = set; then :
  7873. enableval=$enable_unit_tests; case "${enableval}" in
  7874. yes) enable_unittests=true ;;
  7875. no) enable_unittests=false ;;
  7876. *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
  7877. esac
  7878. else
  7879. enable_unittests=$development
  7880. fi
  7881. if $enable_unittests; then
  7882. $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
  7883. fi
  7884. case ${build_alias} in
  7885. "") build_noncanonical=${build} ;;
  7886. *) build_noncanonical=${build_alias} ;;
  7887. esac
  7888. case ${host_alias} in
  7889. "") host_noncanonical=${build_noncanonical} ;;
  7890. *) host_noncanonical=${host_alias} ;;
  7891. esac
  7892. case ${target_alias} in
  7893. "") target_noncanonical=${host_noncanonical} ;;
  7894. *) target_noncanonical=${target_alias} ;;
  7895. esac
  7896. # Dependency checking.
  7897. rm -rf .tst 2>/dev/null
  7898. mkdir .tst 2>/dev/null
  7899. if test -d .tst; then
  7900. am__leading_dot=.
  7901. else
  7902. am__leading_dot=_
  7903. fi
  7904. rmdir .tst 2>/dev/null
  7905. DEPDIR="${am__leading_dot}deps"
  7906. ac_config_commands="$ac_config_commands depdir"
  7907. # If we haven't got the data from the intl directory,
  7908. # assume NLS is disabled.
  7909. USE_NLS=no
  7910. LIBINTL=
  7911. LIBINTL_DEP=
  7912. INCINTL=
  7913. XGETTEXT=
  7914. GMSGFMT=
  7915. POSUB=
  7916. if test -f ../intl/config.intl; then
  7917. . ../intl/config.intl
  7918. fi
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7920. $as_echo_n "checking whether NLS is requested... " >&6; }
  7921. if test x"$USE_NLS" != xyes; then
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7923. $as_echo "no" >&6; }
  7924. else
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7926. $as_echo "yes" >&6; }
  7927. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  7929. $as_echo_n "checking for catalogs to be installed... " >&6; }
  7930. # Look for .po and .gmo files in the source directory.
  7931. CATALOGS=
  7932. XLINGUAS=
  7933. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  7934. # If there aren't any .gmo files the shell will give us the
  7935. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  7936. # weeded out.
  7937. case "$cat" in *\**)
  7938. continue;;
  7939. esac
  7940. # The quadruple backslash is collapsed to a double backslash
  7941. # by the backticks, then collapsed again by the double quotes,
  7942. # leaving us with one backslash in the sed expression (right
  7943. # before the dot that mustn't act as a wildcard).
  7944. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  7945. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  7946. # The user is allowed to set LINGUAS to a list of languages to
  7947. # install catalogs for. If it's empty that means "all of them."
  7948. if test "x$LINGUAS" = x; then
  7949. CATALOGS="$CATALOGS $cat"
  7950. XLINGUAS="$XLINGUAS $lang"
  7951. else
  7952. case "$LINGUAS" in *$lang*)
  7953. CATALOGS="$CATALOGS $cat"
  7954. XLINGUAS="$XLINGUAS $lang"
  7955. ;;
  7956. esac
  7957. fi
  7958. done
  7959. LINGUAS="$XLINGUAS"
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  7961. $as_echo "$LINGUAS" >&6; }
  7962. DATADIRNAME=share
  7963. INSTOBJEXT=.mo
  7964. GENCAT=gencat
  7965. CATOBJEXT=.gmo
  7966. fi
  7967. # Create sub-directories for objects and dependencies.
  7968. CONFIG_SRC_SUBDIR="arch gdbsupport nat target"
  7969. ac_config_commands="$ac_config_commands gdbdepdir"
  7970. depcc="$CC" am_compiler_list=
  7971. am_depcomp=$ac_aux_dir/depcomp
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7973. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7974. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  7975. $as_echo_n "(cached) " >&6
  7976. else
  7977. if test -f "$am_depcomp"; then
  7978. # We make a subdir and do the tests there. Otherwise we can end up
  7979. # making bogus files that we don't know about and never remove. For
  7980. # instance it was reported that on HP-UX the gcc test will end up
  7981. # making a dummy file named `D' -- because `-MD' means `put the output
  7982. # in D'.
  7983. mkdir conftest.dir
  7984. # Copy depcomp to subdir because otherwise we won't find it if we're
  7985. # using a relative directory.
  7986. cp "$am_depcomp" conftest.dir
  7987. cd conftest.dir
  7988. # We will build objects and dependencies in a subdirectory because
  7989. # it helps to detect inapplicable dependency modes. For instance
  7990. # both Tru64's cc and ICC support -MD to output dependencies as a
  7991. # side effect of compilation, but ICC will put the dependencies in
  7992. # the current directory while Tru64 will put them in the object
  7993. # directory.
  7994. mkdir sub
  7995. am_cv_CC_dependencies_compiler_type=none
  7996. if test "$am_compiler_list" = ""; then
  7997. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7998. fi
  7999. for depmode in $am_compiler_list; do
  8000. if test $depmode = none; then break; fi
  8001. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  8002. # Setup a source with many dependencies, because some compilers
  8003. # like to wrap large dependency lists on column 80 (with \), and
  8004. # we should not choose a depcomp mode which is confused by this.
  8005. #
  8006. # We need to recreate these files for each test, as the compiler may
  8007. # overwrite some of them when testing with obscure command lines.
  8008. # This happens at least with the AIX C compiler.
  8009. : > sub/conftest.c
  8010. for i in 1 2 3 4 5 6; do
  8011. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8012. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8013. # Solaris 8's {/usr,}/bin/sh.
  8014. touch sub/conftst$i.h
  8015. done
  8016. echo "include sub/conftest.Po" > confmf
  8017. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8018. # mode. It turns out that the SunPro C++ compiler does not properly
  8019. # handle `-M -o', and we need to detect this.
  8020. depcmd="depmode=$depmode \
  8021. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8022. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8023. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  8024. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  8025. if env $depcmd > conftest.err 2>&1 &&
  8026. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  8027. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  8028. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  8029. # icc doesn't choke on unknown options, it will just issue warnings
  8030. # or remarks (even with -Werror). So we grep stderr for any message
  8031. # that says an option was ignored or not supported.
  8032. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8033. # icc: Command line warning: ignoring option '-M'; no argument required
  8034. # The diagnosis changed in icc 8.0:
  8035. # icc: Command line remark: option '-MP' not supported
  8036. if (grep 'ignoring option' conftest.err ||
  8037. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8038. am_cv_CC_dependencies_compiler_type=$depmode
  8039. $as_echo "$as_me:$LINENO: success" >&5
  8040. break
  8041. fi
  8042. fi
  8043. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  8044. sed -e 's/^/| /' < conftest.err >&5
  8045. done
  8046. cd ..
  8047. rm -rf conftest.dir
  8048. else
  8049. am_cv_CC_dependencies_compiler_type=none
  8050. fi
  8051. fi
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  8053. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  8054. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  8055. then as_fn_error $? "no usable dependency style found" "$LINENO" 5
  8056. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  8057. fi
  8058. for ac_header in termios.h sys/reg.h string.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h ws2tcpip.h
  8059. do :
  8060. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8061. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8062. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8063. cat >>confdefs.h <<_ACEOF
  8064. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8065. _ACEOF
  8066. fi
  8067. done
  8068. for ac_header in vfork.h
  8069. do :
  8070. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  8071. if test "x$ac_cv_header_vfork_h" = xyes; then :
  8072. cat >>confdefs.h <<_ACEOF
  8073. #define HAVE_VFORK_H 1
  8074. _ACEOF
  8075. fi
  8076. done
  8077. for ac_func in fork vfork
  8078. do :
  8079. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8080. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8081. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8082. cat >>confdefs.h <<_ACEOF
  8083. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8084. _ACEOF
  8085. fi
  8086. done
  8087. if test "x$ac_cv_func_fork" = xyes; then
  8088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  8089. $as_echo_n "checking for working fork... " >&6; }
  8090. if ${ac_cv_func_fork_works+:} false; then :
  8091. $as_echo_n "(cached) " >&6
  8092. else
  8093. if test "$cross_compiling" = yes; then :
  8094. ac_cv_func_fork_works=cross
  8095. else
  8096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8097. /* end confdefs.h. */
  8098. $ac_includes_default
  8099. int
  8100. main ()
  8101. {
  8102. /* By Ruediger Kuhlmann. */
  8103. return fork () < 0;
  8104. ;
  8105. return 0;
  8106. }
  8107. _ACEOF
  8108. if ac_fn_c_try_run "$LINENO"; then :
  8109. ac_cv_func_fork_works=yes
  8110. else
  8111. ac_cv_func_fork_works=no
  8112. fi
  8113. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8114. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8115. fi
  8116. fi
  8117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  8118. $as_echo "$ac_cv_func_fork_works" >&6; }
  8119. else
  8120. ac_cv_func_fork_works=$ac_cv_func_fork
  8121. fi
  8122. if test "x$ac_cv_func_fork_works" = xcross; then
  8123. case $host in
  8124. *-*-amigaos* | *-*-msdosdjgpp*)
  8125. # Override, as these systems have only a dummy fork() stub
  8126. ac_cv_func_fork_works=no
  8127. ;;
  8128. *)
  8129. ac_cv_func_fork_works=yes
  8130. ;;
  8131. esac
  8132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8133. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8134. fi
  8135. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8136. if test "x$ac_cv_func_vfork" = xyes; then
  8137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  8138. $as_echo_n "checking for working vfork... " >&6; }
  8139. if ${ac_cv_func_vfork_works+:} false; then :
  8140. $as_echo_n "(cached) " >&6
  8141. else
  8142. if test "$cross_compiling" = yes; then :
  8143. ac_cv_func_vfork_works=cross
  8144. else
  8145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8146. /* end confdefs.h. */
  8147. /* Thanks to Paul Eggert for this test. */
  8148. $ac_includes_default
  8149. #include <sys/wait.h>
  8150. #ifdef HAVE_VFORK_H
  8151. # include <vfork.h>
  8152. #endif
  8153. /* On some sparc systems, changes by the child to local and incoming
  8154. argument registers are propagated back to the parent. The compiler
  8155. is told about this with #include <vfork.h>, but some compilers
  8156. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8157. static variable whose address is put into a register that is
  8158. clobbered by the vfork. */
  8159. static void
  8160. #ifdef __cplusplus
  8161. sparc_address_test (int arg)
  8162. # else
  8163. sparc_address_test (arg) int arg;
  8164. #endif
  8165. {
  8166. static pid_t child;
  8167. if (!child) {
  8168. child = vfork ();
  8169. if (child < 0) {
  8170. perror ("vfork");
  8171. _exit(2);
  8172. }
  8173. if (!child) {
  8174. arg = getpid();
  8175. write(-1, "", 0);
  8176. _exit (arg);
  8177. }
  8178. }
  8179. }
  8180. int
  8181. main ()
  8182. {
  8183. pid_t parent = getpid ();
  8184. pid_t child;
  8185. sparc_address_test (0);
  8186. child = vfork ();
  8187. if (child == 0) {
  8188. /* Here is another test for sparc vfork register problems. This
  8189. test uses lots of local variables, at least as many local
  8190. variables as main has allocated so far including compiler
  8191. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8192. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8193. reuse the register of parent for one of the local variables,
  8194. since it will think that parent can't possibly be used any more
  8195. in this routine. Assigning to the local variable will thus
  8196. munge parent in the parent process. */
  8197. pid_t
  8198. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8199. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8200. /* Convince the compiler that p..p7 are live; otherwise, it might
  8201. use the same hardware register for all 8 local variables. */
  8202. if (p != p1 || p != p2 || p != p3 || p != p4
  8203. || p != p5 || p != p6 || p != p7)
  8204. _exit(1);
  8205. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8206. from child file descriptors. If the child closes a descriptor
  8207. before it execs or exits, this munges the parent's descriptor
  8208. as well. Test for this by closing stdout in the child. */
  8209. _exit(close(fileno(stdout)) != 0);
  8210. } else {
  8211. int status;
  8212. struct stat st;
  8213. while (wait(&status) != child)
  8214. ;
  8215. return (
  8216. /* Was there some problem with vforking? */
  8217. child < 0
  8218. /* Did the child fail? (This shouldn't happen.) */
  8219. || status
  8220. /* Did the vfork/compiler bug occur? */
  8221. || parent != getpid()
  8222. /* Did the file descriptor bug occur? */
  8223. || fstat(fileno(stdout), &st) != 0
  8224. );
  8225. }
  8226. }
  8227. _ACEOF
  8228. if ac_fn_c_try_run "$LINENO"; then :
  8229. ac_cv_func_vfork_works=yes
  8230. else
  8231. ac_cv_func_vfork_works=no
  8232. fi
  8233. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8234. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8235. fi
  8236. fi
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  8238. $as_echo "$ac_cv_func_vfork_works" >&6; }
  8239. fi;
  8240. if test "x$ac_cv_func_fork_works" = xcross; then
  8241. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8243. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8244. fi
  8245. if test "x$ac_cv_func_vfork_works" = xyes; then
  8246. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  8247. else
  8248. $as_echo "#define vfork fork" >>confdefs.h
  8249. fi
  8250. if test "x$ac_cv_func_fork_works" = xyes; then
  8251. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  8252. fi
  8253. for ac_func in pread pwrite pread64
  8254. do :
  8255. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8256. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8257. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8258. cat >>confdefs.h <<_ACEOF
  8259. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8260. _ACEOF
  8261. fi
  8262. done
  8263. # Check the return and argument types of ptrace.
  8264. for ac_header in sys/ptrace.h ptrace.h
  8265. do :
  8266. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8267. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8268. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8269. cat >>confdefs.h <<_ACEOF
  8270. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8271. _ACEOF
  8272. fi
  8273. done
  8274. gdb_ptrace_headers='
  8275. #include <sys/types.h>
  8276. #if HAVE_SYS_PTRACE_H
  8277. # include <sys/ptrace.h>
  8278. #endif
  8279. #if HAVE_UNISTD_H
  8280. # include <unistd.h>
  8281. #endif
  8282. '
  8283. # Check return type. Varargs (used on GNU/Linux) conflict with the
  8284. # empty argument list, so check for that explicitly.
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
  8286. $as_echo_n "checking return type of ptrace... " >&6; }
  8287. if ${gdb_cv_func_ptrace_ret+:} false; then :
  8288. $as_echo_n "(cached) " >&6
  8289. else
  8290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8291. /* end confdefs.h. */
  8292.  $gdb_ptrace_headers
  8293. int
  8294. main ()
  8295. {
  8296. extern long ptrace (enum __ptrace_request, ...);
  8297. ;
  8298. return 0;
  8299. }
  8300. _ACEOF
  8301. if ac_fn_c_try_compile "$LINENO"; then :
  8302. gdb_cv_func_ptrace_ret='long'
  8303. else
  8304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8305. /* end confdefs.h. */
  8306. $gdb_ptrace_headers
  8307. int
  8308. main ()
  8309. {
  8310. extern int ptrace ();
  8311. ;
  8312. return 0;
  8313. }
  8314. _ACEOF
  8315. if ac_fn_c_try_compile "$LINENO"; then :
  8316. gdb_cv_func_ptrace_ret='int'
  8317. else
  8318. gdb_cv_func_ptrace_ret='long'
  8319. fi
  8320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8321. fi
  8322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8323. fi
  8324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
  8325. $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
  8326. cat >>confdefs.h <<_ACEOF
  8327. #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
  8328. _ACEOF
  8329. # Check argument types.
  8330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
  8331. $as_echo_n "checking types of arguments for ptrace... " >&6; }
  8332. if ${gdb_cv_func_ptrace_args+:} false; then :
  8333. $as_echo_n "(cached) " >&6
  8334. else
  8335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8336. /* end confdefs.h. */
  8337. $gdb_ptrace_headers
  8338. int
  8339. main ()
  8340. {
  8341. extern long ptrace (enum __ptrace_request, ...);
  8342. ;
  8343. return 0;
  8344. }
  8345. _ACEOF
  8346. if ac_fn_c_try_compile "$LINENO"; then :
  8347. gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
  8348. else
  8349. for gdb_arg1 in 'int' 'long'; do
  8350. for gdb_arg2 in 'pid_t' 'int' 'long'; do
  8351. for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
  8352. for gdb_arg4 in 'int' 'long' 'void *'; do
  8353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8354. /* end confdefs.h. */
  8355. $gdb_ptrace_headers
  8356. int
  8357. main ()
  8358. {
  8359. extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
  8360. ;
  8361. return 0;
  8362. }
  8363. _ACEOF
  8364. if ac_fn_c_try_compile "$LINENO"; then :
  8365. gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
  8366. break 4;
  8367. fi
  8368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8369. for gdb_arg5 in 'int *' 'int' 'long'; do
  8370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8371. /* end confdefs.h. */
  8372. $gdb_ptrace_headers
  8373. int
  8374. main ()
  8375. {
  8376. extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
  8377. ;
  8378. return 0;
  8379. }
  8380. _ACEOF
  8381. if ac_fn_c_try_compile "$LINENO"; then :
  8382. gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
  8383. break 5;
  8384. fi
  8385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8386. done
  8387. done
  8388. done
  8389. done
  8390. done
  8391. # Provide a safe default value.
  8392. : ${gdb_cv_func_ptrace_args='int,int,long,long'}
  8393. fi
  8394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8395. fi
  8396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
  8397. $as_echo "$gdb_cv_func_ptrace_args" >&6; }
  8398. ac_save_IFS=$IFS; IFS=','
  8399. set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
  8400. IFS=$ac_save_IFS
  8401. shift
  8402. cat >>confdefs.h <<_ACEOF
  8403. #define PTRACE_TYPE_ARG1 $1
  8404. _ACEOF
  8405. cat >>confdefs.h <<_ACEOF
  8406. #define PTRACE_TYPE_ARG3 $3
  8407. _ACEOF
  8408. cat >>confdefs.h <<_ACEOF
  8409. #define PTRACE_TYPE_ARG4 $4
  8410. _ACEOF
  8411. if test -n "$5"; then
  8412. cat >>confdefs.h <<_ACEOF
  8413. #define PTRACE_TYPE_ARG5 $5
  8414. _ACEOF
  8415. fi
  8416. # Check for UST
  8417. ustlibs=""
  8418. ustinc=""
  8419. # Check whether --with-ust was given.
  8420. if test "${with_ust+set}" = set; then :
  8421. withval=$with_ust;
  8422. fi
  8423. # Check whether --with-ust_include was given.
  8424. if test "${with_ust_include+set}" = set; then :
  8425. withval=$with_ust_include;
  8426. fi
  8427. # Check whether --with-ust_lib was given.
  8428. if test "${with_ust_lib+set}" = set; then :
  8429. withval=$with_ust_lib;
  8430. fi
  8431. case $with_ust in
  8432. no)
  8433. ustlibs=
  8434. ustinc=
  8435. ;;
  8436. "" | yes)
  8437. ustlibs=" -lust "
  8438. ustinc=""
  8439. ;;
  8440. *)
  8441. ustlibs="-L$with_ust/lib -lust"
  8442. ustinc="-I$with_ust/include "
  8443. ;;
  8444. esac
  8445. if test "x$with_ust_include" != x; then
  8446. ustinc="-I$with_ust_include "
  8447. fi
  8448. if test "x$with_ust_lib" != x; then
  8449. ustlibs="-L$with_ust_lib -lust"
  8450. fi
  8451. if test "x$with_ust" != "xno"; then
  8452. saved_CFLAGS="$CFLAGS"
  8453. CFLAGS="$CFLAGS $ustinc"
  8454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
  8455. $as_echo_n "checking for ust... " >&6; }
  8456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8457. /* end confdefs.h. */
  8458. #define CONFIG_UST_GDB_INTEGRATION
  8459. #include <ust/ust.h>
  8460. int
  8461. main ()
  8462. {
  8463. ;
  8464. return 0;
  8465. }
  8466. _ACEOF
  8467. if ac_fn_c_try_compile "$LINENO"; then :
  8468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8469. $as_echo "yes" >&6; };
  8470. $as_echo "#define HAVE_UST 1" >>confdefs.h
  8471. else
  8472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8473. $as_echo "no" >&6; }
  8474. ustlibs= ; ustinc=
  8475. fi
  8476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8477. CFLAGS="$saved_CFLAGS"
  8478. fi
  8479. # Flags needed for UST
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
  8481. $as_echo_n "checking the compiler type... " >&6; }
  8482. if ${gdb_cv_compiler_type+:} false; then :
  8483. $as_echo_n "(cached) " >&6
  8484. else
  8485. gdb_cv_compiler_type=unknown
  8486. if test "$gdb_cv_compiler_type" = unknown; then
  8487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8488. /* end confdefs.h. */
  8489. int
  8490. main ()
  8491. {
  8492. #if !defined __GNUC__ || defined __clang__
  8493. #error not gcc
  8494. #endif
  8495. ;
  8496. return 0;
  8497. }
  8498. _ACEOF
  8499. if ac_fn_c_try_compile "$LINENO"; then :
  8500. gdb_cv_compiler_type=gcc
  8501. fi
  8502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8503. fi
  8504. if test "$gdb_cv_compiler_type" = unknown; then
  8505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8506. /* end confdefs.h. */
  8507. int
  8508. main ()
  8509. {
  8510. #ifndef __clang__
  8511. #error not clang
  8512. #endif
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. if ac_fn_c_try_compile "$LINENO"; then :
  8518. gdb_cv_compiler_type=clang
  8519. fi
  8520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8521. fi
  8522. fi
  8523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
  8524. $as_echo "$gdb_cv_compiler_type" >&6; }
  8525. GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
  8526. # Check whether --enable-werror was given.
  8527. if test "${enable_werror+set}" = set; then :
  8528. enableval=$enable_werror; case "${enableval}" in
  8529. yes | y) ERROR_ON_WARNING="yes" ;;
  8530. no | n) ERROR_ON_WARNING="no" ;;
  8531. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  8532. esac
  8533. fi
  8534. # Enable -Werror by default when using gcc. Turn it off for releases.
  8535. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
  8536. ERROR_ON_WARNING=yes
  8537. fi
  8538. WERROR_CFLAGS=""
  8539. if test "${ERROR_ON_WARNING}" = yes ; then
  8540. WERROR_CFLAGS="-Werror"
  8541. fi
  8542. # The options we'll try to enable.
  8543. build_warnings="-Wall -Wpointer-arith \
  8544. -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
  8545. -Wno-switch -Wno-char-subscripts \
  8546. -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
  8547. -Wno-sign-compare -Wno-error=maybe-uninitialized \
  8548. -Wno-mismatched-tags \
  8549. -Wno-error=deprecated-register \
  8550. -Wsuggest-override \
  8551. -Wimplicit-fallthrough=3 \
  8552. -Wduplicated-cond \
  8553. -Wshadow=local \
  8554. -Wdeprecated-copy \
  8555. -Wdeprecated-copy-dtor \
  8556. -Wredundant-move \
  8557. -Wmissing-declarations \
  8558. -Wstrict-null-sentinel \
  8559. "
  8560. # The -Wmissing-prototypes flag will be accepted by GCC, but results
  8561. # in a warning being printed about the flag not being valid for C++,
  8562. # this is something to do with using ccache, and argument ordering.
  8563. if test "$GDB_COMPILER_TYPE" != gcc; then
  8564. build_warnings="$build_warnings -Wmissing-prototypes"
  8565. fi
  8566. case "${host}" in
  8567. *-*-mingw32*)
  8568. # Enable -Wno-format by default when using gcc on mingw since many
  8569. # GCC versions complain about %I64.
  8570. build_warnings="$build_warnings -Wno-format" ;;
  8571. *-*-solaris*)
  8572. # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
  8573. # doesn't understand.
  8574. build_warnings="$build_warnings -Wno-unknown-pragmas"
  8575. # Solaris 11 <unistd.h> marks vfork deprecated.
  8576. build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
  8577. *)
  8578. # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
  8579. # but there's a special case for this below.
  8580. build_warnings="$build_warnings -Wformat-nonliteral" ;;
  8581. esac
  8582. # Check whether --enable-build-warnings was given.
  8583. if test "${enable_build_warnings+set}" = set; then :
  8584. enableval=$enable_build_warnings; case "${enableval}" in
  8585. yes) ;;
  8586. no) build_warnings="-w";;
  8587. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  8588. build_warnings="${build_warnings} ${t}";;
  8589. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  8590. build_warnings="${t} ${build_warnings}";;
  8591. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  8592. esac
  8593. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  8594. echo "Setting compiler warning flags = $build_warnings" 6>&1
  8595. fi
  8596. fi
  8597. # Check whether --enable-gdb-build-warnings was given.
  8598. if test "${enable_gdb_build_warnings+set}" = set; then :
  8599. enableval=$enable_gdb_build_warnings; case "${enableval}" in
  8600. yes) ;;
  8601. no) build_warnings="-w";;
  8602. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  8603. build_warnings="${build_warnings} ${t}";;
  8604. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  8605. build_warnings="${t} ${build_warnings}";;
  8606. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  8607. esac
  8608. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  8609. echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  8610. fi
  8611. fi
  8612. # The set of warnings supported by a C++ compiler is not the same as
  8613. # of the C compiler.
  8614. ac_ext=cpp
  8615. ac_cpp='$CXXCPP $CPPFLAGS'
  8616. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8617. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8618. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8619. WARN_CFLAGS=""
  8620. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  8621. then
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  8623. $as_echo_n "checking compiler warning flags... " >&6; }
  8624. # Separate out the -Werror flag as some files just cannot be
  8625. # compiled with it enabled.
  8626. for w in ${build_warnings}; do
  8627. # GCC does not complain about -Wno-unknown-warning. Invert
  8628. # and test -Wunknown-warning instead.
  8629. case $w in
  8630. -Wno-*)
  8631. wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
  8632. -Wformat-nonliteral)
  8633. # gcc requires -Wformat before -Wformat-nonliteral
  8634. # will work, so stick them together.
  8635. w="-Wformat $w"
  8636. wtest="$w"
  8637. ;;
  8638. *)
  8639. wtest=$w ;;
  8640. esac
  8641. case $w in
  8642. -Werr*) WERROR_CFLAGS=-Werror ;;
  8643. *)
  8644. # Check whether GCC accepts it.
  8645. saved_CFLAGS="$CFLAGS"
  8646. CFLAGS="$CFLAGS -Werror $wtest"
  8647. saved_CXXFLAGS="$CXXFLAGS"
  8648. CXXFLAGS="$CXXFLAGS -Werror $wtest"
  8649. if test "x$w" = "x-Wunused-variable"; then
  8650. # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
  8651. # fixed in GCC 4.9. This test is derived from the gdb
  8652. # source code that triggered this bug in GCC.
  8653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8654. /* end confdefs.h. */
  8655. struct scoped_restore_base {};
  8656. struct scoped_restore_tmpl : public scoped_restore_base {
  8657. ~scoped_restore_tmpl() {}
  8658. };
  8659. int
  8660. main ()
  8661. {
  8662. const scoped_restore_base &b = scoped_restore_tmpl();
  8663. ;
  8664. return 0;
  8665. }
  8666. _ACEOF
  8667. if ac_fn_cxx_try_compile "$LINENO"; then :
  8668. WARN_CFLAGS="${WARN_CFLAGS} $w"
  8669. fi
  8670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8671. else
  8672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8673. /* end confdefs.h. */
  8674. int
  8675. main ()
  8676. {
  8677. ;
  8678. return 0;
  8679. }
  8680. _ACEOF
  8681. if ac_fn_cxx_try_compile "$LINENO"; then :
  8682. WARN_CFLAGS="${WARN_CFLAGS} $w"
  8683. fi
  8684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8685. fi
  8686. CFLAGS="$saved_CFLAGS"
  8687. CXXFLAGS="$saved_CXXFLAGS"
  8688. esac
  8689. done
  8690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  8691. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  8692. fi
  8693. ac_ext=c
  8694. ac_cpp='$CPP $CPPFLAGS'
  8695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8698. old_LIBS="$LIBS"
  8699. LIBS="$LIBS -ldl"
  8700. for ac_func in dladdr
  8701. do :
  8702. ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
  8703. if test "x$ac_cv_func_dladdr" = xyes; then :
  8704. cat >>confdefs.h <<_ACEOF
  8705. #define HAVE_DLADDR 1
  8706. _ACEOF
  8707. fi
  8708. done
  8709. LIBS="$old_LIBS"
  8710. # Check for presence and size of long long.
  8711. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  8712. if test "x$ac_cv_type_long_long" = xyes; then :
  8713. cat >>confdefs.h <<_ACEOF
  8714. #define HAVE_LONG_LONG 1
  8715. _ACEOF
  8716. # The cast to long int works around a bug in the HP C Compiler
  8717. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8718. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8719. # This bug is HP SR number 8606223364.
  8720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  8721. $as_echo_n "checking size of long long... " >&6; }
  8722. if ${ac_cv_sizeof_long_long+:} false; then :
  8723. $as_echo_n "(cached) " >&6
  8724. else
  8725. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  8726. else
  8727. if test "$ac_cv_type_long_long" = yes; then
  8728. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8729. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8730. as_fn_error 77 "cannot compute sizeof (long long)
  8731. See \`config.log' for more details" "$LINENO" 5; }
  8732. else
  8733. ac_cv_sizeof_long_long=0
  8734. fi
  8735. fi
  8736. fi
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  8738. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  8739. cat >>confdefs.h <<_ACEOF
  8740. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  8741. _ACEOF
  8742. fi
  8743. as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
  8744. ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
  8745. if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
  8746. ac_have_decl=1
  8747. else
  8748. ac_have_decl=0
  8749. fi
  8750. cat >>confdefs.h <<_ACEOF
  8751. #define HAVE_DECL_BASENAME $ac_have_decl
  8752. _ACEOF
  8753. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  8754. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  8755. ac_have_decl=1
  8756. else
  8757. ac_have_decl=0
  8758. fi
  8759. cat >>confdefs.h <<_ACEOF
  8760. #define HAVE_DECL_FFS $ac_have_decl
  8761. _ACEOF
  8762. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  8763. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  8764. ac_have_decl=1
  8765. else
  8766. ac_have_decl=0
  8767. fi
  8768. cat >>confdefs.h <<_ACEOF
  8769. #define HAVE_DECL_ASPRINTF $ac_have_decl
  8770. _ACEOF
  8771. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  8772. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  8773. ac_have_decl=1
  8774. else
  8775. ac_have_decl=0
  8776. fi
  8777. cat >>confdefs.h <<_ACEOF
  8778. #define HAVE_DECL_VASPRINTF $ac_have_decl
  8779. _ACEOF
  8780. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  8781. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  8782. ac_have_decl=1
  8783. else
  8784. ac_have_decl=0
  8785. fi
  8786. cat >>confdefs.h <<_ACEOF
  8787. #define HAVE_DECL_SNPRINTF $ac_have_decl
  8788. _ACEOF
  8789. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  8790. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  8791. ac_have_decl=1
  8792. else
  8793. ac_have_decl=0
  8794. fi
  8795. cat >>confdefs.h <<_ACEOF
  8796. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  8797. _ACEOF
  8798. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  8799. if test "x$ac_cv_have_decl_strtol" = xyes; then :
  8800. ac_have_decl=1
  8801. else
  8802. ac_have_decl=0
  8803. fi
  8804. cat >>confdefs.h <<_ACEOF
  8805. #define HAVE_DECL_STRTOL $ac_have_decl
  8806. _ACEOF
  8807. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  8808. if test "x$ac_cv_have_decl_strtoul" = xyes; then :
  8809. ac_have_decl=1
  8810. else
  8811. ac_have_decl=0
  8812. fi
  8813. cat >>confdefs.h <<_ACEOF
  8814. #define HAVE_DECL_STRTOUL $ac_have_decl
  8815. _ACEOF
  8816. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  8817. if test "x$ac_cv_have_decl_strtoll" = xyes; then :
  8818. ac_have_decl=1
  8819. else
  8820. ac_have_decl=0
  8821. fi
  8822. cat >>confdefs.h <<_ACEOF
  8823. #define HAVE_DECL_STRTOLL $ac_have_decl
  8824. _ACEOF
  8825. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  8826. if test "x$ac_cv_have_decl_strtoull" = xyes; then :
  8827. ac_have_decl=1
  8828. else
  8829. ac_have_decl=0
  8830. fi
  8831. cat >>confdefs.h <<_ACEOF
  8832. #define HAVE_DECL_STRTOULL $ac_have_decl
  8833. _ACEOF
  8834. ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
  8835. if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
  8836. ac_have_decl=1
  8837. else
  8838. ac_have_decl=0
  8839. fi
  8840. cat >>confdefs.h <<_ACEOF
  8841. #define HAVE_DECL_STRVERSCMP $ac_have_decl
  8842. _ACEOF
  8843. ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
  8844. if test "x$ac_cv_have_decl_perror" = xyes; then :
  8845. ac_have_decl=1
  8846. else
  8847. ac_have_decl=0
  8848. fi
  8849. cat >>confdefs.h <<_ACEOF
  8850. #define HAVE_DECL_PERROR $ac_have_decl
  8851. _ACEOF
  8852. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  8853. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  8854. ac_have_decl=1
  8855. else
  8856. ac_have_decl=0
  8857. fi
  8858. cat >>confdefs.h <<_ACEOF
  8859. #define HAVE_DECL_VASPRINTF $ac_have_decl
  8860. _ACEOF
  8861. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  8862. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  8863. ac_have_decl=1
  8864. else
  8865. ac_have_decl=0
  8866. fi
  8867. cat >>confdefs.h <<_ACEOF
  8868. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  8869. _ACEOF
  8870. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  8871. #if HAVE_SYS_SOCKET_H
  8872. # include <sys/socket.h>
  8873. #elif HAVE_WS2TCPIP_H
  8874. # include <ws2tcpip.h>
  8875. #endif
  8876. "
  8877. if test "x$ac_cv_type_socklen_t" = xyes; then :
  8878. cat >>confdefs.h <<_ACEOF
  8879. #define HAVE_SOCKLEN_T 1
  8880. _ACEOF
  8881. fi
  8882. case "${target}" in
  8883. *-android*)
  8884. # Starting with NDK version 9, <elf.h> actually includes definitions
  8885. # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
  8886. # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
  8887. # leading to conflicts with the defintions from <linux/elf.h>.
  8888. # This makes it impossible for us to include both <elf.h> and
  8889. # <linux/elf.h>, which means that, in practice, we do not have
  8890. # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
  8891. # Therefore, do not try to auto-detect availability, as it would
  8892. # get it wrong on this platform.
  8893. ;;
  8894. *)
  8895. ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
  8896. "
  8897. if test "x$ac_cv_type_Elf32_auxv_t" = xyes; then :
  8898. cat >>confdefs.h <<_ACEOF
  8899. #define HAVE_ELF32_AUXV_T 1
  8900. _ACEOF
  8901. fi
  8902. ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
  8903. "
  8904. if test "x$ac_cv_type_Elf64_auxv_t" = xyes; then :
  8905. cat >>confdefs.h <<_ACEOF
  8906. #define HAVE_ELF64_AUXV_T 1
  8907. _ACEOF
  8908. fi
  8909. esac
  8910. # Check whether --with-pkgversion was given.
  8911. if test "${with_pkgversion+set}" = set; then :
  8912. withval=$with_pkgversion; case "$withval" in
  8913. yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
  8914. no) PKGVERSION= ;;
  8915. *) PKGVERSION="($withval) " ;;
  8916. esac
  8917. else
  8918. PKGVERSION="(GDB) "
  8919. fi
  8920. # Check whether --with-bugurl was given.
  8921. if test "${with_bugurl+set}" = set; then :
  8922. withval=$with_bugurl; case "$withval" in
  8923. yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
  8924. no) BUGURL=
  8925. ;;
  8926. *) BUGURL="$withval"
  8927. ;;
  8928. esac
  8929. else
  8930. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  8931. fi
  8932. case ${BUGURL} in
  8933. "")
  8934. REPORT_BUGS_TO=
  8935. REPORT_BUGS_TEXI=
  8936. ;;
  8937. *)
  8938. REPORT_BUGS_TO="<$BUGURL>"
  8939. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  8940. ;;
  8941. esac;
  8942. cat >>confdefs.h <<_ACEOF
  8943. #define PKGVERSION "$PKGVERSION"
  8944. _ACEOF
  8945. cat >>confdefs.h <<_ACEOF
  8946. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  8947. _ACEOF
  8948. # Check for various supplementary target information (beyond the
  8949. # triplet) which might affect the choices in configure.srv.
  8950. case "${target}" in
  8951. i[34567]86-*-linux*)
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
  8953. $as_echo_n "checking if building for x86-64... " >&6; }
  8954. if ${gdb_cv_i386_is_x86_64+:} false; then :
  8955. $as_echo_n "(cached) " >&6
  8956. else
  8957. save_CPPFLAGS="$CPPFLAGS"
  8958. CPPFLAGS="$CPPFLAGS $CFLAGS"
  8959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8960. /* end confdefs.h. */
  8961. #if __x86_64__
  8962. got it
  8963. #endif
  8964. _ACEOF
  8965. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8966. $EGREP "got it" >/dev/null 2>&1; then :
  8967. gdb_cv_i386_is_x86_64=yes
  8968. else
  8969. gdb_cv_i386_is_x86_64=no
  8970. fi
  8971. rm -f conftest*
  8972. CPPFLAGS="$save_CPPFLAGS"
  8973. fi
  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
  8975. $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
  8976. ;;
  8977. x86_64-*-linux*)
  8978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x32" >&5
  8979. $as_echo_n "checking if building for x32... " >&6; }
  8980. if ${gdb_cv_x86_is_x32+:} false; then :
  8981. $as_echo_n "(cached) " >&6
  8982. else
  8983. save_CPPFLAGS="$CPPFLAGS"
  8984. CPPFLAGS="$CPPFLAGS $CFLAGS"
  8985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8986. /* end confdefs.h. */
  8987. #if __x86_64__ && __ILP32__
  8988. got it
  8989. #endif
  8990. _ACEOF
  8991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8992. $EGREP "got it" >/dev/null 2>&1; then :
  8993. gdb_cv_x86_is_x32=yes
  8994. else
  8995. gdb_cv_x86_is_x32=no
  8996. fi
  8997. rm -f conftest*
  8998. CPPFLAGS="$save_CPPFLAGS"
  8999. fi
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_x86_is_x32" >&5
  9001. $as_echo "$gdb_cv_x86_is_x32" >&6; }
  9002. ;;
  9003. m68k-*-*)
  9004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
  9005. $as_echo_n "checking if building for Coldfire... " >&6; }
  9006. if ${gdb_cv_m68k_is_coldfire+:} false; then :
  9007. $as_echo_n "(cached) " >&6
  9008. else
  9009. save_CPPFLAGS="$CPPFLAGS"
  9010. CPPFLAGS="$CPPFLAGS $CFLAGS"
  9011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9012. /* end confdefs.h. */
  9013. #ifdef __mcoldfire__
  9014. got it
  9015. #endif
  9016. _ACEOF
  9017. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9018. $EGREP "got it" >/dev/null 2>&1; then :
  9019. gdb_cv_m68k_is_coldfire=yes
  9020. else
  9021. gdb_cv_m68k_is_coldfire=no
  9022. fi
  9023. rm -f conftest*
  9024. CPPFLAGS="$save_CPPFLAGS"
  9025. fi
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
  9027. $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
  9028. ;;
  9029. esac
  9030. . ${srcdir}/configure.srv
  9031. if test "${srv_mingwce}" = "yes"; then
  9032. LIBS="$LIBS -lws2"
  9033. elif test "${srv_mingw}" = "yes"; then
  9034. # WIN32APILIBS is set by GDB_AC_COMMON.
  9035. LIBS="$LIBS $WIN32APILIBS"
  9036. fi
  9037. if test "${srv_linux_usrregs}" = "yes"; then
  9038. $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
  9039. fi
  9040. if test "${srv_linux_regsets}" = "yes"; then
  9041. $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
  9042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
  9043. $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
  9044. if ${gdbsrv_cv_have_ptrace_getregs+:} false; then :
  9045. $as_echo_n "(cached) " >&6
  9046. else
  9047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9048. /* end confdefs.h. */
  9049. #include <sys/ptrace.h>
  9050. int
  9051. main ()
  9052. {
  9053. PTRACE_GETREGS;
  9054. ;
  9055. return 0;
  9056. }
  9057. _ACEOF
  9058. if ac_fn_c_try_compile "$LINENO"; then :
  9059. gdbsrv_cv_have_ptrace_getregs=yes
  9060. else
  9061. gdbsrv_cv_have_ptrace_getregs=no
  9062. fi
  9063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9064. fi
  9065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
  9066. $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
  9067. if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
  9068. $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
  9069. fi
  9070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
  9071. $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
  9072. if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false; then :
  9073. $as_echo_n "(cached) " >&6
  9074. else
  9075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9076. /* end confdefs.h. */
  9077. #include <sys/ptrace.h>
  9078. int
  9079. main ()
  9080. {
  9081. PTRACE_GETFPXREGS;
  9082. ;
  9083. return 0;
  9084. }
  9085. _ACEOF
  9086. if ac_fn_c_try_compile "$LINENO"; then :
  9087. gdbsrv_cv_have_ptrace_getfpxregs=yes
  9088. else
  9089. gdbsrv_cv_have_ptrace_getfpxregs=no
  9090. fi
  9091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9092. fi
  9093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
  9094. $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
  9095. if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
  9096. $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
  9097. fi
  9098. fi
  9099. if test "${srv_linux_btrace}" = "yes"; then
  9100. $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
  9101. fi
  9102. if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
  9104. $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
  9105. if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false; then :
  9106. $as_echo_n "(cached) " >&6
  9107. else
  9108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9109. /* end confdefs.h. */
  9110. #include <thread_db.h>
  9111. int
  9112. main ()
  9113. {
  9114. lwpid_t avar
  9115. ;
  9116. return 0;
  9117. }
  9118. _ACEOF
  9119. if ac_fn_c_try_compile "$LINENO"; then :
  9120. gdbserver_cv_have_thread_db_type_lwpid_t=yes
  9121. else
  9122. gdbserver_cv_have_thread_db_type_lwpid_t=no
  9123. fi
  9124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9125. fi
  9126. if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
  9127. $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
  9128. fi
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
  9130. $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
  9131. fi
  9132. if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
  9133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
  9134. $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
  9135. if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false; then :
  9136. $as_echo_n "(cached) " >&6
  9137. else
  9138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9139. /* end confdefs.h. */
  9140. #include <thread_db.h>
  9141. int
  9142. main ()
  9143. {
  9144. psaddr_t avar
  9145. ;
  9146. return 0;
  9147. }
  9148. _ACEOF
  9149. if ac_fn_c_try_compile "$LINENO"; then :
  9150. gdbserver_cv_have_thread_db_type_psaddr_t=yes
  9151. else
  9152. gdbserver_cv_have_thread_db_type_psaddr_t=no
  9153. fi
  9154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9155. fi
  9156. if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
  9157. $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
  9158. fi
  9159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
  9160. $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
  9161. fi
  9162. old_LIBS="$LIBS"
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9164. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9165. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9166. $as_echo_n "(cached) " >&6
  9167. else
  9168. ac_check_lib_save_LIBS=$LIBS
  9169. LIBS="-ldl $LIBS"
  9170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9171. /* end confdefs.h. */
  9172. /* Override any GCC internal prototype to avoid an error.
  9173. Use char because int might match the return type of a GCC
  9174. builtin and then its argument prototype would still apply. */
  9175. #ifdef __cplusplus
  9176. extern "C"
  9177. #endif
  9178. char dlopen ();
  9179. int
  9180. main ()
  9181. {
  9182. return dlopen ();
  9183. ;
  9184. return 0;
  9185. }
  9186. _ACEOF
  9187. if ac_fn_c_try_link "$LINENO"; then :
  9188. ac_cv_lib_dl_dlopen=yes
  9189. else
  9190. ac_cv_lib_dl_dlopen=no
  9191. fi
  9192. rm -f core conftest.err conftest.$ac_objext \
  9193. conftest$ac_exeext conftest.$ac_ext
  9194. LIBS=$ac_check_lib_save_LIBS
  9195. fi
  9196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9197. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9198. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9199. cat >>confdefs.h <<_ACEOF
  9200. #define HAVE_LIBDL 1
  9201. _ACEOF
  9202. LIBS="-ldl $LIBS"
  9203. fi
  9204. LIBS="$old_LIBS"
  9205. srv_thread_depfiles=
  9206. srv_libs=
  9207. if test "$srv_linux_thread_db" = "yes"; then
  9208. if test "$ac_cv_lib_dl_dlopen" = "yes"; then
  9209. srv_libs="-ldl"
  9210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
  9211. $as_echo_n "checking for the dynamic export flag... " >&6; }
  9212. old_LDFLAGS="$LDFLAGS"
  9213. # Older GNU ld supports --export-dynamic but --dynamic-list may not be
  9214. # supported there.
  9215. RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
  9216. LDFLAGS="$LDFLAGS $RDYNAMIC"
  9217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9218. /* end confdefs.h. */
  9219. int
  9220. main ()
  9221. {
  9222. ;
  9223. return 0;
  9224. }
  9225. _ACEOF
  9226. if ac_fn_c_try_link "$LINENO"; then :
  9227. found="-Wl,--dynamic-list"
  9228. RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
  9229. else
  9230. RDYNAMIC="-rdynamic"
  9231. LDFLAGS="$old_LDFLAGS $RDYNAMIC"
  9232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9233. /* end confdefs.h. */
  9234. int
  9235. main ()
  9236. {
  9237. ;
  9238. return 0;
  9239. }
  9240. _ACEOF
  9241. if ac_fn_c_try_link "$LINENO"; then :
  9242. found="-rdynamic"
  9243. else
  9244. found="no"
  9245. RDYNAMIC=""
  9246. fi
  9247. rm -f core conftest.err conftest.$ac_objext \
  9248. conftest$ac_exeext conftest.$ac_ext
  9249. fi
  9250. rm -f core conftest.err conftest.$ac_objext \
  9251. conftest$ac_exeext conftest.$ac_ext
  9252. LDFLAGS="$old_LDFLAGS"
  9253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
  9254. $as_echo "$found" >&6; }
  9255. else
  9256. srv_libs="-lthread_db"
  9257. fi
  9258. srv_thread_depfiles="thread-db.o proc-service.o"
  9259. $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
  9260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
  9261. $as_echo_n "checking for TD_VERSION... " >&6; }
  9262. if ${gdbsrv_cv_have_td_version+:} false; then :
  9263. $as_echo_n "(cached) " >&6
  9264. else
  9265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9266. /* end confdefs.h. */
  9267. #include <thread_db.h>
  9268. int
  9269. main ()
  9270. {
  9271. TD_VERSION;
  9272. ;
  9273. return 0;
  9274. }
  9275. _ACEOF
  9276. if ac_fn_c_try_compile "$LINENO"; then :
  9277. gdbsrv_cv_have_td_version=yes
  9278. else
  9279. gdbsrv_cv_have_td_version=no
  9280. fi
  9281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9282. fi
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
  9284. $as_echo "$gdbsrv_cv_have_td_version" >&6; }
  9285. if test "$gdbsrv_cv_have_td_version" = yes; then
  9286. $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
  9287. fi
  9288. fi
  9289. # Check whether --with-libthread-db was given.
  9290. if test "${with_libthread_db+set}" = set; then :
  9291. withval=$with_libthread_db; srv_libthread_db_path="${withval}"
  9292. srv_libs="$srv_libthread_db_path"
  9293. fi
  9294. if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
  9295. $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
  9296. fi
  9297. if test "$srv_xmlfiles" != ""; then
  9298. srv_xmlbuiltin="xml-builtin.o"
  9299. $as_echo "#define USE_XML 1" >>confdefs.h
  9300. tmp_xmlfiles=$srv_xmlfiles
  9301. srv_xmlfiles=""
  9302. for f in $tmp_xmlfiles; do
  9303. srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
  9304. done
  9305. fi
  9306. GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
  9307. GDBSERVER_LIBS="$srv_libs"
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
  9309. $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
  9310. if ${gdbsrv_cv_have_sync_builtins+:} false; then :
  9311. $as_echo_n "(cached) " >&6
  9312. else
  9313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9314. /* end confdefs.h. */
  9315. int
  9316. main ()
  9317. {
  9318. int foo, bar;
  9319. bar = __sync_val_compare_and_swap(&foo, 0, 1);
  9320. ;
  9321. return 0;
  9322. }
  9323. _ACEOF
  9324. if ac_fn_c_try_link "$LINENO"; then :
  9325. gdbsrv_cv_have_sync_builtins=yes
  9326. else
  9327. gdbsrv_cv_have_sync_builtins=no
  9328. fi
  9329. rm -f core conftest.err conftest.$ac_objext \
  9330. conftest$ac_exeext conftest.$ac_ext
  9331. fi
  9332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
  9333. $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
  9334. if test "$gdbsrv_cv_have_sync_builtins" = yes; then
  9335. $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
  9336. fi
  9337. saved_cflags="$CFLAGS"
  9338. CFLAGS="$CFLAGS -fvisibility=hidden"
  9339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9340. /* end confdefs.h. */
  9341. int
  9342. main ()
  9343. {
  9344. ;
  9345. return 0;
  9346. }
  9347. _ACEOF
  9348. if ac_fn_c_try_compile "$LINENO"; then :
  9349. gdbsrv_cv_have_visibility_hidden=yes
  9350. else
  9351. gdbsrv_cv_have_visibility_hidden=no
  9352. fi
  9353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9354. CFLAGS="$saved_cflags"
  9355. IPA_DEPFILES=""
  9356. extra_libraries=""
  9357. # check whether to enable the inprocess agent
  9358. if test "$ipa_obj" != "" \
  9359. -a "$gdbsrv_cv_have_sync_builtins" = yes \
  9360. -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
  9361. have_ipa=true
  9362. else
  9363. have_ipa=false
  9364. fi
  9365. # Check whether --enable-inprocess-agent was given.
  9366. if test "${enable_inprocess_agent+set}" = set; then :
  9367. enableval=$enable_inprocess_agent; case "$enableval" in
  9368. yes) want_ipa=true ;;
  9369. no) want_ipa=false ;;
  9370. *) as_fn_error $? "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
  9371. esac
  9372. else
  9373. want_ipa=$have_ipa
  9374. fi
  9375. if $want_ipa ; then
  9376. if $have_ipa ; then
  9377. IPA_DEPFILES="$ipa_obj"
  9378. extra_libraries="$extra_libraries libinproctrace.so"
  9379. else
  9380. as_fn_error $? "inprocess agent not supported for this target" "$LINENO" 5
  9381. fi
  9382. fi
  9383. GNULIB=../gnulib/import
  9384. GNULIB_STDINT_H=
  9385. if test x"$STDINT_H" != x; then
  9386. GNULIB_STDINT_H=$GNULIB/$STDINT_H
  9387. fi
  9388. ac_config_files="$ac_config_files Makefile"
  9389. cat >confcache <<\_ACEOF
  9390. # This file is a shell script that caches the results of configure
  9391. # tests run on this system so they can be shared between configure
  9392. # scripts and configure runs, see configure's option --config-cache.
  9393. # It is not useful on other systems. If it contains results you don't
  9394. # want to keep, you may remove or edit it.
  9395. #
  9396. # config.status only pays attention to the cache file if you give it
  9397. # the --recheck option to rerun configure.
  9398. #
  9399. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9400. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9401. # following values.
  9402. _ACEOF
  9403. # The following way of writing the cache mishandles newlines in values,
  9404. # but we know of no workaround that is simple, portable, and efficient.
  9405. # So, we kill variables containing newlines.
  9406. # Ultrix sh set writes to stderr and can't be redirected directly,
  9407. # and sets the high bit in the cache file unless we assign to the vars.
  9408. (
  9409. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9410. eval ac_val=\$$ac_var
  9411. case $ac_val in #(
  9412. *${as_nl}*)
  9413. case $ac_var in #(
  9414. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9415. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9416. esac
  9417. case $ac_var in #(
  9418. _ | IFS | as_nl) ;; #(
  9419. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9420. *) { eval $ac_var=; unset $ac_var;} ;;
  9421. esac ;;
  9422. esac
  9423. done
  9424. (set) 2>&1 |
  9425. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9426. *${as_nl}ac_space=\ *)
  9427. # `set' does not quote correctly, so add quotes: double-quote
  9428. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9429. sed -n \
  9430. "s/'/'\\\\''/g;
  9431. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9432. ;; #(
  9433. *)
  9434. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9435. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9436. ;;
  9437. esac |
  9438. sort
  9439. ) |
  9440. sed '
  9441. /^ac_cv_env_/b end
  9442. t clear
  9443. :clear
  9444. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9445. t end
  9446. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9447. :end' >>confcache
  9448. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9449. if test -w "$cache_file"; then
  9450. if test "x$cache_file" != "x/dev/null"; then
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9452. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9453. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9454. cat confcache >"$cache_file"
  9455. else
  9456. case $cache_file in #(
  9457. */* | ?:*)
  9458. mv -f confcache "$cache_file"$$ &&
  9459. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9460. *)
  9461. mv -f confcache "$cache_file" ;;
  9462. esac
  9463. fi
  9464. fi
  9465. else
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9467. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9468. fi
  9469. fi
  9470. rm -f confcache
  9471. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9472. # Let make expand exec_prefix.
  9473. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9474. DEFS=-DHAVE_CONFIG_H
  9475. ac_libobjs=
  9476. ac_ltlibobjs=
  9477. U=
  9478. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9479. # 1. Remove the extension, and $U if already installed.
  9480. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9481. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9482. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9483. # will be set to the directory where LIBOBJS objects are built.
  9484. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9485. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9486. done
  9487. LIBOBJS=$ac_libobjs
  9488. LTLIBOBJS=$ac_ltlibobjs
  9489. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9490. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9491. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9492. fi
  9493. : "${CONFIG_STATUS=./config.status}"
  9494. ac_write_fail=0
  9495. ac_clean_files_save=$ac_clean_files
  9496. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9498. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9499. as_write_fail=0
  9500. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9501. #! $SHELL
  9502. # Generated by $as_me.
  9503. # Run this file to recreate the current configuration.
  9504. # Compiler output produced by configure, useful for debugging
  9505. # configure, is in config.log if it exists.
  9506. debug=false
  9507. ac_cs_recheck=false
  9508. ac_cs_silent=false
  9509. SHELL=\${CONFIG_SHELL-$SHELL}
  9510. export SHELL
  9511. _ASEOF
  9512. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9513. ## -------------------- ##
  9514. ## M4sh Initialization. ##
  9515. ## -------------------- ##
  9516. # Be more Bourne compatible
  9517. DUALCASE=1; export DUALCASE # for MKS sh
  9518. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9519. emulate sh
  9520. NULLCMD=:
  9521. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9522. # is contrary to our usage. Disable this feature.
  9523. alias -g '${1+"$@"}'='"$@"'
  9524. setopt NO_GLOB_SUBST
  9525. else
  9526. case `(set -o) 2>/dev/null` in #(
  9527. *posix*) :
  9528. set -o posix ;; #(
  9529. *) :
  9530. ;;
  9531. esac
  9532. fi
  9533. as_nl='
  9534. '
  9535. export as_nl
  9536. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9537. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9538. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9539. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9540. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9541. # but without wasting forks for bash or zsh.
  9542. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9543. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9544. as_echo='print -r --'
  9545. as_echo_n='print -rn --'
  9546. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9547. as_echo='printf %s\n'
  9548. as_echo_n='printf %s'
  9549. else
  9550. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9551. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9552. as_echo_n='/usr/ucb/echo -n'
  9553. else
  9554. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9555. as_echo_n_body='eval
  9556. arg=$1;
  9557. case $arg in #(
  9558. *"$as_nl"*)
  9559. expr "X$arg" : "X\\(.*\\)$as_nl";
  9560. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9561. esac;
  9562. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9563. '
  9564. export as_echo_n_body
  9565. as_echo_n='sh -c $as_echo_n_body as_echo'
  9566. fi
  9567. export as_echo_body
  9568. as_echo='sh -c $as_echo_body as_echo'
  9569. fi
  9570. # The user is always right.
  9571. if test "${PATH_SEPARATOR+set}" != set; then
  9572. PATH_SEPARATOR=:
  9573. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9574. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9575. PATH_SEPARATOR=';'
  9576. }
  9577. fi
  9578. # IFS
  9579. # We need space, tab and new line, in precisely that order. Quoting is
  9580. # there to prevent editors from complaining about space-tab.
  9581. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9582. # splitting by setting IFS to empty value.)
  9583. IFS=" "" $as_nl"
  9584. # Find who we are. Look in the path if we contain no directory separator.
  9585. as_myself=
  9586. case $0 in #((
  9587. *[\\/]* ) as_myself=$0 ;;
  9588. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9589. for as_dir in $PATH
  9590. do
  9591. IFS=$as_save_IFS
  9592. test -z "$as_dir" && as_dir=.
  9593. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9594. done
  9595. IFS=$as_save_IFS
  9596. ;;
  9597. esac
  9598. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9599. # in which case we are not to be found in the path.
  9600. if test "x$as_myself" = x; then
  9601. as_myself=$0
  9602. fi
  9603. if test ! -f "$as_myself"; then
  9604. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9605. exit 1
  9606. fi
  9607. # Unset variables that we do not need and which cause bugs (e.g. in
  9608. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9609. # suppresses any "Segmentation fault" message there. '((' could
  9610. # trigger a bug in pdksh 5.2.14.
  9611. for as_var in BASH_ENV ENV MAIL MAILPATH
  9612. do eval test x\${$as_var+set} = xset \
  9613. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9614. done
  9615. PS1='$ '
  9616. PS2='> '
  9617. PS4='+ '
  9618. # NLS nuisances.
  9619. LC_ALL=C
  9620. export LC_ALL
  9621. LANGUAGE=C
  9622. export LANGUAGE
  9623. # CDPATH.
  9624. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9625. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9626. # ----------------------------------------
  9627. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9628. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9629. # script with STATUS, using 1 if that was 0.
  9630. as_fn_error ()
  9631. {
  9632. as_status=$1; test $as_status -eq 0 && as_status=1
  9633. if test "$4"; then
  9634. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9635. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9636. fi
  9637. $as_echo "$as_me: error: $2" >&2
  9638. as_fn_exit $as_status
  9639. } # as_fn_error
  9640. # as_fn_set_status STATUS
  9641. # -----------------------
  9642. # Set $? to STATUS, without forking.
  9643. as_fn_set_status ()
  9644. {
  9645. return $1
  9646. } # as_fn_set_status
  9647. # as_fn_exit STATUS
  9648. # -----------------
  9649. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9650. as_fn_exit ()
  9651. {
  9652. set +e
  9653. as_fn_set_status $1
  9654. exit $1
  9655. } # as_fn_exit
  9656. # as_fn_unset VAR
  9657. # ---------------
  9658. # Portably unset VAR.
  9659. as_fn_unset ()
  9660. {
  9661. { eval $1=; unset $1;}
  9662. }
  9663. as_unset=as_fn_unset
  9664. # as_fn_append VAR VALUE
  9665. # ----------------------
  9666. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9667. # advantage of any shell optimizations that allow amortized linear growth over
  9668. # repeated appends, instead of the typical quadratic growth present in naive
  9669. # implementations.
  9670. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9671. eval 'as_fn_append ()
  9672. {
  9673. eval $1+=\$2
  9674. }'
  9675. else
  9676. as_fn_append ()
  9677. {
  9678. eval $1=\$$1\$2
  9679. }
  9680. fi # as_fn_append
  9681. # as_fn_arith ARG...
  9682. # ------------------
  9683. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9684. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9685. # must be portable across $(()) and expr.
  9686. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9687. eval 'as_fn_arith ()
  9688. {
  9689. as_val=$(( $* ))
  9690. }'
  9691. else
  9692. as_fn_arith ()
  9693. {
  9694. as_val=`expr "$@" || test $? -eq 1`
  9695. }
  9696. fi # as_fn_arith
  9697. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9698. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9699. as_expr=expr
  9700. else
  9701. as_expr=false
  9702. fi
  9703. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9704. as_basename=basename
  9705. else
  9706. as_basename=false
  9707. fi
  9708. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9709. as_dirname=dirname
  9710. else
  9711. as_dirname=false
  9712. fi
  9713. as_me=`$as_basename -- "$0" ||
  9714. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9715. X"$0" : 'X\(//\)$' \| \
  9716. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9717. $as_echo X/"$0" |
  9718. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9719. s//\1/
  9720. q
  9721. }
  9722. /^X\/\(\/\/\)$/{
  9723. s//\1/
  9724. q
  9725. }
  9726. /^X\/\(\/\).*/{
  9727. s//\1/
  9728. q
  9729. }
  9730. s/.*/./; q'`
  9731. # Avoid depending upon Character Ranges.
  9732. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9733. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9734. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9735. as_cr_digits='0123456789'
  9736. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9737. ECHO_C= ECHO_N= ECHO_T=
  9738. case `echo -n x` in #(((((
  9739. -n*)
  9740. case `echo 'xy\c'` in
  9741. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9742. xy) ECHO_C='\c';;
  9743. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9744. ECHO_T=' ';;
  9745. esac;;
  9746. *)
  9747. ECHO_N='-n';;
  9748. esac
  9749. rm -f conf$$ conf$$.exe conf$$.file
  9750. if test -d conf$$.dir; then
  9751. rm -f conf$$.dir/conf$$.file
  9752. else
  9753. rm -f conf$$.dir
  9754. mkdir conf$$.dir 2>/dev/null
  9755. fi
  9756. if (echo >conf$$.file) 2>/dev/null; then
  9757. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9758. as_ln_s='ln -s'
  9759. # ... but there are two gotchas:
  9760. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9761. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9762. # In both cases, we have to default to `cp -pR'.
  9763. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9764. as_ln_s='cp -pR'
  9765. elif ln conf$$.file conf$$ 2>/dev/null; then
  9766. as_ln_s=ln
  9767. else
  9768. as_ln_s='cp -pR'
  9769. fi
  9770. else
  9771. as_ln_s='cp -pR'
  9772. fi
  9773. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9774. rmdir conf$$.dir 2>/dev/null
  9775. # as_fn_mkdir_p
  9776. # -------------
  9777. # Create "$as_dir" as a directory, including parents if necessary.
  9778. as_fn_mkdir_p ()
  9779. {
  9780. case $as_dir in #(
  9781. -*) as_dir=./$as_dir;;
  9782. esac
  9783. test -d "$as_dir" || eval $as_mkdir_p || {
  9784. as_dirs=
  9785. while :; do
  9786. case $as_dir in #(
  9787. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9788. *) as_qdir=$as_dir;;
  9789. esac
  9790. as_dirs="'$as_qdir' $as_dirs"
  9791. as_dir=`$as_dirname -- "$as_dir" ||
  9792. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9793. X"$as_dir" : 'X\(//\)[^/]' \| \
  9794. X"$as_dir" : 'X\(//\)$' \| \
  9795. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9796. $as_echo X"$as_dir" |
  9797. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9798. s//\1/
  9799. q
  9800. }
  9801. /^X\(\/\/\)[^/].*/{
  9802. s//\1/
  9803. q
  9804. }
  9805. /^X\(\/\/\)$/{
  9806. s//\1/
  9807. q
  9808. }
  9809. /^X\(\/\).*/{
  9810. s//\1/
  9811. q
  9812. }
  9813. s/.*/./; q'`
  9814. test -d "$as_dir" && break
  9815. done
  9816. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9817. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9818. } # as_fn_mkdir_p
  9819. if mkdir -p . 2>/dev/null; then
  9820. as_mkdir_p='mkdir -p "$as_dir"'
  9821. else
  9822. test -d ./-p && rmdir ./-p
  9823. as_mkdir_p=false
  9824. fi
  9825. # as_fn_executable_p FILE
  9826. # -----------------------
  9827. # Test if FILE is an executable regular file.
  9828. as_fn_executable_p ()
  9829. {
  9830. test -f "$1" && test -x "$1"
  9831. } # as_fn_executable_p
  9832. as_test_x='test -x'
  9833. as_executable_p=as_fn_executable_p
  9834. # Sed expression to map a string onto a valid CPP name.
  9835. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9836. # Sed expression to map a string onto a valid variable name.
  9837. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9838. exec 6>&1
  9839. ## ----------------------------------- ##
  9840. ## Main body of $CONFIG_STATUS script. ##
  9841. ## ----------------------------------- ##
  9842. _ASEOF
  9843. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9844. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9845. # Save the log message, to keep $0 and so on meaningful, and to
  9846. # report actual input values of CONFIG_FILES etc. instead of their
  9847. # values after options handling.
  9848. ac_log="
  9849. This file was extended by $as_me, which was
  9850. generated by GNU Autoconf 2.69. Invocation command line was
  9851. CONFIG_FILES = $CONFIG_FILES
  9852. CONFIG_HEADERS = $CONFIG_HEADERS
  9853. CONFIG_LINKS = $CONFIG_LINKS
  9854. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9855. $ $0 $@
  9856. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9857. "
  9858. _ACEOF
  9859. case $ac_config_files in *"
  9860. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9861. esac
  9862. case $ac_config_headers in *"
  9863. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9864. esac
  9865. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9866. # Files that config.status was made for.
  9867. config_files="$ac_config_files"
  9868. config_headers="$ac_config_headers"
  9869. config_commands="$ac_config_commands"
  9870. _ACEOF
  9871. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9872. ac_cs_usage="\
  9873. \`$as_me' instantiates files and other configuration actions
  9874. from templates according to the current configuration. Unless the files
  9875. and actions are specified as TAGs, all are instantiated by default.
  9876. Usage: $0 [OPTION]... [TAG]...
  9877. -h, --help print this help, then exit
  9878. -V, --version print version number and configuration settings, then exit
  9879. --config print configuration, then exit
  9880. -q, --quiet, --silent
  9881. do not print progress messages
  9882. -d, --debug don't remove temporary files
  9883. --recheck update $as_me by reconfiguring in the same conditions
  9884. --file=FILE[:TEMPLATE]
  9885. instantiate the configuration file FILE
  9886. --header=FILE[:TEMPLATE]
  9887. instantiate the configuration header FILE
  9888. Configuration files:
  9889. $config_files
  9890. Configuration headers:
  9891. $config_headers
  9892. Configuration commands:
  9893. $config_commands
  9894. Report bugs to the package provider."
  9895. _ACEOF
  9896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9897. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9898. ac_cs_version="\\
  9899. config.status
  9900. configured by $0, generated by GNU Autoconf 2.69,
  9901. with options \\"\$ac_cs_config\\"
  9902. Copyright (C) 2012 Free Software Foundation, Inc.
  9903. This config.status script is free software; the Free Software Foundation
  9904. gives unlimited permission to copy, distribute and modify it."
  9905. ac_pwd='$ac_pwd'
  9906. srcdir='$srcdir'
  9907. INSTALL='$INSTALL'
  9908. test -n "\$AWK" || AWK=awk
  9909. _ACEOF
  9910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9911. # The default lists apply if the user does not specify any file.
  9912. ac_need_defaults=:
  9913. while test $# != 0
  9914. do
  9915. case $1 in
  9916. --*=?*)
  9917. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9918. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9919. ac_shift=:
  9920. ;;
  9921. --*=)
  9922. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9923. ac_optarg=
  9924. ac_shift=:
  9925. ;;
  9926. *)
  9927. ac_option=$1
  9928. ac_optarg=$2
  9929. ac_shift=shift
  9930. ;;
  9931. esac
  9932. case $ac_option in
  9933. # Handling of the options.
  9934. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9935. ac_cs_recheck=: ;;
  9936. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9937. $as_echo "$ac_cs_version"; exit ;;
  9938. --config | --confi | --conf | --con | --co | --c )
  9939. $as_echo "$ac_cs_config"; exit ;;
  9940. --debug | --debu | --deb | --de | --d | -d )
  9941. debug=: ;;
  9942. --file | --fil | --fi | --f )
  9943. $ac_shift
  9944. case $ac_optarg in
  9945. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9946. '') as_fn_error $? "missing file argument" ;;
  9947. esac
  9948. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9949. ac_need_defaults=false;;
  9950. --header | --heade | --head | --hea )
  9951. $ac_shift
  9952. case $ac_optarg in
  9953. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9954. esac
  9955. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9956. ac_need_defaults=false;;
  9957. --he | --h)
  9958. # Conflict between --help and --header
  9959. as_fn_error $? "ambiguous option: \`$1'
  9960. Try \`$0 --help' for more information.";;
  9961. --help | --hel | -h )
  9962. $as_echo "$ac_cs_usage"; exit ;;
  9963. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9964. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9965. ac_cs_silent=: ;;
  9966. # This is an error.
  9967. -*) as_fn_error $? "unrecognized option: \`$1'
  9968. Try \`$0 --help' for more information." ;;
  9969. *) as_fn_append ac_config_targets " $1"
  9970. ac_need_defaults=false ;;
  9971. esac
  9972. shift
  9973. done
  9974. ac_configure_extra_args=
  9975. if $ac_cs_silent; then
  9976. exec 6>/dev/null
  9977. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9978. fi
  9979. _ACEOF
  9980. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9981. if \$ac_cs_recheck; then
  9982. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9983. shift
  9984. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9985. CONFIG_SHELL='$SHELL'
  9986. export CONFIG_SHELL
  9987. exec "\$@"
  9988. fi
  9989. _ACEOF
  9990. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9991. exec 5>>config.log
  9992. {
  9993. echo
  9994. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9995. ## Running $as_me. ##
  9996. _ASBOX
  9997. $as_echo "$ac_log"
  9998. } >&5
  9999. _ACEOF
  10000. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10001. #
  10002. # INIT-COMMANDS
  10003. #
  10004. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  10005. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
  10006. _ACEOF
  10007. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10008. # Handling of arguments.
  10009. for ac_config_target in $ac_config_targets
  10010. do
  10011. case $ac_config_target in
  10012. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  10013. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  10014. "gdbdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbdepdir" ;;
  10015. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10016. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10017. esac
  10018. done
  10019. # If the user did not use the arguments to specify the items to instantiate,
  10020. # then the envvar interface is used. Set only those that are not.
  10021. # We use the long form for the default assignment because of an extremely
  10022. # bizarre bug on SunOS 4.1.3.
  10023. if $ac_need_defaults; then
  10024. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10025. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10026. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10027. fi
  10028. # Have a temporary directory for convenience. Make it in the build tree
  10029. # simply because there is no reason against having it here, and in addition,
  10030. # creating and moving files from /tmp can sometimes cause problems.
  10031. # Hook for its removal unless debugging.
  10032. # Note that there is a small window in which the directory will not be cleaned:
  10033. # after its creation but before its name has been assigned to `$tmp'.
  10034. $debug ||
  10035. {
  10036. tmp= ac_tmp=
  10037. trap 'exit_status=$?
  10038. : "${ac_tmp:=$tmp}"
  10039. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10040. ' 0
  10041. trap 'as_fn_exit 1' 1 2 13 15
  10042. }
  10043. # Create a (secure) tmp directory for tmp files.
  10044. {
  10045. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10046. test -d "$tmp"
  10047. } ||
  10048. {
  10049. tmp=./conf$$-$RANDOM
  10050. (umask 077 && mkdir "$tmp")
  10051. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10052. ac_tmp=$tmp
  10053. # Set up the scripts for CONFIG_FILES section.
  10054. # No need to generate them if there are no CONFIG_FILES.
  10055. # This happens for instance with `./config.status config.h'.
  10056. if test -n "$CONFIG_FILES"; then
  10057. ac_cr=`echo X | tr X '\015'`
  10058. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10059. # But we know of no other shell where ac_cr would be empty at this
  10060. # point, so we can use a bashism as a fallback.
  10061. if test "x$ac_cr" = x; then
  10062. eval ac_cr=\$\'\\r\'
  10063. fi
  10064. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10065. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10066. ac_cs_awk_cr='\\r'
  10067. else
  10068. ac_cs_awk_cr=$ac_cr
  10069. fi
  10070. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10071. _ACEOF
  10072. {
  10073. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10074. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10075. echo "_ACEOF"
  10076. } >conf$$subs.sh ||
  10077. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10078. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10079. ac_delim='%!_!# '
  10080. for ac_last_try in false false false false false :; do
  10081. . ./conf$$subs.sh ||
  10082. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10083. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10084. if test $ac_delim_n = $ac_delim_num; then
  10085. break
  10086. elif $ac_last_try; then
  10087. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10088. else
  10089. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10090. fi
  10091. done
  10092. rm -f conf$$subs.sh
  10093. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10094. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10095. _ACEOF
  10096. sed -n '
  10097. h
  10098. s/^/S["/; s/!.*/"]=/
  10099. p
  10100. g
  10101. s/^[^!]*!//
  10102. :repl
  10103. t repl
  10104. s/'"$ac_delim"'$//
  10105. t delim
  10106. :nl
  10107. h
  10108. s/\(.\{148\}\)..*/\1/
  10109. t more1
  10110. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10111. p
  10112. n
  10113. b repl
  10114. :more1
  10115. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10116. p
  10117. g
  10118. s/.\{148\}//
  10119. t nl
  10120. :delim
  10121. h
  10122. s/\(.\{148\}\)..*/\1/
  10123. t more2
  10124. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10125. p
  10126. b
  10127. :more2
  10128. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10129. p
  10130. g
  10131. s/.\{148\}//
  10132. t delim
  10133. ' <conf$$subs.awk | sed '
  10134. /^[^""]/{
  10135. N
  10136. s/\n//
  10137. }
  10138. ' >>$CONFIG_STATUS || ac_write_fail=1
  10139. rm -f conf$$subs.awk
  10140. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10141. _ACAWK
  10142. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10143. for (key in S) S_is_set[key] = 1
  10144. FS = ""
  10145. }
  10146. {
  10147. line = $ 0
  10148. nfields = split(line, field, "@")
  10149. substed = 0
  10150. len = length(field[1])
  10151. for (i = 2; i < nfields; i++) {
  10152. key = field[i]
  10153. keylen = length(key)
  10154. if (S_is_set[key]) {
  10155. value = S[key]
  10156. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10157. len += length(value) + length(field[++i])
  10158. substed = 1
  10159. } else
  10160. len += 1 + keylen
  10161. }
  10162. print line
  10163. }
  10164. _ACAWK
  10165. _ACEOF
  10166. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10167. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10168. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10169. else
  10170. cat
  10171. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10172. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10173. _ACEOF
  10174. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10175. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10176. # trailing colons and then remove the whole line if VPATH becomes empty
  10177. # (actually we leave an empty line to preserve line numbers).
  10178. if test "x$srcdir" = x.; then
  10179. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10180. h
  10181. s///
  10182. s/^/:/
  10183. s/[ ]*$/:/
  10184. s/:\$(srcdir):/:/g
  10185. s/:\${srcdir}:/:/g
  10186. s/:@srcdir@:/:/g
  10187. s/^:*//
  10188. s/:*$//
  10189. x
  10190. s/\(=[ ]*\).*/\1/
  10191. G
  10192. s/\n//
  10193. s/^[^=]*=[ ]*$//
  10194. }'
  10195. fi
  10196. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10197. fi # test -n "$CONFIG_FILES"
  10198. # Set up the scripts for CONFIG_HEADERS section.
  10199. # No need to generate them if there are no CONFIG_HEADERS.
  10200. # This happens for instance with `./config.status Makefile'.
  10201. if test -n "$CONFIG_HEADERS"; then
  10202. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10203. BEGIN {
  10204. _ACEOF
  10205. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10206. # here-document in config.status, that substitutes the proper values into
  10207. # config.h.in to produce config.h.
  10208. # Create a delimiter string that does not exist in confdefs.h, to ease
  10209. # handling of long lines.
  10210. ac_delim='%!_!# '
  10211. for ac_last_try in false false :; do
  10212. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10213. if test -z "$ac_tt"; then
  10214. break
  10215. elif $ac_last_try; then
  10216. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10217. else
  10218. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10219. fi
  10220. done
  10221. # For the awk script, D is an array of macro values keyed by name,
  10222. # likewise P contains macro parameters if any. Preserve backslash
  10223. # newline sequences.
  10224. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10225. sed -n '
  10226. s/.\{148\}/&'"$ac_delim"'/g
  10227. t rset
  10228. :rset
  10229. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10230. t def
  10231. d
  10232. :def
  10233. s/\\$//
  10234. t bsnl
  10235. s/["\\]/\\&/g
  10236. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10237. D["\1"]=" \3"/p
  10238. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10239. d
  10240. :bsnl
  10241. s/["\\]/\\&/g
  10242. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10243. D["\1"]=" \3\\\\\\n"\\/p
  10244. t cont
  10245. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10246. t cont
  10247. d
  10248. :cont
  10249. n
  10250. s/.\{148\}/&'"$ac_delim"'/g
  10251. t clear
  10252. :clear
  10253. s/\\$//
  10254. t bsnlc
  10255. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10256. d
  10257. :bsnlc
  10258. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10259. b cont
  10260. ' <confdefs.h | sed '
  10261. s/'"$ac_delim"'/"\\\
  10262. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10264. for (key in D) D_is_set[key] = 1
  10265. FS = ""
  10266. }
  10267. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10268. line = \$ 0
  10269. split(line, arg, " ")
  10270. if (arg[1] == "#") {
  10271. defundef = arg[2]
  10272. mac1 = arg[3]
  10273. } else {
  10274. defundef = substr(arg[1], 2)
  10275. mac1 = arg[2]
  10276. }
  10277. split(mac1, mac2, "(") #)
  10278. macro = mac2[1]
  10279. prefix = substr(line, 1, index(line, defundef) - 1)
  10280. if (D_is_set[macro]) {
  10281. # Preserve the white space surrounding the "#".
  10282. print prefix "define", macro P[macro] D[macro]
  10283. next
  10284. } else {
  10285. # Replace #undef with comments. This is necessary, for example,
  10286. # in the case of _POSIX_SOURCE, which is predefined and required
  10287. # on some systems where configure will not decide to define it.
  10288. if (defundef == "undef") {
  10289. print "/*", prefix defundef, macro, "*/"
  10290. next
  10291. }
  10292. }
  10293. }
  10294. { print }
  10295. _ACAWK
  10296. _ACEOF
  10297. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10298. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10299. fi # test -n "$CONFIG_HEADERS"
  10300. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10301. shift
  10302. for ac_tag
  10303. do
  10304. case $ac_tag in
  10305. :[FHLC]) ac_mode=$ac_tag; continue;;
  10306. esac
  10307. case $ac_mode$ac_tag in
  10308. :[FHL]*:*);;
  10309. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10310. :[FH]-) ac_tag=-:-;;
  10311. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10312. esac
  10313. ac_save_IFS=$IFS
  10314. IFS=:
  10315. set x $ac_tag
  10316. IFS=$ac_save_IFS
  10317. shift
  10318. ac_file=$1
  10319. shift
  10320. case $ac_mode in
  10321. :L) ac_source=$1;;
  10322. :[FH])
  10323. ac_file_inputs=
  10324. for ac_f
  10325. do
  10326. case $ac_f in
  10327. -) ac_f="$ac_tmp/stdin";;
  10328. *) # Look for the file first in the build tree, then in the source tree
  10329. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10330. # because $ac_f cannot contain `:'.
  10331. test -f "$ac_f" ||
  10332. case $ac_f in
  10333. [\\/$]*) false;;
  10334. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10335. esac ||
  10336. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10337. esac
  10338. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10339. as_fn_append ac_file_inputs " '$ac_f'"
  10340. done
  10341. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10342. # use $as_me), people would be surprised to read:
  10343. # /* config.h. Generated by config.status. */
  10344. configure_input='Generated from '`
  10345. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10346. `' by configure.'
  10347. if test x"$ac_file" != x-; then
  10348. configure_input="$ac_file. $configure_input"
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10350. $as_echo "$as_me: creating $ac_file" >&6;}
  10351. fi
  10352. # Neutralize special characters interpreted by sed in replacement strings.
  10353. case $configure_input in #(
  10354. *\&* | *\|* | *\\* )
  10355. ac_sed_conf_input=`$as_echo "$configure_input" |
  10356. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10357. *) ac_sed_conf_input=$configure_input;;
  10358. esac
  10359. case $ac_tag in
  10360. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10361. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10362. esac
  10363. ;;
  10364. esac
  10365. ac_dir=`$as_dirname -- "$ac_file" ||
  10366. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10367. X"$ac_file" : 'X\(//\)[^/]' \| \
  10368. X"$ac_file" : 'X\(//\)$' \| \
  10369. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10370. $as_echo X"$ac_file" |
  10371. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10372. s//\1/
  10373. q
  10374. }
  10375. /^X\(\/\/\)[^/].*/{
  10376. s//\1/
  10377. q
  10378. }
  10379. /^X\(\/\/\)$/{
  10380. s//\1/
  10381. q
  10382. }
  10383. /^X\(\/\).*/{
  10384. s//\1/
  10385. q
  10386. }
  10387. s/.*/./; q'`
  10388. as_dir="$ac_dir"; as_fn_mkdir_p
  10389. ac_builddir=.
  10390. case "$ac_dir" in
  10391. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10392. *)
  10393. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10394. # A ".." for each directory in $ac_dir_suffix.
  10395. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10396. case $ac_top_builddir_sub in
  10397. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10398. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10399. esac ;;
  10400. esac
  10401. ac_abs_top_builddir=$ac_pwd
  10402. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10403. # for backward compatibility:
  10404. ac_top_builddir=$ac_top_build_prefix
  10405. case $srcdir in
  10406. .) # We are building in place.
  10407. ac_srcdir=.
  10408. ac_top_srcdir=$ac_top_builddir_sub
  10409. ac_abs_top_srcdir=$ac_pwd ;;
  10410. [\\/]* | ?:[\\/]* ) # Absolute name.
  10411. ac_srcdir=$srcdir$ac_dir_suffix;
  10412. ac_top_srcdir=$srcdir
  10413. ac_abs_top_srcdir=$srcdir ;;
  10414. *) # Relative name.
  10415. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10416. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10417. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10418. esac
  10419. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10420. case $ac_mode in
  10421. :F)
  10422. #
  10423. # CONFIG_FILE
  10424. #
  10425. case $INSTALL in
  10426. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10427. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10428. esac
  10429. _ACEOF
  10430. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10431. # If the template does not know about datarootdir, expand it.
  10432. # FIXME: This hack should be removed a few years after 2.60.
  10433. ac_datarootdir_hack=; ac_datarootdir_seen=
  10434. ac_sed_dataroot='
  10435. /datarootdir/ {
  10436. p
  10437. q
  10438. }
  10439. /@datadir@/p
  10440. /@docdir@/p
  10441. /@infodir@/p
  10442. /@localedir@/p
  10443. /@mandir@/p'
  10444. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10445. *datarootdir*) ac_datarootdir_seen=yes;;
  10446. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10448. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10449. _ACEOF
  10450. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10451. ac_datarootdir_hack='
  10452. s&@datadir@&$datadir&g
  10453. s&@docdir@&$docdir&g
  10454. s&@infodir@&$infodir&g
  10455. s&@localedir@&$localedir&g
  10456. s&@mandir@&$mandir&g
  10457. s&\\\${datarootdir}&$datarootdir&g' ;;
  10458. esac
  10459. _ACEOF
  10460. # Neutralize VPATH when `$srcdir' = `.'.
  10461. # Shell code in configure.ac might set extrasub.
  10462. # FIXME: do we really want to maintain this feature?
  10463. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10464. ac_sed_extra="$ac_vpsub
  10465. $extrasub
  10466. _ACEOF
  10467. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10468. :t
  10469. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10470. s|@configure_input@|$ac_sed_conf_input|;t t
  10471. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10472. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10473. s&@srcdir@&$ac_srcdir&;t t
  10474. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10475. s&@top_srcdir@&$ac_top_srcdir&;t t
  10476. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10477. s&@builddir@&$ac_builddir&;t t
  10478. s&@abs_builddir@&$ac_abs_builddir&;t t
  10479. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10480. s&@INSTALL@&$ac_INSTALL&;t t
  10481. $ac_datarootdir_hack
  10482. "
  10483. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10484. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10485. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10486. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10487. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10488. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10490. which seems to be undefined. Please make sure it is defined" >&5
  10491. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10492. which seems to be undefined. Please make sure it is defined" >&2;}
  10493. rm -f "$ac_tmp/stdin"
  10494. case $ac_file in
  10495. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10496. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10497. esac \
  10498. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10499. ;;
  10500. :H)
  10501. #
  10502. # CONFIG_HEADER
  10503. #
  10504. if test x"$ac_file" != x-; then
  10505. {
  10506. $as_echo "/* $configure_input */" \
  10507. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10508. } >"$ac_tmp/config.h" \
  10509. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10510. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10512. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10513. else
  10514. rm -f "$ac_file"
  10515. mv "$ac_tmp/config.h" "$ac_file" \
  10516. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10517. fi
  10518. else
  10519. $as_echo "/* $configure_input */" \
  10520. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10521. || as_fn_error $? "could not create -" "$LINENO" 5
  10522. fi
  10523. ;;
  10524. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10525. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10526. ;;
  10527. esac
  10528. case $ac_file$ac_mode in
  10529. "config.h":H) echo > stamp-h ;;
  10530. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  10531. "gdbdepdir":C)
  10532. for subdir in ${CONFIG_SRC_SUBDIR}
  10533. do
  10534. $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
  10535. done ;;
  10536. esac
  10537. done # for ac_tag
  10538. as_fn_exit 0
  10539. _ACEOF
  10540. ac_clean_files=$ac_clean_files_save
  10541. test $ac_write_fail = 0 ||
  10542. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10543. # configure is writing to config.log, and then calls config.status.
  10544. # config.status does its own redirection, appending to config.log.
  10545. # Unfortunately, on DOS this fails, as config.log is still kept open
  10546. # by configure, so config.status won't be able to write to it; its
  10547. # output is simply discarded. So we exec the FD to /dev/null,
  10548. # effectively closing config.log, so it can be properly (re)opened and
  10549. # appended to by config.status. When coming back to configure, we
  10550. # need to make the FD available again.
  10551. if test "$no_create" != yes; then
  10552. ac_cs_success=:
  10553. ac_config_status_args=
  10554. test "$silent" = yes &&
  10555. ac_config_status_args="$ac_config_status_args --quiet"
  10556. exec 5>/dev/null
  10557. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10558. exec 5>>config.log
  10559. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10560. # would make configure fail if this is the last instruction.
  10561. $ac_cs_success || as_fn_exit 1
  10562. fi
  10563. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10565. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10566. fi