configure 294 KB

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