configure 292 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.71.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. #
  14. # Copyright (c) Bryan Drewery
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. as_nop=:
  21. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  22. then :
  23. emulate sh
  24. NULLCMD=:
  25. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26. # is contrary to our usage. Disable this feature.
  27. alias -g '${1+"$@"}'='"$@"'
  28. setopt NO_GLOB_SUBST
  29. else $as_nop
  30. case `(set -o) 2>/dev/null` in #(
  31. *posix*) :
  32. set -o posix ;; #(
  33. *) :
  34. ;;
  35. esac
  36. fi
  37. # Reset variables that may have inherited troublesome values from
  38. # the environment.
  39. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  40. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  41. # side effect of setting IFS to empty, thus disabling word splitting.)
  42. # Quoting is to prevent editors from complaining about space-tab.
  43. as_nl='
  44. '
  45. export as_nl
  46. IFS=" "" $as_nl"
  47. PS1='$ '
  48. PS2='> '
  49. PS4='+ '
  50. # Ensure predictable behavior from utilities with locale-dependent output.
  51. LC_ALL=C
  52. export LC_ALL
  53. LANGUAGE=C
  54. export LANGUAGE
  55. # We cannot yet rely on "unset" to work, but we need these variables
  56. # to be unset--not just set to an empty or harmless value--now, to
  57. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  58. # also avoids known problems related to "unset" and subshell syntax
  59. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  60. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  61. do eval test \${$as_var+y} \
  62. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  63. done
  64. # Ensure that fds 0, 1, and 2 are open.
  65. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  66. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  67. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  68. # The user is always right.
  69. if ${PATH_SEPARATOR+false} :; 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. # Find who we are. Look in the path if we contain no directory separator.
  77. as_myself=
  78. case $0 in #((
  79. *[\\/]* ) as_myself=$0 ;;
  80. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  81. for as_dir in $PATH
  82. do
  83. IFS=$as_save_IFS
  84. case $as_dir in #(((
  85. '') as_dir=./ ;;
  86. */) ;;
  87. *) as_dir=$as_dir/ ;;
  88. esac
  89. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  90. done
  91. IFS=$as_save_IFS
  92. ;;
  93. esac
  94. # We did not find ourselves, most probably we were run as `sh COMMAND'
  95. # in which case we are not to be found in the path.
  96. if test "x$as_myself" = x; then
  97. as_myself=$0
  98. fi
  99. if test ! -f "$as_myself"; then
  100. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  101. exit 1
  102. fi
  103. # Use a proper internal environment variable to ensure we don't fall
  104. # into an infinite loop, continuously re-executing ourselves.
  105. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  106. _as_can_reexec=no; export _as_can_reexec;
  107. # We cannot yet assume a decent shell, so we have to provide a
  108. # neutralization value for shells without unset; and this also
  109. # works around shells that cannot unset nonexistent variables.
  110. # Preserve -v and -x to the replacement shell.
  111. BASH_ENV=/dev/null
  112. ENV=/dev/null
  113. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  114. case $- in # ((((
  115. *v*x* | *x*v* ) as_opts=-vx ;;
  116. *v* ) as_opts=-v ;;
  117. *x* ) as_opts=-x ;;
  118. * ) as_opts= ;;
  119. esac
  120. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  121. # Admittedly, this is quite paranoid, since all the known shells bail
  122. # out after a failed `exec'.
  123. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  124. exit 255
  125. fi
  126. # We don't want this to propagate to other subprocesses.
  127. { _as_can_reexec=; unset _as_can_reexec;}
  128. if test "x$CONFIG_SHELL" = x; then
  129. as_bourne_compatible="as_nop=:
  130. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  131. then :
  132. emulate sh
  133. NULLCMD=:
  134. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  135. # is contrary to our usage. Disable this feature.
  136. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  137. setopt NO_GLOB_SUBST
  138. else \$as_nop
  139. case \`(set -o) 2>/dev/null\` in #(
  140. *posix*) :
  141. set -o posix ;; #(
  142. *) :
  143. ;;
  144. esac
  145. fi
  146. "
  147. as_required="as_fn_return () { (exit \$1); }
  148. as_fn_success () { as_fn_return 0; }
  149. as_fn_failure () { as_fn_return 1; }
  150. as_fn_ret_success () { return 0; }
  151. as_fn_ret_failure () { return 1; }
  152. exitcode=0
  153. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  154. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  155. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  156. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  157. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  158. then :
  159. else \$as_nop
  160. exitcode=1; echo positional parameters were not saved.
  161. fi
  162. test x\$exitcode = x0 || exit 1
  163. blah=\$(echo \$(echo blah))
  164. test x\"\$blah\" = xblah || exit 1
  165. test -x / || exit 1"
  166. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  167. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  168. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  169. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null
  172. then :
  173. as_have_required=yes
  174. else $as_nop
  175. as_have_required=no
  176. fi
  177. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  178. then :
  179. else $as_nop
  180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  181. as_found=false
  182. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  183. do
  184. IFS=$as_save_IFS
  185. case $as_dir in #(((
  186. '') as_dir=./ ;;
  187. */) ;;
  188. *) as_dir=$as_dir/ ;;
  189. esac
  190. as_found=:
  191. case $as_dir in #(
  192. /*)
  193. for as_base in sh bash ksh sh5; do
  194. # Try only shells that exist, to save several forks.
  195. as_shell=$as_dir$as_base
  196. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  197. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  198. then :
  199. CONFIG_SHELL=$as_shell as_have_required=yes
  200. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  201. then :
  202. break 2
  203. fi
  204. fi
  205. done;;
  206. esac
  207. as_found=false
  208. done
  209. IFS=$as_save_IFS
  210. if $as_found
  211. then :
  212. else $as_nop
  213. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  214. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  215. then :
  216. CONFIG_SHELL=$SHELL as_have_required=yes
  217. fi
  218. fi
  219. if test "x$CONFIG_SHELL" != x
  220. then :
  221. export CONFIG_SHELL
  222. # We cannot yet assume a decent shell, so we have to provide a
  223. # neutralization value for shells without unset; and this also
  224. # works around shells that cannot unset nonexistent variables.
  225. # Preserve -v and -x to the replacement shell.
  226. BASH_ENV=/dev/null
  227. ENV=/dev/null
  228. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  229. case $- in # ((((
  230. *v*x* | *x*v* ) as_opts=-vx ;;
  231. *v* ) as_opts=-v ;;
  232. *x* ) as_opts=-x ;;
  233. * ) as_opts= ;;
  234. esac
  235. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  236. # Admittedly, this is quite paranoid, since all the known shells bail
  237. # out after a failed `exec'.
  238. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  239. exit 255
  240. fi
  241. if test x$as_have_required = xno
  242. then :
  243. printf "%s\n" "$0: This script requires a shell more modern than all"
  244. printf "%s\n" "$0: the shells that I found on your system."
  245. if test ${ZSH_VERSION+y} ; then
  246. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. printf "%s\n" "$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_nop
  291. # ---------
  292. # Do nothing but, unlike ":", preserve the value of $?.
  293. as_fn_nop ()
  294. {
  295. return $?
  296. }
  297. as_nop=as_fn_nop
  298. # as_fn_mkdir_p
  299. # -------------
  300. # Create "$as_dir" as a directory, including parents if necessary.
  301. as_fn_mkdir_p ()
  302. {
  303. case $as_dir in #(
  304. -*) as_dir=./$as_dir;;
  305. esac
  306. test -d "$as_dir" || eval $as_mkdir_p || {
  307. as_dirs=
  308. while :; do
  309. case $as_dir in #(
  310. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  311. *) as_qdir=$as_dir;;
  312. esac
  313. as_dirs="'$as_qdir' $as_dirs"
  314. as_dir=`$as_dirname -- "$as_dir" ||
  315. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  316. X"$as_dir" : 'X\(//\)[^/]' \| \
  317. X"$as_dir" : 'X\(//\)$' \| \
  318. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  319. printf "%s\n" X"$as_dir" |
  320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)[^/].*/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)$/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\).*/{
  333. s//\1/
  334. q
  335. }
  336. s/.*/./; q'`
  337. test -d "$as_dir" && break
  338. done
  339. test -z "$as_dirs" || eval "mkdir $as_dirs"
  340. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  341. } # as_fn_mkdir_p
  342. # as_fn_executable_p FILE
  343. # -----------------------
  344. # Test if FILE is an executable regular file.
  345. as_fn_executable_p ()
  346. {
  347. test -f "$1" && test -x "$1"
  348. } # as_fn_executable_p
  349. # as_fn_append VAR VALUE
  350. # ----------------------
  351. # Append the text in VALUE to the end of the definition contained in VAR. Take
  352. # advantage of any shell optimizations that allow amortized linear growth over
  353. # repeated appends, instead of the typical quadratic growth present in naive
  354. # implementations.
  355. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  356. then :
  357. eval 'as_fn_append ()
  358. {
  359. eval $1+=\$2
  360. }'
  361. else $as_nop
  362. as_fn_append ()
  363. {
  364. eval $1=\$$1\$2
  365. }
  366. fi # as_fn_append
  367. # as_fn_arith ARG...
  368. # ------------------
  369. # Perform arithmetic evaluation on the ARGs, and store the result in the
  370. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  371. # must be portable across $(()) and expr.
  372. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  373. then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else $as_nop
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_nop
  385. # ---------
  386. # Do nothing but, unlike ":", preserve the value of $?.
  387. as_fn_nop ()
  388. {
  389. return $?
  390. }
  391. as_nop=as_fn_nop
  392. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  393. # ----------------------------------------
  394. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  395. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  396. # script with STATUS, using 1 if that was 0.
  397. as_fn_error ()
  398. {
  399. as_status=$1; test $as_status -eq 0 && as_status=1
  400. if test "$4"; then
  401. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  403. fi
  404. printf "%s\n" "$as_me: error: $2" >&2
  405. as_fn_exit $as_status
  406. } # as_fn_error
  407. if expr a : '\(a\)' >/dev/null 2>&1 &&
  408. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  409. as_expr=expr
  410. else
  411. as_expr=false
  412. fi
  413. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  414. as_basename=basename
  415. else
  416. as_basename=false
  417. fi
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. as_me=`$as_basename -- "$0" ||
  424. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  425. X"$0" : 'X\(//\)$' \| \
  426. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  427. printf "%s\n" X/"$0" |
  428. sed '/^.*\/\([^/][^/]*\)\/*$/{
  429. s//\1/
  430. q
  431. }
  432. /^X\/\(\/\/\)$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\).*/{
  437. s//\1/
  438. q
  439. }
  440. s/.*/./; q'`
  441. # Avoid depending upon Character Ranges.
  442. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  443. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  444. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  445. as_cr_digits='0123456789'
  446. as_cr_alnum=$as_cr_Letters$as_cr_digits
  447. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  448. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  449. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  450. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  451. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  452. sed -n '
  453. p
  454. /[$]LINENO/=
  455. ' <$as_myself |
  456. sed '
  457. s/[$]LINENO.*/&-/
  458. t lineno
  459. b
  460. :lineno
  461. N
  462. :loop
  463. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  464. t loop
  465. s/-\n.*//
  466. ' >$as_me.lineno &&
  467. chmod +x "$as_me.lineno" ||
  468. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  469. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  470. # already done that, so ensure we don't try to do so again and fall
  471. # in an infinite loop. This has already happened in practice.
  472. _as_can_reexec=no; export _as_can_reexec
  473. # Don't try to exec as it changes $[0], causing all sort of problems
  474. # (the dirname of $[0] is not the place where we might find the
  475. # original and so on. Autoconf is especially sensitive to this).
  476. . "./$as_me.lineno"
  477. # Exit status is that of the last command.
  478. exit
  479. }
  480. # Determine whether it's possible to make 'echo' print without a newline.
  481. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  482. # for compatibility with existing Makefiles.
  483. ECHO_C= ECHO_N= ECHO_T=
  484. case `echo -n x` in #(((((
  485. -n*)
  486. case `echo 'xy\c'` in
  487. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  488. xy) ECHO_C='\c';;
  489. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  490. ECHO_T=' ';;
  491. esac;;
  492. *)
  493. ECHO_N='-n';;
  494. esac
  495. # For backward compatibility with old third-party macros, we provide
  496. # the shell variables $as_echo and $as_echo_n. New code should use
  497. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  498. as_echo='printf %s\n'
  499. as_echo_n='printf %s'
  500. rm -f conf$$ conf$$.exe conf$$.file
  501. if test -d conf$$.dir; then
  502. rm -f conf$$.dir/conf$$.file
  503. else
  504. rm -f conf$$.dir
  505. mkdir conf$$.dir 2>/dev/null
  506. fi
  507. if (echo >conf$$.file) 2>/dev/null; then
  508. if ln -s conf$$.file conf$$ 2>/dev/null; then
  509. as_ln_s='ln -s'
  510. # ... but there are two gotchas:
  511. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  512. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  513. # In both cases, we have to default to `cp -pR'.
  514. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  515. as_ln_s='cp -pR'
  516. elif ln conf$$.file conf$$ 2>/dev/null; then
  517. as_ln_s=ln
  518. else
  519. as_ln_s='cp -pR'
  520. fi
  521. else
  522. as_ln_s='cp -pR'
  523. fi
  524. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  525. rmdir conf$$.dir 2>/dev/null
  526. if mkdir -p . 2>/dev/null; then
  527. as_mkdir_p='mkdir -p "$as_dir"'
  528. else
  529. test -d ./-p && rmdir ./-p
  530. as_mkdir_p=false
  531. fi
  532. as_test_x='test -x'
  533. as_executable_p=as_fn_executable_p
  534. # Sed expression to map a string onto a valid CPP name.
  535. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  536. # Sed expression to map a string onto a valid variable name.
  537. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  538. test -n "$DJDIR" || exec 7<&0 </dev/null
  539. exec 6>&1
  540. # Name of the host.
  541. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  542. # so uname gets run too.
  543. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  544. #
  545. # Initializations.
  546. #
  547. ac_default_prefix=/usr/local
  548. ac_clean_files=
  549. ac_config_libobj_dir=.
  550. LIBOBJS=
  551. cross_compiling=no
  552. subdirs=
  553. MFLAGS=
  554. MAKEFLAGS=
  555. # Identity of this package.
  556. PACKAGE_NAME=''
  557. PACKAGE_TARNAME=''
  558. PACKAGE_VERSION=''
  559. PACKAGE_STRING=''
  560. PACKAGE_BUGREPORT=''
  561. PACKAGE_URL=''
  562. ac_unique_file="wraith"
  563. ac_unique_file="src/eggdrop.h"
  564. # Factoring default headers for most tests.
  565. ac_includes_default="\
  566. #include <stddef.h>
  567. #ifdef HAVE_STDIO_H
  568. # include <stdio.h>
  569. #endif
  570. #ifdef HAVE_STDLIB_H
  571. # include <stdlib.h>
  572. #endif
  573. #ifdef HAVE_STRING_H
  574. # include <string.h>
  575. #endif
  576. #ifdef HAVE_INTTYPES_H
  577. # include <inttypes.h>
  578. #endif
  579. #ifdef HAVE_STDINT_H
  580. # include <stdint.h>
  581. #endif
  582. #ifdef HAVE_STRINGS_H
  583. # include <strings.h>
  584. #endif
  585. #ifdef HAVE_SYS_TYPES_H
  586. # include <sys/types.h>
  587. #endif
  588. #ifdef HAVE_SYS_STAT_H
  589. # include <sys/stat.h>
  590. #endif
  591. #ifdef HAVE_UNISTD_H
  592. # include <unistd.h>
  593. #endif"
  594. ac_header_cxx_list=
  595. ac_func_cxx_list=
  596. ac_subst_vars='LTLIBOBJS
  597. NUMVER
  598. VERSION
  599. LIBOBJS
  600. host_os
  601. host_vendor
  602. host_cpu
  603. host
  604. build_os
  605. build_vendor
  606. build_cpu
  607. build
  608. EGREP
  609. GREP
  610. CXXCPP
  611. TCL_LIBS
  612. TCL_REQS
  613. DEFAULT_MAKE
  614. TCLINCFN
  615. TCL_INCLUDES
  616. TCLLIBFN
  617. TCLLIB
  618. SSL_LIBS
  619. SSL_INCLUDES
  620. SSL_LIBDIR
  621. LIBELF_LIB
  622. LIBELF_BUNDLED
  623. DEBLDFLAGS
  624. DEBCXXFLAGS
  625. STATIC
  626. BUILDARCH
  627. BUILDOS
  628. UNAME
  629. DIFF
  630. STRIP
  631. OBJCOPY
  632. BASENAME
  633. AWK
  634. HEAD_1
  635. SED
  636. SET_MAKE
  637. GCC4DEB
  638. GCC3DEB
  639. GCC3_CXXFLAGS
  640. GCC3_CFLAGS
  641. CCDEPMODE
  642. HAVE_CXX11
  643. CC
  644. OBJEXT
  645. EXEEXT
  646. ac_ct_CXX
  647. CPPFLAGS
  648. LDFLAGS
  649. CXXFLAGS
  650. CXX
  651. egg_ac_parameters
  652. target_alias
  653. host_alias
  654. build_alias
  655. LIBS
  656. ECHO_T
  657. ECHO_N
  658. ECHO_C
  659. DEFS
  660. mandir
  661. localedir
  662. libdir
  663. psdir
  664. pdfdir
  665. dvidir
  666. htmldir
  667. infodir
  668. docdir
  669. oldincludedir
  670. includedir
  671. runstatedir
  672. localstatedir
  673. sharedstatedir
  674. sysconfdir
  675. datadir
  676. datarootdir
  677. libexecdir
  678. sbindir
  679. bindir
  680. program_transform_name
  681. prefix
  682. exec_prefix
  683. PACKAGE_URL
  684. PACKAGE_BUGREPORT
  685. PACKAGE_STRING
  686. PACKAGE_VERSION
  687. PACKAGE_TARNAME
  688. PACKAGE_NAME
  689. PATH_SEPARATOR
  690. SHELL'
  691. ac_subst_files=''
  692. ac_user_opts='
  693. enable_option_checking
  694. enable_ipv6
  695. with_openssl
  696. with_tcllib
  697. with_tclinc
  698. enable_script_tcl
  699. '
  700. ac_precious_vars='build_alias
  701. host_alias
  702. target_alias
  703. CXX
  704. CXXFLAGS
  705. LDFLAGS
  706. LIBS
  707. CPPFLAGS
  708. CCC
  709. CXXCPP'
  710. # Initialize some variables set by options.
  711. ac_init_help=
  712. ac_init_version=false
  713. ac_unrecognized_opts=
  714. ac_unrecognized_sep=
  715. # The variables have the same names as the options, with
  716. # dashes changed to underlines.
  717. cache_file=/dev/null
  718. exec_prefix=NONE
  719. no_create=
  720. no_recursion=
  721. prefix=NONE
  722. program_prefix=NONE
  723. program_suffix=NONE
  724. program_transform_name=s,x,x,
  725. silent=
  726. site=
  727. srcdir=
  728. verbose=
  729. x_includes=NONE
  730. x_libraries=NONE
  731. # Installation directory options.
  732. # These are left unexpanded so users can "make install exec_prefix=/foo"
  733. # and all the variables that are supposed to be based on exec_prefix
  734. # by default will actually change.
  735. # Use braces instead of parens because sh, perl, etc. also accept them.
  736. # (The list follows the same order as the GNU Coding Standards.)
  737. bindir='${exec_prefix}/bin'
  738. sbindir='${exec_prefix}/sbin'
  739. libexecdir='${exec_prefix}/libexec'
  740. datarootdir='${prefix}/share'
  741. datadir='${datarootdir}'
  742. sysconfdir='${prefix}/etc'
  743. sharedstatedir='${prefix}/com'
  744. localstatedir='${prefix}/var'
  745. runstatedir='${localstatedir}/run'
  746. includedir='${prefix}/include'
  747. oldincludedir='/usr/include'
  748. docdir='${datarootdir}/doc/${PACKAGE}'
  749. infodir='${datarootdir}/info'
  750. htmldir='${docdir}'
  751. dvidir='${docdir}'
  752. pdfdir='${docdir}'
  753. psdir='${docdir}'
  754. libdir='${exec_prefix}/lib'
  755. localedir='${datarootdir}/locale'
  756. mandir='${datarootdir}/man'
  757. ac_prev=
  758. ac_dashdash=
  759. for ac_option
  760. do
  761. # If the previous option needs an argument, assign it.
  762. if test -n "$ac_prev"; then
  763. eval $ac_prev=\$ac_option
  764. ac_prev=
  765. continue
  766. fi
  767. case $ac_option in
  768. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  769. *=) ac_optarg= ;;
  770. *) ac_optarg=yes ;;
  771. esac
  772. case $ac_dashdash$ac_option in
  773. --)
  774. ac_dashdash=yes ;;
  775. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  776. ac_prev=bindir ;;
  777. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  778. bindir=$ac_optarg ;;
  779. -build | --build | --buil | --bui | --bu)
  780. ac_prev=build_alias ;;
  781. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  782. build_alias=$ac_optarg ;;
  783. -cache-file | --cache-file | --cache-fil | --cache-fi \
  784. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  785. ac_prev=cache_file ;;
  786. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  787. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  788. cache_file=$ac_optarg ;;
  789. --config-cache | -C)
  790. cache_file=config.cache ;;
  791. -datadir | --datadir | --datadi | --datad)
  792. ac_prev=datadir ;;
  793. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  794. datadir=$ac_optarg ;;
  795. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  796. | --dataroo | --dataro | --datar)
  797. ac_prev=datarootdir ;;
  798. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  799. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  800. datarootdir=$ac_optarg ;;
  801. -disable-* | --disable-*)
  802. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  803. # Reject names that are not valid shell variable names.
  804. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  805. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  806. ac_useropt_orig=$ac_useropt
  807. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  808. case $ac_user_opts in
  809. *"
  810. "enable_$ac_useropt"
  811. "*) ;;
  812. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  813. ac_unrecognized_sep=', ';;
  814. esac
  815. eval enable_$ac_useropt=no ;;
  816. -docdir | --docdir | --docdi | --doc | --do)
  817. ac_prev=docdir ;;
  818. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  819. docdir=$ac_optarg ;;
  820. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  821. ac_prev=dvidir ;;
  822. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  823. dvidir=$ac_optarg ;;
  824. -enable-* | --enable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=\$ac_optarg ;;
  839. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  840. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  841. | --exec | --exe | --ex)
  842. ac_prev=exec_prefix ;;
  843. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  844. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  845. | --exec=* | --exe=* | --ex=*)
  846. exec_prefix=$ac_optarg ;;
  847. -gas | --gas | --ga | --g)
  848. # Obsolete; use --with-gas.
  849. with_gas=yes ;;
  850. -help | --help | --hel | --he | -h)
  851. ac_init_help=long ;;
  852. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  853. ac_init_help=recursive ;;
  854. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  855. ac_init_help=short ;;
  856. -host | --host | --hos | --ho)
  857. ac_prev=host_alias ;;
  858. -host=* | --host=* | --hos=* | --ho=*)
  859. host_alias=$ac_optarg ;;
  860. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  861. ac_prev=htmldir ;;
  862. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  863. | --ht=*)
  864. htmldir=$ac_optarg ;;
  865. -includedir | --includedir | --includedi | --included | --include \
  866. | --includ | --inclu | --incl | --inc)
  867. ac_prev=includedir ;;
  868. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  869. | --includ=* | --inclu=* | --incl=* | --inc=*)
  870. includedir=$ac_optarg ;;
  871. -infodir | --infodir | --infodi | --infod | --info | --inf)
  872. ac_prev=infodir ;;
  873. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  874. infodir=$ac_optarg ;;
  875. -libdir | --libdir | --libdi | --libd)
  876. ac_prev=libdir ;;
  877. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  878. libdir=$ac_optarg ;;
  879. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  880. | --libexe | --libex | --libe)
  881. ac_prev=libexecdir ;;
  882. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  883. | --libexe=* | --libex=* | --libe=*)
  884. libexecdir=$ac_optarg ;;
  885. -localedir | --localedir | --localedi | --localed | --locale)
  886. ac_prev=localedir ;;
  887. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  888. localedir=$ac_optarg ;;
  889. -localstatedir | --localstatedir | --localstatedi | --localstated \
  890. | --localstate | --localstat | --localsta | --localst | --locals)
  891. ac_prev=localstatedir ;;
  892. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  893. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  894. localstatedir=$ac_optarg ;;
  895. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  896. ac_prev=mandir ;;
  897. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  898. mandir=$ac_optarg ;;
  899. -nfp | --nfp | --nf)
  900. # Obsolete; use --without-fp.
  901. with_fp=no ;;
  902. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  903. | --no-cr | --no-c | -n)
  904. no_create=yes ;;
  905. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  906. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  907. no_recursion=yes ;;
  908. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  909. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  910. | --oldin | --oldi | --old | --ol | --o)
  911. ac_prev=oldincludedir ;;
  912. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  913. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  914. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  915. oldincludedir=$ac_optarg ;;
  916. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  917. ac_prev=prefix ;;
  918. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  919. prefix=$ac_optarg ;;
  920. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  921. | --program-pre | --program-pr | --program-p)
  922. ac_prev=program_prefix ;;
  923. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  924. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  925. program_prefix=$ac_optarg ;;
  926. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  927. | --program-suf | --program-su | --program-s)
  928. ac_prev=program_suffix ;;
  929. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  930. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  931. program_suffix=$ac_optarg ;;
  932. -program-transform-name | --program-transform-name \
  933. | --program-transform-nam | --program-transform-na \
  934. | --program-transform-n | --program-transform- \
  935. | --program-transform | --program-transfor \
  936. | --program-transfo | --program-transf \
  937. | --program-trans | --program-tran \
  938. | --progr-tra | --program-tr | --program-t)
  939. ac_prev=program_transform_name ;;
  940. -program-transform-name=* | --program-transform-name=* \
  941. | --program-transform-nam=* | --program-transform-na=* \
  942. | --program-transform-n=* | --program-transform-=* \
  943. | --program-transform=* | --program-transfor=* \
  944. | --program-transfo=* | --program-transf=* \
  945. | --program-trans=* | --program-tran=* \
  946. | --progr-tra=* | --program-tr=* | --program-t=*)
  947. program_transform_name=$ac_optarg ;;
  948. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  949. ac_prev=pdfdir ;;
  950. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  951. pdfdir=$ac_optarg ;;
  952. -psdir | --psdir | --psdi | --psd | --ps)
  953. ac_prev=psdir ;;
  954. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  955. psdir=$ac_optarg ;;
  956. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  957. | -silent | --silent | --silen | --sile | --sil)
  958. silent=yes ;;
  959. -runstatedir | --runstatedir | --runstatedi | --runstated \
  960. | --runstate | --runstat | --runsta | --runst | --runs \
  961. | --run | --ru | --r)
  962. ac_prev=runstatedir ;;
  963. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  964. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  965. | --run=* | --ru=* | --r=*)
  966. runstatedir=$ac_optarg ;;
  967. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  968. ac_prev=sbindir ;;
  969. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  970. | --sbi=* | --sb=*)
  971. sbindir=$ac_optarg ;;
  972. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  973. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  974. | --sharedst | --shareds | --shared | --share | --shar \
  975. | --sha | --sh)
  976. ac_prev=sharedstatedir ;;
  977. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  978. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  979. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  980. | --sha=* | --sh=*)
  981. sharedstatedir=$ac_optarg ;;
  982. -site | --site | --sit)
  983. ac_prev=site ;;
  984. -site=* | --site=* | --sit=*)
  985. site=$ac_optarg ;;
  986. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  987. ac_prev=srcdir ;;
  988. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  989. srcdir=$ac_optarg ;;
  990. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  991. | --syscon | --sysco | --sysc | --sys | --sy)
  992. ac_prev=sysconfdir ;;
  993. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  994. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  995. sysconfdir=$ac_optarg ;;
  996. -target | --target | --targe | --targ | --tar | --ta | --t)
  997. ac_prev=target_alias ;;
  998. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  999. target_alias=$ac_optarg ;;
  1000. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1001. verbose=yes ;;
  1002. -version | --version | --versio | --versi | --vers | -V)
  1003. ac_init_version=: ;;
  1004. -with-* | --with-*)
  1005. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1006. # Reject names that are not valid shell variable names.
  1007. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1008. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1009. ac_useropt_orig=$ac_useropt
  1010. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1011. case $ac_user_opts in
  1012. *"
  1013. "with_$ac_useropt"
  1014. "*) ;;
  1015. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1016. ac_unrecognized_sep=', ';;
  1017. esac
  1018. eval with_$ac_useropt=\$ac_optarg ;;
  1019. -without-* | --without-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=no ;;
  1034. --x)
  1035. # Obsolete; use --with-x.
  1036. with_x=yes ;;
  1037. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1038. | --x-incl | --x-inc | --x-in | --x-i)
  1039. ac_prev=x_includes ;;
  1040. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1041. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1042. x_includes=$ac_optarg ;;
  1043. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1044. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1045. ac_prev=x_libraries ;;
  1046. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1047. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1048. x_libraries=$ac_optarg ;;
  1049. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1050. Try \`$0 --help' for more information"
  1051. ;;
  1052. *=*)
  1053. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1054. # Reject names that are not valid shell variable names.
  1055. case $ac_envvar in #(
  1056. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1057. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1058. esac
  1059. eval $ac_envvar=\$ac_optarg
  1060. export $ac_envvar ;;
  1061. *)
  1062. # FIXME: should be removed in autoconf 3.0.
  1063. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1064. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1065. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1066. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1067. ;;
  1068. esac
  1069. done
  1070. if test -n "$ac_prev"; then
  1071. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1072. as_fn_error $? "missing argument to $ac_option"
  1073. fi
  1074. if test -n "$ac_unrecognized_opts"; then
  1075. case $enable_option_checking in
  1076. no) ;;
  1077. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1078. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1079. esac
  1080. fi
  1081. # Check all directory arguments for consistency.
  1082. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1083. datadir sysconfdir sharedstatedir localstatedir includedir \
  1084. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1085. libdir localedir mandir runstatedir
  1086. do
  1087. eval ac_val=\$$ac_var
  1088. # Remove trailing slashes.
  1089. case $ac_val in
  1090. */ )
  1091. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1092. eval $ac_var=\$ac_val;;
  1093. esac
  1094. # Be sure to have absolute directory names.
  1095. case $ac_val in
  1096. [\\/$]* | ?:[\\/]* ) continue;;
  1097. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1098. esac
  1099. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1100. done
  1101. # There might be people who depend on the old broken behavior: `$host'
  1102. # used to hold the argument of --host etc.
  1103. # FIXME: To remove some day.
  1104. build=$build_alias
  1105. host=$host_alias
  1106. target=$target_alias
  1107. # FIXME: To remove some day.
  1108. if test "x$host_alias" != x; then
  1109. if test "x$build_alias" = x; then
  1110. cross_compiling=maybe
  1111. elif test "x$build_alias" != "x$host_alias"; then
  1112. cross_compiling=yes
  1113. fi
  1114. fi
  1115. ac_tool_prefix=
  1116. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1117. test "$silent" = yes && exec 6>/dev/null
  1118. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1119. ac_ls_di=`ls -di .` &&
  1120. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1121. as_fn_error $? "working directory cannot be determined"
  1122. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1123. as_fn_error $? "pwd does not report name of working directory"
  1124. # Find the source files, if location was not specified.
  1125. if test -z "$srcdir"; then
  1126. ac_srcdir_defaulted=yes
  1127. # Try the directory containing this script, then the parent directory.
  1128. ac_confdir=`$as_dirname -- "$as_myself" ||
  1129. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1130. X"$as_myself" : 'X\(//\)[^/]' \| \
  1131. X"$as_myself" : 'X\(//\)$' \| \
  1132. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1133. printf "%s\n" X"$as_myself" |
  1134. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1135. s//\1/
  1136. q
  1137. }
  1138. /^X\(\/\/\)[^/].*/{
  1139. s//\1/
  1140. q
  1141. }
  1142. /^X\(\/\/\)$/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\).*/{
  1147. s//\1/
  1148. q
  1149. }
  1150. s/.*/./; q'`
  1151. srcdir=$ac_confdir
  1152. if test ! -r "$srcdir/$ac_unique_file"; then
  1153. srcdir=..
  1154. fi
  1155. else
  1156. ac_srcdir_defaulted=no
  1157. fi
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1160. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1161. fi
  1162. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1163. ac_abs_confdir=`(
  1164. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1165. pwd)`
  1166. # When building in place, set srcdir=.
  1167. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1168. srcdir=.
  1169. fi
  1170. # Remove unnecessary trailing slashes from srcdir.
  1171. # Double slashes in file names in object file debugging info
  1172. # mess up M-x gdb in Emacs.
  1173. case $srcdir in
  1174. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1175. esac
  1176. for ac_var in $ac_precious_vars; do
  1177. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_env_${ac_var}_value=\$${ac_var}
  1179. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1181. done
  1182. #
  1183. # Report the --help message.
  1184. #
  1185. if test "$ac_init_help" = "long"; then
  1186. # Omit some internal or obsolete options to make the list less imposing.
  1187. # This message is too long to be a string in the A/UX 3.1 sh.
  1188. cat <<_ACEOF
  1189. \`configure' configures this package to adapt to many kinds of systems.
  1190. Usage: $0 [OPTION]... [VAR=VALUE]...
  1191. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1192. VAR=VALUE. See below for descriptions of some of the useful variables.
  1193. Defaults for the options are specified in brackets.
  1194. Configuration:
  1195. -h, --help display this help and exit
  1196. --help=short display options specific to this package
  1197. --help=recursive display the short help of all the included packages
  1198. -V, --version display version information and exit
  1199. -q, --quiet, --silent do not print \`checking ...' messages
  1200. --cache-file=FILE cache test results in FILE [disabled]
  1201. -C, --config-cache alias for \`--cache-file=config.cache'
  1202. -n, --no-create do not create output files
  1203. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1204. Installation directories:
  1205. --prefix=PREFIX install architecture-independent files in PREFIX
  1206. [$ac_default_prefix]
  1207. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1208. [PREFIX]
  1209. By default, \`make install' will install all the files in
  1210. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1211. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1212. for instance \`--prefix=\$HOME'.
  1213. For better control, use the options below.
  1214. Fine tuning of the installation directories:
  1215. --bindir=DIR user executables [EPREFIX/bin]
  1216. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1217. --libexecdir=DIR program executables [EPREFIX/libexec]
  1218. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1219. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1220. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1221. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1222. --libdir=DIR object code libraries [EPREFIX/lib]
  1223. --includedir=DIR C header files [PREFIX/include]
  1224. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1225. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1226. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1227. --infodir=DIR info documentation [DATAROOTDIR/info]
  1228. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1229. --mandir=DIR man documentation [DATAROOTDIR/man]
  1230. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1231. --htmldir=DIR html documentation [DOCDIR]
  1232. --dvidir=DIR dvi documentation [DOCDIR]
  1233. --pdfdir=DIR pdf documentation [DOCDIR]
  1234. --psdir=DIR ps documentation [DOCDIR]
  1235. _ACEOF
  1236. cat <<\_ACEOF
  1237. System types:
  1238. --build=BUILD configure for building on BUILD [guessed]
  1239. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1240. _ACEOF
  1241. fi
  1242. if test -n "$ac_init_help"; then
  1243. cat <<\_ACEOF
  1244. Optional Features:
  1245. --disable-option-checking ignore unrecognized --enable/--with options
  1246. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1247. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1248. --disable-ipv6 disable IPv6 support
  1249. --disable-script-tcl disable TCL Script support
  1250. Optional Packages:
  1251. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1252. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1253. --with-openssl=PATH Path to OpenSSL
  1254. --with-openssl=PATH Path to OpenSSL Lib
  1255. --with-tcllib=PATH full path to Tcl library
  1256. --with-tclinc=PATH full path to Tcl header
  1257. Some influential environment variables:
  1258. CXX C++ compiler command
  1259. CXXFLAGS C++ compiler flags
  1260. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1261. nonstandard directory <lib dir>
  1262. LIBS libraries to pass to the linker, e.g. -l<library>
  1263. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1264. you have headers in a nonstandard directory <include dir>
  1265. CXXCPP C++ preprocessor
  1266. Use these variables to override the choices made by `configure' or to help
  1267. it to find libraries and programs with nonstandard names/locations.
  1268. Report bugs to the package provider.
  1269. _ACEOF
  1270. ac_status=$?
  1271. fi
  1272. if test "$ac_init_help" = "recursive"; then
  1273. # If there are subdirs, report their specific --help.
  1274. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1275. test -d "$ac_dir" ||
  1276. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1277. continue
  1278. ac_builddir=.
  1279. case "$ac_dir" in
  1280. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1281. *)
  1282. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1283. # A ".." for each directory in $ac_dir_suffix.
  1284. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1285. case $ac_top_builddir_sub in
  1286. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1287. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1288. esac ;;
  1289. esac
  1290. ac_abs_top_builddir=$ac_pwd
  1291. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1292. # for backward compatibility:
  1293. ac_top_builddir=$ac_top_build_prefix
  1294. case $srcdir in
  1295. .) # We are building in place.
  1296. ac_srcdir=.
  1297. ac_top_srcdir=$ac_top_builddir_sub
  1298. ac_abs_top_srcdir=$ac_pwd ;;
  1299. [\\/]* | ?:[\\/]* ) # Absolute name.
  1300. ac_srcdir=$srcdir$ac_dir_suffix;
  1301. ac_top_srcdir=$srcdir
  1302. ac_abs_top_srcdir=$srcdir ;;
  1303. *) # Relative name.
  1304. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1305. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1306. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1307. esac
  1308. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1309. cd "$ac_dir" || { ac_status=$?; continue; }
  1310. # Check for configure.gnu first; this name is used for a wrapper for
  1311. # Metaconfig's "Configure" on case-insensitive file systems.
  1312. if test -f "$ac_srcdir/configure.gnu"; then
  1313. echo &&
  1314. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1315. elif test -f "$ac_srcdir/configure"; then
  1316. echo &&
  1317. $SHELL "$ac_srcdir/configure" --help=recursive
  1318. else
  1319. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1320. fi || ac_status=$?
  1321. cd "$ac_pwd" || { ac_status=$?; break; }
  1322. done
  1323. fi
  1324. test -n "$ac_init_help" && exit $ac_status
  1325. if $ac_init_version; then
  1326. cat <<\_ACEOF
  1327. configure
  1328. generated by GNU Autoconf 2.71
  1329. Copyright (C) 2021 Free Software Foundation, Inc.
  1330. This configure script is free software; the Free Software Foundation
  1331. gives unlimited permission to copy, distribute and modify it.
  1332. Copyright (c) Bryan Drewery
  1333. _ACEOF
  1334. exit
  1335. fi
  1336. ## ------------------------ ##
  1337. ## Autoconf initialization. ##
  1338. ## ------------------------ ##
  1339. # ac_fn_cxx_try_compile LINENO
  1340. # ----------------------------
  1341. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1342. ac_fn_cxx_try_compile ()
  1343. {
  1344. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1345. rm -f conftest.$ac_objext conftest.beam
  1346. if { { ac_try="$ac_compile"
  1347. case "(($ac_try" in
  1348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1349. *) ac_try_echo=$ac_try;;
  1350. esac
  1351. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1352. printf "%s\n" "$ac_try_echo"; } >&5
  1353. (eval "$ac_compile") 2>conftest.err
  1354. ac_status=$?
  1355. if test -s conftest.err; then
  1356. grep -v '^ *+' conftest.err >conftest.er1
  1357. cat conftest.er1 >&5
  1358. mv -f conftest.er1 conftest.err
  1359. fi
  1360. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1361. test $ac_status = 0; } && {
  1362. test -z "$ac_cxx_werror_flag" ||
  1363. test ! -s conftest.err
  1364. } && test -s conftest.$ac_objext
  1365. then :
  1366. ac_retval=0
  1367. else $as_nop
  1368. printf "%s\n" "$as_me: failed program was:" >&5
  1369. sed 's/^/| /' conftest.$ac_ext >&5
  1370. ac_retval=1
  1371. fi
  1372. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1373. as_fn_set_status $ac_retval
  1374. } # ac_fn_cxx_try_compile
  1375. # ac_fn_cxx_try_link LINENO
  1376. # -------------------------
  1377. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1378. ac_fn_cxx_try_link ()
  1379. {
  1380. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1381. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1382. if { { ac_try="$ac_link"
  1383. case "(($ac_try" in
  1384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1385. *) ac_try_echo=$ac_try;;
  1386. esac
  1387. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1388. printf "%s\n" "$ac_try_echo"; } >&5
  1389. (eval "$ac_link") 2>conftest.err
  1390. ac_status=$?
  1391. if test -s conftest.err; then
  1392. grep -v '^ *+' conftest.err >conftest.er1
  1393. cat conftest.er1 >&5
  1394. mv -f conftest.er1 conftest.err
  1395. fi
  1396. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1397. test $ac_status = 0; } && {
  1398. test -z "$ac_cxx_werror_flag" ||
  1399. test ! -s conftest.err
  1400. } && test -s conftest$ac_exeext && {
  1401. test "$cross_compiling" = yes ||
  1402. test -x conftest$ac_exeext
  1403. }
  1404. then :
  1405. ac_retval=0
  1406. else $as_nop
  1407. printf "%s\n" "$as_me: failed program was:" >&5
  1408. sed 's/^/| /' conftest.$ac_ext >&5
  1409. ac_retval=1
  1410. fi
  1411. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1412. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1413. # interfere with the next link command; also delete a directory that is
  1414. # left behind by Apple's compiler. We do this before executing the actions.
  1415. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1416. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1417. as_fn_set_status $ac_retval
  1418. } # ac_fn_cxx_try_link
  1419. # ac_fn_cxx_try_run LINENO
  1420. # ------------------------
  1421. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1422. # executables *can* be run.
  1423. ac_fn_cxx_try_run ()
  1424. {
  1425. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1426. if { { ac_try="$ac_link"
  1427. case "(($ac_try" in
  1428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1429. *) ac_try_echo=$ac_try;;
  1430. esac
  1431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1432. printf "%s\n" "$ac_try_echo"; } >&5
  1433. (eval "$ac_link") 2>&5
  1434. ac_status=$?
  1435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1436. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1437. { { case "(($ac_try" in
  1438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1439. *) ac_try_echo=$ac_try;;
  1440. esac
  1441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1442. printf "%s\n" "$ac_try_echo"; } >&5
  1443. (eval "$ac_try") 2>&5
  1444. ac_status=$?
  1445. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1446. test $ac_status = 0; }; }
  1447. then :
  1448. ac_retval=0
  1449. else $as_nop
  1450. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1451. printf "%s\n" "$as_me: failed program was:" >&5
  1452. sed 's/^/| /' conftest.$ac_ext >&5
  1453. ac_retval=$ac_status
  1454. fi
  1455. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1456. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1457. as_fn_set_status $ac_retval
  1458. } # ac_fn_cxx_try_run
  1459. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1460. # ---------------------------------------------------------
  1461. # Tests whether HEADER exists and can be compiled using the include files in
  1462. # INCLUDES, setting the cache variable VAR accordingly.
  1463. ac_fn_cxx_check_header_compile ()
  1464. {
  1465. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1467. printf %s "checking for $2... " >&6; }
  1468. if eval test \${$3+y}
  1469. then :
  1470. printf %s "(cached) " >&6
  1471. else $as_nop
  1472. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1473. /* end build/confdefs.h. */
  1474. $4
  1475. #include <$2>
  1476. _ACEOF
  1477. if ac_fn_cxx_try_compile "$LINENO"
  1478. then :
  1479. eval "$3=yes"
  1480. else $as_nop
  1481. eval "$3=no"
  1482. fi
  1483. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1484. fi
  1485. eval ac_res=\$$3
  1486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1487. printf "%s\n" "$ac_res" >&6; }
  1488. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1489. } # ac_fn_cxx_check_header_compile
  1490. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1491. # ---------------------------------------------
  1492. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1493. # variable VAR accordingly.
  1494. ac_fn_cxx_check_type ()
  1495. {
  1496. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1498. printf %s "checking for $2... " >&6; }
  1499. if eval test \${$3+y}
  1500. then :
  1501. printf %s "(cached) " >&6
  1502. else $as_nop
  1503. eval "$3=no"
  1504. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1505. /* end build/confdefs.h. */
  1506. $4
  1507. int
  1508. main (void)
  1509. {
  1510. if (sizeof ($2))
  1511. return 0;
  1512. ;
  1513. return 0;
  1514. }
  1515. _ACEOF
  1516. if ac_fn_cxx_try_compile "$LINENO"
  1517. then :
  1518. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end build/confdefs.h. */
  1520. $4
  1521. int
  1522. main (void)
  1523. {
  1524. if (sizeof (($2)))
  1525. return 0;
  1526. ;
  1527. return 0;
  1528. }
  1529. _ACEOF
  1530. if ac_fn_cxx_try_compile "$LINENO"
  1531. then :
  1532. else $as_nop
  1533. eval "$3=yes"
  1534. fi
  1535. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1536. fi
  1537. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1538. fi
  1539. eval ac_res=\$$3
  1540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1541. printf "%s\n" "$ac_res" >&6; }
  1542. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1543. } # ac_fn_cxx_check_type
  1544. # ac_fn_cxx_try_cpp LINENO
  1545. # ------------------------
  1546. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1547. ac_fn_cxx_try_cpp ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1551. case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. printf "%s\n" "$ac_try_echo"; } >&5
  1557. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1558. ac_status=$?
  1559. if test -s conftest.err; then
  1560. grep -v '^ *+' conftest.err >conftest.er1
  1561. cat conftest.er1 >&5
  1562. mv -f conftest.er1 conftest.err
  1563. fi
  1564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; } > conftest.i && {
  1566. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1567. test ! -s conftest.err
  1568. }
  1569. then :
  1570. ac_retval=0
  1571. else $as_nop
  1572. printf "%s\n" "$as_me: failed program was:" >&5
  1573. sed 's/^/| /' conftest.$ac_ext >&5
  1574. ac_retval=1
  1575. fi
  1576. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1577. as_fn_set_status $ac_retval
  1578. } # ac_fn_cxx_try_cpp
  1579. # ac_fn_c_find_intX_t LINENO BITS VAR
  1580. # -----------------------------------
  1581. # Finds a signed integer type with width BITS, setting cache variable VAR
  1582. # accordingly.
  1583. ac_fn_c_find_intX_t ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1587. printf %s "checking for int$2_t... " >&6; }
  1588. if eval test \${$3+y}
  1589. then :
  1590. printf %s "(cached) " >&6
  1591. else $as_nop
  1592. eval "$3=no"
  1593. # Order is important - never check a type that is potentially smaller
  1594. # than half of the expected target width.
  1595. for ac_type in int$2_t 'int' 'long int' \
  1596. 'long long int' 'short int' 'signed char'; do
  1597. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1598. /* end build/confdefs.h. */
  1599. $ac_includes_default
  1600. enum { N = $2 / 2 - 1 };
  1601. int
  1602. main (void)
  1603. {
  1604. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1605. test_array [0] = 0;
  1606. return test_array [0];
  1607. ;
  1608. return 0;
  1609. }
  1610. _ACEOF
  1611. if ac_fn_cxx_try_compile "$LINENO"
  1612. then :
  1613. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1614. /* end build/confdefs.h. */
  1615. $ac_includes_default
  1616. enum { N = $2 / 2 - 1 };
  1617. int
  1618. main (void)
  1619. {
  1620. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1621. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1622. test_array [0] = 0;
  1623. return test_array [0];
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. if ac_fn_cxx_try_compile "$LINENO"
  1629. then :
  1630. else $as_nop
  1631. case $ac_type in #(
  1632. int$2_t) :
  1633. eval "$3=yes" ;; #(
  1634. *) :
  1635. eval "$3=\$ac_type" ;;
  1636. esac
  1637. fi
  1638. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1639. fi
  1640. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1641. if eval test \"x\$"$3"\" = x"no"
  1642. then :
  1643. else $as_nop
  1644. break
  1645. fi
  1646. done
  1647. fi
  1648. eval ac_res=\$$3
  1649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1650. printf "%s\n" "$ac_res" >&6; }
  1651. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1652. } # ac_fn_c_find_intX_t
  1653. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1654. # ------------------------------------
  1655. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1656. # accordingly.
  1657. ac_fn_c_find_uintX_t ()
  1658. {
  1659. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1661. printf %s "checking for uint$2_t... " >&6; }
  1662. if eval test \${$3+y}
  1663. then :
  1664. printf %s "(cached) " >&6
  1665. else $as_nop
  1666. eval "$3=no"
  1667. # Order is important - never check a type that is potentially smaller
  1668. # than half of the expected target width.
  1669. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1670. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1671. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1672. /* end build/confdefs.h. */
  1673. $ac_includes_default
  1674. int
  1675. main (void)
  1676. {
  1677. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1678. test_array [0] = 0;
  1679. return test_array [0];
  1680. ;
  1681. return 0;
  1682. }
  1683. _ACEOF
  1684. if ac_fn_cxx_try_compile "$LINENO"
  1685. then :
  1686. case $ac_type in #(
  1687. uint$2_t) :
  1688. eval "$3=yes" ;; #(
  1689. *) :
  1690. eval "$3=\$ac_type" ;;
  1691. esac
  1692. fi
  1693. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1694. if eval test \"x\$"$3"\" = x"no"
  1695. then :
  1696. else $as_nop
  1697. break
  1698. fi
  1699. done
  1700. fi
  1701. eval ac_res=\$$3
  1702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1703. printf "%s\n" "$ac_res" >&6; }
  1704. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1705. } # ac_fn_c_find_uintX_t
  1706. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1707. # ------------------------------------------------------
  1708. # Tries to find if the field MEMBER exists in type AGGR, after including
  1709. # INCLUDES, setting cache variable VAR accordingly.
  1710. ac_fn_cxx_check_member ()
  1711. {
  1712. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1714. printf %s "checking for $2.$3... " >&6; }
  1715. if eval test \${$4+y}
  1716. then :
  1717. printf %s "(cached) " >&6
  1718. else $as_nop
  1719. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1720. /* end build/confdefs.h. */
  1721. $5
  1722. int
  1723. main (void)
  1724. {
  1725. static $2 ac_aggr;
  1726. if (ac_aggr.$3)
  1727. return 0;
  1728. ;
  1729. return 0;
  1730. }
  1731. _ACEOF
  1732. if ac_fn_cxx_try_compile "$LINENO"
  1733. then :
  1734. eval "$4=yes"
  1735. else $as_nop
  1736. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1737. /* end build/confdefs.h. */
  1738. $5
  1739. int
  1740. main (void)
  1741. {
  1742. static $2 ac_aggr;
  1743. if (sizeof ac_aggr.$3)
  1744. return 0;
  1745. ;
  1746. return 0;
  1747. }
  1748. _ACEOF
  1749. if ac_fn_cxx_try_compile "$LINENO"
  1750. then :
  1751. eval "$4=yes"
  1752. else $as_nop
  1753. eval "$4=no"
  1754. fi
  1755. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1756. fi
  1757. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1758. fi
  1759. eval ac_res=\$$4
  1760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1761. printf "%s\n" "$ac_res" >&6; }
  1762. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1763. } # ac_fn_cxx_check_member
  1764. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  1765. # ------------------------------------------------------------------
  1766. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1767. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  1768. ac_fn_check_decl ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1773. printf %s "checking whether $as_decl_name is declared... " >&6; }
  1774. if eval test \${$3+y}
  1775. then :
  1776. printf %s "(cached) " >&6
  1777. else $as_nop
  1778. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1779. eval ac_save_FLAGS=\$$6
  1780. as_fn_append $6 " $5"
  1781. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end build/confdefs.h. */
  1783. $4
  1784. int
  1785. main (void)
  1786. {
  1787. #ifndef $as_decl_name
  1788. #ifdef __cplusplus
  1789. (void) $as_decl_use;
  1790. #else
  1791. (void) $as_decl_name;
  1792. #endif
  1793. #endif
  1794. ;
  1795. return 0;
  1796. }
  1797. _ACEOF
  1798. if ac_fn_cxx_try_compile "$LINENO"
  1799. then :
  1800. eval "$3=yes"
  1801. else $as_nop
  1802. eval "$3=no"
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1805. eval $6=\$ac_save_FLAGS
  1806. fi
  1807. eval ac_res=\$$3
  1808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1809. printf "%s\n" "$ac_res" >&6; }
  1810. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1811. } # ac_fn_check_decl
  1812. # ac_fn_cxx_check_func LINENO FUNC VAR
  1813. # ------------------------------------
  1814. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1815. ac_fn_cxx_check_func ()
  1816. {
  1817. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1819. printf %s "checking for $2... " >&6; }
  1820. if eval test \${$3+y}
  1821. then :
  1822. printf %s "(cached) " >&6
  1823. else $as_nop
  1824. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1825. /* end build/confdefs.h. */
  1826. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1827. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1828. #define $2 innocuous_$2
  1829. /* System header to define __stub macros and hopefully few prototypes,
  1830. which can conflict with char $2 (); below. */
  1831. #include <limits.h>
  1832. #undef $2
  1833. /* Override any GCC internal prototype to avoid an error.
  1834. Use char because int might match the return type of a GCC
  1835. builtin and then its argument prototype would still apply. */
  1836. #ifdef __cplusplus
  1837. extern "C"
  1838. #endif
  1839. char $2 ();
  1840. /* The GNU C library defines this for functions which it implements
  1841. to always fail with ENOSYS. Some functions are actually named
  1842. something starting with __ and the normal name is an alias. */
  1843. #if defined __stub_$2 || defined __stub___$2
  1844. choke me
  1845. #endif
  1846. int
  1847. main (void)
  1848. {
  1849. return $2 ();
  1850. ;
  1851. return 0;
  1852. }
  1853. _ACEOF
  1854. if ac_fn_cxx_try_link "$LINENO"
  1855. then :
  1856. eval "$3=yes"
  1857. else $as_nop
  1858. eval "$3=no"
  1859. fi
  1860. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1861. conftest$ac_exeext conftest.$ac_ext
  1862. fi
  1863. eval ac_res=\$$3
  1864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1865. printf "%s\n" "$ac_res" >&6; }
  1866. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1867. } # ac_fn_cxx_check_func
  1868. ac_configure_args_raw=
  1869. for ac_arg
  1870. do
  1871. case $ac_arg in
  1872. *\'*)
  1873. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1874. esac
  1875. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1876. done
  1877. case $ac_configure_args_raw in
  1878. *$as_nl*)
  1879. ac_safe_unquote= ;;
  1880. *)
  1881. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1882. ac_unsafe_a="$ac_unsafe_z#~"
  1883. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1884. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1885. esac
  1886. cat >build/config.log <<_ACEOF
  1887. This file contains any messages produced by compilers while
  1888. running configure, to aid debugging if configure makes a mistake.
  1889. It was created by $as_me, which was
  1890. generated by GNU Autoconf 2.71. Invocation command line was
  1891. $ $0$ac_configure_args_raw
  1892. _ACEOF
  1893. exec 5>>build/config.log
  1894. {
  1895. cat <<_ASUNAME
  1896. ## --------- ##
  1897. ## Platform. ##
  1898. ## --------- ##
  1899. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1900. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1901. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1902. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1903. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1904. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1905. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1906. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1907. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1908. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1909. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1910. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1911. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1912. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1913. _ASUNAME
  1914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1915. for as_dir in $PATH
  1916. do
  1917. IFS=$as_save_IFS
  1918. case $as_dir in #(((
  1919. '') as_dir=./ ;;
  1920. */) ;;
  1921. *) as_dir=$as_dir/ ;;
  1922. esac
  1923. printf "%s\n" "PATH: $as_dir"
  1924. done
  1925. IFS=$as_save_IFS
  1926. } >&5
  1927. cat >&5 <<_ACEOF
  1928. ## ----------- ##
  1929. ## Core tests. ##
  1930. ## ----------- ##
  1931. _ACEOF
  1932. # Keep a trace of the command line.
  1933. # Strip out --no-create and --no-recursion so they do not pile up.
  1934. # Strip out --silent because we don't want to record it for future runs.
  1935. # Also quote any args containing shell meta-characters.
  1936. # Make two passes to allow for proper duplicate-argument suppression.
  1937. ac_configure_args=
  1938. ac_configure_args0=
  1939. ac_configure_args1=
  1940. ac_must_keep_next=false
  1941. for ac_pass in 1 2
  1942. do
  1943. for ac_arg
  1944. do
  1945. case $ac_arg in
  1946. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1947. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1948. | -silent | --silent | --silen | --sile | --sil)
  1949. continue ;;
  1950. *\'*)
  1951. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1952. esac
  1953. case $ac_pass in
  1954. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1955. 2)
  1956. as_fn_append ac_configure_args1 " '$ac_arg'"
  1957. if test $ac_must_keep_next = true; then
  1958. ac_must_keep_next=false # Got value, back to normal.
  1959. else
  1960. case $ac_arg in
  1961. *=* | --config-cache | -C | -disable-* | --disable-* \
  1962. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1963. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1964. | -with-* | --with-* | -without-* | --without-* | --x)
  1965. case "$ac_configure_args0 " in
  1966. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1967. esac
  1968. ;;
  1969. -* ) ac_must_keep_next=true ;;
  1970. esac
  1971. fi
  1972. as_fn_append ac_configure_args " '$ac_arg'"
  1973. ;;
  1974. esac
  1975. done
  1976. done
  1977. { ac_configure_args0=; unset ac_configure_args0;}
  1978. { ac_configure_args1=; unset ac_configure_args1;}
  1979. # When interrupted or exit'd, cleanup temporary files, and complete
  1980. # build/config.log. We remove comments because anyway the quotes in there
  1981. # would cause problems or look ugly.
  1982. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1983. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1984. trap 'exit_status=$?
  1985. # Sanitize IFS.
  1986. IFS=" "" $as_nl"
  1987. # Save into build/config.log some information that might help in debugging.
  1988. {
  1989. echo
  1990. printf "%s\n" "## ---------------- ##
  1991. ## Cache variables. ##
  1992. ## ---------------- ##"
  1993. echo
  1994. # The following way of writing the cache mishandles newlines in values,
  1995. (
  1996. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1997. eval ac_val=\$$ac_var
  1998. case $ac_val in #(
  1999. *${as_nl}*)
  2000. case $ac_var in #(
  2001. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2002. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2003. esac
  2004. case $ac_var in #(
  2005. _ | IFS | as_nl) ;; #(
  2006. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2007. *) { eval $ac_var=; unset $ac_var;} ;;
  2008. esac ;;
  2009. esac
  2010. done
  2011. (set) 2>&1 |
  2012. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2013. *${as_nl}ac_space=\ *)
  2014. sed -n \
  2015. "s/'\''/'\''\\\\'\'''\''/g;
  2016. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2017. ;; #(
  2018. *)
  2019. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2020. ;;
  2021. esac |
  2022. sort
  2023. )
  2024. echo
  2025. printf "%s\n" "## ----------------- ##
  2026. ## Output variables. ##
  2027. ## ----------------- ##"
  2028. echo
  2029. for ac_var in $ac_subst_vars
  2030. do
  2031. eval ac_val=\$$ac_var
  2032. case $ac_val in
  2033. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2034. esac
  2035. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2036. done | sort
  2037. echo
  2038. if test -n "$ac_subst_files"; then
  2039. printf "%s\n" "## ------------------- ##
  2040. ## File substitutions. ##
  2041. ## ------------------- ##"
  2042. echo
  2043. for ac_var in $ac_subst_files
  2044. do
  2045. eval ac_val=\$$ac_var
  2046. case $ac_val in
  2047. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2048. esac
  2049. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2050. done | sort
  2051. echo
  2052. fi
  2053. if test -s build/confdefs.h; then
  2054. printf "%s\n" "## ----------- ##
  2055. ## build/confdefs.h. ##
  2056. ## ----------- ##"
  2057. echo
  2058. cat build/confdefs.h
  2059. echo
  2060. fi
  2061. test "$ac_signal" != 0 &&
  2062. printf "%s\n" "$as_me: caught signal $ac_signal"
  2063. printf "%s\n" "$as_me: exit $exit_status"
  2064. } >&5
  2065. rm -f core *.core core.conftest.* &&
  2066. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2067. exit $exit_status
  2068. ' 0
  2069. for ac_signal in 1 2 13 15; do
  2070. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2071. done
  2072. ac_signal=0
  2073. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2074. rm -f -r conftest* build/confdefs.h
  2075. printf "%s\n" "/* build/confdefs.h */" > build/confdefs.h
  2076. # Predefined preprocessor variables.
  2077. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>build/confdefs.h
  2078. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>build/confdefs.h
  2079. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>build/confdefs.h
  2080. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>build/confdefs.h
  2081. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>build/confdefs.h
  2082. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>build/confdefs.h
  2083. # Let the site file select an alternate cache file if it wants to.
  2084. # Prefer an explicitly selected file to automatically selected ones.
  2085. if test -n "$CONFIG_SITE"; then
  2086. ac_site_files="$CONFIG_SITE"
  2087. elif test "x$prefix" != xNONE; then
  2088. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2089. else
  2090. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2091. fi
  2092. for ac_site_file in $ac_site_files
  2093. do
  2094. case $ac_site_file in #(
  2095. */*) :
  2096. ;; #(
  2097. *) :
  2098. ac_site_file=./$ac_site_file ;;
  2099. esac
  2100. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2102. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2103. sed 's/^/| /' "$ac_site_file" >&5
  2104. . "$ac_site_file" \
  2105. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2106. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2107. as_fn_error $? "failed to load site script $ac_site_file
  2108. See \`build/config.log' for more details" "$LINENO" 5; }
  2109. fi
  2110. done
  2111. if test -r "$cache_file"; then
  2112. # Some versions of bash will fail to source /dev/null (special files
  2113. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2114. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2116. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2117. case $cache_file in
  2118. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2119. *) . "./$cache_file";;
  2120. esac
  2121. fi
  2122. else
  2123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2124. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2125. >$cache_file
  2126. fi
  2127. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2128. ac_cxx_conftest_cxx98_globals='
  2129. // Does the compiler advertise C++98 conformance?
  2130. #if !defined __cplusplus || __cplusplus < 199711L
  2131. # error "Compiler does not advertise C++98 conformance"
  2132. #endif
  2133. // These inclusions are to reject old compilers that
  2134. // lack the unsuffixed header files.
  2135. #include <cstdlib>
  2136. #include <exception>
  2137. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2138. extern void assert (int);
  2139. namespace std {
  2140. extern int strcmp (const char *, const char *);
  2141. }
  2142. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2143. using std::exception;
  2144. using std::strcmp;
  2145. namespace {
  2146. void test_exception_syntax()
  2147. {
  2148. try {
  2149. throw "test";
  2150. } catch (const char *s) {
  2151. // Extra parentheses suppress a warning when building autoconf itself,
  2152. // due to lint rules shared with more typical C programs.
  2153. assert (!(strcmp) (s, "test"));
  2154. }
  2155. }
  2156. template <typename T> struct test_template
  2157. {
  2158. T const val;
  2159. explicit test_template(T t) : val(t) {}
  2160. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2161. };
  2162. } // anonymous namespace
  2163. '
  2164. # Test code for whether the C++ compiler supports C++98 (body of main)
  2165. ac_cxx_conftest_cxx98_main='
  2166. assert (argc);
  2167. assert (! argv[0]);
  2168. {
  2169. test_exception_syntax ();
  2170. test_template<double> tt (2.0);
  2171. assert (tt.add (4) == 6.0);
  2172. assert (true && !false);
  2173. }
  2174. '
  2175. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2176. ac_cxx_conftest_cxx11_globals='
  2177. // Does the compiler advertise C++ 2011 conformance?
  2178. #if !defined __cplusplus || __cplusplus < 201103L
  2179. # error "Compiler does not advertise C++11 conformance"
  2180. #endif
  2181. namespace cxx11test
  2182. {
  2183. constexpr int get_val() { return 20; }
  2184. struct testinit
  2185. {
  2186. int i;
  2187. double d;
  2188. };
  2189. class delegate
  2190. {
  2191. public:
  2192. delegate(int n) : n(n) {}
  2193. delegate(): delegate(2354) {}
  2194. virtual int getval() { return this->n; };
  2195. protected:
  2196. int n;
  2197. };
  2198. class overridden : public delegate
  2199. {
  2200. public:
  2201. overridden(int n): delegate(n) {}
  2202. virtual int getval() override final { return this->n * 2; }
  2203. };
  2204. class nocopy
  2205. {
  2206. public:
  2207. nocopy(int i): i(i) {}
  2208. nocopy() = default;
  2209. nocopy(const nocopy&) = delete;
  2210. nocopy & operator=(const nocopy&) = delete;
  2211. private:
  2212. int i;
  2213. };
  2214. // for testing lambda expressions
  2215. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2216. {
  2217. return f(v);
  2218. }
  2219. // for testing variadic templates and trailing return types
  2220. template <typename V> auto sum(V first) -> V
  2221. {
  2222. return first;
  2223. }
  2224. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2225. {
  2226. return first + sum(rest...);
  2227. }
  2228. }
  2229. '
  2230. # Test code for whether the C++ compiler supports C++11 (body of main)
  2231. ac_cxx_conftest_cxx11_main='
  2232. {
  2233. // Test auto and decltype
  2234. auto a1 = 6538;
  2235. auto a2 = 48573953.4;
  2236. auto a3 = "String literal";
  2237. int total = 0;
  2238. for (auto i = a3; *i; ++i) { total += *i; }
  2239. decltype(a2) a4 = 34895.034;
  2240. }
  2241. {
  2242. // Test constexpr
  2243. short sa[cxx11test::get_val()] = { 0 };
  2244. }
  2245. {
  2246. // Test initializer lists
  2247. cxx11test::testinit il = { 4323, 435234.23544 };
  2248. }
  2249. {
  2250. // Test range-based for
  2251. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2252. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2253. for (auto &x : array) { x += 23; }
  2254. }
  2255. {
  2256. // Test lambda expressions
  2257. using cxx11test::eval;
  2258. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2259. double d = 2.0;
  2260. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2261. assert (d == 5.0);
  2262. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2263. assert (d == 5.0);
  2264. }
  2265. {
  2266. // Test use of variadic templates
  2267. using cxx11test::sum;
  2268. auto a = sum(1);
  2269. auto b = sum(1, 2);
  2270. auto c = sum(1.0, 2.0, 3.0);
  2271. }
  2272. {
  2273. // Test constructor delegation
  2274. cxx11test::delegate d1;
  2275. cxx11test::delegate d2();
  2276. cxx11test::delegate d3(45);
  2277. }
  2278. {
  2279. // Test override and final
  2280. cxx11test::overridden o1(55464);
  2281. }
  2282. {
  2283. // Test nullptr
  2284. char *c = nullptr;
  2285. }
  2286. {
  2287. // Test template brackets
  2288. test_template<::test_template<int>> v(test_template<int>(12));
  2289. }
  2290. {
  2291. // Unicode literals
  2292. char const *utf8 = u8"UTF-8 string \u2500";
  2293. char16_t const *utf16 = u"UTF-8 string \u2500";
  2294. char32_t const *utf32 = U"UTF-32 string \u2500";
  2295. }
  2296. '
  2297. # Test code for whether the C compiler supports C++11 (complete).
  2298. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2299. ${ac_cxx_conftest_cxx11_globals}
  2300. int
  2301. main (int argc, char **argv)
  2302. {
  2303. int ok = 0;
  2304. ${ac_cxx_conftest_cxx98_main}
  2305. ${ac_cxx_conftest_cxx11_main}
  2306. return ok;
  2307. }
  2308. "
  2309. # Test code for whether the C compiler supports C++98 (complete).
  2310. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2311. int
  2312. main (int argc, char **argv)
  2313. {
  2314. int ok = 0;
  2315. ${ac_cxx_conftest_cxx98_main}
  2316. return ok;
  2317. }
  2318. "
  2319. as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
  2320. as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2321. as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
  2322. as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2323. as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
  2324. as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
  2325. as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2326. as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2327. as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
  2328. as_fn_append ac_header_cxx_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
  2329. as_fn_append ac_header_cxx_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2330. as_fn_append ac_func_cxx_list " getpagesize HAVE_GETPAGESIZE"
  2331. # Auxiliary files required by this configure script.
  2332. ac_aux_files="config.guess config.sub"
  2333. # Locations in which to look for auxiliary files.
  2334. ac_aux_dir_candidates="${srcdir}/build/autotools"
  2335. # Search for a directory containing all of the required auxiliary files,
  2336. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2337. # If we don't find one directory that contains all the files we need,
  2338. # we report the set of missing files from the *first* directory in
  2339. # $ac_aux_dir_candidates and give up.
  2340. ac_missing_aux_files=""
  2341. ac_first_candidate=:
  2342. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. as_found=false
  2345. for as_dir in $ac_aux_dir_candidates
  2346. do
  2347. IFS=$as_save_IFS
  2348. case $as_dir in #(((
  2349. '') as_dir=./ ;;
  2350. */) ;;
  2351. *) as_dir=$as_dir/ ;;
  2352. esac
  2353. as_found=:
  2354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2355. ac_aux_dir_found=yes
  2356. ac_install_sh=
  2357. for ac_aux in $ac_aux_files
  2358. do
  2359. # As a special case, if "install-sh" is required, that requirement
  2360. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2361. # and $ac_install_sh is set appropriately for whichever one is found.
  2362. if test x"$ac_aux" = x"install-sh"
  2363. then
  2364. if test -f "${as_dir}install-sh"; then
  2365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2366. ac_install_sh="${as_dir}install-sh -c"
  2367. elif test -f "${as_dir}install.sh"; then
  2368. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2369. ac_install_sh="${as_dir}install.sh -c"
  2370. elif test -f "${as_dir}shtool"; then
  2371. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2372. ac_install_sh="${as_dir}shtool install -c"
  2373. else
  2374. ac_aux_dir_found=no
  2375. if $ac_first_candidate; then
  2376. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2377. else
  2378. break
  2379. fi
  2380. fi
  2381. else
  2382. if test -f "${as_dir}${ac_aux}"; then
  2383. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2384. else
  2385. ac_aux_dir_found=no
  2386. if $ac_first_candidate; then
  2387. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2388. else
  2389. break
  2390. fi
  2391. fi
  2392. fi
  2393. done
  2394. if test "$ac_aux_dir_found" = yes; then
  2395. ac_aux_dir="$as_dir"
  2396. break
  2397. fi
  2398. ac_first_candidate=false
  2399. as_found=false
  2400. done
  2401. IFS=$as_save_IFS
  2402. if $as_found
  2403. then :
  2404. else $as_nop
  2405. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2406. fi
  2407. # These three variables are undocumented and unsupported,
  2408. # and are intended to be withdrawn in a future Autoconf release.
  2409. # They can cause serious problems if a builder's source tree is in a directory
  2410. # whose full name contains unusual characters.
  2411. if test -f "${ac_aux_dir}config.guess"; then
  2412. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2413. fi
  2414. if test -f "${ac_aux_dir}config.sub"; then
  2415. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2416. fi
  2417. if test -f "$ac_aux_dir/configure"; then
  2418. ac_configure="$SHELL ${ac_aux_dir}configure"
  2419. fi
  2420. # Check that the precious variables saved in the cache have kept the same
  2421. # value.
  2422. ac_cache_corrupted=false
  2423. for ac_var in $ac_precious_vars; do
  2424. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2425. eval ac_new_set=\$ac_env_${ac_var}_set
  2426. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2427. eval ac_new_val=\$ac_env_${ac_var}_value
  2428. case $ac_old_set,$ac_new_set in
  2429. set,)
  2430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2431. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2432. ac_cache_corrupted=: ;;
  2433. ,set)
  2434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2435. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2436. ac_cache_corrupted=: ;;
  2437. ,);;
  2438. *)
  2439. if test "x$ac_old_val" != "x$ac_new_val"; then
  2440. # differences in whitespace do not lead to failure.
  2441. ac_old_val_w=`echo x $ac_old_val`
  2442. ac_new_val_w=`echo x $ac_new_val`
  2443. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2445. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2446. ac_cache_corrupted=:
  2447. else
  2448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2449. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2450. eval $ac_var=\$ac_old_val
  2451. fi
  2452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2453. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2455. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2456. fi;;
  2457. esac
  2458. # Pass precious variables to build/config.status.
  2459. if test "$ac_new_set" = set; then
  2460. case $ac_new_val in
  2461. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2462. *) ac_arg=$ac_var=$ac_new_val ;;
  2463. esac
  2464. case " $ac_configure_args " in
  2465. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2466. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2467. esac
  2468. fi
  2469. done
  2470. if $ac_cache_corrupted; then
  2471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2472. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2474. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2475. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2476. and start over" "$LINENO" 5
  2477. fi
  2478. ## -------------------- ##
  2479. ## Main body of script. ##
  2480. ## -------------------- ##
  2481. ac_ext=c
  2482. ac_cpp='$CPP $CPPFLAGS'
  2483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2486. ac_config_headers="$ac_config_headers src/config.h"
  2487. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2488. egg_ac_parameters=
  2489. ac_prev=
  2490. for ac_arg in $ac_configure_args; do
  2491. if test -n "$ac_prev"; then
  2492. ac_prev=
  2493. continue
  2494. fi
  2495. case $ac_arg in
  2496. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2497. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2498. ac_prev=cache_file ;;
  2499. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2500. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2501. | --c=*)
  2502. ;;
  2503. --config-cache | -C)
  2504. ;;
  2505. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2506. ac_prev=srcdir ;;
  2507. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2508. ;;
  2509. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2510. esac
  2511. done
  2512. # Setup build environment
  2513. #AC_REQUIRE_CPP
  2514. ac_ext=cpp
  2515. ac_cpp='$CXXCPP $CPPFLAGS'
  2516. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2517. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2518. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2519. ac_ext=cpp
  2520. ac_cpp='$CXXCPP $CPPFLAGS'
  2521. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2522. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2523. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2524. if test -z "$CXX"; then
  2525. if test -n "$CCC"; then
  2526. CXX=$CCC
  2527. else
  2528. if test -n "$ac_tool_prefix"; then
  2529. for ac_prog in g++8 g++7 g++6 g++5 g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 g++46 g++-4.6 eg++ g++ c++ CC cxx cc++
  2530. do
  2531. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2532. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2534. printf %s "checking for $ac_word... " >&6; }
  2535. if test ${ac_cv_prog_CXX+y}
  2536. then :
  2537. printf %s "(cached) " >&6
  2538. else $as_nop
  2539. if test -n "$CXX"; then
  2540. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2541. else
  2542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2543. for as_dir in $PATH
  2544. do
  2545. IFS=$as_save_IFS
  2546. case $as_dir in #(((
  2547. '') as_dir=./ ;;
  2548. */) ;;
  2549. *) as_dir=$as_dir/ ;;
  2550. esac
  2551. for ac_exec_ext in '' $ac_executable_extensions; do
  2552. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2553. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2554. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2555. break 2
  2556. fi
  2557. done
  2558. done
  2559. IFS=$as_save_IFS
  2560. fi
  2561. fi
  2562. CXX=$ac_cv_prog_CXX
  2563. if test -n "$CXX"; then
  2564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2565. printf "%s\n" "$CXX" >&6; }
  2566. else
  2567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2568. printf "%s\n" "no" >&6; }
  2569. fi
  2570. test -n "$CXX" && break
  2571. done
  2572. fi
  2573. if test -z "$CXX"; then
  2574. ac_ct_CXX=$CXX
  2575. for ac_prog in g++8 g++7 g++6 g++5 g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 g++46 g++-4.6 eg++ g++ c++ CC cxx cc++
  2576. do
  2577. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2578. set dummy $ac_prog; ac_word=$2
  2579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2580. printf %s "checking for $ac_word... " >&6; }
  2581. if test ${ac_cv_prog_ac_ct_CXX+y}
  2582. then :
  2583. printf %s "(cached) " >&6
  2584. else $as_nop
  2585. if test -n "$ac_ct_CXX"; then
  2586. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2587. else
  2588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2589. for as_dir in $PATH
  2590. do
  2591. IFS=$as_save_IFS
  2592. case $as_dir in #(((
  2593. '') as_dir=./ ;;
  2594. */) ;;
  2595. *) as_dir=$as_dir/ ;;
  2596. esac
  2597. for ac_exec_ext in '' $ac_executable_extensions; do
  2598. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2599. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2600. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2601. break 2
  2602. fi
  2603. done
  2604. done
  2605. IFS=$as_save_IFS
  2606. fi
  2607. fi
  2608. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2609. if test -n "$ac_ct_CXX"; then
  2610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2611. printf "%s\n" "$ac_ct_CXX" >&6; }
  2612. else
  2613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2614. printf "%s\n" "no" >&6; }
  2615. fi
  2616. test -n "$ac_ct_CXX" && break
  2617. done
  2618. if test "x$ac_ct_CXX" = x; then
  2619. CXX="g++"
  2620. else
  2621. case $cross_compiling:$ac_tool_warned in
  2622. yes:)
  2623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2624. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2625. ac_tool_warned=yes ;;
  2626. esac
  2627. CXX=$ac_ct_CXX
  2628. fi
  2629. fi
  2630. fi
  2631. fi
  2632. # Provide some information about the compiler.
  2633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2634. set X $ac_compile
  2635. ac_compiler=$2
  2636. for ac_option in --version -v -V -qversion; do
  2637. { { ac_try="$ac_compiler $ac_option >&5"
  2638. case "(($ac_try" in
  2639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2640. *) ac_try_echo=$ac_try;;
  2641. esac
  2642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2643. printf "%s\n" "$ac_try_echo"; } >&5
  2644. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2645. ac_status=$?
  2646. if test -s conftest.err; then
  2647. sed '10a\
  2648. ... rest of stderr output deleted ...
  2649. 10q' conftest.err >conftest.er1
  2650. cat conftest.er1 >&5
  2651. fi
  2652. rm -f conftest.er1 conftest.err
  2653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2654. test $ac_status = 0; }
  2655. done
  2656. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2657. /* end build/confdefs.h. */
  2658. int
  2659. main (void)
  2660. {
  2661. ;
  2662. return 0;
  2663. }
  2664. _ACEOF
  2665. ac_clean_files_save=$ac_clean_files
  2666. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2667. # Try to create an executable without -o first, disregard a.out.
  2668. # It will help us diagnose broken compilers, and finding out an intuition
  2669. # of exeext.
  2670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2671. printf %s "checking whether the C++ compiler works... " >&6; }
  2672. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2673. # The possible output files:
  2674. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2675. ac_rmfiles=
  2676. for ac_file in $ac_files
  2677. do
  2678. case $ac_file in
  2679. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2680. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2681. esac
  2682. done
  2683. rm -f $ac_rmfiles
  2684. if { { ac_try="$ac_link_default"
  2685. case "(($ac_try" in
  2686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2687. *) ac_try_echo=$ac_try;;
  2688. esac
  2689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2690. printf "%s\n" "$ac_try_echo"; } >&5
  2691. (eval "$ac_link_default") 2>&5
  2692. ac_status=$?
  2693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2694. test $ac_status = 0; }
  2695. then :
  2696. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2697. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2698. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2699. # so that the user can short-circuit this test for compilers unknown to
  2700. # Autoconf.
  2701. for ac_file in $ac_files ''
  2702. do
  2703. test -f "$ac_file" || continue
  2704. case $ac_file in
  2705. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2706. ;;
  2707. [ab].out )
  2708. # We found the default executable, but exeext='' is most
  2709. # certainly right.
  2710. break;;
  2711. *.* )
  2712. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  2713. then :; else
  2714. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2715. fi
  2716. # We set ac_cv_exeext here because the later test for it is not
  2717. # safe: cross compilers may not add the suffix if given an `-o'
  2718. # argument, so we may need to know it at that point already.
  2719. # Even if this section looks crufty: it has the advantage of
  2720. # actually working.
  2721. break;;
  2722. * )
  2723. break;;
  2724. esac
  2725. done
  2726. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2727. else $as_nop
  2728. ac_file=''
  2729. fi
  2730. if test -z "$ac_file"
  2731. then :
  2732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2733. printf "%s\n" "no" >&6; }
  2734. printf "%s\n" "$as_me: failed program was:" >&5
  2735. sed 's/^/| /' conftest.$ac_ext >&5
  2736. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2737. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2738. as_fn_error 77 "C++ compiler cannot create executables
  2739. See \`build/config.log' for more details" "$LINENO" 5; }
  2740. else $as_nop
  2741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2742. printf "%s\n" "yes" >&6; }
  2743. fi
  2744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2745. printf %s "checking for C++ compiler default output file name... " >&6; }
  2746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2747. printf "%s\n" "$ac_file" >&6; }
  2748. ac_exeext=$ac_cv_exeext
  2749. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2750. ac_clean_files=$ac_clean_files_save
  2751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2752. printf %s "checking for suffix of executables... " >&6; }
  2753. if { { ac_try="$ac_link"
  2754. case "(($ac_try" in
  2755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2756. *) ac_try_echo=$ac_try;;
  2757. esac
  2758. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2759. printf "%s\n" "$ac_try_echo"; } >&5
  2760. (eval "$ac_link") 2>&5
  2761. ac_status=$?
  2762. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2763. test $ac_status = 0; }
  2764. then :
  2765. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2766. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2767. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2768. # `rm'.
  2769. for ac_file in conftest.exe conftest conftest.*; do
  2770. test -f "$ac_file" || continue
  2771. case $ac_file in
  2772. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2773. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2774. break;;
  2775. * ) break;;
  2776. esac
  2777. done
  2778. else $as_nop
  2779. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2780. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2781. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2782. See \`build/config.log' for more details" "$LINENO" 5; }
  2783. fi
  2784. rm -f conftest conftest$ac_cv_exeext
  2785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2786. printf "%s\n" "$ac_cv_exeext" >&6; }
  2787. rm -f conftest.$ac_ext
  2788. EXEEXT=$ac_cv_exeext
  2789. ac_exeext=$EXEEXT
  2790. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2791. /* end build/confdefs.h. */
  2792. #include <stdio.h>
  2793. int
  2794. main (void)
  2795. {
  2796. FILE *f = fopen ("conftest.out", "w");
  2797. return ferror (f) || fclose (f) != 0;
  2798. ;
  2799. return 0;
  2800. }
  2801. _ACEOF
  2802. ac_clean_files="$ac_clean_files conftest.out"
  2803. # Check that the compiler produces executables we can run. If not, either
  2804. # the compiler is broken, or we cross compile.
  2805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2806. printf %s "checking whether we are cross compiling... " >&6; }
  2807. if test "$cross_compiling" != yes; then
  2808. { { ac_try="$ac_link"
  2809. case "(($ac_try" in
  2810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2811. *) ac_try_echo=$ac_try;;
  2812. esac
  2813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2814. printf "%s\n" "$ac_try_echo"; } >&5
  2815. (eval "$ac_link") 2>&5
  2816. ac_status=$?
  2817. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2818. test $ac_status = 0; }
  2819. if { ac_try='./conftest$ac_cv_exeext'
  2820. { { case "(($ac_try" in
  2821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2822. *) ac_try_echo=$ac_try;;
  2823. esac
  2824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2825. printf "%s\n" "$ac_try_echo"; } >&5
  2826. (eval "$ac_try") 2>&5
  2827. ac_status=$?
  2828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2829. test $ac_status = 0; }; }; then
  2830. cross_compiling=no
  2831. else
  2832. if test "$cross_compiling" = maybe; then
  2833. cross_compiling=yes
  2834. else
  2835. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2836. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2837. as_fn_error 77 "cannot run C++ compiled programs.
  2838. If you meant to cross compile, use \`--host'.
  2839. See \`build/config.log' for more details" "$LINENO" 5; }
  2840. fi
  2841. fi
  2842. fi
  2843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2844. printf "%s\n" "$cross_compiling" >&6; }
  2845. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2846. ac_clean_files=$ac_clean_files_save
  2847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2848. printf %s "checking for suffix of object files... " >&6; }
  2849. if test ${ac_cv_objext+y}
  2850. then :
  2851. printf %s "(cached) " >&6
  2852. else $as_nop
  2853. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2854. /* end build/confdefs.h. */
  2855. int
  2856. main (void)
  2857. {
  2858. ;
  2859. return 0;
  2860. }
  2861. _ACEOF
  2862. rm -f conftest.o conftest.obj
  2863. if { { ac_try="$ac_compile"
  2864. case "(($ac_try" in
  2865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2866. *) ac_try_echo=$ac_try;;
  2867. esac
  2868. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2869. printf "%s\n" "$ac_try_echo"; } >&5
  2870. (eval "$ac_compile") 2>&5
  2871. ac_status=$?
  2872. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2873. test $ac_status = 0; }
  2874. then :
  2875. for ac_file in conftest.o conftest.obj conftest.*; do
  2876. test -f "$ac_file" || continue;
  2877. case $ac_file in
  2878. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2879. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2880. break;;
  2881. esac
  2882. done
  2883. else $as_nop
  2884. printf "%s\n" "$as_me: failed program was:" >&5
  2885. sed 's/^/| /' conftest.$ac_ext >&5
  2886. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2887. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2888. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2889. See \`build/config.log' for more details" "$LINENO" 5; }
  2890. fi
  2891. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2892. fi
  2893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2894. printf "%s\n" "$ac_cv_objext" >&6; }
  2895. OBJEXT=$ac_cv_objext
  2896. ac_objext=$OBJEXT
  2897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  2898. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  2899. if test ${ac_cv_cxx_compiler_gnu+y}
  2900. then :
  2901. printf %s "(cached) " >&6
  2902. else $as_nop
  2903. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2904. /* end build/confdefs.h. */
  2905. int
  2906. main (void)
  2907. {
  2908. #ifndef __GNUC__
  2909. choke me
  2910. #endif
  2911. ;
  2912. return 0;
  2913. }
  2914. _ACEOF
  2915. if ac_fn_cxx_try_compile "$LINENO"
  2916. then :
  2917. ac_compiler_gnu=yes
  2918. else $as_nop
  2919. ac_compiler_gnu=no
  2920. fi
  2921. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2922. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2923. fi
  2924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2925. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  2926. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2927. if test $ac_compiler_gnu = yes; then
  2928. GXX=yes
  2929. else
  2930. GXX=
  2931. fi
  2932. ac_test_CXXFLAGS=${CXXFLAGS+y}
  2933. ac_save_CXXFLAGS=$CXXFLAGS
  2934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2935. printf %s "checking whether $CXX accepts -g... " >&6; }
  2936. if test ${ac_cv_prog_cxx_g+y}
  2937. then :
  2938. printf %s "(cached) " >&6
  2939. else $as_nop
  2940. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2941. ac_cxx_werror_flag=yes
  2942. ac_cv_prog_cxx_g=no
  2943. CXXFLAGS="-g"
  2944. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2945. /* end build/confdefs.h. */
  2946. int
  2947. main (void)
  2948. {
  2949. ;
  2950. return 0;
  2951. }
  2952. _ACEOF
  2953. if ac_fn_cxx_try_compile "$LINENO"
  2954. then :
  2955. ac_cv_prog_cxx_g=yes
  2956. else $as_nop
  2957. CXXFLAGS=""
  2958. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2959. /* end build/confdefs.h. */
  2960. int
  2961. main (void)
  2962. {
  2963. ;
  2964. return 0;
  2965. }
  2966. _ACEOF
  2967. if ac_fn_cxx_try_compile "$LINENO"
  2968. then :
  2969. else $as_nop
  2970. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2971. CXXFLAGS="-g"
  2972. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2973. /* end build/confdefs.h. */
  2974. int
  2975. main (void)
  2976. {
  2977. ;
  2978. return 0;
  2979. }
  2980. _ACEOF
  2981. if ac_fn_cxx_try_compile "$LINENO"
  2982. then :
  2983. ac_cv_prog_cxx_g=yes
  2984. fi
  2985. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2986. fi
  2987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2988. fi
  2989. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2990. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2991. fi
  2992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2993. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  2994. if test $ac_test_CXXFLAGS; then
  2995. CXXFLAGS=$ac_save_CXXFLAGS
  2996. elif test $ac_cv_prog_cxx_g = yes; then
  2997. if test "$GXX" = yes; then
  2998. CXXFLAGS="-g -O2"
  2999. else
  3000. CXXFLAGS="-g"
  3001. fi
  3002. else
  3003. if test "$GXX" = yes; then
  3004. CXXFLAGS="-O2"
  3005. else
  3006. CXXFLAGS=
  3007. fi
  3008. fi
  3009. ac_prog_cxx_stdcxx=no
  3010. if test x$ac_prog_cxx_stdcxx = xno
  3011. then :
  3012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  3013. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  3014. if test ${ac_cv_prog_cxx_11+y}
  3015. then :
  3016. printf %s "(cached) " >&6
  3017. else $as_nop
  3018. ac_cv_prog_cxx_11=no
  3019. ac_save_CXX=$CXX
  3020. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3021. /* end build/confdefs.h. */
  3022. $ac_cxx_conftest_cxx11_program
  3023. _ACEOF
  3024. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  3025. do
  3026. CXX="$ac_save_CXX $ac_arg"
  3027. if ac_fn_cxx_try_compile "$LINENO"
  3028. then :
  3029. ac_cv_prog_cxx_cxx11=$ac_arg
  3030. fi
  3031. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3032. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  3033. done
  3034. rm -f conftest.$ac_ext
  3035. CXX=$ac_save_CXX
  3036. fi
  3037. if test "x$ac_cv_prog_cxx_cxx11" = xno
  3038. then :
  3039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3040. printf "%s\n" "unsupported" >&6; }
  3041. else $as_nop
  3042. if test "x$ac_cv_prog_cxx_cxx11" = x
  3043. then :
  3044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3045. printf "%s\n" "none needed" >&6; }
  3046. else $as_nop
  3047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  3048. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  3049. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  3050. fi
  3051. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  3052. ac_prog_cxx_stdcxx=cxx11
  3053. fi
  3054. fi
  3055. if test x$ac_prog_cxx_stdcxx = xno
  3056. then :
  3057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  3058. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  3059. if test ${ac_cv_prog_cxx_98+y}
  3060. then :
  3061. printf %s "(cached) " >&6
  3062. else $as_nop
  3063. ac_cv_prog_cxx_98=no
  3064. ac_save_CXX=$CXX
  3065. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3066. /* end build/confdefs.h. */
  3067. $ac_cxx_conftest_cxx98_program
  3068. _ACEOF
  3069. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  3070. do
  3071. CXX="$ac_save_CXX $ac_arg"
  3072. if ac_fn_cxx_try_compile "$LINENO"
  3073. then :
  3074. ac_cv_prog_cxx_cxx98=$ac_arg
  3075. fi
  3076. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3077. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  3078. done
  3079. rm -f conftest.$ac_ext
  3080. CXX=$ac_save_CXX
  3081. fi
  3082. if test "x$ac_cv_prog_cxx_cxx98" = xno
  3083. then :
  3084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3085. printf "%s\n" "unsupported" >&6; }
  3086. else $as_nop
  3087. if test "x$ac_cv_prog_cxx_cxx98" = x
  3088. then :
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3090. printf "%s\n" "none needed" >&6; }
  3091. else $as_nop
  3092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  3093. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  3094. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  3095. fi
  3096. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  3097. ac_prog_cxx_stdcxx=cxx98
  3098. fi
  3099. fi
  3100. ac_ext=cpp
  3101. ac_cpp='$CXXCPP $CPPFLAGS'
  3102. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3103. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3104. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3105. CC="${CXX} -x c"
  3106. if test "${cross_compiling-x}" = "x"
  3107. then
  3108. cat << 'EOF' >&2
  3109. configure: error:
  3110. This system does not appear to have a working C compiler.
  3111. A working C compiler is required to compile Wraith.
  3112. EOF
  3113. exit 1
  3114. fi
  3115. if test -n "$GXX"; then
  3116. CXXFLAGS="$CXXFLAGS"
  3117. fi
  3118. #CXX_RPATH_CHECK
  3119. #checkpoint
  3120. cat >confcache <<\_ACEOF
  3121. # This file is a shell script that caches the results of configure
  3122. # tests run on this system so they can be shared between configure
  3123. # scripts and configure runs, see configure's option --config-cache.
  3124. # It is not useful on other systems. If it contains results you don't
  3125. # want to keep, you may remove or edit it.
  3126. #
  3127. # build/config.status only pays attention to the cache file if you give it
  3128. # the --recheck option to rerun configure.
  3129. #
  3130. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3131. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3132. # following values.
  3133. _ACEOF
  3134. # The following way of writing the cache mishandles newlines in values,
  3135. # but we know of no workaround that is simple, portable, and efficient.
  3136. # So, we kill variables containing newlines.
  3137. # Ultrix sh set writes to stderr and can't be redirected directly,
  3138. # and sets the high bit in the cache file unless we assign to the vars.
  3139. (
  3140. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3141. eval ac_val=\$$ac_var
  3142. case $ac_val in #(
  3143. *${as_nl}*)
  3144. case $ac_var in #(
  3145. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3146. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3147. esac
  3148. case $ac_var in #(
  3149. _ | IFS | as_nl) ;; #(
  3150. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3151. *) { eval $ac_var=; unset $ac_var;} ;;
  3152. esac ;;
  3153. esac
  3154. done
  3155. (set) 2>&1 |
  3156. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3157. *${as_nl}ac_space=\ *)
  3158. # `set' does not quote correctly, so add quotes: double-quote
  3159. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3160. sed -n \
  3161. "s/'/'\\\\''/g;
  3162. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3163. ;; #(
  3164. *)
  3165. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3166. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3167. ;;
  3168. esac |
  3169. sort
  3170. ) |
  3171. sed '
  3172. /^ac_cv_env_/b end
  3173. t clear
  3174. :clear
  3175. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  3176. t end
  3177. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3178. :end' >>confcache
  3179. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3180. if test -w "$cache_file"; then
  3181. if test "x$cache_file" != "x/dev/null"; then
  3182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3183. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  3184. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3185. cat confcache >"$cache_file"
  3186. else
  3187. case $cache_file in #(
  3188. */* | ?:*)
  3189. mv -f confcache "$cache_file"$$ &&
  3190. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3191. *)
  3192. mv -f confcache "$cache_file" ;;
  3193. esac
  3194. fi
  3195. fi
  3196. else
  3197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3198. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  3199. fi
  3200. fi
  3201. rm -f confcache
  3202. # Speedup compile
  3203. if test -n "$GXX" && test -z "$no_wall"; then
  3204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3205. printf %s "checking whether the compiler understands -Wall... " >&6; }
  3206. if test ${egg_cv_var_ccwall+y}
  3207. then :
  3208. printf %s "(cached) " >&6
  3209. else $as_nop
  3210. ac_old_CXXFLAGS="$CXXFLAGS"
  3211. CXXFLAGS="$CXXFLAGS -Wall"
  3212. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3213. /* end build/confdefs.h. */
  3214. int main ()
  3215. {
  3216. return(0);
  3217. }
  3218. _ACEOF
  3219. if ac_fn_cxx_try_compile "$LINENO"
  3220. then :
  3221. egg_cv_var_ccwall="yes"
  3222. else $as_nop
  3223. egg_cv_var_ccwall="no"
  3224. fi
  3225. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3226. CXXFLAGS="$ac_old_CXXFLAGS"
  3227. fi
  3228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3229. printf "%s\n" "$egg_cv_var_ccwall" >&6; }
  3230. if test "$egg_cv_var_ccwall" = "yes"; then
  3231. CXXFLAGS="$CXXFLAGS -Wall"
  3232. fi
  3233. fi
  3234. if test -n "$GXX" && test -z "$no_pipe"; then
  3235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3236. printf %s "checking whether the compiler understands -pipe... " >&6; }
  3237. if test ${egg_cv_var_ccpipe+y}
  3238. then :
  3239. printf %s "(cached) " >&6
  3240. else $as_nop
  3241. ac_old_CXX="$CXX"
  3242. CXX="$CXX -pipe"
  3243. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. /* end build/confdefs.h. */
  3245. int main ()
  3246. {
  3247. return(0);
  3248. }
  3249. _ACEOF
  3250. if ac_fn_cxx_try_compile "$LINENO"
  3251. then :
  3252. egg_cv_var_ccpipe="yes"
  3253. else $as_nop
  3254. egg_cv_var_ccpipe="no"
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3257. CXX="$ac_old_CXX"
  3258. fi
  3259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3260. printf "%s\n" "$egg_cv_var_ccpipe" >&6; }
  3261. if test "$egg_cv_var_ccpipe" = "yes"; then
  3262. CXX="$CXX -pipe"
  3263. fi
  3264. fi
  3265. ax_cxx_compile_cxx11_required=false
  3266. ac_ext=cpp
  3267. ac_cpp='$CXXCPP $CPPFLAGS'
  3268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3271. ac_success=no
  3272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  3273. printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
  3274. if test ${ax_cv_cxx_compile_cxx11+y}
  3275. then :
  3276. printf %s "(cached) " >&6
  3277. else $as_nop
  3278. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3279. /* end build/confdefs.h. */
  3280. template <typename T>
  3281. struct check
  3282. {
  3283. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3284. };
  3285. struct Base {
  3286. virtual void f() {}
  3287. };
  3288. struct Child : public Base {
  3289. virtual void f() override {}
  3290. };
  3291. typedef check<check<bool>> right_angle_brackets;
  3292. int a;
  3293. decltype(a) b;
  3294. typedef check<int> check_type;
  3295. check_type c;
  3296. check_type&& cr = static_cast<check_type&&>(c);
  3297. auto d = a;
  3298. auto l = [](){};
  3299. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  3300. struct use_l { use_l() { l(); } };
  3301. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3302. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  3303. namespace test_template_alias_sfinae {
  3304. struct foo {};
  3305. template<typename T>
  3306. using member = typename T::member_type;
  3307. template<typename T>
  3308. void func(...) {}
  3309. template<typename T>
  3310. void func(member<T>*) {}
  3311. void test();
  3312. void test() {
  3313. func<foo>(0);
  3314. }
  3315. }
  3316. _ACEOF
  3317. if ac_fn_cxx_try_compile "$LINENO"
  3318. then :
  3319. ax_cv_cxx_compile_cxx11=yes
  3320. else $as_nop
  3321. ax_cv_cxx_compile_cxx11=no
  3322. fi
  3323. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3324. fi
  3325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  3326. printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
  3327. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  3328. ac_success=yes
  3329. fi
  3330. if test x$ac_success = xno; then
  3331. for switch in -std=c++11 -std=c++0x; do
  3332. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  3333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  3334. printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
  3335. if eval test \${$cachevar+y}
  3336. then :
  3337. printf %s "(cached) " >&6
  3338. else $as_nop
  3339. ac_save_CXXFLAGS="$CXXFLAGS"
  3340. CXXFLAGS="$CXXFLAGS $switch"
  3341. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3342. /* end build/confdefs.h. */
  3343. template <typename T>
  3344. struct check
  3345. {
  3346. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3347. };
  3348. struct Base {
  3349. virtual void f() {}
  3350. };
  3351. struct Child : public Base {
  3352. virtual void f() override {}
  3353. };
  3354. typedef check<check<bool>> right_angle_brackets;
  3355. int a;
  3356. decltype(a) b;
  3357. typedef check<int> check_type;
  3358. check_type c;
  3359. check_type&& cr = static_cast<check_type&&>(c);
  3360. auto d = a;
  3361. auto l = [](){};
  3362. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  3363. struct use_l { use_l() { l(); } };
  3364. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3365. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  3366. namespace test_template_alias_sfinae {
  3367. struct foo {};
  3368. template<typename T>
  3369. using member = typename T::member_type;
  3370. template<typename T>
  3371. void func(...) {}
  3372. template<typename T>
  3373. void func(member<T>*) {}
  3374. void test();
  3375. void test() {
  3376. func<foo>(0);
  3377. }
  3378. }
  3379. _ACEOF
  3380. if ac_fn_cxx_try_compile "$LINENO"
  3381. then :
  3382. eval $cachevar=yes
  3383. else $as_nop
  3384. eval $cachevar=no
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3387. CXXFLAGS="$ac_save_CXXFLAGS"
  3388. fi
  3389. eval ac_res=\$$cachevar
  3390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3391. printf "%s\n" "$ac_res" >&6; }
  3392. if eval test x\$$cachevar = xyes; then
  3393. CXXFLAGS="$CXXFLAGS $switch"
  3394. ac_success=yes
  3395. break
  3396. fi
  3397. done
  3398. fi
  3399. ac_ext=cpp
  3400. ac_cpp='$CXXCPP $CPPFLAGS'
  3401. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3402. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3403. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3404. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3405. if test x$ac_success = xno; then
  3406. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3407. fi
  3408. else
  3409. if test x$ac_success = xno; then
  3410. HAVE_CXX11=0
  3411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3412. printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
  3413. else
  3414. HAVE_CXX11=1
  3415. printf "%s\n" "#define HAVE_CXX11 1" >>build/confdefs.h
  3416. fi
  3417. fi
  3418. if [ "${HAVE_CXX11}" -eq 0 ]; then
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -std=c++0x" >&5
  3420. printf %s "checking whether the compiler understands -std=c++0x... " >&6; }
  3421. if test ${ax_cv_prog_cc_cxx0x+y}
  3422. then :
  3423. printf %s "(cached) " >&6
  3424. else $as_nop
  3425. ac_ext=cpp
  3426. ac_cpp='$CXXCPP $CPPFLAGS'
  3427. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3428. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3429. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3430. ac_saved_flags="$CXXFLAGS"
  3431. CXXFLAGS="-Werror -std=c++0x"
  3432. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3433. /* end build/confdefs.h. */
  3434. int
  3435. main (void)
  3436. {
  3437. ;
  3438. return 0;
  3439. }
  3440. _ACEOF
  3441. if ac_fn_cxx_try_compile "$LINENO"
  3442. then :
  3443. ax_cv_prog_cc_cxx0x="yes"
  3444. else $as_nop
  3445. ax_cv_prog_cc_cxx0x="no"
  3446. fi
  3447. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3448. CXXFLAGS="$ac_saved_flags"
  3449. ac_ext=cpp
  3450. ac_cpp='$CXXCPP $CPPFLAGS'
  3451. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3452. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3453. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3454. fi
  3455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_cxx0x" >&5
  3456. printf "%s\n" "$ax_cv_prog_cc_cxx0x" >&6; }
  3457. if [ "$ax_cv_prog_cc_cxx0x" = "yes" ]; then
  3458. CXXFLAGS="$CXXFLAGS -std=c++0x"
  3459. elif [ -n "" ]; then
  3460. cat << 'EOF' >&2
  3461. configure: error:
  3462. Your OS or C++ compiler does not support -std=c++0x.
  3463. This compile flag is required.
  3464. EOF
  3465. exit 1
  3466. fi
  3467. fi
  3468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3469. printf %s "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3470. if test ${ax_cv_prog_cc_colordiagnostics+y}
  3471. then :
  3472. printf %s "(cached) " >&6
  3473. else $as_nop
  3474. ac_ext=cpp
  3475. ac_cpp='$CXXCPP $CPPFLAGS'
  3476. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3477. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3478. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3479. ac_saved_flags="$CXXFLAGS"
  3480. CXXFLAGS="-Werror -fcolor-diagnostics"
  3481. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3482. /* end build/confdefs.h. */
  3483. int
  3484. main (void)
  3485. {
  3486. ;
  3487. return 0;
  3488. }
  3489. _ACEOF
  3490. if ac_fn_cxx_try_compile "$LINENO"
  3491. then :
  3492. ax_cv_prog_cc_colordiagnostics="yes"
  3493. else $as_nop
  3494. ax_cv_prog_cc_colordiagnostics="no"
  3495. fi
  3496. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3497. CXXFLAGS="$ac_saved_flags"
  3498. ac_ext=cpp
  3499. ac_cpp='$CXXCPP $CPPFLAGS'
  3500. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3501. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3502. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3503. fi
  3504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3505. printf "%s\n" "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3506. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3507. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3508. elif [ -n "" ]; then
  3509. cat << 'EOF' >&2
  3510. configure: error:
  3511. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3512. This compile flag is required.
  3513. EOF
  3514. exit 1
  3515. fi
  3516. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3518. printf %s "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3519. if test ${ax_cv_prog_cc_invalid_source_encoding+y}
  3520. then :
  3521. printf %s "(cached) " >&6
  3522. else $as_nop
  3523. ac_ext=cpp
  3524. ac_cpp='$CXXCPP $CPPFLAGS'
  3525. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3526. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3527. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3528. ac_saved_flags="$CXXFLAGS"
  3529. CXXFLAGS="-Werror -Winvalid-source-encoding"
  3530. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3531. /* end build/confdefs.h. */
  3532. int
  3533. main (void)
  3534. {
  3535. ;
  3536. return 0;
  3537. }
  3538. _ACEOF
  3539. if ac_fn_cxx_try_compile "$LINENO"
  3540. then :
  3541. ax_cv_prog_cc_invalid_source_encoding="yes"
  3542. else $as_nop
  3543. ax_cv_prog_cc_invalid_source_encoding="no"
  3544. fi
  3545. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3546. CXXFLAGS="$ac_saved_flags"
  3547. ac_ext=cpp
  3548. ac_cpp='$CXXCPP $CPPFLAGS'
  3549. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3550. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3551. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3552. fi
  3553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3554. printf "%s\n" "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3555. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3556. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3557. elif [ -n "" ]; then
  3558. cat << 'EOF' >&2
  3559. configure: error:
  3560. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3561. This compile flag is required.
  3562. EOF
  3563. exit 1
  3564. fi
  3565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-cast-function-type" >&5
  3566. printf %s "checking whether the compiler understands -Wno-cast-function-type... " >&6; }
  3567. if test ${ax_cv_prog_cc_no_cast_function_type+y}
  3568. then :
  3569. printf %s "(cached) " >&6
  3570. else $as_nop
  3571. ac_ext=cpp
  3572. ac_cpp='$CXXCPP $CPPFLAGS'
  3573. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3574. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3575. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3576. ac_saved_flags="$CXXFLAGS"
  3577. CXXFLAGS="-Werror -Wcast-function-type"
  3578. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3579. /* end build/confdefs.h. */
  3580. int
  3581. main (void)
  3582. {
  3583. ;
  3584. return 0;
  3585. }
  3586. _ACEOF
  3587. if ac_fn_cxx_try_compile "$LINENO"
  3588. then :
  3589. ax_cv_prog_cc_no_cast_function_type="yes"
  3590. else $as_nop
  3591. ax_cv_prog_cc_no_cast_function_type="no"
  3592. fi
  3593. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3594. CXXFLAGS="$ac_saved_flags"
  3595. ac_ext=cpp
  3596. ac_cpp='$CXXCPP $CPPFLAGS'
  3597. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3598. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3599. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3600. fi
  3601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_no_cast_function_type" >&5
  3602. printf "%s\n" "$ax_cv_prog_cc_no_cast_function_type" >&6; }
  3603. if [ "$ax_cv_prog_cc_no_cast_function_type" = "yes" ]; then
  3604. CXXFLAGS="$CXXFLAGS -Wno-cast-function-type"
  3605. elif [ -n "" ]; then
  3606. cat << 'EOF' >&2
  3607. configure: error:
  3608. Your OS or C++ compiler does not support -Wno-cast-function-type.
  3609. This compile flag is required.
  3610. EOF
  3611. exit 1
  3612. fi
  3613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wimplicit-fallthrough=0" >&5
  3614. printf %s "checking whether the compiler understands -Wimplicit-fallthrough=0... " >&6; }
  3615. if test ${ax_cv_prog_cc_wimplicit_fallthrough+y}
  3616. then :
  3617. printf %s "(cached) " >&6
  3618. else $as_nop
  3619. ac_ext=cpp
  3620. ac_cpp='$CXXCPP $CPPFLAGS'
  3621. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3622. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3623. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3624. ac_saved_flags="$CXXFLAGS"
  3625. CXXFLAGS="-Werror -Wimplicit-fallthrough=0"
  3626. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3627. /* end build/confdefs.h. */
  3628. int
  3629. main (void)
  3630. {
  3631. ;
  3632. return 0;
  3633. }
  3634. _ACEOF
  3635. if ac_fn_cxx_try_compile "$LINENO"
  3636. then :
  3637. ax_cv_prog_cc_wimplicit_fallthrough="yes"
  3638. else $as_nop
  3639. ax_cv_prog_cc_wimplicit_fallthrough="no"
  3640. fi
  3641. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3642. CXXFLAGS="$ac_saved_flags"
  3643. ac_ext=cpp
  3644. ac_cpp='$CXXCPP $CPPFLAGS'
  3645. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3646. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3647. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3648. fi
  3649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wimplicit_fallthrough" >&5
  3650. printf "%s\n" "$ax_cv_prog_cc_wimplicit_fallthrough" >&6; }
  3651. if [ "$ax_cv_prog_cc_wimplicit_fallthrough" = "yes" ]; then
  3652. CXXFLAGS="$CXXFLAGS -Wimplicit-fallthrough=0"
  3653. elif [ -n "" ]; then
  3654. cat << 'EOF' >&2
  3655. configure: error:
  3656. Your OS or C++ compiler does not support -Wimplicit-fallthrough=0.
  3657. This compile flag is required.
  3658. EOF
  3659. exit 1
  3660. fi
  3661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3662. printf %s "checking whether the compiler understands -fstack-protector... " >&6; }
  3663. if test ${ax_cv_prog_cc_stackprotector+y}
  3664. then :
  3665. printf %s "(cached) " >&6
  3666. else $as_nop
  3667. ac_ext=cpp
  3668. ac_cpp='$CXXCPP $CPPFLAGS'
  3669. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3670. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3671. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3672. ac_saved_flags="$CXXFLAGS"
  3673. CXXFLAGS="-Werror -fstack-protector"
  3674. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3675. /* end build/confdefs.h. */
  3676. int
  3677. main (void)
  3678. {
  3679. ;
  3680. return 0;
  3681. }
  3682. _ACEOF
  3683. if ac_fn_cxx_try_compile "$LINENO"
  3684. then :
  3685. ax_cv_prog_cc_stackprotector="yes"
  3686. else $as_nop
  3687. ax_cv_prog_cc_stackprotector="no"
  3688. fi
  3689. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3690. CXXFLAGS="$ac_saved_flags"
  3691. ac_ext=cpp
  3692. ac_cpp='$CXXCPP $CPPFLAGS'
  3693. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3694. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3695. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3696. fi
  3697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3698. printf "%s\n" "$ax_cv_prog_cc_stackprotector" >&6; }
  3699. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3700. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3701. elif [ -n "" ]; then
  3702. cat << 'EOF' >&2
  3703. configure: error:
  3704. Your OS or C++ compiler does not support -fstack-protector.
  3705. This compile flag is required.
  3706. EOF
  3707. exit 1
  3708. fi
  3709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3710. printf %s "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3711. if test ${ax_cv_prog_cc_stackprotectorstrong+y}
  3712. then :
  3713. printf %s "(cached) " >&6
  3714. else $as_nop
  3715. ac_ext=cpp
  3716. ac_cpp='$CXXCPP $CPPFLAGS'
  3717. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3718. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3719. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3720. ac_saved_flags="$CXXFLAGS"
  3721. CXXFLAGS="-Werror -fstack-protector-strong"
  3722. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3723. /* end build/confdefs.h. */
  3724. int
  3725. main (void)
  3726. {
  3727. ;
  3728. return 0;
  3729. }
  3730. _ACEOF
  3731. if ac_fn_cxx_try_compile "$LINENO"
  3732. then :
  3733. ax_cv_prog_cc_stackprotectorstrong="yes"
  3734. else $as_nop
  3735. ax_cv_prog_cc_stackprotectorstrong="no"
  3736. fi
  3737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3738. CXXFLAGS="$ac_saved_flags"
  3739. ac_ext=cpp
  3740. ac_cpp='$CXXCPP $CPPFLAGS'
  3741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3744. fi
  3745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3746. printf "%s\n" "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3747. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3748. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3749. elif [ -n "" ]; then
  3750. cat << 'EOF' >&2
  3751. configure: error:
  3752. Your OS or C++ compiler does not support -fstack-protector-strong.
  3753. This compile flag is required.
  3754. EOF
  3755. exit 1
  3756. fi
  3757. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3758. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3759. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3760. LDFLAGS="${LDFLAGS} -fstack-protector"
  3761. fi
  3762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3763. printf %s "checking whether the compiler understands -Og... " >&6; }
  3764. if test ${ax_cv_prog_cc_Og+y}
  3765. then :
  3766. printf %s "(cached) " >&6
  3767. else $as_nop
  3768. ac_ext=cpp
  3769. ac_cpp='$CXXCPP $CPPFLAGS'
  3770. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3771. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3772. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3773. ac_saved_flags="$CXXFLAGS"
  3774. CXXFLAGS="-Werror -Og"
  3775. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3776. /* end build/confdefs.h. */
  3777. int
  3778. main (void)
  3779. {
  3780. ;
  3781. return 0;
  3782. }
  3783. _ACEOF
  3784. if ac_fn_cxx_try_compile "$LINENO"
  3785. then :
  3786. ax_cv_prog_cc_Og="yes"
  3787. else $as_nop
  3788. ax_cv_prog_cc_Og="no"
  3789. fi
  3790. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3791. CXXFLAGS="$ac_saved_flags"
  3792. ac_ext=cpp
  3793. ac_cpp='$CXXCPP $CPPFLAGS'
  3794. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3795. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3796. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3797. fi
  3798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  3799. printf "%s\n" "$ax_cv_prog_cc_Og" >&6; }
  3800. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  3801. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  3802. elif [ -n "" ]; then
  3803. cat << 'EOF' >&2
  3804. configure: error:
  3805. Your OS or C++ compiler does not support -Og.
  3806. This compile flag is required.
  3807. EOF
  3808. exit 1
  3809. fi
  3810. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  3811. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  3812. fi
  3813. #CXX_FLAG_CHECK_LINK([DEBCXXFLAGS], [-fsanitize=address], [fsanitize_address])
  3814. #if [[ "${ax_cv_prog_cc_fsanitize_address}" = "yes" ]]; then
  3815. # DEBLDFLAGS="${DEBLDFLAGS} -fsanitize=address"
  3816. # DEBCXXFLAGS="${DEBCXXFLAGS} -D__SANITIZE_ADDRESS__"
  3817. #fi
  3818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3819. printf %s "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3820. if test ${ax_cv_prog_cc_stackprotectorall+y}
  3821. then :
  3822. printf %s "(cached) " >&6
  3823. else $as_nop
  3824. ac_ext=cpp
  3825. ac_cpp='$CXXCPP $CPPFLAGS'
  3826. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3827. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3828. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3829. ac_saved_flags="$CXXFLAGS"
  3830. CXXFLAGS="-Werror -fstack-protector-all"
  3831. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3832. /* end build/confdefs.h. */
  3833. int
  3834. main (void)
  3835. {
  3836. ;
  3837. return 0;
  3838. }
  3839. _ACEOF
  3840. if ac_fn_cxx_try_compile "$LINENO"
  3841. then :
  3842. ax_cv_prog_cc_stackprotectorall="yes"
  3843. else $as_nop
  3844. ax_cv_prog_cc_stackprotectorall="no"
  3845. fi
  3846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3847. CXXFLAGS="$ac_saved_flags"
  3848. ac_ext=cpp
  3849. ac_cpp='$CXXCPP $CPPFLAGS'
  3850. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3851. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3852. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3853. fi
  3854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  3855. printf "%s\n" "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3856. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3857. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3858. elif [ -n "" ]; then
  3859. cat << 'EOF' >&2
  3860. configure: error:
  3861. Your OS or C++ compiler does not support -fstack-protector-all.
  3862. This compile flag is required.
  3863. EOF
  3864. exit 1
  3865. fi
  3866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wconditional-uninitialized" >&5
  3867. printf %s "checking whether the compiler understands -Wconditional-uninitialized... " >&6; }
  3868. if test ${ax_cv_prog_cc_w_conditional_uninitialized+y}
  3869. then :
  3870. printf %s "(cached) " >&6
  3871. else $as_nop
  3872. ac_ext=cpp
  3873. ac_cpp='$CXXCPP $CPPFLAGS'
  3874. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3875. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3876. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3877. ac_saved_flags="$CXXFLAGS"
  3878. CXXFLAGS="-Werror -Wconditional-uninitialized"
  3879. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3880. /* end build/confdefs.h. */
  3881. int
  3882. main (void)
  3883. {
  3884. ;
  3885. return 0;
  3886. }
  3887. _ACEOF
  3888. if ac_fn_cxx_try_compile "$LINENO"
  3889. then :
  3890. ax_cv_prog_cc_w_conditional_uninitialized="yes"
  3891. else $as_nop
  3892. ax_cv_prog_cc_w_conditional_uninitialized="no"
  3893. fi
  3894. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3895. CXXFLAGS="$ac_saved_flags"
  3896. ac_ext=cpp
  3897. ac_cpp='$CXXCPP $CPPFLAGS'
  3898. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3899. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3900. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3901. fi
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_w_conditional_uninitialized" >&5
  3903. printf "%s\n" "$ax_cv_prog_cc_w_conditional_uninitialized" >&6; }
  3904. if [ "$ax_cv_prog_cc_w_conditional_uninitialized" = "yes" ]; then
  3905. DEBCXXFLAGS="$DEBCXXFLAGS -Wconditional-uninitialized"
  3906. elif [ -n "" ]; then
  3907. cat << 'EOF' >&2
  3908. configure: error:
  3909. Your OS or C++ compiler does not support -Wconditional-uninitialized.
  3910. This compile flag is required.
  3911. EOF
  3912. exit 1
  3913. fi
  3914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
  3915. printf %s "checking whether the compiler understands -static-libstdc++... " >&6; }
  3916. if test ${ax_cv_prog_cc_static_libstdcxx+y}
  3917. then :
  3918. printf %s "(cached) " >&6
  3919. else $as_nop
  3920. ac_ext=cpp
  3921. ac_cpp='$CXXCPP $CPPFLAGS'
  3922. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3923. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3924. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3925. ac_saved_flags="$CXXFLAGS"
  3926. CXXFLAGS="-Werror -static-libstdc++"
  3927. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3928. /* end build/confdefs.h. */
  3929. int
  3930. main (void)
  3931. {
  3932. ;
  3933. return 0;
  3934. }
  3935. _ACEOF
  3936. if ac_fn_cxx_try_compile "$LINENO"
  3937. then :
  3938. ax_cv_prog_cc_static_libstdcxx="yes"
  3939. else $as_nop
  3940. ax_cv_prog_cc_static_libstdcxx="no"
  3941. fi
  3942. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3943. CXXFLAGS="$ac_saved_flags"
  3944. ac_ext=cpp
  3945. ac_cpp='$CXXCPP $CPPFLAGS'
  3946. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3947. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3948. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3949. fi
  3950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libstdcxx" >&5
  3951. printf "%s\n" "$ax_cv_prog_cc_static_libstdcxx" >&6; }
  3952. if [ "$ax_cv_prog_cc_static_libstdcxx" = "yes" ]; then
  3953. LDFLAGS="$LDFLAGS -static-libstdc++"
  3954. elif [ -n "" ]; then
  3955. cat << 'EOF' >&2
  3956. configure: error:
  3957. Your OS or C++ compiler does not support -static-libstdc++.
  3958. This compile flag is required.
  3959. EOF
  3960. exit 1
  3961. fi
  3962. #CXX_FLAG_CHECK([LDFLAGS], [-static-libgcc], [static_libgcc])
  3963. if [ "${ax_cv_prog_cc_static_libstdcxx}" = "yes" ]; then
  3964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static libstdc++" >&5
  3965. printf %s "checking for static libstdc++... " >&6; }
  3966. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3967. /* end build/confdefs.h. */
  3968. int
  3969. main (void)
  3970. {
  3971. ;
  3972. return 0;
  3973. }
  3974. _ACEOF
  3975. if ac_fn_cxx_try_link "$LINENO"
  3976. then :
  3977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  3978. printf "%s\n" "OK" >&6; }
  3979. else $as_nop
  3980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  3981. printf "%s\n" "not found." >&6; }
  3982. as_fn_error 1 "Static libstdc++ is rquired to build." "$LINENO" 5
  3983. fi
  3984. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  3985. conftest$ac_exeext conftest.$ac_ext
  3986. fi
  3987. CCDEPMODE=gcc
  3988. num=`$CXX -dumpversion | sed "s/^\([^.]*\).*/\1/" `
  3989. if [ "$num" -ge "3" ]; then
  3990. CCDEPMODE=gcc3
  3991. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -Wno-format-y2k"
  3992. GCC3_CXXFLAGS="-Woverloaded-virtual"
  3993. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute -Wwrite-strings -Wformat -Wformat-security"
  3994. fi
  3995. #checkpoint
  3996. cat >confcache <<\_ACEOF
  3997. # This file is a shell script that caches the results of configure
  3998. # tests run on this system so they can be shared between configure
  3999. # scripts and configure runs, see configure's option --config-cache.
  4000. # It is not useful on other systems. If it contains results you don't
  4001. # want to keep, you may remove or edit it.
  4002. #
  4003. # build/config.status only pays attention to the cache file if you give it
  4004. # the --recheck option to rerun configure.
  4005. #
  4006. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4007. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4008. # following values.
  4009. _ACEOF
  4010. # The following way of writing the cache mishandles newlines in values,
  4011. # but we know of no workaround that is simple, portable, and efficient.
  4012. # So, we kill variables containing newlines.
  4013. # Ultrix sh set writes to stderr and can't be redirected directly,
  4014. # and sets the high bit in the cache file unless we assign to the vars.
  4015. (
  4016. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4017. eval ac_val=\$$ac_var
  4018. case $ac_val in #(
  4019. *${as_nl}*)
  4020. case $ac_var in #(
  4021. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4022. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4023. esac
  4024. case $ac_var in #(
  4025. _ | IFS | as_nl) ;; #(
  4026. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4027. *) { eval $ac_var=; unset $ac_var;} ;;
  4028. esac ;;
  4029. esac
  4030. done
  4031. (set) 2>&1 |
  4032. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4033. *${as_nl}ac_space=\ *)
  4034. # `set' does not quote correctly, so add quotes: double-quote
  4035. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4036. sed -n \
  4037. "s/'/'\\\\''/g;
  4038. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4039. ;; #(
  4040. *)
  4041. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4042. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4043. ;;
  4044. esac |
  4045. sort
  4046. ) |
  4047. sed '
  4048. /^ac_cv_env_/b end
  4049. t clear
  4050. :clear
  4051. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  4052. t end
  4053. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4054. :end' >>confcache
  4055. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4056. if test -w "$cache_file"; then
  4057. if test "x$cache_file" != "x/dev/null"; then
  4058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4059. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  4060. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4061. cat confcache >"$cache_file"
  4062. else
  4063. case $cache_file in #(
  4064. */* | ?:*)
  4065. mv -f confcache "$cache_file"$$ &&
  4066. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4067. *)
  4068. mv -f confcache "$cache_file" ;;
  4069. esac
  4070. fi
  4071. fi
  4072. else
  4073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4074. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  4075. fi
  4076. fi
  4077. rm -f confcache
  4078. # Checks for programs
  4079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4080. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4081. set x ${MAKE-make}
  4082. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4083. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4084. then :
  4085. printf %s "(cached) " >&6
  4086. else $as_nop
  4087. cat >conftest.make <<\_ACEOF
  4088. SHELL = /bin/sh
  4089. all:
  4090. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4091. _ACEOF
  4092. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4093. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4094. *@@@%%%=?*=@@@%%%*)
  4095. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4096. *)
  4097. eval ac_cv_prog_make_${ac_make}_set=no;;
  4098. esac
  4099. rm -f conftest.make
  4100. fi
  4101. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4103. printf "%s\n" "yes" >&6; }
  4104. SET_MAKE=
  4105. else
  4106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4107. printf "%s\n" "no" >&6; }
  4108. SET_MAKE="MAKE=${MAKE-make}"
  4109. fi
  4110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4111. printf %s "checking for a sed that does not truncate output... " >&6; }
  4112. if test ${ac_cv_path_SED+y}
  4113. then :
  4114. printf %s "(cached) " >&6
  4115. else $as_nop
  4116. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4117. for ac_i in 1 2 3 4 5 6 7; do
  4118. ac_script="$ac_script$as_nl$ac_script"
  4119. done
  4120. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4121. { ac_script=; unset ac_script;}
  4122. if test -z "$SED"; then
  4123. ac_path_SED_found=false
  4124. # Loop through the user's path and test for each of PROGNAME-LIST
  4125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4126. for as_dir in $PATH
  4127. do
  4128. IFS=$as_save_IFS
  4129. case $as_dir in #(((
  4130. '') as_dir=./ ;;
  4131. */) ;;
  4132. *) as_dir=$as_dir/ ;;
  4133. esac
  4134. for ac_prog in sed gsed
  4135. do
  4136. for ac_exec_ext in '' $ac_executable_extensions; do
  4137. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4138. as_fn_executable_p "$ac_path_SED" || continue
  4139. # Check for GNU ac_path_SED and select it if it is found.
  4140. # Check for GNU $ac_path_SED
  4141. case `"$ac_path_SED" --version 2>&1` in
  4142. *GNU*)
  4143. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4144. *)
  4145. ac_count=0
  4146. printf %s 0123456789 >"conftest.in"
  4147. while :
  4148. do
  4149. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4150. mv "conftest.tmp" "conftest.in"
  4151. cp "conftest.in" "conftest.nl"
  4152. printf "%s\n" '' >> "conftest.nl"
  4153. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4154. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4155. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4156. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4157. # Best one so far, save it but keep looking for a better one
  4158. ac_cv_path_SED="$ac_path_SED"
  4159. ac_path_SED_max=$ac_count
  4160. fi
  4161. # 10*(2^10) chars as input seems more than enough
  4162. test $ac_count -gt 10 && break
  4163. done
  4164. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4165. esac
  4166. $ac_path_SED_found && break 3
  4167. done
  4168. done
  4169. done
  4170. IFS=$as_save_IFS
  4171. if test -z "$ac_cv_path_SED"; then
  4172. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4173. fi
  4174. else
  4175. ac_cv_path_SED=$SED
  4176. fi
  4177. fi
  4178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4179. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4180. SED="$ac_cv_path_SED"
  4181. rm -f conftest.sed
  4182. cat << 'EOF' > conftest.head
  4183. a
  4184. b
  4185. c
  4186. EOF
  4187. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  4188. do
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  4190. printf %s "checking whether $ac_prog works... " >&6; }
  4191. if test ${ac_cv_prog_HEAD_1+y}
  4192. then :
  4193. printf %s "(cached) " >&6
  4194. else $as_nop
  4195. if test -n "$HEAD_1"
  4196. then
  4197. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  4198. else
  4199. if test "`cat conftest.head | $ac_prog`" = "a";
  4200. then
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4202. printf "%s\n" "yes" >&6; }
  4203. ac_cv_prog_HEAD_1=$ac_prog
  4204. else
  4205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4206. printf "%s\n" "no" >&6; }
  4207. fi
  4208. fi
  4209. fi
  4210. test -n "$ac_cv_prog_HEAD_1" && break
  4211. done
  4212. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  4213. then
  4214. cat << 'EOF' >&2
  4215. configure: error:
  4216. This system seems to lack a working 'head -1' or 'head -n 1' command.
  4217. A working 'head -1' (or equivalent) command is required to compile Wraith.
  4218. EOF
  4219. exit 1
  4220. fi
  4221. rm -f conftest.head
  4222. HEAD_1=$ac_cv_prog_HEAD_1
  4223. # awk is needed for Tcl library and header checks, and eggdrop version subst
  4224. for ac_prog in gawk mawk nawk awk
  4225. do
  4226. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4227. set dummy $ac_prog; ac_word=$2
  4228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4229. printf %s "checking for $ac_word... " >&6; }
  4230. if test ${ac_cv_prog_AWK+y}
  4231. then :
  4232. printf %s "(cached) " >&6
  4233. else $as_nop
  4234. if test -n "$AWK"; then
  4235. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4236. else
  4237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4238. for as_dir in $PATH
  4239. do
  4240. IFS=$as_save_IFS
  4241. case $as_dir in #(((
  4242. '') as_dir=./ ;;
  4243. */) ;;
  4244. *) as_dir=$as_dir/ ;;
  4245. esac
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4248. ac_cv_prog_AWK="$ac_prog"
  4249. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4250. break 2
  4251. fi
  4252. done
  4253. done
  4254. IFS=$as_save_IFS
  4255. fi
  4256. fi
  4257. AWK=$ac_cv_prog_AWK
  4258. if test -n "$AWK"; then
  4259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4260. printf "%s\n" "$AWK" >&6; }
  4261. else
  4262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4263. printf "%s\n" "no" >&6; }
  4264. fi
  4265. test -n "$AWK" && break
  4266. done
  4267. if test "${AWK-x}" = "x"
  4268. then
  4269. cat << 'EOF' >&2
  4270. configure: error:
  4271. This system seems to lack a working 'awk' command.
  4272. A working 'awk' command is required to compile Wraith.
  4273. EOF
  4274. exit 1
  4275. fi
  4276. # basename is needed for Tcl library and header checks
  4277. # Extract the first word of "basename", so it can be a program name with args.
  4278. set dummy basename; ac_word=$2
  4279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4280. printf %s "checking for $ac_word... " >&6; }
  4281. if test ${ac_cv_prog_BASENAME+y}
  4282. then :
  4283. printf %s "(cached) " >&6
  4284. else $as_nop
  4285. if test -n "$BASENAME"; then
  4286. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  4287. else
  4288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4289. for as_dir in $PATH
  4290. do
  4291. IFS=$as_save_IFS
  4292. case $as_dir in #(((
  4293. '') as_dir=./ ;;
  4294. */) ;;
  4295. *) as_dir=$as_dir/ ;;
  4296. esac
  4297. for ac_exec_ext in '' $ac_executable_extensions; do
  4298. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4299. ac_cv_prog_BASENAME="basename"
  4300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4301. break 2
  4302. fi
  4303. done
  4304. done
  4305. IFS=$as_save_IFS
  4306. fi
  4307. fi
  4308. BASENAME=$ac_cv_prog_BASENAME
  4309. if test -n "$BASENAME"; then
  4310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  4311. printf "%s\n" "$BASENAME" >&6; }
  4312. else
  4313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4314. printf "%s\n" "no" >&6; }
  4315. fi
  4316. if test "${BASENAME-x}" = "x"
  4317. then
  4318. cat << 'EOF' >&2
  4319. configure: error:
  4320. This system seems to lack a working 'basename' command.
  4321. A working 'basename' command is required to compile Wraith.
  4322. EOF
  4323. exit 1
  4324. fi
  4325. # Extract the first word of "objcopy", so it can be a program name with args.
  4326. set dummy objcopy; ac_word=$2
  4327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4328. printf %s "checking for $ac_word... " >&6; }
  4329. if test ${ac_cv_prog_OBJCOPY+y}
  4330. then :
  4331. printf %s "(cached) " >&6
  4332. else $as_nop
  4333. if test -n "$OBJCOPY"; then
  4334. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  4335. else
  4336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4337. for as_dir in $PATH
  4338. do
  4339. IFS=$as_save_IFS
  4340. case $as_dir in #(((
  4341. '') as_dir=./ ;;
  4342. */) ;;
  4343. *) as_dir=$as_dir/ ;;
  4344. esac
  4345. for ac_exec_ext in '' $ac_executable_extensions; do
  4346. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4347. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  4348. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4349. break 2
  4350. fi
  4351. done
  4352. done
  4353. IFS=$as_save_IFS
  4354. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  4355. fi
  4356. fi
  4357. OBJCOPY=$ac_cv_prog_OBJCOPY
  4358. if test -n "$OBJCOPY"; then
  4359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  4360. printf "%s\n" "$OBJCOPY" >&6; }
  4361. else
  4362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4363. printf "%s\n" "no" >&6; }
  4364. fi
  4365. # Extract the first word of "strip", so it can be a program name with args.
  4366. set dummy strip; ac_word=$2
  4367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4368. printf %s "checking for $ac_word... " >&6; }
  4369. if test ${ac_cv_prog_STRIP+y}
  4370. then :
  4371. printf %s "(cached) " >&6
  4372. else $as_nop
  4373. if test -n "$STRIP"; then
  4374. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4375. else
  4376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4377. for as_dir in $PATH
  4378. do
  4379. IFS=$as_save_IFS
  4380. case $as_dir in #(((
  4381. '') as_dir=./ ;;
  4382. */) ;;
  4383. *) as_dir=$as_dir/ ;;
  4384. esac
  4385. for ac_exec_ext in '' $ac_executable_extensions; do
  4386. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4387. ac_cv_prog_STRIP="strip"
  4388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4389. break 2
  4390. fi
  4391. done
  4392. done
  4393. IFS=$as_save_IFS
  4394. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  4395. fi
  4396. fi
  4397. STRIP=$ac_cv_prog_STRIP
  4398. if test -n "$STRIP"; then
  4399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4400. printf "%s\n" "$STRIP" >&6; }
  4401. else
  4402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4403. printf "%s\n" "no" >&6; }
  4404. fi
  4405. # Extract the first word of "gdiff", so it can be a program name with args.
  4406. set dummy gdiff; ac_word=$2
  4407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4408. printf %s "checking for $ac_word... " >&6; }
  4409. if test ${ac_cv_prog_DIFF+y}
  4410. then :
  4411. printf %s "(cached) " >&6
  4412. else $as_nop
  4413. if test -n "$DIFF"; then
  4414. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  4415. else
  4416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4417. for as_dir in $PATH
  4418. do
  4419. IFS=$as_save_IFS
  4420. case $as_dir in #(((
  4421. '') as_dir=./ ;;
  4422. */) ;;
  4423. *) as_dir=$as_dir/ ;;
  4424. esac
  4425. for ac_exec_ext in '' $ac_executable_extensions; do
  4426. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4427. ac_cv_prog_DIFF="gdiff"
  4428. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4429. break 2
  4430. fi
  4431. done
  4432. done
  4433. IFS=$as_save_IFS
  4434. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  4435. fi
  4436. fi
  4437. DIFF=$ac_cv_prog_DIFF
  4438. if test -n "$DIFF"; then
  4439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  4440. printf "%s\n" "$DIFF" >&6; }
  4441. else
  4442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4443. printf "%s\n" "no" >&6; }
  4444. fi
  4445. # Extract the first word of "uname", so it can be a program name with args.
  4446. set dummy uname; ac_word=$2
  4447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4448. printf %s "checking for $ac_word... " >&6; }
  4449. if test ${ac_cv_prog_UNAME+y}
  4450. then :
  4451. printf %s "(cached) " >&6
  4452. else $as_nop
  4453. if test -n "$UNAME"; then
  4454. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  4455. else
  4456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4457. for as_dir in $PATH
  4458. do
  4459. IFS=$as_save_IFS
  4460. case $as_dir in #(((
  4461. '') as_dir=./ ;;
  4462. */) ;;
  4463. *) as_dir=$as_dir/ ;;
  4464. esac
  4465. for ac_exec_ext in '' $ac_executable_extensions; do
  4466. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4467. ac_cv_prog_UNAME="uname"
  4468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4469. break 2
  4470. fi
  4471. done
  4472. done
  4473. IFS=$as_save_IFS
  4474. fi
  4475. fi
  4476. UNAME=$ac_cv_prog_UNAME
  4477. if test -n "$UNAME"; then
  4478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4479. printf "%s\n" "$UNAME" >&6; }
  4480. else
  4481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4482. printf "%s\n" "no" >&6; }
  4483. fi
  4484. # Test the os and set the module linking settings
  4485. USE_STATIC=yes
  4486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  4487. printf %s "checking system type... " >&6; }
  4488. if test ${egg_cv_var_system_type+y}
  4489. then :
  4490. printf %s "(cached) " >&6
  4491. else $as_nop
  4492. egg_cv_var_system_type=`$UNAME -s`
  4493. fi
  4494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  4495. printf "%s\n" "$egg_cv_var_system_type" >&6; }
  4496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  4497. printf %s "checking system release... " >&6; }
  4498. if test ${egg_cv_var_system_release+y}
  4499. then :
  4500. printf %s "(cached) " >&6
  4501. else $as_nop
  4502. egg_cv_var_system_release=`$UNAME -r`
  4503. fi
  4504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  4505. printf "%s\n" "$egg_cv_var_system_release" >&6; }
  4506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  4507. printf %s "checking system machine... " >&6; }
  4508. if test ${egg_cv_var_system_machine+y}
  4509. then :
  4510. printf %s "(cached) " >&6
  4511. else $as_nop
  4512. egg_cv_var_system_machine=`$UNAME -m`
  4513. fi
  4514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  4515. printf "%s\n" "$egg_cv_var_system_machine" >&6; }
  4516. BUILDOS="$egg_cv_var_system_type"
  4517. BUILDARCH="$egg_cv_var_system_machine"
  4518. case "$egg_cv_var_system_type" in
  4519. BSD/OS)
  4520. ;;
  4521. IRIX)
  4522. ;;
  4523. HP-UX)
  4524. printf "%s\n" "#define MD32_XARRAY 1" >>build/confdefs.h
  4525. ;;
  4526. Ultrix)
  4527. SHELL=/bin/sh5
  4528. ;;
  4529. SINIX*)
  4530. ;;
  4531. BeOS)
  4532. ;;
  4533. Linux)
  4534. ;;
  4535. Lynx)
  4536. ;;
  4537. QNX)
  4538. ;;
  4539. OSF1)
  4540. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4541. V*)
  4542. if test "$AWK" = "gawk"
  4543. then
  4544. AWK=awk
  4545. fi
  4546. ;;
  4547. 1.0|1.1|1.2)
  4548. printf "%s\n" "#define OSF1_HACKS 1" >>build/confdefs.h
  4549. ;;
  4550. 1.*)
  4551. printf "%s\n" "#define OSF1_HACKS 1" >>build/confdefs.h
  4552. ;;
  4553. *)
  4554. ;;
  4555. esac
  4556. printf "%s\n" "#define STOP_UAC 1" >>build/confdefs.h
  4557. printf "%s\n" "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  4558. ;;
  4559. SunOS)
  4560. SUNOS="yes"
  4561. USE_STATIC="no"
  4562. ;;
  4563. Darwin)
  4564. USE_STATIC="no"
  4565. ;;
  4566. *BSD)
  4567. # FreeBSD/OpenBSD/NetBSD
  4568. ;;
  4569. *)
  4570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4571. printf %s "checking if system is Mach based... " >&6; }
  4572. if test -r /mach
  4573. then
  4574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4575. printf "%s\n" "yes" >&6; }
  4576. printf "%s\n" "#define BORGCUBES 1" >>build/confdefs.h
  4577. else
  4578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4579. printf "%s\n" "no" >&6; }
  4580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4581. printf %s "checking if system is QNX... " >&6; }
  4582. if test -r /cmds
  4583. then
  4584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4585. printf "%s\n" "yes" >&6; }
  4586. else
  4587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4588. printf "%s\n" "no" >&6; }
  4589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4590. printf "%s\n" "Something unknown!" >&6; }
  4591. fi
  4592. fi
  4593. ;;
  4594. esac
  4595. # Check for IPv6 support
  4596. #EGG_IPV6_SUPPORTED
  4597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4598. printf %s "checking whether IPv6 is enabled... " >&6; }
  4599. # Check whether --enable-ipv6 was given.
  4600. if test ${enable_ipv6+y}
  4601. then :
  4602. enableval=$enable_ipv6;
  4603. enable_ipv6=$enableval
  4604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4605. printf "%s\n" "$enableval" >&6; }
  4606. else $as_nop
  4607. # default if not given is ENABLED
  4608. if test "x$enableval" = "x"; then
  4609. enableval="yes"
  4610. fi
  4611. enable_ipv6=$enableval
  4612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4613. printf "%s\n" "$enableval" >&6; }
  4614. printf "%s\n" "#define USE_IPV6 1" >>build/confdefs.h
  4615. fi
  4616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4617. printf %s "checking for socklen_t... " >&6; }
  4618. if test ${egg_cv_socklen_t+y}
  4619. then :
  4620. printf %s "(cached) " >&6
  4621. else $as_nop
  4622. if test "$cross_compiling" = yes
  4623. then :
  4624. egg_cv_socklen_t=no
  4625. else $as_nop
  4626. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4627. /* end build/confdefs.h. */
  4628. #include <unistd.h>
  4629. #include <sys/types.h>
  4630. #include <sys/socket.h>
  4631. #include <netinet/in.h>
  4632. #include <arpa/inet.h>
  4633. int main()
  4634. {
  4635. socklen_t test = sizeof(int);
  4636. return 0;
  4637. }
  4638. _ACEOF
  4639. if ac_fn_cxx_try_run "$LINENO"
  4640. then :
  4641. egg_cv_socklen_t=yes
  4642. else $as_nop
  4643. egg_cv_socklen_t=no
  4644. fi
  4645. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4646. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4647. fi
  4648. fi
  4649. if test "$egg_cv_socklen_t" = "yes"; then
  4650. printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4652. printf "%s\n" "yes" >&6; }
  4653. else
  4654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4655. printf "%s\n" "no" >&6; }
  4656. fi
  4657. # Check for inconsistent random() functions
  4658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4659. printf %s "checking for random limit... " >&6; }
  4660. case "$egg_cv_var_system_type" in
  4661. SunOS) RMAX=0x7FFFFFFF
  4662. ;;
  4663. *) RMAX=RAND_MAX
  4664. ;;
  4665. esac
  4666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4667. printf "%s\n" "$RMAX" >&6; }
  4668. printf "%s\n" "#define RANDOM_MAX $RMAX" >>build/confdefs.h
  4669. # Create static binaries
  4670. if test "$USE_STATIC" = "yes"
  4671. then
  4672. if test -n "$GXX"
  4673. then
  4674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4675. printf %s "checking whether the compiler understands -static... " >&6; }
  4676. if test ${egg_cv_var_ccstatic+y}
  4677. then :
  4678. printf %s "(cached) " >&6
  4679. else $as_nop
  4680. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. /* end build/confdefs.h. */
  4682. int
  4683. main (void)
  4684. {
  4685. ;
  4686. return 0;
  4687. }
  4688. _ACEOF
  4689. if ac_fn_cxx_try_compile "$LINENO"
  4690. then :
  4691. egg_cv_var_ccstatic="yes"
  4692. else $as_nop
  4693. egg_cv_var_ccstatic="no"
  4694. fi
  4695. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4696. fi
  4697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4698. printf "%s\n" "$egg_cv_var_ccstatic" >&6; }
  4699. if ! test "$egg_cv_var_ccstatic" = "yes"
  4700. then
  4701. cat << 'EOF' >&2
  4702. configure: error:
  4703. Your OS or C++ compiler does not support -static.
  4704. This compile flag is required for the botpack on this OS.
  4705. EOF
  4706. exit 1
  4707. fi
  4708. fi
  4709. STATIC="-static"
  4710. else
  4711. STATIC=""
  4712. fi
  4713. #checkpoint
  4714. cat >confcache <<\_ACEOF
  4715. # This file is a shell script that caches the results of configure
  4716. # tests run on this system so they can be shared between configure
  4717. # scripts and configure runs, see configure's option --config-cache.
  4718. # It is not useful on other systems. If it contains results you don't
  4719. # want to keep, you may remove or edit it.
  4720. #
  4721. # build/config.status only pays attention to the cache file if you give it
  4722. # the --recheck option to rerun configure.
  4723. #
  4724. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4725. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4726. # following values.
  4727. _ACEOF
  4728. # The following way of writing the cache mishandles newlines in values,
  4729. # but we know of no workaround that is simple, portable, and efficient.
  4730. # So, we kill variables containing newlines.
  4731. # Ultrix sh set writes to stderr and can't be redirected directly,
  4732. # and sets the high bit in the cache file unless we assign to the vars.
  4733. (
  4734. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4735. eval ac_val=\$$ac_var
  4736. case $ac_val in #(
  4737. *${as_nl}*)
  4738. case $ac_var in #(
  4739. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4740. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4741. esac
  4742. case $ac_var in #(
  4743. _ | IFS | as_nl) ;; #(
  4744. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4745. *) { eval $ac_var=; unset $ac_var;} ;;
  4746. esac ;;
  4747. esac
  4748. done
  4749. (set) 2>&1 |
  4750. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4751. *${as_nl}ac_space=\ *)
  4752. # `set' does not quote correctly, so add quotes: double-quote
  4753. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4754. sed -n \
  4755. "s/'/'\\\\''/g;
  4756. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4757. ;; #(
  4758. *)
  4759. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4760. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4761. ;;
  4762. esac |
  4763. sort
  4764. ) |
  4765. sed '
  4766. /^ac_cv_env_/b end
  4767. t clear
  4768. :clear
  4769. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  4770. t end
  4771. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4772. :end' >>confcache
  4773. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4774. if test -w "$cache_file"; then
  4775. if test "x$cache_file" != "x/dev/null"; then
  4776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4777. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  4778. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4779. cat confcache >"$cache_file"
  4780. else
  4781. case $cache_file in #(
  4782. */* | ?:*)
  4783. mv -f confcache "$cache_file"$$ &&
  4784. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4785. *)
  4786. mv -f confcache "$cache_file" ;;
  4787. esac
  4788. fi
  4789. fi
  4790. else
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4792. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  4793. fi
  4794. fi
  4795. rm -f confcache
  4796. # Checks for system libraries
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4798. printf %s "checking for socket in -lsocket... " >&6; }
  4799. if test ${ac_cv_lib_socket_socket+y}
  4800. then :
  4801. printf %s "(cached) " >&6
  4802. else $as_nop
  4803. ac_check_lib_save_LIBS=$LIBS
  4804. LIBS="-lsocket $LIBS"
  4805. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4806. /* end build/confdefs.h. */
  4807. namespace conftest {
  4808. extern "C" int socket ();
  4809. }
  4810. int
  4811. main (void)
  4812. {
  4813. return conftest::socket ();
  4814. ;
  4815. return 0;
  4816. }
  4817. _ACEOF
  4818. if ac_fn_cxx_try_link "$LINENO"
  4819. then :
  4820. ac_cv_lib_socket_socket=yes
  4821. else $as_nop
  4822. ac_cv_lib_socket_socket=no
  4823. fi
  4824. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4825. conftest$ac_exeext conftest.$ac_ext
  4826. LIBS=$ac_check_lib_save_LIBS
  4827. fi
  4828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4829. printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
  4830. if test "x$ac_cv_lib_socket_socket" = xyes
  4831. then :
  4832. printf "%s\n" "#define HAVE_LIBSOCKET 1" >>build/confdefs.h
  4833. LIBS="-lsocket $LIBS"
  4834. fi
  4835. # AC_CHECK_LIB(nsl, connect)
  4836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4837. printf %s "checking for dlopen in -ldl... " >&6; }
  4838. if test ${ac_cv_lib_dl_dlopen+y}
  4839. then :
  4840. printf %s "(cached) " >&6
  4841. else $as_nop
  4842. ac_check_lib_save_LIBS=$LIBS
  4843. LIBS="-ldl $LIBS"
  4844. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4845. /* end build/confdefs.h. */
  4846. namespace conftest {
  4847. extern "C" int dlopen ();
  4848. }
  4849. int
  4850. main (void)
  4851. {
  4852. return conftest::dlopen ();
  4853. ;
  4854. return 0;
  4855. }
  4856. _ACEOF
  4857. if ac_fn_cxx_try_link "$LINENO"
  4858. then :
  4859. ac_cv_lib_dl_dlopen=yes
  4860. else $as_nop
  4861. ac_cv_lib_dl_dlopen=no
  4862. fi
  4863. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4864. conftest$ac_exeext conftest.$ac_ext
  4865. LIBS=$ac_check_lib_save_LIBS
  4866. fi
  4867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4868. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  4869. if test "x$ac_cv_lib_dl_dlopen" = xyes
  4870. then :
  4871. printf "%s\n" "#define HAVE_LIBDL 1" >>build/confdefs.h
  4872. LIBS="-ldl $LIBS"
  4873. fi
  4874. if test "$SUNOS" = "yes"; then
  4875. # For suns without yp
  4876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4877. printf %s "checking for main in -ldl... " >&6; }
  4878. if test ${ac_cv_lib_dl_main+y}
  4879. then :
  4880. printf %s "(cached) " >&6
  4881. else $as_nop
  4882. ac_check_lib_save_LIBS=$LIBS
  4883. LIBS="-ldl $LIBS"
  4884. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4885. /* end build/confdefs.h. */
  4886. namespace conftest {
  4887. extern "C" int main ();
  4888. }
  4889. int
  4890. main (void)
  4891. {
  4892. return conftest::main ();
  4893. ;
  4894. return 0;
  4895. }
  4896. _ACEOF
  4897. if ac_fn_cxx_try_link "$LINENO"
  4898. then :
  4899. ac_cv_lib_dl_main=yes
  4900. else $as_nop
  4901. ac_cv_lib_dl_main=no
  4902. fi
  4903. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4904. conftest$ac_exeext conftest.$ac_ext
  4905. LIBS=$ac_check_lib_save_LIBS
  4906. fi
  4907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4908. printf "%s\n" "$ac_cv_lib_dl_main" >&6; }
  4909. if test "x$ac_cv_lib_dl_main" = xyes
  4910. then :
  4911. printf "%s\n" "#define HAVE_LIBDL 1" >>build/confdefs.h
  4912. LIBS="-ldl $LIBS"
  4913. fi
  4914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4915. printf %s "checking for main in -lsocket... " >&6; }
  4916. if test ${ac_cv_lib_socket_main+y}
  4917. then :
  4918. printf %s "(cached) " >&6
  4919. else $as_nop
  4920. ac_check_lib_save_LIBS=$LIBS
  4921. LIBS="-lsocket $LIBS"
  4922. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4923. /* end build/confdefs.h. */
  4924. namespace conftest {
  4925. extern "C" int main ();
  4926. }
  4927. int
  4928. main (void)
  4929. {
  4930. return conftest::main ();
  4931. ;
  4932. return 0;
  4933. }
  4934. _ACEOF
  4935. if ac_fn_cxx_try_link "$LINENO"
  4936. then :
  4937. ac_cv_lib_socket_main=yes
  4938. else $as_nop
  4939. ac_cv_lib_socket_main=no
  4940. fi
  4941. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4942. conftest$ac_exeext conftest.$ac_ext
  4943. LIBS=$ac_check_lib_save_LIBS
  4944. fi
  4945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4946. printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
  4947. if test "x$ac_cv_lib_socket_main" = xyes
  4948. then :
  4949. printf "%s\n" "#define HAVE_LIBSOCKET 1" >>build/confdefs.h
  4950. LIBS="-lsocket $LIBS"
  4951. fi
  4952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4953. printf %s "checking for main in -lnsl... " >&6; }
  4954. if test ${ac_cv_lib_nsl_main+y}
  4955. then :
  4956. printf %s "(cached) " >&6
  4957. else $as_nop
  4958. ac_check_lib_save_LIBS=$LIBS
  4959. LIBS="-lnsl $LIBS"
  4960. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4961. /* end build/confdefs.h. */
  4962. namespace conftest {
  4963. extern "C" int main ();
  4964. }
  4965. int
  4966. main (void)
  4967. {
  4968. return conftest::main ();
  4969. ;
  4970. return 0;
  4971. }
  4972. _ACEOF
  4973. if ac_fn_cxx_try_link "$LINENO"
  4974. then :
  4975. ac_cv_lib_nsl_main=yes
  4976. else $as_nop
  4977. ac_cv_lib_nsl_main=no
  4978. fi
  4979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4980. conftest$ac_exeext conftest.$ac_ext
  4981. LIBS=$ac_check_lib_save_LIBS
  4982. fi
  4983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4984. printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
  4985. if test "x$ac_cv_lib_nsl_main" = xyes
  4986. then :
  4987. printf "%s\n" "#define HAVE_LIBNSL 1" >>build/confdefs.h
  4988. LIBS="-lnsl $LIBS"
  4989. fi
  4990. fi
  4991. ac_header= ac_cache=
  4992. for ac_item in $ac_header_cxx_list
  4993. do
  4994. if test $ac_cache; then
  4995. ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4996. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4997. printf "%s\n" "#define $ac_item 1" >> build/confdefs.h
  4998. fi
  4999. ac_header= ac_cache=
  5000. elif test $ac_header; then
  5001. ac_cache=$ac_item
  5002. else
  5003. ac_header=$ac_item
  5004. fi
  5005. done
  5006. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  5007. then :
  5008. printf "%s\n" "#define STDC_HEADERS 1" >>build/confdefs.h
  5009. fi
  5010. LIBELF_DIR="lib/libelf/lib"
  5011. LIBELF_LIB="\$(top_builddir)/${LIBELF_DIR}/libelf.a"
  5012. LIBELF_BUNDLED="${LIBELF_LIB}"
  5013. LIBELF_INCLUDE="-I\$(top_srcdir)/${LIBELF_DIR}"
  5014. for ac_header in gelf.h libelf.h
  5015. do :
  5016. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
  5017. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5018. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  5019. then :
  5020. cat >>build/confdefs.h <<_ACEOF
  5021. #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
  5022. _ACEOF
  5023. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  5024. #include \"gelf.h\"
  5025. #include \"libelf.h\"
  5026. "
  5027. if test "x$ac_cv_type_Elf_Note" = xyes
  5028. then :
  5029. printf "%s\n" "#define HAVE_ELF_NOTE 1" >>build/confdefs.h
  5030. printf "%s\n" "#define HAVE_GELF_H 1" >>build/confdefs.h
  5031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  5032. printf %s "checking for gelf_getehdr in -lelf... " >&6; }
  5033. if test ${ac_cv_lib_elf_gelf_getehdr+y}
  5034. then :
  5035. printf %s "(cached) " >&6
  5036. else $as_nop
  5037. ac_check_lib_save_LIBS=$LIBS
  5038. LIBS="-lelf $LIBS"
  5039. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5040. /* end build/confdefs.h. */
  5041. namespace conftest {
  5042. extern "C" int gelf_getehdr ();
  5043. }
  5044. int
  5045. main (void)
  5046. {
  5047. return conftest::gelf_getehdr ();
  5048. ;
  5049. return 0;
  5050. }
  5051. _ACEOF
  5052. if ac_fn_cxx_try_link "$LINENO"
  5053. then :
  5054. ac_cv_lib_elf_gelf_getehdr=yes
  5055. else $as_nop
  5056. ac_cv_lib_elf_gelf_getehdr=no
  5057. fi
  5058. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5059. conftest$ac_exeext conftest.$ac_ext
  5060. LIBS=$ac_check_lib_save_LIBS
  5061. fi
  5062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  5063. printf "%s\n" "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  5064. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes
  5065. then :
  5066. printf "%s\n" "#define HAVE_LIBELF 1" >>build/confdefs.h
  5067. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  5068. LIBELF_BUNDLED=
  5069. LIBELF_INCLUDE=
  5070. fi
  5071. fi
  5072. fi
  5073. done
  5074. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  5075. # Checks for header files
  5076. ac_header_dirent=no
  5077. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5078. as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5080. printf %s "checking for $ac_hdr that defines DIR... " >&6; }
  5081. if eval test \${$as_ac_Header+y}
  5082. then :
  5083. printf %s "(cached) " >&6
  5084. else $as_nop
  5085. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5086. /* end build/confdefs.h. */
  5087. #include <sys/types.h>
  5088. #include <$ac_hdr>
  5089. int
  5090. main (void)
  5091. {
  5092. if ((DIR *) 0)
  5093. return 0;
  5094. ;
  5095. return 0;
  5096. }
  5097. _ACEOF
  5098. if ac_fn_cxx_try_compile "$LINENO"
  5099. then :
  5100. eval "$as_ac_Header=yes"
  5101. else $as_nop
  5102. eval "$as_ac_Header=no"
  5103. fi
  5104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5105. fi
  5106. eval ac_res=\$$as_ac_Header
  5107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5108. printf "%s\n" "$ac_res" >&6; }
  5109. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  5110. then :
  5111. cat >>build/confdefs.h <<_ACEOF
  5112. #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5113. _ACEOF
  5114. ac_header_dirent=$ac_hdr; break
  5115. fi
  5116. done
  5117. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5118. if test $ac_header_dirent = dirent.h; then
  5119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5120. printf %s "checking for library containing opendir... " >&6; }
  5121. if test ${ac_cv_search_opendir+y}
  5122. then :
  5123. printf %s "(cached) " >&6
  5124. else $as_nop
  5125. ac_func_search_save_LIBS=$LIBS
  5126. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5127. /* end build/confdefs.h. */
  5128. namespace conftest {
  5129. extern "C" int opendir ();
  5130. }
  5131. int
  5132. main (void)
  5133. {
  5134. return conftest::opendir ();
  5135. ;
  5136. return 0;
  5137. }
  5138. _ACEOF
  5139. for ac_lib in '' dir
  5140. do
  5141. if test -z "$ac_lib"; then
  5142. ac_res="none required"
  5143. else
  5144. ac_res=-l$ac_lib
  5145. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5146. fi
  5147. if ac_fn_cxx_try_link "$LINENO"
  5148. then :
  5149. ac_cv_search_opendir=$ac_res
  5150. fi
  5151. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5152. conftest$ac_exeext
  5153. if test ${ac_cv_search_opendir+y}
  5154. then :
  5155. break
  5156. fi
  5157. done
  5158. if test ${ac_cv_search_opendir+y}
  5159. then :
  5160. else $as_nop
  5161. ac_cv_search_opendir=no
  5162. fi
  5163. rm conftest.$ac_ext
  5164. LIBS=$ac_func_search_save_LIBS
  5165. fi
  5166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5167. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  5168. ac_res=$ac_cv_search_opendir
  5169. if test "$ac_res" != no
  5170. then :
  5171. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5172. fi
  5173. else
  5174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5175. printf %s "checking for library containing opendir... " >&6; }
  5176. if test ${ac_cv_search_opendir+y}
  5177. then :
  5178. printf %s "(cached) " >&6
  5179. else $as_nop
  5180. ac_func_search_save_LIBS=$LIBS
  5181. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5182. /* end build/confdefs.h. */
  5183. namespace conftest {
  5184. extern "C" int opendir ();
  5185. }
  5186. int
  5187. main (void)
  5188. {
  5189. return conftest::opendir ();
  5190. ;
  5191. return 0;
  5192. }
  5193. _ACEOF
  5194. for ac_lib in '' x
  5195. do
  5196. if test -z "$ac_lib"; then
  5197. ac_res="none required"
  5198. else
  5199. ac_res=-l$ac_lib
  5200. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5201. fi
  5202. if ac_fn_cxx_try_link "$LINENO"
  5203. then :
  5204. ac_cv_search_opendir=$ac_res
  5205. fi
  5206. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5207. conftest$ac_exeext
  5208. if test ${ac_cv_search_opendir+y}
  5209. then :
  5210. break
  5211. fi
  5212. done
  5213. if test ${ac_cv_search_opendir+y}
  5214. then :
  5215. else $as_nop
  5216. ac_cv_search_opendir=no
  5217. fi
  5218. rm conftest.$ac_ext
  5219. LIBS=$ac_func_search_save_LIBS
  5220. fi
  5221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5222. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  5223. ac_res=$ac_cv_search_opendir
  5224. if test "$ac_res" != no
  5225. then :
  5226. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5227. fi
  5228. fi
  5229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5230. printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5231. if test ${ac_cv_header_sys_wait_h+y}
  5232. then :
  5233. printf %s "(cached) " >&6
  5234. else $as_nop
  5235. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5236. /* end build/confdefs.h. */
  5237. #include <sys/types.h>
  5238. #include <sys/wait.h>
  5239. #ifndef WEXITSTATUS
  5240. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5241. #endif
  5242. #ifndef WIFEXITED
  5243. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5244. #endif
  5245. int
  5246. main (void)
  5247. {
  5248. int s;
  5249. wait (&s);
  5250. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5251. ;
  5252. return 0;
  5253. }
  5254. _ACEOF
  5255. if ac_fn_cxx_try_compile "$LINENO"
  5256. then :
  5257. ac_cv_header_sys_wait_h=yes
  5258. else $as_nop
  5259. ac_cv_header_sys_wait_h=no
  5260. fi
  5261. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5262. fi
  5263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5264. printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
  5265. if test $ac_cv_header_sys_wait_h = yes; then
  5266. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  5267. fi
  5268. # Obsolete code to be removed.
  5269. if test $ac_cv_header_sys_time_h = yes; then
  5270. printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  5271. fi
  5272. # End of obsolete code.
  5273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5274. printf %s "checking whether stat file-mode macros are broken... " >&6; }
  5275. if test ${ac_cv_header_stat_broken+y}
  5276. then :
  5277. printf %s "(cached) " >&6
  5278. else $as_nop
  5279. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end build/confdefs.h. */
  5281. #include <sys/types.h>
  5282. #include <sys/stat.h>
  5283. #if defined S_ISBLK && defined S_IFDIR
  5284. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5285. #endif
  5286. #if defined S_ISBLK && defined S_IFCHR
  5287. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5288. #endif
  5289. #if defined S_ISLNK && defined S_IFREG
  5290. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5291. #endif
  5292. #if defined S_ISSOCK && defined S_IFREG
  5293. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5294. #endif
  5295. _ACEOF
  5296. if ac_fn_cxx_try_compile "$LINENO"
  5297. then :
  5298. ac_cv_header_stat_broken=no
  5299. else $as_nop
  5300. ac_cv_header_stat_broken=yes
  5301. fi
  5302. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5303. fi
  5304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5305. printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
  5306. if test $ac_cv_header_stat_broken = yes; then
  5307. printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  5308. fi
  5309. #checkpoint
  5310. cat >confcache <<\_ACEOF
  5311. # This file is a shell script that caches the results of configure
  5312. # tests run on this system so they can be shared between configure
  5313. # scripts and configure runs, see configure's option --config-cache.
  5314. # It is not useful on other systems. If it contains results you don't
  5315. # want to keep, you may remove or edit it.
  5316. #
  5317. # build/config.status only pays attention to the cache file if you give it
  5318. # the --recheck option to rerun configure.
  5319. #
  5320. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5321. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5322. # following values.
  5323. _ACEOF
  5324. # The following way of writing the cache mishandles newlines in values,
  5325. # but we know of no workaround that is simple, portable, and efficient.
  5326. # So, we kill variables containing newlines.
  5327. # Ultrix sh set writes to stderr and can't be redirected directly,
  5328. # and sets the high bit in the cache file unless we assign to the vars.
  5329. (
  5330. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5331. eval ac_val=\$$ac_var
  5332. case $ac_val in #(
  5333. *${as_nl}*)
  5334. case $ac_var in #(
  5335. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5336. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5337. esac
  5338. case $ac_var in #(
  5339. _ | IFS | as_nl) ;; #(
  5340. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5341. *) { eval $ac_var=; unset $ac_var;} ;;
  5342. esac ;;
  5343. esac
  5344. done
  5345. (set) 2>&1 |
  5346. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5347. *${as_nl}ac_space=\ *)
  5348. # `set' does not quote correctly, so add quotes: double-quote
  5349. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5350. sed -n \
  5351. "s/'/'\\\\''/g;
  5352. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5353. ;; #(
  5354. *)
  5355. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5356. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5357. ;;
  5358. esac |
  5359. sort
  5360. ) |
  5361. sed '
  5362. /^ac_cv_env_/b end
  5363. t clear
  5364. :clear
  5365. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  5366. t end
  5367. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5368. :end' >>confcache
  5369. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5370. if test -w "$cache_file"; then
  5371. if test "x$cache_file" != "x/dev/null"; then
  5372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5373. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  5374. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5375. cat confcache >"$cache_file"
  5376. else
  5377. case $cache_file in #(
  5378. */* | ?:*)
  5379. mv -f confcache "$cache_file"$$ &&
  5380. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5381. *)
  5382. mv -f confcache "$cache_file" ;;
  5383. esac
  5384. fi
  5385. fi
  5386. else
  5387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5388. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  5389. fi
  5390. fi
  5391. rm -f confcache
  5392. ac_fn_cxx_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  5393. if test "x$ac_cv_header_stdarg_h" = xyes
  5394. then :
  5395. printf "%s\n" "#define HAVE_STDARG_H 1" >>build/confdefs.h
  5396. fi
  5397. ac_fn_cxx_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  5398. if test "x$ac_cv_header_arpa_inet_h" = xyes
  5399. then :
  5400. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>build/confdefs.h
  5401. fi
  5402. ac_fn_cxx_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  5403. if test "x$ac_cv_header_fcntl_h" = xyes
  5404. then :
  5405. printf "%s\n" "#define HAVE_FCNTL_H 1" >>build/confdefs.h
  5406. fi
  5407. ac_fn_cxx_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  5408. if test "x$ac_cv_header_limits_h" = xyes
  5409. then :
  5410. printf "%s\n" "#define HAVE_LIMITS_H 1" >>build/confdefs.h
  5411. fi
  5412. ac_fn_cxx_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  5413. if test "x$ac_cv_header_locale_h" = xyes
  5414. then :
  5415. printf "%s\n" "#define HAVE_LOCALE_H 1" >>build/confdefs.h
  5416. fi
  5417. ac_fn_cxx_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  5418. if test "x$ac_cv_header_netdb_h" = xyes
  5419. then :
  5420. printf "%s\n" "#define HAVE_NETDB_H 1" >>build/confdefs.h
  5421. fi
  5422. ac_fn_cxx_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  5423. if test "x$ac_cv_header_netinet_in_h" = xyes
  5424. then :
  5425. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>build/confdefs.h
  5426. fi
  5427. ac_fn_cxx_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
  5428. if test "x$ac_cv_header_sys_file_h" = xyes
  5429. then :
  5430. printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>build/confdefs.h
  5431. fi
  5432. ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  5433. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  5434. then :
  5435. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>build/confdefs.h
  5436. fi
  5437. ac_fn_cxx_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  5438. if test "x$ac_cv_header_sys_param_h" = xyes
  5439. then :
  5440. printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>build/confdefs.h
  5441. fi
  5442. ac_fn_cxx_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  5443. if test "x$ac_cv_header_sys_socket_h" = xyes
  5444. then :
  5445. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>build/confdefs.h
  5446. fi
  5447. ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  5448. if test "x$ac_cv_header_wchar_h" = xyes
  5449. then :
  5450. printf "%s\n" "#define HAVE_WCHAR_H 1" >>build/confdefs.h
  5451. fi
  5452. ac_fn_cxx_check_header_compile "$LINENO" "sys/ptrace.h" "ac_cv_header_sys_ptrace_h" "$ac_includes_default"
  5453. if test "x$ac_cv_header_sys_ptrace_h" = xyes
  5454. then :
  5455. printf "%s\n" "#define HAVE_SYS_PTRACE_H 1" >>build/confdefs.h
  5456. fi
  5457. ac_fn_cxx_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
  5458. if test "x$ac_cv_header_paths_h" = xyes
  5459. then :
  5460. printf "%s\n" "#define HAVE_PATHS_H 1" >>build/confdefs.h
  5461. fi
  5462. ac_fn_cxx_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
  5463. if test "x$ac_cv_header_sys_prctl_h" = xyes
  5464. then :
  5465. printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>build/confdefs.h
  5466. fi
  5467. ac_fn_cxx_check_header_compile "$LINENO" "sys/procctl.h" "ac_cv_header_sys_procctl_h" "$ac_includes_default"
  5468. if test "x$ac_cv_header_sys_procctl_h" = xyes
  5469. then :
  5470. printf "%s\n" "#define HAVE_SYS_PROCCTL_H 1" >>build/confdefs.h
  5471. fi
  5472. #checkpoint
  5473. cat >confcache <<\_ACEOF
  5474. # This file is a shell script that caches the results of configure
  5475. # tests run on this system so they can be shared between configure
  5476. # scripts and configure runs, see configure's option --config-cache.
  5477. # It is not useful on other systems. If it contains results you don't
  5478. # want to keep, you may remove or edit it.
  5479. #
  5480. # build/config.status only pays attention to the cache file if you give it
  5481. # the --recheck option to rerun configure.
  5482. #
  5483. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5484. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5485. # following values.
  5486. _ACEOF
  5487. # The following way of writing the cache mishandles newlines in values,
  5488. # but we know of no workaround that is simple, portable, and efficient.
  5489. # So, we kill variables containing newlines.
  5490. # Ultrix sh set writes to stderr and can't be redirected directly,
  5491. # and sets the high bit in the cache file unless we assign to the vars.
  5492. (
  5493. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5494. eval ac_val=\$$ac_var
  5495. case $ac_val in #(
  5496. *${as_nl}*)
  5497. case $ac_var in #(
  5498. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5499. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5500. esac
  5501. case $ac_var in #(
  5502. _ | IFS | as_nl) ;; #(
  5503. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5504. *) { eval $ac_var=; unset $ac_var;} ;;
  5505. esac ;;
  5506. esac
  5507. done
  5508. (set) 2>&1 |
  5509. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5510. *${as_nl}ac_space=\ *)
  5511. # `set' does not quote correctly, so add quotes: double-quote
  5512. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5513. sed -n \
  5514. "s/'/'\\\\''/g;
  5515. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5516. ;; #(
  5517. *)
  5518. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5519. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5520. ;;
  5521. esac |
  5522. sort
  5523. ) |
  5524. sed '
  5525. /^ac_cv_env_/b end
  5526. t clear
  5527. :clear
  5528. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  5529. t end
  5530. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5531. :end' >>confcache
  5532. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5533. if test -w "$cache_file"; then
  5534. if test "x$cache_file" != "x/dev/null"; then
  5535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5536. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  5537. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5538. cat confcache >"$cache_file"
  5539. else
  5540. case $cache_file in #(
  5541. */* | ?:*)
  5542. mv -f confcache "$cache_file"$$ &&
  5543. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5544. *)
  5545. mv -f confcache "$cache_file" ;;
  5546. esac
  5547. fi
  5548. fi
  5549. else
  5550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5551. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  5552. fi
  5553. fi
  5554. rm -f confcache
  5555. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5556. #AC_CHECK_HEADERS(zlib.h)
  5557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5558. printf %s "checking for path to OpenSSL... " >&6; }
  5559. # Check whether --with-openssl was given.
  5560. if test ${with_openssl+y}
  5561. then :
  5562. withval=$with_openssl; with_openssl_path=$withval
  5563. else $as_nop
  5564. with_openssl_path=auto
  5565. fi
  5566. cf_openssl_basedir=""
  5567. cf_openssl_libdir=""
  5568. if test "$with_openssl_path" != "auto"; then
  5569. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5570. cf_openssl_libdir="${cf_openssl_basedir}/lib"
  5571. else
  5572. if test -f "/usr/include/openssl/opensslv.h" && test -f "/usr/lib64/libssl.so"; then
  5573. cf_openssl_libdir="/usr/lib64"
  5574. cf_openssl_basedir="/usr"
  5575. else
  5576. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5577. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5578. cf_openssl_basedir="${dirs}"
  5579. cf_openssl_libdir="${cf_openssl_basedir}/lib"
  5580. break
  5581. fi
  5582. done
  5583. unset dirs
  5584. fi
  5585. fi
  5586. if test ! -z "$cf_openssl_basedir"; then
  5587. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_libdir}/libssl.so"; then
  5588. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5589. SSL_LIBS="-L${cf_openssl_libdir}"
  5590. else
  5591. cf_openssl_basedir=""
  5592. cf_openssl_libdir=""
  5593. fi
  5594. else
  5595. if test -f "/usr/include/openssl/opensslv.h" ; then
  5596. cf_openssl_basedir="/usr"
  5597. cf_openssl_libdir="/usr/lib"
  5598. fi
  5599. fi
  5600. SSL_INCLUDES="${SSL_INCLUDES} -DOPENSSL_API_COMPAT=0x10000000L"
  5601. if test ! -z "$cf_openssl_basedir"; then
  5602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5603. printf "%s\n" "$cf_openssl_basedir" >&6; }
  5604. else
  5605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5606. printf "%s\n" "not found" >&6; }
  5607. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5608. fi
  5609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL Lib" >&5
  5610. printf %s "checking for path to OpenSSL Lib... " >&6; }
  5611. # Check whether --with-openssl was given.
  5612. if test ${with_openssl+y}
  5613. then :
  5614. withval=$with_openssl; with_openssl_path=$withval
  5615. else $as_nop
  5616. with_openssl_path=auto
  5617. fi
  5618. if test ! -z "${cf_openssl_libdir}"; then
  5619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${cf_openssl_libdir}" >&5
  5620. printf "%s\n" "${cf_openssl_libdir}" >&6; }
  5621. else
  5622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5623. printf "%s\n" "not found" >&6; }
  5624. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5625. fi
  5626. SSL_LIBDIR="${cf_openssl_libdir}"
  5627. unset cf_openssl_basedir
  5628. unset cf_openssl_libdir
  5629. save_CXX="$CXX"
  5630. CXX="$CXX $SSL_INCLUDES"
  5631. save_LIBS="$LIBS"
  5632. LIBS="$LIBS $SSL_LIBS"
  5633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5634. printf %s "checking for OpenSSL version... " >&6; }
  5635. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5636. /* end build/confdefs.h. */
  5637. #include <openssl/opensslv.h>
  5638. int
  5639. main (void)
  5640. {
  5641. #if !defined(OPENSSL_VERSION_NUMBER)
  5642. #error "Missing openssl version"
  5643. #endif
  5644. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5645. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5646. #endif
  5647. ;
  5648. return 0;
  5649. }
  5650. _ACEOF
  5651. if ac_fn_cxx_try_compile "$LINENO"
  5652. then :
  5653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5654. printf "%s\n" "OK" >&6; }
  5655. else $as_nop
  5656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5657. printf "%s\n" "too old." >&6; }
  5658. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5659. fi
  5660. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5661. CXX="$CXX $SSL_LIBS"
  5662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5663. printf %s "checking for AES_encrypt in -lcrypto... " >&6; }
  5664. if test ${ac_cv_lib_crypto_AES_encrypt+y}
  5665. then :
  5666. printf %s "(cached) " >&6
  5667. else $as_nop
  5668. ac_check_lib_save_LIBS=$LIBS
  5669. LIBS="-lcrypto $LIBS"
  5670. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5671. /* end build/confdefs.h. */
  5672. namespace conftest {
  5673. extern "C" int AES_encrypt ();
  5674. }
  5675. int
  5676. main (void)
  5677. {
  5678. return conftest::AES_encrypt ();
  5679. ;
  5680. return 0;
  5681. }
  5682. _ACEOF
  5683. if ac_fn_cxx_try_link "$LINENO"
  5684. then :
  5685. ac_cv_lib_crypto_AES_encrypt=yes
  5686. else $as_nop
  5687. ac_cv_lib_crypto_AES_encrypt=no
  5688. fi
  5689. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5690. conftest$ac_exeext conftest.$ac_ext
  5691. LIBS=$ac_check_lib_save_LIBS
  5692. fi
  5693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5694. printf "%s\n" "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5695. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes
  5696. then :
  5697. if test "$USE_STATIC" = "yes"; then
  5698. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5699. else
  5700. SSL_LIBS="$SSL_LIBS -lcrypto"
  5701. fi
  5702. else $as_nop
  5703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5704. printf "%s\n" "not found." >&6; }
  5705. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5706. fi
  5707. CXX="$save_CXX"
  5708. LIBS="$save_LIBS"
  5709. printf "%s\n" "#define EGG_SSL_EXT 1" >>build/confdefs.h
  5710. # TCL checks
  5711. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5712. # found for download.
  5713. tclrecommendver="8.5.X"
  5714. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5715. # Tcl library filename prefixes, suffixes, and search paths.
  5716. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5717. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5718. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5719. tcl7.0 tcl70"
  5720. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5721. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5722. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5723. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5724. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5725. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5726. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5727. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5728. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5729. # Tcl header filenames and search paths.
  5730. tclheadernames="tcl.h"
  5731. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5732. /usr/local/include /usr/include \
  5733. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5734. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5735. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5736. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5737. /usr/local/pkgs/tcl/include /sys/include \
  5738. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5739. # Misc Tcl checks.
  5740. # Check whether --with-tcllib was given.
  5741. if test ${with_tcllib+y}
  5742. then :
  5743. withval=$with_tcllib; tcllibname="$withval"
  5744. fi
  5745. # Check whether --with-tclinc was given.
  5746. if test ${with_tclinc+y}
  5747. then :
  5748. withval=$with_tclinc; tclincname="$withval"
  5749. fi
  5750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5751. printf %s "checking whether TCL Script is enabled... " >&6; }
  5752. # Check whether --enable-script-tcl was given.
  5753. if test ${enable_script_tcl+y}
  5754. then :
  5755. enableval=$enable_script_tcl;
  5756. enable_script_tcl=$enableval
  5757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5758. printf "%s\n" "$enableval" >&6; }
  5759. else $as_nop
  5760. # default if not given is ENABLED
  5761. if test "x$enableval" = "x"; then
  5762. enableval="yes"
  5763. fi
  5764. enable_script_tcl=$enableval
  5765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5766. printf "%s\n" "$enableval" >&6; }
  5767. printf "%s\n" "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5768. fi
  5769. WARN=0
  5770. # Make sure either both or neither $tcllibname and $tclincname are set
  5771. if test "x$tcllibname" != x; then
  5772. if test "x$tclincname" = x; then
  5773. WARN=1
  5774. tcllibname=""
  5775. TCLLIB=""
  5776. TCLINC=""
  5777. fi
  5778. else
  5779. if test "x$tclincname" != x; then
  5780. WARN=1
  5781. tclincname=""
  5782. TCLLIB=""
  5783. TCLINC=""
  5784. fi
  5785. fi
  5786. if test "$WARN" = 1; then
  5787. cat << 'EOF' >&2
  5788. configure: WARNING:
  5789. You must specify both --with-tcllib and --with-tclinc for either to work.
  5790. configure will now attempt to autodetect both the Tcl library and header.
  5791. EOF
  5792. fi
  5793. WARN=0
  5794. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5795. if test "x$TCLLIB" != x; then
  5796. if test "x$TCLINC" = x; then
  5797. WARN=1
  5798. WVAR1=TCLLIB
  5799. WVAR2=TCLINC
  5800. TCLLIB=""
  5801. fi
  5802. else
  5803. if test "x$TCLINC" != x; then
  5804. WARN=1
  5805. WVAR1=TCLINC
  5806. WVAR2=TCLLIB
  5807. TCLINC=""
  5808. fi
  5809. fi
  5810. if test "$WARN" = 1; then
  5811. cat << EOF >&2
  5812. configure: WARNING:
  5813. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5814. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5815. configure will now attempt to autodetect both the Tcl library and header.
  5816. EOF
  5817. fi
  5818. # Look for Tcl library: if $tcllibname is set, check there first
  5819. if test "x$tcllibname" != x; then
  5820. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5821. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5822. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5823. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5824. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5825. else
  5826. cat << EOF >&2
  5827. configure: WARNING:
  5828. The file '$tcllibname' given to option --with-tcllib is not valid.
  5829. configure will now attempt to autodetect both the Tcl library and header.
  5830. EOF
  5831. tcllibname=""
  5832. tclincname=""
  5833. TCLLIB=""
  5834. TCLLIBFN=""
  5835. TCLINC=""
  5836. TCLINCFN=""
  5837. fi
  5838. fi
  5839. # Look for Tcl header: if $tclincname is set, check there first
  5840. if test "x$tclincname" != x; then
  5841. if test -f "$tclincname" && test -r "$tclincname"; then
  5842. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5843. TCLINCFN=`$BASENAME $tclincname`
  5844. else
  5845. cat << EOF >&2
  5846. configure: WARNING:
  5847. The file '$tclincname' given to option --with-tclinc is not valid.
  5848. configure will now attempt to autodetect both the Tcl library and header.
  5849. EOF
  5850. tcllibname=""
  5851. tclincname=""
  5852. TCLLIB=""
  5853. TCLLIBFN=""
  5854. TCLINC=""
  5855. TCLINCFN=""
  5856. fi
  5857. fi
  5858. # Look for Tcl library: if $TCLLIB is set, check there first
  5859. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5860. if test -d "$TCLLIB"; then
  5861. for tcllibfns in $tcllibnames; do
  5862. for tcllibext in $tcllibextensions; do
  5863. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5864. TCLLIBFN="${tcllibfns}${tcllibext}"
  5865. TCLLIBEXT="$tcllibext"
  5866. TCLLIBFNS="$tcllibfns"
  5867. break 2
  5868. fi
  5869. done
  5870. done
  5871. fi
  5872. if test "x$TCLLIBFN" = x; then
  5873. cat << 'EOF' >&2
  5874. configure: WARNING:
  5875. Environment variable TCLLIB was set, but incorrectly.
  5876. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5877. configure will now attempt to autodetect both the Tcl library and header.
  5878. EOF
  5879. TCLLIB=""
  5880. TCLLIBFN=""
  5881. TCLINC=""
  5882. TCLINCFN=""
  5883. fi
  5884. fi
  5885. # Look for Tcl header: if $TCLINC is set, check there first
  5886. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5887. if test -d "$TCLINC"; then
  5888. for tclheaderfn in $tclheadernames; do
  5889. if test -r "${TCLINC}/${tclheaderfn}"; then
  5890. TCLINCFN="$tclheaderfn"
  5891. break
  5892. fi
  5893. done
  5894. fi
  5895. if test "x$TCLINCFN" = x; then
  5896. cat << 'EOF' >&2
  5897. configure: WARNING:
  5898. Environment variable TCLINC was set, but incorrectly.
  5899. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5900. configure will now attempt to autodetect both the Tcl library and header.
  5901. EOF
  5902. TCLLIB=""
  5903. TCLLIBFN=""
  5904. TCLINC=""
  5905. TCLINCFN=""
  5906. fi
  5907. fi
  5908. if test "$enable_script_tcl" = "yes"; then
  5909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5910. printf %s "checking for Tcl library... " >&6; }
  5911. # Attempt autodetect for $TCLLIBFN if it's not set
  5912. if test "x$TCLLIBFN" != x; then
  5913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5914. printf "%s\n" "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5915. else
  5916. for tcllibfns in $tcllibnames; do
  5917. for tcllibext in $tcllibextensions; do
  5918. for tcllibpath in $tcllibpaths; do
  5919. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5921. printf "%s\n" "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5922. TCLLIB="$tcllibpath"
  5923. TCLLIBFN="${tcllibfns}${tcllibext}"
  5924. TCLLIBEXT="$tcllibext"
  5925. TCLLIBFNS="$tcllibfns"
  5926. break 3
  5927. fi
  5928. done
  5929. done
  5930. done
  5931. fi
  5932. # Show if $TCLLIBFN wasn't found
  5933. if test "x$TCLLIBFN" = x; then
  5934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5935. printf "%s\n" "not found" >&6; }
  5936. fi
  5937. fi
  5938. if test "$enable_script_tcl" = "yes"; then
  5939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5940. printf %s "checking for Tcl header... " >&6; }
  5941. # Attempt autodetect for $TCLINCFN if it's not set
  5942. if test "x$TCLINCFN" != x; then
  5943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5944. printf "%s\n" "using ${TCLINC}/${TCLINCFN}" >&6; }
  5945. else
  5946. for tclheaderpath in $tclheaderpaths; do
  5947. for tclheaderfn in $tclheadernames; do
  5948. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5950. printf "%s\n" "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5951. TCLINC="$tclheaderpath"
  5952. TCLINCFN="$tclheaderfn"
  5953. break 2
  5954. fi
  5955. done
  5956. done
  5957. # FreeBSD hack ...
  5958. if test "x$TCLINCFN" = x; then
  5959. for tcllibfns in $tcllibnames; do
  5960. for tclheaderpath in $tclheaderpaths; do
  5961. for tclheaderfn in $tclheadernames; do
  5962. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5964. printf "%s\n" "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5965. TCLINC="${tclheaderpath}/${tcllibfns}"
  5966. TCLINCFN="$tclheaderfn"
  5967. break 3
  5968. fi
  5969. done
  5970. done
  5971. done
  5972. fi
  5973. fi
  5974. TCL_INCLUDES=""
  5975. if ! test "x$TCLINC" = x; then
  5976. TCL_INCLUDES="-I$TCLINC"
  5977. fi
  5978. if test "x$TCLINCFN" = x; then
  5979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5980. printf "%s\n" "not found" >&6; }
  5981. fi
  5982. fi
  5983. if test "$enable_script_tcl" = "yes"; then
  5984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5985. printf %s "checking whether the Tcl system has changed... " >&6; }
  5986. egg_tcl_changed="yes"
  5987. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5988. if test "$egg_tcl_id" != ":::"; then
  5989. egg_tcl_cached="yes"
  5990. if test ${egg_cv_var_tcl_id+y}
  5991. then :
  5992. printf %s "(cached) " >&6
  5993. else $as_nop
  5994. egg_cv_var_tcl_id="$egg_tcl_id"
  5995. egg_tcl_cached="no"
  5996. fi
  5997. if test "$egg_tcl_cached" = yes; then
  5998. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5999. egg_tcl_changed="no"
  6000. else
  6001. egg_cv_var_tcl_id="$egg_tcl_id"
  6002. fi
  6003. fi
  6004. fi
  6005. if test "$egg_tcl_changed" = yes; then
  6006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6007. printf "%s\n" "yes" >&6; }
  6008. else
  6009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6010. printf "%s\n" "no" >&6; }
  6011. fi
  6012. fi
  6013. if test "$enable_script_tcl" = "yes"; then
  6014. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  6015. TCL_FOUND=0
  6016. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  6017. TCL_FOUND=1
  6018. # Check Tcl's version
  6019. if test "$egg_tcl_changed" = yes; then
  6020. unset egg_cv_var_tcl_version
  6021. fi
  6022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  6023. printf %s "checking for Tcl version... " >&6; }
  6024. if test ${egg_cv_var_tcl_version+y}
  6025. then :
  6026. printf %s "(cached) " >&6
  6027. else $as_nop
  6028. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/"/, "", $3); print $3}'`
  6029. fi
  6030. if test "x$egg_cv_var_tcl_version" != x; then
  6031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  6032. printf "%s\n" "$egg_cv_var_tcl_version" >&6; }
  6033. else
  6034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6035. printf "%s\n" "not found" >&6; }
  6036. TCL_FOUND=0
  6037. fi
  6038. # Check Tcl's patch level (if available)
  6039. if test "$egg_tcl_changed" = yes; then
  6040. unset egg_cv_var_tcl_patch_level
  6041. fi
  6042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  6043. printf %s "checking for Tcl patch level... " >&6; }
  6044. if test ${egg_cv_var_tcl_patch_level+y}
  6045. then :
  6046. printf %s "(cached) " >&6
  6047. else $as_nop
  6048. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/"/, "", $3); print $3}'`"
  6049. fi
  6050. if test "x$egg_cv_var_tcl_patch_level" != x; then
  6051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  6052. printf "%s\n" "$egg_cv_var_tcl_patch_level" >&6; }
  6053. else
  6054. egg_cv_var_tcl_patch_level="unknown"
  6055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  6056. printf "%s\n" "unknown" >&6; }
  6057. fi
  6058. fi
  6059. # Check if we found Tcl's version
  6060. if test "$TCL_FOUND" = 0; then
  6061. cat << 'EOF' >&2
  6062. configure: error:
  6063. Tcl cannot be found on this system.
  6064. Tcl is not required. Wraith will be compiled without TCL support. If you
  6065. already have Tcl installed on this system, please specify the path by
  6066. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  6067. --with-tclinc='/path/to/tcl.h' options.
  6068. EOF
  6069. enable_script_tcl="no"
  6070. else
  6071. printf "%s\n" "#define HAVE_LIBTCL 1" >>build/confdefs.h
  6072. fi
  6073. fi
  6074. if test "$enable_script_tcl" = "yes"; then
  6075. # Is this version of Tcl too old for us to use ?
  6076. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  6077. if test "$TCL_VER_PRE70" = yes; then
  6078. cat << EOF >&2
  6079. configure: error:
  6080. Your Tcl version is much too old for Wraith to use. You should
  6081. download and compile a more recent version. The most reliable
  6082. current version is $tclrecommendver and can be downloaded from
  6083. ${tclrecommendsite}.
  6084. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  6085. for more information.
  6086. EOF
  6087. exit 1
  6088. fi
  6089. fi
  6090. # Set variables for Tcl library tests
  6091. TCL_TEST_LIB="$TCLLIBFNS"
  6092. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  6093. if test "x$ac_cv_lib_pthread" != x; then
  6094. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  6095. fi
  6096. if test "$enable_script_tcl" = "yes"; then
  6097. if test "$egg_tcl_changed" = yes; then
  6098. unset egg_cv_var_tcl_free
  6099. fi
  6100. # Check for Tcl_Free()
  6101. as_ac_Lib=`printf "%s\n" "ac_cv_lib_$TCL_TEST_LIB""_Tcl_Free" | $as_tr_sh`
  6102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  6103. printf %s "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  6104. if eval test \${$as_ac_Lib+y}
  6105. then :
  6106. printf %s "(cached) " >&6
  6107. else $as_nop
  6108. ac_check_lib_save_LIBS=$LIBS
  6109. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6110. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6111. /* end build/confdefs.h. */
  6112. namespace conftest {
  6113. extern "C" int Tcl_Free ();
  6114. }
  6115. int
  6116. main (void)
  6117. {
  6118. return conftest::Tcl_Free ();
  6119. ;
  6120. return 0;
  6121. }
  6122. _ACEOF
  6123. if ac_fn_cxx_try_link "$LINENO"
  6124. then :
  6125. eval "$as_ac_Lib=yes"
  6126. else $as_nop
  6127. eval "$as_ac_Lib=no"
  6128. fi
  6129. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6130. conftest$ac_exeext conftest.$ac_ext
  6131. LIBS=$ac_check_lib_save_LIBS
  6132. fi
  6133. eval ac_res=\$$as_ac_Lib
  6134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6135. printf "%s\n" "$ac_res" >&6; }
  6136. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  6137. then :
  6138. egg_cv_var_tcl_free="yes"
  6139. else $as_nop
  6140. egg_cv_var_tcl_free="no"
  6141. fi
  6142. if test "$egg_cv_var_tcl_free" = yes; then
  6143. printf "%s\n" "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  6144. fi
  6145. fi
  6146. #EGG_TCL_CHECK_GETCURRENTTHREAD
  6147. #EGG_TCL_CHECK_GETTHREADDATA
  6148. if test "$enable_script_tcl" = "yes"; then
  6149. if test "$egg_tcl_changed" = yes; then
  6150. unset egg_cv_var_tcl_setnotifier
  6151. fi
  6152. # Check for Tcl_SetNotifier()
  6153. as_ac_Lib=`printf "%s\n" "ac_cv_lib_$TCL_TEST_LIB""_Tcl_SetNotifier" | $as_tr_sh`
  6154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  6155. printf %s "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  6156. if eval test \${$as_ac_Lib+y}
  6157. then :
  6158. printf %s "(cached) " >&6
  6159. else $as_nop
  6160. ac_check_lib_save_LIBS=$LIBS
  6161. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6162. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6163. /* end build/confdefs.h. */
  6164. namespace conftest {
  6165. extern "C" int Tcl_SetNotifier ();
  6166. }
  6167. int
  6168. main (void)
  6169. {
  6170. return conftest::Tcl_SetNotifier ();
  6171. ;
  6172. return 0;
  6173. }
  6174. _ACEOF
  6175. if ac_fn_cxx_try_link "$LINENO"
  6176. then :
  6177. eval "$as_ac_Lib=yes"
  6178. else $as_nop
  6179. eval "$as_ac_Lib=no"
  6180. fi
  6181. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6182. conftest$ac_exeext conftest.$ac_ext
  6183. LIBS=$ac_check_lib_save_LIBS
  6184. fi
  6185. eval ac_res=\$$as_ac_Lib
  6186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6187. printf "%s\n" "$ac_res" >&6; }
  6188. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  6189. then :
  6190. egg_cv_var_tcl_setnotifier="yes"
  6191. else $as_nop
  6192. egg_cv_var_tcl_setnotifier="no"
  6193. fi
  6194. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  6195. printf "%s\n" "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  6196. fi
  6197. fi
  6198. if test "$enable_script_tcl" = "yes"; then
  6199. if test "$EGG_CYGWIN" = yes; then
  6200. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6201. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6202. else
  6203. if test "$TCLLIBEXT" != ".a"; then
  6204. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6205. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6206. else
  6207. # Set default make as static for unshared Tcl library
  6208. if test "$DEFAULT_MAKE" != static; then
  6209. cat << 'EOF' >&2
  6210. configure: WARNING:
  6211. Your Tcl library is not a shared lib.
  6212. configure will now set default make type to static.
  6213. EOF
  6214. DEFAULT_MAKE="static"
  6215. fi
  6216. # Are we using a pre 7.4 Tcl version ?
  6217. TCL_VER_PRE74=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 4)) || (i[1] < 7)) print "yes"; else print "no"}'`
  6218. if test "$TCL_VER_PRE74" = no; then
  6219. # Was the --with-tcllib option given ?
  6220. if test "x$tcllibname" != x; then
  6221. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6222. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  6223. else
  6224. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6225. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6226. fi
  6227. else
  6228. cat << EOF >&2
  6229. configure: WARNING:
  6230. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  6231. There are known problems, but we will attempt to work around them.
  6232. EOF
  6233. TCL_REQS="libtcle.a"
  6234. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  6235. fi
  6236. fi
  6237. fi
  6238. fi
  6239. cat >confcache <<\_ACEOF
  6240. # This file is a shell script that caches the results of configure
  6241. # tests run on this system so they can be shared between configure
  6242. # scripts and configure runs, see configure's option --config-cache.
  6243. # It is not useful on other systems. If it contains results you don't
  6244. # want to keep, you may remove or edit it.
  6245. #
  6246. # build/config.status only pays attention to the cache file if you give it
  6247. # the --recheck option to rerun configure.
  6248. #
  6249. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6250. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6251. # following values.
  6252. _ACEOF
  6253. # The following way of writing the cache mishandles newlines in values,
  6254. # but we know of no workaround that is simple, portable, and efficient.
  6255. # So, we kill variables containing newlines.
  6256. # Ultrix sh set writes to stderr and can't be redirected directly,
  6257. # and sets the high bit in the cache file unless we assign to the vars.
  6258. (
  6259. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6260. eval ac_val=\$$ac_var
  6261. case $ac_val in #(
  6262. *${as_nl}*)
  6263. case $ac_var in #(
  6264. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6265. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6266. esac
  6267. case $ac_var in #(
  6268. _ | IFS | as_nl) ;; #(
  6269. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6270. *) { eval $ac_var=; unset $ac_var;} ;;
  6271. esac ;;
  6272. esac
  6273. done
  6274. (set) 2>&1 |
  6275. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6276. *${as_nl}ac_space=\ *)
  6277. # `set' does not quote correctly, so add quotes: double-quote
  6278. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6279. sed -n \
  6280. "s/'/'\\\\''/g;
  6281. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6282. ;; #(
  6283. *)
  6284. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6285. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6286. ;;
  6287. esac |
  6288. sort
  6289. ) |
  6290. sed '
  6291. /^ac_cv_env_/b end
  6292. t clear
  6293. :clear
  6294. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  6295. t end
  6296. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6297. :end' >>confcache
  6298. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6299. if test -w "$cache_file"; then
  6300. if test "x$cache_file" != "x/dev/null"; then
  6301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6302. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  6303. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6304. cat confcache >"$cache_file"
  6305. else
  6306. case $cache_file in #(
  6307. */* | ?:*)
  6308. mv -f confcache "$cache_file"$$ &&
  6309. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6310. *)
  6311. mv -f confcache "$cache_file" ;;
  6312. esac
  6313. fi
  6314. fi
  6315. else
  6316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6317. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  6318. fi
  6319. fi
  6320. rm -f confcache
  6321. # Checks for typedefs, structures, and compiler characteristics
  6322. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  6323. "
  6324. if test "x$ac_cv_type_pid_t" = xyes
  6325. then :
  6326. else $as_nop
  6327. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end build/confdefs.h. */
  6329. #if defined _WIN64 && !defined __CYGWIN__
  6330. LLP64
  6331. #endif
  6332. int
  6333. main (void)
  6334. {
  6335. ;
  6336. return 0;
  6337. }
  6338. _ACEOF
  6339. if ac_fn_cxx_try_compile "$LINENO"
  6340. then :
  6341. ac_pid_type='int'
  6342. else $as_nop
  6343. ac_pid_type='__int64'
  6344. fi
  6345. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6346. printf "%s\n" "#define pid_t $ac_pid_type" >>build/confdefs.h
  6347. fi
  6348. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6349. if test "x$ac_cv_type_size_t" = xyes
  6350. then :
  6351. else $as_nop
  6352. printf "%s\n" "#define size_t unsigned int" >>build/confdefs.h
  6353. fi
  6354. ac_ext=cpp
  6355. ac_cpp='$CXXCPP $CPPFLAGS'
  6356. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6357. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6358. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6360. printf %s "checking how to run the C++ preprocessor... " >&6; }
  6361. if test -z "$CXXCPP"; then
  6362. if test ${ac_cv_prog_CXXCPP+y}
  6363. then :
  6364. printf %s "(cached) " >&6
  6365. else $as_nop
  6366. # Double quotes because $CXX needs to be expanded
  6367. for CXXCPP in "$CXX -E" cpp /lib/cpp
  6368. do
  6369. ac_preproc_ok=false
  6370. for ac_cxx_preproc_warn_flag in '' yes
  6371. do
  6372. # Use a header file that comes with gcc, so configuring glibc
  6373. # with a fresh cross-compiler works.
  6374. # On the NeXT, cc -E runs the code through the compiler's parser,
  6375. # not just through cpp. "Syntax error" is here to catch this case.
  6376. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6377. /* end build/confdefs.h. */
  6378. #include <limits.h>
  6379. Syntax error
  6380. _ACEOF
  6381. if ac_fn_cxx_try_cpp "$LINENO"
  6382. then :
  6383. else $as_nop
  6384. # Broken: fails on valid input.
  6385. continue
  6386. fi
  6387. rm -f conftest.err conftest.i conftest.$ac_ext
  6388. # OK, works on sane cases. Now check whether nonexistent headers
  6389. # can be detected and how.
  6390. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6391. /* end build/confdefs.h. */
  6392. #include <ac_nonexistent.h>
  6393. _ACEOF
  6394. if ac_fn_cxx_try_cpp "$LINENO"
  6395. then :
  6396. # Broken: success on invalid input.
  6397. continue
  6398. else $as_nop
  6399. # Passes both tests.
  6400. ac_preproc_ok=:
  6401. break
  6402. fi
  6403. rm -f conftest.err conftest.i conftest.$ac_ext
  6404. done
  6405. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6406. rm -f conftest.i conftest.err conftest.$ac_ext
  6407. if $ac_preproc_ok
  6408. then :
  6409. break
  6410. fi
  6411. done
  6412. ac_cv_prog_CXXCPP=$CXXCPP
  6413. fi
  6414. CXXCPP=$ac_cv_prog_CXXCPP
  6415. else
  6416. ac_cv_prog_CXXCPP=$CXXCPP
  6417. fi
  6418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6419. printf "%s\n" "$CXXCPP" >&6; }
  6420. ac_preproc_ok=false
  6421. for ac_cxx_preproc_warn_flag in '' yes
  6422. do
  6423. # Use a header file that comes with gcc, so configuring glibc
  6424. # with a fresh cross-compiler works.
  6425. # On the NeXT, cc -E runs the code through the compiler's parser,
  6426. # not just through cpp. "Syntax error" is here to catch this case.
  6427. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6428. /* end build/confdefs.h. */
  6429. #include <limits.h>
  6430. Syntax error
  6431. _ACEOF
  6432. if ac_fn_cxx_try_cpp "$LINENO"
  6433. then :
  6434. else $as_nop
  6435. # Broken: fails on valid input.
  6436. continue
  6437. fi
  6438. rm -f conftest.err conftest.i conftest.$ac_ext
  6439. # OK, works on sane cases. Now check whether nonexistent headers
  6440. # can be detected and how.
  6441. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6442. /* end build/confdefs.h. */
  6443. #include <ac_nonexistent.h>
  6444. _ACEOF
  6445. if ac_fn_cxx_try_cpp "$LINENO"
  6446. then :
  6447. # Broken: success on invalid input.
  6448. continue
  6449. else $as_nop
  6450. # Passes both tests.
  6451. ac_preproc_ok=:
  6452. break
  6453. fi
  6454. rm -f conftest.err conftest.i conftest.$ac_ext
  6455. done
  6456. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6457. rm -f conftest.i conftest.err conftest.$ac_ext
  6458. if $ac_preproc_ok
  6459. then :
  6460. else $as_nop
  6461. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6462. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  6463. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  6464. See \`build/config.log' for more details" "$LINENO" 5; }
  6465. fi
  6466. ac_ext=cpp
  6467. ac_cpp='$CXXCPP $CPPFLAGS'
  6468. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6469. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6470. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  6472. printf %s "checking for grep that handles long lines and -e... " >&6; }
  6473. if test ${ac_cv_path_GREP+y}
  6474. then :
  6475. printf %s "(cached) " >&6
  6476. else $as_nop
  6477. if test -z "$GREP"; then
  6478. ac_path_GREP_found=false
  6479. # Loop through the user's path and test for each of PROGNAME-LIST
  6480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6481. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6482. do
  6483. IFS=$as_save_IFS
  6484. case $as_dir in #(((
  6485. '') as_dir=./ ;;
  6486. */) ;;
  6487. *) as_dir=$as_dir/ ;;
  6488. esac
  6489. for ac_prog in grep ggrep
  6490. do
  6491. for ac_exec_ext in '' $ac_executable_extensions; do
  6492. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  6493. as_fn_executable_p "$ac_path_GREP" || continue
  6494. # Check for GNU ac_path_GREP and select it if it is found.
  6495. # Check for GNU $ac_path_GREP
  6496. case `"$ac_path_GREP" --version 2>&1` in
  6497. *GNU*)
  6498. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  6499. *)
  6500. ac_count=0
  6501. printf %s 0123456789 >"conftest.in"
  6502. while :
  6503. do
  6504. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6505. mv "conftest.tmp" "conftest.in"
  6506. cp "conftest.in" "conftest.nl"
  6507. printf "%s\n" 'GREP' >> "conftest.nl"
  6508. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6509. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6510. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6511. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  6512. # Best one so far, save it but keep looking for a better one
  6513. ac_cv_path_GREP="$ac_path_GREP"
  6514. ac_path_GREP_max=$ac_count
  6515. fi
  6516. # 10*(2^10) chars as input seems more than enough
  6517. test $ac_count -gt 10 && break
  6518. done
  6519. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6520. esac
  6521. $ac_path_GREP_found && break 3
  6522. done
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. if test -z "$ac_cv_path_GREP"; then
  6527. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6528. fi
  6529. else
  6530. ac_cv_path_GREP=$GREP
  6531. fi
  6532. fi
  6533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  6534. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  6535. GREP="$ac_cv_path_GREP"
  6536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  6537. printf %s "checking for egrep... " >&6; }
  6538. if test ${ac_cv_path_EGREP+y}
  6539. then :
  6540. printf %s "(cached) " >&6
  6541. else $as_nop
  6542. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6543. then ac_cv_path_EGREP="$GREP -E"
  6544. else
  6545. if test -z "$EGREP"; then
  6546. ac_path_EGREP_found=false
  6547. # Loop through the user's path and test for each of PROGNAME-LIST
  6548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6549. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6550. do
  6551. IFS=$as_save_IFS
  6552. case $as_dir in #(((
  6553. '') as_dir=./ ;;
  6554. */) ;;
  6555. *) as_dir=$as_dir/ ;;
  6556. esac
  6557. for ac_prog in egrep
  6558. do
  6559. for ac_exec_ext in '' $ac_executable_extensions; do
  6560. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  6561. as_fn_executable_p "$ac_path_EGREP" || continue
  6562. # Check for GNU ac_path_EGREP and select it if it is found.
  6563. # Check for GNU $ac_path_EGREP
  6564. case `"$ac_path_EGREP" --version 2>&1` in
  6565. *GNU*)
  6566. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6567. *)
  6568. ac_count=0
  6569. printf %s 0123456789 >"conftest.in"
  6570. while :
  6571. do
  6572. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6573. mv "conftest.tmp" "conftest.in"
  6574. cp "conftest.in" "conftest.nl"
  6575. printf "%s\n" 'EGREP' >> "conftest.nl"
  6576. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6577. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6578. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6579. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6580. # Best one so far, save it but keep looking for a better one
  6581. ac_cv_path_EGREP="$ac_path_EGREP"
  6582. ac_path_EGREP_max=$ac_count
  6583. fi
  6584. # 10*(2^10) chars as input seems more than enough
  6585. test $ac_count -gt 10 && break
  6586. done
  6587. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6588. esac
  6589. $ac_path_EGREP_found && break 3
  6590. done
  6591. done
  6592. done
  6593. IFS=$as_save_IFS
  6594. if test -z "$ac_cv_path_EGREP"; then
  6595. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6596. fi
  6597. else
  6598. ac_cv_path_EGREP=$EGREP
  6599. fi
  6600. fi
  6601. fi
  6602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  6603. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  6604. EGREP="$ac_cv_path_EGREP"
  6605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6606. printf %s "checking for uid_t in sys/types.h... " >&6; }
  6607. if test ${ac_cv_type_uid_t+y}
  6608. then :
  6609. printf %s "(cached) " >&6
  6610. else $as_nop
  6611. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6612. /* end build/confdefs.h. */
  6613. #include <sys/types.h>
  6614. _ACEOF
  6615. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6616. $EGREP "uid_t" >/dev/null 2>&1
  6617. then :
  6618. ac_cv_type_uid_t=yes
  6619. else $as_nop
  6620. ac_cv_type_uid_t=no
  6621. fi
  6622. rm -rf conftest*
  6623. fi
  6624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6625. printf "%s\n" "$ac_cv_type_uid_t" >&6; }
  6626. if test $ac_cv_type_uid_t = no; then
  6627. printf "%s\n" "#define uid_t int" >>build/confdefs.h
  6628. printf "%s\n" "#define gid_t int" >>build/confdefs.h
  6629. fi
  6630. #AC_C_CONST
  6631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  6632. printf %s "checking for working volatile... " >&6; }
  6633. if test ${ac_cv_c_volatile+y}
  6634. then :
  6635. printf %s "(cached) " >&6
  6636. else $as_nop
  6637. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6638. /* end build/confdefs.h. */
  6639. int
  6640. main (void)
  6641. {
  6642. volatile int x;
  6643. int * volatile y = (int *) 0;
  6644. return !x && !y;
  6645. ;
  6646. return 0;
  6647. }
  6648. _ACEOF
  6649. if ac_fn_cxx_try_compile "$LINENO"
  6650. then :
  6651. ac_cv_c_volatile=yes
  6652. else $as_nop
  6653. ac_cv_c_volatile=no
  6654. fi
  6655. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6656. fi
  6657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  6658. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  6659. if test $ac_cv_c_volatile = no; then
  6660. printf "%s\n" "#define volatile /**/" >>build/confdefs.h
  6661. fi
  6662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6663. printf %s "checking whether byte ordering is bigendian... " >&6; }
  6664. if test ${ac_cv_c_bigendian+y}
  6665. then :
  6666. printf %s "(cached) " >&6
  6667. else $as_nop
  6668. ac_cv_c_bigendian=unknown
  6669. # See if we're dealing with a universal compiler.
  6670. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6671. /* end build/confdefs.h. */
  6672. #ifndef __APPLE_CC__
  6673. not a universal capable compiler
  6674. #endif
  6675. typedef int dummy;
  6676. _ACEOF
  6677. if ac_fn_cxx_try_compile "$LINENO"
  6678. then :
  6679. # Check for potential -arch flags. It is not universal unless
  6680. # there are at least two -arch flags with different values.
  6681. ac_arch=
  6682. ac_prev=
  6683. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6684. if test -n "$ac_prev"; then
  6685. case $ac_word in
  6686. i?86 | x86_64 | ppc | ppc64)
  6687. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6688. ac_arch=$ac_word
  6689. else
  6690. ac_cv_c_bigendian=universal
  6691. break
  6692. fi
  6693. ;;
  6694. esac
  6695. ac_prev=
  6696. elif test "x$ac_word" = "x-arch"; then
  6697. ac_prev=arch
  6698. fi
  6699. done
  6700. fi
  6701. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6702. if test $ac_cv_c_bigendian = unknown; then
  6703. # See if sys/param.h defines the BYTE_ORDER macro.
  6704. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6705. /* end build/confdefs.h. */
  6706. #include <sys/types.h>
  6707. #include <sys/param.h>
  6708. int
  6709. main (void)
  6710. {
  6711. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6712. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6713. && LITTLE_ENDIAN)
  6714. bogus endian macros
  6715. #endif
  6716. ;
  6717. return 0;
  6718. }
  6719. _ACEOF
  6720. if ac_fn_cxx_try_compile "$LINENO"
  6721. then :
  6722. # It does; now see whether it defined to BIG_ENDIAN or not.
  6723. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6724. /* end build/confdefs.h. */
  6725. #include <sys/types.h>
  6726. #include <sys/param.h>
  6727. int
  6728. main (void)
  6729. {
  6730. #if BYTE_ORDER != BIG_ENDIAN
  6731. not big endian
  6732. #endif
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_cxx_try_compile "$LINENO"
  6738. then :
  6739. ac_cv_c_bigendian=yes
  6740. else $as_nop
  6741. ac_cv_c_bigendian=no
  6742. fi
  6743. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6744. fi
  6745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6746. fi
  6747. if test $ac_cv_c_bigendian = unknown; then
  6748. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6749. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6750. /* end build/confdefs.h. */
  6751. #include <limits.h>
  6752. int
  6753. main (void)
  6754. {
  6755. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6756. bogus endian macros
  6757. #endif
  6758. ;
  6759. return 0;
  6760. }
  6761. _ACEOF
  6762. if ac_fn_cxx_try_compile "$LINENO"
  6763. then :
  6764. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6765. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6766. /* end build/confdefs.h. */
  6767. #include <limits.h>
  6768. int
  6769. main (void)
  6770. {
  6771. #ifndef _BIG_ENDIAN
  6772. not big endian
  6773. #endif
  6774. ;
  6775. return 0;
  6776. }
  6777. _ACEOF
  6778. if ac_fn_cxx_try_compile "$LINENO"
  6779. then :
  6780. ac_cv_c_bigendian=yes
  6781. else $as_nop
  6782. ac_cv_c_bigendian=no
  6783. fi
  6784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6785. fi
  6786. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6787. fi
  6788. if test $ac_cv_c_bigendian = unknown; then
  6789. # Compile a test program.
  6790. if test "$cross_compiling" = yes
  6791. then :
  6792. # Try to guess by grepping values from an object file.
  6793. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6794. /* end build/confdefs.h. */
  6795. unsigned short int ascii_mm[] =
  6796. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6797. unsigned short int ascii_ii[] =
  6798. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6799. int use_ascii (int i) {
  6800. return ascii_mm[i] + ascii_ii[i];
  6801. }
  6802. unsigned short int ebcdic_ii[] =
  6803. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6804. unsigned short int ebcdic_mm[] =
  6805. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6806. int use_ebcdic (int i) {
  6807. return ebcdic_mm[i] + ebcdic_ii[i];
  6808. }
  6809. extern int foo;
  6810. int
  6811. main (void)
  6812. {
  6813. return use_ascii (foo) == use_ebcdic (foo);
  6814. ;
  6815. return 0;
  6816. }
  6817. _ACEOF
  6818. if ac_fn_cxx_try_compile "$LINENO"
  6819. then :
  6820. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6821. ac_cv_c_bigendian=yes
  6822. fi
  6823. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6824. if test "$ac_cv_c_bigendian" = unknown; then
  6825. ac_cv_c_bigendian=no
  6826. else
  6827. # finding both strings is unlikely to happen, but who knows?
  6828. ac_cv_c_bigendian=unknown
  6829. fi
  6830. fi
  6831. fi
  6832. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6833. else $as_nop
  6834. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6835. /* end build/confdefs.h. */
  6836. $ac_includes_default
  6837. int
  6838. main (void)
  6839. {
  6840. /* Are we little or big endian? From Harbison&Steele. */
  6841. union
  6842. {
  6843. long int l;
  6844. char c[sizeof (long int)];
  6845. } u;
  6846. u.l = 1;
  6847. return u.c[sizeof (long int) - 1] == 1;
  6848. ;
  6849. return 0;
  6850. }
  6851. _ACEOF
  6852. if ac_fn_cxx_try_run "$LINENO"
  6853. then :
  6854. ac_cv_c_bigendian=no
  6855. else $as_nop
  6856. ac_cv_c_bigendian=yes
  6857. fi
  6858. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6859. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6860. fi
  6861. fi
  6862. fi
  6863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6864. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  6865. case $ac_cv_c_bigendian in #(
  6866. yes)
  6867. printf "%s\n" "#define B_ENDIAN 1" >>build/confdefs.h
  6868. ;; #(
  6869. no)
  6870. printf "%s\n" "#define L_ENDIAN 1" >>build/confdefs.h
  6871. ;; #(
  6872. universal)
  6873. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6874. ;; #(
  6875. *)
  6876. as_fn_error $? "unknown endianness
  6877. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6878. esac
  6879. #AC_C_INLINE
  6880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6881. printf %s "checking whether char is unsigned... " >&6; }
  6882. if test ${ac_cv_c_char_unsigned+y}
  6883. then :
  6884. printf %s "(cached) " >&6
  6885. else $as_nop
  6886. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6887. /* end build/confdefs.h. */
  6888. $ac_includes_default
  6889. int
  6890. main (void)
  6891. {
  6892. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6893. test_array [0] = 0;
  6894. return test_array [0];
  6895. ;
  6896. return 0;
  6897. }
  6898. _ACEOF
  6899. if ac_fn_cxx_try_compile "$LINENO"
  6900. then :
  6901. ac_cv_c_char_unsigned=no
  6902. else $as_nop
  6903. ac_cv_c_char_unsigned=yes
  6904. fi
  6905. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6906. fi
  6907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6908. printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
  6909. if test $ac_cv_c_char_unsigned = yes; then
  6910. printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6911. fi
  6912. #AC_C_STRINGIZE
  6913. #AC_C_PROTOTYPES
  6914. #checkpoint
  6915. cat >confcache <<\_ACEOF
  6916. # This file is a shell script that caches the results of configure
  6917. # tests run on this system so they can be shared between configure
  6918. # scripts and configure runs, see configure's option --config-cache.
  6919. # It is not useful on other systems. If it contains results you don't
  6920. # want to keep, you may remove or edit it.
  6921. #
  6922. # build/config.status only pays attention to the cache file if you give it
  6923. # the --recheck option to rerun configure.
  6924. #
  6925. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6926. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6927. # following values.
  6928. _ACEOF
  6929. # The following way of writing the cache mishandles newlines in values,
  6930. # but we know of no workaround that is simple, portable, and efficient.
  6931. # So, we kill variables containing newlines.
  6932. # Ultrix sh set writes to stderr and can't be redirected directly,
  6933. # and sets the high bit in the cache file unless we assign to the vars.
  6934. (
  6935. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6936. eval ac_val=\$$ac_var
  6937. case $ac_val in #(
  6938. *${as_nl}*)
  6939. case $ac_var in #(
  6940. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6941. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6942. esac
  6943. case $ac_var in #(
  6944. _ | IFS | as_nl) ;; #(
  6945. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6946. *) { eval $ac_var=; unset $ac_var;} ;;
  6947. esac ;;
  6948. esac
  6949. done
  6950. (set) 2>&1 |
  6951. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6952. *${as_nl}ac_space=\ *)
  6953. # `set' does not quote correctly, so add quotes: double-quote
  6954. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6955. sed -n \
  6956. "s/'/'\\\\''/g;
  6957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6958. ;; #(
  6959. *)
  6960. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6961. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6962. ;;
  6963. esac |
  6964. sort
  6965. ) |
  6966. sed '
  6967. /^ac_cv_env_/b end
  6968. t clear
  6969. :clear
  6970. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  6971. t end
  6972. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6973. :end' >>confcache
  6974. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6975. if test -w "$cache_file"; then
  6976. if test "x$cache_file" != "x/dev/null"; then
  6977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6978. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  6979. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6980. cat confcache >"$cache_file"
  6981. else
  6982. case $cache_file in #(
  6983. */* | ?:*)
  6984. mv -f confcache "$cache_file"$$ &&
  6985. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6986. *)
  6987. mv -f confcache "$cache_file" ;;
  6988. esac
  6989. fi
  6990. fi
  6991. else
  6992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6993. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  6994. fi
  6995. fi
  6996. rm -f confcache
  6997. # Checks for typedefs, structures, and compiler characteristics
  6998. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  6999. "
  7000. if test "x$ac_cv_type_pid_t" = xyes
  7001. then :
  7002. else $as_nop
  7003. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7004. /* end build/confdefs.h. */
  7005. #if defined _WIN64 && !defined __CYGWIN__
  7006. LLP64
  7007. #endif
  7008. int
  7009. main (void)
  7010. {
  7011. ;
  7012. return 0;
  7013. }
  7014. _ACEOF
  7015. if ac_fn_cxx_try_compile "$LINENO"
  7016. then :
  7017. ac_pid_type='int'
  7018. else $as_nop
  7019. ac_pid_type='__int64'
  7020. fi
  7021. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7022. printf "%s\n" "#define pid_t $ac_pid_type" >>build/confdefs.h
  7023. fi
  7024. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7025. if test "x$ac_cv_type_size_t" = xyes
  7026. then :
  7027. else $as_nop
  7028. printf "%s\n" "#define size_t unsigned int" >>build/confdefs.h
  7029. fi
  7030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  7031. printf %s "checking for uid_t in sys/types.h... " >&6; }
  7032. if test ${ac_cv_type_uid_t+y}
  7033. then :
  7034. printf %s "(cached) " >&6
  7035. else $as_nop
  7036. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7037. /* end build/confdefs.h. */
  7038. #include <sys/types.h>
  7039. _ACEOF
  7040. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7041. $EGREP "uid_t" >/dev/null 2>&1
  7042. then :
  7043. ac_cv_type_uid_t=yes
  7044. else $as_nop
  7045. ac_cv_type_uid_t=no
  7046. fi
  7047. rm -rf conftest*
  7048. fi
  7049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  7050. printf "%s\n" "$ac_cv_type_uid_t" >&6; }
  7051. if test $ac_cv_type_uid_t = no; then
  7052. printf "%s\n" "#define uid_t int" >>build/confdefs.h
  7053. printf "%s\n" "#define gid_t int" >>build/confdefs.h
  7054. fi
  7055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  7056. printf %s "checking for unsigned long long int... " >&6; }
  7057. if test ${ac_cv_type_unsigned_long_long_int+y}
  7058. then :
  7059. printf %s "(cached) " >&6
  7060. else $as_nop
  7061. ac_cv_type_unsigned_long_long_int=yes
  7062. case $ac_prog_cc_stdc in
  7063. no | c89) ;;
  7064. *)
  7065. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7066. /* end build/confdefs.h. */
  7067. /* For now, do not test the preprocessor; as of 2007 there are too many
  7068. implementations with broken preprocessors. Perhaps this can
  7069. be revisited in 2012. In the meantime, code should not expect
  7070. #if to work with literals wider than 32 bits. */
  7071. /* Test literals. */
  7072. long long int ll = 9223372036854775807ll;
  7073. long long int nll = -9223372036854775807LL;
  7074. unsigned long long int ull = 18446744073709551615ULL;
  7075. /* Test constant expressions. */
  7076. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  7077. ? 1 : -1)];
  7078. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  7079. ? 1 : -1)];
  7080. int i = 63;
  7081. int
  7082. main (void)
  7083. {
  7084. /* Test availability of runtime routines for shift and division. */
  7085. long long int llmax = 9223372036854775807ll;
  7086. unsigned long long int ullmax = 18446744073709551615ull;
  7087. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  7088. | (llmax / ll) | (llmax % ll)
  7089. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  7090. | (ullmax / ull) | (ullmax % ull));
  7091. ;
  7092. return 0;
  7093. }
  7094. _ACEOF
  7095. if ac_fn_cxx_try_link "$LINENO"
  7096. then :
  7097. else $as_nop
  7098. ac_cv_type_unsigned_long_long_int=no
  7099. fi
  7100. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7101. conftest$ac_exeext conftest.$ac_ext;;
  7102. esac
  7103. fi
  7104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  7105. printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
  7106. if test $ac_cv_type_unsigned_long_long_int = yes; then
  7107. printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  7108. fi
  7109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  7110. printf %s "checking for long long int... " >&6; }
  7111. if test ${ac_cv_type_long_long_int+y}
  7112. then :
  7113. printf %s "(cached) " >&6
  7114. else $as_nop
  7115. ac_cv_type_long_long_int=yes
  7116. case $ac_prog_cc_stdc in
  7117. no | c89) ;;
  7118. *)
  7119. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  7120. if test $ac_cv_type_long_long_int = yes; then
  7121. if test "$cross_compiling" = yes
  7122. then :
  7123. :
  7124. else $as_nop
  7125. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7126. /* end build/confdefs.h. */
  7127. #include <limits.h>
  7128. #ifndef LLONG_MAX
  7129. # define HALF \
  7130. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  7131. # define LLONG_MAX (HALF - 1 + HALF)
  7132. #endif
  7133. int
  7134. main (void)
  7135. {
  7136. long long int n = 1;
  7137. int i;
  7138. for (i = 0; ; i++)
  7139. {
  7140. long long int m = n << i;
  7141. if (m >> i != n)
  7142. return 1;
  7143. if (LLONG_MAX / 2 < m)
  7144. break;
  7145. }
  7146. return 0;
  7147. ;
  7148. return 0;
  7149. }
  7150. _ACEOF
  7151. if ac_fn_cxx_try_run "$LINENO"
  7152. then :
  7153. else $as_nop
  7154. ac_cv_type_long_long_int=no
  7155. fi
  7156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7157. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7158. fi
  7159. fi;;
  7160. esac
  7161. fi
  7162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  7163. printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
  7164. if test $ac_cv_type_long_long_int = yes; then
  7165. printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  7166. fi
  7167. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7168. case $ac_cv_c_int8_t in #(
  7169. no|yes) ;; #(
  7170. *)
  7171. printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>build/confdefs.h
  7172. ;;
  7173. esac
  7174. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7175. case $ac_cv_c_uint8_t in #(
  7176. no|yes) ;; #(
  7177. *)
  7178. printf "%s\n" "#define _UINT8_T 1" >>build/confdefs.h
  7179. printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>build/confdefs.h
  7180. ;;
  7181. esac
  7182. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7183. case $ac_cv_c_int16_t in #(
  7184. no|yes) ;; #(
  7185. *)
  7186. printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>build/confdefs.h
  7187. ;;
  7188. esac
  7189. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7190. case $ac_cv_c_uint16_t in #(
  7191. no|yes) ;; #(
  7192. *)
  7193. printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>build/confdefs.h
  7194. ;;
  7195. esac
  7196. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7197. case $ac_cv_c_int32_t in #(
  7198. no|yes) ;; #(
  7199. *)
  7200. printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>build/confdefs.h
  7201. ;;
  7202. esac
  7203. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7204. case $ac_cv_c_uint32_t in #(
  7205. no|yes) ;; #(
  7206. *)
  7207. printf "%s\n" "#define _UINT32_T 1" >>build/confdefs.h
  7208. printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>build/confdefs.h
  7209. ;;
  7210. esac
  7211. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7212. case $ac_cv_c_int64_t in #(
  7213. no|yes) ;; #(
  7214. *)
  7215. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>build/confdefs.h
  7216. ;;
  7217. esac
  7218. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7219. case $ac_cv_c_uint64_t in #(
  7220. no|yes) ;; #(
  7221. *)
  7222. printf "%s\n" "#define _UINT64_T 1" >>build/confdefs.h
  7223. printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>build/confdefs.h
  7224. ;;
  7225. esac
  7226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7227. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7228. if test ${ac_cv_struct_tm+y}
  7229. then :
  7230. printf %s "(cached) " >&6
  7231. else $as_nop
  7232. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7233. /* end build/confdefs.h. */
  7234. #include <sys/types.h>
  7235. #include <time.h>
  7236. int
  7237. main (void)
  7238. {
  7239. struct tm tm;
  7240. int *p = &tm.tm_sec;
  7241. return !p;
  7242. ;
  7243. return 0;
  7244. }
  7245. _ACEOF
  7246. if ac_fn_cxx_try_compile "$LINENO"
  7247. then :
  7248. ac_cv_struct_tm=time.h
  7249. else $as_nop
  7250. ac_cv_struct_tm=sys/time.h
  7251. fi
  7252. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7253. fi
  7254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7255. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  7256. if test $ac_cv_struct_tm = sys/time.h; then
  7257. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7258. fi
  7259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5
  7260. printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; }
  7261. if test ${ac_cv_cxx_undeclared_builtin_options+y}
  7262. then :
  7263. printf %s "(cached) " >&6
  7264. else $as_nop
  7265. ac_save_CFLAGS=$CFLAGS
  7266. ac_cv_cxx_undeclared_builtin_options='cannot detect'
  7267. for ac_arg in '' -fno-builtin; do
  7268. CFLAGS="$ac_save_CFLAGS $ac_arg"
  7269. # This test program should *not* compile successfully.
  7270. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7271. /* end build/confdefs.h. */
  7272. int
  7273. main (void)
  7274. {
  7275. (void) strchr;
  7276. ;
  7277. return 0;
  7278. }
  7279. _ACEOF
  7280. if ac_fn_cxx_try_compile "$LINENO"
  7281. then :
  7282. else $as_nop
  7283. # This test program should compile successfully.
  7284. # No library function is consistently available on
  7285. # freestanding implementations, so test against a dummy
  7286. # declaration. Include always-available headers on the
  7287. # off chance that they somehow elicit warnings.
  7288. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7289. /* end build/confdefs.h. */
  7290. #include <float.h>
  7291. #include <limits.h>
  7292. #include <stdarg.h>
  7293. #include <stddef.h>
  7294. extern void ac_decl (int, char *);
  7295. int
  7296. main (void)
  7297. {
  7298. (void) ac_decl (0, (char *) 0);
  7299. (void) ac_decl;
  7300. ;
  7301. return 0;
  7302. }
  7303. _ACEOF
  7304. if ac_fn_cxx_try_compile "$LINENO"
  7305. then :
  7306. if test x"$ac_arg" = x
  7307. then :
  7308. ac_cv_cxx_undeclared_builtin_options='none needed'
  7309. else $as_nop
  7310. ac_cv_cxx_undeclared_builtin_options=$ac_arg
  7311. fi
  7312. break
  7313. fi
  7314. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7315. fi
  7316. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7317. done
  7318. CFLAGS=$ac_save_CFLAGS
  7319. fi
  7320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5
  7321. printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; }
  7322. case $ac_cv_cxx_undeclared_builtin_options in #(
  7323. 'cannot detect') :
  7324. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7325. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7326. as_fn_error $? "cannot make $CXX report undeclared builtins
  7327. See \`build/config.log' for more details" "$LINENO" 5; } ;; #(
  7328. 'none needed') :
  7329. ac_cxx_undeclared_builtin_options='' ;; #(
  7330. *) :
  7331. ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;;
  7332. esac
  7333. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  7334. #include <$ac_cv_struct_tm>
  7335. "
  7336. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
  7337. then :
  7338. printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>build/confdefs.h
  7339. fi
  7340. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7341. printf "%s\n" "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  7342. else
  7343. ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  7344. " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
  7345. if test "x$ac_cv_have_decl_tzname" = xyes
  7346. then :
  7347. ac_have_decl=1
  7348. else $as_nop
  7349. ac_have_decl=0
  7350. fi
  7351. printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>build/confdefs.h
  7352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  7353. printf %s "checking for tzname... " >&6; }
  7354. if test ${ac_cv_var_tzname+y}
  7355. then :
  7356. printf %s "(cached) " >&6
  7357. else $as_nop
  7358. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7359. /* end build/confdefs.h. */
  7360. #include <time.h>
  7361. #if !HAVE_DECL_TZNAME
  7362. extern char *tzname[];
  7363. #endif
  7364. int
  7365. main (void)
  7366. {
  7367. return tzname[0][0];
  7368. ;
  7369. return 0;
  7370. }
  7371. _ACEOF
  7372. if ac_fn_cxx_try_link "$LINENO"
  7373. then :
  7374. ac_cv_var_tzname=yes
  7375. else $as_nop
  7376. ac_cv_var_tzname=no
  7377. fi
  7378. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7379. conftest$ac_exeext conftest.$ac_ext
  7380. fi
  7381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  7382. printf "%s\n" "$ac_cv_var_tzname" >&6; }
  7383. if test $ac_cv_var_tzname = yes; then
  7384. printf "%s\n" "#define HAVE_TZNAME 1" >>build/confdefs.h
  7385. fi
  7386. fi
  7387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7388. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7389. if test ${ac_cv_struct_tm+y}
  7390. then :
  7391. printf %s "(cached) " >&6
  7392. else $as_nop
  7393. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7394. /* end build/confdefs.h. */
  7395. #include <sys/types.h>
  7396. #include <time.h>
  7397. int
  7398. main (void)
  7399. {
  7400. struct tm tm;
  7401. int *p = &tm.tm_sec;
  7402. return !p;
  7403. ;
  7404. return 0;
  7405. }
  7406. _ACEOF
  7407. if ac_fn_cxx_try_compile "$LINENO"
  7408. then :
  7409. ac_cv_struct_tm=time.h
  7410. else $as_nop
  7411. ac_cv_struct_tm=sys/time.h
  7412. fi
  7413. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7414. fi
  7415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7416. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  7417. if test $ac_cv_struct_tm = sys/time.h; then
  7418. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7419. fi
  7420. # Checks for library functions
  7421. # Make sure we can run config.sub.
  7422. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  7423. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  7424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  7425. printf %s "checking build system type... " >&6; }
  7426. if test ${ac_cv_build+y}
  7427. then :
  7428. printf %s "(cached) " >&6
  7429. else $as_nop
  7430. ac_build_alias=$build_alias
  7431. test "x$ac_build_alias" = x &&
  7432. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  7433. test "x$ac_build_alias" = x &&
  7434. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  7435. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  7436. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  7437. fi
  7438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  7439. printf "%s\n" "$ac_cv_build" >&6; }
  7440. case $ac_cv_build in
  7441. *-*-*) ;;
  7442. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  7443. esac
  7444. build=$ac_cv_build
  7445. ac_save_IFS=$IFS; IFS='-'
  7446. set x $ac_cv_build
  7447. shift
  7448. build_cpu=$1
  7449. build_vendor=$2
  7450. shift; shift
  7451. # Remember, the first character of IFS is used to create $*,
  7452. # except with old shells:
  7453. build_os=$*
  7454. IFS=$ac_save_IFS
  7455. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  7456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  7457. printf %s "checking host system type... " >&6; }
  7458. if test ${ac_cv_host+y}
  7459. then :
  7460. printf %s "(cached) " >&6
  7461. else $as_nop
  7462. if test "x$host_alias" = x; then
  7463. ac_cv_host=$ac_cv_build
  7464. else
  7465. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  7466. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  7467. fi
  7468. fi
  7469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  7470. printf "%s\n" "$ac_cv_host" >&6; }
  7471. case $ac_cv_host in
  7472. *-*-*) ;;
  7473. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  7474. esac
  7475. host=$ac_cv_host
  7476. ac_save_IFS=$IFS; IFS='-'
  7477. set x $ac_cv_host
  7478. shift
  7479. host_cpu=$1
  7480. host_vendor=$2
  7481. shift; shift
  7482. # Remember, the first character of IFS is used to create $*,
  7483. # except with old shells:
  7484. host_os=$*
  7485. IFS=$ac_save_IFS
  7486. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  7487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  7488. printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
  7489. if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
  7490. then :
  7491. printf %s "(cached) " >&6
  7492. else $as_nop
  7493. rm -f conftest.sym conftest.file
  7494. echo >conftest.file
  7495. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7496. if test "$cross_compiling" = yes
  7497. then :
  7498. case "$host_os" in # ((
  7499. # Guess yes on glibc systems.
  7500. *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
  7501. # If we don't know, assume the worst.
  7502. *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
  7503. esac
  7504. else $as_nop
  7505. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7506. /* end build/confdefs.h. */
  7507. $ac_includes_default
  7508. int
  7509. main (void)
  7510. {
  7511. struct stat sbuf;
  7512. /* Linux will dereference the symlink and fail, as required by POSIX.
  7513. That is better in the sense that it means we will not
  7514. have to compile and use the lstat wrapper. */
  7515. return lstat ("conftest.sym/", &sbuf) == 0;
  7516. ;
  7517. return 0;
  7518. }
  7519. _ACEOF
  7520. if ac_fn_cxx_try_run "$LINENO"
  7521. then :
  7522. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7523. else $as_nop
  7524. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7525. fi
  7526. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7527. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7528. fi
  7529. else
  7530. # If the `ln -s' command failed, then we probably don't even
  7531. # have an lstat function.
  7532. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7533. fi
  7534. rm -f conftest.sym conftest.file
  7535. fi
  7536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7537. printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  7538. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7539. printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>build/confdefs.h
  7540. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  7541. case " $LIBOBJS " in
  7542. *" lstat.$ac_objext "* ) ;;
  7543. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  7544. ;;
  7545. esac
  7546. fi
  7547. ac_func=
  7548. for ac_item in $ac_func_cxx_list
  7549. do
  7550. if test $ac_func; then
  7551. ac_fn_cxx_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  7552. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  7553. echo "#define $ac_item 1" >> build/confdefs.h
  7554. fi
  7555. ac_func=
  7556. else
  7557. ac_func=$ac_item
  7558. fi
  7559. done
  7560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7561. printf %s "checking for working mmap... " >&6; }
  7562. if test ${ac_cv_func_mmap_fixed_mapped+y}
  7563. then :
  7564. printf %s "(cached) " >&6
  7565. else $as_nop
  7566. if test "$cross_compiling" = yes
  7567. then :
  7568. case "$host_os" in # ((
  7569. # Guess yes on platforms where we know the result.
  7570. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  7571. # If we don't know, assume the worst.
  7572. *) ac_cv_func_mmap_fixed_mapped=no ;;
  7573. esac
  7574. else $as_nop
  7575. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7576. /* end build/confdefs.h. */
  7577. $ac_includes_default
  7578. /* malloc might have been renamed as rpl_malloc. */
  7579. #undef malloc
  7580. /* Thanks to Mike Haertel and Jim Avera for this test.
  7581. Here is a matrix of mmap possibilities:
  7582. mmap private not fixed
  7583. mmap private fixed at somewhere currently unmapped
  7584. mmap private fixed at somewhere already mapped
  7585. mmap shared not fixed
  7586. mmap shared fixed at somewhere currently unmapped
  7587. mmap shared fixed at somewhere already mapped
  7588. For private mappings, we should verify that changes cannot be read()
  7589. back from the file, nor mmap's back from the file at a different
  7590. address. (There have been systems where private was not correctly
  7591. implemented like the infamous i386 svr4.0, and systems where the
  7592. VM page cache was not coherent with the file system buffer cache
  7593. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7594. For shared mappings, we should conversely verify that changes get
  7595. propagated back to all the places they're supposed to be.
  7596. Grep wants private fixed already mapped.
  7597. The main things grep needs to know about mmap are:
  7598. * does it exist and is it safe to write into the mmap'd area
  7599. * how to use it (BSD variants) */
  7600. #include <fcntl.h>
  7601. #include <sys/mman.h>
  7602. /* This mess was copied from the GNU getpagesize.h. */
  7603. #ifndef HAVE_GETPAGESIZE
  7604. # ifdef _SC_PAGESIZE
  7605. # define getpagesize() sysconf(_SC_PAGESIZE)
  7606. # else /* no _SC_PAGESIZE */
  7607. # ifdef HAVE_SYS_PARAM_H
  7608. # include <sys/param.h>
  7609. # ifdef EXEC_PAGESIZE
  7610. # define getpagesize() EXEC_PAGESIZE
  7611. # else /* no EXEC_PAGESIZE */
  7612. # ifdef NBPG
  7613. # define getpagesize() NBPG * CLSIZE
  7614. # ifndef CLSIZE
  7615. # define CLSIZE 1
  7616. # endif /* no CLSIZE */
  7617. # else /* no NBPG */
  7618. # ifdef NBPC
  7619. # define getpagesize() NBPC
  7620. # else /* no NBPC */
  7621. # ifdef PAGESIZE
  7622. # define getpagesize() PAGESIZE
  7623. # endif /* PAGESIZE */
  7624. # endif /* no NBPC */
  7625. # endif /* no NBPG */
  7626. # endif /* no EXEC_PAGESIZE */
  7627. # else /* no HAVE_SYS_PARAM_H */
  7628. # define getpagesize() 8192 /* punt totally */
  7629. # endif /* no HAVE_SYS_PARAM_H */
  7630. # endif /* no _SC_PAGESIZE */
  7631. #endif /* no HAVE_GETPAGESIZE */
  7632. int
  7633. main (void)
  7634. {
  7635. char *data, *data2, *data3;
  7636. const char *cdata2;
  7637. int i, pagesize;
  7638. int fd, fd2;
  7639. pagesize = getpagesize ();
  7640. /* First, make a file with some known garbage in it. */
  7641. data = (char *) malloc (pagesize);
  7642. if (!data)
  7643. return 1;
  7644. for (i = 0; i < pagesize; ++i)
  7645. *(data + i) = rand ();
  7646. umask (0);
  7647. fd = creat ("conftest.mmap", 0600);
  7648. if (fd < 0)
  7649. return 2;
  7650. if (write (fd, data, pagesize) != pagesize)
  7651. return 3;
  7652. close (fd);
  7653. /* Next, check that the tail of a page is zero-filled. File must have
  7654. non-zero length, otherwise we risk SIGBUS for entire page. */
  7655. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7656. if (fd2 < 0)
  7657. return 4;
  7658. cdata2 = "";
  7659. if (write (fd2, cdata2, 1) != 1)
  7660. return 5;
  7661. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7662. if (data2 == MAP_FAILED)
  7663. return 6;
  7664. for (i = 0; i < pagesize; ++i)
  7665. if (*(data2 + i))
  7666. return 7;
  7667. close (fd2);
  7668. if (munmap (data2, pagesize))
  7669. return 8;
  7670. /* Next, try to mmap the file at a fixed address which already has
  7671. something else allocated at it. If we can, also make sure that
  7672. we see the same garbage. */
  7673. fd = open ("conftest.mmap", O_RDWR);
  7674. if (fd < 0)
  7675. return 9;
  7676. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7677. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7678. return 10;
  7679. for (i = 0; i < pagesize; ++i)
  7680. if (*(data + i) != *(data2 + i))
  7681. return 11;
  7682. /* Finally, make sure that changes to the mapped area do not
  7683. percolate back to the file as seen by read(). (This is a bug on
  7684. some variants of i386 svr4.0.) */
  7685. for (i = 0; i < pagesize; ++i)
  7686. *(data2 + i) = *(data2 + i) + 1;
  7687. data3 = (char *) malloc (pagesize);
  7688. if (!data3)
  7689. return 12;
  7690. if (read (fd, data3, pagesize) != pagesize)
  7691. return 13;
  7692. for (i = 0; i < pagesize; ++i)
  7693. if (*(data + i) != *(data3 + i))
  7694. return 14;
  7695. close (fd);
  7696. free (data);
  7697. free (data3);
  7698. return 0;
  7699. }
  7700. _ACEOF
  7701. if ac_fn_cxx_try_run "$LINENO"
  7702. then :
  7703. ac_cv_func_mmap_fixed_mapped=yes
  7704. else $as_nop
  7705. ac_cv_func_mmap_fixed_mapped=no
  7706. fi
  7707. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7708. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7709. fi
  7710. fi
  7711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7712. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7713. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7714. printf "%s\n" "#define HAVE_MMAP 1" >>build/confdefs.h
  7715. fi
  7716. rm -f conftest.mmap conftest.txt
  7717. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7718. #include <sys/time.h>
  7719. #include <time.h>
  7720. "
  7721. if test "x$ac_cv_type_struct_timespec" = xyes
  7722. then :
  7723. printf "%s\n" "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7724. fi
  7725. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7726. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7727. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
  7728. then :
  7729. printf "%s\n" "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7730. else $as_nop
  7731. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7732. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes
  7733. then :
  7734. printf "%s\n" "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7735. fi
  7736. fi
  7737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7738. printf %s "checking for two-parameter timespecsub... " >&6; }
  7739. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7740. /* end build/confdefs.h. */
  7741. #include <sys/types.h>
  7742. #include <sys/time.h>
  7743. int
  7744. main (void)
  7745. {
  7746. struct timespec ts1, ts2;
  7747. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7748. #ifndef timespecsub
  7749. #error missing timespecsub
  7750. #endif
  7751. timespecsub(&ts1, &ts2);
  7752. ;
  7753. return 0;
  7754. }
  7755. _ACEOF
  7756. if ac_fn_cxx_try_compile "$LINENO"
  7757. then :
  7758. printf "%s\n" "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7760. printf "%s\n" "yes" >&6; }
  7761. else $as_nop
  7762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7763. printf "%s\n" "no" >&6; }
  7764. fi
  7765. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7766. fi
  7767. #checkpoint
  7768. cat >confcache <<\_ACEOF
  7769. # This file is a shell script that caches the results of configure
  7770. # tests run on this system so they can be shared between configure
  7771. # scripts and configure runs, see configure's option --config-cache.
  7772. # It is not useful on other systems. If it contains results you don't
  7773. # want to keep, you may remove or edit it.
  7774. #
  7775. # build/config.status only pays attention to the cache file if you give it
  7776. # the --recheck option to rerun configure.
  7777. #
  7778. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7779. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7780. # following values.
  7781. _ACEOF
  7782. # The following way of writing the cache mishandles newlines in values,
  7783. # but we know of no workaround that is simple, portable, and efficient.
  7784. # So, we kill variables containing newlines.
  7785. # Ultrix sh set writes to stderr and can't be redirected directly,
  7786. # and sets the high bit in the cache file unless we assign to the vars.
  7787. (
  7788. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7789. eval ac_val=\$$ac_var
  7790. case $ac_val in #(
  7791. *${as_nl}*)
  7792. case $ac_var in #(
  7793. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7794. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7795. esac
  7796. case $ac_var in #(
  7797. _ | IFS | as_nl) ;; #(
  7798. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7799. *) { eval $ac_var=; unset $ac_var;} ;;
  7800. esac ;;
  7801. esac
  7802. done
  7803. (set) 2>&1 |
  7804. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7805. *${as_nl}ac_space=\ *)
  7806. # `set' does not quote correctly, so add quotes: double-quote
  7807. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7808. sed -n \
  7809. "s/'/'\\\\''/g;
  7810. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7811. ;; #(
  7812. *)
  7813. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7814. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7815. ;;
  7816. esac |
  7817. sort
  7818. ) |
  7819. sed '
  7820. /^ac_cv_env_/b end
  7821. t clear
  7822. :clear
  7823. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  7824. t end
  7825. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7826. :end' >>confcache
  7827. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7828. if test -w "$cache_file"; then
  7829. if test "x$cache_file" != "x/dev/null"; then
  7830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7831. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  7832. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7833. cat confcache >"$cache_file"
  7834. else
  7835. case $cache_file in #(
  7836. */* | ?:*)
  7837. mv -f confcache "$cache_file"$$ &&
  7838. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7839. *)
  7840. mv -f confcache "$cache_file" ;;
  7841. esac
  7842. fi
  7843. fi
  7844. else
  7845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7846. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  7847. fi
  7848. fi
  7849. rm -f confcache
  7850. ac_fn_cxx_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
  7851. if test "x$ac_cv_func_getrusage" = xyes
  7852. then :
  7853. printf "%s\n" "#define HAVE_GETRUSAGE 1" >>build/confdefs.h
  7854. fi
  7855. ac_fn_cxx_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
  7856. if test "x$ac_cv_func_getpassphrase" = xyes
  7857. then :
  7858. printf "%s\n" "#define HAVE_GETPASSPHRASE 1" >>build/confdefs.h
  7859. fi
  7860. ac_fn_cxx_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise"
  7861. if test "x$ac_cv_func_posix_madvise" = xyes
  7862. then :
  7863. printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>build/confdefs.h
  7864. fi
  7865. ac_fn_cxx_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
  7866. if test "x$ac_cv_func_madvise" = xyes
  7867. then :
  7868. printf "%s\n" "#define HAVE_MADVISE 1" >>build/confdefs.h
  7869. fi
  7870. ac_fn_cxx_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  7871. if test "x$ac_cv_func_memmem" = xyes
  7872. then :
  7873. printf "%s\n" "#define HAVE_MEMMEM 1" >>build/confdefs.h
  7874. fi
  7875. ac_fn_cxx_check_func "$LINENO" "random" "ac_cv_func_random"
  7876. if test "x$ac_cv_func_random" = xyes
  7877. then :
  7878. printf "%s\n" "#define HAVE_RANDOM 1" >>build/confdefs.h
  7879. fi
  7880. ac_fn_cxx_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  7881. if test "x$ac_cv_func_snprintf" = xyes
  7882. then :
  7883. printf "%s\n" "#define HAVE_SNPRINTF 1" >>build/confdefs.h
  7884. fi
  7885. ac_fn_cxx_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
  7886. if test "x$ac_cv_func_srandom" = xyes
  7887. then :
  7888. printf "%s\n" "#define HAVE_SRANDOM 1" >>build/confdefs.h
  7889. fi
  7890. ac_fn_cxx_check_func "$LINENO" "gettime" "ac_cv_func_gettime"
  7891. if test "x$ac_cv_func_gettime" = xyes
  7892. then :
  7893. printf "%s\n" "#define HAVE_GETTIME 1" >>build/confdefs.h
  7894. fi
  7895. #checkpoint
  7896. cat >confcache <<\_ACEOF
  7897. # This file is a shell script that caches the results of configure
  7898. # tests run on this system so they can be shared between configure
  7899. # scripts and configure runs, see configure's option --config-cache.
  7900. # It is not useful on other systems. If it contains results you don't
  7901. # want to keep, you may remove or edit it.
  7902. #
  7903. # build/config.status only pays attention to the cache file if you give it
  7904. # the --recheck option to rerun configure.
  7905. #
  7906. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7907. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7908. # following values.
  7909. _ACEOF
  7910. # The following way of writing the cache mishandles newlines in values,
  7911. # but we know of no workaround that is simple, portable, and efficient.
  7912. # So, we kill variables containing newlines.
  7913. # Ultrix sh set writes to stderr and can't be redirected directly,
  7914. # and sets the high bit in the cache file unless we assign to the vars.
  7915. (
  7916. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7917. eval ac_val=\$$ac_var
  7918. case $ac_val in #(
  7919. *${as_nl}*)
  7920. case $ac_var in #(
  7921. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7922. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7923. esac
  7924. case $ac_var in #(
  7925. _ | IFS | as_nl) ;; #(
  7926. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7927. *) { eval $ac_var=; unset $ac_var;} ;;
  7928. esac ;;
  7929. esac
  7930. done
  7931. (set) 2>&1 |
  7932. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7933. *${as_nl}ac_space=\ *)
  7934. # `set' does not quote correctly, so add quotes: double-quote
  7935. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7936. sed -n \
  7937. "s/'/'\\\\''/g;
  7938. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7939. ;; #(
  7940. *)
  7941. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7942. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7943. ;;
  7944. esac |
  7945. sort
  7946. ) |
  7947. sed '
  7948. /^ac_cv_env_/b end
  7949. t clear
  7950. :clear
  7951. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  7952. t end
  7953. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7954. :end' >>confcache
  7955. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7956. if test -w "$cache_file"; then
  7957. if test "x$cache_file" != "x/dev/null"; then
  7958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7959. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  7960. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7961. cat confcache >"$cache_file"
  7962. else
  7963. case $cache_file in #(
  7964. */* | ?:*)
  7965. mv -f confcache "$cache_file"$$ &&
  7966. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7967. *)
  7968. mv -f confcache "$cache_file" ;;
  7969. esac
  7970. fi
  7971. fi
  7972. else
  7973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7974. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  7975. fi
  7976. fi
  7977. rm -f confcache
  7978. ac_fn_cxx_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  7979. if test "x$ac_cv_func_vsnprintf" = xyes
  7980. then :
  7981. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>build/confdefs.h
  7982. fi
  7983. ac_fn_cxx_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
  7984. if test "x$ac_cv_func_prctl" = xyes
  7985. then :
  7986. printf "%s\n" "#define HAVE_PRCTL 1" >>build/confdefs.h
  7987. fi
  7988. ac_fn_cxx_check_func "$LINENO" "procctl" "ac_cv_func_procctl"
  7989. if test "x$ac_cv_func_procctl" = xyes
  7990. then :
  7991. printf "%s\n" "#define HAVE_PROCCTL 1" >>build/confdefs.h
  7992. fi
  7993. ac_fn_cxx_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
  7994. if test "x$ac_cv_func_closefrom" = xyes
  7995. then :
  7996. printf "%s\n" "#define HAVE_CLOSEFROM 1" >>build/confdefs.h
  7997. fi
  7998. #autoscan suggested this....
  7999. #These are recommended by autoscan, but no code supports it currently
  8000. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  8001. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  8002. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  8003. if test "x$ac_cv_func_vsprintf" = xyes
  8004. then :
  8005. printf "%s\n" "#define HAVE_VSPRINTF 1" >>build/confdefs.h
  8006. fi
  8007. if test "$ac_cv_func_vsprintf" = "no"
  8008. then
  8009. cat << 'EOF' >&2
  8010. configure: error:
  8011. Your system does not have the sprintf/vsprintf libraries.
  8012. These are required to compile almost anything. Sorry.
  8013. EOF
  8014. exit 1
  8015. fi
  8016. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  8017. if test "x$ac_cv_func_uname" = xyes
  8018. then :
  8019. printf "%s\n" "#define HAVE_UNAME 1" >>build/confdefs.h
  8020. fi
  8021. if test "$ac_cv_func_uname" = "no"
  8022. then
  8023. cat << 'EOF' >&2
  8024. configure: error:
  8025. Your system does not have the uname() function.
  8026. This is required for the botpack.
  8027. EOF
  8028. exit 1
  8029. fi
  8030. # Make sure we have stdc headers, since we can't compile without them
  8031. if test "$ac_cv_header_stdc" = "no"
  8032. then
  8033. cat << 'EOF' >&2
  8034. configure: error:
  8035. Your system must support ANSI C Header files.
  8036. These are required for the language support. Sorry.
  8037. EOF
  8038. exit 1
  8039. fi
  8040. #checkpoint
  8041. cat >confcache <<\_ACEOF
  8042. # This file is a shell script that caches the results of configure
  8043. # tests run on this system so they can be shared between configure
  8044. # scripts and configure runs, see configure's option --config-cache.
  8045. # It is not useful on other systems. If it contains results you don't
  8046. # want to keep, you may remove or edit it.
  8047. #
  8048. # build/config.status only pays attention to the cache file if you give it
  8049. # the --recheck option to rerun configure.
  8050. #
  8051. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8052. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8053. # following values.
  8054. _ACEOF
  8055. # The following way of writing the cache mishandles newlines in values,
  8056. # but we know of no workaround that is simple, portable, and efficient.
  8057. # So, we kill variables containing newlines.
  8058. # Ultrix sh set writes to stderr and can't be redirected directly,
  8059. # and sets the high bit in the cache file unless we assign to the vars.
  8060. (
  8061. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8062. eval ac_val=\$$ac_var
  8063. case $ac_val in #(
  8064. *${as_nl}*)
  8065. case $ac_var in #(
  8066. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8067. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8068. esac
  8069. case $ac_var in #(
  8070. _ | IFS | as_nl) ;; #(
  8071. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8072. *) { eval $ac_var=; unset $ac_var;} ;;
  8073. esac ;;
  8074. esac
  8075. done
  8076. (set) 2>&1 |
  8077. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8078. *${as_nl}ac_space=\ *)
  8079. # `set' does not quote correctly, so add quotes: double-quote
  8080. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8081. sed -n \
  8082. "s/'/'\\\\''/g;
  8083. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8084. ;; #(
  8085. *)
  8086. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8087. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8088. ;;
  8089. esac |
  8090. sort
  8091. ) |
  8092. sed '
  8093. /^ac_cv_env_/b end
  8094. t clear
  8095. :clear
  8096. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  8097. t end
  8098. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8099. :end' >>confcache
  8100. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8101. if test -w "$cache_file"; then
  8102. if test "x$cache_file" != "x/dev/null"; then
  8103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8104. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  8105. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8106. cat confcache >"$cache_file"
  8107. else
  8108. case $cache_file in #(
  8109. */* | ?:*)
  8110. mv -f confcache "$cache_file"$$ &&
  8111. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8112. *)
  8113. mv -f confcache "$cache_file" ;;
  8114. esac
  8115. fi
  8116. fi
  8117. else
  8118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8119. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  8120. fi
  8121. fi
  8122. rm -f confcache
  8123. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  8124. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  8125. printf "%s\n" "#define EGG_VERSION $version_num" >>build/confdefs.h
  8126. #FIND_WRAPS
  8127. files="src/Makefile.in"
  8128. for mf in $files; do
  8129. # Strip MF so we end up with the name of the file.
  8130. mf=${mf%%:*}
  8131. dirmf=${mf%/*}
  8132. rm -f "$dirmf/.deps/includes"
  8133. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  8134. for file in `sed -n -e '
  8135. /^OBJS = .*\\\\$/ {
  8136. s/^OBJS = //
  8137. :loop
  8138. s/\\\\$//
  8139. p
  8140. n
  8141. /\\\\$/ b loop
  8142. p
  8143. }
  8144. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  8145. do
  8146. dirpart="${dirmf}/${file}"
  8147. dirpart="${dirpart%/*}"
  8148. if [ "${dirpart}" != "${dirmf}" ]; then
  8149. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  8150. fi
  8151. file="${file##*/}"
  8152. suffix=${file##*.}
  8153. base=${file%%.*}
  8154. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  8155. if ! test -f "$dirpart/.deps/$base.Po"; then
  8156. echo '# dummy' > "$dirpart/.deps/$base.Po"
  8157. #Remove the .o file, because it needs to be recompiled for its dependancies.
  8158. if test -f "$dirpart/${base}.${suffix}"; then
  8159. rm -f "$dirpart/${base}.${suffix}"
  8160. fi
  8161. fi
  8162. echo "include .${dirpart#${dirmf}}/.deps/$base.Po" >> "${dirmf}/.deps/includes"
  8163. done
  8164. done
  8165. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  8166. cat >confcache <<\_ACEOF
  8167. # This file is a shell script that caches the results of configure
  8168. # tests run on this system so they can be shared between configure
  8169. # scripts and configure runs, see configure's option --config-cache.
  8170. # It is not useful on other systems. If it contains results you don't
  8171. # want to keep, you may remove or edit it.
  8172. #
  8173. # build/config.status only pays attention to the cache file if you give it
  8174. # the --recheck option to rerun configure.
  8175. #
  8176. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8177. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8178. # following values.
  8179. _ACEOF
  8180. # The following way of writing the cache mishandles newlines in values,
  8181. # but we know of no workaround that is simple, portable, and efficient.
  8182. # So, we kill variables containing newlines.
  8183. # Ultrix sh set writes to stderr and can't be redirected directly,
  8184. # and sets the high bit in the cache file unless we assign to the vars.
  8185. (
  8186. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8187. eval ac_val=\$$ac_var
  8188. case $ac_val in #(
  8189. *${as_nl}*)
  8190. case $ac_var in #(
  8191. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8192. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8193. esac
  8194. case $ac_var in #(
  8195. _ | IFS | as_nl) ;; #(
  8196. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8197. *) { eval $ac_var=; unset $ac_var;} ;;
  8198. esac ;;
  8199. esac
  8200. done
  8201. (set) 2>&1 |
  8202. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8203. *${as_nl}ac_space=\ *)
  8204. # `set' does not quote correctly, so add quotes: double-quote
  8205. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8206. sed -n \
  8207. "s/'/'\\\\''/g;
  8208. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8209. ;; #(
  8210. *)
  8211. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8212. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8213. ;;
  8214. esac |
  8215. sort
  8216. ) |
  8217. sed '
  8218. /^ac_cv_env_/b end
  8219. t clear
  8220. :clear
  8221. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  8222. t end
  8223. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8224. :end' >>confcache
  8225. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8226. if test -w "$cache_file"; then
  8227. if test "x$cache_file" != "x/dev/null"; then
  8228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8229. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  8230. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8231. cat confcache >"$cache_file"
  8232. else
  8233. case $cache_file in #(
  8234. */* | ?:*)
  8235. mv -f confcache "$cache_file"$$ &&
  8236. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8237. *)
  8238. mv -f confcache "$cache_file" ;;
  8239. esac
  8240. fi
  8241. fi
  8242. else
  8243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8244. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  8245. fi
  8246. fi
  8247. rm -f confcache
  8248. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8249. # Let make expand exec_prefix.
  8250. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8251. DEFS=-DHAVE_CONFIG_H
  8252. ac_libobjs=
  8253. ac_ltlibobjs=
  8254. U=
  8255. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8256. # 1. Remove the extension, and $U if already installed.
  8257. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8258. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  8259. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8260. # will be set to the directory where LIBOBJS objects are built.
  8261. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8262. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8263. done
  8264. LIBOBJS=$ac_libobjs
  8265. LTLIBOBJS=$ac_ltlibobjs
  8266. : "${CONFIG_STATUS=./build/config.status}"
  8267. ac_write_fail=0
  8268. ac_clean_files_save=$ac_clean_files
  8269. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8271. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  8272. as_write_fail=0
  8273. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8274. #! $SHELL
  8275. # Generated by $as_me.
  8276. # Run this file to recreate the current configuration.
  8277. # Compiler output produced by configure, useful for debugging
  8278. # configure, is in build/config.log if it exists.
  8279. debug=false
  8280. ac_cs_recheck=false
  8281. ac_cs_silent=false
  8282. SHELL=\${CONFIG_SHELL-$SHELL}
  8283. export SHELL
  8284. _ASEOF
  8285. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8286. ## -------------------- ##
  8287. ## M4sh Initialization. ##
  8288. ## -------------------- ##
  8289. # Be more Bourne compatible
  8290. DUALCASE=1; export DUALCASE # for MKS sh
  8291. as_nop=:
  8292. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  8293. then :
  8294. emulate sh
  8295. NULLCMD=:
  8296. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8297. # is contrary to our usage. Disable this feature.
  8298. alias -g '${1+"$@"}'='"$@"'
  8299. setopt NO_GLOB_SUBST
  8300. else $as_nop
  8301. case `(set -o) 2>/dev/null` in #(
  8302. *posix*) :
  8303. set -o posix ;; #(
  8304. *) :
  8305. ;;
  8306. esac
  8307. fi
  8308. # Reset variables that may have inherited troublesome values from
  8309. # the environment.
  8310. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  8311. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  8312. # side effect of setting IFS to empty, thus disabling word splitting.)
  8313. # Quoting is to prevent editors from complaining about space-tab.
  8314. as_nl='
  8315. '
  8316. export as_nl
  8317. IFS=" "" $as_nl"
  8318. PS1='$ '
  8319. PS2='> '
  8320. PS4='+ '
  8321. # Ensure predictable behavior from utilities with locale-dependent output.
  8322. LC_ALL=C
  8323. export LC_ALL
  8324. LANGUAGE=C
  8325. export LANGUAGE
  8326. # We cannot yet rely on "unset" to work, but we need these variables
  8327. # to be unset--not just set to an empty or harmless value--now, to
  8328. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  8329. # also avoids known problems related to "unset" and subshell syntax
  8330. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  8331. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  8332. do eval test \${$as_var+y} \
  8333. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8334. done
  8335. # Ensure that fds 0, 1, and 2 are open.
  8336. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  8337. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  8338. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  8339. # The user is always right.
  8340. if ${PATH_SEPARATOR+false} :; then
  8341. PATH_SEPARATOR=:
  8342. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8343. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8344. PATH_SEPARATOR=';'
  8345. }
  8346. fi
  8347. # Find who we are. Look in the path if we contain no directory separator.
  8348. as_myself=
  8349. case $0 in #((
  8350. *[\\/]* ) as_myself=$0 ;;
  8351. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8352. for as_dir in $PATH
  8353. do
  8354. IFS=$as_save_IFS
  8355. case $as_dir in #(((
  8356. '') as_dir=./ ;;
  8357. */) ;;
  8358. *) as_dir=$as_dir/ ;;
  8359. esac
  8360. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  8361. done
  8362. IFS=$as_save_IFS
  8363. ;;
  8364. esac
  8365. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8366. # in which case we are not to be found in the path.
  8367. if test "x$as_myself" = x; then
  8368. as_myself=$0
  8369. fi
  8370. if test ! -f "$as_myself"; then
  8371. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8372. exit 1
  8373. fi
  8374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8375. # ----------------------------------------
  8376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8378. # script with STATUS, using 1 if that was 0.
  8379. as_fn_error ()
  8380. {
  8381. as_status=$1; test $as_status -eq 0 && as_status=1
  8382. if test "$4"; then
  8383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8384. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8385. fi
  8386. printf "%s\n" "$as_me: error: $2" >&2
  8387. as_fn_exit $as_status
  8388. } # as_fn_error
  8389. # as_fn_set_status STATUS
  8390. # -----------------------
  8391. # Set $? to STATUS, without forking.
  8392. as_fn_set_status ()
  8393. {
  8394. return $1
  8395. } # as_fn_set_status
  8396. # as_fn_exit STATUS
  8397. # -----------------
  8398. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8399. as_fn_exit ()
  8400. {
  8401. set +e
  8402. as_fn_set_status $1
  8403. exit $1
  8404. } # as_fn_exit
  8405. # as_fn_unset VAR
  8406. # ---------------
  8407. # Portably unset VAR.
  8408. as_fn_unset ()
  8409. {
  8410. { eval $1=; unset $1;}
  8411. }
  8412. as_unset=as_fn_unset
  8413. # as_fn_append VAR VALUE
  8414. # ----------------------
  8415. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8416. # advantage of any shell optimizations that allow amortized linear growth over
  8417. # repeated appends, instead of the typical quadratic growth present in naive
  8418. # implementations.
  8419. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  8420. then :
  8421. eval 'as_fn_append ()
  8422. {
  8423. eval $1+=\$2
  8424. }'
  8425. else $as_nop
  8426. as_fn_append ()
  8427. {
  8428. eval $1=\$$1\$2
  8429. }
  8430. fi # as_fn_append
  8431. # as_fn_arith ARG...
  8432. # ------------------
  8433. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8434. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8435. # must be portable across $(()) and expr.
  8436. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  8437. then :
  8438. eval 'as_fn_arith ()
  8439. {
  8440. as_val=$(( $* ))
  8441. }'
  8442. else $as_nop
  8443. as_fn_arith ()
  8444. {
  8445. as_val=`expr "$@" || test $? -eq 1`
  8446. }
  8447. fi # as_fn_arith
  8448. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8449. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8450. as_expr=expr
  8451. else
  8452. as_expr=false
  8453. fi
  8454. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8455. as_basename=basename
  8456. else
  8457. as_basename=false
  8458. fi
  8459. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8460. as_dirname=dirname
  8461. else
  8462. as_dirname=false
  8463. fi
  8464. as_me=`$as_basename -- "$0" ||
  8465. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8466. X"$0" : 'X\(//\)$' \| \
  8467. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8468. printf "%s\n" X/"$0" |
  8469. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8470. s//\1/
  8471. q
  8472. }
  8473. /^X\/\(\/\/\)$/{
  8474. s//\1/
  8475. q
  8476. }
  8477. /^X\/\(\/\).*/{
  8478. s//\1/
  8479. q
  8480. }
  8481. s/.*/./; q'`
  8482. # Avoid depending upon Character Ranges.
  8483. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8484. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8485. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8486. as_cr_digits='0123456789'
  8487. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8488. # Determine whether it's possible to make 'echo' print without a newline.
  8489. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  8490. # for compatibility with existing Makefiles.
  8491. ECHO_C= ECHO_N= ECHO_T=
  8492. case `echo -n x` in #(((((
  8493. -n*)
  8494. case `echo 'xy\c'` in
  8495. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8496. xy) ECHO_C='\c';;
  8497. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8498. ECHO_T=' ';;
  8499. esac;;
  8500. *)
  8501. ECHO_N='-n';;
  8502. esac
  8503. # For backward compatibility with old third-party macros, we provide
  8504. # the shell variables $as_echo and $as_echo_n. New code should use
  8505. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  8506. as_echo='printf %s\n'
  8507. as_echo_n='printf %s'
  8508. rm -f conf$$ conf$$.exe conf$$.file
  8509. if test -d conf$$.dir; then
  8510. rm -f conf$$.dir/conf$$.file
  8511. else
  8512. rm -f conf$$.dir
  8513. mkdir conf$$.dir 2>/dev/null
  8514. fi
  8515. if (echo >conf$$.file) 2>/dev/null; then
  8516. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8517. as_ln_s='ln -s'
  8518. # ... but there are two gotchas:
  8519. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8520. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8521. # In both cases, we have to default to `cp -pR'.
  8522. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8523. as_ln_s='cp -pR'
  8524. elif ln conf$$.file conf$$ 2>/dev/null; then
  8525. as_ln_s=ln
  8526. else
  8527. as_ln_s='cp -pR'
  8528. fi
  8529. else
  8530. as_ln_s='cp -pR'
  8531. fi
  8532. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8533. rmdir conf$$.dir 2>/dev/null
  8534. # as_fn_mkdir_p
  8535. # -------------
  8536. # Create "$as_dir" as a directory, including parents if necessary.
  8537. as_fn_mkdir_p ()
  8538. {
  8539. case $as_dir in #(
  8540. -*) as_dir=./$as_dir;;
  8541. esac
  8542. test -d "$as_dir" || eval $as_mkdir_p || {
  8543. as_dirs=
  8544. while :; do
  8545. case $as_dir in #(
  8546. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8547. *) as_qdir=$as_dir;;
  8548. esac
  8549. as_dirs="'$as_qdir' $as_dirs"
  8550. as_dir=`$as_dirname -- "$as_dir" ||
  8551. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8552. X"$as_dir" : 'X\(//\)[^/]' \| \
  8553. X"$as_dir" : 'X\(//\)$' \| \
  8554. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8555. printf "%s\n" X"$as_dir" |
  8556. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8557. s//\1/
  8558. q
  8559. }
  8560. /^X\(\/\/\)[^/].*/{
  8561. s//\1/
  8562. q
  8563. }
  8564. /^X\(\/\/\)$/{
  8565. s//\1/
  8566. q
  8567. }
  8568. /^X\(\/\).*/{
  8569. s//\1/
  8570. q
  8571. }
  8572. s/.*/./; q'`
  8573. test -d "$as_dir" && break
  8574. done
  8575. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8576. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8577. } # as_fn_mkdir_p
  8578. if mkdir -p . 2>/dev/null; then
  8579. as_mkdir_p='mkdir -p "$as_dir"'
  8580. else
  8581. test -d ./-p && rmdir ./-p
  8582. as_mkdir_p=false
  8583. fi
  8584. # as_fn_executable_p FILE
  8585. # -----------------------
  8586. # Test if FILE is an executable regular file.
  8587. as_fn_executable_p ()
  8588. {
  8589. test -f "$1" && test -x "$1"
  8590. } # as_fn_executable_p
  8591. as_test_x='test -x'
  8592. as_executable_p=as_fn_executable_p
  8593. # Sed expression to map a string onto a valid CPP name.
  8594. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8595. # Sed expression to map a string onto a valid variable name.
  8596. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8597. exec 6>&1
  8598. ## ----------------------------------- ##
  8599. ## Main body of $CONFIG_STATUS script. ##
  8600. ## ----------------------------------- ##
  8601. _ASEOF
  8602. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8603. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8604. # Save the log message, to keep $0 and so on meaningful, and to
  8605. # report actual input values of CONFIG_FILES etc. instead of their
  8606. # values after options handling.
  8607. ac_log="
  8608. This file was extended by $as_me, which was
  8609. generated by GNU Autoconf 2.71. Invocation command line was
  8610. CONFIG_FILES = $CONFIG_FILES
  8611. CONFIG_HEADERS = $CONFIG_HEADERS
  8612. CONFIG_LINKS = $CONFIG_LINKS
  8613. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8614. $ $0 $@
  8615. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8616. "
  8617. _ACEOF
  8618. case $ac_config_files in *"
  8619. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8620. esac
  8621. case $ac_config_headers in *"
  8622. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8623. esac
  8624. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8625. # Files that build/config.status was made for.
  8626. config_files="$ac_config_files"
  8627. config_headers="$ac_config_headers"
  8628. _ACEOF
  8629. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8630. ac_cs_usage="\
  8631. \`$as_me' instantiates files and other configuration actions
  8632. from templates according to the current configuration. Unless the files
  8633. and actions are specified as TAGs, all are instantiated by default.
  8634. Usage: $0 [OPTION]... [TAG]...
  8635. -h, --help print this help, then exit
  8636. -V, --version print version number and configuration settings, then exit
  8637. --config print configuration, then exit
  8638. -q, --quiet, --silent
  8639. do not print progress messages
  8640. -d, --debug don't remove temporary files
  8641. --recheck update $as_me by reconfiguring in the same conditions
  8642. --file=FILE[:TEMPLATE]
  8643. instantiate the configuration file FILE
  8644. --header=FILE[:TEMPLATE]
  8645. instantiate the configuration header FILE
  8646. Configuration files:
  8647. $config_files
  8648. Configuration headers:
  8649. $config_headers
  8650. Report bugs to the package provider."
  8651. _ACEOF
  8652. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  8653. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  8654. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8655. ac_cs_config='$ac_cs_config_escaped'
  8656. ac_cs_version="\\
  8657. build/config.status
  8658. configured by $0, generated by GNU Autoconf 2.71,
  8659. with options \\"\$ac_cs_config\\"
  8660. Copyright (C) 2021 Free Software Foundation, Inc.
  8661. This build/config.status script is free software; the Free Software Foundation
  8662. gives unlimited permission to copy, distribute and modify it."
  8663. ac_pwd='$ac_pwd'
  8664. srcdir='$srcdir'
  8665. AWK='$AWK'
  8666. test -n "\$AWK" || AWK=awk
  8667. _ACEOF
  8668. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8669. # The default lists apply if the user does not specify any file.
  8670. ac_need_defaults=:
  8671. while test $# != 0
  8672. do
  8673. case $1 in
  8674. --*=?*)
  8675. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8676. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8677. ac_shift=:
  8678. ;;
  8679. --*=)
  8680. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8681. ac_optarg=
  8682. ac_shift=:
  8683. ;;
  8684. *)
  8685. ac_option=$1
  8686. ac_optarg=$2
  8687. ac_shift=shift
  8688. ;;
  8689. esac
  8690. case $ac_option in
  8691. # Handling of the options.
  8692. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8693. ac_cs_recheck=: ;;
  8694. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8695. printf "%s\n" "$ac_cs_version"; exit ;;
  8696. --config | --confi | --conf | --con | --co | --c )
  8697. printf "%s\n" "$ac_cs_config"; exit ;;
  8698. --debug | --debu | --deb | --de | --d | -d )
  8699. debug=: ;;
  8700. --file | --fil | --fi | --f )
  8701. $ac_shift
  8702. case $ac_optarg in
  8703. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8704. '') as_fn_error $? "missing file argument" ;;
  8705. esac
  8706. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8707. ac_need_defaults=false;;
  8708. --header | --heade | --head | --hea )
  8709. $ac_shift
  8710. case $ac_optarg in
  8711. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8712. esac
  8713. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8714. ac_need_defaults=false;;
  8715. --he | --h)
  8716. # Conflict between --help and --header
  8717. as_fn_error $? "ambiguous option: \`$1'
  8718. Try \`$0 --help' for more information.";;
  8719. --help | --hel | -h )
  8720. printf "%s\n" "$ac_cs_usage"; exit ;;
  8721. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8722. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8723. ac_cs_silent=: ;;
  8724. # This is an error.
  8725. -*) as_fn_error $? "unrecognized option: \`$1'
  8726. Try \`$0 --help' for more information." ;;
  8727. *) as_fn_append ac_config_targets " $1"
  8728. ac_need_defaults=false ;;
  8729. esac
  8730. shift
  8731. done
  8732. ac_configure_extra_args=
  8733. if $ac_cs_silent; then
  8734. exec 6>/dev/null
  8735. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8736. fi
  8737. _ACEOF
  8738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8739. if \$ac_cs_recheck; then
  8740. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8741. shift
  8742. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  8743. CONFIG_SHELL='$SHELL'
  8744. export CONFIG_SHELL
  8745. exec "\$@"
  8746. fi
  8747. _ACEOF
  8748. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8749. exec 5>>build/config.log
  8750. {
  8751. echo
  8752. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8753. ## Running $as_me. ##
  8754. _ASBOX
  8755. printf "%s\n" "$ac_log"
  8756. } >&5
  8757. _ACEOF
  8758. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8759. _ACEOF
  8760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8761. # Handling of arguments.
  8762. for ac_config_target in $ac_config_targets
  8763. do
  8764. case $ac_config_target in
  8765. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8766. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8767. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8768. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8769. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8770. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8771. esac
  8772. done
  8773. # If the user did not use the arguments to specify the items to instantiate,
  8774. # then the envvar interface is used. Set only those that are not.
  8775. # We use the long form for the default assignment because of an extremely
  8776. # bizarre bug on SunOS 4.1.3.
  8777. if $ac_need_defaults; then
  8778. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  8779. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  8780. fi
  8781. # Have a temporary directory for convenience. Make it in the build tree
  8782. # simply because there is no reason against having it here, and in addition,
  8783. # creating and moving files from /tmp can sometimes cause problems.
  8784. # Hook for its removal unless debugging.
  8785. # Note that there is a small window in which the directory will not be cleaned:
  8786. # after its creation but before its name has been assigned to `$tmp'.
  8787. $debug ||
  8788. {
  8789. tmp= ac_tmp=
  8790. trap 'exit_status=$?
  8791. : "${ac_tmp:=$tmp}"
  8792. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8793. ' 0
  8794. trap 'as_fn_exit 1' 1 2 13 15
  8795. }
  8796. # Create a (secure) tmp directory for tmp files.
  8797. {
  8798. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8799. test -d "$tmp"
  8800. } ||
  8801. {
  8802. tmp=./conf$$-$RANDOM
  8803. (umask 077 && mkdir "$tmp")
  8804. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8805. ac_tmp=$tmp
  8806. # Set up the scripts for CONFIG_FILES section.
  8807. # No need to generate them if there are no CONFIG_FILES.
  8808. # This happens for instance with `./build/config.status config.h'.
  8809. if test -n "$CONFIG_FILES"; then
  8810. ac_cr=`echo X | tr X '\015'`
  8811. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8812. # But we know of no other shell where ac_cr would be empty at this
  8813. # point, so we can use a bashism as a fallback.
  8814. if test "x$ac_cr" = x; then
  8815. eval ac_cr=\$\'\\r\'
  8816. fi
  8817. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8818. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8819. ac_cs_awk_cr='\\r'
  8820. else
  8821. ac_cs_awk_cr=$ac_cr
  8822. fi
  8823. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8824. _ACEOF
  8825. {
  8826. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8827. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8828. echo "_ACEOF"
  8829. } >conf$$subs.sh ||
  8830. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8831. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8832. ac_delim='%!_!# '
  8833. for ac_last_try in false false false false false :; do
  8834. . ./conf$$subs.sh ||
  8835. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8836. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8837. if test $ac_delim_n = $ac_delim_num; then
  8838. break
  8839. elif $ac_last_try; then
  8840. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8841. else
  8842. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8843. fi
  8844. done
  8845. rm -f conf$$subs.sh
  8846. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8847. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8848. _ACEOF
  8849. sed -n '
  8850. h
  8851. s/^/S["/; s/!.*/"]=/
  8852. p
  8853. g
  8854. s/^[^!]*!//
  8855. :repl
  8856. t repl
  8857. s/'"$ac_delim"'$//
  8858. t delim
  8859. :nl
  8860. h
  8861. s/\(.\{148\}\)..*/\1/
  8862. t more1
  8863. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8864. p
  8865. n
  8866. b repl
  8867. :more1
  8868. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8869. p
  8870. g
  8871. s/.\{148\}//
  8872. t nl
  8873. :delim
  8874. h
  8875. s/\(.\{148\}\)..*/\1/
  8876. t more2
  8877. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8878. p
  8879. b
  8880. :more2
  8881. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8882. p
  8883. g
  8884. s/.\{148\}//
  8885. t delim
  8886. ' <conf$$subs.awk | sed '
  8887. /^[^""]/{
  8888. N
  8889. s/\n//
  8890. }
  8891. ' >>$CONFIG_STATUS || ac_write_fail=1
  8892. rm -f conf$$subs.awk
  8893. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8894. _ACAWK
  8895. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8896. for (key in S) S_is_set[key] = 1
  8897. FS = ""
  8898. }
  8899. {
  8900. line = $ 0
  8901. nfields = split(line, field, "@")
  8902. substed = 0
  8903. len = length(field[1])
  8904. for (i = 2; i < nfields; i++) {
  8905. key = field[i]
  8906. keylen = length(key)
  8907. if (S_is_set[key]) {
  8908. value = S[key]
  8909. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8910. len += length(value) + length(field[++i])
  8911. substed = 1
  8912. } else
  8913. len += 1 + keylen
  8914. }
  8915. print line
  8916. }
  8917. _ACAWK
  8918. _ACEOF
  8919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8920. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8921. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8922. else
  8923. cat
  8924. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8925. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8926. _ACEOF
  8927. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8928. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8929. # trailing colons and then remove the whole line if VPATH becomes empty
  8930. # (actually we leave an empty line to preserve line numbers).
  8931. if test "x$srcdir" = x.; then
  8932. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8933. h
  8934. s///
  8935. s/^/:/
  8936. s/[ ]*$/:/
  8937. s/:\$(srcdir):/:/g
  8938. s/:\${srcdir}:/:/g
  8939. s/:@srcdir@:/:/g
  8940. s/^:*//
  8941. s/:*$//
  8942. x
  8943. s/\(=[ ]*\).*/\1/
  8944. G
  8945. s/\n//
  8946. s/^[^=]*=[ ]*$//
  8947. }'
  8948. fi
  8949. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8950. fi # test -n "$CONFIG_FILES"
  8951. # Set up the scripts for CONFIG_HEADERS section.
  8952. # No need to generate them if there are no CONFIG_HEADERS.
  8953. # This happens for instance with `./build/config.status Makefile'.
  8954. if test -n "$CONFIG_HEADERS"; then
  8955. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8956. BEGIN {
  8957. _ACEOF
  8958. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8959. # here-document in build/config.status, that substitutes the proper values into
  8960. # config.h.in to produce config.h.
  8961. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8962. # handling of long lines.
  8963. ac_delim='%!_!# '
  8964. for ac_last_try in false false :; do
  8965. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8966. if test -z "$ac_tt"; then
  8967. break
  8968. elif $ac_last_try; then
  8969. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8970. else
  8971. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8972. fi
  8973. done
  8974. # For the awk script, D is an array of macro values keyed by name,
  8975. # likewise P contains macro parameters if any. Preserve backslash
  8976. # newline sequences.
  8977. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8978. sed -n '
  8979. s/.\{148\}/&'"$ac_delim"'/g
  8980. t rset
  8981. :rset
  8982. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8983. t def
  8984. d
  8985. :def
  8986. s/\\$//
  8987. t bsnl
  8988. s/["\\]/\\&/g
  8989. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8990. D["\1"]=" \3"/p
  8991. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8992. d
  8993. :bsnl
  8994. s/["\\]/\\&/g
  8995. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8996. D["\1"]=" \3\\\\\\n"\\/p
  8997. t cont
  8998. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8999. t cont
  9000. d
  9001. :cont
  9002. n
  9003. s/.\{148\}/&'"$ac_delim"'/g
  9004. t clear
  9005. :clear
  9006. s/\\$//
  9007. t bsnlc
  9008. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9009. d
  9010. :bsnlc
  9011. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9012. b cont
  9013. ' <build/confdefs.h | sed '
  9014. s/'"$ac_delim"'/"\\\
  9015. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9016. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9017. for (key in D) D_is_set[key] = 1
  9018. FS = ""
  9019. }
  9020. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9021. line = \$ 0
  9022. split(line, arg, " ")
  9023. if (arg[1] == "#") {
  9024. defundef = arg[2]
  9025. mac1 = arg[3]
  9026. } else {
  9027. defundef = substr(arg[1], 2)
  9028. mac1 = arg[2]
  9029. }
  9030. split(mac1, mac2, "(") #)
  9031. macro = mac2[1]
  9032. prefix = substr(line, 1, index(line, defundef) - 1)
  9033. if (D_is_set[macro]) {
  9034. # Preserve the white space surrounding the "#".
  9035. print prefix "define", macro P[macro] D[macro]
  9036. next
  9037. } else {
  9038. # Replace #undef with comments. This is necessary, for example,
  9039. # in the case of _POSIX_SOURCE, which is predefined and required
  9040. # on some systems where configure will not decide to define it.
  9041. if (defundef == "undef") {
  9042. print "/*", prefix defundef, macro, "*/"
  9043. next
  9044. }
  9045. }
  9046. }
  9047. { print }
  9048. _ACAWK
  9049. _ACEOF
  9050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9051. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9052. fi # test -n "$CONFIG_HEADERS"
  9053. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  9054. shift
  9055. for ac_tag
  9056. do
  9057. case $ac_tag in
  9058. :[FHLC]) ac_mode=$ac_tag; continue;;
  9059. esac
  9060. case $ac_mode$ac_tag in
  9061. :[FHL]*:*);;
  9062. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9063. :[FH]-) ac_tag=-:-;;
  9064. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9065. esac
  9066. ac_save_IFS=$IFS
  9067. IFS=:
  9068. set x $ac_tag
  9069. IFS=$ac_save_IFS
  9070. shift
  9071. ac_file=$1
  9072. shift
  9073. case $ac_mode in
  9074. :L) ac_source=$1;;
  9075. :[FH])
  9076. ac_file_inputs=
  9077. for ac_f
  9078. do
  9079. case $ac_f in
  9080. -) ac_f="$ac_tmp/stdin";;
  9081. *) # Look for the file first in the build tree, then in the source tree
  9082. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9083. # because $ac_f cannot contain `:'.
  9084. test -f "$ac_f" ||
  9085. case $ac_f in
  9086. [\\/$]*) false;;
  9087. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9088. esac ||
  9089. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9090. esac
  9091. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9092. as_fn_append ac_file_inputs " '$ac_f'"
  9093. done
  9094. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9095. # use $as_me), people would be surprised to read:
  9096. # /* config.h. Generated by build/config.status. */
  9097. configure_input='Generated from '`
  9098. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9099. `' by configure.'
  9100. if test x"$ac_file" != x-; then
  9101. configure_input="$ac_file. $configure_input"
  9102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9103. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  9104. fi
  9105. # Neutralize special characters interpreted by sed in replacement strings.
  9106. case $configure_input in #(
  9107. *\&* | *\|* | *\\* )
  9108. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  9109. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9110. *) ac_sed_conf_input=$configure_input;;
  9111. esac
  9112. case $ac_tag in
  9113. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9114. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9115. esac
  9116. ;;
  9117. esac
  9118. ac_dir=`$as_dirname -- "$ac_file" ||
  9119. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9120. X"$ac_file" : 'X\(//\)[^/]' \| \
  9121. X"$ac_file" : 'X\(//\)$' \| \
  9122. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9123. printf "%s\n" X"$ac_file" |
  9124. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9125. s//\1/
  9126. q
  9127. }
  9128. /^X\(\/\/\)[^/].*/{
  9129. s//\1/
  9130. q
  9131. }
  9132. /^X\(\/\/\)$/{
  9133. s//\1/
  9134. q
  9135. }
  9136. /^X\(\/\).*/{
  9137. s//\1/
  9138. q
  9139. }
  9140. s/.*/./; q'`
  9141. as_dir="$ac_dir"; as_fn_mkdir_p
  9142. ac_builddir=.
  9143. case "$ac_dir" in
  9144. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9145. *)
  9146. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  9147. # A ".." for each directory in $ac_dir_suffix.
  9148. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9149. case $ac_top_builddir_sub in
  9150. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9151. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9152. esac ;;
  9153. esac
  9154. ac_abs_top_builddir=$ac_pwd
  9155. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9156. # for backward compatibility:
  9157. ac_top_builddir=$ac_top_build_prefix
  9158. case $srcdir in
  9159. .) # We are building in place.
  9160. ac_srcdir=.
  9161. ac_top_srcdir=$ac_top_builddir_sub
  9162. ac_abs_top_srcdir=$ac_pwd ;;
  9163. [\\/]* | ?:[\\/]* ) # Absolute name.
  9164. ac_srcdir=$srcdir$ac_dir_suffix;
  9165. ac_top_srcdir=$srcdir
  9166. ac_abs_top_srcdir=$srcdir ;;
  9167. *) # Relative name.
  9168. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9169. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9170. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9171. esac
  9172. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9173. case $ac_mode in
  9174. :F)
  9175. #
  9176. # CONFIG_FILE
  9177. #
  9178. _ACEOF
  9179. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9180. # If the template does not know about datarootdir, expand it.
  9181. # FIXME: This hack should be removed a few years after 2.60.
  9182. ac_datarootdir_hack=; ac_datarootdir_seen=
  9183. ac_sed_dataroot='
  9184. /datarootdir/ {
  9185. p
  9186. q
  9187. }
  9188. /@datadir@/p
  9189. /@docdir@/p
  9190. /@infodir@/p
  9191. /@localedir@/p
  9192. /@mandir@/p'
  9193. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9194. *datarootdir*) ac_datarootdir_seen=yes;;
  9195. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9197. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9198. _ACEOF
  9199. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9200. ac_datarootdir_hack='
  9201. s&@datadir@&$datadir&g
  9202. s&@docdir@&$docdir&g
  9203. s&@infodir@&$infodir&g
  9204. s&@localedir@&$localedir&g
  9205. s&@mandir@&$mandir&g
  9206. s&\\\${datarootdir}&$datarootdir&g' ;;
  9207. esac
  9208. _ACEOF
  9209. # Neutralize VPATH when `$srcdir' = `.'.
  9210. # Shell code in configure.ac might set extrasub.
  9211. # FIXME: do we really want to maintain this feature?
  9212. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9213. ac_sed_extra="$ac_vpsub
  9214. $extrasub
  9215. _ACEOF
  9216. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9217. :t
  9218. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9219. s|@configure_input@|$ac_sed_conf_input|;t t
  9220. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9221. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9222. s&@srcdir@&$ac_srcdir&;t t
  9223. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9224. s&@top_srcdir@&$ac_top_srcdir&;t t
  9225. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9226. s&@builddir@&$ac_builddir&;t t
  9227. s&@abs_builddir@&$ac_abs_builddir&;t t
  9228. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9229. $ac_datarootdir_hack
  9230. "
  9231. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9232. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9233. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9234. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9235. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9236. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9238. which seems to be undefined. Please make sure it is defined" >&5
  9239. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9240. which seems to be undefined. Please make sure it is defined" >&2;}
  9241. rm -f "$ac_tmp/stdin"
  9242. case $ac_file in
  9243. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9244. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9245. esac \
  9246. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9247. ;;
  9248. :H)
  9249. #
  9250. # CONFIG_HEADER
  9251. #
  9252. if test x"$ac_file" != x-; then
  9253. {
  9254. printf "%s\n" "/* $configure_input */" >&1 \
  9255. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9256. } >"$ac_tmp/config.h" \
  9257. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9258. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9260. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  9261. else
  9262. rm -f "$ac_file"
  9263. mv "$ac_tmp/config.h" "$ac_file" \
  9264. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9265. fi
  9266. else
  9267. printf "%s\n" "/* $configure_input */" >&1 \
  9268. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9269. || as_fn_error $? "could not create -" "$LINENO" 5
  9270. fi
  9271. ;;
  9272. esac
  9273. done # for ac_tag
  9274. as_fn_exit 0
  9275. _ACEOF
  9276. ac_clean_files=$ac_clean_files_save
  9277. test $ac_write_fail = 0 ||
  9278. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9279. # configure is writing to build/config.log, and then calls build/config.status.
  9280. # build/config.status does its own redirection, appending to build/config.log.
  9281. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9282. # by configure, so build/config.status won't be able to write to it; its
  9283. # output is simply discarded. So we exec the FD to /dev/null,
  9284. # effectively closing build/config.log, so it can be properly (re)opened and
  9285. # appended to by build/config.status. When coming back to configure, we
  9286. # need to make the FD available again.
  9287. if test "$no_create" != yes; then
  9288. ac_cs_success=:
  9289. ac_config_status_args=
  9290. test "$silent" = yes &&
  9291. ac_config_status_args="$ac_config_status_args --quiet"
  9292. exec 5>/dev/null
  9293. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9294. exec 5>>build/config.log
  9295. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9296. # would make configure fail if this is the last instruction.
  9297. $ac_cs_success || as_fn_exit 1
  9298. fi
  9299. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9301. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9302. fi
  9303. GIT_REQUIRED=1
  9304. if [ "$GIT_REQUIRED" = "1" ]; then
  9305. if ! test -d .git; then
  9306. echo ""
  9307. echo ""
  9308. echo "You have downloaded a GIT version of wraith."
  9309. echo "Either 'git clone' from a git repository or download a source tarball"
  9310. echo "A distribution version can be found at https://github.com/wraith/wraith/wiki/Download"
  9311. echo ""
  9312. echo ""
  9313. exit 1
  9314. fi
  9315. fi
  9316. if test -d .git; then
  9317. git submodule init || exit 1
  9318. git submodule update || exit 1
  9319. git submodule foreach --recursive git clean -fdx || exit 1
  9320. # Restore as it may have been removed by an older 'make distclean'
  9321. if ! test -f src/response.h; then
  9322. git checkout src/response.h || exit 1
  9323. fi
  9324. fi
  9325. echo
  9326. echo
  9327. echo "------------ Configuring BDLIB ------------"
  9328. [ -f lib/bdlib/configure ] && ( cd lib/bdlib && CXX="$CXX" ./configure )
  9329. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  9330. echo
  9331. echo
  9332. echo "------------ Configuring LIBELF ------------"
  9333. ( cd lib/libelf && CC="$CC" CXX="$CXX" ./configure )
  9334. fi
  9335. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" SED="$SED" src/generate_defs.sh
  9336. if [ $? -ne 0 ]; then
  9337. exit 1
  9338. fi