configure 276 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. enable_option_checking=no
  578. ac_subst_vars='LTLIBOBJS
  579. subdirs
  580. NUMVER
  581. VERSION
  582. LIBOBJS
  583. TCL_LIBS
  584. TCL_REQS
  585. DEFAULT_MAKE
  586. TCLINCFN
  587. TCL_INCLUDES
  588. TCLLIBFN
  589. TCLLIB
  590. SSL_LIBS
  591. SSL_INCLUDES
  592. LIBELF_LIB
  593. LIBELF_BUNDLED
  594. EGREP
  595. GREP
  596. DEBCXXFLAGS
  597. STATIC
  598. BUILDARCH
  599. BUILDOS
  600. UNAME
  601. DIFF
  602. STRIP
  603. OBJCOPY
  604. BASENAME
  605. AWK
  606. HEAD_1
  607. SED
  608. SET_MAKE
  609. GCC4DEB
  610. GCC3DEB
  611. GCC3_CXXFLAGS
  612. GCC3_CFLAGS
  613. CCDEPMODE
  614. HAVE_CXX11
  615. CXXCPP
  616. CC
  617. OBJEXT
  618. EXEEXT
  619. ac_ct_CXX
  620. CPPFLAGS
  621. LDFLAGS
  622. CXXFLAGS
  623. CXX
  624. egg_ac_parameters
  625. target_alias
  626. host_alias
  627. build_alias
  628. LIBS
  629. ECHO_T
  630. ECHO_N
  631. ECHO_C
  632. DEFS
  633. mandir
  634. localedir
  635. libdir
  636. psdir
  637. pdfdir
  638. dvidir
  639. htmldir
  640. infodir
  641. docdir
  642. oldincludedir
  643. includedir
  644. localstatedir
  645. sharedstatedir
  646. sysconfdir
  647. datadir
  648. datarootdir
  649. libexecdir
  650. sbindir
  651. bindir
  652. program_transform_name
  653. prefix
  654. exec_prefix
  655. PACKAGE_URL
  656. PACKAGE_BUGREPORT
  657. PACKAGE_STRING
  658. PACKAGE_VERSION
  659. PACKAGE_TARNAME
  660. PACKAGE_NAME
  661. PATH_SEPARATOR
  662. SHELL'
  663. ac_subst_files=''
  664. ac_user_opts='
  665. enable_option_checking
  666. enable_ipv6
  667. with_openssl
  668. with_tcllib
  669. with_tclinc
  670. enable_script_tcl
  671. '
  672. ac_precious_vars='build_alias
  673. host_alias
  674. target_alias
  675. CXX
  676. CXXFLAGS
  677. LDFLAGS
  678. LIBS
  679. CPPFLAGS
  680. CCC
  681. CXXCPP'
  682. ac_subdirs_all='lib/bdlib
  683. lib/libelf'
  684. # Initialize some variables set by options.
  685. ac_init_help=
  686. ac_init_version=false
  687. ac_unrecognized_opts=
  688. ac_unrecognized_sep=
  689. # The variables have the same names as the options, with
  690. # dashes changed to underlines.
  691. cache_file=/dev/null
  692. exec_prefix=NONE
  693. no_create=
  694. no_recursion=
  695. prefix=NONE
  696. program_prefix=NONE
  697. program_suffix=NONE
  698. program_transform_name=s,x,x,
  699. silent=
  700. site=
  701. srcdir=
  702. verbose=
  703. x_includes=NONE
  704. x_libraries=NONE
  705. # Installation directory options.
  706. # These are left unexpanded so users can "make install exec_prefix=/foo"
  707. # and all the variables that are supposed to be based on exec_prefix
  708. # by default will actually change.
  709. # Use braces instead of parens because sh, perl, etc. also accept them.
  710. # (The list follows the same order as the GNU Coding Standards.)
  711. bindir='${exec_prefix}/bin'
  712. sbindir='${exec_prefix}/sbin'
  713. libexecdir='${exec_prefix}/libexec'
  714. datarootdir='${prefix}/share'
  715. datadir='${datarootdir}'
  716. sysconfdir='${prefix}/etc'
  717. sharedstatedir='${prefix}/com'
  718. localstatedir='${prefix}/var'
  719. includedir='${prefix}/include'
  720. oldincludedir='/usr/include'
  721. docdir='${datarootdir}/doc/${PACKAGE}'
  722. infodir='${datarootdir}/info'
  723. htmldir='${docdir}'
  724. dvidir='${docdir}'
  725. pdfdir='${docdir}'
  726. psdir='${docdir}'
  727. libdir='${exec_prefix}/lib'
  728. localedir='${datarootdir}/locale'
  729. mandir='${datarootdir}/man'
  730. ac_prev=
  731. ac_dashdash=
  732. for ac_option
  733. do
  734. # If the previous option needs an argument, assign it.
  735. if test -n "$ac_prev"; then
  736. eval $ac_prev=\$ac_option
  737. ac_prev=
  738. continue
  739. fi
  740. case $ac_option in
  741. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  742. *=) ac_optarg= ;;
  743. *) ac_optarg=yes ;;
  744. esac
  745. # Accept the important Cygnus configure options, so we can diagnose typos.
  746. case $ac_dashdash$ac_option in
  747. --)
  748. ac_dashdash=yes ;;
  749. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  750. ac_prev=bindir ;;
  751. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  752. bindir=$ac_optarg ;;
  753. -build | --build | --buil | --bui | --bu)
  754. ac_prev=build_alias ;;
  755. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  756. build_alias=$ac_optarg ;;
  757. -cache-file | --cache-file | --cache-fil | --cache-fi \
  758. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  759. ac_prev=cache_file ;;
  760. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  761. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  762. cache_file=$ac_optarg ;;
  763. --config-cache | -C)
  764. cache_file=config.cache ;;
  765. -datadir | --datadir | --datadi | --datad)
  766. ac_prev=datadir ;;
  767. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  768. datadir=$ac_optarg ;;
  769. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  770. | --dataroo | --dataro | --datar)
  771. ac_prev=datarootdir ;;
  772. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  773. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  774. datarootdir=$ac_optarg ;;
  775. -disable-* | --disable-*)
  776. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  777. # Reject names that are not valid shell variable names.
  778. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  779. as_fn_error $? "invalid feature name: $ac_useropt"
  780. ac_useropt_orig=$ac_useropt
  781. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  782. case $ac_user_opts in
  783. *"
  784. "enable_$ac_useropt"
  785. "*) ;;
  786. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  787. ac_unrecognized_sep=', ';;
  788. esac
  789. eval enable_$ac_useropt=no ;;
  790. -docdir | --docdir | --docdi | --doc | --do)
  791. ac_prev=docdir ;;
  792. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  793. docdir=$ac_optarg ;;
  794. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  795. ac_prev=dvidir ;;
  796. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  797. dvidir=$ac_optarg ;;
  798. -enable-* | --enable-*)
  799. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  800. # Reject names that are not valid shell variable names.
  801. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  802. as_fn_error $? "invalid feature name: $ac_useropt"
  803. ac_useropt_orig=$ac_useropt
  804. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  805. case $ac_user_opts in
  806. *"
  807. "enable_$ac_useropt"
  808. "*) ;;
  809. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  810. ac_unrecognized_sep=', ';;
  811. esac
  812. eval enable_$ac_useropt=\$ac_optarg ;;
  813. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  814. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  815. | --exec | --exe | --ex)
  816. ac_prev=exec_prefix ;;
  817. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  818. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  819. | --exec=* | --exe=* | --ex=*)
  820. exec_prefix=$ac_optarg ;;
  821. -gas | --gas | --ga | --g)
  822. # Obsolete; use --with-gas.
  823. with_gas=yes ;;
  824. -help | --help | --hel | --he | -h)
  825. ac_init_help=long ;;
  826. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  827. ac_init_help=recursive ;;
  828. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  829. ac_init_help=short ;;
  830. -host | --host | --hos | --ho)
  831. ac_prev=host_alias ;;
  832. -host=* | --host=* | --hos=* | --ho=*)
  833. host_alias=$ac_optarg ;;
  834. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  835. ac_prev=htmldir ;;
  836. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  837. | --ht=*)
  838. htmldir=$ac_optarg ;;
  839. -includedir | --includedir | --includedi | --included | --include \
  840. | --includ | --inclu | --incl | --inc)
  841. ac_prev=includedir ;;
  842. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  843. | --includ=* | --inclu=* | --incl=* | --inc=*)
  844. includedir=$ac_optarg ;;
  845. -infodir | --infodir | --infodi | --infod | --info | --inf)
  846. ac_prev=infodir ;;
  847. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  848. infodir=$ac_optarg ;;
  849. -libdir | --libdir | --libdi | --libd)
  850. ac_prev=libdir ;;
  851. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  852. libdir=$ac_optarg ;;
  853. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  854. | --libexe | --libex | --libe)
  855. ac_prev=libexecdir ;;
  856. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  857. | --libexe=* | --libex=* | --libe=*)
  858. libexecdir=$ac_optarg ;;
  859. -localedir | --localedir | --localedi | --localed | --locale)
  860. ac_prev=localedir ;;
  861. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  862. localedir=$ac_optarg ;;
  863. -localstatedir | --localstatedir | --localstatedi | --localstated \
  864. | --localstate | --localstat | --localsta | --localst | --locals)
  865. ac_prev=localstatedir ;;
  866. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  867. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  868. localstatedir=$ac_optarg ;;
  869. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  870. ac_prev=mandir ;;
  871. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  872. mandir=$ac_optarg ;;
  873. -nfp | --nfp | --nf)
  874. # Obsolete; use --without-fp.
  875. with_fp=no ;;
  876. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  877. | --no-cr | --no-c | -n)
  878. no_create=yes ;;
  879. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  880. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  881. no_recursion=yes ;;
  882. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  883. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  884. | --oldin | --oldi | --old | --ol | --o)
  885. ac_prev=oldincludedir ;;
  886. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  887. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  888. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  889. oldincludedir=$ac_optarg ;;
  890. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  891. ac_prev=prefix ;;
  892. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  893. prefix=$ac_optarg ;;
  894. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  895. | --program-pre | --program-pr | --program-p)
  896. ac_prev=program_prefix ;;
  897. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  898. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  899. program_prefix=$ac_optarg ;;
  900. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  901. | --program-suf | --program-su | --program-s)
  902. ac_prev=program_suffix ;;
  903. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  904. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  905. program_suffix=$ac_optarg ;;
  906. -program-transform-name | --program-transform-name \
  907. | --program-transform-nam | --program-transform-na \
  908. | --program-transform-n | --program-transform- \
  909. | --program-transform | --program-transfor \
  910. | --program-transfo | --program-transf \
  911. | --program-trans | --program-tran \
  912. | --progr-tra | --program-tr | --program-t)
  913. ac_prev=program_transform_name ;;
  914. -program-transform-name=* | --program-transform-name=* \
  915. | --program-transform-nam=* | --program-transform-na=* \
  916. | --program-transform-n=* | --program-transform-=* \
  917. | --program-transform=* | --program-transfor=* \
  918. | --program-transfo=* | --program-transf=* \
  919. | --program-trans=* | --program-tran=* \
  920. | --progr-tra=* | --program-tr=* | --program-t=*)
  921. program_transform_name=$ac_optarg ;;
  922. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  923. ac_prev=pdfdir ;;
  924. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  925. pdfdir=$ac_optarg ;;
  926. -psdir | --psdir | --psdi | --psd | --ps)
  927. ac_prev=psdir ;;
  928. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  929. psdir=$ac_optarg ;;
  930. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  931. | -silent | --silent | --silen | --sile | --sil)
  932. silent=yes ;;
  933. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  934. ac_prev=sbindir ;;
  935. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  936. | --sbi=* | --sb=*)
  937. sbindir=$ac_optarg ;;
  938. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  939. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  940. | --sharedst | --shareds | --shared | --share | --shar \
  941. | --sha | --sh)
  942. ac_prev=sharedstatedir ;;
  943. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  944. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  945. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  946. | --sha=* | --sh=*)
  947. sharedstatedir=$ac_optarg ;;
  948. -site | --site | --sit)
  949. ac_prev=site ;;
  950. -site=* | --site=* | --sit=*)
  951. site=$ac_optarg ;;
  952. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  953. ac_prev=srcdir ;;
  954. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  955. srcdir=$ac_optarg ;;
  956. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  957. | --syscon | --sysco | --sysc | --sys | --sy)
  958. ac_prev=sysconfdir ;;
  959. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  960. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  961. sysconfdir=$ac_optarg ;;
  962. -target | --target | --targe | --targ | --tar | --ta | --t)
  963. ac_prev=target_alias ;;
  964. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  965. target_alias=$ac_optarg ;;
  966. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  967. verbose=yes ;;
  968. -version | --version | --versio | --versi | --vers | -V)
  969. ac_init_version=: ;;
  970. -with-* | --with-*)
  971. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  972. # Reject names that are not valid shell variable names.
  973. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  974. as_fn_error $? "invalid package name: $ac_useropt"
  975. ac_useropt_orig=$ac_useropt
  976. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  977. case $ac_user_opts in
  978. *"
  979. "with_$ac_useropt"
  980. "*) ;;
  981. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  982. ac_unrecognized_sep=', ';;
  983. esac
  984. eval with_$ac_useropt=\$ac_optarg ;;
  985. -without-* | --without-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error $? "invalid package name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "with_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval with_$ac_useropt=no ;;
  1000. --x)
  1001. # Obsolete; use --with-x.
  1002. with_x=yes ;;
  1003. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1004. | --x-incl | --x-inc | --x-in | --x-i)
  1005. ac_prev=x_includes ;;
  1006. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1007. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1008. x_includes=$ac_optarg ;;
  1009. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1010. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1011. ac_prev=x_libraries ;;
  1012. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1013. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1014. x_libraries=$ac_optarg ;;
  1015. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1016. Try \`$0 --help' for more information"
  1017. ;;
  1018. *=*)
  1019. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1020. # Reject names that are not valid shell variable names.
  1021. case $ac_envvar in #(
  1022. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1023. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1024. esac
  1025. eval $ac_envvar=\$ac_optarg
  1026. export $ac_envvar ;;
  1027. *)
  1028. # FIXME: should be removed in autoconf 3.0.
  1029. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1030. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1031. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1032. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1033. ;;
  1034. esac
  1035. done
  1036. if test -n "$ac_prev"; then
  1037. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1038. as_fn_error $? "missing argument to $ac_option"
  1039. fi
  1040. if test -n "$ac_unrecognized_opts"; then
  1041. case $enable_option_checking in
  1042. no) ;;
  1043. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1044. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1045. esac
  1046. fi
  1047. # Check all directory arguments for consistency.
  1048. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1049. datadir sysconfdir sharedstatedir localstatedir includedir \
  1050. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1051. libdir localedir mandir
  1052. do
  1053. eval ac_val=\$$ac_var
  1054. # Remove trailing slashes.
  1055. case $ac_val in
  1056. */ )
  1057. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1058. eval $ac_var=\$ac_val;;
  1059. esac
  1060. # Be sure to have absolute directory names.
  1061. case $ac_val in
  1062. [\\/$]* | ?:[\\/]* ) continue;;
  1063. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1064. esac
  1065. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1066. done
  1067. # There might be people who depend on the old broken behavior: `$host'
  1068. # used to hold the argument of --host etc.
  1069. # FIXME: To remove some day.
  1070. build=$build_alias
  1071. host=$host_alias
  1072. target=$target_alias
  1073. # FIXME: To remove some day.
  1074. if test "x$host_alias" != x; then
  1075. if test "x$build_alias" = x; then
  1076. cross_compiling=maybe
  1077. elif test "x$build_alias" != "x$host_alias"; then
  1078. cross_compiling=yes
  1079. fi
  1080. fi
  1081. ac_tool_prefix=
  1082. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1083. test "$silent" = yes && exec 6>/dev/null
  1084. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1085. ac_ls_di=`ls -di .` &&
  1086. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1087. as_fn_error $? "working directory cannot be determined"
  1088. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1089. as_fn_error $? "pwd does not report name of working directory"
  1090. # Find the source files, if location was not specified.
  1091. if test -z "$srcdir"; then
  1092. ac_srcdir_defaulted=yes
  1093. # Try the directory containing this script, then the parent directory.
  1094. ac_confdir=`$as_dirname -- "$as_myself" ||
  1095. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1096. X"$as_myself" : 'X\(//\)[^/]' \| \
  1097. X"$as_myself" : 'X\(//\)$' \| \
  1098. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1099. $as_echo X"$as_myself" |
  1100. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1101. s//\1/
  1102. q
  1103. }
  1104. /^X\(\/\/\)[^/].*/{
  1105. s//\1/
  1106. q
  1107. }
  1108. /^X\(\/\/\)$/{
  1109. s//\1/
  1110. q
  1111. }
  1112. /^X\(\/\).*/{
  1113. s//\1/
  1114. q
  1115. }
  1116. s/.*/./; q'`
  1117. srcdir=$ac_confdir
  1118. if test ! -r "$srcdir/$ac_unique_file"; then
  1119. srcdir=..
  1120. fi
  1121. else
  1122. ac_srcdir_defaulted=no
  1123. fi
  1124. if test ! -r "$srcdir/$ac_unique_file"; then
  1125. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1126. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1127. fi
  1128. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1129. ac_abs_confdir=`(
  1130. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1131. pwd)`
  1132. # When building in place, set srcdir=.
  1133. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1134. srcdir=.
  1135. fi
  1136. # Remove unnecessary trailing slashes from srcdir.
  1137. # Double slashes in file names in object file debugging info
  1138. # mess up M-x gdb in Emacs.
  1139. case $srcdir in
  1140. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1141. esac
  1142. for ac_var in $ac_precious_vars; do
  1143. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1144. eval ac_env_${ac_var}_value=\$${ac_var}
  1145. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1146. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1147. done
  1148. #
  1149. # Report the --help message.
  1150. #
  1151. if test "$ac_init_help" = "long"; then
  1152. # Omit some internal or obsolete options to make the list less imposing.
  1153. # This message is too long to be a string in the A/UX 3.1 sh.
  1154. cat <<_ACEOF
  1155. \`configure' configures this package to adapt to many kinds of systems.
  1156. Usage: $0 [OPTION]... [VAR=VALUE]...
  1157. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1158. VAR=VALUE. See below for descriptions of some of the useful variables.
  1159. Defaults for the options are specified in brackets.
  1160. Configuration:
  1161. -h, --help display this help and exit
  1162. --help=short display options specific to this package
  1163. --help=recursive display the short help of all the included packages
  1164. -V, --version display version information and exit
  1165. -q, --quiet, --silent do not print \`checking ...' messages
  1166. --cache-file=FILE cache test results in FILE [disabled]
  1167. -C, --config-cache alias for \`--cache-file=config.cache'
  1168. -n, --no-create do not create output files
  1169. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1170. Installation directories:
  1171. --prefix=PREFIX install architecture-independent files in PREFIX
  1172. [$ac_default_prefix]
  1173. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1174. [PREFIX]
  1175. By default, \`make install' will install all the files in
  1176. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1177. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1178. for instance \`--prefix=\$HOME'.
  1179. For better control, use the options below.
  1180. Fine tuning of the installation directories:
  1181. --bindir=DIR user executables [EPREFIX/bin]
  1182. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1183. --libexecdir=DIR program executables [EPREFIX/libexec]
  1184. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1185. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1186. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1187. --libdir=DIR object code libraries [EPREFIX/lib]
  1188. --includedir=DIR C header files [PREFIX/include]
  1189. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1190. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1191. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1192. --infodir=DIR info documentation [DATAROOTDIR/info]
  1193. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1194. --mandir=DIR man documentation [DATAROOTDIR/man]
  1195. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1196. --htmldir=DIR html documentation [DOCDIR]
  1197. --dvidir=DIR dvi documentation [DOCDIR]
  1198. --pdfdir=DIR pdf documentation [DOCDIR]
  1199. --psdir=DIR ps documentation [DOCDIR]
  1200. _ACEOF
  1201. cat <<\_ACEOF
  1202. _ACEOF
  1203. fi
  1204. if test -n "$ac_init_help"; then
  1205. cat <<\_ACEOF
  1206. Optional Features:
  1207. --disable-option-checking ignore unrecognized --enable/--with options
  1208. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1209. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1210. --disable-ipv6 disable IPv6 support
  1211. --disable-script-tcl disable TCL Script support
  1212. Optional Packages:
  1213. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1214. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1215. --with-openssl=PATH Path to OpenSSL
  1216. --with-tcllib=PATH full path to Tcl library
  1217. --with-tclinc=PATH full path to Tcl header
  1218. Some influential environment variables:
  1219. CXX C++ compiler command
  1220. CXXFLAGS C++ compiler flags
  1221. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1222. nonstandard directory <lib dir>
  1223. LIBS libraries to pass to the linker, e.g. -l<library>
  1224. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1225. you have headers in a nonstandard directory <include dir>
  1226. CXXCPP C++ preprocessor
  1227. Use these variables to override the choices made by `configure' or to help
  1228. it to find libraries and programs with nonstandard names/locations.
  1229. Report bugs to the package provider.
  1230. _ACEOF
  1231. ac_status=$?
  1232. fi
  1233. if test "$ac_init_help" = "recursive"; then
  1234. # If there are subdirs, report their specific --help.
  1235. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1236. test -d "$ac_dir" ||
  1237. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1238. continue
  1239. ac_builddir=.
  1240. case "$ac_dir" in
  1241. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1242. *)
  1243. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1244. # A ".." for each directory in $ac_dir_suffix.
  1245. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1246. case $ac_top_builddir_sub in
  1247. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1248. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1249. esac ;;
  1250. esac
  1251. ac_abs_top_builddir=$ac_pwd
  1252. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1253. # for backward compatibility:
  1254. ac_top_builddir=$ac_top_build_prefix
  1255. case $srcdir in
  1256. .) # We are building in place.
  1257. ac_srcdir=.
  1258. ac_top_srcdir=$ac_top_builddir_sub
  1259. ac_abs_top_srcdir=$ac_pwd ;;
  1260. [\\/]* | ?:[\\/]* ) # Absolute name.
  1261. ac_srcdir=$srcdir$ac_dir_suffix;
  1262. ac_top_srcdir=$srcdir
  1263. ac_abs_top_srcdir=$srcdir ;;
  1264. *) # Relative name.
  1265. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1266. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1267. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1268. esac
  1269. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1270. cd "$ac_dir" || { ac_status=$?; continue; }
  1271. # Check for guested configure.
  1272. if test -f "$ac_srcdir/configure.gnu"; then
  1273. echo &&
  1274. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1275. elif test -f "$ac_srcdir/configure"; then
  1276. echo &&
  1277. $SHELL "$ac_srcdir/configure" --help=recursive
  1278. else
  1279. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1280. fi || ac_status=$?
  1281. cd "$ac_pwd" || { ac_status=$?; break; }
  1282. done
  1283. fi
  1284. test -n "$ac_init_help" && exit $ac_status
  1285. if $ac_init_version; then
  1286. cat <<\_ACEOF
  1287. configure
  1288. generated by GNU Autoconf 2.69
  1289. Copyright (C) 2012 Free Software Foundation, Inc.
  1290. This configure script is free software; the Free Software Foundation
  1291. gives unlimited permission to copy, distribute and modify it.
  1292. Copyright (c) Bryan Drewery
  1293. _ACEOF
  1294. exit
  1295. fi
  1296. ## ------------------------ ##
  1297. ## Autoconf initialization. ##
  1298. ## ------------------------ ##
  1299. # ac_fn_cxx_try_compile LINENO
  1300. # ----------------------------
  1301. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1302. ac_fn_cxx_try_compile ()
  1303. {
  1304. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1305. rm -f conftest.$ac_objext
  1306. if { { ac_try="$ac_compile"
  1307. case "(($ac_try" in
  1308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1309. *) ac_try_echo=$ac_try;;
  1310. esac
  1311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1312. $as_echo "$ac_try_echo"; } >&5
  1313. (eval "$ac_compile") 2>conftest.err
  1314. ac_status=$?
  1315. if test -s conftest.err; then
  1316. grep -v '^ *+' conftest.err >conftest.er1
  1317. cat conftest.er1 >&5
  1318. mv -f conftest.er1 conftest.err
  1319. fi
  1320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1321. test $ac_status = 0; } && {
  1322. test -z "$ac_cxx_werror_flag" ||
  1323. test ! -s conftest.err
  1324. } && test -s conftest.$ac_objext; then :
  1325. ac_retval=0
  1326. else
  1327. $as_echo "$as_me: failed program was:" >&5
  1328. sed 's/^/| /' conftest.$ac_ext >&5
  1329. ac_retval=1
  1330. fi
  1331. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1332. as_fn_set_status $ac_retval
  1333. } # ac_fn_cxx_try_compile
  1334. # ac_fn_cxx_try_cpp LINENO
  1335. # ------------------------
  1336. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1337. ac_fn_cxx_try_cpp ()
  1338. {
  1339. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1340. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1341. case "(($ac_try" in
  1342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1343. *) ac_try_echo=$ac_try;;
  1344. esac
  1345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1346. $as_echo "$ac_try_echo"; } >&5
  1347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1348. ac_status=$?
  1349. if test -s conftest.err; then
  1350. grep -v '^ *+' conftest.err >conftest.er1
  1351. cat conftest.er1 >&5
  1352. mv -f conftest.er1 conftest.err
  1353. fi
  1354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1355. test $ac_status = 0; } > conftest.i && {
  1356. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1357. test ! -s conftest.err
  1358. }; then :
  1359. ac_retval=0
  1360. else
  1361. $as_echo "$as_me: failed program was:" >&5
  1362. sed 's/^/| /' conftest.$ac_ext >&5
  1363. ac_retval=1
  1364. fi
  1365. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1366. as_fn_set_status $ac_retval
  1367. } # ac_fn_cxx_try_cpp
  1368. # ac_fn_cxx_try_link LINENO
  1369. # -------------------------
  1370. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1371. ac_fn_cxx_try_link ()
  1372. {
  1373. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1374. rm -f conftest.$ac_objext conftest$ac_exeext
  1375. if { { ac_try="$ac_link"
  1376. case "(($ac_try" in
  1377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1378. *) ac_try_echo=$ac_try;;
  1379. esac
  1380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1381. $as_echo "$ac_try_echo"; } >&5
  1382. (eval "$ac_link") 2>conftest.err
  1383. ac_status=$?
  1384. if test -s conftest.err; then
  1385. grep -v '^ *+' conftest.err >conftest.er1
  1386. cat conftest.er1 >&5
  1387. mv -f conftest.er1 conftest.err
  1388. fi
  1389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1390. test $ac_status = 0; } && {
  1391. test -z "$ac_cxx_werror_flag" ||
  1392. test ! -s conftest.err
  1393. } && test -s conftest$ac_exeext && {
  1394. test "$cross_compiling" = yes ||
  1395. test -x conftest$ac_exeext
  1396. }; then :
  1397. ac_retval=0
  1398. else
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=1
  1402. fi
  1403. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1404. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1405. # interfere with the next link command; also delete a directory that is
  1406. # left behind by Apple's compiler. We do this before executing the actions.
  1407. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1408. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1409. as_fn_set_status $ac_retval
  1410. } # ac_fn_cxx_try_link
  1411. # ac_fn_cxx_try_run LINENO
  1412. # ------------------------
  1413. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1414. # that executables *can* be run.
  1415. ac_fn_cxx_try_run ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. if { { ac_try="$ac_link"
  1419. case "(($ac_try" in
  1420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1421. *) ac_try_echo=$ac_try;;
  1422. esac
  1423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1424. $as_echo "$ac_try_echo"; } >&5
  1425. (eval "$ac_link") 2>&5
  1426. ac_status=$?
  1427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1428. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1429. { { case "(($ac_try" in
  1430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1431. *) ac_try_echo=$ac_try;;
  1432. esac
  1433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1434. $as_echo "$ac_try_echo"; } >&5
  1435. (eval "$ac_try") 2>&5
  1436. ac_status=$?
  1437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1438. test $ac_status = 0; }; }; then :
  1439. ac_retval=0
  1440. else
  1441. $as_echo "$as_me: program exited with status $ac_status" >&5
  1442. $as_echo "$as_me: failed program was:" >&5
  1443. sed 's/^/| /' conftest.$ac_ext >&5
  1444. ac_retval=$ac_status
  1445. fi
  1446. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_cxx_try_run
  1450. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1451. # ---------------------------------------------------------
  1452. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1453. # the include files in INCLUDES and setting the cache variable VAR
  1454. # accordingly.
  1455. ac_fn_cxx_check_header_mongrel ()
  1456. {
  1457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1458. if eval \${$3+:} false; then :
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1460. $as_echo_n "checking for $2... " >&6; }
  1461. if eval \${$3+:} false; then :
  1462. $as_echo_n "(cached) " >&6
  1463. fi
  1464. eval ac_res=\$$3
  1465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1466. $as_echo "$ac_res" >&6; }
  1467. else
  1468. # Is the header compilable?
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1470. $as_echo_n "checking $2 usability... " >&6; }
  1471. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end build/confdefs.h. */
  1473. $4
  1474. #include <$2>
  1475. _ACEOF
  1476. if ac_fn_cxx_try_compile "$LINENO"; then :
  1477. ac_header_compiler=yes
  1478. else
  1479. ac_header_compiler=no
  1480. fi
  1481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1483. $as_echo "$ac_header_compiler" >&6; }
  1484. # Is the header present?
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1486. $as_echo_n "checking $2 presence... " >&6; }
  1487. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1488. /* end build/confdefs.h. */
  1489. #include <$2>
  1490. _ACEOF
  1491. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1492. ac_header_preproc=yes
  1493. else
  1494. ac_header_preproc=no
  1495. fi
  1496. rm -f conftest.err conftest.i conftest.$ac_ext
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1498. $as_echo "$ac_header_preproc" >&6; }
  1499. # So? What about this header?
  1500. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1501. yes:no: )
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1503. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1505. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1506. ;;
  1507. no:yes:* )
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1509. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1511. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1513. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1515. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1517. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1518. ;;
  1519. esac
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1521. $as_echo_n "checking for $2... " >&6; }
  1522. if eval \${$3+:} false; then :
  1523. $as_echo_n "(cached) " >&6
  1524. else
  1525. eval "$3=\$ac_header_compiler"
  1526. fi
  1527. eval ac_res=\$$3
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1529. $as_echo "$ac_res" >&6; }
  1530. fi
  1531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1532. } # ac_fn_cxx_check_header_mongrel
  1533. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1534. # ---------------------------------------------------------
  1535. # Tests whether HEADER exists and can be compiled using the include files in
  1536. # INCLUDES, setting the cache variable VAR accordingly.
  1537. ac_fn_cxx_check_header_compile ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1541. $as_echo_n "checking for $2... " >&6; }
  1542. if eval \${$3+:} false; then :
  1543. $as_echo_n "(cached) " >&6
  1544. else
  1545. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1546. /* end build/confdefs.h. */
  1547. $4
  1548. #include <$2>
  1549. _ACEOF
  1550. if ac_fn_cxx_try_compile "$LINENO"; then :
  1551. eval "$3=yes"
  1552. else
  1553. eval "$3=no"
  1554. fi
  1555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1556. fi
  1557. eval ac_res=\$$3
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1559. $as_echo "$ac_res" >&6; }
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. } # ac_fn_cxx_check_header_compile
  1562. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1563. # ---------------------------------------------
  1564. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1565. # variable VAR accordingly.
  1566. ac_fn_cxx_check_type ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1570. $as_echo_n "checking for $2... " >&6; }
  1571. if eval \${$3+:} false; then :
  1572. $as_echo_n "(cached) " >&6
  1573. else
  1574. eval "$3=no"
  1575. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end build/confdefs.h. */
  1577. $4
  1578. int
  1579. main ()
  1580. {
  1581. if (sizeof ($2))
  1582. return 0;
  1583. ;
  1584. return 0;
  1585. }
  1586. _ACEOF
  1587. if ac_fn_cxx_try_compile "$LINENO"; then :
  1588. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end build/confdefs.h. */
  1590. $4
  1591. int
  1592. main ()
  1593. {
  1594. if (sizeof (($2)))
  1595. return 0;
  1596. ;
  1597. return 0;
  1598. }
  1599. _ACEOF
  1600. if ac_fn_cxx_try_compile "$LINENO"; then :
  1601. else
  1602. eval "$3=yes"
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. fi
  1608. eval ac_res=\$$3
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1610. $as_echo "$ac_res" >&6; }
  1611. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1612. } # ac_fn_cxx_check_type
  1613. # ac_fn_c_find_intX_t LINENO BITS VAR
  1614. # -----------------------------------
  1615. # Finds a signed integer type with width BITS, setting cache variable VAR
  1616. # accordingly.
  1617. ac_fn_c_find_intX_t ()
  1618. {
  1619. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1621. $as_echo_n "checking for int$2_t... " >&6; }
  1622. if eval \${$3+:} false; then :
  1623. $as_echo_n "(cached) " >&6
  1624. else
  1625. eval "$3=no"
  1626. # Order is important - never check a type that is potentially smaller
  1627. # than half of the expected target width.
  1628. for ac_type in int$2_t 'int' 'long int' \
  1629. 'long long int' 'short int' 'signed char'; do
  1630. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1631. /* end build/confdefs.h. */
  1632. $ac_includes_default
  1633. enum { N = $2 / 2 - 1 };
  1634. int
  1635. main ()
  1636. {
  1637. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1638. test_array [0] = 0;
  1639. return test_array [0];
  1640. ;
  1641. return 0;
  1642. }
  1643. _ACEOF
  1644. if ac_fn_cxx_try_compile "$LINENO"; then :
  1645. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end build/confdefs.h. */
  1647. $ac_includes_default
  1648. enum { N = $2 / 2 - 1 };
  1649. int
  1650. main ()
  1651. {
  1652. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1653. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1654. test_array [0] = 0;
  1655. return test_array [0];
  1656. ;
  1657. return 0;
  1658. }
  1659. _ACEOF
  1660. if ac_fn_cxx_try_compile "$LINENO"; then :
  1661. else
  1662. case $ac_type in #(
  1663. int$2_t) :
  1664. eval "$3=yes" ;; #(
  1665. *) :
  1666. eval "$3=\$ac_type" ;;
  1667. esac
  1668. fi
  1669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. if eval test \"x\$"$3"\" = x"no"; then :
  1673. else
  1674. break
  1675. fi
  1676. done
  1677. fi
  1678. eval ac_res=\$$3
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1680. $as_echo "$ac_res" >&6; }
  1681. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1682. } # ac_fn_c_find_intX_t
  1683. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1684. # ------------------------------------
  1685. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1686. # accordingly.
  1687. ac_fn_c_find_uintX_t ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1691. $as_echo_n "checking for uint$2_t... " >&6; }
  1692. if eval \${$3+:} false; then :
  1693. $as_echo_n "(cached) " >&6
  1694. else
  1695. eval "$3=no"
  1696. # Order is important - never check a type that is potentially smaller
  1697. # than half of the expected target width.
  1698. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1699. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1700. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end build/confdefs.h. */
  1702. $ac_includes_default
  1703. int
  1704. main ()
  1705. {
  1706. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1707. test_array [0] = 0;
  1708. return test_array [0];
  1709. ;
  1710. return 0;
  1711. }
  1712. _ACEOF
  1713. if ac_fn_cxx_try_compile "$LINENO"; then :
  1714. case $ac_type in #(
  1715. uint$2_t) :
  1716. eval "$3=yes" ;; #(
  1717. *) :
  1718. eval "$3=\$ac_type" ;;
  1719. esac
  1720. fi
  1721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1722. if eval test \"x\$"$3"\" = x"no"; then :
  1723. else
  1724. break
  1725. fi
  1726. done
  1727. fi
  1728. eval ac_res=\$$3
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1730. $as_echo "$ac_res" >&6; }
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. } # ac_fn_c_find_uintX_t
  1733. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1734. # ------------------------------------------------------
  1735. # Tries to find if the field MEMBER exists in type AGGR, after including
  1736. # INCLUDES, setting cache variable VAR accordingly.
  1737. ac_fn_cxx_check_member ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1741. $as_echo_n "checking for $2.$3... " >&6; }
  1742. if eval \${$4+:} false; then :
  1743. $as_echo_n "(cached) " >&6
  1744. else
  1745. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end build/confdefs.h. */
  1747. $5
  1748. int
  1749. main ()
  1750. {
  1751. static $2 ac_aggr;
  1752. if (ac_aggr.$3)
  1753. return 0;
  1754. ;
  1755. return 0;
  1756. }
  1757. _ACEOF
  1758. if ac_fn_cxx_try_compile "$LINENO"; then :
  1759. eval "$4=yes"
  1760. else
  1761. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end build/confdefs.h. */
  1763. $5
  1764. int
  1765. main ()
  1766. {
  1767. static $2 ac_aggr;
  1768. if (sizeof ac_aggr.$3)
  1769. return 0;
  1770. ;
  1771. return 0;
  1772. }
  1773. _ACEOF
  1774. if ac_fn_cxx_try_compile "$LINENO"; then :
  1775. eval "$4=yes"
  1776. else
  1777. eval "$4=no"
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. eval ac_res=\$$4
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1785. $as_echo "$ac_res" >&6; }
  1786. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1787. } # ac_fn_cxx_check_member
  1788. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1789. # -----------------------------------------------
  1790. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1791. # accordingly.
  1792. ac_fn_cxx_check_decl ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1796. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1798. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1799. if eval \${$3+:} false; then :
  1800. $as_echo_n "(cached) " >&6
  1801. else
  1802. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1803. /* end build/confdefs.h. */
  1804. $4
  1805. int
  1806. main ()
  1807. {
  1808. #ifndef $as_decl_name
  1809. #ifdef __cplusplus
  1810. (void) $as_decl_use;
  1811. #else
  1812. (void) $as_decl_name;
  1813. #endif
  1814. #endif
  1815. ;
  1816. return 0;
  1817. }
  1818. _ACEOF
  1819. if ac_fn_cxx_try_compile "$LINENO"; then :
  1820. eval "$3=yes"
  1821. else
  1822. eval "$3=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. } # ac_fn_cxx_check_decl
  1831. # ac_fn_cxx_check_func LINENO FUNC VAR
  1832. # ------------------------------------
  1833. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1834. ac_fn_cxx_check_func ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1838. $as_echo_n "checking for $2... " >&6; }
  1839. if eval \${$3+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end build/confdefs.h. */
  1844. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1845. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1846. #define $2 innocuous_$2
  1847. /* System header to define __stub macros and hopefully few prototypes,
  1848. which can conflict with char $2 (); below.
  1849. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1850. <limits.h> exists even on freestanding compilers. */
  1851. #ifdef __STDC__
  1852. # include <limits.h>
  1853. #else
  1854. # include <assert.h>
  1855. #endif
  1856. #undef $2
  1857. /* Override any GCC internal prototype to avoid an error.
  1858. Use char because int might match the return type of a GCC
  1859. builtin and then its argument prototype would still apply. */
  1860. #ifdef __cplusplus
  1861. extern "C"
  1862. #endif
  1863. char $2 ();
  1864. /* The GNU C library defines this for functions which it implements
  1865. to always fail with ENOSYS. Some functions are actually named
  1866. something starting with __ and the normal name is an alias. */
  1867. #if defined __stub_$2 || defined __stub___$2
  1868. choke me
  1869. #endif
  1870. int
  1871. main ()
  1872. {
  1873. return $2 ();
  1874. ;
  1875. return 0;
  1876. }
  1877. _ACEOF
  1878. if ac_fn_cxx_try_link "$LINENO"; then :
  1879. eval "$3=yes"
  1880. else
  1881. eval "$3=no"
  1882. fi
  1883. rm -f core conftest.err conftest.$ac_objext \
  1884. conftest$ac_exeext conftest.$ac_ext
  1885. fi
  1886. eval ac_res=\$$3
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1888. $as_echo "$ac_res" >&6; }
  1889. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1890. } # ac_fn_cxx_check_func
  1891. cat >build/config.log <<_ACEOF
  1892. This file contains any messages produced by compilers while
  1893. running configure, to aid debugging if configure makes a mistake.
  1894. It was created by $as_me, which was
  1895. generated by GNU Autoconf 2.69. Invocation command line was
  1896. $ $0 $@
  1897. _ACEOF
  1898. exec 5>>build/config.log
  1899. {
  1900. cat <<_ASUNAME
  1901. ## --------- ##
  1902. ## Platform. ##
  1903. ## --------- ##
  1904. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1905. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1906. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1907. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1908. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1909. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1910. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1911. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1912. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1913. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1914. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1915. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1916. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1917. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1918. _ASUNAME
  1919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1920. for as_dir in $PATH
  1921. do
  1922. IFS=$as_save_IFS
  1923. test -z "$as_dir" && as_dir=.
  1924. $as_echo "PATH: $as_dir"
  1925. done
  1926. IFS=$as_save_IFS
  1927. } >&5
  1928. cat >&5 <<_ACEOF
  1929. ## ----------- ##
  1930. ## Core tests. ##
  1931. ## ----------- ##
  1932. _ACEOF
  1933. # Keep a trace of the command line.
  1934. # Strip out --no-create and --no-recursion so they do not pile up.
  1935. # Strip out --silent because we don't want to record it for future runs.
  1936. # Also quote any args containing shell meta-characters.
  1937. # Make two passes to allow for proper duplicate-argument suppression.
  1938. ac_configure_args=
  1939. ac_configure_args0=
  1940. ac_configure_args1=
  1941. ac_must_keep_next=false
  1942. for ac_pass in 1 2
  1943. do
  1944. for ac_arg
  1945. do
  1946. case $ac_arg in
  1947. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1949. | -silent | --silent | --silen | --sile | --sil)
  1950. continue ;;
  1951. *\'*)
  1952. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1953. esac
  1954. case $ac_pass in
  1955. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1956. 2)
  1957. as_fn_append ac_configure_args1 " '$ac_arg'"
  1958. if test $ac_must_keep_next = true; then
  1959. ac_must_keep_next=false # Got value, back to normal.
  1960. else
  1961. case $ac_arg in
  1962. *=* | --config-cache | -C | -disable-* | --disable-* \
  1963. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1964. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1965. | -with-* | --with-* | -without-* | --without-* | --x)
  1966. case "$ac_configure_args0 " in
  1967. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1968. esac
  1969. ;;
  1970. -* ) ac_must_keep_next=true ;;
  1971. esac
  1972. fi
  1973. as_fn_append ac_configure_args " '$ac_arg'"
  1974. ;;
  1975. esac
  1976. done
  1977. done
  1978. { ac_configure_args0=; unset ac_configure_args0;}
  1979. { ac_configure_args1=; unset ac_configure_args1;}
  1980. # When interrupted or exit'd, cleanup temporary files, and complete
  1981. # build/config.log. We remove comments because anyway the quotes in there
  1982. # would cause problems or look ugly.
  1983. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1984. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1985. trap 'exit_status=$?
  1986. # Save into build/config.log some information that might help in debugging.
  1987. {
  1988. echo
  1989. $as_echo "## ---------------- ##
  1990. ## Cache variables. ##
  1991. ## ---------------- ##"
  1992. echo
  1993. # The following way of writing the cache mishandles newlines in values,
  1994. (
  1995. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1996. eval ac_val=\$$ac_var
  1997. case $ac_val in #(
  1998. *${as_nl}*)
  1999. case $ac_var in #(
  2000. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2001. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2002. esac
  2003. case $ac_var in #(
  2004. _ | IFS | as_nl) ;; #(
  2005. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2006. *) { eval $ac_var=; unset $ac_var;} ;;
  2007. esac ;;
  2008. esac
  2009. done
  2010. (set) 2>&1 |
  2011. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2012. *${as_nl}ac_space=\ *)
  2013. sed -n \
  2014. "s/'\''/'\''\\\\'\'''\''/g;
  2015. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2016. ;; #(
  2017. *)
  2018. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2019. ;;
  2020. esac |
  2021. sort
  2022. )
  2023. echo
  2024. $as_echo "## ----------------- ##
  2025. ## Output variables. ##
  2026. ## ----------------- ##"
  2027. echo
  2028. for ac_var in $ac_subst_vars
  2029. do
  2030. eval ac_val=\$$ac_var
  2031. case $ac_val in
  2032. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2033. esac
  2034. $as_echo "$ac_var='\''$ac_val'\''"
  2035. done | sort
  2036. echo
  2037. if test -n "$ac_subst_files"; then
  2038. $as_echo "## ------------------- ##
  2039. ## File substitutions. ##
  2040. ## ------------------- ##"
  2041. echo
  2042. for ac_var in $ac_subst_files
  2043. do
  2044. eval ac_val=\$$ac_var
  2045. case $ac_val in
  2046. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2047. esac
  2048. $as_echo "$ac_var='\''$ac_val'\''"
  2049. done | sort
  2050. echo
  2051. fi
  2052. if test -s build/confdefs.h; then
  2053. $as_echo "## ----------- ##
  2054. ## build/confdefs.h. ##
  2055. ## ----------- ##"
  2056. echo
  2057. cat build/confdefs.h
  2058. echo
  2059. fi
  2060. test "$ac_signal" != 0 &&
  2061. $as_echo "$as_me: caught signal $ac_signal"
  2062. $as_echo "$as_me: exit $exit_status"
  2063. } >&5
  2064. rm -f core *.core core.conftest.* &&
  2065. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2066. exit $exit_status
  2067. ' 0
  2068. for ac_signal in 1 2 13 15; do
  2069. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2070. done
  2071. ac_signal=0
  2072. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2073. rm -f -r conftest* build/confdefs.h
  2074. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2075. # Predefined preprocessor variables.
  2076. cat >>build/confdefs.h <<_ACEOF
  2077. #define PACKAGE_NAME "$PACKAGE_NAME"
  2078. _ACEOF
  2079. cat >>build/confdefs.h <<_ACEOF
  2080. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2081. _ACEOF
  2082. cat >>build/confdefs.h <<_ACEOF
  2083. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2084. _ACEOF
  2085. cat >>build/confdefs.h <<_ACEOF
  2086. #define PACKAGE_STRING "$PACKAGE_STRING"
  2087. _ACEOF
  2088. cat >>build/confdefs.h <<_ACEOF
  2089. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2090. _ACEOF
  2091. cat >>build/confdefs.h <<_ACEOF
  2092. #define PACKAGE_URL "$PACKAGE_URL"
  2093. _ACEOF
  2094. # Let the site file select an alternate cache file if it wants to.
  2095. # Prefer an explicitly selected file to automatically selected ones.
  2096. ac_site_file1=NONE
  2097. ac_site_file2=NONE
  2098. if test -n "$CONFIG_SITE"; then
  2099. # We do not want a PATH search for config.site.
  2100. case $CONFIG_SITE in #((
  2101. -*) ac_site_file1=./$CONFIG_SITE;;
  2102. */*) ac_site_file1=$CONFIG_SITE;;
  2103. *) ac_site_file1=./$CONFIG_SITE;;
  2104. esac
  2105. elif test "x$prefix" != xNONE; then
  2106. ac_site_file1=$prefix/share/config.site
  2107. ac_site_file2=$prefix/etc/config.site
  2108. else
  2109. ac_site_file1=$ac_default_prefix/share/config.site
  2110. ac_site_file2=$ac_default_prefix/etc/config.site
  2111. fi
  2112. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2113. do
  2114. test "x$ac_site_file" = xNONE && continue
  2115. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2117. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2118. sed 's/^/| /' "$ac_site_file" >&5
  2119. . "$ac_site_file" \
  2120. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2122. as_fn_error $? "failed to load site script $ac_site_file
  2123. See \`build/config.log' for more details" "$LINENO" 5; }
  2124. fi
  2125. done
  2126. if test -r "$cache_file"; then
  2127. # Some versions of bash will fail to source /dev/null (special files
  2128. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2129. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2131. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2132. case $cache_file in
  2133. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2134. *) . "./$cache_file";;
  2135. esac
  2136. fi
  2137. else
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2139. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2140. >$cache_file
  2141. fi
  2142. as_fn_append ac_header_list " stdlib.h"
  2143. as_fn_append ac_header_list " unistd.h"
  2144. as_fn_append ac_header_list " sys/param.h"
  2145. # Check that the precious variables saved in the cache have kept the same
  2146. # value.
  2147. ac_cache_corrupted=false
  2148. for ac_var in $ac_precious_vars; do
  2149. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2150. eval ac_new_set=\$ac_env_${ac_var}_set
  2151. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2152. eval ac_new_val=\$ac_env_${ac_var}_value
  2153. case $ac_old_set,$ac_new_set in
  2154. set,)
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2156. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2157. ac_cache_corrupted=: ;;
  2158. ,set)
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2160. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2161. ac_cache_corrupted=: ;;
  2162. ,);;
  2163. *)
  2164. if test "x$ac_old_val" != "x$ac_new_val"; then
  2165. # differences in whitespace do not lead to failure.
  2166. ac_old_val_w=`echo x $ac_old_val`
  2167. ac_new_val_w=`echo x $ac_new_val`
  2168. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2170. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2171. ac_cache_corrupted=:
  2172. else
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2174. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2175. eval $ac_var=\$ac_old_val
  2176. fi
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2178. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2180. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2181. fi;;
  2182. esac
  2183. # Pass precious variables to build/config.status.
  2184. if test "$ac_new_set" = set; then
  2185. case $ac_new_val in
  2186. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2187. *) ac_arg=$ac_var=$ac_new_val ;;
  2188. esac
  2189. case " $ac_configure_args " in
  2190. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2191. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2192. esac
  2193. fi
  2194. done
  2195. if $ac_cache_corrupted; then
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2197. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2199. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2200. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2201. fi
  2202. ## -------------------- ##
  2203. ## Main body of script. ##
  2204. ## -------------------- ##
  2205. ac_ext=c
  2206. ac_cpp='$CPP $CPPFLAGS'
  2207. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2208. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2209. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2210. ac_config_headers="$ac_config_headers src/config.h"
  2211. ac_aux_dir=
  2212. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2213. if test -f "$ac_dir/install-sh"; then
  2214. ac_aux_dir=$ac_dir
  2215. ac_install_sh="$ac_aux_dir/install-sh -c"
  2216. break
  2217. elif test -f "$ac_dir/install.sh"; then
  2218. ac_aux_dir=$ac_dir
  2219. ac_install_sh="$ac_aux_dir/install.sh -c"
  2220. break
  2221. elif test -f "$ac_dir/shtool"; then
  2222. ac_aux_dir=$ac_dir
  2223. ac_install_sh="$ac_aux_dir/shtool install -c"
  2224. break
  2225. fi
  2226. done
  2227. if test -z "$ac_aux_dir"; then
  2228. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2229. fi
  2230. # These three variables are undocumented and unsupported,
  2231. # and are intended to be withdrawn in a future Autoconf release.
  2232. # They can cause serious problems if a builder's source tree is in a directory
  2233. # whose full name contains unusual characters.
  2234. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2235. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2236. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2237. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2238. egg_ac_parameters=
  2239. ac_prev=
  2240. for ac_arg in $ac_configure_args; do
  2241. if test -n "$ac_prev"; then
  2242. ac_prev=
  2243. continue
  2244. fi
  2245. case $ac_arg in
  2246. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2247. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2248. ac_prev=cache_file ;;
  2249. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2250. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2251. | --c=*)
  2252. ;;
  2253. --config-cache | -C)
  2254. ;;
  2255. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2256. ac_prev=srcdir ;;
  2257. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2258. ;;
  2259. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2260. esac
  2261. done
  2262. # Setup build environment
  2263. #AC_REQUIRE_CPP
  2264. ac_ext=cpp
  2265. ac_cpp='$CXXCPP $CPPFLAGS'
  2266. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2267. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2268. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2269. ac_ext=cpp
  2270. ac_cpp='$CXXCPP $CPPFLAGS'
  2271. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2272. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2273. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2274. if test -z "$CXX"; then
  2275. if test -n "$CCC"; then
  2276. CXX=$CCC
  2277. else
  2278. if test -n "$ac_tool_prefix"; then
  2279. for ac_prog in g++6 g++5 g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 g++46 g++-4.6 g++ c++ CC cxx cc++
  2280. do
  2281. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2282. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2284. $as_echo_n "checking for $ac_word... " >&6; }
  2285. if ${ac_cv_prog_CXX+:} false; then :
  2286. $as_echo_n "(cached) " >&6
  2287. else
  2288. if test -n "$CXX"; then
  2289. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2290. else
  2291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2292. for as_dir in $PATH
  2293. do
  2294. IFS=$as_save_IFS
  2295. test -z "$as_dir" && as_dir=.
  2296. for ac_exec_ext in '' $ac_executable_extensions; do
  2297. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2298. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2300. break 2
  2301. fi
  2302. done
  2303. done
  2304. IFS=$as_save_IFS
  2305. fi
  2306. fi
  2307. CXX=$ac_cv_prog_CXX
  2308. if test -n "$CXX"; then
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2310. $as_echo "$CXX" >&6; }
  2311. else
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2313. $as_echo "no" >&6; }
  2314. fi
  2315. test -n "$CXX" && break
  2316. done
  2317. fi
  2318. if test -z "$CXX"; then
  2319. ac_ct_CXX=$CXX
  2320. for ac_prog in g++6 g++5 g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 g++46 g++-4.6 g++ c++ CC cxx cc++
  2321. do
  2322. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2323. set dummy $ac_prog; ac_word=$2
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2325. $as_echo_n "checking for $ac_word... " >&6; }
  2326. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2327. $as_echo_n "(cached) " >&6
  2328. else
  2329. if test -n "$ac_ct_CXX"; then
  2330. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2331. else
  2332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2333. for as_dir in $PATH
  2334. do
  2335. IFS=$as_save_IFS
  2336. test -z "$as_dir" && as_dir=.
  2337. for ac_exec_ext in '' $ac_executable_extensions; do
  2338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2339. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2341. break 2
  2342. fi
  2343. done
  2344. done
  2345. IFS=$as_save_IFS
  2346. fi
  2347. fi
  2348. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2349. if test -n "$ac_ct_CXX"; then
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2351. $as_echo "$ac_ct_CXX" >&6; }
  2352. else
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2354. $as_echo "no" >&6; }
  2355. fi
  2356. test -n "$ac_ct_CXX" && break
  2357. done
  2358. if test "x$ac_ct_CXX" = x; then
  2359. CXX="g++"
  2360. else
  2361. case $cross_compiling:$ac_tool_warned in
  2362. yes:)
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2365. ac_tool_warned=yes ;;
  2366. esac
  2367. CXX=$ac_ct_CXX
  2368. fi
  2369. fi
  2370. fi
  2371. fi
  2372. # Provide some information about the compiler.
  2373. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2374. set X $ac_compile
  2375. ac_compiler=$2
  2376. for ac_option in --version -v -V -qversion; do
  2377. { { ac_try="$ac_compiler $ac_option >&5"
  2378. case "(($ac_try" in
  2379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2380. *) ac_try_echo=$ac_try;;
  2381. esac
  2382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2383. $as_echo "$ac_try_echo"; } >&5
  2384. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2385. ac_status=$?
  2386. if test -s conftest.err; then
  2387. sed '10a\
  2388. ... rest of stderr output deleted ...
  2389. 10q' conftest.err >conftest.er1
  2390. cat conftest.er1 >&5
  2391. fi
  2392. rm -f conftest.er1 conftest.err
  2393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2394. test $ac_status = 0; }
  2395. done
  2396. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2397. /* end build/confdefs.h. */
  2398. int
  2399. main ()
  2400. {
  2401. ;
  2402. return 0;
  2403. }
  2404. _ACEOF
  2405. ac_clean_files_save=$ac_clean_files
  2406. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2407. # Try to create an executable without -o first, disregard a.out.
  2408. # It will help us diagnose broken compilers, and finding out an intuition
  2409. # of exeext.
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2411. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2412. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2413. # The possible output files:
  2414. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2415. ac_rmfiles=
  2416. for ac_file in $ac_files
  2417. do
  2418. case $ac_file in
  2419. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2420. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2421. esac
  2422. done
  2423. rm -f $ac_rmfiles
  2424. if { { ac_try="$ac_link_default"
  2425. case "(($ac_try" in
  2426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2427. *) ac_try_echo=$ac_try;;
  2428. esac
  2429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2430. $as_echo "$ac_try_echo"; } >&5
  2431. (eval "$ac_link_default") 2>&5
  2432. ac_status=$?
  2433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2434. test $ac_status = 0; }; then :
  2435. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2436. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2437. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2438. # so that the user can short-circuit this test for compilers unknown to
  2439. # Autoconf.
  2440. for ac_file in $ac_files ''
  2441. do
  2442. test -f "$ac_file" || continue
  2443. case $ac_file in
  2444. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2445. ;;
  2446. [ab].out )
  2447. # We found the default executable, but exeext='' is most
  2448. # certainly right.
  2449. break;;
  2450. *.* )
  2451. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2452. then :; else
  2453. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2454. fi
  2455. # We set ac_cv_exeext here because the later test for it is not
  2456. # safe: cross compilers may not add the suffix if given an `-o'
  2457. # argument, so we may need to know it at that point already.
  2458. # Even if this section looks crufty: it has the advantage of
  2459. # actually working.
  2460. break;;
  2461. * )
  2462. break;;
  2463. esac
  2464. done
  2465. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2466. else
  2467. ac_file=''
  2468. fi
  2469. if test -z "$ac_file"; then :
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2471. $as_echo "no" >&6; }
  2472. $as_echo "$as_me: failed program was:" >&5
  2473. sed 's/^/| /' conftest.$ac_ext >&5
  2474. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2475. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2476. as_fn_error 77 "C++ compiler cannot create executables
  2477. See \`build/config.log' for more details" "$LINENO" 5; }
  2478. else
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2480. $as_echo "yes" >&6; }
  2481. fi
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2483. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2485. $as_echo "$ac_file" >&6; }
  2486. ac_exeext=$ac_cv_exeext
  2487. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2488. ac_clean_files=$ac_clean_files_save
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2490. $as_echo_n "checking for suffix of executables... " >&6; }
  2491. if { { ac_try="$ac_link"
  2492. case "(($ac_try" in
  2493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2494. *) ac_try_echo=$ac_try;;
  2495. esac
  2496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2497. $as_echo "$ac_try_echo"; } >&5
  2498. (eval "$ac_link") 2>&5
  2499. ac_status=$?
  2500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2501. test $ac_status = 0; }; then :
  2502. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2503. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2504. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2505. # `rm'.
  2506. for ac_file in conftest.exe conftest conftest.*; do
  2507. test -f "$ac_file" || continue
  2508. case $ac_file in
  2509. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2510. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2511. break;;
  2512. * ) break;;
  2513. esac
  2514. done
  2515. else
  2516. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2518. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2519. See \`build/config.log' for more details" "$LINENO" 5; }
  2520. fi
  2521. rm -f conftest conftest$ac_cv_exeext
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2523. $as_echo "$ac_cv_exeext" >&6; }
  2524. rm -f conftest.$ac_ext
  2525. EXEEXT=$ac_cv_exeext
  2526. ac_exeext=$EXEEXT
  2527. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2528. /* end build/confdefs.h. */
  2529. #include <stdio.h>
  2530. int
  2531. main ()
  2532. {
  2533. FILE *f = fopen ("conftest.out", "w");
  2534. return ferror (f) || fclose (f) != 0;
  2535. ;
  2536. return 0;
  2537. }
  2538. _ACEOF
  2539. ac_clean_files="$ac_clean_files conftest.out"
  2540. # Check that the compiler produces executables we can run. If not, either
  2541. # the compiler is broken, or we cross compile.
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2543. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2544. if test "$cross_compiling" != yes; then
  2545. { { ac_try="$ac_link"
  2546. case "(($ac_try" in
  2547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2548. *) ac_try_echo=$ac_try;;
  2549. esac
  2550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2551. $as_echo "$ac_try_echo"; } >&5
  2552. (eval "$ac_link") 2>&5
  2553. ac_status=$?
  2554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2555. test $ac_status = 0; }
  2556. if { ac_try='./conftest$ac_cv_exeext'
  2557. { { case "(($ac_try" in
  2558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2559. *) ac_try_echo=$ac_try;;
  2560. esac
  2561. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2562. $as_echo "$ac_try_echo"; } >&5
  2563. (eval "$ac_try") 2>&5
  2564. ac_status=$?
  2565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2566. test $ac_status = 0; }; }; then
  2567. cross_compiling=no
  2568. else
  2569. if test "$cross_compiling" = maybe; then
  2570. cross_compiling=yes
  2571. else
  2572. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2573. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2574. as_fn_error $? "cannot run C++ compiled programs.
  2575. If you meant to cross compile, use \`--host'.
  2576. See \`build/config.log' for more details" "$LINENO" 5; }
  2577. fi
  2578. fi
  2579. fi
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2581. $as_echo "$cross_compiling" >&6; }
  2582. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2583. ac_clean_files=$ac_clean_files_save
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2585. $as_echo_n "checking for suffix of object files... " >&6; }
  2586. if ${ac_cv_objext+:} false; then :
  2587. $as_echo_n "(cached) " >&6
  2588. else
  2589. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2590. /* end build/confdefs.h. */
  2591. int
  2592. main ()
  2593. {
  2594. ;
  2595. return 0;
  2596. }
  2597. _ACEOF
  2598. rm -f conftest.o conftest.obj
  2599. if { { ac_try="$ac_compile"
  2600. case "(($ac_try" in
  2601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2602. *) ac_try_echo=$ac_try;;
  2603. esac
  2604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2605. $as_echo "$ac_try_echo"; } >&5
  2606. (eval "$ac_compile") 2>&5
  2607. ac_status=$?
  2608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2609. test $ac_status = 0; }; then :
  2610. for ac_file in conftest.o conftest.obj conftest.*; do
  2611. test -f "$ac_file" || continue;
  2612. case $ac_file in
  2613. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2614. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2615. break;;
  2616. esac
  2617. done
  2618. else
  2619. $as_echo "$as_me: failed program was:" >&5
  2620. sed 's/^/| /' conftest.$ac_ext >&5
  2621. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2623. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2624. See \`build/config.log' for more details" "$LINENO" 5; }
  2625. fi
  2626. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2627. fi
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2629. $as_echo "$ac_cv_objext" >&6; }
  2630. OBJEXT=$ac_cv_objext
  2631. ac_objext=$OBJEXT
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2633. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2634. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2635. $as_echo_n "(cached) " >&6
  2636. else
  2637. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2638. /* end build/confdefs.h. */
  2639. int
  2640. main ()
  2641. {
  2642. #ifndef __GNUC__
  2643. choke me
  2644. #endif
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. if ac_fn_cxx_try_compile "$LINENO"; then :
  2650. ac_compiler_gnu=yes
  2651. else
  2652. ac_compiler_gnu=no
  2653. fi
  2654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2655. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2656. fi
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2658. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2659. if test $ac_compiler_gnu = yes; then
  2660. GXX=yes
  2661. else
  2662. GXX=
  2663. fi
  2664. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2665. ac_save_CXXFLAGS=$CXXFLAGS
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2667. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2668. if ${ac_cv_prog_cxx_g+:} false; then :
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2672. ac_cxx_werror_flag=yes
  2673. ac_cv_prog_cxx_g=no
  2674. CXXFLAGS="-g"
  2675. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2676. /* end build/confdefs.h. */
  2677. int
  2678. main ()
  2679. {
  2680. ;
  2681. return 0;
  2682. }
  2683. _ACEOF
  2684. if ac_fn_cxx_try_compile "$LINENO"; then :
  2685. ac_cv_prog_cxx_g=yes
  2686. else
  2687. CXXFLAGS=""
  2688. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2689. /* end build/confdefs.h. */
  2690. int
  2691. main ()
  2692. {
  2693. ;
  2694. return 0;
  2695. }
  2696. _ACEOF
  2697. if ac_fn_cxx_try_compile "$LINENO"; then :
  2698. else
  2699. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2700. CXXFLAGS="-g"
  2701. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2702. /* end build/confdefs.h. */
  2703. int
  2704. main ()
  2705. {
  2706. ;
  2707. return 0;
  2708. }
  2709. _ACEOF
  2710. if ac_fn_cxx_try_compile "$LINENO"; then :
  2711. ac_cv_prog_cxx_g=yes
  2712. fi
  2713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2714. fi
  2715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2716. fi
  2717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2718. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2719. fi
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2721. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2722. if test "$ac_test_CXXFLAGS" = set; then
  2723. CXXFLAGS=$ac_save_CXXFLAGS
  2724. elif test $ac_cv_prog_cxx_g = yes; then
  2725. if test "$GXX" = yes; then
  2726. CXXFLAGS="-g -O2"
  2727. else
  2728. CXXFLAGS="-g"
  2729. fi
  2730. else
  2731. if test "$GXX" = yes; then
  2732. CXXFLAGS="-O2"
  2733. else
  2734. CXXFLAGS=
  2735. fi
  2736. fi
  2737. ac_ext=cpp
  2738. ac_cpp='$CXXCPP $CPPFLAGS'
  2739. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2740. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2741. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2742. CC="${CXX} -x c"
  2743. ac_ext=cpp
  2744. ac_cpp='$CXXCPP $CPPFLAGS'
  2745. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2746. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2747. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2749. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2750. if test -z "$CXXCPP"; then
  2751. if ${ac_cv_prog_CXXCPP+:} false; then :
  2752. $as_echo_n "(cached) " >&6
  2753. else
  2754. # Double quotes because CXXCPP needs to be expanded
  2755. for CXXCPP in "$CXX -E" "/lib/cpp"
  2756. do
  2757. ac_preproc_ok=false
  2758. for ac_cxx_preproc_warn_flag in '' yes
  2759. do
  2760. # Use a header file that comes with gcc, so configuring glibc
  2761. # with a fresh cross-compiler works.
  2762. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2763. # <limits.h> exists even on freestanding compilers.
  2764. # On the NeXT, cc -E runs the code through the compiler's parser,
  2765. # not just through cpp. "Syntax error" is here to catch this case.
  2766. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2767. /* end build/confdefs.h. */
  2768. #ifdef __STDC__
  2769. # include <limits.h>
  2770. #else
  2771. # include <assert.h>
  2772. #endif
  2773. Syntax error
  2774. _ACEOF
  2775. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2776. else
  2777. # Broken: fails on valid input.
  2778. continue
  2779. fi
  2780. rm -f conftest.err conftest.i conftest.$ac_ext
  2781. # OK, works on sane cases. Now check whether nonexistent headers
  2782. # can be detected and how.
  2783. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2784. /* end build/confdefs.h. */
  2785. #include <ac_nonexistent.h>
  2786. _ACEOF
  2787. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2788. # Broken: success on invalid input.
  2789. continue
  2790. else
  2791. # Passes both tests.
  2792. ac_preproc_ok=:
  2793. break
  2794. fi
  2795. rm -f conftest.err conftest.i conftest.$ac_ext
  2796. done
  2797. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2798. rm -f conftest.i conftest.err conftest.$ac_ext
  2799. if $ac_preproc_ok; then :
  2800. break
  2801. fi
  2802. done
  2803. ac_cv_prog_CXXCPP=$CXXCPP
  2804. fi
  2805. CXXCPP=$ac_cv_prog_CXXCPP
  2806. else
  2807. ac_cv_prog_CXXCPP=$CXXCPP
  2808. fi
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2810. $as_echo "$CXXCPP" >&6; }
  2811. ac_preproc_ok=false
  2812. for ac_cxx_preproc_warn_flag in '' yes
  2813. do
  2814. # Use a header file that comes with gcc, so configuring glibc
  2815. # with a fresh cross-compiler works.
  2816. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2817. # <limits.h> exists even on freestanding compilers.
  2818. # On the NeXT, cc -E runs the code through the compiler's parser,
  2819. # not just through cpp. "Syntax error" is here to catch this case.
  2820. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2821. /* end build/confdefs.h. */
  2822. #ifdef __STDC__
  2823. # include <limits.h>
  2824. #else
  2825. # include <assert.h>
  2826. #endif
  2827. Syntax error
  2828. _ACEOF
  2829. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2830. else
  2831. # Broken: fails on valid input.
  2832. continue
  2833. fi
  2834. rm -f conftest.err conftest.i conftest.$ac_ext
  2835. # OK, works on sane cases. Now check whether nonexistent headers
  2836. # can be detected and how.
  2837. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2838. /* end build/confdefs.h. */
  2839. #include <ac_nonexistent.h>
  2840. _ACEOF
  2841. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2842. # Broken: success on invalid input.
  2843. continue
  2844. else
  2845. # Passes both tests.
  2846. ac_preproc_ok=:
  2847. break
  2848. fi
  2849. rm -f conftest.err conftest.i conftest.$ac_ext
  2850. done
  2851. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2852. rm -f conftest.i conftest.err conftest.$ac_ext
  2853. if $ac_preproc_ok; then :
  2854. else
  2855. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2856. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2857. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2858. See \`build/config.log' for more details" "$LINENO" 5; }
  2859. fi
  2860. ac_ext=cpp
  2861. ac_cpp='$CXXCPP $CPPFLAGS'
  2862. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2863. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2864. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2865. ax_cxx_compile_cxx11_required=true
  2866. ac_ext=cpp
  2867. ac_cpp='$CXXCPP $CPPFLAGS'
  2868. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2869. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2870. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2871. ac_success=no
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2873. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2874. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2875. $as_echo_n "(cached) " >&6
  2876. else
  2877. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2878. /* end build/confdefs.h. */
  2879. template <typename T>
  2880. struct check
  2881. {
  2882. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2883. };
  2884. struct Base {
  2885. virtual void f() {}
  2886. };
  2887. struct Child : public Base {
  2888. virtual void f() override {}
  2889. };
  2890. typedef check<check<bool>> right_angle_brackets;
  2891. int a;
  2892. decltype(a) b;
  2893. typedef check<int> check_type;
  2894. check_type c;
  2895. check_type&& cr = static_cast<check_type&&>(c);
  2896. auto d = a;
  2897. auto l = [](){};
  2898. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2899. struct use_l { use_l() { l(); } };
  2900. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2901. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2902. namespace test_template_alias_sfinae {
  2903. struct foo {};
  2904. template<typename T>
  2905. using member = typename T::member_type;
  2906. template<typename T>
  2907. void func(...) {}
  2908. template<typename T>
  2909. void func(member<T>*) {}
  2910. void test();
  2911. void test() {
  2912. func<foo>(0);
  2913. }
  2914. }
  2915. _ACEOF
  2916. if ac_fn_cxx_try_compile "$LINENO"; then :
  2917. ax_cv_cxx_compile_cxx11=yes
  2918. else
  2919. ax_cv_cxx_compile_cxx11=no
  2920. fi
  2921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2922. fi
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2924. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2925. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2926. ac_success=yes
  2927. fi
  2928. if test x$ac_success = xno; then
  2929. for switch in -std=c++11 -std=c++0x; do
  2930. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2932. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2933. if eval \${$cachevar+:} false; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. ac_save_CXXFLAGS="$CXXFLAGS"
  2937. CXXFLAGS="$CXXFLAGS $switch"
  2938. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2939. /* end build/confdefs.h. */
  2940. template <typename T>
  2941. struct check
  2942. {
  2943. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2944. };
  2945. struct Base {
  2946. virtual void f() {}
  2947. };
  2948. struct Child : public Base {
  2949. virtual void f() override {}
  2950. };
  2951. typedef check<check<bool>> right_angle_brackets;
  2952. int a;
  2953. decltype(a) b;
  2954. typedef check<int> check_type;
  2955. check_type c;
  2956. check_type&& cr = static_cast<check_type&&>(c);
  2957. auto d = a;
  2958. auto l = [](){};
  2959. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2960. struct use_l { use_l() { l(); } };
  2961. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2962. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2963. namespace test_template_alias_sfinae {
  2964. struct foo {};
  2965. template<typename T>
  2966. using member = typename T::member_type;
  2967. template<typename T>
  2968. void func(...) {}
  2969. template<typename T>
  2970. void func(member<T>*) {}
  2971. void test();
  2972. void test() {
  2973. func<foo>(0);
  2974. }
  2975. }
  2976. _ACEOF
  2977. if ac_fn_cxx_try_compile "$LINENO"; then :
  2978. eval $cachevar=yes
  2979. else
  2980. eval $cachevar=no
  2981. fi
  2982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2983. CXXFLAGS="$ac_save_CXXFLAGS"
  2984. fi
  2985. eval ac_res=\$$cachevar
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2987. $as_echo "$ac_res" >&6; }
  2988. if eval test x\$$cachevar = xyes; then
  2989. CXXFLAGS="$CXXFLAGS $switch"
  2990. ac_success=yes
  2991. break
  2992. fi
  2993. done
  2994. fi
  2995. ac_ext=cpp
  2996. ac_cpp='$CXXCPP $CPPFLAGS'
  2997. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2998. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2999. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3000. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3001. if test x$ac_success = xno; then
  3002. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3003. fi
  3004. else
  3005. if test x$ac_success = xno; then
  3006. HAVE_CXX11=0
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3008. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  3009. else
  3010. HAVE_CXX11=1
  3011. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  3012. fi
  3013. fi
  3014. if test "${cross_compiling-x}" = "x"
  3015. then
  3016. cat << 'EOF' >&2
  3017. configure: error:
  3018. This system does not appear to have a working C compiler.
  3019. A working C compiler is required to compile Wraith.
  3020. EOF
  3021. exit 1
  3022. fi
  3023. if test -n "$GXX"; then
  3024. CXXFLAGS="$CXXFLAGS"
  3025. fi
  3026. #CXX_RPATH_CHECK
  3027. #checkpoint
  3028. cat >confcache <<\_ACEOF
  3029. # This file is a shell script that caches the results of configure
  3030. # tests run on this system so they can be shared between configure
  3031. # scripts and configure runs, see configure's option --config-cache.
  3032. # It is not useful on other systems. If it contains results you don't
  3033. # want to keep, you may remove or edit it.
  3034. #
  3035. # build/config.status only pays attention to the cache file if you give it
  3036. # the --recheck option to rerun configure.
  3037. #
  3038. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3039. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3040. # following values.
  3041. _ACEOF
  3042. # The following way of writing the cache mishandles newlines in values,
  3043. # but we know of no workaround that is simple, portable, and efficient.
  3044. # So, we kill variables containing newlines.
  3045. # Ultrix sh set writes to stderr and can't be redirected directly,
  3046. # and sets the high bit in the cache file unless we assign to the vars.
  3047. (
  3048. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3049. eval ac_val=\$$ac_var
  3050. case $ac_val in #(
  3051. *${as_nl}*)
  3052. case $ac_var in #(
  3053. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3054. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3055. esac
  3056. case $ac_var in #(
  3057. _ | IFS | as_nl) ;; #(
  3058. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3059. *) { eval $ac_var=; unset $ac_var;} ;;
  3060. esac ;;
  3061. esac
  3062. done
  3063. (set) 2>&1 |
  3064. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3065. *${as_nl}ac_space=\ *)
  3066. # `set' does not quote correctly, so add quotes: double-quote
  3067. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3068. sed -n \
  3069. "s/'/'\\\\''/g;
  3070. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3071. ;; #(
  3072. *)
  3073. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3074. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3075. ;;
  3076. esac |
  3077. sort
  3078. ) |
  3079. sed '
  3080. /^ac_cv_env_/b end
  3081. t clear
  3082. :clear
  3083. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3084. t end
  3085. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3086. :end' >>confcache
  3087. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3088. if test -w "$cache_file"; then
  3089. if test "x$cache_file" != "x/dev/null"; then
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3091. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3092. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3093. cat confcache >"$cache_file"
  3094. else
  3095. case $cache_file in #(
  3096. */* | ?:*)
  3097. mv -f confcache "$cache_file"$$ &&
  3098. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3099. *)
  3100. mv -f confcache "$cache_file" ;;
  3101. esac
  3102. fi
  3103. fi
  3104. else
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3106. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3107. fi
  3108. fi
  3109. rm -f confcache
  3110. # Speedup compile
  3111. if test -n "$GXX" && test -z "$no_wall"; then
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3113. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3114. if ${egg_cv_var_ccwall+:} false; then :
  3115. $as_echo_n "(cached) " >&6
  3116. else
  3117. ac_old_CXXFLAGS="$CXXFLAGS"
  3118. CXXFLAGS="$CXXFLAGS -Wall"
  3119. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3120. /* end build/confdefs.h. */
  3121. int main ()
  3122. {
  3123. return(0);
  3124. }
  3125. _ACEOF
  3126. if ac_fn_cxx_try_compile "$LINENO"; then :
  3127. egg_cv_var_ccwall="yes"
  3128. else
  3129. egg_cv_var_ccwall="no"
  3130. fi
  3131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3132. CXXFLAGS="$ac_old_CXXFLAGS"
  3133. fi
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3135. $as_echo "$egg_cv_var_ccwall" >&6; }
  3136. if test "$egg_cv_var_ccwall" = "yes"; then
  3137. CXXFLAGS="$CXXFLAGS -Wall"
  3138. fi
  3139. fi
  3140. if test -n "$GXX" && test -z "$no_pipe"; then
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3142. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3143. if ${egg_cv_var_ccpipe+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. ac_old_CXX="$CXX"
  3147. CXX="$CXX -pipe"
  3148. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3149. /* end build/confdefs.h. */
  3150. int main ()
  3151. {
  3152. return(0);
  3153. }
  3154. _ACEOF
  3155. if ac_fn_cxx_try_compile "$LINENO"; then :
  3156. egg_cv_var_ccpipe="yes"
  3157. else
  3158. egg_cv_var_ccpipe="no"
  3159. fi
  3160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3161. CXX="$ac_old_CXX"
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3164. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3165. if test "$egg_cv_var_ccpipe" = "yes"; then
  3166. CXX="$CXX -pipe"
  3167. fi
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3170. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3171. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3172. $as_echo_n "(cached) " >&6
  3173. else
  3174. ac_ext=cpp
  3175. ac_cpp='$CXXCPP $CPPFLAGS'
  3176. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3177. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3178. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3179. ac_saved_flags="$CXXFLAGS"
  3180. CXXFLAGS="-Werror -fcolor-diagnostics"
  3181. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3182. /* end build/confdefs.h. */
  3183. int
  3184. main ()
  3185. {
  3186. ;
  3187. return 0;
  3188. }
  3189. _ACEOF
  3190. if ac_fn_cxx_try_compile "$LINENO"; then :
  3191. ax_cv_prog_cc_colordiagnostics="yes"
  3192. else
  3193. ax_cv_prog_cc_colordiagnostics="no"
  3194. fi
  3195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3196. CXXFLAGS="$ac_saved_flags"
  3197. ac_ext=cpp
  3198. ac_cpp='$CXXCPP $CPPFLAGS'
  3199. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3200. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3201. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3202. fi
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3204. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3205. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3206. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3207. elif [ -n "" ]; then
  3208. cat << 'EOF' >&2
  3209. configure: error:
  3210. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3211. This compile flag is required.
  3212. EOF
  3213. exit 1
  3214. fi
  3215. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3217. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3218. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3219. $as_echo_n "(cached) " >&6
  3220. else
  3221. ac_ext=cpp
  3222. ac_cpp='$CXXCPP $CPPFLAGS'
  3223. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3224. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3225. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3226. ac_saved_flags="$CXXFLAGS"
  3227. CXXFLAGS="-Werror -Wno-invalid-source-encoding"
  3228. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3229. /* end build/confdefs.h. */
  3230. int
  3231. main ()
  3232. {
  3233. ;
  3234. return 0;
  3235. }
  3236. _ACEOF
  3237. if ac_fn_cxx_try_compile "$LINENO"; then :
  3238. ax_cv_prog_cc_invalid_source_encoding="yes"
  3239. else
  3240. ax_cv_prog_cc_invalid_source_encoding="no"
  3241. fi
  3242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3243. CXXFLAGS="$ac_saved_flags"
  3244. ac_ext=cpp
  3245. ac_cpp='$CXXCPP $CPPFLAGS'
  3246. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3247. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3248. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3249. fi
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3251. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3252. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3253. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3254. elif [ -n "" ]; then
  3255. cat << 'EOF' >&2
  3256. configure: error:
  3257. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3258. This compile flag is required.
  3259. EOF
  3260. exit 1
  3261. fi
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3263. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3264. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3265. $as_echo_n "(cached) " >&6
  3266. else
  3267. ac_ext=cpp
  3268. ac_cpp='$CXXCPP $CPPFLAGS'
  3269. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3270. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3271. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3272. ac_saved_flags="$CXXFLAGS"
  3273. CXXFLAGS="-Werror -fstack-protector"
  3274. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3275. /* end build/confdefs.h. */
  3276. int
  3277. main ()
  3278. {
  3279. ;
  3280. return 0;
  3281. }
  3282. _ACEOF
  3283. if ac_fn_cxx_try_compile "$LINENO"; then :
  3284. ax_cv_prog_cc_stackprotector="yes"
  3285. else
  3286. ax_cv_prog_cc_stackprotector="no"
  3287. fi
  3288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3289. CXXFLAGS="$ac_saved_flags"
  3290. ac_ext=cpp
  3291. ac_cpp='$CXXCPP $CPPFLAGS'
  3292. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3293. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3294. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3295. fi
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3297. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3298. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3299. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3300. elif [ -n "" ]; then
  3301. cat << 'EOF' >&2
  3302. configure: error:
  3303. Your OS or C++ compiler does not support -fstack-protector.
  3304. This compile flag is required.
  3305. EOF
  3306. exit 1
  3307. fi
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3309. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3310. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. ac_ext=cpp
  3314. ac_cpp='$CXXCPP $CPPFLAGS'
  3315. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3316. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3317. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3318. ac_saved_flags="$CXXFLAGS"
  3319. CXXFLAGS="-Werror -fstack-protector-strong"
  3320. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3321. /* end build/confdefs.h. */
  3322. int
  3323. main ()
  3324. {
  3325. ;
  3326. return 0;
  3327. }
  3328. _ACEOF
  3329. if ac_fn_cxx_try_compile "$LINENO"; then :
  3330. ax_cv_prog_cc_stackprotectorstrong="yes"
  3331. else
  3332. ax_cv_prog_cc_stackprotectorstrong="no"
  3333. fi
  3334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3335. CXXFLAGS="$ac_saved_flags"
  3336. ac_ext=cpp
  3337. ac_cpp='$CXXCPP $CPPFLAGS'
  3338. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3339. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3340. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3341. fi
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3343. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3344. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3345. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3346. elif [ -n "" ]; then
  3347. cat << 'EOF' >&2
  3348. configure: error:
  3349. Your OS or C++ compiler does not support -fstack-protector-strong.
  3350. This compile flag is required.
  3351. EOF
  3352. exit 1
  3353. fi
  3354. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3355. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3356. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3357. LDFLAGS="${LDFLAGS} -fstack-protector"
  3358. fi
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3360. $as_echo_n "checking whether the compiler understands -Og... " >&6; }
  3361. if ${ax_cv_prog_cc_Og+:} false; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. ac_ext=cpp
  3365. ac_cpp='$CXXCPP $CPPFLAGS'
  3366. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3367. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3368. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3369. ac_saved_flags="$CXXFLAGS"
  3370. CXXFLAGS="-Werror -Og"
  3371. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3372. /* end build/confdefs.h. */
  3373. int
  3374. main ()
  3375. {
  3376. ;
  3377. return 0;
  3378. }
  3379. _ACEOF
  3380. if ac_fn_cxx_try_compile "$LINENO"; then :
  3381. ax_cv_prog_cc_Og="yes"
  3382. else
  3383. ax_cv_prog_cc_Og="no"
  3384. fi
  3385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3386. CXXFLAGS="$ac_saved_flags"
  3387. ac_ext=cpp
  3388. ac_cpp='$CXXCPP $CPPFLAGS'
  3389. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3390. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3391. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  3394. $as_echo "$ax_cv_prog_cc_Og" >&6; }
  3395. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  3396. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  3397. elif [ -n "" ]; then
  3398. cat << 'EOF' >&2
  3399. configure: error:
  3400. Your OS or C++ compiler does not support -Og.
  3401. This compile flag is required.
  3402. EOF
  3403. exit 1
  3404. fi
  3405. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  3406. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  3407. fi
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -fsanitize=address" >&5
  3409. $as_echo_n "checking whether the linker supports -fsanitize=address... " >&6; }
  3410. if ${ax_cv_prog_cc_fsanitize_address+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. ac_ext=cpp
  3414. ac_cpp='$CXXCPP $CPPFLAGS'
  3415. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3416. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3417. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3418. ac_saved_flags="$CXXFLAGS"
  3419. CXXFLAGS="-Werror -fsanitize=address"
  3420. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3421. /* end build/confdefs.h. */
  3422. int
  3423. main ()
  3424. {
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. if ac_fn_cxx_try_link "$LINENO"; then :
  3430. ax_cv_prog_cc_fsanitize_address="yes"
  3431. else
  3432. ax_cv_prog_cc_fsanitize_address="no"
  3433. fi
  3434. rm -f core conftest.err conftest.$ac_objext \
  3435. conftest$ac_exeext conftest.$ac_ext
  3436. CXXFLAGS="$ac_saved_flags"
  3437. ac_ext=cpp
  3438. ac_cpp='$CXXCPP $CPPFLAGS'
  3439. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3440. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3441. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3442. fi
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_fsanitize_address" >&5
  3444. $as_echo "$ax_cv_prog_cc_fsanitize_address" >&6; }
  3445. if [ "$ax_cv_prog_cc_fsanitize_address" = "yes" ]; then
  3446. DEBCXXFLAGS="$DEBCXXFLAGS -fsanitize=address"
  3447. elif [ -n "" ]; then
  3448. cat << 'EOF' >&2
  3449. configure: error:
  3450. Your OS or C++ compiler does not support -fsanitize=address.
  3451. This compile flag is required.
  3452. EOF
  3453. exit 1
  3454. fi
  3455. if [ "${ax_cv_prog_cc_fsanitize_address}" = "yes" ]; then
  3456. LDFLAGS="${LDFLAGS} -fsanitize=address"
  3457. fi
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3459. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3460. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. ac_ext=cpp
  3464. ac_cpp='$CXXCPP $CPPFLAGS'
  3465. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3466. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3467. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3468. ac_saved_flags="$CXXFLAGS"
  3469. CXXFLAGS="-Werror -fstack-protector-all"
  3470. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3471. /* end build/confdefs.h. */
  3472. int
  3473. main ()
  3474. {
  3475. ;
  3476. return 0;
  3477. }
  3478. _ACEOF
  3479. if ac_fn_cxx_try_compile "$LINENO"; then :
  3480. ax_cv_prog_cc_stackprotectorall="yes"
  3481. else
  3482. ax_cv_prog_cc_stackprotectorall="no"
  3483. fi
  3484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3485. CXXFLAGS="$ac_saved_flags"
  3486. ac_ext=cpp
  3487. ac_cpp='$CXXCPP $CPPFLAGS'
  3488. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3489. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3490. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3491. fi
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  3493. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3494. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3495. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3496. elif [ -n "" ]; then
  3497. cat << 'EOF' >&2
  3498. configure: error:
  3499. Your OS or C++ compiler does not support -fstack-protector-all.
  3500. This compile flag is required.
  3501. EOF
  3502. exit 1
  3503. fi
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wconditional-uninitialized" >&5
  3505. $as_echo_n "checking whether the compiler understands -Wconditional-uninitialized... " >&6; }
  3506. if ${ax_cv_prog_cc_w_conditional_uninitialized+:} false; then :
  3507. $as_echo_n "(cached) " >&6
  3508. else
  3509. ac_ext=cpp
  3510. ac_cpp='$CXXCPP $CPPFLAGS'
  3511. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3512. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3513. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3514. ac_saved_flags="$CXXFLAGS"
  3515. CXXFLAGS="-Werror -Wconditional-uninitialized"
  3516. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3517. /* end build/confdefs.h. */
  3518. int
  3519. main ()
  3520. {
  3521. ;
  3522. return 0;
  3523. }
  3524. _ACEOF
  3525. if ac_fn_cxx_try_compile "$LINENO"; then :
  3526. ax_cv_prog_cc_w_conditional_uninitialized="yes"
  3527. else
  3528. ax_cv_prog_cc_w_conditional_uninitialized="no"
  3529. fi
  3530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3531. CXXFLAGS="$ac_saved_flags"
  3532. ac_ext=cpp
  3533. ac_cpp='$CXXCPP $CPPFLAGS'
  3534. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3535. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3536. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3537. fi
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_w_conditional_uninitialized" >&5
  3539. $as_echo "$ax_cv_prog_cc_w_conditional_uninitialized" >&6; }
  3540. if [ "$ax_cv_prog_cc_w_conditional_uninitialized" = "yes" ]; then
  3541. DEBCXXFLAGS="$DEBCXXFLAGS -Wconditional-uninitialized"
  3542. elif [ -n "" ]; then
  3543. cat << 'EOF' >&2
  3544. configure: error:
  3545. Your OS or C++ compiler does not support -Wconditional-uninitialized.
  3546. This compile flag is required.
  3547. EOF
  3548. exit 1
  3549. fi
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
  3551. $as_echo_n "checking whether the compiler understands -static-libstdc++... " >&6; }
  3552. if ${ax_cv_prog_cc_static_libstdcxx+:} false; then :
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. ac_ext=cpp
  3556. ac_cpp='$CXXCPP $CPPFLAGS'
  3557. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3558. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3559. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3560. ac_saved_flags="$CXXFLAGS"
  3561. CXXFLAGS="-Werror -static-libstdc++"
  3562. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3563. /* end build/confdefs.h. */
  3564. int
  3565. main ()
  3566. {
  3567. ;
  3568. return 0;
  3569. }
  3570. _ACEOF
  3571. if ac_fn_cxx_try_compile "$LINENO"; then :
  3572. ax_cv_prog_cc_static_libstdcxx="yes"
  3573. else
  3574. ax_cv_prog_cc_static_libstdcxx="no"
  3575. fi
  3576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3577. CXXFLAGS="$ac_saved_flags"
  3578. ac_ext=cpp
  3579. ac_cpp='$CXXCPP $CPPFLAGS'
  3580. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3581. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3582. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3583. fi
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libstdcxx" >&5
  3585. $as_echo "$ax_cv_prog_cc_static_libstdcxx" >&6; }
  3586. if [ "$ax_cv_prog_cc_static_libstdcxx" = "yes" ]; then
  3587. LDFLAGS="$LDFLAGS -static-libstdc++"
  3588. elif [ -n "" ]; then
  3589. cat << 'EOF' >&2
  3590. configure: error:
  3591. Your OS or C++ compiler does not support -static-libstdc++.
  3592. This compile flag is required.
  3593. EOF
  3594. exit 1
  3595. fi
  3596. #CXX_FLAG_CHECK([LDFLAGS], [-static-libgcc], [static_libgcc])
  3597. if [ "${ax_cv_prog_cc_static_libstdcxx}" = "yes" ]; then
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libstdc++" >&5
  3599. $as_echo_n "checking for static libstdc++... " >&6; }
  3600. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3601. /* end build/confdefs.h. */
  3602. int
  3603. main ()
  3604. {
  3605. ;
  3606. return 0;
  3607. }
  3608. _ACEOF
  3609. if ac_fn_cxx_try_link "$LINENO"; then :
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  3611. $as_echo "OK" >&6; }
  3612. else
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  3614. $as_echo "not found." >&6; }
  3615. as_fn_error 1 "Static libstdc++ is rquired to build." "$LINENO" 5
  3616. fi
  3617. rm -f core conftest.err conftest.$ac_objext \
  3618. conftest$ac_exeext conftest.$ac_ext
  3619. fi
  3620. CCDEPMODE=gcc
  3621. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3622. if test $num -ge "3"; then
  3623. CCDEPMODE=gcc3
  3624. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3625. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Wno-format-y2k"
  3626. GCC3_CXXFLAGS="-Woverloaded-virtual"
  3627. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3628. fi
  3629. #checkpoint
  3630. cat >confcache <<\_ACEOF
  3631. # This file is a shell script that caches the results of configure
  3632. # tests run on this system so they can be shared between configure
  3633. # scripts and configure runs, see configure's option --config-cache.
  3634. # It is not useful on other systems. If it contains results you don't
  3635. # want to keep, you may remove or edit it.
  3636. #
  3637. # build/config.status only pays attention to the cache file if you give it
  3638. # the --recheck option to rerun configure.
  3639. #
  3640. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3641. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3642. # following values.
  3643. _ACEOF
  3644. # The following way of writing the cache mishandles newlines in values,
  3645. # but we know of no workaround that is simple, portable, and efficient.
  3646. # So, we kill variables containing newlines.
  3647. # Ultrix sh set writes to stderr and can't be redirected directly,
  3648. # and sets the high bit in the cache file unless we assign to the vars.
  3649. (
  3650. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3651. eval ac_val=\$$ac_var
  3652. case $ac_val in #(
  3653. *${as_nl}*)
  3654. case $ac_var in #(
  3655. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3656. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3657. esac
  3658. case $ac_var in #(
  3659. _ | IFS | as_nl) ;; #(
  3660. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3661. *) { eval $ac_var=; unset $ac_var;} ;;
  3662. esac ;;
  3663. esac
  3664. done
  3665. (set) 2>&1 |
  3666. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3667. *${as_nl}ac_space=\ *)
  3668. # `set' does not quote correctly, so add quotes: double-quote
  3669. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3670. sed -n \
  3671. "s/'/'\\\\''/g;
  3672. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3673. ;; #(
  3674. *)
  3675. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3676. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3677. ;;
  3678. esac |
  3679. sort
  3680. ) |
  3681. sed '
  3682. /^ac_cv_env_/b end
  3683. t clear
  3684. :clear
  3685. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3686. t end
  3687. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3688. :end' >>confcache
  3689. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3690. if test -w "$cache_file"; then
  3691. if test "x$cache_file" != "x/dev/null"; then
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3693. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3694. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3695. cat confcache >"$cache_file"
  3696. else
  3697. case $cache_file in #(
  3698. */* | ?:*)
  3699. mv -f confcache "$cache_file"$$ &&
  3700. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3701. *)
  3702. mv -f confcache "$cache_file" ;;
  3703. esac
  3704. fi
  3705. fi
  3706. else
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3708. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3709. fi
  3710. fi
  3711. rm -f confcache
  3712. # Checks for programs
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3714. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3715. set x ${MAKE-make}
  3716. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3717. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. cat >conftest.make <<\_ACEOF
  3721. SHELL = /bin/sh
  3722. all:
  3723. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3724. _ACEOF
  3725. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3726. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3727. *@@@%%%=?*=@@@%%%*)
  3728. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3729. *)
  3730. eval ac_cv_prog_make_${ac_make}_set=no;;
  3731. esac
  3732. rm -f conftest.make
  3733. fi
  3734. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3736. $as_echo "yes" >&6; }
  3737. SET_MAKE=
  3738. else
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3740. $as_echo "no" >&6; }
  3741. SET_MAKE="MAKE=${MAKE-make}"
  3742. fi
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3744. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3745. if ${ac_cv_path_SED+:} false; then :
  3746. $as_echo_n "(cached) " >&6
  3747. else
  3748. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3749. for ac_i in 1 2 3 4 5 6 7; do
  3750. ac_script="$ac_script$as_nl$ac_script"
  3751. done
  3752. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3753. { ac_script=; unset ac_script;}
  3754. if test -z "$SED"; then
  3755. ac_path_SED_found=false
  3756. # Loop through the user's path and test for each of PROGNAME-LIST
  3757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3758. for as_dir in $PATH
  3759. do
  3760. IFS=$as_save_IFS
  3761. test -z "$as_dir" && as_dir=.
  3762. for ac_prog in sed gsed; do
  3763. for ac_exec_ext in '' $ac_executable_extensions; do
  3764. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3765. as_fn_executable_p "$ac_path_SED" || continue
  3766. # Check for GNU ac_path_SED and select it if it is found.
  3767. # Check for GNU $ac_path_SED
  3768. case `"$ac_path_SED" --version 2>&1` in
  3769. *GNU*)
  3770. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3771. *)
  3772. ac_count=0
  3773. $as_echo_n 0123456789 >"conftest.in"
  3774. while :
  3775. do
  3776. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3777. mv "conftest.tmp" "conftest.in"
  3778. cp "conftest.in" "conftest.nl"
  3779. $as_echo '' >> "conftest.nl"
  3780. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3781. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3782. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3783. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3784. # Best one so far, save it but keep looking for a better one
  3785. ac_cv_path_SED="$ac_path_SED"
  3786. ac_path_SED_max=$ac_count
  3787. fi
  3788. # 10*(2^10) chars as input seems more than enough
  3789. test $ac_count -gt 10 && break
  3790. done
  3791. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3792. esac
  3793. $ac_path_SED_found && break 3
  3794. done
  3795. done
  3796. done
  3797. IFS=$as_save_IFS
  3798. if test -z "$ac_cv_path_SED"; then
  3799. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3800. fi
  3801. else
  3802. ac_cv_path_SED=$SED
  3803. fi
  3804. fi
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3806. $as_echo "$ac_cv_path_SED" >&6; }
  3807. SED="$ac_cv_path_SED"
  3808. rm -f conftest.sed
  3809. cat << 'EOF' > conftest.head
  3810. a
  3811. b
  3812. c
  3813. EOF
  3814. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3815. do
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3817. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3818. if ${ac_cv_prog_HEAD_1+:} false; then :
  3819. $as_echo_n "(cached) " >&6
  3820. else
  3821. if test -n "$HEAD_1"
  3822. then
  3823. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3824. else
  3825. if test "`cat conftest.head | $ac_prog`" = "a";
  3826. then
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3828. $as_echo "yes" >&6; }
  3829. ac_cv_prog_HEAD_1=$ac_prog
  3830. else
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3832. $as_echo "no" >&6; }
  3833. fi
  3834. fi
  3835. fi
  3836. test -n "$ac_cv_prog_HEAD_1" && break
  3837. done
  3838. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3839. then
  3840. cat << 'EOF' >&2
  3841. configure: error:
  3842. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3843. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3844. EOF
  3845. exit 1
  3846. fi
  3847. rm -f conftest.head
  3848. HEAD_1=$ac_cv_prog_HEAD_1
  3849. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3850. for ac_prog in gawk mawk nawk awk
  3851. do
  3852. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3853. set dummy $ac_prog; ac_word=$2
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3855. $as_echo_n "checking for $ac_word... " >&6; }
  3856. if ${ac_cv_prog_AWK+:} false; then :
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. if test -n "$AWK"; then
  3860. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3861. else
  3862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3863. for as_dir in $PATH
  3864. do
  3865. IFS=$as_save_IFS
  3866. test -z "$as_dir" && as_dir=.
  3867. for ac_exec_ext in '' $ac_executable_extensions; do
  3868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3869. ac_cv_prog_AWK="$ac_prog"
  3870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3871. break 2
  3872. fi
  3873. done
  3874. done
  3875. IFS=$as_save_IFS
  3876. fi
  3877. fi
  3878. AWK=$ac_cv_prog_AWK
  3879. if test -n "$AWK"; then
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3881. $as_echo "$AWK" >&6; }
  3882. else
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3884. $as_echo "no" >&6; }
  3885. fi
  3886. test -n "$AWK" && break
  3887. done
  3888. if test "${AWK-x}" = "x"
  3889. then
  3890. cat << 'EOF' >&2
  3891. configure: error:
  3892. This system seems to lack a working 'awk' command.
  3893. A working 'awk' command is required to compile Wraith.
  3894. EOF
  3895. exit 1
  3896. fi
  3897. # basename is needed for Tcl library and header checks
  3898. # Extract the first word of "basename", so it can be a program name with args.
  3899. set dummy basename; ac_word=$2
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3901. $as_echo_n "checking for $ac_word... " >&6; }
  3902. if ${ac_cv_prog_BASENAME+:} false; then :
  3903. $as_echo_n "(cached) " >&6
  3904. else
  3905. if test -n "$BASENAME"; then
  3906. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3907. else
  3908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3909. for as_dir in $PATH
  3910. do
  3911. IFS=$as_save_IFS
  3912. test -z "$as_dir" && as_dir=.
  3913. for ac_exec_ext in '' $ac_executable_extensions; do
  3914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3915. ac_cv_prog_BASENAME="basename"
  3916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3917. break 2
  3918. fi
  3919. done
  3920. done
  3921. IFS=$as_save_IFS
  3922. fi
  3923. fi
  3924. BASENAME=$ac_cv_prog_BASENAME
  3925. if test -n "$BASENAME"; then
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3927. $as_echo "$BASENAME" >&6; }
  3928. else
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3930. $as_echo "no" >&6; }
  3931. fi
  3932. if test "${BASENAME-x}" = "x"
  3933. then
  3934. cat << 'EOF' >&2
  3935. configure: error:
  3936. This system seems to lack a working 'basename' command.
  3937. A working 'basename' command is required to compile Wraith.
  3938. EOF
  3939. exit 1
  3940. fi
  3941. # Extract the first word of "objcopy", so it can be a program name with args.
  3942. set dummy objcopy; ac_word=$2
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3944. $as_echo_n "checking for $ac_word... " >&6; }
  3945. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3946. $as_echo_n "(cached) " >&6
  3947. else
  3948. if test -n "$OBJCOPY"; then
  3949. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3950. else
  3951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3952. for as_dir in $PATH
  3953. do
  3954. IFS=$as_save_IFS
  3955. test -z "$as_dir" && as_dir=.
  3956. for ac_exec_ext in '' $ac_executable_extensions; do
  3957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3958. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3960. break 2
  3961. fi
  3962. done
  3963. done
  3964. IFS=$as_save_IFS
  3965. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3966. fi
  3967. fi
  3968. OBJCOPY=$ac_cv_prog_OBJCOPY
  3969. if test -n "$OBJCOPY"; then
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3971. $as_echo "$OBJCOPY" >&6; }
  3972. else
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3974. $as_echo "no" >&6; }
  3975. fi
  3976. # Extract the first word of "strip", so it can be a program name with args.
  3977. set dummy strip; ac_word=$2
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3979. $as_echo_n "checking for $ac_word... " >&6; }
  3980. if ${ac_cv_prog_STRIP+:} false; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. if test -n "$STRIP"; then
  3984. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3985. else
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_exec_ext in '' $ac_executable_extensions; do
  3992. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3993. ac_cv_prog_STRIP="strip"
  3994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3995. break 2
  3996. fi
  3997. done
  3998. done
  3999. IFS=$as_save_IFS
  4000. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  4001. fi
  4002. fi
  4003. STRIP=$ac_cv_prog_STRIP
  4004. if test -n "$STRIP"; then
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4006. $as_echo "$STRIP" >&6; }
  4007. else
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4009. $as_echo "no" >&6; }
  4010. fi
  4011. # Extract the first word of "gdiff", so it can be a program name with args.
  4012. set dummy gdiff; ac_word=$2
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4014. $as_echo_n "checking for $ac_word... " >&6; }
  4015. if ${ac_cv_prog_DIFF+:} false; then :
  4016. $as_echo_n "(cached) " >&6
  4017. else
  4018. if test -n "$DIFF"; then
  4019. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  4020. else
  4021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4022. for as_dir in $PATH
  4023. do
  4024. IFS=$as_save_IFS
  4025. test -z "$as_dir" && as_dir=.
  4026. for ac_exec_ext in '' $ac_executable_extensions; do
  4027. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4028. ac_cv_prog_DIFF="gdiff"
  4029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4030. break 2
  4031. fi
  4032. done
  4033. done
  4034. IFS=$as_save_IFS
  4035. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  4036. fi
  4037. fi
  4038. DIFF=$ac_cv_prog_DIFF
  4039. if test -n "$DIFF"; then
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  4041. $as_echo "$DIFF" >&6; }
  4042. else
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4044. $as_echo "no" >&6; }
  4045. fi
  4046. # Extract the first word of "uname", so it can be a program name with args.
  4047. set dummy uname; ac_word=$2
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4049. $as_echo_n "checking for $ac_word... " >&6; }
  4050. if ${ac_cv_prog_UNAME+:} false; then :
  4051. $as_echo_n "(cached) " >&6
  4052. else
  4053. if test -n "$UNAME"; then
  4054. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  4055. else
  4056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4057. for as_dir in $PATH
  4058. do
  4059. IFS=$as_save_IFS
  4060. test -z "$as_dir" && as_dir=.
  4061. for ac_exec_ext in '' $ac_executable_extensions; do
  4062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4063. ac_cv_prog_UNAME="uname"
  4064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4065. break 2
  4066. fi
  4067. done
  4068. done
  4069. IFS=$as_save_IFS
  4070. fi
  4071. fi
  4072. UNAME=$ac_cv_prog_UNAME
  4073. if test -n "$UNAME"; then
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4075. $as_echo "$UNAME" >&6; }
  4076. else
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4078. $as_echo "no" >&6; }
  4079. fi
  4080. # Test the os and set the module linking settings
  4081. USE_STATIC=yes
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  4083. $as_echo_n "checking system type... " >&6; }
  4084. if ${egg_cv_var_system_type+:} false; then :
  4085. $as_echo_n "(cached) " >&6
  4086. else
  4087. egg_cv_var_system_type=`$UNAME -s`
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  4090. $as_echo "$egg_cv_var_system_type" >&6; }
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  4092. $as_echo_n "checking system release... " >&6; }
  4093. if ${egg_cv_var_system_release+:} false; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. egg_cv_var_system_release=`$UNAME -r`
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  4099. $as_echo "$egg_cv_var_system_release" >&6; }
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  4101. $as_echo_n "checking system machine... " >&6; }
  4102. if ${egg_cv_var_system_machine+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. egg_cv_var_system_machine=`$UNAME -m`
  4106. fi
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  4108. $as_echo "$egg_cv_var_system_machine" >&6; }
  4109. BUILDOS="$egg_cv_var_system_type"
  4110. BUILDARCH="$egg_cv_var_system_machine"
  4111. USE_GENERIC_I486="yes"
  4112. case "$egg_cv_var_system_type" in
  4113. BSD/OS)
  4114. ;;
  4115. IRIX)
  4116. ;;
  4117. HP-UX)
  4118. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  4119. ;;
  4120. Ultrix)
  4121. SHELL=/bin/sh5
  4122. ;;
  4123. SINIX*)
  4124. ;;
  4125. BeOS)
  4126. ;;
  4127. Linux)
  4128. ;;
  4129. Lynx)
  4130. ;;
  4131. QNX)
  4132. ;;
  4133. OSF1)
  4134. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4135. V*)
  4136. if test "$AWK" = "gawk"
  4137. then
  4138. AWK=awk
  4139. fi
  4140. ;;
  4141. 1.0|1.1|1.2)
  4142. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4143. ;;
  4144. 1.*)
  4145. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4146. ;;
  4147. *)
  4148. ;;
  4149. esac
  4150. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  4151. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  4152. ;;
  4153. SunOS)
  4154. SUNOS="yes"
  4155. USE_STATIC="no"
  4156. ;;
  4157. Darwin)
  4158. USE_STATIC="no"
  4159. USE_GENERIC_I486="no"
  4160. ;;
  4161. *BSD)
  4162. # FreeBSD/OpenBSD/NetBSD
  4163. ;;
  4164. *)
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4166. $as_echo_n "checking if system is Mach based... " >&6; }
  4167. if test -r /mach
  4168. then
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4170. $as_echo "yes" >&6; }
  4171. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  4172. else
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4174. $as_echo "no" >&6; }
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4176. $as_echo_n "checking if system is QNX... " >&6; }
  4177. if test -r /cmds
  4178. then
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4180. $as_echo "yes" >&6; }
  4181. else
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4183. $as_echo "no" >&6; }
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4185. $as_echo "Something unknown!" >&6; }
  4186. fi
  4187. fi
  4188. ;;
  4189. esac
  4190. case "$egg_cv_var_system_machine" in
  4191. i*)
  4192. if test "$USE_GENERIC_I486" = "yes"; then
  4193. CXX="$CXX -march=i486"
  4194. BUILDARCH="i486"
  4195. fi
  4196. ;;
  4197. *)
  4198. ;;
  4199. esac
  4200. # Check for IPv6 support
  4201. #EGG_IPV6_SUPPORTED
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4203. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4204. # Check whether --enable-ipv6 was given.
  4205. if test "${enable_ipv6+set}" = set; then :
  4206. enableval=$enable_ipv6;
  4207. enable_ipv6=$enableval
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4209. $as_echo "$enableval" >&6; }
  4210. else
  4211. # default if not given is ENABLED
  4212. if test "x$enableval" = "x"; then
  4213. enableval="yes"
  4214. fi
  4215. enable_ipv6=$enableval
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4217. $as_echo "$enableval" >&6; }
  4218. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4219. fi
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4221. $as_echo_n "checking for socklen_t... " >&6; }
  4222. if ${egg_cv_socklen_t+:} false; then :
  4223. $as_echo_n "(cached) " >&6
  4224. else
  4225. if test "$cross_compiling" = yes; then :
  4226. egg_cv_socklen_t=no
  4227. else
  4228. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end build/confdefs.h. */
  4230. #include <unistd.h>
  4231. #include <sys/types.h>
  4232. #include <sys/socket.h>
  4233. #include <netinet/in.h>
  4234. #include <arpa/inet.h>
  4235. int main()
  4236. {
  4237. socklen_t test = sizeof(int);
  4238. return 0;
  4239. }
  4240. _ACEOF
  4241. if ac_fn_cxx_try_run "$LINENO"; then :
  4242. egg_cv_socklen_t=yes
  4243. else
  4244. egg_cv_socklen_t=no
  4245. fi
  4246. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4247. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4248. fi
  4249. fi
  4250. if test "$egg_cv_socklen_t" = "yes"; then
  4251. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4253. $as_echo "yes" >&6; }
  4254. else
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4256. $as_echo "no" >&6; }
  4257. fi
  4258. # Check for inconsistent random() functions
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4260. $as_echo_n "checking for random limit... " >&6; }
  4261. case "$egg_cv_var_system_type" in
  4262. SunOS) RMAX=0x7FFFFFFF
  4263. ;;
  4264. *) RMAX=RAND_MAX
  4265. ;;
  4266. esac
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4268. $as_echo "$RMAX" >&6; }
  4269. cat >>build/confdefs.h <<_ACEOF
  4270. #define RANDOM_MAX $RMAX
  4271. _ACEOF
  4272. # Create static binaries
  4273. if test "$USE_STATIC" = "yes"
  4274. then
  4275. if test -n "$GXX"
  4276. then
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4278. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4279. if ${egg_cv_var_ccstatic+:} false; then :
  4280. $as_echo_n "(cached) " >&6
  4281. else
  4282. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4283. /* end build/confdefs.h. */
  4284. int
  4285. main ()
  4286. {
  4287. ;
  4288. return 0;
  4289. }
  4290. _ACEOF
  4291. if ac_fn_cxx_try_compile "$LINENO"; then :
  4292. egg_cv_var_ccstatic="yes"
  4293. else
  4294. egg_cv_var_ccstatic="no"
  4295. fi
  4296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4299. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4300. if ! test "$egg_cv_var_ccstatic" = "yes"
  4301. then
  4302. cat << 'EOF' >&2
  4303. configure: error:
  4304. Your OS or C++ compiler does not support -static.
  4305. This compile flag is required for the botpack on this OS.
  4306. EOF
  4307. exit 1
  4308. fi
  4309. fi
  4310. STATIC="-static"
  4311. else
  4312. STATIC=""
  4313. fi
  4314. #checkpoint
  4315. cat >confcache <<\_ACEOF
  4316. # This file is a shell script that caches the results of configure
  4317. # tests run on this system so they can be shared between configure
  4318. # scripts and configure runs, see configure's option --config-cache.
  4319. # It is not useful on other systems. If it contains results you don't
  4320. # want to keep, you may remove or edit it.
  4321. #
  4322. # build/config.status only pays attention to the cache file if you give it
  4323. # the --recheck option to rerun configure.
  4324. #
  4325. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4326. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4327. # following values.
  4328. _ACEOF
  4329. # The following way of writing the cache mishandles newlines in values,
  4330. # but we know of no workaround that is simple, portable, and efficient.
  4331. # So, we kill variables containing newlines.
  4332. # Ultrix sh set writes to stderr and can't be redirected directly,
  4333. # and sets the high bit in the cache file unless we assign to the vars.
  4334. (
  4335. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4336. eval ac_val=\$$ac_var
  4337. case $ac_val in #(
  4338. *${as_nl}*)
  4339. case $ac_var in #(
  4340. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4341. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4342. esac
  4343. case $ac_var in #(
  4344. _ | IFS | as_nl) ;; #(
  4345. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4346. *) { eval $ac_var=; unset $ac_var;} ;;
  4347. esac ;;
  4348. esac
  4349. done
  4350. (set) 2>&1 |
  4351. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4352. *${as_nl}ac_space=\ *)
  4353. # `set' does not quote correctly, so add quotes: double-quote
  4354. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4355. sed -n \
  4356. "s/'/'\\\\''/g;
  4357. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4358. ;; #(
  4359. *)
  4360. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4361. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4362. ;;
  4363. esac |
  4364. sort
  4365. ) |
  4366. sed '
  4367. /^ac_cv_env_/b end
  4368. t clear
  4369. :clear
  4370. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4371. t end
  4372. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4373. :end' >>confcache
  4374. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4375. if test -w "$cache_file"; then
  4376. if test "x$cache_file" != "x/dev/null"; then
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4378. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4379. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4380. cat confcache >"$cache_file"
  4381. else
  4382. case $cache_file in #(
  4383. */* | ?:*)
  4384. mv -f confcache "$cache_file"$$ &&
  4385. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4386. *)
  4387. mv -f confcache "$cache_file" ;;
  4388. esac
  4389. fi
  4390. fi
  4391. else
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4393. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4394. fi
  4395. fi
  4396. rm -f confcache
  4397. # Checks for system libraries
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4399. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4400. if ${ac_cv_lib_socket_socket+:} false; then :
  4401. $as_echo_n "(cached) " >&6
  4402. else
  4403. ac_check_lib_save_LIBS=$LIBS
  4404. LIBS="-lsocket $LIBS"
  4405. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4406. /* end build/confdefs.h. */
  4407. /* Override any GCC internal prototype to avoid an error.
  4408. Use char because int might match the return type of a GCC
  4409. builtin and then its argument prototype would still apply. */
  4410. #ifdef __cplusplus
  4411. extern "C"
  4412. #endif
  4413. char socket ();
  4414. int
  4415. main ()
  4416. {
  4417. return socket ();
  4418. ;
  4419. return 0;
  4420. }
  4421. _ACEOF
  4422. if ac_fn_cxx_try_link "$LINENO"; then :
  4423. ac_cv_lib_socket_socket=yes
  4424. else
  4425. ac_cv_lib_socket_socket=no
  4426. fi
  4427. rm -f core conftest.err conftest.$ac_objext \
  4428. conftest$ac_exeext conftest.$ac_ext
  4429. LIBS=$ac_check_lib_save_LIBS
  4430. fi
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4432. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4433. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4434. cat >>build/confdefs.h <<_ACEOF
  4435. #define HAVE_LIBSOCKET 1
  4436. _ACEOF
  4437. LIBS="-lsocket $LIBS"
  4438. fi
  4439. # AC_CHECK_LIB(nsl, connect)
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4441. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4442. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. ac_check_lib_save_LIBS=$LIBS
  4446. LIBS="-ldl $LIBS"
  4447. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4448. /* end build/confdefs.h. */
  4449. /* Override any GCC internal prototype to avoid an error.
  4450. Use char because int might match the return type of a GCC
  4451. builtin and then its argument prototype would still apply. */
  4452. #ifdef __cplusplus
  4453. extern "C"
  4454. #endif
  4455. char dlopen ();
  4456. int
  4457. main ()
  4458. {
  4459. return dlopen ();
  4460. ;
  4461. return 0;
  4462. }
  4463. _ACEOF
  4464. if ac_fn_cxx_try_link "$LINENO"; then :
  4465. ac_cv_lib_dl_dlopen=yes
  4466. else
  4467. ac_cv_lib_dl_dlopen=no
  4468. fi
  4469. rm -f core conftest.err conftest.$ac_objext \
  4470. conftest$ac_exeext conftest.$ac_ext
  4471. LIBS=$ac_check_lib_save_LIBS
  4472. fi
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4474. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4475. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4476. cat >>build/confdefs.h <<_ACEOF
  4477. #define HAVE_LIBDL 1
  4478. _ACEOF
  4479. LIBS="-ldl $LIBS"
  4480. fi
  4481. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4482. if test "$SUNOS" = "yes"; then
  4483. # For suns without yp
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4485. $as_echo_n "checking for main in -ldl... " >&6; }
  4486. if ${ac_cv_lib_dl_main+:} false; then :
  4487. $as_echo_n "(cached) " >&6
  4488. else
  4489. ac_check_lib_save_LIBS=$LIBS
  4490. LIBS="-ldl $LIBS"
  4491. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4492. /* end build/confdefs.h. */
  4493. int
  4494. main ()
  4495. {
  4496. return main ();
  4497. ;
  4498. return 0;
  4499. }
  4500. _ACEOF
  4501. if ac_fn_cxx_try_link "$LINENO"; then :
  4502. ac_cv_lib_dl_main=yes
  4503. else
  4504. ac_cv_lib_dl_main=no
  4505. fi
  4506. rm -f core conftest.err conftest.$ac_objext \
  4507. conftest$ac_exeext conftest.$ac_ext
  4508. LIBS=$ac_check_lib_save_LIBS
  4509. fi
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4511. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4512. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4513. cat >>build/confdefs.h <<_ACEOF
  4514. #define HAVE_LIBDL 1
  4515. _ACEOF
  4516. LIBS="-ldl $LIBS"
  4517. fi
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4519. $as_echo_n "checking for main in -lsocket... " >&6; }
  4520. if ${ac_cv_lib_socket_main+:} false; then :
  4521. $as_echo_n "(cached) " >&6
  4522. else
  4523. ac_check_lib_save_LIBS=$LIBS
  4524. LIBS="-lsocket $LIBS"
  4525. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4526. /* end build/confdefs.h. */
  4527. int
  4528. main ()
  4529. {
  4530. return main ();
  4531. ;
  4532. return 0;
  4533. }
  4534. _ACEOF
  4535. if ac_fn_cxx_try_link "$LINENO"; then :
  4536. ac_cv_lib_socket_main=yes
  4537. else
  4538. ac_cv_lib_socket_main=no
  4539. fi
  4540. rm -f core conftest.err conftest.$ac_objext \
  4541. conftest$ac_exeext conftest.$ac_ext
  4542. LIBS=$ac_check_lib_save_LIBS
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4545. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4546. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4547. cat >>build/confdefs.h <<_ACEOF
  4548. #define HAVE_LIBSOCKET 1
  4549. _ACEOF
  4550. LIBS="-lsocket $LIBS"
  4551. fi
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4553. $as_echo_n "checking for main in -lnsl... " >&6; }
  4554. if ${ac_cv_lib_nsl_main+:} false; then :
  4555. $as_echo_n "(cached) " >&6
  4556. else
  4557. ac_check_lib_save_LIBS=$LIBS
  4558. LIBS="-lnsl $LIBS"
  4559. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4560. /* end build/confdefs.h. */
  4561. int
  4562. main ()
  4563. {
  4564. return main ();
  4565. ;
  4566. return 0;
  4567. }
  4568. _ACEOF
  4569. if ac_fn_cxx_try_link "$LINENO"; then :
  4570. ac_cv_lib_nsl_main=yes
  4571. else
  4572. ac_cv_lib_nsl_main=no
  4573. fi
  4574. rm -f core conftest.err conftest.$ac_objext \
  4575. conftest$ac_exeext conftest.$ac_ext
  4576. LIBS=$ac_check_lib_save_LIBS
  4577. fi
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4579. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4580. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4581. cat >>build/confdefs.h <<_ACEOF
  4582. #define HAVE_LIBNSL 1
  4583. _ACEOF
  4584. LIBS="-lnsl $LIBS"
  4585. fi
  4586. fi
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4588. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4589. if ${ac_cv_path_GREP+:} false; then :
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. if test -z "$GREP"; then
  4593. ac_path_GREP_found=false
  4594. # Loop through the user's path and test for each of PROGNAME-LIST
  4595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4596. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4597. do
  4598. IFS=$as_save_IFS
  4599. test -z "$as_dir" && as_dir=.
  4600. for ac_prog in grep ggrep; do
  4601. for ac_exec_ext in '' $ac_executable_extensions; do
  4602. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4603. as_fn_executable_p "$ac_path_GREP" || continue
  4604. # Check for GNU ac_path_GREP and select it if it is found.
  4605. # Check for GNU $ac_path_GREP
  4606. case `"$ac_path_GREP" --version 2>&1` in
  4607. *GNU*)
  4608. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4609. *)
  4610. ac_count=0
  4611. $as_echo_n 0123456789 >"conftest.in"
  4612. while :
  4613. do
  4614. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4615. mv "conftest.tmp" "conftest.in"
  4616. cp "conftest.in" "conftest.nl"
  4617. $as_echo 'GREP' >> "conftest.nl"
  4618. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4619. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4620. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4621. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4622. # Best one so far, save it but keep looking for a better one
  4623. ac_cv_path_GREP="$ac_path_GREP"
  4624. ac_path_GREP_max=$ac_count
  4625. fi
  4626. # 10*(2^10) chars as input seems more than enough
  4627. test $ac_count -gt 10 && break
  4628. done
  4629. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4630. esac
  4631. $ac_path_GREP_found && break 3
  4632. done
  4633. done
  4634. done
  4635. IFS=$as_save_IFS
  4636. if test -z "$ac_cv_path_GREP"; then
  4637. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4638. fi
  4639. else
  4640. ac_cv_path_GREP=$GREP
  4641. fi
  4642. fi
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4644. $as_echo "$ac_cv_path_GREP" >&6; }
  4645. GREP="$ac_cv_path_GREP"
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4647. $as_echo_n "checking for egrep... " >&6; }
  4648. if ${ac_cv_path_EGREP+:} false; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4652. then ac_cv_path_EGREP="$GREP -E"
  4653. else
  4654. if test -z "$EGREP"; then
  4655. ac_path_EGREP_found=false
  4656. # Loop through the user's path and test for each of PROGNAME-LIST
  4657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4658. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4659. do
  4660. IFS=$as_save_IFS
  4661. test -z "$as_dir" && as_dir=.
  4662. for ac_prog in egrep; do
  4663. for ac_exec_ext in '' $ac_executable_extensions; do
  4664. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4665. as_fn_executable_p "$ac_path_EGREP" || continue
  4666. # Check for GNU ac_path_EGREP and select it if it is found.
  4667. # Check for GNU $ac_path_EGREP
  4668. case `"$ac_path_EGREP" --version 2>&1` in
  4669. *GNU*)
  4670. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4671. *)
  4672. ac_count=0
  4673. $as_echo_n 0123456789 >"conftest.in"
  4674. while :
  4675. do
  4676. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4677. mv "conftest.tmp" "conftest.in"
  4678. cp "conftest.in" "conftest.nl"
  4679. $as_echo 'EGREP' >> "conftest.nl"
  4680. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4681. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4682. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4683. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4684. # Best one so far, save it but keep looking for a better one
  4685. ac_cv_path_EGREP="$ac_path_EGREP"
  4686. ac_path_EGREP_max=$ac_count
  4687. fi
  4688. # 10*(2^10) chars as input seems more than enough
  4689. test $ac_count -gt 10 && break
  4690. done
  4691. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4692. esac
  4693. $ac_path_EGREP_found && break 3
  4694. done
  4695. done
  4696. done
  4697. IFS=$as_save_IFS
  4698. if test -z "$ac_cv_path_EGREP"; then
  4699. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4700. fi
  4701. else
  4702. ac_cv_path_EGREP=$EGREP
  4703. fi
  4704. fi
  4705. fi
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4707. $as_echo "$ac_cv_path_EGREP" >&6; }
  4708. EGREP="$ac_cv_path_EGREP"
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4710. $as_echo_n "checking for ANSI C header files... " >&6; }
  4711. if ${ac_cv_header_stdc+:} false; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4715. /* end build/confdefs.h. */
  4716. #include <stdlib.h>
  4717. #include <stdarg.h>
  4718. #include <string.h>
  4719. #include <float.h>
  4720. int
  4721. main ()
  4722. {
  4723. ;
  4724. return 0;
  4725. }
  4726. _ACEOF
  4727. if ac_fn_cxx_try_compile "$LINENO"; then :
  4728. ac_cv_header_stdc=yes
  4729. else
  4730. ac_cv_header_stdc=no
  4731. fi
  4732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4733. if test $ac_cv_header_stdc = yes; then
  4734. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4735. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4736. /* end build/confdefs.h. */
  4737. #include <string.h>
  4738. _ACEOF
  4739. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4740. $EGREP "memchr" >/dev/null 2>&1; then :
  4741. else
  4742. ac_cv_header_stdc=no
  4743. fi
  4744. rm -f conftest*
  4745. fi
  4746. if test $ac_cv_header_stdc = yes; then
  4747. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4748. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4749. /* end build/confdefs.h. */
  4750. #include <stdlib.h>
  4751. _ACEOF
  4752. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4753. $EGREP "free" >/dev/null 2>&1; then :
  4754. else
  4755. ac_cv_header_stdc=no
  4756. fi
  4757. rm -f conftest*
  4758. fi
  4759. if test $ac_cv_header_stdc = yes; then
  4760. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4761. if test "$cross_compiling" = yes; then :
  4762. :
  4763. else
  4764. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4765. /* end build/confdefs.h. */
  4766. #include <ctype.h>
  4767. #include <stdlib.h>
  4768. #if ((' ' & 0x0FF) == 0x020)
  4769. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4770. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4771. #else
  4772. # define ISLOWER(c) \
  4773. (('a' <= (c) && (c) <= 'i') \
  4774. || ('j' <= (c) && (c) <= 'r') \
  4775. || ('s' <= (c) && (c) <= 'z'))
  4776. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4777. #endif
  4778. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4779. int
  4780. main ()
  4781. {
  4782. int i;
  4783. for (i = 0; i < 256; i++)
  4784. if (XOR (islower (i), ISLOWER (i))
  4785. || toupper (i) != TOUPPER (i))
  4786. return 2;
  4787. return 0;
  4788. }
  4789. _ACEOF
  4790. if ac_fn_cxx_try_run "$LINENO"; then :
  4791. else
  4792. ac_cv_header_stdc=no
  4793. fi
  4794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4796. fi
  4797. fi
  4798. fi
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4800. $as_echo "$ac_cv_header_stdc" >&6; }
  4801. if test $ac_cv_header_stdc = yes; then
  4802. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4803. fi
  4804. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4805. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4806. inttypes.h stdint.h unistd.h
  4807. do :
  4808. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4809. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4810. "
  4811. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4812. cat >>build/confdefs.h <<_ACEOF
  4813. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4814. _ACEOF
  4815. fi
  4816. done
  4817. LIBELF_DIR="lib/libelf/lib"
  4818. LIBELF_LIB="\$(top_builddir)/${LIBELF_DIR}/libelf.a"
  4819. LIBELF_BUNDLED="${LIBELF_LIB}"
  4820. LIBELF_INCLUDE="-I\$(top_srcdir)/${LIBELF_DIR}"
  4821. for ac_header in gelf.h libelf.h
  4822. do :
  4823. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4824. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4825. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4826. cat >>build/confdefs.h <<_ACEOF
  4827. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4828. _ACEOF
  4829. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  4830. #include \"gelf.h\"
  4831. #include \"libelf.h\"
  4832. "
  4833. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  4834. cat >>build/confdefs.h <<_ACEOF
  4835. #define HAVE_ELF_NOTE 1
  4836. _ACEOF
  4837. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  4839. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  4840. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  4841. $as_echo_n "(cached) " >&6
  4842. else
  4843. ac_check_lib_save_LIBS=$LIBS
  4844. LIBS="-lelf $LIBS"
  4845. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4846. /* end build/confdefs.h. */
  4847. /* Override any GCC internal prototype to avoid an error.
  4848. Use char because int might match the return type of a GCC
  4849. builtin and then its argument prototype would still apply. */
  4850. #ifdef __cplusplus
  4851. extern "C"
  4852. #endif
  4853. char gelf_getehdr ();
  4854. int
  4855. main ()
  4856. {
  4857. return gelf_getehdr ();
  4858. ;
  4859. return 0;
  4860. }
  4861. _ACEOF
  4862. if ac_fn_cxx_try_link "$LINENO"; then :
  4863. ac_cv_lib_elf_gelf_getehdr=yes
  4864. else
  4865. ac_cv_lib_elf_gelf_getehdr=no
  4866. fi
  4867. rm -f core conftest.err conftest.$ac_objext \
  4868. conftest$ac_exeext conftest.$ac_ext
  4869. LIBS=$ac_check_lib_save_LIBS
  4870. fi
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  4872. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  4873. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  4874. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  4875. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  4876. LIBELF_BUNDLED=
  4877. LIBELF_INCLUDE=
  4878. fi
  4879. fi
  4880. fi
  4881. done
  4882. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  4883. # Checks for header files
  4884. ac_header_dirent=no
  4885. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4886. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4888. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4889. if eval \${$as_ac_Header+:} false; then :
  4890. $as_echo_n "(cached) " >&6
  4891. else
  4892. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4893. /* end build/confdefs.h. */
  4894. #include <sys/types.h>
  4895. #include <$ac_hdr>
  4896. int
  4897. main ()
  4898. {
  4899. if ((DIR *) 0)
  4900. return 0;
  4901. ;
  4902. return 0;
  4903. }
  4904. _ACEOF
  4905. if ac_fn_cxx_try_compile "$LINENO"; then :
  4906. eval "$as_ac_Header=yes"
  4907. else
  4908. eval "$as_ac_Header=no"
  4909. fi
  4910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4911. fi
  4912. eval ac_res=\$$as_ac_Header
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4914. $as_echo "$ac_res" >&6; }
  4915. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4916. cat >>build/confdefs.h <<_ACEOF
  4917. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4918. _ACEOF
  4919. ac_header_dirent=$ac_hdr; break
  4920. fi
  4921. done
  4922. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4923. if test $ac_header_dirent = dirent.h; then
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4925. $as_echo_n "checking for library containing opendir... " >&6; }
  4926. if ${ac_cv_search_opendir+:} false; then :
  4927. $as_echo_n "(cached) " >&6
  4928. else
  4929. ac_func_search_save_LIBS=$LIBS
  4930. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4931. /* end build/confdefs.h. */
  4932. /* Override any GCC internal prototype to avoid an error.
  4933. Use char because int might match the return type of a GCC
  4934. builtin and then its argument prototype would still apply. */
  4935. #ifdef __cplusplus
  4936. extern "C"
  4937. #endif
  4938. char opendir ();
  4939. int
  4940. main ()
  4941. {
  4942. return opendir ();
  4943. ;
  4944. return 0;
  4945. }
  4946. _ACEOF
  4947. for ac_lib in '' dir; do
  4948. if test -z "$ac_lib"; then
  4949. ac_res="none required"
  4950. else
  4951. ac_res=-l$ac_lib
  4952. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4953. fi
  4954. if ac_fn_cxx_try_link "$LINENO"; then :
  4955. ac_cv_search_opendir=$ac_res
  4956. fi
  4957. rm -f core conftest.err conftest.$ac_objext \
  4958. conftest$ac_exeext
  4959. if ${ac_cv_search_opendir+:} false; then :
  4960. break
  4961. fi
  4962. done
  4963. if ${ac_cv_search_opendir+:} false; then :
  4964. else
  4965. ac_cv_search_opendir=no
  4966. fi
  4967. rm conftest.$ac_ext
  4968. LIBS=$ac_func_search_save_LIBS
  4969. fi
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4971. $as_echo "$ac_cv_search_opendir" >&6; }
  4972. ac_res=$ac_cv_search_opendir
  4973. if test "$ac_res" != no; then :
  4974. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4975. fi
  4976. else
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4978. $as_echo_n "checking for library containing opendir... " >&6; }
  4979. if ${ac_cv_search_opendir+:} false; then :
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. ac_func_search_save_LIBS=$LIBS
  4983. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4984. /* end build/confdefs.h. */
  4985. /* Override any GCC internal prototype to avoid an error.
  4986. Use char because int might match the return type of a GCC
  4987. builtin and then its argument prototype would still apply. */
  4988. #ifdef __cplusplus
  4989. extern "C"
  4990. #endif
  4991. char opendir ();
  4992. int
  4993. main ()
  4994. {
  4995. return opendir ();
  4996. ;
  4997. return 0;
  4998. }
  4999. _ACEOF
  5000. for ac_lib in '' x; do
  5001. if test -z "$ac_lib"; then
  5002. ac_res="none required"
  5003. else
  5004. ac_res=-l$ac_lib
  5005. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5006. fi
  5007. if ac_fn_cxx_try_link "$LINENO"; then :
  5008. ac_cv_search_opendir=$ac_res
  5009. fi
  5010. rm -f core conftest.err conftest.$ac_objext \
  5011. conftest$ac_exeext
  5012. if ${ac_cv_search_opendir+:} false; then :
  5013. break
  5014. fi
  5015. done
  5016. if ${ac_cv_search_opendir+:} false; then :
  5017. else
  5018. ac_cv_search_opendir=no
  5019. fi
  5020. rm conftest.$ac_ext
  5021. LIBS=$ac_func_search_save_LIBS
  5022. fi
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5024. $as_echo "$ac_cv_search_opendir" >&6; }
  5025. ac_res=$ac_cv_search_opendir
  5026. if test "$ac_res" != no; then :
  5027. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5028. fi
  5029. fi
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5031. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5032. if ${ac_cv_header_sys_wait_h+:} false; then :
  5033. $as_echo_n "(cached) " >&6
  5034. else
  5035. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5036. /* end build/confdefs.h. */
  5037. #include <sys/types.h>
  5038. #include <sys/wait.h>
  5039. #ifndef WEXITSTATUS
  5040. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5041. #endif
  5042. #ifndef WIFEXITED
  5043. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5044. #endif
  5045. int
  5046. main ()
  5047. {
  5048. int s;
  5049. wait (&s);
  5050. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5051. ;
  5052. return 0;
  5053. }
  5054. _ACEOF
  5055. if ac_fn_cxx_try_compile "$LINENO"; then :
  5056. ac_cv_header_sys_wait_h=yes
  5057. else
  5058. ac_cv_header_sys_wait_h=no
  5059. fi
  5060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5061. fi
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5063. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  5064. if test $ac_cv_header_sys_wait_h = yes; then
  5065. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  5066. fi
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5068. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5069. if ${ac_cv_header_time+:} false; then :
  5070. $as_echo_n "(cached) " >&6
  5071. else
  5072. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5073. /* end build/confdefs.h. */
  5074. #include <sys/types.h>
  5075. #include <sys/time.h>
  5076. #include <time.h>
  5077. int
  5078. main ()
  5079. {
  5080. if ((struct tm *) 0)
  5081. return 0;
  5082. ;
  5083. return 0;
  5084. }
  5085. _ACEOF
  5086. if ac_fn_cxx_try_compile "$LINENO"; then :
  5087. ac_cv_header_time=yes
  5088. else
  5089. ac_cv_header_time=no
  5090. fi
  5091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5094. $as_echo "$ac_cv_header_time" >&6; }
  5095. if test $ac_cv_header_time = yes; then
  5096. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  5097. fi
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5099. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  5100. if ${ac_cv_header_stat_broken+:} false; then :
  5101. $as_echo_n "(cached) " >&6
  5102. else
  5103. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5104. /* end build/confdefs.h. */
  5105. #include <sys/types.h>
  5106. #include <sys/stat.h>
  5107. #if defined S_ISBLK && defined S_IFDIR
  5108. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5109. #endif
  5110. #if defined S_ISBLK && defined S_IFCHR
  5111. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5112. #endif
  5113. #if defined S_ISLNK && defined S_IFREG
  5114. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5115. #endif
  5116. #if defined S_ISSOCK && defined S_IFREG
  5117. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5118. #endif
  5119. _ACEOF
  5120. if ac_fn_cxx_try_compile "$LINENO"; then :
  5121. ac_cv_header_stat_broken=no
  5122. else
  5123. ac_cv_header_stat_broken=yes
  5124. fi
  5125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5126. fi
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5128. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5129. if test $ac_cv_header_stat_broken = yes; then
  5130. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  5131. fi
  5132. #checkpoint
  5133. cat >confcache <<\_ACEOF
  5134. # This file is a shell script that caches the results of configure
  5135. # tests run on this system so they can be shared between configure
  5136. # scripts and configure runs, see configure's option --config-cache.
  5137. # It is not useful on other systems. If it contains results you don't
  5138. # want to keep, you may remove or edit it.
  5139. #
  5140. # build/config.status only pays attention to the cache file if you give it
  5141. # the --recheck option to rerun configure.
  5142. #
  5143. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5144. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5145. # following values.
  5146. _ACEOF
  5147. # The following way of writing the cache mishandles newlines in values,
  5148. # but we know of no workaround that is simple, portable, and efficient.
  5149. # So, we kill variables containing newlines.
  5150. # Ultrix sh set writes to stderr and can't be redirected directly,
  5151. # and sets the high bit in the cache file unless we assign to the vars.
  5152. (
  5153. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5154. eval ac_val=\$$ac_var
  5155. case $ac_val in #(
  5156. *${as_nl}*)
  5157. case $ac_var in #(
  5158. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5159. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5160. esac
  5161. case $ac_var in #(
  5162. _ | IFS | as_nl) ;; #(
  5163. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5164. *) { eval $ac_var=; unset $ac_var;} ;;
  5165. esac ;;
  5166. esac
  5167. done
  5168. (set) 2>&1 |
  5169. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5170. *${as_nl}ac_space=\ *)
  5171. # `set' does not quote correctly, so add quotes: double-quote
  5172. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5173. sed -n \
  5174. "s/'/'\\\\''/g;
  5175. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5176. ;; #(
  5177. *)
  5178. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5179. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5180. ;;
  5181. esac |
  5182. sort
  5183. ) |
  5184. sed '
  5185. /^ac_cv_env_/b end
  5186. t clear
  5187. :clear
  5188. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5189. t end
  5190. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5191. :end' >>confcache
  5192. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5193. if test -w "$cache_file"; then
  5194. if test "x$cache_file" != "x/dev/null"; then
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5196. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5197. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5198. cat confcache >"$cache_file"
  5199. else
  5200. case $cache_file in #(
  5201. */* | ?:*)
  5202. mv -f confcache "$cache_file"$$ &&
  5203. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5204. *)
  5205. mv -f confcache "$cache_file" ;;
  5206. esac
  5207. fi
  5208. fi
  5209. else
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5211. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5212. fi
  5213. fi
  5214. rm -f confcache
  5215. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5216. do :
  5217. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5218. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5219. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5220. cat >>build/confdefs.h <<_ACEOF
  5221. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5222. _ACEOF
  5223. fi
  5224. done
  5225. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5226. do :
  5227. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5228. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5229. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5230. cat >>build/confdefs.h <<_ACEOF
  5231. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5232. _ACEOF
  5233. fi
  5234. done
  5235. for ac_header in sys/ptrace.h paths.h sys/prctl.h sys/procctl.h
  5236. do :
  5237. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5238. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5239. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5240. cat >>build/confdefs.h <<_ACEOF
  5241. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5242. _ACEOF
  5243. fi
  5244. done
  5245. #checkpoint
  5246. cat >confcache <<\_ACEOF
  5247. # This file is a shell script that caches the results of configure
  5248. # tests run on this system so they can be shared between configure
  5249. # scripts and configure runs, see configure's option --config-cache.
  5250. # It is not useful on other systems. If it contains results you don't
  5251. # want to keep, you may remove or edit it.
  5252. #
  5253. # build/config.status only pays attention to the cache file if you give it
  5254. # the --recheck option to rerun configure.
  5255. #
  5256. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5257. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5258. # following values.
  5259. _ACEOF
  5260. # The following way of writing the cache mishandles newlines in values,
  5261. # but we know of no workaround that is simple, portable, and efficient.
  5262. # So, we kill variables containing newlines.
  5263. # Ultrix sh set writes to stderr and can't be redirected directly,
  5264. # and sets the high bit in the cache file unless we assign to the vars.
  5265. (
  5266. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5267. eval ac_val=\$$ac_var
  5268. case $ac_val in #(
  5269. *${as_nl}*)
  5270. case $ac_var in #(
  5271. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5272. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5273. esac
  5274. case $ac_var in #(
  5275. _ | IFS | as_nl) ;; #(
  5276. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5277. *) { eval $ac_var=; unset $ac_var;} ;;
  5278. esac ;;
  5279. esac
  5280. done
  5281. (set) 2>&1 |
  5282. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5283. *${as_nl}ac_space=\ *)
  5284. # `set' does not quote correctly, so add quotes: double-quote
  5285. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5286. sed -n \
  5287. "s/'/'\\\\''/g;
  5288. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5289. ;; #(
  5290. *)
  5291. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5292. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5293. ;;
  5294. esac |
  5295. sort
  5296. ) |
  5297. sed '
  5298. /^ac_cv_env_/b end
  5299. t clear
  5300. :clear
  5301. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5302. t end
  5303. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5304. :end' >>confcache
  5305. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5306. if test -w "$cache_file"; then
  5307. if test "x$cache_file" != "x/dev/null"; then
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5309. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5310. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5311. cat confcache >"$cache_file"
  5312. else
  5313. case $cache_file in #(
  5314. */* | ?:*)
  5315. mv -f confcache "$cache_file"$$ &&
  5316. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5317. *)
  5318. mv -f confcache "$cache_file" ;;
  5319. esac
  5320. fi
  5321. fi
  5322. else
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5324. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5325. fi
  5326. fi
  5327. rm -f confcache
  5328. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5329. #AC_CHECK_HEADERS(zlib.h)
  5330. #EGG_CHECK_ZLIB
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5332. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5333. # Check whether --with-openssl was given.
  5334. if test "${with_openssl+set}" = set; then :
  5335. withval=$with_openssl; with_openssl_path=$withval
  5336. else
  5337. with_openssl_path=auto
  5338. fi
  5339. cf_openssl_basedir=""
  5340. if test "$with_openssl_path" != "auto"; then
  5341. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5342. else
  5343. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5344. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5345. cf_openssl_basedir="${dirs}"
  5346. break
  5347. fi
  5348. done
  5349. unset dirs
  5350. fi
  5351. if test ! -z "$cf_openssl_basedir"; then
  5352. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5353. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5354. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5355. else
  5356. cf_openssl_basedir=""
  5357. fi
  5358. else
  5359. if test -f "/usr/include/openssl/opensslv.h" ; then
  5360. cf_openssl_basedir="/usr"
  5361. fi
  5362. fi
  5363. if test ! -z "$cf_openssl_basedir"; then
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5365. $as_echo "$cf_openssl_basedir" >&6; }
  5366. else
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5368. $as_echo "not found" >&6; }
  5369. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5370. fi
  5371. unset cf_openssl_basedir
  5372. save_CXX="$CXX"
  5373. CXX="$CXX $SSL_INCLUDES"
  5374. save_LIBS="$LIBS"
  5375. LIBS="$LIBS $SSL_LIBS"
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5377. $as_echo_n "checking for OpenSSL version... " >&6; }
  5378. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5379. /* end build/confdefs.h. */
  5380. #include <openssl/opensslv.h>
  5381. int
  5382. main ()
  5383. {
  5384. #if !defined(OPENSSL_VERSION_NUMBER)
  5385. #error "Missing openssl version"
  5386. #endif
  5387. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5388. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5389. #endif
  5390. ;
  5391. return 0;
  5392. }
  5393. _ACEOF
  5394. if ac_fn_cxx_try_compile "$LINENO"; then :
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5396. $as_echo "OK" >&6; }
  5397. else
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5399. $as_echo "too old." >&6; }
  5400. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5401. fi
  5402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5403. CXX="$CXX $SSL_LIBS"
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5405. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5406. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5407. $as_echo_n "(cached) " >&6
  5408. else
  5409. ac_check_lib_save_LIBS=$LIBS
  5410. LIBS="-lcrypto $LIBS"
  5411. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5412. /* end build/confdefs.h. */
  5413. /* Override any GCC internal prototype to avoid an error.
  5414. Use char because int might match the return type of a GCC
  5415. builtin and then its argument prototype would still apply. */
  5416. #ifdef __cplusplus
  5417. extern "C"
  5418. #endif
  5419. char AES_encrypt ();
  5420. int
  5421. main ()
  5422. {
  5423. return AES_encrypt ();
  5424. ;
  5425. return 0;
  5426. }
  5427. _ACEOF
  5428. if ac_fn_cxx_try_link "$LINENO"; then :
  5429. ac_cv_lib_crypto_AES_encrypt=yes
  5430. else
  5431. ac_cv_lib_crypto_AES_encrypt=no
  5432. fi
  5433. rm -f core conftest.err conftest.$ac_objext \
  5434. conftest$ac_exeext conftest.$ac_ext
  5435. LIBS=$ac_check_lib_save_LIBS
  5436. fi
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5438. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5439. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5440. if test "$USE_STATIC" = "yes"; then
  5441. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5442. else
  5443. SSL_LIBS="$SSL_LIBS -lcrypto"
  5444. fi
  5445. else
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5447. $as_echo "not found." >&6; }
  5448. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5449. fi
  5450. CXX="$save_CXX"
  5451. LIBS="$save_LIBS"
  5452. cat >>build/confdefs.h <<_ACEOF
  5453. #define EGG_SSL_EXT 1
  5454. _ACEOF
  5455. # TCL checks
  5456. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5457. # found for download.
  5458. tclrecommendver="8.5.X"
  5459. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5460. # Tcl library filename prefixes, suffixes, and search paths.
  5461. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5462. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5463. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5464. tcl7.0 tcl70"
  5465. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5466. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5467. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5468. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5469. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5470. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5471. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5472. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5473. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5474. # Tcl header filenames and search paths.
  5475. tclheadernames="tcl.h"
  5476. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5477. /usr/local/include /usr/include \
  5478. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5479. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5480. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5481. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5482. /usr/local/pkgs/tcl/include /sys/include \
  5483. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5484. # Misc Tcl checks.
  5485. # Check whether --with-tcllib was given.
  5486. if test "${with_tcllib+set}" = set; then :
  5487. withval=$with_tcllib; tcllibname="$withval"
  5488. fi
  5489. # Check whether --with-tclinc was given.
  5490. if test "${with_tclinc+set}" = set; then :
  5491. withval=$with_tclinc; tclincname="$withval"
  5492. fi
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5494. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5495. # Check whether --enable-script-tcl was given.
  5496. if test "${enable_script_tcl+set}" = set; then :
  5497. enableval=$enable_script_tcl;
  5498. enable_script_tcl=$enableval
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5500. $as_echo "$enableval" >&6; }
  5501. else
  5502. # default if not given is ENABLED
  5503. if test "x$enableval" = "x"; then
  5504. enableval="yes"
  5505. fi
  5506. enable_script_tcl=$enableval
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5508. $as_echo "$enableval" >&6; }
  5509. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5510. fi
  5511. WARN=0
  5512. # Make sure either both or neither $tcllibname and $tclincname are set
  5513. if test "x$tcllibname" != x; then
  5514. if test "x$tclincname" = x; then
  5515. WARN=1
  5516. tcllibname=""
  5517. TCLLIB=""
  5518. TCLINC=""
  5519. fi
  5520. else
  5521. if test "x$tclincname" != x; then
  5522. WARN=1
  5523. tclincname=""
  5524. TCLLIB=""
  5525. TCLINC=""
  5526. fi
  5527. fi
  5528. if test "$WARN" = 1; then
  5529. cat << 'EOF' >&2
  5530. configure: WARNING:
  5531. You must specify both --with-tcllib and --with-tclinc for either to work.
  5532. configure will now attempt to autodetect both the Tcl library and header.
  5533. EOF
  5534. fi
  5535. WARN=0
  5536. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5537. if test "x$TCLLIB" != x; then
  5538. if test "x$TCLINC" = x; then
  5539. WARN=1
  5540. WVAR1=TCLLIB
  5541. WVAR2=TCLINC
  5542. TCLLIB=""
  5543. fi
  5544. else
  5545. if test "x$TCLINC" != x; then
  5546. WARN=1
  5547. WVAR1=TCLINC
  5548. WVAR2=TCLLIB
  5549. TCLINC=""
  5550. fi
  5551. fi
  5552. if test "$WARN" = 1; then
  5553. cat << EOF >&2
  5554. configure: WARNING:
  5555. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5556. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5557. configure will now attempt to autodetect both the Tcl library and header.
  5558. EOF
  5559. fi
  5560. # Look for Tcl library: if $tcllibname is set, check there first
  5561. if test "x$tcllibname" != x; then
  5562. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5563. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5564. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5565. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5566. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5567. else
  5568. cat << EOF >&2
  5569. configure: WARNING:
  5570. The file '$tcllibname' given to option --with-tcllib is not valid.
  5571. configure will now attempt to autodetect both the Tcl library and header.
  5572. EOF
  5573. tcllibname=""
  5574. tclincname=""
  5575. TCLLIB=""
  5576. TCLLIBFN=""
  5577. TCLINC=""
  5578. TCLINCFN=""
  5579. fi
  5580. fi
  5581. # Look for Tcl header: if $tclincname is set, check there first
  5582. if test "x$tclincname" != x; then
  5583. if test -f "$tclincname" && test -r "$tclincname"; then
  5584. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5585. TCLINCFN=`$BASENAME $tclincname`
  5586. else
  5587. cat << EOF >&2
  5588. configure: WARNING:
  5589. The file '$tclincname' given to option --with-tclinc is not valid.
  5590. configure will now attempt to autodetect both the Tcl library and header.
  5591. EOF
  5592. tcllibname=""
  5593. tclincname=""
  5594. TCLLIB=""
  5595. TCLLIBFN=""
  5596. TCLINC=""
  5597. TCLINCFN=""
  5598. fi
  5599. fi
  5600. # Look for Tcl library: if $TCLLIB is set, check there first
  5601. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5602. if test -d "$TCLLIB"; then
  5603. for tcllibfns in $tcllibnames; do
  5604. for tcllibext in $tcllibextensions; do
  5605. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5606. TCLLIBFN="${tcllibfns}${tcllibext}"
  5607. TCLLIBEXT="$tcllibext"
  5608. TCLLIBFNS="$tcllibfns"
  5609. break 2
  5610. fi
  5611. done
  5612. done
  5613. fi
  5614. if test "x$TCLLIBFN" = x; then
  5615. cat << 'EOF' >&2
  5616. configure: WARNING:
  5617. Environment variable TCLLIB was set, but incorrectly.
  5618. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5619. configure will now attempt to autodetect both the Tcl library and header.
  5620. EOF
  5621. TCLLIB=""
  5622. TCLLIBFN=""
  5623. TCLINC=""
  5624. TCLINCFN=""
  5625. fi
  5626. fi
  5627. # Look for Tcl header: if $TCLINC is set, check there first
  5628. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5629. if test -d "$TCLINC"; then
  5630. for tclheaderfn in $tclheadernames; do
  5631. if test -r "${TCLINC}/${tclheaderfn}"; then
  5632. TCLINCFN="$tclheaderfn"
  5633. break
  5634. fi
  5635. done
  5636. fi
  5637. if test "x$TCLINCFN" = x; then
  5638. cat << 'EOF' >&2
  5639. configure: WARNING:
  5640. Environment variable TCLINC was set, but incorrectly.
  5641. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5642. configure will now attempt to autodetect both the Tcl library and header.
  5643. EOF
  5644. TCLLIB=""
  5645. TCLLIBFN=""
  5646. TCLINC=""
  5647. TCLINCFN=""
  5648. fi
  5649. fi
  5650. if test "$enable_script_tcl" = "yes"; then
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5652. $as_echo_n "checking for Tcl library... " >&6; }
  5653. # Attempt autodetect for $TCLLIBFN if it's not set
  5654. if test "x$TCLLIBFN" != x; then
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5656. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5657. else
  5658. for tcllibfns in $tcllibnames; do
  5659. for tcllibext in $tcllibextensions; do
  5660. for tcllibpath in $tcllibpaths; do
  5661. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5663. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5664. TCLLIB="$tcllibpath"
  5665. TCLLIBFN="${tcllibfns}${tcllibext}"
  5666. TCLLIBEXT="$tcllibext"
  5667. TCLLIBFNS="$tcllibfns"
  5668. break 3
  5669. fi
  5670. done
  5671. done
  5672. done
  5673. fi
  5674. # Show if $TCLLIBFN wasn't found
  5675. if test "x$TCLLIBFN" = x; then
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5677. $as_echo "not found" >&6; }
  5678. fi
  5679. fi
  5680. if test "$enable_script_tcl" = "yes"; then
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5682. $as_echo_n "checking for Tcl header... " >&6; }
  5683. # Attempt autodetect for $TCLINCFN if it's not set
  5684. if test "x$TCLINCFN" != x; then
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5686. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5687. else
  5688. for tclheaderpath in $tclheaderpaths; do
  5689. for tclheaderfn in $tclheadernames; do
  5690. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5692. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5693. TCLINC="$tclheaderpath"
  5694. TCLINCFN="$tclheaderfn"
  5695. break 2
  5696. fi
  5697. done
  5698. done
  5699. # FreeBSD hack ...
  5700. if test "x$TCLINCFN" = x; then
  5701. for tcllibfns in $tcllibnames; do
  5702. for tclheaderpath in $tclheaderpaths; do
  5703. for tclheaderfn in $tclheadernames; do
  5704. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5706. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5707. TCLINC="${tclheaderpath}/${tcllibfns}"
  5708. TCLINCFN="$tclheaderfn"
  5709. break 3
  5710. fi
  5711. done
  5712. done
  5713. done
  5714. fi
  5715. fi
  5716. TCL_INCLUDES=""
  5717. if ! test "x$TCLINC" = x; then
  5718. TCL_INCLUDES="-I$TCLINC"
  5719. fi
  5720. if test "x$TCLINCFN" = x; then
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5722. $as_echo "not found" >&6; }
  5723. fi
  5724. fi
  5725. if test "$enable_script_tcl" = "yes"; then
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5727. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5728. egg_tcl_changed="yes"
  5729. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5730. if test "$egg_tcl_id" != ":::"; then
  5731. egg_tcl_cached="yes"
  5732. if ${egg_cv_var_tcl_id+:} false; then :
  5733. $as_echo_n "(cached) " >&6
  5734. else
  5735. egg_cv_var_tcl_id="$egg_tcl_id"
  5736. egg_tcl_cached="no"
  5737. fi
  5738. if test "$egg_tcl_cached" = yes; then
  5739. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5740. egg_tcl_changed="no"
  5741. else
  5742. egg_cv_var_tcl_id="$egg_tcl_id"
  5743. fi
  5744. fi
  5745. fi
  5746. if test "$egg_tcl_changed" = yes; then
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5748. $as_echo "yes" >&6; }
  5749. else
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5751. $as_echo "no" >&6; }
  5752. fi
  5753. fi
  5754. if test "$enable_script_tcl" = "yes"; then
  5755. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5756. TCL_FOUND=0
  5757. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5758. TCL_FOUND=1
  5759. # Check Tcl's version
  5760. if test "$egg_tcl_changed" = yes; then
  5761. unset egg_cv_var_tcl_version
  5762. fi
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5764. $as_echo_n "checking for Tcl version... " >&6; }
  5765. if ${egg_cv_var_tcl_version+:} false; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5769. fi
  5770. if test "x$egg_cv_var_tcl_version" != x; then
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5772. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5773. else
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5775. $as_echo "not found" >&6; }
  5776. TCL_FOUND=0
  5777. fi
  5778. # Check Tcl's patch level (if available)
  5779. if test "$egg_tcl_changed" = yes; then
  5780. unset egg_cv_var_tcl_patch_level
  5781. fi
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5783. $as_echo_n "checking for Tcl patch level... " >&6; }
  5784. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5788. fi
  5789. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5791. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5792. else
  5793. egg_cv_var_tcl_patch_level="unknown"
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5795. $as_echo "unknown" >&6; }
  5796. fi
  5797. fi
  5798. # Check if we found Tcl's version
  5799. if test "$TCL_FOUND" = 0; then
  5800. cat << 'EOF' >&2
  5801. configure: error:
  5802. Tcl cannot be found on this system.
  5803. Tcl is not required. Wraith will be compiled without TCL support. If you
  5804. already have Tcl installed on this system, please specify the path by
  5805. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5806. --with-tclinc='/path/to/tcl.h' options.
  5807. EOF
  5808. enable_script_tcl="no"
  5809. else
  5810. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5811. fi
  5812. fi
  5813. if test "$enable_script_tcl" = "yes"; then
  5814. # Is this version of Tcl too old for us to use ?
  5815. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5816. if test "$TCL_VER_PRE70" = yes; then
  5817. cat << EOF >&2
  5818. configure: error:
  5819. Your Tcl version is much too old for Wraith to use. You should
  5820. download and compile a more recent version. The most reliable
  5821. current version is $tclrecommendver and can be downloaded from
  5822. ${tclrecommendsite}.
  5823. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5824. for more information.
  5825. EOF
  5826. exit 1
  5827. fi
  5828. fi
  5829. # Set variables for Tcl library tests
  5830. TCL_TEST_LIB="$TCLLIBFNS"
  5831. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5832. if test "x$ac_cv_lib_pthread" != x; then
  5833. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5834. fi
  5835. if test "$enable_script_tcl" = "yes"; then
  5836. if test "$egg_tcl_changed" = yes; then
  5837. unset egg_cv_var_tcl_free
  5838. fi
  5839. # Check for Tcl_Free()
  5840. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5842. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5843. if eval \${$as_ac_Lib+:} false; then :
  5844. $as_echo_n "(cached) " >&6
  5845. else
  5846. ac_check_lib_save_LIBS=$LIBS
  5847. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5848. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5849. /* end build/confdefs.h. */
  5850. /* Override any GCC internal prototype to avoid an error.
  5851. Use char because int might match the return type of a GCC
  5852. builtin and then its argument prototype would still apply. */
  5853. #ifdef __cplusplus
  5854. extern "C"
  5855. #endif
  5856. char Tcl_Free ();
  5857. int
  5858. main ()
  5859. {
  5860. return Tcl_Free ();
  5861. ;
  5862. return 0;
  5863. }
  5864. _ACEOF
  5865. if ac_fn_cxx_try_link "$LINENO"; then :
  5866. eval "$as_ac_Lib=yes"
  5867. else
  5868. eval "$as_ac_Lib=no"
  5869. fi
  5870. rm -f core conftest.err conftest.$ac_objext \
  5871. conftest$ac_exeext conftest.$ac_ext
  5872. LIBS=$ac_check_lib_save_LIBS
  5873. fi
  5874. eval ac_res=\$$as_ac_Lib
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5876. $as_echo "$ac_res" >&6; }
  5877. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5878. egg_cv_var_tcl_free="yes"
  5879. else
  5880. egg_cv_var_tcl_free="no"
  5881. fi
  5882. if test "$egg_cv_var_tcl_free" = yes; then
  5883. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5884. fi
  5885. fi
  5886. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5887. #EGG_TCL_CHECK_GETTHREADDATA
  5888. if test "$enable_script_tcl" = "yes"; then
  5889. if test "$egg_tcl_changed" = yes; then
  5890. unset egg_cv_var_tcl_setnotifier
  5891. fi
  5892. # Check for Tcl_SetNotifier()
  5893. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5895. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5896. if eval \${$as_ac_Lib+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. ac_check_lib_save_LIBS=$LIBS
  5900. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5901. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5902. /* end build/confdefs.h. */
  5903. /* Override any GCC internal prototype to avoid an error.
  5904. Use char because int might match the return type of a GCC
  5905. builtin and then its argument prototype would still apply. */
  5906. #ifdef __cplusplus
  5907. extern "C"
  5908. #endif
  5909. char Tcl_SetNotifier ();
  5910. int
  5911. main ()
  5912. {
  5913. return Tcl_SetNotifier ();
  5914. ;
  5915. return 0;
  5916. }
  5917. _ACEOF
  5918. if ac_fn_cxx_try_link "$LINENO"; then :
  5919. eval "$as_ac_Lib=yes"
  5920. else
  5921. eval "$as_ac_Lib=no"
  5922. fi
  5923. rm -f core conftest.err conftest.$ac_objext \
  5924. conftest$ac_exeext conftest.$ac_ext
  5925. LIBS=$ac_check_lib_save_LIBS
  5926. fi
  5927. eval ac_res=\$$as_ac_Lib
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5929. $as_echo "$ac_res" >&6; }
  5930. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5931. egg_cv_var_tcl_setnotifier="yes"
  5932. else
  5933. egg_cv_var_tcl_setnotifier="no"
  5934. fi
  5935. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5936. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5937. fi
  5938. fi
  5939. if test "$enable_script_tcl" = "yes"; then
  5940. if test "$EGG_CYGWIN" = yes; then
  5941. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5942. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5943. else
  5944. if test "$TCLLIBEXT" != ".a"; then
  5945. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5946. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5947. else
  5948. # Set default make as static for unshared Tcl library
  5949. if test "$DEFAULT_MAKE" != static; then
  5950. cat << 'EOF' >&2
  5951. configure: WARNING:
  5952. Your Tcl library is not a shared lib.
  5953. configure will now set default make type to static.
  5954. EOF
  5955. DEFAULT_MAKE="static"
  5956. fi
  5957. # Are we using a pre 7.4 Tcl version ?
  5958. 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"}'`
  5959. if test "$TCL_VER_PRE74" = no; then
  5960. # Was the --with-tcllib option given ?
  5961. if test "x$tcllibname" != x; then
  5962. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5963. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5964. else
  5965. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5966. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5967. fi
  5968. else
  5969. cat << EOF >&2
  5970. configure: WARNING:
  5971. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5972. There are known problems, but we will attempt to work around them.
  5973. EOF
  5974. TCL_REQS="libtcle.a"
  5975. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5976. fi
  5977. fi
  5978. fi
  5979. fi
  5980. cat >confcache <<\_ACEOF
  5981. # This file is a shell script that caches the results of configure
  5982. # tests run on this system so they can be shared between configure
  5983. # scripts and configure runs, see configure's option --config-cache.
  5984. # It is not useful on other systems. If it contains results you don't
  5985. # want to keep, you may remove or edit it.
  5986. #
  5987. # build/config.status only pays attention to the cache file if you give it
  5988. # the --recheck option to rerun configure.
  5989. #
  5990. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5991. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5992. # following values.
  5993. _ACEOF
  5994. # The following way of writing the cache mishandles newlines in values,
  5995. # but we know of no workaround that is simple, portable, and efficient.
  5996. # So, we kill variables containing newlines.
  5997. # Ultrix sh set writes to stderr and can't be redirected directly,
  5998. # and sets the high bit in the cache file unless we assign to the vars.
  5999. (
  6000. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6001. eval ac_val=\$$ac_var
  6002. case $ac_val in #(
  6003. *${as_nl}*)
  6004. case $ac_var in #(
  6005. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6006. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6007. esac
  6008. case $ac_var in #(
  6009. _ | IFS | as_nl) ;; #(
  6010. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6011. *) { eval $ac_var=; unset $ac_var;} ;;
  6012. esac ;;
  6013. esac
  6014. done
  6015. (set) 2>&1 |
  6016. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6017. *${as_nl}ac_space=\ *)
  6018. # `set' does not quote correctly, so add quotes: double-quote
  6019. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6020. sed -n \
  6021. "s/'/'\\\\''/g;
  6022. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6023. ;; #(
  6024. *)
  6025. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6026. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6027. ;;
  6028. esac |
  6029. sort
  6030. ) |
  6031. sed '
  6032. /^ac_cv_env_/b end
  6033. t clear
  6034. :clear
  6035. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6036. t end
  6037. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6038. :end' >>confcache
  6039. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6040. if test -w "$cache_file"; then
  6041. if test "x$cache_file" != "x/dev/null"; then
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6043. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6044. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6045. cat confcache >"$cache_file"
  6046. else
  6047. case $cache_file in #(
  6048. */* | ?:*)
  6049. mv -f confcache "$cache_file"$$ &&
  6050. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6051. *)
  6052. mv -f confcache "$cache_file" ;;
  6053. esac
  6054. fi
  6055. fi
  6056. else
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6058. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6059. fi
  6060. fi
  6061. rm -f confcache
  6062. #AC_SUBST(ZLIB)dnl
  6063. # Checks for typedefs, structures, and compiler characteristics
  6064. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6065. if test "x$ac_cv_type_pid_t" = xyes; then :
  6066. else
  6067. cat >>build/confdefs.h <<_ACEOF
  6068. #define pid_t int
  6069. _ACEOF
  6070. fi
  6071. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6072. if test "x$ac_cv_type_size_t" = xyes; then :
  6073. else
  6074. cat >>build/confdefs.h <<_ACEOF
  6075. #define size_t unsigned int
  6076. _ACEOF
  6077. fi
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6079. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6080. if ${ac_cv_type_uid_t+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end build/confdefs.h. */
  6085. #include <sys/types.h>
  6086. _ACEOF
  6087. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6088. $EGREP "uid_t" >/dev/null 2>&1; then :
  6089. ac_cv_type_uid_t=yes
  6090. else
  6091. ac_cv_type_uid_t=no
  6092. fi
  6093. rm -f conftest*
  6094. fi
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6096. $as_echo "$ac_cv_type_uid_t" >&6; }
  6097. if test $ac_cv_type_uid_t = no; then
  6098. $as_echo "#define uid_t int" >>build/confdefs.h
  6099. $as_echo "#define gid_t int" >>build/confdefs.h
  6100. fi
  6101. #AC_C_CONST
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  6103. $as_echo_n "checking for working volatile... " >&6; }
  6104. if ${ac_cv_c_volatile+:} false; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6108. /* end build/confdefs.h. */
  6109. int
  6110. main ()
  6111. {
  6112. volatile int x;
  6113. int * volatile y = (int *) 0;
  6114. return !x && !y;
  6115. ;
  6116. return 0;
  6117. }
  6118. _ACEOF
  6119. if ac_fn_cxx_try_compile "$LINENO"; then :
  6120. ac_cv_c_volatile=yes
  6121. else
  6122. ac_cv_c_volatile=no
  6123. fi
  6124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6125. fi
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  6127. $as_echo "$ac_cv_c_volatile" >&6; }
  6128. if test $ac_cv_c_volatile = no; then
  6129. $as_echo "#define volatile /**/" >>build/confdefs.h
  6130. fi
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6132. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  6133. if ${ac_cv_c_bigendian+:} false; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. ac_cv_c_bigendian=unknown
  6137. # See if we're dealing with a universal compiler.
  6138. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6139. /* end build/confdefs.h. */
  6140. #ifndef __APPLE_CC__
  6141. not a universal capable compiler
  6142. #endif
  6143. typedef int dummy;
  6144. _ACEOF
  6145. if ac_fn_cxx_try_compile "$LINENO"; then :
  6146. # Check for potential -arch flags. It is not universal unless
  6147. # there are at least two -arch flags with different values.
  6148. ac_arch=
  6149. ac_prev=
  6150. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6151. if test -n "$ac_prev"; then
  6152. case $ac_word in
  6153. i?86 | x86_64 | ppc | ppc64)
  6154. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6155. ac_arch=$ac_word
  6156. else
  6157. ac_cv_c_bigendian=universal
  6158. break
  6159. fi
  6160. ;;
  6161. esac
  6162. ac_prev=
  6163. elif test "x$ac_word" = "x-arch"; then
  6164. ac_prev=arch
  6165. fi
  6166. done
  6167. fi
  6168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6169. if test $ac_cv_c_bigendian = unknown; then
  6170. # See if sys/param.h defines the BYTE_ORDER macro.
  6171. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6172. /* end build/confdefs.h. */
  6173. #include <sys/types.h>
  6174. #include <sys/param.h>
  6175. int
  6176. main ()
  6177. {
  6178. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6179. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6180. && LITTLE_ENDIAN)
  6181. bogus endian macros
  6182. #endif
  6183. ;
  6184. return 0;
  6185. }
  6186. _ACEOF
  6187. if ac_fn_cxx_try_compile "$LINENO"; then :
  6188. # It does; now see whether it defined to BIG_ENDIAN or not.
  6189. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end build/confdefs.h. */
  6191. #include <sys/types.h>
  6192. #include <sys/param.h>
  6193. int
  6194. main ()
  6195. {
  6196. #if BYTE_ORDER != BIG_ENDIAN
  6197. not big endian
  6198. #endif
  6199. ;
  6200. return 0;
  6201. }
  6202. _ACEOF
  6203. if ac_fn_cxx_try_compile "$LINENO"; then :
  6204. ac_cv_c_bigendian=yes
  6205. else
  6206. ac_cv_c_bigendian=no
  6207. fi
  6208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6209. fi
  6210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6211. fi
  6212. if test $ac_cv_c_bigendian = unknown; then
  6213. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6214. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6215. /* end build/confdefs.h. */
  6216. #include <limits.h>
  6217. int
  6218. main ()
  6219. {
  6220. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6221. bogus endian macros
  6222. #endif
  6223. ;
  6224. return 0;
  6225. }
  6226. _ACEOF
  6227. if ac_fn_cxx_try_compile "$LINENO"; then :
  6228. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6229. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end build/confdefs.h. */
  6231. #include <limits.h>
  6232. int
  6233. main ()
  6234. {
  6235. #ifndef _BIG_ENDIAN
  6236. not big endian
  6237. #endif
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. if ac_fn_cxx_try_compile "$LINENO"; then :
  6243. ac_cv_c_bigendian=yes
  6244. else
  6245. ac_cv_c_bigendian=no
  6246. fi
  6247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6248. fi
  6249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6250. fi
  6251. if test $ac_cv_c_bigendian = unknown; then
  6252. # Compile a test program.
  6253. if test "$cross_compiling" = yes; then :
  6254. # Try to guess by grepping values from an object file.
  6255. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6256. /* end build/confdefs.h. */
  6257. short int ascii_mm[] =
  6258. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6259. short int ascii_ii[] =
  6260. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6261. int use_ascii (int i) {
  6262. return ascii_mm[i] + ascii_ii[i];
  6263. }
  6264. short int ebcdic_ii[] =
  6265. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6266. short int ebcdic_mm[] =
  6267. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6268. int use_ebcdic (int i) {
  6269. return ebcdic_mm[i] + ebcdic_ii[i];
  6270. }
  6271. extern int foo;
  6272. int
  6273. main ()
  6274. {
  6275. return use_ascii (foo) == use_ebcdic (foo);
  6276. ;
  6277. return 0;
  6278. }
  6279. _ACEOF
  6280. if ac_fn_cxx_try_compile "$LINENO"; then :
  6281. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6282. ac_cv_c_bigendian=yes
  6283. fi
  6284. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6285. if test "$ac_cv_c_bigendian" = unknown; then
  6286. ac_cv_c_bigendian=no
  6287. else
  6288. # finding both strings is unlikely to happen, but who knows?
  6289. ac_cv_c_bigendian=unknown
  6290. fi
  6291. fi
  6292. fi
  6293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6294. else
  6295. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6296. /* end build/confdefs.h. */
  6297. $ac_includes_default
  6298. int
  6299. main ()
  6300. {
  6301. /* Are we little or big endian? From Harbison&Steele. */
  6302. union
  6303. {
  6304. long int l;
  6305. char c[sizeof (long int)];
  6306. } u;
  6307. u.l = 1;
  6308. return u.c[sizeof (long int) - 1] == 1;
  6309. ;
  6310. return 0;
  6311. }
  6312. _ACEOF
  6313. if ac_fn_cxx_try_run "$LINENO"; then :
  6314. ac_cv_c_bigendian=no
  6315. else
  6316. ac_cv_c_bigendian=yes
  6317. fi
  6318. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6319. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6320. fi
  6321. fi
  6322. fi
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6324. $as_echo "$ac_cv_c_bigendian" >&6; }
  6325. case $ac_cv_c_bigendian in #(
  6326. yes)
  6327. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6328. ;; #(
  6329. no)
  6330. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6331. ;; #(
  6332. universal)
  6333. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6334. ;; #(
  6335. *)
  6336. as_fn_error $? "unknown endianness
  6337. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6338. esac
  6339. #AC_C_INLINE
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6341. $as_echo_n "checking whether char is unsigned... " >&6; }
  6342. if ${ac_cv_c_char_unsigned+:} false; then :
  6343. $as_echo_n "(cached) " >&6
  6344. else
  6345. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6346. /* end build/confdefs.h. */
  6347. $ac_includes_default
  6348. int
  6349. main ()
  6350. {
  6351. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6352. test_array [0] = 0;
  6353. return test_array [0];
  6354. ;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. if ac_fn_cxx_try_compile "$LINENO"; then :
  6359. ac_cv_c_char_unsigned=no
  6360. else
  6361. ac_cv_c_char_unsigned=yes
  6362. fi
  6363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6364. fi
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6366. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6367. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6368. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6369. fi
  6370. #AC_C_STRINGIZE
  6371. #AC_C_PROTOTYPES
  6372. #checkpoint
  6373. cat >confcache <<\_ACEOF
  6374. # This file is a shell script that caches the results of configure
  6375. # tests run on this system so they can be shared between configure
  6376. # scripts and configure runs, see configure's option --config-cache.
  6377. # It is not useful on other systems. If it contains results you don't
  6378. # want to keep, you may remove or edit it.
  6379. #
  6380. # build/config.status only pays attention to the cache file if you give it
  6381. # the --recheck option to rerun configure.
  6382. #
  6383. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6384. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6385. # following values.
  6386. _ACEOF
  6387. # The following way of writing the cache mishandles newlines in values,
  6388. # but we know of no workaround that is simple, portable, and efficient.
  6389. # So, we kill variables containing newlines.
  6390. # Ultrix sh set writes to stderr and can't be redirected directly,
  6391. # and sets the high bit in the cache file unless we assign to the vars.
  6392. (
  6393. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6394. eval ac_val=\$$ac_var
  6395. case $ac_val in #(
  6396. *${as_nl}*)
  6397. case $ac_var in #(
  6398. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6399. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6400. esac
  6401. case $ac_var in #(
  6402. _ | IFS | as_nl) ;; #(
  6403. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6404. *) { eval $ac_var=; unset $ac_var;} ;;
  6405. esac ;;
  6406. esac
  6407. done
  6408. (set) 2>&1 |
  6409. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6410. *${as_nl}ac_space=\ *)
  6411. # `set' does not quote correctly, so add quotes: double-quote
  6412. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6413. sed -n \
  6414. "s/'/'\\\\''/g;
  6415. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6416. ;; #(
  6417. *)
  6418. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6419. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6420. ;;
  6421. esac |
  6422. sort
  6423. ) |
  6424. sed '
  6425. /^ac_cv_env_/b end
  6426. t clear
  6427. :clear
  6428. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6429. t end
  6430. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6431. :end' >>confcache
  6432. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6433. if test -w "$cache_file"; then
  6434. if test "x$cache_file" != "x/dev/null"; then
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6436. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6437. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6438. cat confcache >"$cache_file"
  6439. else
  6440. case $cache_file in #(
  6441. */* | ?:*)
  6442. mv -f confcache "$cache_file"$$ &&
  6443. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6444. *)
  6445. mv -f confcache "$cache_file" ;;
  6446. esac
  6447. fi
  6448. fi
  6449. else
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6451. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6452. fi
  6453. fi
  6454. rm -f confcache
  6455. # Checks for typedefs, structures, and compiler characteristics
  6456. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6457. if test "x$ac_cv_type_pid_t" = xyes; then :
  6458. else
  6459. cat >>build/confdefs.h <<_ACEOF
  6460. #define pid_t int
  6461. _ACEOF
  6462. fi
  6463. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6464. if test "x$ac_cv_type_size_t" = xyes; then :
  6465. else
  6466. cat >>build/confdefs.h <<_ACEOF
  6467. #define size_t unsigned int
  6468. _ACEOF
  6469. fi
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6471. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6472. if ${ac_cv_type_uid_t+:} false; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6476. /* end build/confdefs.h. */
  6477. #include <sys/types.h>
  6478. _ACEOF
  6479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6480. $EGREP "uid_t" >/dev/null 2>&1; then :
  6481. ac_cv_type_uid_t=yes
  6482. else
  6483. ac_cv_type_uid_t=no
  6484. fi
  6485. rm -f conftest*
  6486. fi
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6488. $as_echo "$ac_cv_type_uid_t" >&6; }
  6489. if test $ac_cv_type_uid_t = no; then
  6490. $as_echo "#define uid_t int" >>build/confdefs.h
  6491. $as_echo "#define gid_t int" >>build/confdefs.h
  6492. fi
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6494. $as_echo_n "checking for unsigned long long int... " >&6; }
  6495. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. ac_cv_type_unsigned_long_long_int=yes
  6499. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6500. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end build/confdefs.h. */
  6502. /* For now, do not test the preprocessor; as of 2007 there are too many
  6503. implementations with broken preprocessors. Perhaps this can
  6504. be revisited in 2012. In the meantime, code should not expect
  6505. #if to work with literals wider than 32 bits. */
  6506. /* Test literals. */
  6507. long long int ll = 9223372036854775807ll;
  6508. long long int nll = -9223372036854775807LL;
  6509. unsigned long long int ull = 18446744073709551615ULL;
  6510. /* Test constant expressions. */
  6511. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6512. ? 1 : -1)];
  6513. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6514. ? 1 : -1)];
  6515. int i = 63;
  6516. int
  6517. main ()
  6518. {
  6519. /* Test availability of runtime routines for shift and division. */
  6520. long long int llmax = 9223372036854775807ll;
  6521. unsigned long long int ullmax = 18446744073709551615ull;
  6522. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6523. | (llmax / ll) | (llmax % ll)
  6524. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6525. | (ullmax / ull) | (ullmax % ull));
  6526. ;
  6527. return 0;
  6528. }
  6529. _ACEOF
  6530. if ac_fn_cxx_try_link "$LINENO"; then :
  6531. else
  6532. ac_cv_type_unsigned_long_long_int=no
  6533. fi
  6534. rm -f core conftest.err conftest.$ac_objext \
  6535. conftest$ac_exeext conftest.$ac_ext
  6536. fi
  6537. fi
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6539. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6540. if test $ac_cv_type_unsigned_long_long_int = yes; then
  6541. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  6542. fi
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6544. $as_echo_n "checking for long long int... " >&6; }
  6545. if ${ac_cv_type_long_long_int+:} false; then :
  6546. $as_echo_n "(cached) " >&6
  6547. else
  6548. ac_cv_type_long_long_int=yes
  6549. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6550. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6551. if test $ac_cv_type_long_long_int = yes; then
  6552. if test "$cross_compiling" = yes; then :
  6553. :
  6554. else
  6555. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6556. /* end build/confdefs.h. */
  6557. #include <limits.h>
  6558. #ifndef LLONG_MAX
  6559. # define HALF \
  6560. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6561. # define LLONG_MAX (HALF - 1 + HALF)
  6562. #endif
  6563. int
  6564. main ()
  6565. {
  6566. long long int n = 1;
  6567. int i;
  6568. for (i = 0; ; i++)
  6569. {
  6570. long long int m = n << i;
  6571. if (m >> i != n)
  6572. return 1;
  6573. if (LLONG_MAX / 2 < m)
  6574. break;
  6575. }
  6576. return 0;
  6577. ;
  6578. return 0;
  6579. }
  6580. _ACEOF
  6581. if ac_fn_cxx_try_run "$LINENO"; then :
  6582. else
  6583. ac_cv_type_long_long_int=no
  6584. fi
  6585. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6586. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6587. fi
  6588. fi
  6589. fi
  6590. fi
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6592. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6593. if test $ac_cv_type_long_long_int = yes; then
  6594. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6595. fi
  6596. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6597. case $ac_cv_c_int8_t in #(
  6598. no|yes) ;; #(
  6599. *)
  6600. cat >>build/confdefs.h <<_ACEOF
  6601. #define int8_t $ac_cv_c_int8_t
  6602. _ACEOF
  6603. ;;
  6604. esac
  6605. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6606. case $ac_cv_c_uint8_t in #(
  6607. no|yes) ;; #(
  6608. *)
  6609. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6610. cat >>build/confdefs.h <<_ACEOF
  6611. #define uint8_t $ac_cv_c_uint8_t
  6612. _ACEOF
  6613. ;;
  6614. esac
  6615. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6616. case $ac_cv_c_int16_t in #(
  6617. no|yes) ;; #(
  6618. *)
  6619. cat >>build/confdefs.h <<_ACEOF
  6620. #define int16_t $ac_cv_c_int16_t
  6621. _ACEOF
  6622. ;;
  6623. esac
  6624. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6625. case $ac_cv_c_uint16_t in #(
  6626. no|yes) ;; #(
  6627. *)
  6628. cat >>build/confdefs.h <<_ACEOF
  6629. #define uint16_t $ac_cv_c_uint16_t
  6630. _ACEOF
  6631. ;;
  6632. esac
  6633. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6634. case $ac_cv_c_int32_t in #(
  6635. no|yes) ;; #(
  6636. *)
  6637. cat >>build/confdefs.h <<_ACEOF
  6638. #define int32_t $ac_cv_c_int32_t
  6639. _ACEOF
  6640. ;;
  6641. esac
  6642. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6643. case $ac_cv_c_uint32_t in #(
  6644. no|yes) ;; #(
  6645. *)
  6646. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6647. cat >>build/confdefs.h <<_ACEOF
  6648. #define uint32_t $ac_cv_c_uint32_t
  6649. _ACEOF
  6650. ;;
  6651. esac
  6652. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6653. case $ac_cv_c_int64_t in #(
  6654. no|yes) ;; #(
  6655. *)
  6656. cat >>build/confdefs.h <<_ACEOF
  6657. #define int64_t $ac_cv_c_int64_t
  6658. _ACEOF
  6659. ;;
  6660. esac
  6661. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6662. case $ac_cv_c_uint64_t in #(
  6663. no|yes) ;; #(
  6664. *)
  6665. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6666. cat >>build/confdefs.h <<_ACEOF
  6667. #define uint64_t $ac_cv_c_uint64_t
  6668. _ACEOF
  6669. ;;
  6670. esac
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6672. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6673. if ${ac_cv_struct_tm+:} false; then :
  6674. $as_echo_n "(cached) " >&6
  6675. else
  6676. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6677. /* end build/confdefs.h. */
  6678. #include <sys/types.h>
  6679. #include <time.h>
  6680. int
  6681. main ()
  6682. {
  6683. struct tm tm;
  6684. int *p = &tm.tm_sec;
  6685. return !p;
  6686. ;
  6687. return 0;
  6688. }
  6689. _ACEOF
  6690. if ac_fn_cxx_try_compile "$LINENO"; then :
  6691. ac_cv_struct_tm=time.h
  6692. else
  6693. ac_cv_struct_tm=sys/time.h
  6694. fi
  6695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6696. fi
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6698. $as_echo "$ac_cv_struct_tm" >&6; }
  6699. if test $ac_cv_struct_tm = sys/time.h; then
  6700. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6701. fi
  6702. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6703. #include <$ac_cv_struct_tm>
  6704. "
  6705. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6706. cat >>build/confdefs.h <<_ACEOF
  6707. #define HAVE_STRUCT_TM_TM_ZONE 1
  6708. _ACEOF
  6709. fi
  6710. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6711. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6712. else
  6713. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6714. "
  6715. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6716. ac_have_decl=1
  6717. else
  6718. ac_have_decl=0
  6719. fi
  6720. cat >>build/confdefs.h <<_ACEOF
  6721. #define HAVE_DECL_TZNAME $ac_have_decl
  6722. _ACEOF
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6724. $as_echo_n "checking for tzname... " >&6; }
  6725. if ${ac_cv_var_tzname+:} false; then :
  6726. $as_echo_n "(cached) " >&6
  6727. else
  6728. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6729. /* end build/confdefs.h. */
  6730. #include <time.h>
  6731. #if !HAVE_DECL_TZNAME
  6732. extern char *tzname[];
  6733. #endif
  6734. int
  6735. main ()
  6736. {
  6737. return tzname[0][0];
  6738. ;
  6739. return 0;
  6740. }
  6741. _ACEOF
  6742. if ac_fn_cxx_try_link "$LINENO"; then :
  6743. ac_cv_var_tzname=yes
  6744. else
  6745. ac_cv_var_tzname=no
  6746. fi
  6747. rm -f core conftest.err conftest.$ac_objext \
  6748. conftest$ac_exeext conftest.$ac_ext
  6749. fi
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6751. $as_echo "$ac_cv_var_tzname" >&6; }
  6752. if test $ac_cv_var_tzname = yes; then
  6753. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6754. fi
  6755. fi
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6757. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6758. if ${ac_cv_struct_tm+:} false; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6762. /* end build/confdefs.h. */
  6763. #include <sys/types.h>
  6764. #include <time.h>
  6765. int
  6766. main ()
  6767. {
  6768. struct tm tm;
  6769. int *p = &tm.tm_sec;
  6770. return !p;
  6771. ;
  6772. return 0;
  6773. }
  6774. _ACEOF
  6775. if ac_fn_cxx_try_compile "$LINENO"; then :
  6776. ac_cv_struct_tm=time.h
  6777. else
  6778. ac_cv_struct_tm=sys/time.h
  6779. fi
  6780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6783. $as_echo "$ac_cv_struct_tm" >&6; }
  6784. if test $ac_cv_struct_tm = sys/time.h; then
  6785. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6786. fi
  6787. # Checks for library functions
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6789. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6790. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6791. $as_echo_n "(cached) " >&6
  6792. else
  6793. rm -f conftest.sym conftest.file
  6794. echo >conftest.file
  6795. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6796. if test "$cross_compiling" = yes; then :
  6797. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6798. else
  6799. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6800. /* end build/confdefs.h. */
  6801. $ac_includes_default
  6802. int
  6803. main ()
  6804. {
  6805. struct stat sbuf;
  6806. /* Linux will dereference the symlink and fail, as required by POSIX.
  6807. That is better in the sense that it means we will not
  6808. have to compile and use the lstat wrapper. */
  6809. return lstat ("conftest.sym/", &sbuf) == 0;
  6810. ;
  6811. return 0;
  6812. }
  6813. _ACEOF
  6814. if ac_fn_cxx_try_run "$LINENO"; then :
  6815. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6816. else
  6817. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6818. fi
  6819. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6820. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6821. fi
  6822. else
  6823. # If the `ln -s' command failed, then we probably don't even
  6824. # have an lstat function.
  6825. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6826. fi
  6827. rm -f conftest.sym conftest.file
  6828. fi
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6830. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6831. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6832. cat >>build/confdefs.h <<_ACEOF
  6833. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6834. _ACEOF
  6835. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6836. case " $LIBOBJS " in
  6837. *" lstat.$ac_objext "* ) ;;
  6838. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6839. ;;
  6840. esac
  6841. fi
  6842. for ac_header in $ac_header_list
  6843. do :
  6844. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6845. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6846. "
  6847. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6848. cat >>build/confdefs.h <<_ACEOF
  6849. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6850. _ACEOF
  6851. fi
  6852. done
  6853. for ac_func in getpagesize
  6854. do :
  6855. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6856. if test "x$ac_cv_func_getpagesize" = xyes; then :
  6857. cat >>build/confdefs.h <<_ACEOF
  6858. #define HAVE_GETPAGESIZE 1
  6859. _ACEOF
  6860. fi
  6861. done
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6863. $as_echo_n "checking for working mmap... " >&6; }
  6864. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  6865. $as_echo_n "(cached) " >&6
  6866. else
  6867. if test "$cross_compiling" = yes; then :
  6868. ac_cv_func_mmap_fixed_mapped=no
  6869. else
  6870. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6871. /* end build/confdefs.h. */
  6872. $ac_includes_default
  6873. /* malloc might have been renamed as rpl_malloc. */
  6874. #undef malloc
  6875. /* Thanks to Mike Haertel and Jim Avera for this test.
  6876. Here is a matrix of mmap possibilities:
  6877. mmap private not fixed
  6878. mmap private fixed at somewhere currently unmapped
  6879. mmap private fixed at somewhere already mapped
  6880. mmap shared not fixed
  6881. mmap shared fixed at somewhere currently unmapped
  6882. mmap shared fixed at somewhere already mapped
  6883. For private mappings, we should verify that changes cannot be read()
  6884. back from the file, nor mmap's back from the file at a different
  6885. address. (There have been systems where private was not correctly
  6886. implemented like the infamous i386 svr4.0, and systems where the
  6887. VM page cache was not coherent with the file system buffer cache
  6888. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6889. For shared mappings, we should conversely verify that changes get
  6890. propagated back to all the places they're supposed to be.
  6891. Grep wants private fixed already mapped.
  6892. The main things grep needs to know about mmap are:
  6893. * does it exist and is it safe to write into the mmap'd area
  6894. * how to use it (BSD variants) */
  6895. #include <fcntl.h>
  6896. #include <sys/mman.h>
  6897. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6898. char *malloc ();
  6899. #endif
  6900. /* This mess was copied from the GNU getpagesize.h. */
  6901. #ifndef HAVE_GETPAGESIZE
  6902. # ifdef _SC_PAGESIZE
  6903. # define getpagesize() sysconf(_SC_PAGESIZE)
  6904. # else /* no _SC_PAGESIZE */
  6905. # ifdef HAVE_SYS_PARAM_H
  6906. # include <sys/param.h>
  6907. # ifdef EXEC_PAGESIZE
  6908. # define getpagesize() EXEC_PAGESIZE
  6909. # else /* no EXEC_PAGESIZE */
  6910. # ifdef NBPG
  6911. # define getpagesize() NBPG * CLSIZE
  6912. # ifndef CLSIZE
  6913. # define CLSIZE 1
  6914. # endif /* no CLSIZE */
  6915. # else /* no NBPG */
  6916. # ifdef NBPC
  6917. # define getpagesize() NBPC
  6918. # else /* no NBPC */
  6919. # ifdef PAGESIZE
  6920. # define getpagesize() PAGESIZE
  6921. # endif /* PAGESIZE */
  6922. # endif /* no NBPC */
  6923. # endif /* no NBPG */
  6924. # endif /* no EXEC_PAGESIZE */
  6925. # else /* no HAVE_SYS_PARAM_H */
  6926. # define getpagesize() 8192 /* punt totally */
  6927. # endif /* no HAVE_SYS_PARAM_H */
  6928. # endif /* no _SC_PAGESIZE */
  6929. #endif /* no HAVE_GETPAGESIZE */
  6930. int
  6931. main ()
  6932. {
  6933. char *data, *data2, *data3;
  6934. const char *cdata2;
  6935. int i, pagesize;
  6936. int fd, fd2;
  6937. pagesize = getpagesize ();
  6938. /* First, make a file with some known garbage in it. */
  6939. data = (char *) malloc (pagesize);
  6940. if (!data)
  6941. return 1;
  6942. for (i = 0; i < pagesize; ++i)
  6943. *(data + i) = rand ();
  6944. umask (0);
  6945. fd = creat ("conftest.mmap", 0600);
  6946. if (fd < 0)
  6947. return 2;
  6948. if (write (fd, data, pagesize) != pagesize)
  6949. return 3;
  6950. close (fd);
  6951. /* Next, check that the tail of a page is zero-filled. File must have
  6952. non-zero length, otherwise we risk SIGBUS for entire page. */
  6953. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  6954. if (fd2 < 0)
  6955. return 4;
  6956. cdata2 = "";
  6957. if (write (fd2, cdata2, 1) != 1)
  6958. return 5;
  6959. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  6960. if (data2 == MAP_FAILED)
  6961. return 6;
  6962. for (i = 0; i < pagesize; ++i)
  6963. if (*(data2 + i))
  6964. return 7;
  6965. close (fd2);
  6966. if (munmap (data2, pagesize))
  6967. return 8;
  6968. /* Next, try to mmap the file at a fixed address which already has
  6969. something else allocated at it. If we can, also make sure that
  6970. we see the same garbage. */
  6971. fd = open ("conftest.mmap", O_RDWR);
  6972. if (fd < 0)
  6973. return 9;
  6974. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6975. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6976. return 10;
  6977. for (i = 0; i < pagesize; ++i)
  6978. if (*(data + i) != *(data2 + i))
  6979. return 11;
  6980. /* Finally, make sure that changes to the mapped area do not
  6981. percolate back to the file as seen by read(). (This is a bug on
  6982. some variants of i386 svr4.0.) */
  6983. for (i = 0; i < pagesize; ++i)
  6984. *(data2 + i) = *(data2 + i) + 1;
  6985. data3 = (char *) malloc (pagesize);
  6986. if (!data3)
  6987. return 12;
  6988. if (read (fd, data3, pagesize) != pagesize)
  6989. return 13;
  6990. for (i = 0; i < pagesize; ++i)
  6991. if (*(data + i) != *(data3 + i))
  6992. return 14;
  6993. close (fd);
  6994. return 0;
  6995. }
  6996. _ACEOF
  6997. if ac_fn_cxx_try_run "$LINENO"; then :
  6998. ac_cv_func_mmap_fixed_mapped=yes
  6999. else
  7000. ac_cv_func_mmap_fixed_mapped=no
  7001. fi
  7002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7003. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7004. fi
  7005. fi
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7007. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7008. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7009. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7010. fi
  7011. rm -f conftest.mmap conftest.txt
  7012. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7013. #include <sys/time.h>
  7014. #include <time.h>
  7015. "
  7016. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7017. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7018. fi
  7019. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7020. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7021. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7022. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7023. else
  7024. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7025. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7026. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7027. fi
  7028. fi
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7030. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7031. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7032. /* end build/confdefs.h. */
  7033. #include <sys/types.h>
  7034. #include <sys/time.h>
  7035. int
  7036. main ()
  7037. {
  7038. struct timespec ts1, ts2;
  7039. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7040. #ifndef timespecsub
  7041. #error missing timespecsub
  7042. #endif
  7043. timespecsub(&ts1, &ts2);
  7044. ;
  7045. return 0;
  7046. }
  7047. _ACEOF
  7048. if ac_fn_cxx_try_compile "$LINENO"; then :
  7049. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7051. $as_echo "yes" >&6; }
  7052. else
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7054. $as_echo "no" >&6; }
  7055. fi
  7056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7057. fi
  7058. #checkpoint
  7059. cat >confcache <<\_ACEOF
  7060. # This file is a shell script that caches the results of configure
  7061. # tests run on this system so they can be shared between configure
  7062. # scripts and configure runs, see configure's option --config-cache.
  7063. # It is not useful on other systems. If it contains results you don't
  7064. # want to keep, you may remove or edit it.
  7065. #
  7066. # build/config.status only pays attention to the cache file if you give it
  7067. # the --recheck option to rerun configure.
  7068. #
  7069. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7070. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7071. # following values.
  7072. _ACEOF
  7073. # The following way of writing the cache mishandles newlines in values,
  7074. # but we know of no workaround that is simple, portable, and efficient.
  7075. # So, we kill variables containing newlines.
  7076. # Ultrix sh set writes to stderr and can't be redirected directly,
  7077. # and sets the high bit in the cache file unless we assign to the vars.
  7078. (
  7079. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7080. eval ac_val=\$$ac_var
  7081. case $ac_val in #(
  7082. *${as_nl}*)
  7083. case $ac_var in #(
  7084. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7085. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7086. esac
  7087. case $ac_var in #(
  7088. _ | IFS | as_nl) ;; #(
  7089. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7090. *) { eval $ac_var=; unset $ac_var;} ;;
  7091. esac ;;
  7092. esac
  7093. done
  7094. (set) 2>&1 |
  7095. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7096. *${as_nl}ac_space=\ *)
  7097. # `set' does not quote correctly, so add quotes: double-quote
  7098. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7099. sed -n \
  7100. "s/'/'\\\\''/g;
  7101. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7102. ;; #(
  7103. *)
  7104. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7105. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7106. ;;
  7107. esac |
  7108. sort
  7109. ) |
  7110. sed '
  7111. /^ac_cv_env_/b end
  7112. t clear
  7113. :clear
  7114. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7115. t end
  7116. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7117. :end' >>confcache
  7118. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7119. if test -w "$cache_file"; then
  7120. if test "x$cache_file" != "x/dev/null"; then
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7122. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7123. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7124. cat confcache >"$cache_file"
  7125. else
  7126. case $cache_file in #(
  7127. */* | ?:*)
  7128. mv -f confcache "$cache_file"$$ &&
  7129. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7130. *)
  7131. mv -f confcache "$cache_file" ;;
  7132. esac
  7133. fi
  7134. fi
  7135. else
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7137. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7138. fi
  7139. fi
  7140. rm -f confcache
  7141. for ac_func in getrusage getpassphrase posix_madvise madvise
  7142. do :
  7143. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7144. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7145. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7146. cat >>build/confdefs.h <<_ACEOF
  7147. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7148. _ACEOF
  7149. fi
  7150. done
  7151. for ac_func in memmem random snprintf srandom gettime
  7152. do :
  7153. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7154. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7155. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7156. cat >>build/confdefs.h <<_ACEOF
  7157. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7158. _ACEOF
  7159. fi
  7160. done
  7161. #checkpoint
  7162. cat >confcache <<\_ACEOF
  7163. # This file is a shell script that caches the results of configure
  7164. # tests run on this system so they can be shared between configure
  7165. # scripts and configure runs, see configure's option --config-cache.
  7166. # It is not useful on other systems. If it contains results you don't
  7167. # want to keep, you may remove or edit it.
  7168. #
  7169. # build/config.status only pays attention to the cache file if you give it
  7170. # the --recheck option to rerun configure.
  7171. #
  7172. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7173. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7174. # following values.
  7175. _ACEOF
  7176. # The following way of writing the cache mishandles newlines in values,
  7177. # but we know of no workaround that is simple, portable, and efficient.
  7178. # So, we kill variables containing newlines.
  7179. # Ultrix sh set writes to stderr and can't be redirected directly,
  7180. # and sets the high bit in the cache file unless we assign to the vars.
  7181. (
  7182. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7183. eval ac_val=\$$ac_var
  7184. case $ac_val in #(
  7185. *${as_nl}*)
  7186. case $ac_var in #(
  7187. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7188. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7189. esac
  7190. case $ac_var in #(
  7191. _ | IFS | as_nl) ;; #(
  7192. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7193. *) { eval $ac_var=; unset $ac_var;} ;;
  7194. esac ;;
  7195. esac
  7196. done
  7197. (set) 2>&1 |
  7198. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7199. *${as_nl}ac_space=\ *)
  7200. # `set' does not quote correctly, so add quotes: double-quote
  7201. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7202. sed -n \
  7203. "s/'/'\\\\''/g;
  7204. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7205. ;; #(
  7206. *)
  7207. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7208. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7209. ;;
  7210. esac |
  7211. sort
  7212. ) |
  7213. sed '
  7214. /^ac_cv_env_/b end
  7215. t clear
  7216. :clear
  7217. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7218. t end
  7219. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7220. :end' >>confcache
  7221. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7222. if test -w "$cache_file"; then
  7223. if test "x$cache_file" != "x/dev/null"; then
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7225. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7226. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7227. cat confcache >"$cache_file"
  7228. else
  7229. case $cache_file in #(
  7230. */* | ?:*)
  7231. mv -f confcache "$cache_file"$$ &&
  7232. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7233. *)
  7234. mv -f confcache "$cache_file" ;;
  7235. esac
  7236. fi
  7237. fi
  7238. else
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7240. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7241. fi
  7242. fi
  7243. rm -f confcache
  7244. for ac_func in vsnprintf prctl procctl
  7245. do :
  7246. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7247. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7248. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7249. cat >>build/confdefs.h <<_ACEOF
  7250. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7251. _ACEOF
  7252. fi
  7253. done
  7254. #autoscan suggested this....
  7255. #These are recommended by autoscan, but no code supports it currently
  7256. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7257. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7258. for ac_func in vsprintf
  7259. do :
  7260. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7261. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7262. cat >>build/confdefs.h <<_ACEOF
  7263. #define HAVE_VSPRINTF 1
  7264. _ACEOF
  7265. fi
  7266. done
  7267. if test "$ac_cv_func_vsprintf" = "no"
  7268. then
  7269. cat << 'EOF' >&2
  7270. configure: error:
  7271. Your system does not have the sprintf/vsprintf libraries.
  7272. These are required to compile almost anything. Sorry.
  7273. EOF
  7274. exit 1
  7275. fi
  7276. for ac_func in uname
  7277. do :
  7278. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7279. if test "x$ac_cv_func_uname" = xyes; then :
  7280. cat >>build/confdefs.h <<_ACEOF
  7281. #define HAVE_UNAME 1
  7282. _ACEOF
  7283. fi
  7284. done
  7285. if test "$ac_cv_func_uname" = "no"
  7286. then
  7287. cat << 'EOF' >&2
  7288. configure: error:
  7289. Your system does not have the uname() function.
  7290. This is required for the botpack.
  7291. EOF
  7292. exit 1
  7293. fi
  7294. # Make sure we have stdc headers, since we can't compile without them
  7295. if test "$ac_cv_header_stdc" = "no"
  7296. then
  7297. cat << 'EOF' >&2
  7298. configure: error:
  7299. Your system must support ANSI C Header files.
  7300. These are required for the language support. Sorry.
  7301. EOF
  7302. exit 1
  7303. fi
  7304. #checkpoint
  7305. cat >confcache <<\_ACEOF
  7306. # This file is a shell script that caches the results of configure
  7307. # tests run on this system so they can be shared between configure
  7308. # scripts and configure runs, see configure's option --config-cache.
  7309. # It is not useful on other systems. If it contains results you don't
  7310. # want to keep, you may remove or edit it.
  7311. #
  7312. # build/config.status only pays attention to the cache file if you give it
  7313. # the --recheck option to rerun configure.
  7314. #
  7315. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7316. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7317. # following values.
  7318. _ACEOF
  7319. # The following way of writing the cache mishandles newlines in values,
  7320. # but we know of no workaround that is simple, portable, and efficient.
  7321. # So, we kill variables containing newlines.
  7322. # Ultrix sh set writes to stderr and can't be redirected directly,
  7323. # and sets the high bit in the cache file unless we assign to the vars.
  7324. (
  7325. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7326. eval ac_val=\$$ac_var
  7327. case $ac_val in #(
  7328. *${as_nl}*)
  7329. case $ac_var in #(
  7330. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7331. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7332. esac
  7333. case $ac_var in #(
  7334. _ | IFS | as_nl) ;; #(
  7335. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7336. *) { eval $ac_var=; unset $ac_var;} ;;
  7337. esac ;;
  7338. esac
  7339. done
  7340. (set) 2>&1 |
  7341. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7342. *${as_nl}ac_space=\ *)
  7343. # `set' does not quote correctly, so add quotes: double-quote
  7344. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7345. sed -n \
  7346. "s/'/'\\\\''/g;
  7347. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7348. ;; #(
  7349. *)
  7350. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7351. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7352. ;;
  7353. esac |
  7354. sort
  7355. ) |
  7356. sed '
  7357. /^ac_cv_env_/b end
  7358. t clear
  7359. :clear
  7360. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7361. t end
  7362. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7363. :end' >>confcache
  7364. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7365. if test -w "$cache_file"; then
  7366. if test "x$cache_file" != "x/dev/null"; then
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7368. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7369. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7370. cat confcache >"$cache_file"
  7371. else
  7372. case $cache_file in #(
  7373. */* | ?:*)
  7374. mv -f confcache "$cache_file"$$ &&
  7375. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7376. *)
  7377. mv -f confcache "$cache_file" ;;
  7378. esac
  7379. fi
  7380. fi
  7381. else
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7383. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7384. fi
  7385. fi
  7386. rm -f confcache
  7387. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7388. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7389. cat >>build/confdefs.h <<_ACEOF
  7390. #define EGG_VERSION $version_num
  7391. _ACEOF
  7392. #FIND_WRAPS
  7393. files="src/Makefile.in"
  7394. for mf in $files; do
  7395. # Strip MF so we end up with the name of the file.
  7396. mf=${mf%%:*}
  7397. dirmf=${mf%/*}
  7398. rm -f "$dirmf/.deps/includes"
  7399. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  7400. for file in `sed -n -e '
  7401. /^OBJS = .*\\\\$/ {
  7402. s/^OBJS = //
  7403. :loop
  7404. s/\\\\$//
  7405. p
  7406. n
  7407. /\\\\$/ b loop
  7408. p
  7409. }
  7410. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7411. do
  7412. dirpart="${dirmf}/${file}"
  7413. dirpart="${dirpart%/*}"
  7414. if [ "${dirpart}" != "${dirmf}" ]; then
  7415. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  7416. fi
  7417. file="${file##*/}"
  7418. suffix=${file##*.}
  7419. base=${file%%.*}
  7420. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  7421. if ! test -f "$dirpart/.deps/$base.Po"; then
  7422. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7423. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7424. if test -f "$dirpart/${base}.${suffix}"; then
  7425. rm -f "$dirpart/${base}.${suffix}"
  7426. fi
  7427. fi
  7428. echo "include .${dirpart#${dirmf}}/.deps/$base.Po" >> "${dirmf}/.deps/includes"
  7429. done
  7430. done
  7431. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  7432. GIT_REQUIRED=1
  7433. if [ "$GIT_REQUIRED" = "1" ]; then
  7434. if ! test -d .git; then
  7435. echo ""
  7436. echo ""
  7437. echo "You have downloaded a GIT version of wraith."
  7438. echo "Either 'git clone' from a git repository or download a source tarball"
  7439. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7440. echo ""
  7441. echo ""
  7442. exit 1
  7443. fi
  7444. fi
  7445. if test -d .git; then
  7446. git submodule init
  7447. git submodule update
  7448. git submodule foreach --recursive git clean -fdx
  7449. # Restore as it may have been removed by an older 'make distclean'
  7450. if ! test -f src/response.h; then
  7451. git checkout src/response.h
  7452. fi
  7453. fi
  7454. if [ -f lib/bdlib/configure ]; then
  7455. subdirs="$subdirs lib/bdlib"
  7456. fi
  7457. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  7458. subdirs="$subdirs lib/libelf"
  7459. fi
  7460. cat >confcache <<\_ACEOF
  7461. # This file is a shell script that caches the results of configure
  7462. # tests run on this system so they can be shared between configure
  7463. # scripts and configure runs, see configure's option --config-cache.
  7464. # It is not useful on other systems. If it contains results you don't
  7465. # want to keep, you may remove or edit it.
  7466. #
  7467. # build/config.status only pays attention to the cache file if you give it
  7468. # the --recheck option to rerun configure.
  7469. #
  7470. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7471. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7472. # following values.
  7473. _ACEOF
  7474. # The following way of writing the cache mishandles newlines in values,
  7475. # but we know of no workaround that is simple, portable, and efficient.
  7476. # So, we kill variables containing newlines.
  7477. # Ultrix sh set writes to stderr and can't be redirected directly,
  7478. # and sets the high bit in the cache file unless we assign to the vars.
  7479. (
  7480. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7481. eval ac_val=\$$ac_var
  7482. case $ac_val in #(
  7483. *${as_nl}*)
  7484. case $ac_var in #(
  7485. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7486. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7487. esac
  7488. case $ac_var in #(
  7489. _ | IFS | as_nl) ;; #(
  7490. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7491. *) { eval $ac_var=; unset $ac_var;} ;;
  7492. esac ;;
  7493. esac
  7494. done
  7495. (set) 2>&1 |
  7496. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7497. *${as_nl}ac_space=\ *)
  7498. # `set' does not quote correctly, so add quotes: double-quote
  7499. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7500. sed -n \
  7501. "s/'/'\\\\''/g;
  7502. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7503. ;; #(
  7504. *)
  7505. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7506. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7507. ;;
  7508. esac |
  7509. sort
  7510. ) |
  7511. sed '
  7512. /^ac_cv_env_/b end
  7513. t clear
  7514. :clear
  7515. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7516. t end
  7517. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7518. :end' >>confcache
  7519. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7520. if test -w "$cache_file"; then
  7521. if test "x$cache_file" != "x/dev/null"; then
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7523. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7524. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7525. cat confcache >"$cache_file"
  7526. else
  7527. case $cache_file in #(
  7528. */* | ?:*)
  7529. mv -f confcache "$cache_file"$$ &&
  7530. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7531. *)
  7532. mv -f confcache "$cache_file" ;;
  7533. esac
  7534. fi
  7535. fi
  7536. else
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7538. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7539. fi
  7540. fi
  7541. rm -f confcache
  7542. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7543. # Let make expand exec_prefix.
  7544. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7545. DEFS=-DHAVE_CONFIG_H
  7546. ac_libobjs=
  7547. ac_ltlibobjs=
  7548. U=
  7549. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7550. # 1. Remove the extension, and $U if already installed.
  7551. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7552. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7553. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7554. # will be set to the directory where LIBOBJS objects are built.
  7555. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7556. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7557. done
  7558. LIBOBJS=$ac_libobjs
  7559. LTLIBOBJS=$ac_ltlibobjs
  7560. : "${CONFIG_STATUS=./build/config.status}"
  7561. ac_write_fail=0
  7562. ac_clean_files_save=$ac_clean_files
  7563. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7565. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7566. as_write_fail=0
  7567. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7568. #! $SHELL
  7569. # Generated by $as_me.
  7570. # Run this file to recreate the current configuration.
  7571. # Compiler output produced by configure, useful for debugging
  7572. # configure, is in build/config.log if it exists.
  7573. debug=false
  7574. ac_cs_recheck=false
  7575. ac_cs_silent=false
  7576. SHELL=\${CONFIG_SHELL-$SHELL}
  7577. export SHELL
  7578. _ASEOF
  7579. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7580. ## -------------------- ##
  7581. ## M4sh Initialization. ##
  7582. ## -------------------- ##
  7583. # Be more Bourne compatible
  7584. DUALCASE=1; export DUALCASE # for MKS sh
  7585. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7586. emulate sh
  7587. NULLCMD=:
  7588. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7589. # is contrary to our usage. Disable this feature.
  7590. alias -g '${1+"$@"}'='"$@"'
  7591. setopt NO_GLOB_SUBST
  7592. else
  7593. case `(set -o) 2>/dev/null` in #(
  7594. *posix*) :
  7595. set -o posix ;; #(
  7596. *) :
  7597. ;;
  7598. esac
  7599. fi
  7600. as_nl='
  7601. '
  7602. export as_nl
  7603. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7604. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7605. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7606. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7607. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7608. # but without wasting forks for bash or zsh.
  7609. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7610. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7611. as_echo='print -r --'
  7612. as_echo_n='print -rn --'
  7613. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7614. as_echo='printf %s\n'
  7615. as_echo_n='printf %s'
  7616. else
  7617. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7618. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7619. as_echo_n='/usr/ucb/echo -n'
  7620. else
  7621. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7622. as_echo_n_body='eval
  7623. arg=$1;
  7624. case $arg in #(
  7625. *"$as_nl"*)
  7626. expr "X$arg" : "X\\(.*\\)$as_nl";
  7627. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7628. esac;
  7629. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7630. '
  7631. export as_echo_n_body
  7632. as_echo_n='sh -c $as_echo_n_body as_echo'
  7633. fi
  7634. export as_echo_body
  7635. as_echo='sh -c $as_echo_body as_echo'
  7636. fi
  7637. # The user is always right.
  7638. if test "${PATH_SEPARATOR+set}" != set; then
  7639. PATH_SEPARATOR=:
  7640. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7641. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7642. PATH_SEPARATOR=';'
  7643. }
  7644. fi
  7645. # IFS
  7646. # We need space, tab and new line, in precisely that order. Quoting is
  7647. # there to prevent editors from complaining about space-tab.
  7648. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7649. # splitting by setting IFS to empty value.)
  7650. IFS=" "" $as_nl"
  7651. # Find who we are. Look in the path if we contain no directory separator.
  7652. as_myself=
  7653. case $0 in #((
  7654. *[\\/]* ) as_myself=$0 ;;
  7655. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7656. for as_dir in $PATH
  7657. do
  7658. IFS=$as_save_IFS
  7659. test -z "$as_dir" && as_dir=.
  7660. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7661. done
  7662. IFS=$as_save_IFS
  7663. ;;
  7664. esac
  7665. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7666. # in which case we are not to be found in the path.
  7667. if test "x$as_myself" = x; then
  7668. as_myself=$0
  7669. fi
  7670. if test ! -f "$as_myself"; then
  7671. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7672. exit 1
  7673. fi
  7674. # Unset variables that we do not need and which cause bugs (e.g. in
  7675. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7676. # suppresses any "Segmentation fault" message there. '((' could
  7677. # trigger a bug in pdksh 5.2.14.
  7678. for as_var in BASH_ENV ENV MAIL MAILPATH
  7679. do eval test x\${$as_var+set} = xset \
  7680. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7681. done
  7682. PS1='$ '
  7683. PS2='> '
  7684. PS4='+ '
  7685. # NLS nuisances.
  7686. LC_ALL=C
  7687. export LC_ALL
  7688. LANGUAGE=C
  7689. export LANGUAGE
  7690. # CDPATH.
  7691. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7692. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7693. # ----------------------------------------
  7694. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7695. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7696. # script with STATUS, using 1 if that was 0.
  7697. as_fn_error ()
  7698. {
  7699. as_status=$1; test $as_status -eq 0 && as_status=1
  7700. if test "$4"; then
  7701. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7702. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7703. fi
  7704. $as_echo "$as_me: error: $2" >&2
  7705. as_fn_exit $as_status
  7706. } # as_fn_error
  7707. # as_fn_set_status STATUS
  7708. # -----------------------
  7709. # Set $? to STATUS, without forking.
  7710. as_fn_set_status ()
  7711. {
  7712. return $1
  7713. } # as_fn_set_status
  7714. # as_fn_exit STATUS
  7715. # -----------------
  7716. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7717. as_fn_exit ()
  7718. {
  7719. set +e
  7720. as_fn_set_status $1
  7721. exit $1
  7722. } # as_fn_exit
  7723. # as_fn_unset VAR
  7724. # ---------------
  7725. # Portably unset VAR.
  7726. as_fn_unset ()
  7727. {
  7728. { eval $1=; unset $1;}
  7729. }
  7730. as_unset=as_fn_unset
  7731. # as_fn_append VAR VALUE
  7732. # ----------------------
  7733. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7734. # advantage of any shell optimizations that allow amortized linear growth over
  7735. # repeated appends, instead of the typical quadratic growth present in naive
  7736. # implementations.
  7737. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7738. eval 'as_fn_append ()
  7739. {
  7740. eval $1+=\$2
  7741. }'
  7742. else
  7743. as_fn_append ()
  7744. {
  7745. eval $1=\$$1\$2
  7746. }
  7747. fi # as_fn_append
  7748. # as_fn_arith ARG...
  7749. # ------------------
  7750. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7751. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7752. # must be portable across $(()) and expr.
  7753. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7754. eval 'as_fn_arith ()
  7755. {
  7756. as_val=$(( $* ))
  7757. }'
  7758. else
  7759. as_fn_arith ()
  7760. {
  7761. as_val=`expr "$@" || test $? -eq 1`
  7762. }
  7763. fi # as_fn_arith
  7764. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7765. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7766. as_expr=expr
  7767. else
  7768. as_expr=false
  7769. fi
  7770. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7771. as_basename=basename
  7772. else
  7773. as_basename=false
  7774. fi
  7775. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7776. as_dirname=dirname
  7777. else
  7778. as_dirname=false
  7779. fi
  7780. as_me=`$as_basename -- "$0" ||
  7781. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7782. X"$0" : 'X\(//\)$' \| \
  7783. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7784. $as_echo X/"$0" |
  7785. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7786. s//\1/
  7787. q
  7788. }
  7789. /^X\/\(\/\/\)$/{
  7790. s//\1/
  7791. q
  7792. }
  7793. /^X\/\(\/\).*/{
  7794. s//\1/
  7795. q
  7796. }
  7797. s/.*/./; q'`
  7798. # Avoid depending upon Character Ranges.
  7799. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7800. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7801. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7802. as_cr_digits='0123456789'
  7803. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7804. ECHO_C= ECHO_N= ECHO_T=
  7805. case `echo -n x` in #(((((
  7806. -n*)
  7807. case `echo 'xy\c'` in
  7808. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7809. xy) ECHO_C='\c';;
  7810. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7811. ECHO_T=' ';;
  7812. esac;;
  7813. *)
  7814. ECHO_N='-n';;
  7815. esac
  7816. rm -f conf$$ conf$$.exe conf$$.file
  7817. if test -d conf$$.dir; then
  7818. rm -f conf$$.dir/conf$$.file
  7819. else
  7820. rm -f conf$$.dir
  7821. mkdir conf$$.dir 2>/dev/null
  7822. fi
  7823. if (echo >conf$$.file) 2>/dev/null; then
  7824. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7825. as_ln_s='ln -s'
  7826. # ... but there are two gotchas:
  7827. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7828. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7829. # In both cases, we have to default to `cp -pR'.
  7830. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7831. as_ln_s='cp -pR'
  7832. elif ln conf$$.file conf$$ 2>/dev/null; then
  7833. as_ln_s=ln
  7834. else
  7835. as_ln_s='cp -pR'
  7836. fi
  7837. else
  7838. as_ln_s='cp -pR'
  7839. fi
  7840. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7841. rmdir conf$$.dir 2>/dev/null
  7842. # as_fn_mkdir_p
  7843. # -------------
  7844. # Create "$as_dir" as a directory, including parents if necessary.
  7845. as_fn_mkdir_p ()
  7846. {
  7847. case $as_dir in #(
  7848. -*) as_dir=./$as_dir;;
  7849. esac
  7850. test -d "$as_dir" || eval $as_mkdir_p || {
  7851. as_dirs=
  7852. while :; do
  7853. case $as_dir in #(
  7854. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7855. *) as_qdir=$as_dir;;
  7856. esac
  7857. as_dirs="'$as_qdir' $as_dirs"
  7858. as_dir=`$as_dirname -- "$as_dir" ||
  7859. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7860. X"$as_dir" : 'X\(//\)[^/]' \| \
  7861. X"$as_dir" : 'X\(//\)$' \| \
  7862. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7863. $as_echo X"$as_dir" |
  7864. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7865. s//\1/
  7866. q
  7867. }
  7868. /^X\(\/\/\)[^/].*/{
  7869. s//\1/
  7870. q
  7871. }
  7872. /^X\(\/\/\)$/{
  7873. s//\1/
  7874. q
  7875. }
  7876. /^X\(\/\).*/{
  7877. s//\1/
  7878. q
  7879. }
  7880. s/.*/./; q'`
  7881. test -d "$as_dir" && break
  7882. done
  7883. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7884. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7885. } # as_fn_mkdir_p
  7886. if mkdir -p . 2>/dev/null; then
  7887. as_mkdir_p='mkdir -p "$as_dir"'
  7888. else
  7889. test -d ./-p && rmdir ./-p
  7890. as_mkdir_p=false
  7891. fi
  7892. # as_fn_executable_p FILE
  7893. # -----------------------
  7894. # Test if FILE is an executable regular file.
  7895. as_fn_executable_p ()
  7896. {
  7897. test -f "$1" && test -x "$1"
  7898. } # as_fn_executable_p
  7899. as_test_x='test -x'
  7900. as_executable_p=as_fn_executable_p
  7901. # Sed expression to map a string onto a valid CPP name.
  7902. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7903. # Sed expression to map a string onto a valid variable name.
  7904. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7905. exec 6>&1
  7906. ## ----------------------------------- ##
  7907. ## Main body of $CONFIG_STATUS script. ##
  7908. ## ----------------------------------- ##
  7909. _ASEOF
  7910. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7911. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7912. # Save the log message, to keep $0 and so on meaningful, and to
  7913. # report actual input values of CONFIG_FILES etc. instead of their
  7914. # values after options handling.
  7915. ac_log="
  7916. This file was extended by $as_me, which was
  7917. generated by GNU Autoconf 2.69. Invocation command line was
  7918. CONFIG_FILES = $CONFIG_FILES
  7919. CONFIG_HEADERS = $CONFIG_HEADERS
  7920. CONFIG_LINKS = $CONFIG_LINKS
  7921. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7922. $ $0 $@
  7923. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7924. "
  7925. _ACEOF
  7926. case $ac_config_files in *"
  7927. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7928. esac
  7929. case $ac_config_headers in *"
  7930. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7931. esac
  7932. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7933. # Files that build/config.status was made for.
  7934. config_files="$ac_config_files"
  7935. config_headers="$ac_config_headers"
  7936. _ACEOF
  7937. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7938. ac_cs_usage="\
  7939. \`$as_me' instantiates files and other configuration actions
  7940. from templates according to the current configuration. Unless the files
  7941. and actions are specified as TAGs, all are instantiated by default.
  7942. Usage: $0 [OPTION]... [TAG]...
  7943. -h, --help print this help, then exit
  7944. -V, --version print version number and configuration settings, then exit
  7945. --config print configuration, then exit
  7946. -q, --quiet, --silent
  7947. do not print progress messages
  7948. -d, --debug don't remove temporary files
  7949. --recheck update $as_me by reconfiguring in the same conditions
  7950. --file=FILE[:TEMPLATE]
  7951. instantiate the configuration file FILE
  7952. --header=FILE[:TEMPLATE]
  7953. instantiate the configuration header FILE
  7954. Configuration files:
  7955. $config_files
  7956. Configuration headers:
  7957. $config_headers
  7958. Report bugs to the package provider."
  7959. _ACEOF
  7960. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7961. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7962. ac_cs_version="\\
  7963. build/config.status
  7964. configured by $0, generated by GNU Autoconf 2.69,
  7965. with options \\"\$ac_cs_config\\"
  7966. Copyright (C) 2012 Free Software Foundation, Inc.
  7967. This build/config.status script is free software; the Free Software Foundation
  7968. gives unlimited permission to copy, distribute and modify it."
  7969. ac_pwd='$ac_pwd'
  7970. srcdir='$srcdir'
  7971. AWK='$AWK'
  7972. test -n "\$AWK" || AWK=awk
  7973. _ACEOF
  7974. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7975. # The default lists apply if the user does not specify any file.
  7976. ac_need_defaults=:
  7977. while test $# != 0
  7978. do
  7979. case $1 in
  7980. --*=?*)
  7981. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7982. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7983. ac_shift=:
  7984. ;;
  7985. --*=)
  7986. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7987. ac_optarg=
  7988. ac_shift=:
  7989. ;;
  7990. *)
  7991. ac_option=$1
  7992. ac_optarg=$2
  7993. ac_shift=shift
  7994. ;;
  7995. esac
  7996. case $ac_option in
  7997. # Handling of the options.
  7998. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7999. ac_cs_recheck=: ;;
  8000. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8001. $as_echo "$ac_cs_version"; exit ;;
  8002. --config | --confi | --conf | --con | --co | --c )
  8003. $as_echo "$ac_cs_config"; exit ;;
  8004. --debug | --debu | --deb | --de | --d | -d )
  8005. debug=: ;;
  8006. --file | --fil | --fi | --f )
  8007. $ac_shift
  8008. case $ac_optarg in
  8009. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8010. '') as_fn_error $? "missing file argument" ;;
  8011. esac
  8012. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8013. ac_need_defaults=false;;
  8014. --header | --heade | --head | --hea )
  8015. $ac_shift
  8016. case $ac_optarg in
  8017. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8018. esac
  8019. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8020. ac_need_defaults=false;;
  8021. --he | --h)
  8022. # Conflict between --help and --header
  8023. as_fn_error $? "ambiguous option: \`$1'
  8024. Try \`$0 --help' for more information.";;
  8025. --help | --hel | -h )
  8026. $as_echo "$ac_cs_usage"; exit ;;
  8027. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8028. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8029. ac_cs_silent=: ;;
  8030. # This is an error.
  8031. -*) as_fn_error $? "unrecognized option: \`$1'
  8032. Try \`$0 --help' for more information." ;;
  8033. *) as_fn_append ac_config_targets " $1"
  8034. ac_need_defaults=false ;;
  8035. esac
  8036. shift
  8037. done
  8038. ac_configure_extra_args=
  8039. if $ac_cs_silent; then
  8040. exec 6>/dev/null
  8041. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8042. fi
  8043. _ACEOF
  8044. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8045. if \$ac_cs_recheck; then
  8046. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8047. shift
  8048. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8049. CONFIG_SHELL='$SHELL'
  8050. export CONFIG_SHELL
  8051. exec "\$@"
  8052. fi
  8053. _ACEOF
  8054. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8055. exec 5>>build/config.log
  8056. {
  8057. echo
  8058. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8059. ## Running $as_me. ##
  8060. _ASBOX
  8061. $as_echo "$ac_log"
  8062. } >&5
  8063. _ACEOF
  8064. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8065. _ACEOF
  8066. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8067. # Handling of arguments.
  8068. for ac_config_target in $ac_config_targets
  8069. do
  8070. case $ac_config_target in
  8071. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8072. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8073. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8074. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8075. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8076. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8077. esac
  8078. done
  8079. # If the user did not use the arguments to specify the items to instantiate,
  8080. # then the envvar interface is used. Set only those that are not.
  8081. # We use the long form for the default assignment because of an extremely
  8082. # bizarre bug on SunOS 4.1.3.
  8083. if $ac_need_defaults; then
  8084. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8085. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8086. fi
  8087. # Have a temporary directory for convenience. Make it in the build tree
  8088. # simply because there is no reason against having it here, and in addition,
  8089. # creating and moving files from /tmp can sometimes cause problems.
  8090. # Hook for its removal unless debugging.
  8091. # Note that there is a small window in which the directory will not be cleaned:
  8092. # after its creation but before its name has been assigned to `$tmp'.
  8093. $debug ||
  8094. {
  8095. tmp= ac_tmp=
  8096. trap 'exit_status=$?
  8097. : "${ac_tmp:=$tmp}"
  8098. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8099. ' 0
  8100. trap 'as_fn_exit 1' 1 2 13 15
  8101. }
  8102. # Create a (secure) tmp directory for tmp files.
  8103. {
  8104. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8105. test -d "$tmp"
  8106. } ||
  8107. {
  8108. tmp=./conf$$-$RANDOM
  8109. (umask 077 && mkdir "$tmp")
  8110. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8111. ac_tmp=$tmp
  8112. # Set up the scripts for CONFIG_FILES section.
  8113. # No need to generate them if there are no CONFIG_FILES.
  8114. # This happens for instance with `./build/config.status config.h'.
  8115. if test -n "$CONFIG_FILES"; then
  8116. ac_cr=`echo X | tr X '\015'`
  8117. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8118. # But we know of no other shell where ac_cr would be empty at this
  8119. # point, so we can use a bashism as a fallback.
  8120. if test "x$ac_cr" = x; then
  8121. eval ac_cr=\$\'\\r\'
  8122. fi
  8123. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8124. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8125. ac_cs_awk_cr='\\r'
  8126. else
  8127. ac_cs_awk_cr=$ac_cr
  8128. fi
  8129. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8130. _ACEOF
  8131. {
  8132. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8133. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8134. echo "_ACEOF"
  8135. } >conf$$subs.sh ||
  8136. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8137. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8138. ac_delim='%!_!# '
  8139. for ac_last_try in false false false false false :; do
  8140. . ./conf$$subs.sh ||
  8141. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8142. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8143. if test $ac_delim_n = $ac_delim_num; then
  8144. break
  8145. elif $ac_last_try; then
  8146. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8147. else
  8148. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8149. fi
  8150. done
  8151. rm -f conf$$subs.sh
  8152. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8153. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8154. _ACEOF
  8155. sed -n '
  8156. h
  8157. s/^/S["/; s/!.*/"]=/
  8158. p
  8159. g
  8160. s/^[^!]*!//
  8161. :repl
  8162. t repl
  8163. s/'"$ac_delim"'$//
  8164. t delim
  8165. :nl
  8166. h
  8167. s/\(.\{148\}\)..*/\1/
  8168. t more1
  8169. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8170. p
  8171. n
  8172. b repl
  8173. :more1
  8174. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8175. p
  8176. g
  8177. s/.\{148\}//
  8178. t nl
  8179. :delim
  8180. h
  8181. s/\(.\{148\}\)..*/\1/
  8182. t more2
  8183. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8184. p
  8185. b
  8186. :more2
  8187. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8188. p
  8189. g
  8190. s/.\{148\}//
  8191. t delim
  8192. ' <conf$$subs.awk | sed '
  8193. /^[^""]/{
  8194. N
  8195. s/\n//
  8196. }
  8197. ' >>$CONFIG_STATUS || ac_write_fail=1
  8198. rm -f conf$$subs.awk
  8199. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8200. _ACAWK
  8201. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8202. for (key in S) S_is_set[key] = 1
  8203. FS = ""
  8204. }
  8205. {
  8206. line = $ 0
  8207. nfields = split(line, field, "@")
  8208. substed = 0
  8209. len = length(field[1])
  8210. for (i = 2; i < nfields; i++) {
  8211. key = field[i]
  8212. keylen = length(key)
  8213. if (S_is_set[key]) {
  8214. value = S[key]
  8215. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8216. len += length(value) + length(field[++i])
  8217. substed = 1
  8218. } else
  8219. len += 1 + keylen
  8220. }
  8221. print line
  8222. }
  8223. _ACAWK
  8224. _ACEOF
  8225. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8226. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8227. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8228. else
  8229. cat
  8230. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8231. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8232. _ACEOF
  8233. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8234. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8235. # trailing colons and then remove the whole line if VPATH becomes empty
  8236. # (actually we leave an empty line to preserve line numbers).
  8237. if test "x$srcdir" = x.; then
  8238. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8239. h
  8240. s///
  8241. s/^/:/
  8242. s/[ ]*$/:/
  8243. s/:\$(srcdir):/:/g
  8244. s/:\${srcdir}:/:/g
  8245. s/:@srcdir@:/:/g
  8246. s/^:*//
  8247. s/:*$//
  8248. x
  8249. s/\(=[ ]*\).*/\1/
  8250. G
  8251. s/\n//
  8252. s/^[^=]*=[ ]*$//
  8253. }'
  8254. fi
  8255. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8256. fi # test -n "$CONFIG_FILES"
  8257. # Set up the scripts for CONFIG_HEADERS section.
  8258. # No need to generate them if there are no CONFIG_HEADERS.
  8259. # This happens for instance with `./build/config.status Makefile'.
  8260. if test -n "$CONFIG_HEADERS"; then
  8261. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8262. BEGIN {
  8263. _ACEOF
  8264. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8265. # here-document in build/config.status, that substitutes the proper values into
  8266. # config.h.in to produce config.h.
  8267. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8268. # handling of long lines.
  8269. ac_delim='%!_!# '
  8270. for ac_last_try in false false :; do
  8271. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8272. if test -z "$ac_tt"; then
  8273. break
  8274. elif $ac_last_try; then
  8275. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8276. else
  8277. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8278. fi
  8279. done
  8280. # For the awk script, D is an array of macro values keyed by name,
  8281. # likewise P contains macro parameters if any. Preserve backslash
  8282. # newline sequences.
  8283. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8284. sed -n '
  8285. s/.\{148\}/&'"$ac_delim"'/g
  8286. t rset
  8287. :rset
  8288. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8289. t def
  8290. d
  8291. :def
  8292. s/\\$//
  8293. t bsnl
  8294. s/["\\]/\\&/g
  8295. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8296. D["\1"]=" \3"/p
  8297. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8298. d
  8299. :bsnl
  8300. s/["\\]/\\&/g
  8301. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8302. D["\1"]=" \3\\\\\\n"\\/p
  8303. t cont
  8304. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8305. t cont
  8306. d
  8307. :cont
  8308. n
  8309. s/.\{148\}/&'"$ac_delim"'/g
  8310. t clear
  8311. :clear
  8312. s/\\$//
  8313. t bsnlc
  8314. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8315. d
  8316. :bsnlc
  8317. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8318. b cont
  8319. ' <build/confdefs.h | sed '
  8320. s/'"$ac_delim"'/"\\\
  8321. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8322. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8323. for (key in D) D_is_set[key] = 1
  8324. FS = ""
  8325. }
  8326. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8327. line = \$ 0
  8328. split(line, arg, " ")
  8329. if (arg[1] == "#") {
  8330. defundef = arg[2]
  8331. mac1 = arg[3]
  8332. } else {
  8333. defundef = substr(arg[1], 2)
  8334. mac1 = arg[2]
  8335. }
  8336. split(mac1, mac2, "(") #)
  8337. macro = mac2[1]
  8338. prefix = substr(line, 1, index(line, defundef) - 1)
  8339. if (D_is_set[macro]) {
  8340. # Preserve the white space surrounding the "#".
  8341. print prefix "define", macro P[macro] D[macro]
  8342. next
  8343. } else {
  8344. # Replace #undef with comments. This is necessary, for example,
  8345. # in the case of _POSIX_SOURCE, which is predefined and required
  8346. # on some systems where configure will not decide to define it.
  8347. if (defundef == "undef") {
  8348. print "/*", prefix defundef, macro, "*/"
  8349. next
  8350. }
  8351. }
  8352. }
  8353. { print }
  8354. _ACAWK
  8355. _ACEOF
  8356. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8357. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8358. fi # test -n "$CONFIG_HEADERS"
  8359. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8360. shift
  8361. for ac_tag
  8362. do
  8363. case $ac_tag in
  8364. :[FHLC]) ac_mode=$ac_tag; continue;;
  8365. esac
  8366. case $ac_mode$ac_tag in
  8367. :[FHL]*:*);;
  8368. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8369. :[FH]-) ac_tag=-:-;;
  8370. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8371. esac
  8372. ac_save_IFS=$IFS
  8373. IFS=:
  8374. set x $ac_tag
  8375. IFS=$ac_save_IFS
  8376. shift
  8377. ac_file=$1
  8378. shift
  8379. case $ac_mode in
  8380. :L) ac_source=$1;;
  8381. :[FH])
  8382. ac_file_inputs=
  8383. for ac_f
  8384. do
  8385. case $ac_f in
  8386. -) ac_f="$ac_tmp/stdin";;
  8387. *) # Look for the file first in the build tree, then in the source tree
  8388. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8389. # because $ac_f cannot contain `:'.
  8390. test -f "$ac_f" ||
  8391. case $ac_f in
  8392. [\\/$]*) false;;
  8393. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8394. esac ||
  8395. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8396. esac
  8397. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8398. as_fn_append ac_file_inputs " '$ac_f'"
  8399. done
  8400. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8401. # use $as_me), people would be surprised to read:
  8402. # /* config.h. Generated by build/config.status. */
  8403. configure_input='Generated from '`
  8404. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8405. `' by configure.'
  8406. if test x"$ac_file" != x-; then
  8407. configure_input="$ac_file. $configure_input"
  8408. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8409. $as_echo "$as_me: creating $ac_file" >&6;}
  8410. fi
  8411. # Neutralize special characters interpreted by sed in replacement strings.
  8412. case $configure_input in #(
  8413. *\&* | *\|* | *\\* )
  8414. ac_sed_conf_input=`$as_echo "$configure_input" |
  8415. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8416. *) ac_sed_conf_input=$configure_input;;
  8417. esac
  8418. case $ac_tag in
  8419. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8420. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8421. esac
  8422. ;;
  8423. esac
  8424. ac_dir=`$as_dirname -- "$ac_file" ||
  8425. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8426. X"$ac_file" : 'X\(//\)[^/]' \| \
  8427. X"$ac_file" : 'X\(//\)$' \| \
  8428. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8429. $as_echo X"$ac_file" |
  8430. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8431. s//\1/
  8432. q
  8433. }
  8434. /^X\(\/\/\)[^/].*/{
  8435. s//\1/
  8436. q
  8437. }
  8438. /^X\(\/\/\)$/{
  8439. s//\1/
  8440. q
  8441. }
  8442. /^X\(\/\).*/{
  8443. s//\1/
  8444. q
  8445. }
  8446. s/.*/./; q'`
  8447. as_dir="$ac_dir"; as_fn_mkdir_p
  8448. ac_builddir=.
  8449. case "$ac_dir" in
  8450. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8451. *)
  8452. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8453. # A ".." for each directory in $ac_dir_suffix.
  8454. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8455. case $ac_top_builddir_sub in
  8456. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8457. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8458. esac ;;
  8459. esac
  8460. ac_abs_top_builddir=$ac_pwd
  8461. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8462. # for backward compatibility:
  8463. ac_top_builddir=$ac_top_build_prefix
  8464. case $srcdir in
  8465. .) # We are building in place.
  8466. ac_srcdir=.
  8467. ac_top_srcdir=$ac_top_builddir_sub
  8468. ac_abs_top_srcdir=$ac_pwd ;;
  8469. [\\/]* | ?:[\\/]* ) # Absolute name.
  8470. ac_srcdir=$srcdir$ac_dir_suffix;
  8471. ac_top_srcdir=$srcdir
  8472. ac_abs_top_srcdir=$srcdir ;;
  8473. *) # Relative name.
  8474. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8475. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8476. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8477. esac
  8478. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8479. case $ac_mode in
  8480. :F)
  8481. #
  8482. # CONFIG_FILE
  8483. #
  8484. _ACEOF
  8485. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8486. # If the template does not know about datarootdir, expand it.
  8487. # FIXME: This hack should be removed a few years after 2.60.
  8488. ac_datarootdir_hack=; ac_datarootdir_seen=
  8489. ac_sed_dataroot='
  8490. /datarootdir/ {
  8491. p
  8492. q
  8493. }
  8494. /@datadir@/p
  8495. /@docdir@/p
  8496. /@infodir@/p
  8497. /@localedir@/p
  8498. /@mandir@/p'
  8499. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8500. *datarootdir*) ac_datarootdir_seen=yes;;
  8501. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8503. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8504. _ACEOF
  8505. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8506. ac_datarootdir_hack='
  8507. s&@datadir@&$datadir&g
  8508. s&@docdir@&$docdir&g
  8509. s&@infodir@&$infodir&g
  8510. s&@localedir@&$localedir&g
  8511. s&@mandir@&$mandir&g
  8512. s&\\\${datarootdir}&$datarootdir&g' ;;
  8513. esac
  8514. _ACEOF
  8515. # Neutralize VPATH when `$srcdir' = `.'.
  8516. # Shell code in configure.ac might set extrasub.
  8517. # FIXME: do we really want to maintain this feature?
  8518. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8519. ac_sed_extra="$ac_vpsub
  8520. $extrasub
  8521. _ACEOF
  8522. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8523. :t
  8524. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8525. s|@configure_input@|$ac_sed_conf_input|;t t
  8526. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8527. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8528. s&@srcdir@&$ac_srcdir&;t t
  8529. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8530. s&@top_srcdir@&$ac_top_srcdir&;t t
  8531. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8532. s&@builddir@&$ac_builddir&;t t
  8533. s&@abs_builddir@&$ac_abs_builddir&;t t
  8534. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8535. $ac_datarootdir_hack
  8536. "
  8537. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8538. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8539. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8540. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8541. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8542. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8544. which seems to be undefined. Please make sure it is defined" >&5
  8545. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8546. which seems to be undefined. Please make sure it is defined" >&2;}
  8547. rm -f "$ac_tmp/stdin"
  8548. case $ac_file in
  8549. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8550. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8551. esac \
  8552. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8553. ;;
  8554. :H)
  8555. #
  8556. # CONFIG_HEADER
  8557. #
  8558. if test x"$ac_file" != x-; then
  8559. {
  8560. $as_echo "/* $configure_input */" \
  8561. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8562. } >"$ac_tmp/config.h" \
  8563. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8564. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8565. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8566. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8567. else
  8568. rm -f "$ac_file"
  8569. mv "$ac_tmp/config.h" "$ac_file" \
  8570. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8571. fi
  8572. else
  8573. $as_echo "/* $configure_input */" \
  8574. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8575. || as_fn_error $? "could not create -" "$LINENO" 5
  8576. fi
  8577. ;;
  8578. esac
  8579. done # for ac_tag
  8580. as_fn_exit 0
  8581. _ACEOF
  8582. ac_clean_files=$ac_clean_files_save
  8583. test $ac_write_fail = 0 ||
  8584. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8585. # configure is writing to build/config.log, and then calls build/config.status.
  8586. # build/config.status does its own redirection, appending to build/config.log.
  8587. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  8588. # by configure, so build/config.status won't be able to write to it; its
  8589. # output is simply discarded. So we exec the FD to /dev/null,
  8590. # effectively closing build/config.log, so it can be properly (re)opened and
  8591. # appended to by build/config.status. When coming back to configure, we
  8592. # need to make the FD available again.
  8593. if test "$no_create" != yes; then
  8594. ac_cs_success=:
  8595. ac_config_status_args=
  8596. test "$silent" = yes &&
  8597. ac_config_status_args="$ac_config_status_args --quiet"
  8598. exec 5>/dev/null
  8599. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8600. exec 5>>build/config.log
  8601. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8602. # would make configure fail if this is the last instruction.
  8603. $ac_cs_success || as_fn_exit 1
  8604. fi
  8605. #
  8606. # CONFIG_SUBDIRS section.
  8607. #
  8608. if test "$no_recursion" != yes; then
  8609. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  8610. # so they do not pile up.
  8611. ac_sub_configure_args=
  8612. ac_prev=
  8613. eval "set x $ac_configure_args"
  8614. shift
  8615. for ac_arg
  8616. do
  8617. if test -n "$ac_prev"; then
  8618. ac_prev=
  8619. continue
  8620. fi
  8621. case $ac_arg in
  8622. -cache-file | --cache-file | --cache-fil | --cache-fi \
  8623. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  8624. ac_prev=cache_file ;;
  8625. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  8626. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  8627. | --c=*)
  8628. ;;
  8629. --config-cache | -C)
  8630. ;;
  8631. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  8632. ac_prev=srcdir ;;
  8633. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  8634. ;;
  8635. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  8636. ac_prev=prefix ;;
  8637. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  8638. ;;
  8639. --disable-option-checking)
  8640. ;;
  8641. *)
  8642. case $ac_arg in
  8643. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8644. esac
  8645. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  8646. esac
  8647. done
  8648. # Always prepend --prefix to ensure using the same prefix
  8649. # in subdir configurations.
  8650. ac_arg="--prefix=$prefix"
  8651. case $ac_arg in
  8652. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8653. esac
  8654. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  8655. # Pass --silent
  8656. if test "$silent" = yes; then
  8657. ac_sub_configure_args="--silent $ac_sub_configure_args"
  8658. fi
  8659. # Always prepend --disable-option-checking to silence warnings, since
  8660. # different subdirs can have different --enable and --with options.
  8661. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  8662. ac_popdir=`pwd`
  8663. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  8664. # Do not complain, so a configure script can configure whichever
  8665. # parts of a large source tree are present.
  8666. test -d "$srcdir/$ac_dir" || continue
  8667. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  8668. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  8669. $as_echo "$ac_msg" >&6
  8670. as_dir="$ac_dir"; as_fn_mkdir_p
  8671. ac_builddir=.
  8672. case "$ac_dir" in
  8673. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8674. *)
  8675. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8676. # A ".." for each directory in $ac_dir_suffix.
  8677. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8678. case $ac_top_builddir_sub in
  8679. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8680. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8681. esac ;;
  8682. esac
  8683. ac_abs_top_builddir=$ac_pwd
  8684. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8685. # for backward compatibility:
  8686. ac_top_builddir=$ac_top_build_prefix
  8687. case $srcdir in
  8688. .) # We are building in place.
  8689. ac_srcdir=.
  8690. ac_top_srcdir=$ac_top_builddir_sub
  8691. ac_abs_top_srcdir=$ac_pwd ;;
  8692. [\\/]* | ?:[\\/]* ) # Absolute name.
  8693. ac_srcdir=$srcdir$ac_dir_suffix;
  8694. ac_top_srcdir=$srcdir
  8695. ac_abs_top_srcdir=$srcdir ;;
  8696. *) # Relative name.
  8697. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8698. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8699. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8700. esac
  8701. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8702. cd "$ac_dir"
  8703. # Check for guested configure; otherwise get Cygnus style configure.
  8704. if test -f "$ac_srcdir/configure.gnu"; then
  8705. ac_sub_configure=$ac_srcdir/configure.gnu
  8706. elif test -f "$ac_srcdir/configure"; then
  8707. ac_sub_configure=$ac_srcdir/configure
  8708. elif test -f "$ac_srcdir/configure.in"; then
  8709. # This should be Cygnus configure.
  8710. ac_sub_configure=$ac_aux_dir/configure
  8711. else
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  8713. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  8714. ac_sub_configure=
  8715. fi
  8716. # The recursion is here.
  8717. if test -n "$ac_sub_configure"; then
  8718. # Make the cache file name correct relative to the subdirectory.
  8719. case $cache_file in
  8720. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  8721. *) # Relative name.
  8722. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  8723. esac
  8724. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  8725. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  8726. # The eval makes quoting arguments work.
  8727. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  8728. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  8729. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  8730. fi
  8731. cd "$ac_popdir"
  8732. done
  8733. fi
  8734. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8736. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8737. fi
  8738. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  8739. SED="$SED" src/generate_defs.sh || exit 1