configure 291 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572
  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. MOD_UPDIR
  582. NUMVER
  583. VERSION
  584. LIBOBJS
  585. TCL_LIBS
  586. TCL_REQS
  587. DEFAULT_MAKE
  588. TCLINCFN
  589. TCL_INCLUDES
  590. TCLLIBFN
  591. TCLLIB
  592. SSL_LIBS
  593. SSL_INCLUDES
  594. LIBELF_LIB
  595. LIBELF_BUNDLED
  596. EGREP
  597. GREP
  598. DEBCXXFLAGS
  599. STATIC
  600. BUILDARCH
  601. BUILDOS
  602. UNAME
  603. DIFF
  604. STRIP
  605. OBJCOPY
  606. BASENAME
  607. AWK
  608. HEAD_1
  609. SED
  610. SET_MAKE
  611. GCC4DEB
  612. GCC3DEB
  613. GCC3_CXXFLAGS
  614. GCC3_CFLAGS
  615. CCDEPMODE
  616. HAVE_CXX11
  617. CXXCPP
  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_run LINENO
  1370. # ------------------------
  1371. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1372. # that executables *can* be run.
  1373. ac_fn_cxx_try_run ()
  1374. {
  1375. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  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>&5
  1384. ac_status=$?
  1385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1386. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1387. { { case "(($ac_try" in
  1388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1389. *) ac_try_echo=$ac_try;;
  1390. esac
  1391. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1392. $as_echo "$ac_try_echo"; } >&5
  1393. (eval "$ac_try") 2>&5
  1394. ac_status=$?
  1395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1396. test $ac_status = 0; }; }; then :
  1397. ac_retval=0
  1398. else
  1399. $as_echo "$as_me: program exited with status $ac_status" >&5
  1400. $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. ac_retval=$ac_status
  1403. fi
  1404. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1405. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1406. as_fn_set_status $ac_retval
  1407. } # ac_fn_cxx_try_run
  1408. # ac_fn_cxx_try_link LINENO
  1409. # -------------------------
  1410. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1411. ac_fn_cxx_try_link ()
  1412. {
  1413. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1414. rm -f conftest.$ac_objext conftest$ac_exeext
  1415. if { { ac_try="$ac_link"
  1416. case "(($ac_try" in
  1417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1418. *) ac_try_echo=$ac_try;;
  1419. esac
  1420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1421. $as_echo "$ac_try_echo"; } >&5
  1422. (eval "$ac_link") 2>conftest.err
  1423. ac_status=$?
  1424. if test -s conftest.err; then
  1425. grep -v '^ *+' conftest.err >conftest.er1
  1426. cat conftest.er1 >&5
  1427. mv -f conftest.er1 conftest.err
  1428. fi
  1429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1430. test $ac_status = 0; } && {
  1431. test -z "$ac_cxx_werror_flag" ||
  1432. test ! -s conftest.err
  1433. } && test -s conftest$ac_exeext && {
  1434. test "$cross_compiling" = yes ||
  1435. test -x conftest$ac_exeext
  1436. }; then :
  1437. ac_retval=0
  1438. else
  1439. $as_echo "$as_me: failed program was:" >&5
  1440. sed 's/^/| /' conftest.$ac_ext >&5
  1441. ac_retval=1
  1442. fi
  1443. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1444. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1445. # interfere with the next link command; also delete a directory that is
  1446. # left behind by Apple's compiler. We do this before executing the actions.
  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_link
  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. ac_ext=cpp
  2746. ac_cpp='$CXXCPP $CPPFLAGS'
  2747. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2748. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2749. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2751. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2752. if test -z "$CXXCPP"; then
  2753. if ${ac_cv_prog_CXXCPP+:} false; then :
  2754. $as_echo_n "(cached) " >&6
  2755. else
  2756. # Double quotes because CXXCPP needs to be expanded
  2757. for CXXCPP in "$CXX -E" "/lib/cpp"
  2758. do
  2759. ac_preproc_ok=false
  2760. for ac_cxx_preproc_warn_flag in '' yes
  2761. do
  2762. # Use a header file that comes with gcc, so configuring glibc
  2763. # with a fresh cross-compiler works.
  2764. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2765. # <limits.h> exists even on freestanding compilers.
  2766. # On the NeXT, cc -E runs the code through the compiler's parser,
  2767. # not just through cpp. "Syntax error" is here to catch this case.
  2768. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2769. /* end build/confdefs.h. */
  2770. #ifdef __STDC__
  2771. # include <limits.h>
  2772. #else
  2773. # include <assert.h>
  2774. #endif
  2775. Syntax error
  2776. _ACEOF
  2777. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2778. else
  2779. # Broken: fails on valid input.
  2780. continue
  2781. fi
  2782. rm -f conftest.err conftest.i conftest.$ac_ext
  2783. # OK, works on sane cases. Now check whether nonexistent headers
  2784. # can be detected and how.
  2785. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2786. /* end build/confdefs.h. */
  2787. #include <ac_nonexistent.h>
  2788. _ACEOF
  2789. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2790. # Broken: success on invalid input.
  2791. continue
  2792. else
  2793. # Passes both tests.
  2794. ac_preproc_ok=:
  2795. break
  2796. fi
  2797. rm -f conftest.err conftest.i conftest.$ac_ext
  2798. done
  2799. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2800. rm -f conftest.i conftest.err conftest.$ac_ext
  2801. if $ac_preproc_ok; then :
  2802. break
  2803. fi
  2804. done
  2805. ac_cv_prog_CXXCPP=$CXXCPP
  2806. fi
  2807. CXXCPP=$ac_cv_prog_CXXCPP
  2808. else
  2809. ac_cv_prog_CXXCPP=$CXXCPP
  2810. fi
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2812. $as_echo "$CXXCPP" >&6; }
  2813. ac_preproc_ok=false
  2814. for ac_cxx_preproc_warn_flag in '' yes
  2815. do
  2816. # Use a header file that comes with gcc, so configuring glibc
  2817. # with a fresh cross-compiler works.
  2818. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2819. # <limits.h> exists even on freestanding compilers.
  2820. # On the NeXT, cc -E runs the code through the compiler's parser,
  2821. # not just through cpp. "Syntax error" is here to catch this case.
  2822. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2823. /* end build/confdefs.h. */
  2824. #ifdef __STDC__
  2825. # include <limits.h>
  2826. #else
  2827. # include <assert.h>
  2828. #endif
  2829. Syntax error
  2830. _ACEOF
  2831. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2832. else
  2833. # Broken: fails on valid input.
  2834. continue
  2835. fi
  2836. rm -f conftest.err conftest.i conftest.$ac_ext
  2837. # OK, works on sane cases. Now check whether nonexistent headers
  2838. # can be detected and how.
  2839. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2840. /* end build/confdefs.h. */
  2841. #include <ac_nonexistent.h>
  2842. _ACEOF
  2843. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2844. # Broken: success on invalid input.
  2845. continue
  2846. else
  2847. # Passes both tests.
  2848. ac_preproc_ok=:
  2849. break
  2850. fi
  2851. rm -f conftest.err conftest.i conftest.$ac_ext
  2852. done
  2853. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2854. rm -f conftest.i conftest.err conftest.$ac_ext
  2855. if $ac_preproc_ok; then :
  2856. else
  2857. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2858. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2859. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2860. See \`build/config.log' for more details" "$LINENO" 5; }
  2861. fi
  2862. ac_ext=cpp
  2863. ac_cpp='$CXXCPP $CPPFLAGS'
  2864. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2865. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2866. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2867. ax_cxx_compile_cxx11_required=true
  2868. ac_ext=cpp
  2869. ac_cpp='$CXXCPP $CPPFLAGS'
  2870. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2871. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2872. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2873. ac_success=no
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2875. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2876. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2877. $as_echo_n "(cached) " >&6
  2878. else
  2879. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2880. /* end build/confdefs.h. */
  2881. template <typename T>
  2882. struct check
  2883. {
  2884. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2885. };
  2886. struct Base {
  2887. virtual void f() {}
  2888. };
  2889. struct Child : public Base {
  2890. virtual void f() override {}
  2891. };
  2892. typedef check<check<bool>> right_angle_brackets;
  2893. int a;
  2894. decltype(a) b;
  2895. typedef check<int> check_type;
  2896. check_type c;
  2897. check_type&& cr = static_cast<check_type&&>(c);
  2898. auto d = a;
  2899. auto l = [](){};
  2900. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2901. struct use_l { use_l() { l(); } };
  2902. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2903. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2904. namespace test_template_alias_sfinae {
  2905. struct foo {};
  2906. template<typename T>
  2907. using member = typename T::member_type;
  2908. template<typename T>
  2909. void func(...) {}
  2910. template<typename T>
  2911. void func(member<T>*) {}
  2912. void test();
  2913. void test() {
  2914. func<foo>(0);
  2915. }
  2916. }
  2917. _ACEOF
  2918. if ac_fn_cxx_try_compile "$LINENO"; then :
  2919. ax_cv_cxx_compile_cxx11=yes
  2920. else
  2921. ax_cv_cxx_compile_cxx11=no
  2922. fi
  2923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2924. fi
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2926. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2927. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2928. ac_success=yes
  2929. fi
  2930. if test x$ac_success = xno; then
  2931. for switch in -std=c++11 -std=c++0x; do
  2932. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2934. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2935. if eval \${$cachevar+:} false; then :
  2936. $as_echo_n "(cached) " >&6
  2937. else
  2938. ac_save_CXXFLAGS="$CXXFLAGS"
  2939. CXXFLAGS="$CXXFLAGS $switch"
  2940. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2941. /* end build/confdefs.h. */
  2942. template <typename T>
  2943. struct check
  2944. {
  2945. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2946. };
  2947. struct Base {
  2948. virtual void f() {}
  2949. };
  2950. struct Child : public Base {
  2951. virtual void f() override {}
  2952. };
  2953. typedef check<check<bool>> right_angle_brackets;
  2954. int a;
  2955. decltype(a) b;
  2956. typedef check<int> check_type;
  2957. check_type c;
  2958. check_type&& cr = static_cast<check_type&&>(c);
  2959. auto d = a;
  2960. auto l = [](){};
  2961. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2962. struct use_l { use_l() { l(); } };
  2963. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2964. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2965. namespace test_template_alias_sfinae {
  2966. struct foo {};
  2967. template<typename T>
  2968. using member = typename T::member_type;
  2969. template<typename T>
  2970. void func(...) {}
  2971. template<typename T>
  2972. void func(member<T>*) {}
  2973. void test();
  2974. void test() {
  2975. func<foo>(0);
  2976. }
  2977. }
  2978. _ACEOF
  2979. if ac_fn_cxx_try_compile "$LINENO"; then :
  2980. eval $cachevar=yes
  2981. else
  2982. eval $cachevar=no
  2983. fi
  2984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2985. CXXFLAGS="$ac_save_CXXFLAGS"
  2986. fi
  2987. eval ac_res=\$$cachevar
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2989. $as_echo "$ac_res" >&6; }
  2990. if eval test x\$$cachevar = xyes; then
  2991. CXXFLAGS="$CXXFLAGS $switch"
  2992. ac_success=yes
  2993. break
  2994. fi
  2995. done
  2996. fi
  2997. ac_ext=cpp
  2998. ac_cpp='$CXXCPP $CPPFLAGS'
  2999. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3000. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3001. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3002. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3003. if test x$ac_success = xno; then
  3004. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3005. fi
  3006. else
  3007. if test x$ac_success = xno; then
  3008. HAVE_CXX11=0
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3010. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  3011. else
  3012. HAVE_CXX11=1
  3013. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  3014. fi
  3015. fi
  3016. if test "${cross_compiling-x}" = "x"
  3017. then
  3018. cat << 'EOF' >&2
  3019. configure: error:
  3020. This system does not appear to have a working C compiler.
  3021. A working C compiler is required to compile Wraith.
  3022. EOF
  3023. exit 1
  3024. fi
  3025. if test -n "$GXX"; then
  3026. CXXFLAGS="$CXXFLAGS"
  3027. fi
  3028. #checkpoint
  3029. cat >confcache <<\_ACEOF
  3030. # This file is a shell script that caches the results of configure
  3031. # tests run on this system so they can be shared between configure
  3032. # scripts and configure runs, see configure's option --config-cache.
  3033. # It is not useful on other systems. If it contains results you don't
  3034. # want to keep, you may remove or edit it.
  3035. #
  3036. # build/config.status only pays attention to the cache file if you give it
  3037. # the --recheck option to rerun configure.
  3038. #
  3039. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3040. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3041. # following values.
  3042. _ACEOF
  3043. # The following way of writing the cache mishandles newlines in values,
  3044. # but we know of no workaround that is simple, portable, and efficient.
  3045. # So, we kill variables containing newlines.
  3046. # Ultrix sh set writes to stderr and can't be redirected directly,
  3047. # and sets the high bit in the cache file unless we assign to the vars.
  3048. (
  3049. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3050. eval ac_val=\$$ac_var
  3051. case $ac_val in #(
  3052. *${as_nl}*)
  3053. case $ac_var in #(
  3054. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3055. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3056. esac
  3057. case $ac_var in #(
  3058. _ | IFS | as_nl) ;; #(
  3059. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3060. *) { eval $ac_var=; unset $ac_var;} ;;
  3061. esac ;;
  3062. esac
  3063. done
  3064. (set) 2>&1 |
  3065. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3066. *${as_nl}ac_space=\ *)
  3067. # `set' does not quote correctly, so add quotes: double-quote
  3068. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3069. sed -n \
  3070. "s/'/'\\\\''/g;
  3071. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3072. ;; #(
  3073. *)
  3074. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3075. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3076. ;;
  3077. esac |
  3078. sort
  3079. ) |
  3080. sed '
  3081. /^ac_cv_env_/b end
  3082. t clear
  3083. :clear
  3084. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3085. t end
  3086. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3087. :end' >>confcache
  3088. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3089. if test -w "$cache_file"; then
  3090. if test "x$cache_file" != "x/dev/null"; then
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3092. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3093. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3094. cat confcache >"$cache_file"
  3095. else
  3096. case $cache_file in #(
  3097. */* | ?:*)
  3098. mv -f confcache "$cache_file"$$ &&
  3099. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3100. *)
  3101. mv -f confcache "$cache_file" ;;
  3102. esac
  3103. fi
  3104. fi
  3105. else
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3107. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3108. fi
  3109. fi
  3110. rm -f confcache
  3111. # Speedup compile
  3112. if test -n "$GXX" && test -z "$no_wall"; then
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3114. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3115. if ${egg_cv_var_ccwall+:} false; then :
  3116. $as_echo_n "(cached) " >&6
  3117. else
  3118. ac_old_CXXFLAGS="$CXXFLAGS"
  3119. CXXFLAGS="$CXXFLAGS -Wall"
  3120. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3121. /* end build/confdefs.h. */
  3122. int main ()
  3123. {
  3124. return(0);
  3125. }
  3126. _ACEOF
  3127. if ac_fn_cxx_try_compile "$LINENO"; then :
  3128. egg_cv_var_ccwall="yes"
  3129. else
  3130. egg_cv_var_ccwall="no"
  3131. fi
  3132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. CXXFLAGS="$ac_old_CXXFLAGS"
  3134. fi
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3136. $as_echo "$egg_cv_var_ccwall" >&6; }
  3137. if test "$egg_cv_var_ccwall" = "yes"; then
  3138. CXXFLAGS="$CXXFLAGS -Wall"
  3139. fi
  3140. fi
  3141. if test -n "$GXX" && test -z "$no_pipe"; then
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3143. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3144. if ${egg_cv_var_ccpipe+:} false; then :
  3145. $as_echo_n "(cached) " >&6
  3146. else
  3147. ac_old_CXX="$CXX"
  3148. CXX="$CXX -pipe"
  3149. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end build/confdefs.h. */
  3151. int main ()
  3152. {
  3153. return(0);
  3154. }
  3155. _ACEOF
  3156. if ac_fn_cxx_try_compile "$LINENO"; then :
  3157. egg_cv_var_ccpipe="yes"
  3158. else
  3159. egg_cv_var_ccpipe="no"
  3160. fi
  3161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3162. CXX="$ac_old_CXX"
  3163. fi
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3165. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3166. if test "$egg_cv_var_ccpipe" = "yes"; then
  3167. CXX="$CXX -pipe"
  3168. fi
  3169. fi
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3171. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3172. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3173. $as_echo_n "(cached) " >&6
  3174. else
  3175. ac_ext=cpp
  3176. ac_cpp='$CXXCPP $CPPFLAGS'
  3177. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3178. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3179. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3180. ac_saved_flags="$CXXFLAGS"
  3181. CXXFLAGS="-Werror -fcolor-diagnostics"
  3182. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3183. /* end build/confdefs.h. */
  3184. int
  3185. main ()
  3186. {
  3187. ;
  3188. return 0;
  3189. }
  3190. _ACEOF
  3191. if ac_fn_cxx_try_compile "$LINENO"; then :
  3192. ax_cv_prog_cc_colordiagnostics="yes"
  3193. else
  3194. ax_cv_prog_cc_colordiagnostics="no"
  3195. fi
  3196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3197. CXXFLAGS="$ac_saved_flags"
  3198. ac_ext=cpp
  3199. ac_cpp='$CXXCPP $CPPFLAGS'
  3200. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3201. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3202. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3203. fi
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3205. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3206. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3207. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3208. elif [ -n "" ]; then
  3209. cat << 'EOF' >&2
  3210. configure: error:
  3211. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3212. This compile flag is required.
  3213. EOF
  3214. exit 1
  3215. fi
  3216. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3218. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3219. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3220. $as_echo_n "(cached) " >&6
  3221. else
  3222. ac_ext=cpp
  3223. ac_cpp='$CXXCPP $CPPFLAGS'
  3224. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3225. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3226. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3227. ac_saved_flags="$CXXFLAGS"
  3228. CXXFLAGS="-Werror -Wno-invalid-source-encoding"
  3229. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3230. /* end build/confdefs.h. */
  3231. int
  3232. main ()
  3233. {
  3234. ;
  3235. return 0;
  3236. }
  3237. _ACEOF
  3238. if ac_fn_cxx_try_compile "$LINENO"; then :
  3239. ax_cv_prog_cc_invalid_source_encoding="yes"
  3240. else
  3241. ax_cv_prog_cc_invalid_source_encoding="no"
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. CXXFLAGS="$ac_saved_flags"
  3245. ac_ext=cpp
  3246. ac_cpp='$CXXCPP $CPPFLAGS'
  3247. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3248. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3249. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3250. fi
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3252. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3253. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3254. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3255. elif [ -n "" ]; then
  3256. cat << 'EOF' >&2
  3257. configure: error:
  3258. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3259. This compile flag is required.
  3260. EOF
  3261. exit 1
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3264. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3265. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. ac_ext=cpp
  3269. ac_cpp='$CXXCPP $CPPFLAGS'
  3270. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3271. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3272. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3273. ac_saved_flags="$CXXFLAGS"
  3274. CXXFLAGS="-Werror -fstack-protector"
  3275. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3276. /* end build/confdefs.h. */
  3277. int
  3278. main ()
  3279. {
  3280. ;
  3281. return 0;
  3282. }
  3283. _ACEOF
  3284. if ac_fn_cxx_try_compile "$LINENO"; then :
  3285. ax_cv_prog_cc_stackprotector="yes"
  3286. else
  3287. ax_cv_prog_cc_stackprotector="no"
  3288. fi
  3289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3290. CXXFLAGS="$ac_saved_flags"
  3291. ac_ext=cpp
  3292. ac_cpp='$CXXCPP $CPPFLAGS'
  3293. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3294. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3295. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3296. fi
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3298. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3299. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3300. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3301. elif [ -n "" ]; then
  3302. cat << 'EOF' >&2
  3303. configure: error:
  3304. Your OS or C++ compiler does not support -fstack-protector.
  3305. This compile flag is required.
  3306. EOF
  3307. exit 1
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3310. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3311. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3312. $as_echo_n "(cached) " >&6
  3313. else
  3314. ac_ext=cpp
  3315. ac_cpp='$CXXCPP $CPPFLAGS'
  3316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3319. ac_saved_flags="$CXXFLAGS"
  3320. CXXFLAGS="-Werror -fstack-protector-strong"
  3321. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end build/confdefs.h. */
  3323. int
  3324. main ()
  3325. {
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. if ac_fn_cxx_try_compile "$LINENO"; then :
  3331. ax_cv_prog_cc_stackprotectorstrong="yes"
  3332. else
  3333. ax_cv_prog_cc_stackprotectorstrong="no"
  3334. fi
  3335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3336. CXXFLAGS="$ac_saved_flags"
  3337. ac_ext=cpp
  3338. ac_cpp='$CXXCPP $CPPFLAGS'
  3339. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3340. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3341. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3342. fi
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3344. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3345. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3346. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3347. elif [ -n "" ]; then
  3348. cat << 'EOF' >&2
  3349. configure: error:
  3350. Your OS or C++ compiler does not support -fstack-protector-strong.
  3351. This compile flag is required.
  3352. EOF
  3353. exit 1
  3354. fi
  3355. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3356. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3357. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3358. LDFLAGS="${LDFLAGS} -fstack-protector"
  3359. fi
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3361. $as_echo_n "checking whether the compiler understands -Og... " >&6; }
  3362. if ${ax_cv_prog_cc_Og+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. ac_ext=cpp
  3366. ac_cpp='$CXXCPP $CPPFLAGS'
  3367. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3368. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3369. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3370. ac_saved_flags="$CXXFLAGS"
  3371. CXXFLAGS="-Werror -Og"
  3372. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3373. /* end build/confdefs.h. */
  3374. int
  3375. main ()
  3376. {
  3377. ;
  3378. return 0;
  3379. }
  3380. _ACEOF
  3381. if ac_fn_cxx_try_compile "$LINENO"; then :
  3382. ax_cv_prog_cc_Og="yes"
  3383. else
  3384. ax_cv_prog_cc_Og="no"
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3387. CXXFLAGS="$ac_saved_flags"
  3388. ac_ext=cpp
  3389. ac_cpp='$CXXCPP $CPPFLAGS'
  3390. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3391. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3392. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3393. fi
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  3395. $as_echo "$ax_cv_prog_cc_Og" >&6; }
  3396. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  3397. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  3398. elif [ -n "" ]; then
  3399. cat << 'EOF' >&2
  3400. configure: error:
  3401. Your OS or C++ compiler does not support -Og.
  3402. This compile flag is required.
  3403. EOF
  3404. exit 1
  3405. fi
  3406. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  3407. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  3408. fi
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3410. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3411. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. ac_ext=cpp
  3415. ac_cpp='$CXXCPP $CPPFLAGS'
  3416. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3417. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3418. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3419. ac_saved_flags="$CXXFLAGS"
  3420. CXXFLAGS="-Werror -fstack-protector-all"
  3421. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3422. /* end build/confdefs.h. */
  3423. int
  3424. main ()
  3425. {
  3426. ;
  3427. return 0;
  3428. }
  3429. _ACEOF
  3430. if ac_fn_cxx_try_compile "$LINENO"; then :
  3431. ax_cv_prog_cc_stackprotectorall="yes"
  3432. else
  3433. ax_cv_prog_cc_stackprotectorall="no"
  3434. fi
  3435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3436. CXXFLAGS="$ac_saved_flags"
  3437. ac_ext=cpp
  3438. ac_cpp='$CXXCPP $CPPFLAGS'
  3439. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3440. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3441. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3442. fi
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  3444. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3445. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3446. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3447. elif [ -n "" ]; then
  3448. cat << 'EOF' >&2
  3449. configure: error:
  3450. Your OS or C++ compiler does not support -fstack-protector-all.
  3451. This compile flag is required.
  3452. EOF
  3453. exit 1
  3454. fi
  3455. CCDEPMODE=gcc
  3456. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3457. if test $num -ge "3"; then
  3458. CCDEPMODE=gcc3
  3459. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3460. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Wno-format-y2k"
  3461. GCC3_CXXFLAGS="-Woverloaded-virtual"
  3462. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3463. fi
  3464. #checkpoint
  3465. cat >confcache <<\_ACEOF
  3466. # This file is a shell script that caches the results of configure
  3467. # tests run on this system so they can be shared between configure
  3468. # scripts and configure runs, see configure's option --config-cache.
  3469. # It is not useful on other systems. If it contains results you don't
  3470. # want to keep, you may remove or edit it.
  3471. #
  3472. # build/config.status only pays attention to the cache file if you give it
  3473. # the --recheck option to rerun configure.
  3474. #
  3475. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3476. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3477. # following values.
  3478. _ACEOF
  3479. # The following way of writing the cache mishandles newlines in values,
  3480. # but we know of no workaround that is simple, portable, and efficient.
  3481. # So, we kill variables containing newlines.
  3482. # Ultrix sh set writes to stderr and can't be redirected directly,
  3483. # and sets the high bit in the cache file unless we assign to the vars.
  3484. (
  3485. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3486. eval ac_val=\$$ac_var
  3487. case $ac_val in #(
  3488. *${as_nl}*)
  3489. case $ac_var in #(
  3490. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3491. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3492. esac
  3493. case $ac_var in #(
  3494. _ | IFS | as_nl) ;; #(
  3495. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3496. *) { eval $ac_var=; unset $ac_var;} ;;
  3497. esac ;;
  3498. esac
  3499. done
  3500. (set) 2>&1 |
  3501. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3502. *${as_nl}ac_space=\ *)
  3503. # `set' does not quote correctly, so add quotes: double-quote
  3504. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3505. sed -n \
  3506. "s/'/'\\\\''/g;
  3507. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3508. ;; #(
  3509. *)
  3510. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3511. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3512. ;;
  3513. esac |
  3514. sort
  3515. ) |
  3516. sed '
  3517. /^ac_cv_env_/b end
  3518. t clear
  3519. :clear
  3520. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3521. t end
  3522. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3523. :end' >>confcache
  3524. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3525. if test -w "$cache_file"; then
  3526. if test "x$cache_file" != "x/dev/null"; then
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3528. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3529. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3530. cat confcache >"$cache_file"
  3531. else
  3532. case $cache_file in #(
  3533. */* | ?:*)
  3534. mv -f confcache "$cache_file"$$ &&
  3535. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3536. *)
  3537. mv -f confcache "$cache_file" ;;
  3538. esac
  3539. fi
  3540. fi
  3541. else
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3543. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3544. fi
  3545. fi
  3546. rm -f confcache
  3547. # Checks for programs
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3549. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3550. set x ${MAKE-make}
  3551. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3552. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. cat >conftest.make <<\_ACEOF
  3556. SHELL = /bin/sh
  3557. all:
  3558. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3559. _ACEOF
  3560. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3561. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3562. *@@@%%%=?*=@@@%%%*)
  3563. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3564. *)
  3565. eval ac_cv_prog_make_${ac_make}_set=no;;
  3566. esac
  3567. rm -f conftest.make
  3568. fi
  3569. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3571. $as_echo "yes" >&6; }
  3572. SET_MAKE=
  3573. else
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3575. $as_echo "no" >&6; }
  3576. SET_MAKE="MAKE=${MAKE-make}"
  3577. fi
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3579. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3580. if ${ac_cv_path_SED+:} false; then :
  3581. $as_echo_n "(cached) " >&6
  3582. else
  3583. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3584. for ac_i in 1 2 3 4 5 6 7; do
  3585. ac_script="$ac_script$as_nl$ac_script"
  3586. done
  3587. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3588. { ac_script=; unset ac_script;}
  3589. if test -z "$SED"; then
  3590. ac_path_SED_found=false
  3591. # Loop through the user's path and test for each of PROGNAME-LIST
  3592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3593. for as_dir in $PATH
  3594. do
  3595. IFS=$as_save_IFS
  3596. test -z "$as_dir" && as_dir=.
  3597. for ac_prog in sed gsed; do
  3598. for ac_exec_ext in '' $ac_executable_extensions; do
  3599. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3600. as_fn_executable_p "$ac_path_SED" || continue
  3601. # Check for GNU ac_path_SED and select it if it is found.
  3602. # Check for GNU $ac_path_SED
  3603. case `"$ac_path_SED" --version 2>&1` in
  3604. *GNU*)
  3605. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3606. *)
  3607. ac_count=0
  3608. $as_echo_n 0123456789 >"conftest.in"
  3609. while :
  3610. do
  3611. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3612. mv "conftest.tmp" "conftest.in"
  3613. cp "conftest.in" "conftest.nl"
  3614. $as_echo '' >> "conftest.nl"
  3615. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3616. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3617. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3618. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3619. # Best one so far, save it but keep looking for a better one
  3620. ac_cv_path_SED="$ac_path_SED"
  3621. ac_path_SED_max=$ac_count
  3622. fi
  3623. # 10*(2^10) chars as input seems more than enough
  3624. test $ac_count -gt 10 && break
  3625. done
  3626. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3627. esac
  3628. $ac_path_SED_found && break 3
  3629. done
  3630. done
  3631. done
  3632. IFS=$as_save_IFS
  3633. if test -z "$ac_cv_path_SED"; then
  3634. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3635. fi
  3636. else
  3637. ac_cv_path_SED=$SED
  3638. fi
  3639. fi
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3641. $as_echo "$ac_cv_path_SED" >&6; }
  3642. SED="$ac_cv_path_SED"
  3643. rm -f conftest.sed
  3644. cat << 'EOF' > conftest.head
  3645. a
  3646. b
  3647. c
  3648. EOF
  3649. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3650. do
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3652. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3653. if ${ac_cv_prog_HEAD_1+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if test -n "$HEAD_1"
  3657. then
  3658. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3659. else
  3660. if test "`cat conftest.head | $ac_prog`" = "a";
  3661. then
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3663. $as_echo "yes" >&6; }
  3664. ac_cv_prog_HEAD_1=$ac_prog
  3665. else
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3667. $as_echo "no" >&6; }
  3668. fi
  3669. fi
  3670. fi
  3671. test -n "$ac_cv_prog_HEAD_1" && break
  3672. done
  3673. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3674. then
  3675. cat << 'EOF' >&2
  3676. configure: error:
  3677. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3678. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3679. EOF
  3680. exit 1
  3681. fi
  3682. rm -f conftest.head
  3683. HEAD_1=$ac_cv_prog_HEAD_1
  3684. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3685. for ac_prog in gawk mawk nawk awk
  3686. do
  3687. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3688. set dummy $ac_prog; ac_word=$2
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3690. $as_echo_n "checking for $ac_word... " >&6; }
  3691. if ${ac_cv_prog_AWK+:} false; then :
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. if test -n "$AWK"; then
  3695. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3696. else
  3697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3698. for as_dir in $PATH
  3699. do
  3700. IFS=$as_save_IFS
  3701. test -z "$as_dir" && as_dir=.
  3702. for ac_exec_ext in '' $ac_executable_extensions; do
  3703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3704. ac_cv_prog_AWK="$ac_prog"
  3705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3706. break 2
  3707. fi
  3708. done
  3709. done
  3710. IFS=$as_save_IFS
  3711. fi
  3712. fi
  3713. AWK=$ac_cv_prog_AWK
  3714. if test -n "$AWK"; then
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3716. $as_echo "$AWK" >&6; }
  3717. else
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3719. $as_echo "no" >&6; }
  3720. fi
  3721. test -n "$AWK" && break
  3722. done
  3723. if test "${AWK-x}" = "x"
  3724. then
  3725. cat << 'EOF' >&2
  3726. configure: error:
  3727. This system seems to lack a working 'awk' command.
  3728. A working 'awk' command is required to compile Wraith.
  3729. EOF
  3730. exit 1
  3731. fi
  3732. # basename is needed for Tcl library and header checks
  3733. # Extract the first word of "basename", so it can be a program name with args.
  3734. set dummy basename; ac_word=$2
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3736. $as_echo_n "checking for $ac_word... " >&6; }
  3737. if ${ac_cv_prog_BASENAME+:} false; then :
  3738. $as_echo_n "(cached) " >&6
  3739. else
  3740. if test -n "$BASENAME"; then
  3741. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3742. else
  3743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3744. for as_dir in $PATH
  3745. do
  3746. IFS=$as_save_IFS
  3747. test -z "$as_dir" && as_dir=.
  3748. for ac_exec_ext in '' $ac_executable_extensions; do
  3749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3750. ac_cv_prog_BASENAME="basename"
  3751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3752. break 2
  3753. fi
  3754. done
  3755. done
  3756. IFS=$as_save_IFS
  3757. fi
  3758. fi
  3759. BASENAME=$ac_cv_prog_BASENAME
  3760. if test -n "$BASENAME"; then
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3762. $as_echo "$BASENAME" >&6; }
  3763. else
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3765. $as_echo "no" >&6; }
  3766. fi
  3767. if test "${BASENAME-x}" = "x"
  3768. then
  3769. cat << 'EOF' >&2
  3770. configure: error:
  3771. This system seems to lack a working 'basename' command.
  3772. A working 'basename' command is required to compile Wraith.
  3773. EOF
  3774. exit 1
  3775. fi
  3776. # Extract the first word of "objcopy", so it can be a program name with args.
  3777. set dummy objcopy; ac_word=$2
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3779. $as_echo_n "checking for $ac_word... " >&6; }
  3780. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3781. $as_echo_n "(cached) " >&6
  3782. else
  3783. if test -n "$OBJCOPY"; then
  3784. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3785. else
  3786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3787. for as_dir in $PATH
  3788. do
  3789. IFS=$as_save_IFS
  3790. test -z "$as_dir" && as_dir=.
  3791. for ac_exec_ext in '' $ac_executable_extensions; do
  3792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3793. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3795. break 2
  3796. fi
  3797. done
  3798. done
  3799. IFS=$as_save_IFS
  3800. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3801. fi
  3802. fi
  3803. OBJCOPY=$ac_cv_prog_OBJCOPY
  3804. if test -n "$OBJCOPY"; then
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3806. $as_echo "$OBJCOPY" >&6; }
  3807. else
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3809. $as_echo "no" >&6; }
  3810. fi
  3811. # Extract the first word of "strip", so it can be a program name with args.
  3812. set dummy strip; ac_word=$2
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3814. $as_echo_n "checking for $ac_word... " >&6; }
  3815. if ${ac_cv_prog_STRIP+:} false; then :
  3816. $as_echo_n "(cached) " >&6
  3817. else
  3818. if test -n "$STRIP"; then
  3819. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3820. else
  3821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3822. for as_dir in $PATH
  3823. do
  3824. IFS=$as_save_IFS
  3825. test -z "$as_dir" && as_dir=.
  3826. for ac_exec_ext in '' $ac_executable_extensions; do
  3827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3828. ac_cv_prog_STRIP="strip"
  3829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3830. break 2
  3831. fi
  3832. done
  3833. done
  3834. IFS=$as_save_IFS
  3835. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3836. fi
  3837. fi
  3838. STRIP=$ac_cv_prog_STRIP
  3839. if test -n "$STRIP"; then
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3841. $as_echo "$STRIP" >&6; }
  3842. else
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3844. $as_echo "no" >&6; }
  3845. fi
  3846. # Extract the first word of "gdiff", so it can be a program name with args.
  3847. set dummy gdiff; ac_word=$2
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3849. $as_echo_n "checking for $ac_word... " >&6; }
  3850. if ${ac_cv_prog_DIFF+:} false; then :
  3851. $as_echo_n "(cached) " >&6
  3852. else
  3853. if test -n "$DIFF"; then
  3854. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3855. else
  3856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3857. for as_dir in $PATH
  3858. do
  3859. IFS=$as_save_IFS
  3860. test -z "$as_dir" && as_dir=.
  3861. for ac_exec_ext in '' $ac_executable_extensions; do
  3862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3863. ac_cv_prog_DIFF="gdiff"
  3864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3865. break 2
  3866. fi
  3867. done
  3868. done
  3869. IFS=$as_save_IFS
  3870. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3871. fi
  3872. fi
  3873. DIFF=$ac_cv_prog_DIFF
  3874. if test -n "$DIFF"; then
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3876. $as_echo "$DIFF" >&6; }
  3877. else
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3879. $as_echo "no" >&6; }
  3880. fi
  3881. # Extract the first word of "uname", so it can be a program name with args.
  3882. set dummy uname; ac_word=$2
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3884. $as_echo_n "checking for $ac_word... " >&6; }
  3885. if ${ac_cv_prog_UNAME+:} false; then :
  3886. $as_echo_n "(cached) " >&6
  3887. else
  3888. if test -n "$UNAME"; then
  3889. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3890. else
  3891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3892. for as_dir in $PATH
  3893. do
  3894. IFS=$as_save_IFS
  3895. test -z "$as_dir" && as_dir=.
  3896. for ac_exec_ext in '' $ac_executable_extensions; do
  3897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3898. ac_cv_prog_UNAME="uname"
  3899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3900. break 2
  3901. fi
  3902. done
  3903. done
  3904. IFS=$as_save_IFS
  3905. fi
  3906. fi
  3907. UNAME=$ac_cv_prog_UNAME
  3908. if test -n "$UNAME"; then
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3910. $as_echo "$UNAME" >&6; }
  3911. else
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3913. $as_echo "no" >&6; }
  3914. fi
  3915. # Test the os and set the module linking settings
  3916. USE_STATIC=yes
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3918. $as_echo_n "checking system type... " >&6; }
  3919. if ${egg_cv_var_system_type+:} false; then :
  3920. $as_echo_n "(cached) " >&6
  3921. else
  3922. egg_cv_var_system_type=`$UNAME -s`
  3923. fi
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3925. $as_echo "$egg_cv_var_system_type" >&6; }
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3927. $as_echo_n "checking system release... " >&6; }
  3928. if ${egg_cv_var_system_release+:} false; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. egg_cv_var_system_release=`$UNAME -r`
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3934. $as_echo "$egg_cv_var_system_release" >&6; }
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3936. $as_echo_n "checking system machine... " >&6; }
  3937. if ${egg_cv_var_system_machine+:} false; then :
  3938. $as_echo_n "(cached) " >&6
  3939. else
  3940. egg_cv_var_system_machine=`$UNAME -m`
  3941. fi
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3943. $as_echo "$egg_cv_var_system_machine" >&6; }
  3944. BUILDOS="$egg_cv_var_system_type"
  3945. BUILDARCH="$egg_cv_var_system_machine"
  3946. USE_GENERIC_I486="yes"
  3947. case "$egg_cv_var_system_type" in
  3948. BSD/OS)
  3949. ;;
  3950. IRIX)
  3951. ;;
  3952. HP-UX)
  3953. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  3954. ;;
  3955. Ultrix)
  3956. SHELL=/bin/sh5
  3957. ;;
  3958. SINIX*)
  3959. ;;
  3960. BeOS)
  3961. ;;
  3962. Linux)
  3963. ;;
  3964. Lynx)
  3965. ;;
  3966. QNX)
  3967. ;;
  3968. OSF1)
  3969. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3970. V*)
  3971. if test "$AWK" = "gawk"
  3972. then
  3973. AWK=awk
  3974. fi
  3975. ;;
  3976. 1.0|1.1|1.2)
  3977. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3978. ;;
  3979. 1.*)
  3980. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3981. ;;
  3982. *)
  3983. ;;
  3984. esac
  3985. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  3986. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  3987. ;;
  3988. SunOS)
  3989. SUNOS="yes"
  3990. USE_STATIC="no"
  3991. ;;
  3992. Darwin)
  3993. USE_STATIC="no"
  3994. USE_GENERIC_I486="no"
  3995. ;;
  3996. *BSD)
  3997. # FreeBSD/OpenBSD/NetBSD
  3998. ;;
  3999. *)
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4001. $as_echo_n "checking if system is Mach based... " >&6; }
  4002. if test -r /mach
  4003. then
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4005. $as_echo "yes" >&6; }
  4006. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  4007. else
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4009. $as_echo "no" >&6; }
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4011. $as_echo_n "checking if system is QNX... " >&6; }
  4012. if test -r /cmds
  4013. then
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4015. $as_echo "yes" >&6; }
  4016. else
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4018. $as_echo "no" >&6; }
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4020. $as_echo "Something unknown!" >&6; }
  4021. fi
  4022. fi
  4023. ;;
  4024. esac
  4025. case "$egg_cv_var_system_machine" in
  4026. i*)
  4027. if test "$USE_GENERIC_I486" = "yes"; then
  4028. CXX="$CXX -march=i486"
  4029. BUILDARCH="i486"
  4030. fi
  4031. ;;
  4032. *)
  4033. ;;
  4034. esac
  4035. # Check for IPv6 support
  4036. #EGG_IPV6_SUPPORTED
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4038. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4039. # Check whether --enable-ipv6 was given.
  4040. if test "${enable_ipv6+set}" = set; then :
  4041. enableval=$enable_ipv6;
  4042. enable_ipv6=$enableval
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4044. $as_echo "$enableval" >&6; }
  4045. else
  4046. # default if not given is ENABLED
  4047. if test "x$enableval" = "x"; then
  4048. enableval="yes"
  4049. fi
  4050. enable_ipv6=$enableval
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4052. $as_echo "$enableval" >&6; }
  4053. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4054. fi
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4056. $as_echo_n "checking for socklen_t... " >&6; }
  4057. if ${egg_cv_socklen_t+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. if test "$cross_compiling" = yes; then :
  4061. egg_cv_socklen_t=no
  4062. else
  4063. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4064. /* end build/confdefs.h. */
  4065. #include <unistd.h>
  4066. #include <sys/types.h>
  4067. #include <sys/socket.h>
  4068. #include <netinet/in.h>
  4069. #include <arpa/inet.h>
  4070. int main()
  4071. {
  4072. socklen_t test = sizeof(int);
  4073. return 0;
  4074. }
  4075. _ACEOF
  4076. if ac_fn_cxx_try_run "$LINENO"; then :
  4077. egg_cv_socklen_t=yes
  4078. else
  4079. egg_cv_socklen_t=no
  4080. fi
  4081. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4082. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4083. fi
  4084. fi
  4085. if test "$egg_cv_socklen_t" = "yes"; then
  4086. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4088. $as_echo "yes" >&6; }
  4089. else
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4091. $as_echo "no" >&6; }
  4092. fi
  4093. # Check for inconsistent random() functions
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4095. $as_echo_n "checking for random limit... " >&6; }
  4096. case "$egg_cv_var_system_type" in
  4097. SunOS) RMAX=0x7FFFFFFF
  4098. ;;
  4099. *) RMAX=RAND_MAX
  4100. ;;
  4101. esac
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4103. $as_echo "$RMAX" >&6; }
  4104. cat >>build/confdefs.h <<_ACEOF
  4105. #define RANDOM_MAX $RMAX
  4106. _ACEOF
  4107. # Create static binaries
  4108. if test "$USE_STATIC" = "yes"
  4109. then
  4110. if test -n "$GXX"
  4111. then
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4113. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4114. if ${egg_cv_var_ccstatic+:} false; then :
  4115. $as_echo_n "(cached) " >&6
  4116. else
  4117. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4118. /* end build/confdefs.h. */
  4119. int
  4120. main ()
  4121. {
  4122. ;
  4123. return 0;
  4124. }
  4125. _ACEOF
  4126. if ac_fn_cxx_try_compile "$LINENO"; then :
  4127. egg_cv_var_ccstatic="yes"
  4128. else
  4129. egg_cv_var_ccstatic="no"
  4130. fi
  4131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4132. fi
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4134. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4135. if ! test "$egg_cv_var_ccstatic" = "yes"
  4136. then
  4137. cat << 'EOF' >&2
  4138. configure: error:
  4139. Your OS or C++ compiler does not support -static.
  4140. This compile flag is required for the botpack on this OS.
  4141. EOF
  4142. exit 1
  4143. fi
  4144. fi
  4145. STATIC="-static"
  4146. else
  4147. STATIC=""
  4148. fi
  4149. #checkpoint
  4150. cat >confcache <<\_ACEOF
  4151. # This file is a shell script that caches the results of configure
  4152. # tests run on this system so they can be shared between configure
  4153. # scripts and configure runs, see configure's option --config-cache.
  4154. # It is not useful on other systems. If it contains results you don't
  4155. # want to keep, you may remove or edit it.
  4156. #
  4157. # build/config.status only pays attention to the cache file if you give it
  4158. # the --recheck option to rerun configure.
  4159. #
  4160. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4161. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4162. # following values.
  4163. _ACEOF
  4164. # The following way of writing the cache mishandles newlines in values,
  4165. # but we know of no workaround that is simple, portable, and efficient.
  4166. # So, we kill variables containing newlines.
  4167. # Ultrix sh set writes to stderr and can't be redirected directly,
  4168. # and sets the high bit in the cache file unless we assign to the vars.
  4169. (
  4170. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4171. eval ac_val=\$$ac_var
  4172. case $ac_val in #(
  4173. *${as_nl}*)
  4174. case $ac_var in #(
  4175. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4176. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4177. esac
  4178. case $ac_var in #(
  4179. _ | IFS | as_nl) ;; #(
  4180. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4181. *) { eval $ac_var=; unset $ac_var;} ;;
  4182. esac ;;
  4183. esac
  4184. done
  4185. (set) 2>&1 |
  4186. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4187. *${as_nl}ac_space=\ *)
  4188. # `set' does not quote correctly, so add quotes: double-quote
  4189. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4190. sed -n \
  4191. "s/'/'\\\\''/g;
  4192. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4193. ;; #(
  4194. *)
  4195. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4196. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4197. ;;
  4198. esac |
  4199. sort
  4200. ) |
  4201. sed '
  4202. /^ac_cv_env_/b end
  4203. t clear
  4204. :clear
  4205. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4206. t end
  4207. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4208. :end' >>confcache
  4209. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4210. if test -w "$cache_file"; then
  4211. if test "x$cache_file" != "x/dev/null"; then
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4213. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4214. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4215. cat confcache >"$cache_file"
  4216. else
  4217. case $cache_file in #(
  4218. */* | ?:*)
  4219. mv -f confcache "$cache_file"$$ &&
  4220. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4221. *)
  4222. mv -f confcache "$cache_file" ;;
  4223. esac
  4224. fi
  4225. fi
  4226. else
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4228. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4229. fi
  4230. fi
  4231. rm -f confcache
  4232. # Checks for system libraries
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4234. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4235. if ${ac_cv_lib_socket_socket+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. ac_check_lib_save_LIBS=$LIBS
  4239. LIBS="-lsocket $LIBS"
  4240. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4241. /* end build/confdefs.h. */
  4242. /* Override any GCC internal prototype to avoid an error.
  4243. Use char because int might match the return type of a GCC
  4244. builtin and then its argument prototype would still apply. */
  4245. #ifdef __cplusplus
  4246. extern "C"
  4247. #endif
  4248. char socket ();
  4249. int
  4250. main ()
  4251. {
  4252. return socket ();
  4253. ;
  4254. return 0;
  4255. }
  4256. _ACEOF
  4257. if ac_fn_cxx_try_link "$LINENO"; then :
  4258. ac_cv_lib_socket_socket=yes
  4259. else
  4260. ac_cv_lib_socket_socket=no
  4261. fi
  4262. rm -f core conftest.err conftest.$ac_objext \
  4263. conftest$ac_exeext conftest.$ac_ext
  4264. LIBS=$ac_check_lib_save_LIBS
  4265. fi
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4267. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4268. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4269. cat >>build/confdefs.h <<_ACEOF
  4270. #define HAVE_LIBSOCKET 1
  4271. _ACEOF
  4272. LIBS="-lsocket $LIBS"
  4273. fi
  4274. # AC_CHECK_LIB(nsl, connect)
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4276. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4277. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. ac_check_lib_save_LIBS=$LIBS
  4281. LIBS="-ldl $LIBS"
  4282. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4283. /* end build/confdefs.h. */
  4284. /* Override any GCC internal prototype to avoid an error.
  4285. Use char because int might match the return type of a GCC
  4286. builtin and then its argument prototype would still apply. */
  4287. #ifdef __cplusplus
  4288. extern "C"
  4289. #endif
  4290. char dlopen ();
  4291. int
  4292. main ()
  4293. {
  4294. return dlopen ();
  4295. ;
  4296. return 0;
  4297. }
  4298. _ACEOF
  4299. if ac_fn_cxx_try_link "$LINENO"; then :
  4300. ac_cv_lib_dl_dlopen=yes
  4301. else
  4302. ac_cv_lib_dl_dlopen=no
  4303. fi
  4304. rm -f core conftest.err conftest.$ac_objext \
  4305. conftest$ac_exeext conftest.$ac_ext
  4306. LIBS=$ac_check_lib_save_LIBS
  4307. fi
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4309. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4310. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4311. cat >>build/confdefs.h <<_ACEOF
  4312. #define HAVE_LIBDL 1
  4313. _ACEOF
  4314. LIBS="-ldl $LIBS"
  4315. fi
  4316. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4317. # This is needed for Tcl libraries compiled with thread support
  4318. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4319. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4320. # ac_cv_lib_pthread="-lpthread"], [dnl
  4321. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4322. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4323. # ac_cv_lib_pthread="-lpthread"], [dnl
  4324. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4325. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4326. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4327. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4328. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4329. # ac_cv_lib_pthread=""],
  4330. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4331. if test "$SUNOS" = "yes"; then
  4332. # For suns without yp
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4334. $as_echo_n "checking for main in -ldl... " >&6; }
  4335. if ${ac_cv_lib_dl_main+:} false; then :
  4336. $as_echo_n "(cached) " >&6
  4337. else
  4338. ac_check_lib_save_LIBS=$LIBS
  4339. LIBS="-ldl $LIBS"
  4340. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4341. /* end build/confdefs.h. */
  4342. int
  4343. main ()
  4344. {
  4345. return main ();
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_cxx_try_link "$LINENO"; then :
  4351. ac_cv_lib_dl_main=yes
  4352. else
  4353. ac_cv_lib_dl_main=no
  4354. fi
  4355. rm -f core conftest.err conftest.$ac_objext \
  4356. conftest$ac_exeext conftest.$ac_ext
  4357. LIBS=$ac_check_lib_save_LIBS
  4358. fi
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4360. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4361. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4362. cat >>build/confdefs.h <<_ACEOF
  4363. #define HAVE_LIBDL 1
  4364. _ACEOF
  4365. LIBS="-ldl $LIBS"
  4366. fi
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4368. $as_echo_n "checking for main in -lsocket... " >&6; }
  4369. if ${ac_cv_lib_socket_main+:} false; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. ac_check_lib_save_LIBS=$LIBS
  4373. LIBS="-lsocket $LIBS"
  4374. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4375. /* end build/confdefs.h. */
  4376. int
  4377. main ()
  4378. {
  4379. return main ();
  4380. ;
  4381. return 0;
  4382. }
  4383. _ACEOF
  4384. if ac_fn_cxx_try_link "$LINENO"; then :
  4385. ac_cv_lib_socket_main=yes
  4386. else
  4387. ac_cv_lib_socket_main=no
  4388. fi
  4389. rm -f core conftest.err conftest.$ac_objext \
  4390. conftest$ac_exeext conftest.$ac_ext
  4391. LIBS=$ac_check_lib_save_LIBS
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4394. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4395. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4396. cat >>build/confdefs.h <<_ACEOF
  4397. #define HAVE_LIBSOCKET 1
  4398. _ACEOF
  4399. LIBS="-lsocket $LIBS"
  4400. fi
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4402. $as_echo_n "checking for main in -lnsl... " >&6; }
  4403. if ${ac_cv_lib_nsl_main+:} false; then :
  4404. $as_echo_n "(cached) " >&6
  4405. else
  4406. ac_check_lib_save_LIBS=$LIBS
  4407. LIBS="-lnsl $LIBS"
  4408. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4409. /* end build/confdefs.h. */
  4410. int
  4411. main ()
  4412. {
  4413. return main ();
  4414. ;
  4415. return 0;
  4416. }
  4417. _ACEOF
  4418. if ac_fn_cxx_try_link "$LINENO"; then :
  4419. ac_cv_lib_nsl_main=yes
  4420. else
  4421. ac_cv_lib_nsl_main=no
  4422. fi
  4423. rm -f core conftest.err conftest.$ac_objext \
  4424. conftest$ac_exeext conftest.$ac_ext
  4425. LIBS=$ac_check_lib_save_LIBS
  4426. fi
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4428. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4429. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4430. cat >>build/confdefs.h <<_ACEOF
  4431. #define HAVE_LIBNSL 1
  4432. _ACEOF
  4433. LIBS="-lnsl $LIBS"
  4434. fi
  4435. fi
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4437. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4438. if ${ac_cv_path_GREP+:} false; then :
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. if test -z "$GREP"; then
  4442. ac_path_GREP_found=false
  4443. # Loop through the user's path and test for each of PROGNAME-LIST
  4444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4445. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4446. do
  4447. IFS=$as_save_IFS
  4448. test -z "$as_dir" && as_dir=.
  4449. for ac_prog in grep ggrep; do
  4450. for ac_exec_ext in '' $ac_executable_extensions; do
  4451. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4452. as_fn_executable_p "$ac_path_GREP" || continue
  4453. # Check for GNU ac_path_GREP and select it if it is found.
  4454. # Check for GNU $ac_path_GREP
  4455. case `"$ac_path_GREP" --version 2>&1` in
  4456. *GNU*)
  4457. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4458. *)
  4459. ac_count=0
  4460. $as_echo_n 0123456789 >"conftest.in"
  4461. while :
  4462. do
  4463. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4464. mv "conftest.tmp" "conftest.in"
  4465. cp "conftest.in" "conftest.nl"
  4466. $as_echo 'GREP' >> "conftest.nl"
  4467. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4468. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4469. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4470. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4471. # Best one so far, save it but keep looking for a better one
  4472. ac_cv_path_GREP="$ac_path_GREP"
  4473. ac_path_GREP_max=$ac_count
  4474. fi
  4475. # 10*(2^10) chars as input seems more than enough
  4476. test $ac_count -gt 10 && break
  4477. done
  4478. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4479. esac
  4480. $ac_path_GREP_found && break 3
  4481. done
  4482. done
  4483. done
  4484. IFS=$as_save_IFS
  4485. if test -z "$ac_cv_path_GREP"; then
  4486. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4487. fi
  4488. else
  4489. ac_cv_path_GREP=$GREP
  4490. fi
  4491. fi
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4493. $as_echo "$ac_cv_path_GREP" >&6; }
  4494. GREP="$ac_cv_path_GREP"
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4496. $as_echo_n "checking for egrep... " >&6; }
  4497. if ${ac_cv_path_EGREP+:} false; then :
  4498. $as_echo_n "(cached) " >&6
  4499. else
  4500. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4501. then ac_cv_path_EGREP="$GREP -E"
  4502. else
  4503. if test -z "$EGREP"; then
  4504. ac_path_EGREP_found=false
  4505. # Loop through the user's path and test for each of PROGNAME-LIST
  4506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4507. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4508. do
  4509. IFS=$as_save_IFS
  4510. test -z "$as_dir" && as_dir=.
  4511. for ac_prog in egrep; do
  4512. for ac_exec_ext in '' $ac_executable_extensions; do
  4513. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4514. as_fn_executable_p "$ac_path_EGREP" || continue
  4515. # Check for GNU ac_path_EGREP and select it if it is found.
  4516. # Check for GNU $ac_path_EGREP
  4517. case `"$ac_path_EGREP" --version 2>&1` in
  4518. *GNU*)
  4519. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4520. *)
  4521. ac_count=0
  4522. $as_echo_n 0123456789 >"conftest.in"
  4523. while :
  4524. do
  4525. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4526. mv "conftest.tmp" "conftest.in"
  4527. cp "conftest.in" "conftest.nl"
  4528. $as_echo 'EGREP' >> "conftest.nl"
  4529. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4530. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4531. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4532. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4533. # Best one so far, save it but keep looking for a better one
  4534. ac_cv_path_EGREP="$ac_path_EGREP"
  4535. ac_path_EGREP_max=$ac_count
  4536. fi
  4537. # 10*(2^10) chars as input seems more than enough
  4538. test $ac_count -gt 10 && break
  4539. done
  4540. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4541. esac
  4542. $ac_path_EGREP_found && break 3
  4543. done
  4544. done
  4545. done
  4546. IFS=$as_save_IFS
  4547. if test -z "$ac_cv_path_EGREP"; then
  4548. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4549. fi
  4550. else
  4551. ac_cv_path_EGREP=$EGREP
  4552. fi
  4553. fi
  4554. fi
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4556. $as_echo "$ac_cv_path_EGREP" >&6; }
  4557. EGREP="$ac_cv_path_EGREP"
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4559. $as_echo_n "checking for ANSI C header files... " >&6; }
  4560. if ${ac_cv_header_stdc+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4564. /* end build/confdefs.h. */
  4565. #include <stdlib.h>
  4566. #include <stdarg.h>
  4567. #include <string.h>
  4568. #include <float.h>
  4569. int
  4570. main ()
  4571. {
  4572. ;
  4573. return 0;
  4574. }
  4575. _ACEOF
  4576. if ac_fn_cxx_try_compile "$LINENO"; then :
  4577. ac_cv_header_stdc=yes
  4578. else
  4579. ac_cv_header_stdc=no
  4580. fi
  4581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4582. if test $ac_cv_header_stdc = yes; then
  4583. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4584. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4585. /* end build/confdefs.h. */
  4586. #include <string.h>
  4587. _ACEOF
  4588. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4589. $EGREP "memchr" >/dev/null 2>&1; then :
  4590. else
  4591. ac_cv_header_stdc=no
  4592. fi
  4593. rm -f conftest*
  4594. fi
  4595. if test $ac_cv_header_stdc = yes; then
  4596. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4597. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4598. /* end build/confdefs.h. */
  4599. #include <stdlib.h>
  4600. _ACEOF
  4601. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4602. $EGREP "free" >/dev/null 2>&1; then :
  4603. else
  4604. ac_cv_header_stdc=no
  4605. fi
  4606. rm -f conftest*
  4607. fi
  4608. if test $ac_cv_header_stdc = yes; then
  4609. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4610. if test "$cross_compiling" = yes; then :
  4611. :
  4612. else
  4613. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4614. /* end build/confdefs.h. */
  4615. #include <ctype.h>
  4616. #include <stdlib.h>
  4617. #if ((' ' & 0x0FF) == 0x020)
  4618. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4619. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4620. #else
  4621. # define ISLOWER(c) \
  4622. (('a' <= (c) && (c) <= 'i') \
  4623. || ('j' <= (c) && (c) <= 'r') \
  4624. || ('s' <= (c) && (c) <= 'z'))
  4625. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4626. #endif
  4627. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4628. int
  4629. main ()
  4630. {
  4631. int i;
  4632. for (i = 0; i < 256; i++)
  4633. if (XOR (islower (i), ISLOWER (i))
  4634. || toupper (i) != TOUPPER (i))
  4635. return 2;
  4636. return 0;
  4637. }
  4638. _ACEOF
  4639. if ac_fn_cxx_try_run "$LINENO"; then :
  4640. else
  4641. ac_cv_header_stdc=no
  4642. fi
  4643. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4644. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4645. fi
  4646. fi
  4647. fi
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4649. $as_echo "$ac_cv_header_stdc" >&6; }
  4650. if test $ac_cv_header_stdc = yes; then
  4651. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4652. fi
  4653. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4654. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4655. inttypes.h stdint.h unistd.h
  4656. do :
  4657. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4658. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4659. "
  4660. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4661. cat >>build/confdefs.h <<_ACEOF
  4662. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4663. _ACEOF
  4664. fi
  4665. done
  4666. LIBELF_DIR="\$(top_srcdir)/lib/libelf/lib"
  4667. LIBELF_LIB="${LIBELF_DIR}/libelf.a"
  4668. LIBELF_BUNDLED="${LIBELF_LIB}"
  4669. LIBELF_INCLUDE="-I${LIBELF_DIR}"
  4670. for ac_header in gelf.h libelf.h
  4671. do :
  4672. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4673. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4674. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4675. cat >>build/confdefs.h <<_ACEOF
  4676. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4677. _ACEOF
  4678. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  4679. #include \"gelf.h\"
  4680. #include \"libelf.h\"
  4681. "
  4682. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  4683. cat >>build/confdefs.h <<_ACEOF
  4684. #define HAVE_ELF_NOTE 1
  4685. _ACEOF
  4686. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  4688. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  4689. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. ac_check_lib_save_LIBS=$LIBS
  4693. LIBS="-lelf $LIBS"
  4694. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4695. /* end build/confdefs.h. */
  4696. /* Override any GCC internal prototype to avoid an error.
  4697. Use char because int might match the return type of a GCC
  4698. builtin and then its argument prototype would still apply. */
  4699. #ifdef __cplusplus
  4700. extern "C"
  4701. #endif
  4702. char gelf_getehdr ();
  4703. int
  4704. main ()
  4705. {
  4706. return gelf_getehdr ();
  4707. ;
  4708. return 0;
  4709. }
  4710. _ACEOF
  4711. if ac_fn_cxx_try_link "$LINENO"; then :
  4712. ac_cv_lib_elf_gelf_getehdr=yes
  4713. else
  4714. ac_cv_lib_elf_gelf_getehdr=no
  4715. fi
  4716. rm -f core conftest.err conftest.$ac_objext \
  4717. conftest$ac_exeext conftest.$ac_ext
  4718. LIBS=$ac_check_lib_save_LIBS
  4719. fi
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  4721. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  4722. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  4723. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  4724. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  4725. LIBELF_BUNDLED=
  4726. LIBELF_INCLUDE=
  4727. fi
  4728. fi
  4729. fi
  4730. done
  4731. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  4732. # Checks for header files
  4733. ac_header_dirent=no
  4734. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4735. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4737. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4738. if eval \${$as_ac_Header+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4742. /* end build/confdefs.h. */
  4743. #include <sys/types.h>
  4744. #include <$ac_hdr>
  4745. int
  4746. main ()
  4747. {
  4748. if ((DIR *) 0)
  4749. return 0;
  4750. ;
  4751. return 0;
  4752. }
  4753. _ACEOF
  4754. if ac_fn_cxx_try_compile "$LINENO"; then :
  4755. eval "$as_ac_Header=yes"
  4756. else
  4757. eval "$as_ac_Header=no"
  4758. fi
  4759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4760. fi
  4761. eval ac_res=\$$as_ac_Header
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4763. $as_echo "$ac_res" >&6; }
  4764. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4765. cat >>build/confdefs.h <<_ACEOF
  4766. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4767. _ACEOF
  4768. ac_header_dirent=$ac_hdr; break
  4769. fi
  4770. done
  4771. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4772. if test $ac_header_dirent = dirent.h; then
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4774. $as_echo_n "checking for library containing opendir... " >&6; }
  4775. if ${ac_cv_search_opendir+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. ac_func_search_save_LIBS=$LIBS
  4779. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4780. /* end build/confdefs.h. */
  4781. /* Override any GCC internal prototype to avoid an error.
  4782. Use char because int might match the return type of a GCC
  4783. builtin and then its argument prototype would still apply. */
  4784. #ifdef __cplusplus
  4785. extern "C"
  4786. #endif
  4787. char opendir ();
  4788. int
  4789. main ()
  4790. {
  4791. return opendir ();
  4792. ;
  4793. return 0;
  4794. }
  4795. _ACEOF
  4796. for ac_lib in '' dir; do
  4797. if test -z "$ac_lib"; then
  4798. ac_res="none required"
  4799. else
  4800. ac_res=-l$ac_lib
  4801. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4802. fi
  4803. if ac_fn_cxx_try_link "$LINENO"; then :
  4804. ac_cv_search_opendir=$ac_res
  4805. fi
  4806. rm -f core conftest.err conftest.$ac_objext \
  4807. conftest$ac_exeext
  4808. if ${ac_cv_search_opendir+:} false; then :
  4809. break
  4810. fi
  4811. done
  4812. if ${ac_cv_search_opendir+:} false; then :
  4813. else
  4814. ac_cv_search_opendir=no
  4815. fi
  4816. rm conftest.$ac_ext
  4817. LIBS=$ac_func_search_save_LIBS
  4818. fi
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4820. $as_echo "$ac_cv_search_opendir" >&6; }
  4821. ac_res=$ac_cv_search_opendir
  4822. if test "$ac_res" != no; then :
  4823. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4824. fi
  4825. else
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4827. $as_echo_n "checking for library containing opendir... " >&6; }
  4828. if ${ac_cv_search_opendir+:} false; then :
  4829. $as_echo_n "(cached) " >&6
  4830. else
  4831. ac_func_search_save_LIBS=$LIBS
  4832. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4833. /* end build/confdefs.h. */
  4834. /* Override any GCC internal prototype to avoid an error.
  4835. Use char because int might match the return type of a GCC
  4836. builtin and then its argument prototype would still apply. */
  4837. #ifdef __cplusplus
  4838. extern "C"
  4839. #endif
  4840. char opendir ();
  4841. int
  4842. main ()
  4843. {
  4844. return opendir ();
  4845. ;
  4846. return 0;
  4847. }
  4848. _ACEOF
  4849. for ac_lib in '' x; do
  4850. if test -z "$ac_lib"; then
  4851. ac_res="none required"
  4852. else
  4853. ac_res=-l$ac_lib
  4854. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4855. fi
  4856. if ac_fn_cxx_try_link "$LINENO"; then :
  4857. ac_cv_search_opendir=$ac_res
  4858. fi
  4859. rm -f core conftest.err conftest.$ac_objext \
  4860. conftest$ac_exeext
  4861. if ${ac_cv_search_opendir+:} false; then :
  4862. break
  4863. fi
  4864. done
  4865. if ${ac_cv_search_opendir+:} false; then :
  4866. else
  4867. ac_cv_search_opendir=no
  4868. fi
  4869. rm conftest.$ac_ext
  4870. LIBS=$ac_func_search_save_LIBS
  4871. fi
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4873. $as_echo "$ac_cv_search_opendir" >&6; }
  4874. ac_res=$ac_cv_search_opendir
  4875. if test "$ac_res" != no; then :
  4876. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4877. fi
  4878. fi
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4880. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4881. if ${ac_cv_header_sys_wait_h+:} false; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4885. /* end build/confdefs.h. */
  4886. #include <sys/types.h>
  4887. #include <sys/wait.h>
  4888. #ifndef WEXITSTATUS
  4889. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4890. #endif
  4891. #ifndef WIFEXITED
  4892. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4893. #endif
  4894. int
  4895. main ()
  4896. {
  4897. int s;
  4898. wait (&s);
  4899. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4900. ;
  4901. return 0;
  4902. }
  4903. _ACEOF
  4904. if ac_fn_cxx_try_compile "$LINENO"; then :
  4905. ac_cv_header_sys_wait_h=yes
  4906. else
  4907. ac_cv_header_sys_wait_h=no
  4908. fi
  4909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4910. fi
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4912. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4913. if test $ac_cv_header_sys_wait_h = yes; then
  4914. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  4915. fi
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4917. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4918. if ${ac_cv_header_time+:} false; then :
  4919. $as_echo_n "(cached) " >&6
  4920. else
  4921. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4922. /* end build/confdefs.h. */
  4923. #include <sys/types.h>
  4924. #include <sys/time.h>
  4925. #include <time.h>
  4926. int
  4927. main ()
  4928. {
  4929. if ((struct tm *) 0)
  4930. return 0;
  4931. ;
  4932. return 0;
  4933. }
  4934. _ACEOF
  4935. if ac_fn_cxx_try_compile "$LINENO"; then :
  4936. ac_cv_header_time=yes
  4937. else
  4938. ac_cv_header_time=no
  4939. fi
  4940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4941. fi
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4943. $as_echo "$ac_cv_header_time" >&6; }
  4944. if test $ac_cv_header_time = yes; then
  4945. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  4946. fi
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4948. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4949. if ${ac_cv_header_stat_broken+:} false; then :
  4950. $as_echo_n "(cached) " >&6
  4951. else
  4952. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4953. /* end build/confdefs.h. */
  4954. #include <sys/types.h>
  4955. #include <sys/stat.h>
  4956. #if defined S_ISBLK && defined S_IFDIR
  4957. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4958. #endif
  4959. #if defined S_ISBLK && defined S_IFCHR
  4960. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4961. #endif
  4962. #if defined S_ISLNK && defined S_IFREG
  4963. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4964. #endif
  4965. #if defined S_ISSOCK && defined S_IFREG
  4966. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4967. #endif
  4968. _ACEOF
  4969. if ac_fn_cxx_try_compile "$LINENO"; then :
  4970. ac_cv_header_stat_broken=no
  4971. else
  4972. ac_cv_header_stat_broken=yes
  4973. fi
  4974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4975. fi
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4977. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4978. if test $ac_cv_header_stat_broken = yes; then
  4979. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  4980. fi
  4981. #checkpoint
  4982. cat >confcache <<\_ACEOF
  4983. # This file is a shell script that caches the results of configure
  4984. # tests run on this system so they can be shared between configure
  4985. # scripts and configure runs, see configure's option --config-cache.
  4986. # It is not useful on other systems. If it contains results you don't
  4987. # want to keep, you may remove or edit it.
  4988. #
  4989. # build/config.status only pays attention to the cache file if you give it
  4990. # the --recheck option to rerun configure.
  4991. #
  4992. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4993. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4994. # following values.
  4995. _ACEOF
  4996. # The following way of writing the cache mishandles newlines in values,
  4997. # but we know of no workaround that is simple, portable, and efficient.
  4998. # So, we kill variables containing newlines.
  4999. # Ultrix sh set writes to stderr and can't be redirected directly,
  5000. # and sets the high bit in the cache file unless we assign to the vars.
  5001. (
  5002. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5003. eval ac_val=\$$ac_var
  5004. case $ac_val in #(
  5005. *${as_nl}*)
  5006. case $ac_var in #(
  5007. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5008. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5009. esac
  5010. case $ac_var in #(
  5011. _ | IFS | as_nl) ;; #(
  5012. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5013. *) { eval $ac_var=; unset $ac_var;} ;;
  5014. esac ;;
  5015. esac
  5016. done
  5017. (set) 2>&1 |
  5018. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5019. *${as_nl}ac_space=\ *)
  5020. # `set' does not quote correctly, so add quotes: double-quote
  5021. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5022. sed -n \
  5023. "s/'/'\\\\''/g;
  5024. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5025. ;; #(
  5026. *)
  5027. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5028. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5029. ;;
  5030. esac |
  5031. sort
  5032. ) |
  5033. sed '
  5034. /^ac_cv_env_/b end
  5035. t clear
  5036. :clear
  5037. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5038. t end
  5039. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5040. :end' >>confcache
  5041. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5042. if test -w "$cache_file"; then
  5043. if test "x$cache_file" != "x/dev/null"; then
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5045. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5046. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5047. cat confcache >"$cache_file"
  5048. else
  5049. case $cache_file in #(
  5050. */* | ?:*)
  5051. mv -f confcache "$cache_file"$$ &&
  5052. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5053. *)
  5054. mv -f confcache "$cache_file" ;;
  5055. esac
  5056. fi
  5057. fi
  5058. else
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5060. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5061. fi
  5062. fi
  5063. rm -f confcache
  5064. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5065. do :
  5066. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5067. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5068. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5069. cat >>build/confdefs.h <<_ACEOF
  5070. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5071. _ACEOF
  5072. fi
  5073. done
  5074. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h sys/prctl.h
  5075. do :
  5076. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5077. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5078. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5079. cat >>build/confdefs.h <<_ACEOF
  5080. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5081. _ACEOF
  5082. fi
  5083. done
  5084. #checkpoint
  5085. cat >confcache <<\_ACEOF
  5086. # This file is a shell script that caches the results of configure
  5087. # tests run on this system so they can be shared between configure
  5088. # scripts and configure runs, see configure's option --config-cache.
  5089. # It is not useful on other systems. If it contains results you don't
  5090. # want to keep, you may remove or edit it.
  5091. #
  5092. # build/config.status only pays attention to the cache file if you give it
  5093. # the --recheck option to rerun configure.
  5094. #
  5095. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5096. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5097. # following values.
  5098. _ACEOF
  5099. # The following way of writing the cache mishandles newlines in values,
  5100. # but we know of no workaround that is simple, portable, and efficient.
  5101. # So, we kill variables containing newlines.
  5102. # Ultrix sh set writes to stderr and can't be redirected directly,
  5103. # and sets the high bit in the cache file unless we assign to the vars.
  5104. (
  5105. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5106. eval ac_val=\$$ac_var
  5107. case $ac_val in #(
  5108. *${as_nl}*)
  5109. case $ac_var in #(
  5110. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5111. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5112. esac
  5113. case $ac_var in #(
  5114. _ | IFS | as_nl) ;; #(
  5115. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5116. *) { eval $ac_var=; unset $ac_var;} ;;
  5117. esac ;;
  5118. esac
  5119. done
  5120. (set) 2>&1 |
  5121. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5122. *${as_nl}ac_space=\ *)
  5123. # `set' does not quote correctly, so add quotes: double-quote
  5124. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5125. sed -n \
  5126. "s/'/'\\\\''/g;
  5127. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5128. ;; #(
  5129. *)
  5130. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5131. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5132. ;;
  5133. esac |
  5134. sort
  5135. ) |
  5136. sed '
  5137. /^ac_cv_env_/b end
  5138. t clear
  5139. :clear
  5140. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5141. t end
  5142. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5143. :end' >>confcache
  5144. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5145. if test -w "$cache_file"; then
  5146. if test "x$cache_file" != "x/dev/null"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5148. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5149. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5150. cat confcache >"$cache_file"
  5151. else
  5152. case $cache_file in #(
  5153. */* | ?:*)
  5154. mv -f confcache "$cache_file"$$ &&
  5155. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5156. *)
  5157. mv -f confcache "$cache_file" ;;
  5158. esac
  5159. fi
  5160. fi
  5161. else
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5163. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5164. fi
  5165. fi
  5166. rm -f confcache
  5167. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5168. #AC_CHECK_HEADERS(zlib.h)
  5169. #EGG_CHECK_ZLIB
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5171. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5172. # Check whether --with-openssl was given.
  5173. if test "${with_openssl+set}" = set; then :
  5174. withval=$with_openssl; with_openssl_path=$withval
  5175. else
  5176. with_openssl_path=auto
  5177. fi
  5178. cf_openssl_basedir=""
  5179. if test "$with_openssl_path" != "auto"; then
  5180. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5181. else
  5182. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5183. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5184. cf_openssl_basedir="${dirs}"
  5185. break
  5186. fi
  5187. done
  5188. unset dirs
  5189. fi
  5190. if test ! -z "$cf_openssl_basedir"; then
  5191. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5192. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5193. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5194. else
  5195. cf_openssl_basedir=""
  5196. fi
  5197. else
  5198. if test -f "/usr/include/openssl/opensslv.h" ; then
  5199. cf_openssl_basedir="/usr"
  5200. fi
  5201. fi
  5202. if test ! -z "$cf_openssl_basedir"; then
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5204. $as_echo "$cf_openssl_basedir" >&6; }
  5205. else
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5207. $as_echo "not found" >&6; }
  5208. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5209. fi
  5210. unset cf_openssl_basedir
  5211. save_CXX="$CXX"
  5212. CXX="$CXX $SSL_INCLUDES"
  5213. save_LIBS="$LIBS"
  5214. LIBS="$LIBS $SSL_LIBS"
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5216. $as_echo_n "checking for OpenSSL version... " >&6; }
  5217. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5218. /* end build/confdefs.h. */
  5219. #include <openssl/opensslv.h>
  5220. int
  5221. main ()
  5222. {
  5223. #if !defined(OPENSSL_VERSION_NUMBER)
  5224. #error "Missing openssl version"
  5225. #endif
  5226. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5227. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5228. #endif
  5229. ;
  5230. return 0;
  5231. }
  5232. _ACEOF
  5233. if ac_fn_cxx_try_compile "$LINENO"; then :
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5235. $as_echo "OK" >&6; }
  5236. else
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5238. $as_echo "too old." >&6; }
  5239. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5240. fi
  5241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5242. CXX="$CXX $SSL_LIBS"
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5244. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5245. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5246. $as_echo_n "(cached) " >&6
  5247. else
  5248. ac_check_lib_save_LIBS=$LIBS
  5249. LIBS="-lcrypto $LIBS"
  5250. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5251. /* end build/confdefs.h. */
  5252. /* Override any GCC internal prototype to avoid an error.
  5253. Use char because int might match the return type of a GCC
  5254. builtin and then its argument prototype would still apply. */
  5255. #ifdef __cplusplus
  5256. extern "C"
  5257. #endif
  5258. char AES_encrypt ();
  5259. int
  5260. main ()
  5261. {
  5262. return AES_encrypt ();
  5263. ;
  5264. return 0;
  5265. }
  5266. _ACEOF
  5267. if ac_fn_cxx_try_link "$LINENO"; then :
  5268. ac_cv_lib_crypto_AES_encrypt=yes
  5269. else
  5270. ac_cv_lib_crypto_AES_encrypt=no
  5271. fi
  5272. rm -f core conftest.err conftest.$ac_objext \
  5273. conftest$ac_exeext conftest.$ac_ext
  5274. LIBS=$ac_check_lib_save_LIBS
  5275. fi
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5277. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5278. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5279. if test "$USE_STATIC" = "yes"; then
  5280. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5281. else
  5282. SSL_LIBS="$SSL_LIBS -lcrypto"
  5283. fi
  5284. else
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5286. $as_echo "not found." >&6; }
  5287. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5288. fi
  5289. CXX="$save_CXX"
  5290. LIBS="$save_LIBS"
  5291. cat >>build/confdefs.h <<_ACEOF
  5292. #define EGG_SSL_EXT 1
  5293. _ACEOF
  5294. # TCL checks
  5295. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5296. # found for download.
  5297. tclrecommendver="8.5.X"
  5298. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5299. # Tcl library filename prefixes, suffixes, and search paths.
  5300. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5301. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5302. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5303. tcl7.0 tcl70"
  5304. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5305. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5306. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5307. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5308. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5309. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5310. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5311. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5312. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5313. # Tcl header filenames and search paths.
  5314. tclheadernames="tcl.h"
  5315. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5316. /usr/local/include /usr/include \
  5317. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5318. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5319. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5320. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5321. /usr/local/pkgs/tcl/include /sys/include \
  5322. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5323. # Misc Tcl checks.
  5324. # Check whether --with-tcllib was given.
  5325. if test "${with_tcllib+set}" = set; then :
  5326. withval=$with_tcllib; tcllibname="$withval"
  5327. fi
  5328. # Check whether --with-tclinc was given.
  5329. if test "${with_tclinc+set}" = set; then :
  5330. withval=$with_tclinc; tclincname="$withval"
  5331. fi
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5333. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5334. # Check whether --enable-script-tcl was given.
  5335. if test "${enable_script_tcl+set}" = set; then :
  5336. enableval=$enable_script_tcl;
  5337. enable_script_tcl=$enableval
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5339. $as_echo "$enableval" >&6; }
  5340. else
  5341. # default if not given is ENABLED
  5342. if test "x$enableval" = "x"; then
  5343. enableval="yes"
  5344. fi
  5345. enable_script_tcl=$enableval
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5347. $as_echo "$enableval" >&6; }
  5348. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5349. fi
  5350. WARN=0
  5351. # Make sure either both or neither $tcllibname and $tclincname are set
  5352. if test "x$tcllibname" != x; then
  5353. if test "x$tclincname" = x; then
  5354. WARN=1
  5355. tcllibname=""
  5356. TCLLIB=""
  5357. TCLINC=""
  5358. fi
  5359. else
  5360. if test "x$tclincname" != x; then
  5361. WARN=1
  5362. tclincname=""
  5363. TCLLIB=""
  5364. TCLINC=""
  5365. fi
  5366. fi
  5367. if test "$WARN" = 1; then
  5368. cat << 'EOF' >&2
  5369. configure: WARNING:
  5370. You must specify both --with-tcllib and --with-tclinc for either to work.
  5371. configure will now attempt to autodetect both the Tcl library and header.
  5372. EOF
  5373. fi
  5374. WARN=0
  5375. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5376. if test "x$TCLLIB" != x; then
  5377. if test "x$TCLINC" = x; then
  5378. WARN=1
  5379. WVAR1=TCLLIB
  5380. WVAR2=TCLINC
  5381. TCLLIB=""
  5382. fi
  5383. else
  5384. if test "x$TCLINC" != x; then
  5385. WARN=1
  5386. WVAR1=TCLINC
  5387. WVAR2=TCLLIB
  5388. TCLINC=""
  5389. fi
  5390. fi
  5391. if test "$WARN" = 1; then
  5392. cat << EOF >&2
  5393. configure: WARNING:
  5394. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5395. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5396. configure will now attempt to autodetect both the Tcl library and header.
  5397. EOF
  5398. fi
  5399. # Look for Tcl library: if $tcllibname is set, check there first
  5400. if test "x$tcllibname" != x; then
  5401. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5402. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5403. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5404. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5405. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5406. else
  5407. cat << EOF >&2
  5408. configure: WARNING:
  5409. The file '$tcllibname' given to option --with-tcllib is not valid.
  5410. configure will now attempt to autodetect both the Tcl library and header.
  5411. EOF
  5412. tcllibname=""
  5413. tclincname=""
  5414. TCLLIB=""
  5415. TCLLIBFN=""
  5416. TCLINC=""
  5417. TCLINCFN=""
  5418. fi
  5419. fi
  5420. # Look for Tcl header: if $tclincname is set, check there first
  5421. if test "x$tclincname" != x; then
  5422. if test -f "$tclincname" && test -r "$tclincname"; then
  5423. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5424. TCLINCFN=`$BASENAME $tclincname`
  5425. else
  5426. cat << EOF >&2
  5427. configure: WARNING:
  5428. The file '$tclincname' given to option --with-tclinc is not valid.
  5429. configure will now attempt to autodetect both the Tcl library and header.
  5430. EOF
  5431. tcllibname=""
  5432. tclincname=""
  5433. TCLLIB=""
  5434. TCLLIBFN=""
  5435. TCLINC=""
  5436. TCLINCFN=""
  5437. fi
  5438. fi
  5439. # Look for Tcl library: if $TCLLIB is set, check there first
  5440. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5441. if test -d "$TCLLIB"; then
  5442. for tcllibfns in $tcllibnames; do
  5443. for tcllibext in $tcllibextensions; do
  5444. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5445. TCLLIBFN="${tcllibfns}${tcllibext}"
  5446. TCLLIBEXT="$tcllibext"
  5447. TCLLIBFNS="$tcllibfns"
  5448. break 2
  5449. fi
  5450. done
  5451. done
  5452. fi
  5453. if test "x$TCLLIBFN" = x; then
  5454. cat << 'EOF' >&2
  5455. configure: WARNING:
  5456. Environment variable TCLLIB was set, but incorrectly.
  5457. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5458. configure will now attempt to autodetect both the Tcl library and header.
  5459. EOF
  5460. TCLLIB=""
  5461. TCLLIBFN=""
  5462. TCLINC=""
  5463. TCLINCFN=""
  5464. fi
  5465. fi
  5466. # Look for Tcl header: if $TCLINC is set, check there first
  5467. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5468. if test -d "$TCLINC"; then
  5469. for tclheaderfn in $tclheadernames; do
  5470. if test -r "${TCLINC}/${tclheaderfn}"; then
  5471. TCLINCFN="$tclheaderfn"
  5472. break
  5473. fi
  5474. done
  5475. fi
  5476. if test "x$TCLINCFN" = x; then
  5477. cat << 'EOF' >&2
  5478. configure: WARNING:
  5479. Environment variable TCLINC was set, but incorrectly.
  5480. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5481. configure will now attempt to autodetect both the Tcl library and header.
  5482. EOF
  5483. TCLLIB=""
  5484. TCLLIBFN=""
  5485. TCLINC=""
  5486. TCLINCFN=""
  5487. fi
  5488. fi
  5489. if test "$enable_script_tcl" = "yes"; then
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5491. $as_echo_n "checking for Tcl library... " >&6; }
  5492. # Attempt autodetect for $TCLLIBFN if it's not set
  5493. if test "x$TCLLIBFN" != x; then
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5495. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5496. else
  5497. for tcllibfns in $tcllibnames; do
  5498. for tcllibext in $tcllibextensions; do
  5499. for tcllibpath in $tcllibpaths; do
  5500. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5502. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5503. TCLLIB="$tcllibpath"
  5504. TCLLIBFN="${tcllibfns}${tcllibext}"
  5505. TCLLIBEXT="$tcllibext"
  5506. TCLLIBFNS="$tcllibfns"
  5507. break 3
  5508. fi
  5509. done
  5510. done
  5511. done
  5512. fi
  5513. # Show if $TCLLIBFN wasn't found
  5514. if test "x$TCLLIBFN" = x; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5516. $as_echo "not found" >&6; }
  5517. fi
  5518. fi
  5519. if test "$enable_script_tcl" = "yes"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5521. $as_echo_n "checking for Tcl header... " >&6; }
  5522. # Attempt autodetect for $TCLINCFN if it's not set
  5523. if test "x$TCLINCFN" != x; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5525. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5526. else
  5527. for tclheaderpath in $tclheaderpaths; do
  5528. for tclheaderfn in $tclheadernames; do
  5529. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5531. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5532. TCLINC="$tclheaderpath"
  5533. TCLINCFN="$tclheaderfn"
  5534. break 2
  5535. fi
  5536. done
  5537. done
  5538. # FreeBSD hack ...
  5539. if test "x$TCLINCFN" = x; then
  5540. for tcllibfns in $tcllibnames; do
  5541. for tclheaderpath in $tclheaderpaths; do
  5542. for tclheaderfn in $tclheadernames; do
  5543. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5545. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5546. TCLINC="${tclheaderpath}/${tcllibfns}"
  5547. TCLINCFN="$tclheaderfn"
  5548. break 3
  5549. fi
  5550. done
  5551. done
  5552. done
  5553. fi
  5554. fi
  5555. TCL_INCLUDES=""
  5556. if ! test "x$TCLINC" = x; then
  5557. TCL_INCLUDES="-I$TCLINC"
  5558. fi
  5559. if test "x$TCLINCFN" = x; then
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5561. $as_echo "not found" >&6; }
  5562. fi
  5563. fi
  5564. if test "$enable_script_tcl" = "yes"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5566. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5567. egg_tcl_changed="yes"
  5568. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5569. if test "$egg_tcl_id" != ":::"; then
  5570. egg_tcl_cached="yes"
  5571. if ${egg_cv_var_tcl_id+:} false; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. egg_cv_var_tcl_id="$egg_tcl_id"
  5575. egg_tcl_cached="no"
  5576. fi
  5577. if test "$egg_tcl_cached" = yes; then
  5578. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5579. egg_tcl_changed="no"
  5580. else
  5581. egg_cv_var_tcl_id="$egg_tcl_id"
  5582. fi
  5583. fi
  5584. fi
  5585. if test "$egg_tcl_changed" = yes; then
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5587. $as_echo "yes" >&6; }
  5588. else
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5590. $as_echo "no" >&6; }
  5591. fi
  5592. fi
  5593. if test "$enable_script_tcl" = "yes"; then
  5594. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5595. TCL_FOUND=0
  5596. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5597. TCL_FOUND=1
  5598. # Check Tcl's version
  5599. if test "$egg_tcl_changed" = yes; then
  5600. unset egg_cv_var_tcl_version
  5601. fi
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5603. $as_echo_n "checking for Tcl version... " >&6; }
  5604. if ${egg_cv_var_tcl_version+:} false; then :
  5605. $as_echo_n "(cached) " >&6
  5606. else
  5607. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5608. fi
  5609. if test "x$egg_cv_var_tcl_version" != x; then
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5611. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5612. else
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5614. $as_echo "not found" >&6; }
  5615. TCL_FOUND=0
  5616. fi
  5617. # Check Tcl's patch level (if available)
  5618. if test "$egg_tcl_changed" = yes; then
  5619. unset egg_cv_var_tcl_patch_level
  5620. fi
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5622. $as_echo_n "checking for Tcl patch level... " >&6; }
  5623. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5627. fi
  5628. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5630. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5631. else
  5632. egg_cv_var_tcl_patch_level="unknown"
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5634. $as_echo "unknown" >&6; }
  5635. fi
  5636. fi
  5637. # Check if we found Tcl's version
  5638. if test "$TCL_FOUND" = 0; then
  5639. cat << 'EOF' >&2
  5640. configure: error:
  5641. Tcl cannot be found on this system.
  5642. Tcl is not required. Wraith will be compiled without TCL support. If you
  5643. already have Tcl installed on this system, please specify the path by
  5644. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5645. --with-tclinc='/path/to/tcl.h' options.
  5646. EOF
  5647. enable_script_tcl="no"
  5648. else
  5649. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5650. fi
  5651. fi
  5652. if test "$enable_script_tcl" = "yes"; then
  5653. # Is this version of Tcl too old for us to use ?
  5654. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5655. if test "$TCL_VER_PRE70" = yes; then
  5656. cat << EOF >&2
  5657. configure: error:
  5658. Your Tcl version is much too old for Wraith to use. You should
  5659. download and compile a more recent version. The most reliable
  5660. current version is $tclrecommendver and can be downloaded from
  5661. ${tclrecommendsite}.
  5662. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5663. for more information.
  5664. EOF
  5665. exit 1
  5666. fi
  5667. fi
  5668. # Set variables for Tcl library tests
  5669. TCL_TEST_LIB="$TCLLIBFNS"
  5670. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5671. if test "x$ac_cv_lib_pthread" != x; then
  5672. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5673. fi
  5674. if test "$enable_script_tcl" = "yes"; then
  5675. if test "$egg_tcl_changed" = yes; then
  5676. unset egg_cv_var_tcl_free
  5677. fi
  5678. # Check for Tcl_Free()
  5679. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5681. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5682. if eval \${$as_ac_Lib+:} false; then :
  5683. $as_echo_n "(cached) " >&6
  5684. else
  5685. ac_check_lib_save_LIBS=$LIBS
  5686. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5687. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5688. /* end build/confdefs.h. */
  5689. /* Override any GCC internal prototype to avoid an error.
  5690. Use char because int might match the return type of a GCC
  5691. builtin and then its argument prototype would still apply. */
  5692. #ifdef __cplusplus
  5693. extern "C"
  5694. #endif
  5695. char Tcl_Free ();
  5696. int
  5697. main ()
  5698. {
  5699. return Tcl_Free ();
  5700. ;
  5701. return 0;
  5702. }
  5703. _ACEOF
  5704. if ac_fn_cxx_try_link "$LINENO"; then :
  5705. eval "$as_ac_Lib=yes"
  5706. else
  5707. eval "$as_ac_Lib=no"
  5708. fi
  5709. rm -f core conftest.err conftest.$ac_objext \
  5710. conftest$ac_exeext conftest.$ac_ext
  5711. LIBS=$ac_check_lib_save_LIBS
  5712. fi
  5713. eval ac_res=\$$as_ac_Lib
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5715. $as_echo "$ac_res" >&6; }
  5716. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5717. egg_cv_var_tcl_free="yes"
  5718. else
  5719. egg_cv_var_tcl_free="no"
  5720. fi
  5721. if test "$egg_cv_var_tcl_free" = yes; then
  5722. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5723. fi
  5724. fi
  5725. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5726. #EGG_TCL_CHECK_GETTHREADDATA
  5727. if test "$enable_script_tcl" = "yes"; then
  5728. if test "$egg_tcl_changed" = yes; then
  5729. unset egg_cv_var_tcl_setnotifier
  5730. fi
  5731. # Check for Tcl_SetNotifier()
  5732. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5734. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5735. if eval \${$as_ac_Lib+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. ac_check_lib_save_LIBS=$LIBS
  5739. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5740. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5741. /* end build/confdefs.h. */
  5742. /* Override any GCC internal prototype to avoid an error.
  5743. Use char because int might match the return type of a GCC
  5744. builtin and then its argument prototype would still apply. */
  5745. #ifdef __cplusplus
  5746. extern "C"
  5747. #endif
  5748. char Tcl_SetNotifier ();
  5749. int
  5750. main ()
  5751. {
  5752. return Tcl_SetNotifier ();
  5753. ;
  5754. return 0;
  5755. }
  5756. _ACEOF
  5757. if ac_fn_cxx_try_link "$LINENO"; then :
  5758. eval "$as_ac_Lib=yes"
  5759. else
  5760. eval "$as_ac_Lib=no"
  5761. fi
  5762. rm -f core conftest.err conftest.$ac_objext \
  5763. conftest$ac_exeext conftest.$ac_ext
  5764. LIBS=$ac_check_lib_save_LIBS
  5765. fi
  5766. eval ac_res=\$$as_ac_Lib
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5768. $as_echo "$ac_res" >&6; }
  5769. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5770. egg_cv_var_tcl_setnotifier="yes"
  5771. else
  5772. egg_cv_var_tcl_setnotifier="no"
  5773. fi
  5774. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5775. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5776. fi
  5777. fi
  5778. if test "$enable_script_tcl" = "yes"; then
  5779. if test "$EGG_CYGWIN" = yes; then
  5780. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5781. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5782. else
  5783. if test "$TCLLIBEXT" != ".a"; then
  5784. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5785. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5786. else
  5787. # Set default make as static for unshared Tcl library
  5788. if test "$DEFAULT_MAKE" != static; then
  5789. cat << 'EOF' >&2
  5790. configure: WARNING:
  5791. Your Tcl library is not a shared lib.
  5792. configure will now set default make type to static.
  5793. EOF
  5794. DEFAULT_MAKE="static"
  5795. fi
  5796. # Are we using a pre 7.4 Tcl version ?
  5797. 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"}'`
  5798. if test "$TCL_VER_PRE74" = no; then
  5799. # Was the --with-tcllib option given ?
  5800. if test "x$tcllibname" != x; then
  5801. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5802. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5803. else
  5804. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5805. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5806. fi
  5807. else
  5808. cat << EOF >&2
  5809. configure: WARNING:
  5810. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5811. There are known problems, but we will attempt to work around them.
  5812. EOF
  5813. TCL_REQS="libtcle.a"
  5814. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5815. fi
  5816. fi
  5817. fi
  5818. fi
  5819. cat >confcache <<\_ACEOF
  5820. # This file is a shell script that caches the results of configure
  5821. # tests run on this system so they can be shared between configure
  5822. # scripts and configure runs, see configure's option --config-cache.
  5823. # It is not useful on other systems. If it contains results you don't
  5824. # want to keep, you may remove or edit it.
  5825. #
  5826. # build/config.status only pays attention to the cache file if you give it
  5827. # the --recheck option to rerun configure.
  5828. #
  5829. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5830. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5831. # following values.
  5832. _ACEOF
  5833. # The following way of writing the cache mishandles newlines in values,
  5834. # but we know of no workaround that is simple, portable, and efficient.
  5835. # So, we kill variables containing newlines.
  5836. # Ultrix sh set writes to stderr and can't be redirected directly,
  5837. # and sets the high bit in the cache file unless we assign to the vars.
  5838. (
  5839. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5840. eval ac_val=\$$ac_var
  5841. case $ac_val in #(
  5842. *${as_nl}*)
  5843. case $ac_var in #(
  5844. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5845. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5846. esac
  5847. case $ac_var in #(
  5848. _ | IFS | as_nl) ;; #(
  5849. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5850. *) { eval $ac_var=; unset $ac_var;} ;;
  5851. esac ;;
  5852. esac
  5853. done
  5854. (set) 2>&1 |
  5855. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5856. *${as_nl}ac_space=\ *)
  5857. # `set' does not quote correctly, so add quotes: double-quote
  5858. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5859. sed -n \
  5860. "s/'/'\\\\''/g;
  5861. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5862. ;; #(
  5863. *)
  5864. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5865. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5866. ;;
  5867. esac |
  5868. sort
  5869. ) |
  5870. sed '
  5871. /^ac_cv_env_/b end
  5872. t clear
  5873. :clear
  5874. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5875. t end
  5876. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5877. :end' >>confcache
  5878. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5879. if test -w "$cache_file"; then
  5880. if test "x$cache_file" != "x/dev/null"; then
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5882. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5883. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5884. cat confcache >"$cache_file"
  5885. else
  5886. case $cache_file in #(
  5887. */* | ?:*)
  5888. mv -f confcache "$cache_file"$$ &&
  5889. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5890. *)
  5891. mv -f confcache "$cache_file" ;;
  5892. esac
  5893. fi
  5894. fi
  5895. else
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5897. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5898. fi
  5899. fi
  5900. rm -f confcache
  5901. #AC_SUBST(ZLIB)dnl
  5902. # Checks for typedefs, structures, and compiler characteristics
  5903. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5904. if test "x$ac_cv_type_pid_t" = xyes; then :
  5905. else
  5906. cat >>build/confdefs.h <<_ACEOF
  5907. #define pid_t int
  5908. _ACEOF
  5909. fi
  5910. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5911. if test "x$ac_cv_type_size_t" = xyes; then :
  5912. else
  5913. cat >>build/confdefs.h <<_ACEOF
  5914. #define size_t unsigned int
  5915. _ACEOF
  5916. fi
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5918. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5919. if ${ac_cv_type_uid_t+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5923. /* end build/confdefs.h. */
  5924. #include <sys/types.h>
  5925. _ACEOF
  5926. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5927. $EGREP "uid_t" >/dev/null 2>&1; then :
  5928. ac_cv_type_uid_t=yes
  5929. else
  5930. ac_cv_type_uid_t=no
  5931. fi
  5932. rm -f conftest*
  5933. fi
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5935. $as_echo "$ac_cv_type_uid_t" >&6; }
  5936. if test $ac_cv_type_uid_t = no; then
  5937. $as_echo "#define uid_t int" >>build/confdefs.h
  5938. $as_echo "#define gid_t int" >>build/confdefs.h
  5939. fi
  5940. #AC_C_CONST
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5942. $as_echo_n "checking for working volatile... " >&6; }
  5943. if ${ac_cv_c_volatile+:} false; then :
  5944. $as_echo_n "(cached) " >&6
  5945. else
  5946. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5947. /* end build/confdefs.h. */
  5948. int
  5949. main ()
  5950. {
  5951. volatile int x;
  5952. int * volatile y = (int *) 0;
  5953. return !x && !y;
  5954. ;
  5955. return 0;
  5956. }
  5957. _ACEOF
  5958. if ac_fn_cxx_try_compile "$LINENO"; then :
  5959. ac_cv_c_volatile=yes
  5960. else
  5961. ac_cv_c_volatile=no
  5962. fi
  5963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5964. fi
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5966. $as_echo "$ac_cv_c_volatile" >&6; }
  5967. if test $ac_cv_c_volatile = no; then
  5968. $as_echo "#define volatile /**/" >>build/confdefs.h
  5969. fi
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5971. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5972. if ${ac_cv_c_bigendian+:} false; then :
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. ac_cv_c_bigendian=unknown
  5976. # See if we're dealing with a universal compiler.
  5977. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5978. /* end build/confdefs.h. */
  5979. #ifndef __APPLE_CC__
  5980. not a universal capable compiler
  5981. #endif
  5982. typedef int dummy;
  5983. _ACEOF
  5984. if ac_fn_cxx_try_compile "$LINENO"; then :
  5985. # Check for potential -arch flags. It is not universal unless
  5986. # there are at least two -arch flags with different values.
  5987. ac_arch=
  5988. ac_prev=
  5989. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5990. if test -n "$ac_prev"; then
  5991. case $ac_word in
  5992. i?86 | x86_64 | ppc | ppc64)
  5993. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5994. ac_arch=$ac_word
  5995. else
  5996. ac_cv_c_bigendian=universal
  5997. break
  5998. fi
  5999. ;;
  6000. esac
  6001. ac_prev=
  6002. elif test "x$ac_word" = "x-arch"; then
  6003. ac_prev=arch
  6004. fi
  6005. done
  6006. fi
  6007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6008. if test $ac_cv_c_bigendian = unknown; then
  6009. # See if sys/param.h defines the BYTE_ORDER macro.
  6010. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6011. /* end build/confdefs.h. */
  6012. #include <sys/types.h>
  6013. #include <sys/param.h>
  6014. int
  6015. main ()
  6016. {
  6017. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6018. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6019. && LITTLE_ENDIAN)
  6020. bogus endian macros
  6021. #endif
  6022. ;
  6023. return 0;
  6024. }
  6025. _ACEOF
  6026. if ac_fn_cxx_try_compile "$LINENO"; then :
  6027. # It does; now see whether it defined to BIG_ENDIAN or not.
  6028. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6029. /* end build/confdefs.h. */
  6030. #include <sys/types.h>
  6031. #include <sys/param.h>
  6032. int
  6033. main ()
  6034. {
  6035. #if BYTE_ORDER != BIG_ENDIAN
  6036. not big endian
  6037. #endif
  6038. ;
  6039. return 0;
  6040. }
  6041. _ACEOF
  6042. if ac_fn_cxx_try_compile "$LINENO"; then :
  6043. ac_cv_c_bigendian=yes
  6044. else
  6045. ac_cv_c_bigendian=no
  6046. fi
  6047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6048. fi
  6049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6050. fi
  6051. if test $ac_cv_c_bigendian = unknown; then
  6052. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6053. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6054. /* end build/confdefs.h. */
  6055. #include <limits.h>
  6056. int
  6057. main ()
  6058. {
  6059. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6060. bogus endian macros
  6061. #endif
  6062. ;
  6063. return 0;
  6064. }
  6065. _ACEOF
  6066. if ac_fn_cxx_try_compile "$LINENO"; then :
  6067. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6068. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6069. /* end build/confdefs.h. */
  6070. #include <limits.h>
  6071. int
  6072. main ()
  6073. {
  6074. #ifndef _BIG_ENDIAN
  6075. not big endian
  6076. #endif
  6077. ;
  6078. return 0;
  6079. }
  6080. _ACEOF
  6081. if ac_fn_cxx_try_compile "$LINENO"; then :
  6082. ac_cv_c_bigendian=yes
  6083. else
  6084. ac_cv_c_bigendian=no
  6085. fi
  6086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6087. fi
  6088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6089. fi
  6090. if test $ac_cv_c_bigendian = unknown; then
  6091. # Compile a test program.
  6092. if test "$cross_compiling" = yes; then :
  6093. # Try to guess by grepping values from an object file.
  6094. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6095. /* end build/confdefs.h. */
  6096. short int ascii_mm[] =
  6097. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6098. short int ascii_ii[] =
  6099. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6100. int use_ascii (int i) {
  6101. return ascii_mm[i] + ascii_ii[i];
  6102. }
  6103. short int ebcdic_ii[] =
  6104. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6105. short int ebcdic_mm[] =
  6106. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6107. int use_ebcdic (int i) {
  6108. return ebcdic_mm[i] + ebcdic_ii[i];
  6109. }
  6110. extern int foo;
  6111. int
  6112. main ()
  6113. {
  6114. return use_ascii (foo) == use_ebcdic (foo);
  6115. ;
  6116. return 0;
  6117. }
  6118. _ACEOF
  6119. if ac_fn_cxx_try_compile "$LINENO"; then :
  6120. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6121. ac_cv_c_bigendian=yes
  6122. fi
  6123. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6124. if test "$ac_cv_c_bigendian" = unknown; then
  6125. ac_cv_c_bigendian=no
  6126. else
  6127. # finding both strings is unlikely to happen, but who knows?
  6128. ac_cv_c_bigendian=unknown
  6129. fi
  6130. fi
  6131. fi
  6132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6133. else
  6134. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6135. /* end build/confdefs.h. */
  6136. $ac_includes_default
  6137. int
  6138. main ()
  6139. {
  6140. /* Are we little or big endian? From Harbison&Steele. */
  6141. union
  6142. {
  6143. long int l;
  6144. char c[sizeof (long int)];
  6145. } u;
  6146. u.l = 1;
  6147. return u.c[sizeof (long int) - 1] == 1;
  6148. ;
  6149. return 0;
  6150. }
  6151. _ACEOF
  6152. if ac_fn_cxx_try_run "$LINENO"; then :
  6153. ac_cv_c_bigendian=no
  6154. else
  6155. ac_cv_c_bigendian=yes
  6156. fi
  6157. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6158. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6159. fi
  6160. fi
  6161. fi
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6163. $as_echo "$ac_cv_c_bigendian" >&6; }
  6164. case $ac_cv_c_bigendian in #(
  6165. yes)
  6166. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6167. ;; #(
  6168. no)
  6169. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6170. ;; #(
  6171. universal)
  6172. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6173. ;; #(
  6174. *)
  6175. as_fn_error $? "unknown endianness
  6176. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6177. esac
  6178. #AC_C_INLINE
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6180. $as_echo_n "checking whether char is unsigned... " >&6; }
  6181. if ${ac_cv_c_char_unsigned+:} false; then :
  6182. $as_echo_n "(cached) " >&6
  6183. else
  6184. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6185. /* end build/confdefs.h. */
  6186. $ac_includes_default
  6187. int
  6188. main ()
  6189. {
  6190. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6191. test_array [0] = 0;
  6192. return test_array [0];
  6193. ;
  6194. return 0;
  6195. }
  6196. _ACEOF
  6197. if ac_fn_cxx_try_compile "$LINENO"; then :
  6198. ac_cv_c_char_unsigned=no
  6199. else
  6200. ac_cv_c_char_unsigned=yes
  6201. fi
  6202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6203. fi
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6205. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6206. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6207. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6208. fi
  6209. #AC_C_STRINGIZE
  6210. #AC_C_PROTOTYPES
  6211. #checkpoint
  6212. cat >confcache <<\_ACEOF
  6213. # This file is a shell script that caches the results of configure
  6214. # tests run on this system so they can be shared between configure
  6215. # scripts and configure runs, see configure's option --config-cache.
  6216. # It is not useful on other systems. If it contains results you don't
  6217. # want to keep, you may remove or edit it.
  6218. #
  6219. # build/config.status only pays attention to the cache file if you give it
  6220. # the --recheck option to rerun configure.
  6221. #
  6222. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6223. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6224. # following values.
  6225. _ACEOF
  6226. # The following way of writing the cache mishandles newlines in values,
  6227. # but we know of no workaround that is simple, portable, and efficient.
  6228. # So, we kill variables containing newlines.
  6229. # Ultrix sh set writes to stderr and can't be redirected directly,
  6230. # and sets the high bit in the cache file unless we assign to the vars.
  6231. (
  6232. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6233. eval ac_val=\$$ac_var
  6234. case $ac_val in #(
  6235. *${as_nl}*)
  6236. case $ac_var in #(
  6237. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6238. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6239. esac
  6240. case $ac_var in #(
  6241. _ | IFS | as_nl) ;; #(
  6242. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6243. *) { eval $ac_var=; unset $ac_var;} ;;
  6244. esac ;;
  6245. esac
  6246. done
  6247. (set) 2>&1 |
  6248. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6249. *${as_nl}ac_space=\ *)
  6250. # `set' does not quote correctly, so add quotes: double-quote
  6251. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6252. sed -n \
  6253. "s/'/'\\\\''/g;
  6254. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6255. ;; #(
  6256. *)
  6257. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6258. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6259. ;;
  6260. esac |
  6261. sort
  6262. ) |
  6263. sed '
  6264. /^ac_cv_env_/b end
  6265. t clear
  6266. :clear
  6267. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6268. t end
  6269. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6270. :end' >>confcache
  6271. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6272. if test -w "$cache_file"; then
  6273. if test "x$cache_file" != "x/dev/null"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6275. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6276. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6277. cat confcache >"$cache_file"
  6278. else
  6279. case $cache_file in #(
  6280. */* | ?:*)
  6281. mv -f confcache "$cache_file"$$ &&
  6282. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6283. *)
  6284. mv -f confcache "$cache_file" ;;
  6285. esac
  6286. fi
  6287. fi
  6288. else
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6290. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6291. fi
  6292. fi
  6293. rm -f confcache
  6294. # Checks for typedefs, structures, and compiler characteristics
  6295. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6296. if test "x$ac_cv_type_pid_t" = xyes; then :
  6297. else
  6298. cat >>build/confdefs.h <<_ACEOF
  6299. #define pid_t int
  6300. _ACEOF
  6301. fi
  6302. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6303. if test "x$ac_cv_type_size_t" = xyes; then :
  6304. else
  6305. cat >>build/confdefs.h <<_ACEOF
  6306. #define size_t unsigned int
  6307. _ACEOF
  6308. fi
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6310. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6311. if ${ac_cv_type_uid_t+:} false; then :
  6312. $as_echo_n "(cached) " >&6
  6313. else
  6314. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end build/confdefs.h. */
  6316. #include <sys/types.h>
  6317. _ACEOF
  6318. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6319. $EGREP "uid_t" >/dev/null 2>&1; then :
  6320. ac_cv_type_uid_t=yes
  6321. else
  6322. ac_cv_type_uid_t=no
  6323. fi
  6324. rm -f conftest*
  6325. fi
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6327. $as_echo "$ac_cv_type_uid_t" >&6; }
  6328. if test $ac_cv_type_uid_t = no; then
  6329. $as_echo "#define uid_t int" >>build/confdefs.h
  6330. $as_echo "#define gid_t int" >>build/confdefs.h
  6331. fi
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6333. $as_echo_n "checking for unsigned long long int... " >&6; }
  6334. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6335. $as_echo_n "(cached) " >&6
  6336. else
  6337. ac_cv_type_unsigned_long_long_int=yes
  6338. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6339. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6340. /* end build/confdefs.h. */
  6341. /* For now, do not test the preprocessor; as of 2007 there are too many
  6342. implementations with broken preprocessors. Perhaps this can
  6343. be revisited in 2012. In the meantime, code should not expect
  6344. #if to work with literals wider than 32 bits. */
  6345. /* Test literals. */
  6346. long long int ll = 9223372036854775807ll;
  6347. long long int nll = -9223372036854775807LL;
  6348. unsigned long long int ull = 18446744073709551615ULL;
  6349. /* Test constant expressions. */
  6350. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6351. ? 1 : -1)];
  6352. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6353. ? 1 : -1)];
  6354. int i = 63;
  6355. int
  6356. main ()
  6357. {
  6358. /* Test availability of runtime routines for shift and division. */
  6359. long long int llmax = 9223372036854775807ll;
  6360. unsigned long long int ullmax = 18446744073709551615ull;
  6361. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6362. | (llmax / ll) | (llmax % ll)
  6363. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6364. | (ullmax / ull) | (ullmax % ull));
  6365. ;
  6366. return 0;
  6367. }
  6368. _ACEOF
  6369. if ac_fn_cxx_try_link "$LINENO"; then :
  6370. else
  6371. ac_cv_type_unsigned_long_long_int=no
  6372. fi
  6373. rm -f core conftest.err conftest.$ac_objext \
  6374. conftest$ac_exeext conftest.$ac_ext
  6375. fi
  6376. fi
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6378. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6379. if test $ac_cv_type_unsigned_long_long_int = yes; then
  6380. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  6381. fi
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6383. $as_echo_n "checking for long long int... " >&6; }
  6384. if ${ac_cv_type_long_long_int+:} false; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. ac_cv_type_long_long_int=yes
  6388. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6389. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6390. if test $ac_cv_type_long_long_int = yes; then
  6391. if test "$cross_compiling" = yes; then :
  6392. :
  6393. else
  6394. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6395. /* end build/confdefs.h. */
  6396. #include <limits.h>
  6397. #ifndef LLONG_MAX
  6398. # define HALF \
  6399. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6400. # define LLONG_MAX (HALF - 1 + HALF)
  6401. #endif
  6402. int
  6403. main ()
  6404. {
  6405. long long int n = 1;
  6406. int i;
  6407. for (i = 0; ; i++)
  6408. {
  6409. long long int m = n << i;
  6410. if (m >> i != n)
  6411. return 1;
  6412. if (LLONG_MAX / 2 < m)
  6413. break;
  6414. }
  6415. return 0;
  6416. ;
  6417. return 0;
  6418. }
  6419. _ACEOF
  6420. if ac_fn_cxx_try_run "$LINENO"; then :
  6421. else
  6422. ac_cv_type_long_long_int=no
  6423. fi
  6424. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6425. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6426. fi
  6427. fi
  6428. fi
  6429. fi
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6431. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6432. if test $ac_cv_type_long_long_int = yes; then
  6433. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6434. fi
  6435. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6436. case $ac_cv_c_int8_t in #(
  6437. no|yes) ;; #(
  6438. *)
  6439. cat >>build/confdefs.h <<_ACEOF
  6440. #define int8_t $ac_cv_c_int8_t
  6441. _ACEOF
  6442. ;;
  6443. esac
  6444. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6445. case $ac_cv_c_uint8_t in #(
  6446. no|yes) ;; #(
  6447. *)
  6448. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6449. cat >>build/confdefs.h <<_ACEOF
  6450. #define uint8_t $ac_cv_c_uint8_t
  6451. _ACEOF
  6452. ;;
  6453. esac
  6454. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6455. case $ac_cv_c_int16_t in #(
  6456. no|yes) ;; #(
  6457. *)
  6458. cat >>build/confdefs.h <<_ACEOF
  6459. #define int16_t $ac_cv_c_int16_t
  6460. _ACEOF
  6461. ;;
  6462. esac
  6463. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6464. case $ac_cv_c_uint16_t in #(
  6465. no|yes) ;; #(
  6466. *)
  6467. cat >>build/confdefs.h <<_ACEOF
  6468. #define uint16_t $ac_cv_c_uint16_t
  6469. _ACEOF
  6470. ;;
  6471. esac
  6472. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6473. case $ac_cv_c_int32_t in #(
  6474. no|yes) ;; #(
  6475. *)
  6476. cat >>build/confdefs.h <<_ACEOF
  6477. #define int32_t $ac_cv_c_int32_t
  6478. _ACEOF
  6479. ;;
  6480. esac
  6481. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6482. case $ac_cv_c_uint32_t in #(
  6483. no|yes) ;; #(
  6484. *)
  6485. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6486. cat >>build/confdefs.h <<_ACEOF
  6487. #define uint32_t $ac_cv_c_uint32_t
  6488. _ACEOF
  6489. ;;
  6490. esac
  6491. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6492. case $ac_cv_c_int64_t in #(
  6493. no|yes) ;; #(
  6494. *)
  6495. cat >>build/confdefs.h <<_ACEOF
  6496. #define int64_t $ac_cv_c_int64_t
  6497. _ACEOF
  6498. ;;
  6499. esac
  6500. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6501. case $ac_cv_c_uint64_t in #(
  6502. no|yes) ;; #(
  6503. *)
  6504. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6505. cat >>build/confdefs.h <<_ACEOF
  6506. #define uint64_t $ac_cv_c_uint64_t
  6507. _ACEOF
  6508. ;;
  6509. esac
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6511. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6512. if ${ac_cv_struct_tm+:} false; then :
  6513. $as_echo_n "(cached) " >&6
  6514. else
  6515. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6516. /* end build/confdefs.h. */
  6517. #include <sys/types.h>
  6518. #include <time.h>
  6519. int
  6520. main ()
  6521. {
  6522. struct tm tm;
  6523. int *p = &tm.tm_sec;
  6524. return !p;
  6525. ;
  6526. return 0;
  6527. }
  6528. _ACEOF
  6529. if ac_fn_cxx_try_compile "$LINENO"; then :
  6530. ac_cv_struct_tm=time.h
  6531. else
  6532. ac_cv_struct_tm=sys/time.h
  6533. fi
  6534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6535. fi
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6537. $as_echo "$ac_cv_struct_tm" >&6; }
  6538. if test $ac_cv_struct_tm = sys/time.h; then
  6539. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6540. fi
  6541. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6542. #include <$ac_cv_struct_tm>
  6543. "
  6544. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6545. cat >>build/confdefs.h <<_ACEOF
  6546. #define HAVE_STRUCT_TM_TM_ZONE 1
  6547. _ACEOF
  6548. fi
  6549. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6550. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6551. else
  6552. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6553. "
  6554. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6555. ac_have_decl=1
  6556. else
  6557. ac_have_decl=0
  6558. fi
  6559. cat >>build/confdefs.h <<_ACEOF
  6560. #define HAVE_DECL_TZNAME $ac_have_decl
  6561. _ACEOF
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6563. $as_echo_n "checking for tzname... " >&6; }
  6564. if ${ac_cv_var_tzname+:} false; then :
  6565. $as_echo_n "(cached) " >&6
  6566. else
  6567. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6568. /* end build/confdefs.h. */
  6569. #include <time.h>
  6570. #if !HAVE_DECL_TZNAME
  6571. extern char *tzname[];
  6572. #endif
  6573. int
  6574. main ()
  6575. {
  6576. return tzname[0][0];
  6577. ;
  6578. return 0;
  6579. }
  6580. _ACEOF
  6581. if ac_fn_cxx_try_link "$LINENO"; then :
  6582. ac_cv_var_tzname=yes
  6583. else
  6584. ac_cv_var_tzname=no
  6585. fi
  6586. rm -f core conftest.err conftest.$ac_objext \
  6587. conftest$ac_exeext conftest.$ac_ext
  6588. fi
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6590. $as_echo "$ac_cv_var_tzname" >&6; }
  6591. if test $ac_cv_var_tzname = yes; then
  6592. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6593. fi
  6594. fi
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6596. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6597. if ${ac_cv_struct_tm+:} false; then :
  6598. $as_echo_n "(cached) " >&6
  6599. else
  6600. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6601. /* end build/confdefs.h. */
  6602. #include <sys/types.h>
  6603. #include <time.h>
  6604. int
  6605. main ()
  6606. {
  6607. struct tm tm;
  6608. int *p = &tm.tm_sec;
  6609. return !p;
  6610. ;
  6611. return 0;
  6612. }
  6613. _ACEOF
  6614. if ac_fn_cxx_try_compile "$LINENO"; then :
  6615. ac_cv_struct_tm=time.h
  6616. else
  6617. ac_cv_struct_tm=sys/time.h
  6618. fi
  6619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6620. fi
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6622. $as_echo "$ac_cv_struct_tm" >&6; }
  6623. if test $ac_cv_struct_tm = sys/time.h; then
  6624. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6625. fi
  6626. # Checks for library functions
  6627. for ac_header in vfork.h
  6628. do :
  6629. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6630. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6631. cat >>build/confdefs.h <<_ACEOF
  6632. #define HAVE_VFORK_H 1
  6633. _ACEOF
  6634. fi
  6635. done
  6636. for ac_func in fork vfork
  6637. do :
  6638. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6639. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6640. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6641. cat >>build/confdefs.h <<_ACEOF
  6642. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6643. _ACEOF
  6644. fi
  6645. done
  6646. if test "x$ac_cv_func_fork" = xyes; then
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6648. $as_echo_n "checking for working fork... " >&6; }
  6649. if ${ac_cv_func_fork_works+:} false; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. if test "$cross_compiling" = yes; then :
  6653. ac_cv_func_fork_works=cross
  6654. else
  6655. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6656. /* end build/confdefs.h. */
  6657. $ac_includes_default
  6658. int
  6659. main ()
  6660. {
  6661. /* By Ruediger Kuhlmann. */
  6662. return fork () < 0;
  6663. ;
  6664. return 0;
  6665. }
  6666. _ACEOF
  6667. if ac_fn_cxx_try_run "$LINENO"; then :
  6668. ac_cv_func_fork_works=yes
  6669. else
  6670. ac_cv_func_fork_works=no
  6671. fi
  6672. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6673. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6674. fi
  6675. fi
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6677. $as_echo "$ac_cv_func_fork_works" >&6; }
  6678. else
  6679. ac_cv_func_fork_works=$ac_cv_func_fork
  6680. fi
  6681. if test "x$ac_cv_func_fork_works" = xcross; then
  6682. case $host in
  6683. *-*-amigaos* | *-*-msdosdjgpp*)
  6684. # Override, as these systems have only a dummy fork() stub
  6685. ac_cv_func_fork_works=no
  6686. ;;
  6687. *)
  6688. ac_cv_func_fork_works=yes
  6689. ;;
  6690. esac
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6692. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6693. fi
  6694. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6695. if test "x$ac_cv_func_vfork" = xyes; then
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6697. $as_echo_n "checking for working vfork... " >&6; }
  6698. if ${ac_cv_func_vfork_works+:} false; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. if test "$cross_compiling" = yes; then :
  6702. ac_cv_func_vfork_works=cross
  6703. else
  6704. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6705. /* end build/confdefs.h. */
  6706. /* Thanks to Paul Eggert for this test. */
  6707. $ac_includes_default
  6708. #include <sys/wait.h>
  6709. #ifdef HAVE_VFORK_H
  6710. # include <vfork.h>
  6711. #endif
  6712. /* On some sparc systems, changes by the child to local and incoming
  6713. argument registers are propagated back to the parent. The compiler
  6714. is told about this with #include <vfork.h>, but some compilers
  6715. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6716. static variable whose address is put into a register that is
  6717. clobbered by the vfork. */
  6718. static void
  6719. #ifdef __cplusplus
  6720. sparc_address_test (int arg)
  6721. # else
  6722. sparc_address_test (arg) int arg;
  6723. #endif
  6724. {
  6725. static pid_t child;
  6726. if (!child) {
  6727. child = vfork ();
  6728. if (child < 0) {
  6729. perror ("vfork");
  6730. _exit(2);
  6731. }
  6732. if (!child) {
  6733. arg = getpid();
  6734. write(-1, "", 0);
  6735. _exit (arg);
  6736. }
  6737. }
  6738. }
  6739. int
  6740. main ()
  6741. {
  6742. pid_t parent = getpid ();
  6743. pid_t child;
  6744. sparc_address_test (0);
  6745. child = vfork ();
  6746. if (child == 0) {
  6747. /* Here is another test for sparc vfork register problems. This
  6748. test uses lots of local variables, at least as many local
  6749. variables as main has allocated so far including compiler
  6750. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6751. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6752. reuse the register of parent for one of the local variables,
  6753. since it will think that parent can't possibly be used any more
  6754. in this routine. Assigning to the local variable will thus
  6755. munge parent in the parent process. */
  6756. pid_t
  6757. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6758. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6759. /* Convince the compiler that p..p7 are live; otherwise, it might
  6760. use the same hardware register for all 8 local variables. */
  6761. if (p != p1 || p != p2 || p != p3 || p != p4
  6762. || p != p5 || p != p6 || p != p7)
  6763. _exit(1);
  6764. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6765. from child file descriptors. If the child closes a descriptor
  6766. before it execs or exits, this munges the parent's descriptor
  6767. as well. Test for this by closing stdout in the child. */
  6768. _exit(close(fileno(stdout)) != 0);
  6769. } else {
  6770. int status;
  6771. struct stat st;
  6772. while (wait(&status) != child)
  6773. ;
  6774. return (
  6775. /* Was there some problem with vforking? */
  6776. child < 0
  6777. /* Did the child fail? (This shouldn't happen.) */
  6778. || status
  6779. /* Did the vfork/compiler bug occur? */
  6780. || parent != getpid()
  6781. /* Did the file descriptor bug occur? */
  6782. || fstat(fileno(stdout), &st) != 0
  6783. );
  6784. }
  6785. }
  6786. _ACEOF
  6787. if ac_fn_cxx_try_run "$LINENO"; then :
  6788. ac_cv_func_vfork_works=yes
  6789. else
  6790. ac_cv_func_vfork_works=no
  6791. fi
  6792. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6793. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6794. fi
  6795. fi
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6797. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6798. fi;
  6799. if test "x$ac_cv_func_fork_works" = xcross; then
  6800. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6802. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6803. fi
  6804. if test "x$ac_cv_func_vfork_works" = xyes; then
  6805. $as_echo "#define HAVE_WORKING_VFORK 1" >>build/confdefs.h
  6806. else
  6807. $as_echo "#define vfork fork" >>build/confdefs.h
  6808. fi
  6809. if test "x$ac_cv_func_fork_works" = xyes; then
  6810. $as_echo "#define HAVE_WORKING_FORK 1" >>build/confdefs.h
  6811. fi
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6813. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6814. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6815. $as_echo_n "(cached) " >&6
  6816. else
  6817. rm -f conftest.sym conftest.file
  6818. echo >conftest.file
  6819. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6820. if test "$cross_compiling" = yes; then :
  6821. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6822. else
  6823. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6824. /* end build/confdefs.h. */
  6825. $ac_includes_default
  6826. int
  6827. main ()
  6828. {
  6829. struct stat sbuf;
  6830. /* Linux will dereference the symlink and fail, as required by POSIX.
  6831. That is better in the sense that it means we will not
  6832. have to compile and use the lstat wrapper. */
  6833. return lstat ("conftest.sym/", &sbuf) == 0;
  6834. ;
  6835. return 0;
  6836. }
  6837. _ACEOF
  6838. if ac_fn_cxx_try_run "$LINENO"; then :
  6839. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6840. else
  6841. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6842. fi
  6843. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6844. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6845. fi
  6846. else
  6847. # If the `ln -s' command failed, then we probably don't even
  6848. # have an lstat function.
  6849. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6850. fi
  6851. rm -f conftest.sym conftest.file
  6852. fi
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6854. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6855. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6856. cat >>build/confdefs.h <<_ACEOF
  6857. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6858. _ACEOF
  6859. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6860. case " $LIBOBJS " in
  6861. *" lstat.$ac_objext "* ) ;;
  6862. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6863. ;;
  6864. esac
  6865. fi
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  6867. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  6868. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  6869. $as_echo_n "(cached) " >&6
  6870. else
  6871. if test "$cross_compiling" = yes; then :
  6872. ac_cv_func_lstat_empty_string_bug=yes
  6873. else
  6874. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6875. /* end build/confdefs.h. */
  6876. $ac_includes_default
  6877. int
  6878. main ()
  6879. {
  6880. struct stat sbuf;
  6881. return lstat ("", &sbuf) == 0;
  6882. ;
  6883. return 0;
  6884. }
  6885. _ACEOF
  6886. if ac_fn_cxx_try_run "$LINENO"; then :
  6887. ac_cv_func_lstat_empty_string_bug=no
  6888. else
  6889. ac_cv_func_lstat_empty_string_bug=yes
  6890. fi
  6891. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6892. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6893. fi
  6894. fi
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  6896. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  6897. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  6898. case " $LIBOBJS " in
  6899. *" lstat.$ac_objext "* ) ;;
  6900. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6901. ;;
  6902. esac
  6903. cat >>build/confdefs.h <<_ACEOF
  6904. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  6905. _ACEOF
  6906. fi
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6908. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6909. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6910. $as_echo_n "(cached) " >&6
  6911. else
  6912. rm -f conftest.sym conftest.file
  6913. echo >conftest.file
  6914. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6915. if test "$cross_compiling" = yes; then :
  6916. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6917. else
  6918. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6919. /* end build/confdefs.h. */
  6920. $ac_includes_default
  6921. int
  6922. main ()
  6923. {
  6924. struct stat sbuf;
  6925. /* Linux will dereference the symlink and fail, as required by POSIX.
  6926. That is better in the sense that it means we will not
  6927. have to compile and use the lstat wrapper. */
  6928. return lstat ("conftest.sym/", &sbuf) == 0;
  6929. ;
  6930. return 0;
  6931. }
  6932. _ACEOF
  6933. if ac_fn_cxx_try_run "$LINENO"; then :
  6934. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6935. else
  6936. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6937. fi
  6938. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6939. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6940. fi
  6941. else
  6942. # If the `ln -s' command failed, then we probably don't even
  6943. # have an lstat function.
  6944. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6945. fi
  6946. rm -f conftest.sym conftest.file
  6947. fi
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6949. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6950. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6951. cat >>build/confdefs.h <<_ACEOF
  6952. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6953. _ACEOF
  6954. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6955. case " $LIBOBJS " in
  6956. *" lstat.$ac_objext "* ) ;;
  6957. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6958. ;;
  6959. esac
  6960. fi
  6961. for ac_header in stdlib.h
  6962. do :
  6963. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6964. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6965. cat >>build/confdefs.h <<_ACEOF
  6966. #define HAVE_STDLIB_H 1
  6967. _ACEOF
  6968. fi
  6969. done
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  6971. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  6972. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  6973. $as_echo_n "(cached) " >&6
  6974. else
  6975. if test "$cross_compiling" = yes; then :
  6976. ac_cv_func_malloc_0_nonnull=no
  6977. else
  6978. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6979. /* end build/confdefs.h. */
  6980. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6981. # include <stdlib.h>
  6982. #else
  6983. char *malloc ();
  6984. #endif
  6985. int
  6986. main ()
  6987. {
  6988. return ! malloc (0);
  6989. ;
  6990. return 0;
  6991. }
  6992. _ACEOF
  6993. if ac_fn_cxx_try_run "$LINENO"; then :
  6994. ac_cv_func_malloc_0_nonnull=yes
  6995. else
  6996. ac_cv_func_malloc_0_nonnull=no
  6997. fi
  6998. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6999. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7000. fi
  7001. fi
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  7003. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  7004. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  7005. $as_echo "#define HAVE_MALLOC 1" >>build/confdefs.h
  7006. else
  7007. $as_echo "#define HAVE_MALLOC 0" >>build/confdefs.h
  7008. case " $LIBOBJS " in
  7009. *" malloc.$ac_objext "* ) ;;
  7010. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  7011. ;;
  7012. esac
  7013. $as_echo "#define malloc rpl_malloc" >>build/confdefs.h
  7014. fi
  7015. for ac_header in $ac_header_list
  7016. do :
  7017. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7018. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7019. "
  7020. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7021. cat >>build/confdefs.h <<_ACEOF
  7022. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7023. _ACEOF
  7024. fi
  7025. done
  7026. for ac_func in $ac_func_list
  7027. do :
  7028. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7029. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7030. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7031. cat >>build/confdefs.h <<_ACEOF
  7032. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7033. _ACEOF
  7034. fi
  7035. done
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  7037. $as_echo_n "checking for working mktime... " >&6; }
  7038. if ${ac_cv_func_working_mktime+:} false; then :
  7039. $as_echo_n "(cached) " >&6
  7040. else
  7041. if test "$cross_compiling" = yes; then :
  7042. ac_cv_func_working_mktime=no
  7043. else
  7044. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7045. /* end build/confdefs.h. */
  7046. /* Test program from Paul Eggert and Tony Leneis. */
  7047. #ifdef TIME_WITH_SYS_TIME
  7048. # include <sys/time.h>
  7049. # include <time.h>
  7050. #else
  7051. # ifdef HAVE_SYS_TIME_H
  7052. # include <sys/time.h>
  7053. # else
  7054. # include <time.h>
  7055. # endif
  7056. #endif
  7057. #include <limits.h>
  7058. #include <stdlib.h>
  7059. #ifdef HAVE_UNISTD_H
  7060. # include <unistd.h>
  7061. #endif
  7062. #ifndef HAVE_ALARM
  7063. # define alarm(X) /* empty */
  7064. #endif
  7065. /* Work around redefinition to rpl_putenv by other config tests. */
  7066. #undef putenv
  7067. static time_t time_t_max;
  7068. static time_t time_t_min;
  7069. /* Values we'll use to set the TZ environment variable. */
  7070. static const char *tz_strings[] = {
  7071. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  7072. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  7073. };
  7074. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  7075. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  7076. Based on a problem report from Andreas Jaeger. */
  7077. static int
  7078. spring_forward_gap ()
  7079. {
  7080. /* glibc (up to about 1998-10-07) failed this test. */
  7081. struct tm tm;
  7082. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7083. instead of "TZ=America/Vancouver" in order to detect the bug even
  7084. on systems that don't support the Olson extension, or don't have the
  7085. full zoneinfo tables installed. */
  7086. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7087. tm.tm_year = 98;
  7088. tm.tm_mon = 3;
  7089. tm.tm_mday = 5;
  7090. tm.tm_hour = 2;
  7091. tm.tm_min = 0;
  7092. tm.tm_sec = 0;
  7093. tm.tm_isdst = -1;
  7094. return mktime (&tm) != (time_t) -1;
  7095. }
  7096. static int
  7097. mktime_test1 (time_t now)
  7098. {
  7099. struct tm *lt;
  7100. return ! (lt = localtime (&now)) || mktime (lt) == now;
  7101. }
  7102. static int
  7103. mktime_test (time_t now)
  7104. {
  7105. return (mktime_test1 (now)
  7106. && mktime_test1 ((time_t) (time_t_max - now))
  7107. && mktime_test1 ((time_t) (time_t_min + now)));
  7108. }
  7109. static int
  7110. irix_6_4_bug ()
  7111. {
  7112. /* Based on code from Ariel Faigon. */
  7113. struct tm tm;
  7114. tm.tm_year = 96;
  7115. tm.tm_mon = 3;
  7116. tm.tm_mday = 0;
  7117. tm.tm_hour = 0;
  7118. tm.tm_min = 0;
  7119. tm.tm_sec = 0;
  7120. tm.tm_isdst = -1;
  7121. mktime (&tm);
  7122. return tm.tm_mon == 2 && tm.tm_mday == 31;
  7123. }
  7124. static int
  7125. bigtime_test (int j)
  7126. {
  7127. struct tm tm;
  7128. time_t now;
  7129. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  7130. now = mktime (&tm);
  7131. if (now != (time_t) -1)
  7132. {
  7133. struct tm *lt = localtime (&now);
  7134. if (! (lt
  7135. && lt->tm_year == tm.tm_year
  7136. && lt->tm_mon == tm.tm_mon
  7137. && lt->tm_mday == tm.tm_mday
  7138. && lt->tm_hour == tm.tm_hour
  7139. && lt->tm_min == tm.tm_min
  7140. && lt->tm_sec == tm.tm_sec
  7141. && lt->tm_yday == tm.tm_yday
  7142. && lt->tm_wday == tm.tm_wday
  7143. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  7144. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  7145. return 0;
  7146. }
  7147. return 1;
  7148. }
  7149. static int
  7150. year_2050_test ()
  7151. {
  7152. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  7153. ignoring leap seconds. */
  7154. unsigned long int answer = 2527315200UL;
  7155. struct tm tm;
  7156. time_t t;
  7157. tm.tm_year = 2050 - 1900;
  7158. tm.tm_mon = 2 - 1;
  7159. tm.tm_mday = 1;
  7160. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  7161. tm.tm_isdst = -1;
  7162. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7163. instead of "TZ=America/Vancouver" in order to detect the bug even
  7164. on systems that don't support the Olson extension, or don't have the
  7165. full zoneinfo tables installed. */
  7166. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7167. t = mktime (&tm);
  7168. /* Check that the result is either a failure, or close enough
  7169. to the correct answer that we can assume the discrepancy is
  7170. due to leap seconds. */
  7171. return (t == (time_t) -1
  7172. || (0 < t && answer - 120 <= t && t <= answer + 120));
  7173. }
  7174. int
  7175. main ()
  7176. {
  7177. time_t t, delta;
  7178. int i, j;
  7179. /* This test makes some buggy mktime implementations loop.
  7180. Give up after 60 seconds; a mktime slower than that
  7181. isn't worth using anyway. */
  7182. alarm (60);
  7183. for (;;)
  7184. {
  7185. t = (time_t_max << 1) + 1;
  7186. if (t <= time_t_max)
  7187. break;
  7188. time_t_max = t;
  7189. }
  7190. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  7191. delta = time_t_max / 997; /* a suitable prime number */
  7192. for (i = 0; i < N_STRINGS; i++)
  7193. {
  7194. if (tz_strings[i])
  7195. putenv ((char*) tz_strings[i]);
  7196. for (t = 0; t <= time_t_max - delta; t += delta)
  7197. if (! mktime_test (t))
  7198. return 1;
  7199. if (! (mktime_test ((time_t) 1)
  7200. && mktime_test ((time_t) (60 * 60))
  7201. && mktime_test ((time_t) (60 * 60 * 24))))
  7202. return 1;
  7203. for (j = 1; ; j <<= 1)
  7204. if (! bigtime_test (j))
  7205. return 1;
  7206. else if (INT_MAX / 2 < j)
  7207. break;
  7208. if (! bigtime_test (INT_MAX))
  7209. return 1;
  7210. }
  7211. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  7212. }
  7213. _ACEOF
  7214. if ac_fn_cxx_try_run "$LINENO"; then :
  7215. ac_cv_func_working_mktime=yes
  7216. else
  7217. ac_cv_func_working_mktime=no
  7218. fi
  7219. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7220. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7221. fi
  7222. fi
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  7224. $as_echo "$ac_cv_func_working_mktime" >&6; }
  7225. if test $ac_cv_func_working_mktime = no; then
  7226. case " $LIBOBJS " in
  7227. *" mktime.$ac_objext "* ) ;;
  7228. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  7229. ;;
  7230. esac
  7231. fi
  7232. for ac_func in getpagesize
  7233. do :
  7234. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7235. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7236. cat >>build/confdefs.h <<_ACEOF
  7237. #define HAVE_GETPAGESIZE 1
  7238. _ACEOF
  7239. fi
  7240. done
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7242. $as_echo_n "checking for working mmap... " >&6; }
  7243. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7244. $as_echo_n "(cached) " >&6
  7245. else
  7246. if test "$cross_compiling" = yes; then :
  7247. ac_cv_func_mmap_fixed_mapped=no
  7248. else
  7249. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7250. /* end build/confdefs.h. */
  7251. $ac_includes_default
  7252. /* malloc might have been renamed as rpl_malloc. */
  7253. #undef malloc
  7254. /* Thanks to Mike Haertel and Jim Avera for this test.
  7255. Here is a matrix of mmap possibilities:
  7256. mmap private not fixed
  7257. mmap private fixed at somewhere currently unmapped
  7258. mmap private fixed at somewhere already mapped
  7259. mmap shared not fixed
  7260. mmap shared fixed at somewhere currently unmapped
  7261. mmap shared fixed at somewhere already mapped
  7262. For private mappings, we should verify that changes cannot be read()
  7263. back from the file, nor mmap's back from the file at a different
  7264. address. (There have been systems where private was not correctly
  7265. implemented like the infamous i386 svr4.0, and systems where the
  7266. VM page cache was not coherent with the file system buffer cache
  7267. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7268. For shared mappings, we should conversely verify that changes get
  7269. propagated back to all the places they're supposed to be.
  7270. Grep wants private fixed already mapped.
  7271. The main things grep needs to know about mmap are:
  7272. * does it exist and is it safe to write into the mmap'd area
  7273. * how to use it (BSD variants) */
  7274. #include <fcntl.h>
  7275. #include <sys/mman.h>
  7276. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7277. char *malloc ();
  7278. #endif
  7279. /* This mess was copied from the GNU getpagesize.h. */
  7280. #ifndef HAVE_GETPAGESIZE
  7281. # ifdef _SC_PAGESIZE
  7282. # define getpagesize() sysconf(_SC_PAGESIZE)
  7283. # else /* no _SC_PAGESIZE */
  7284. # ifdef HAVE_SYS_PARAM_H
  7285. # include <sys/param.h>
  7286. # ifdef EXEC_PAGESIZE
  7287. # define getpagesize() EXEC_PAGESIZE
  7288. # else /* no EXEC_PAGESIZE */
  7289. # ifdef NBPG
  7290. # define getpagesize() NBPG * CLSIZE
  7291. # ifndef CLSIZE
  7292. # define CLSIZE 1
  7293. # endif /* no CLSIZE */
  7294. # else /* no NBPG */
  7295. # ifdef NBPC
  7296. # define getpagesize() NBPC
  7297. # else /* no NBPC */
  7298. # ifdef PAGESIZE
  7299. # define getpagesize() PAGESIZE
  7300. # endif /* PAGESIZE */
  7301. # endif /* no NBPC */
  7302. # endif /* no NBPG */
  7303. # endif /* no EXEC_PAGESIZE */
  7304. # else /* no HAVE_SYS_PARAM_H */
  7305. # define getpagesize() 8192 /* punt totally */
  7306. # endif /* no HAVE_SYS_PARAM_H */
  7307. # endif /* no _SC_PAGESIZE */
  7308. #endif /* no HAVE_GETPAGESIZE */
  7309. int
  7310. main ()
  7311. {
  7312. char *data, *data2, *data3;
  7313. const char *cdata2;
  7314. int i, pagesize;
  7315. int fd, fd2;
  7316. pagesize = getpagesize ();
  7317. /* First, make a file with some known garbage in it. */
  7318. data = (char *) malloc (pagesize);
  7319. if (!data)
  7320. return 1;
  7321. for (i = 0; i < pagesize; ++i)
  7322. *(data + i) = rand ();
  7323. umask (0);
  7324. fd = creat ("conftest.mmap", 0600);
  7325. if (fd < 0)
  7326. return 2;
  7327. if (write (fd, data, pagesize) != pagesize)
  7328. return 3;
  7329. close (fd);
  7330. /* Next, check that the tail of a page is zero-filled. File must have
  7331. non-zero length, otherwise we risk SIGBUS for entire page. */
  7332. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7333. if (fd2 < 0)
  7334. return 4;
  7335. cdata2 = "";
  7336. if (write (fd2, cdata2, 1) != 1)
  7337. return 5;
  7338. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7339. if (data2 == MAP_FAILED)
  7340. return 6;
  7341. for (i = 0; i < pagesize; ++i)
  7342. if (*(data2 + i))
  7343. return 7;
  7344. close (fd2);
  7345. if (munmap (data2, pagesize))
  7346. return 8;
  7347. /* Next, try to mmap the file at a fixed address which already has
  7348. something else allocated at it. If we can, also make sure that
  7349. we see the same garbage. */
  7350. fd = open ("conftest.mmap", O_RDWR);
  7351. if (fd < 0)
  7352. return 9;
  7353. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7354. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7355. return 10;
  7356. for (i = 0; i < pagesize; ++i)
  7357. if (*(data + i) != *(data2 + i))
  7358. return 11;
  7359. /* Finally, make sure that changes to the mapped area do not
  7360. percolate back to the file as seen by read(). (This is a bug on
  7361. some variants of i386 svr4.0.) */
  7362. for (i = 0; i < pagesize; ++i)
  7363. *(data2 + i) = *(data2 + i) + 1;
  7364. data3 = (char *) malloc (pagesize);
  7365. if (!data3)
  7366. return 12;
  7367. if (read (fd, data3, pagesize) != pagesize)
  7368. return 13;
  7369. for (i = 0; i < pagesize; ++i)
  7370. if (*(data + i) != *(data3 + i))
  7371. return 14;
  7372. close (fd);
  7373. return 0;
  7374. }
  7375. _ACEOF
  7376. if ac_fn_cxx_try_run "$LINENO"; then :
  7377. ac_cv_func_mmap_fixed_mapped=yes
  7378. else
  7379. ac_cv_func_mmap_fixed_mapped=no
  7380. fi
  7381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7382. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7383. fi
  7384. fi
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7386. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7387. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7388. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7389. fi
  7390. rm -f conftest.mmap conftest.txt
  7391. for ac_header in stdlib.h
  7392. do :
  7393. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7394. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7395. cat >>build/confdefs.h <<_ACEOF
  7396. #define HAVE_STDLIB_H 1
  7397. _ACEOF
  7398. fi
  7399. done
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  7401. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  7402. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  7403. $as_echo_n "(cached) " >&6
  7404. else
  7405. if test "$cross_compiling" = yes; then :
  7406. ac_cv_func_realloc_0_nonnull=no
  7407. else
  7408. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7409. /* end build/confdefs.h. */
  7410. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7411. # include <stdlib.h>
  7412. #else
  7413. char *realloc ();
  7414. #endif
  7415. int
  7416. main ()
  7417. {
  7418. return ! realloc (0, 0);
  7419. ;
  7420. return 0;
  7421. }
  7422. _ACEOF
  7423. if ac_fn_cxx_try_run "$LINENO"; then :
  7424. ac_cv_func_realloc_0_nonnull=yes
  7425. else
  7426. ac_cv_func_realloc_0_nonnull=no
  7427. fi
  7428. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7429. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7430. fi
  7431. fi
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  7433. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  7434. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  7435. $as_echo "#define HAVE_REALLOC 1" >>build/confdefs.h
  7436. else
  7437. $as_echo "#define HAVE_REALLOC 0" >>build/confdefs.h
  7438. case " $LIBOBJS " in
  7439. *" realloc.$ac_objext "* ) ;;
  7440. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  7441. ;;
  7442. esac
  7443. $as_echo "#define realloc rpl_realloc" >>build/confdefs.h
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  7446. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  7447. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  7448. $as_echo_n "(cached) " >&6
  7449. else
  7450. if test "$cross_compiling" = yes; then :
  7451. ac_cv_func_stat_empty_string_bug=yes
  7452. else
  7453. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7454. /* end build/confdefs.h. */
  7455. $ac_includes_default
  7456. int
  7457. main ()
  7458. {
  7459. struct stat sbuf;
  7460. return stat ("", &sbuf) == 0;
  7461. ;
  7462. return 0;
  7463. }
  7464. _ACEOF
  7465. if ac_fn_cxx_try_run "$LINENO"; then :
  7466. ac_cv_func_stat_empty_string_bug=no
  7467. else
  7468. ac_cv_func_stat_empty_string_bug=yes
  7469. fi
  7470. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7471. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7472. fi
  7473. fi
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  7475. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  7476. if test $ac_cv_func_stat_empty_string_bug = yes; then
  7477. case " $LIBOBJS " in
  7478. *" stat.$ac_objext "* ) ;;
  7479. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  7480. ;;
  7481. esac
  7482. cat >>build/confdefs.h <<_ACEOF
  7483. #define HAVE_STAT_EMPTY_STRING_BUG 1
  7484. _ACEOF
  7485. fi
  7486. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7487. #include <sys/time.h>
  7488. #include <time.h>
  7489. "
  7490. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7491. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7492. fi
  7493. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7494. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7495. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7496. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7497. else
  7498. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7499. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7500. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7501. fi
  7502. fi
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7504. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7505. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7506. /* end build/confdefs.h. */
  7507. #include <sys/types.h>
  7508. #include <sys/time.h>
  7509. int
  7510. main ()
  7511. {
  7512. struct timespec ts1, ts2;
  7513. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7514. #ifndef timespecsub
  7515. #error missing timespecsub
  7516. #endif
  7517. timespecsub(&ts1, &ts2);
  7518. ;
  7519. return 0;
  7520. }
  7521. _ACEOF
  7522. if ac_fn_cxx_try_compile "$LINENO"; then :
  7523. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7525. $as_echo "yes" >&6; }
  7526. else
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7528. $as_echo "no" >&6; }
  7529. fi
  7530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7531. fi
  7532. for ac_func in strftime
  7533. do :
  7534. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  7535. if test "x$ac_cv_func_strftime" = xyes; then :
  7536. cat >>build/confdefs.h <<_ACEOF
  7537. #define HAVE_STRFTIME 1
  7538. _ACEOF
  7539. else
  7540. # strftime is in -lintl on SCO UNIX.
  7541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  7542. $as_echo_n "checking for strftime in -lintl... " >&6; }
  7543. if ${ac_cv_lib_intl_strftime+:} false; then :
  7544. $as_echo_n "(cached) " >&6
  7545. else
  7546. ac_check_lib_save_LIBS=$LIBS
  7547. LIBS="-lintl $LIBS"
  7548. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7549. /* end build/confdefs.h. */
  7550. /* Override any GCC internal prototype to avoid an error.
  7551. Use char because int might match the return type of a GCC
  7552. builtin and then its argument prototype would still apply. */
  7553. #ifdef __cplusplus
  7554. extern "C"
  7555. #endif
  7556. char strftime ();
  7557. int
  7558. main ()
  7559. {
  7560. return strftime ();
  7561. ;
  7562. return 0;
  7563. }
  7564. _ACEOF
  7565. if ac_fn_cxx_try_link "$LINENO"; then :
  7566. ac_cv_lib_intl_strftime=yes
  7567. else
  7568. ac_cv_lib_intl_strftime=no
  7569. fi
  7570. rm -f core conftest.err conftest.$ac_objext \
  7571. conftest$ac_exeext conftest.$ac_ext
  7572. LIBS=$ac_check_lib_save_LIBS
  7573. fi
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  7575. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  7576. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  7577. $as_echo "#define HAVE_STRFTIME 1" >>build/confdefs.h
  7578. LIBS="-lintl $LIBS"
  7579. fi
  7580. fi
  7581. done
  7582. #checkpoint
  7583. cat >confcache <<\_ACEOF
  7584. # This file is a shell script that caches the results of configure
  7585. # tests run on this system so they can be shared between configure
  7586. # scripts and configure runs, see configure's option --config-cache.
  7587. # It is not useful on other systems. If it contains results you don't
  7588. # want to keep, you may remove or edit it.
  7589. #
  7590. # build/config.status only pays attention to the cache file if you give it
  7591. # the --recheck option to rerun configure.
  7592. #
  7593. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7594. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7595. # following values.
  7596. _ACEOF
  7597. # The following way of writing the cache mishandles newlines in values,
  7598. # but we know of no workaround that is simple, portable, and efficient.
  7599. # So, we kill variables containing newlines.
  7600. # Ultrix sh set writes to stderr and can't be redirected directly,
  7601. # and sets the high bit in the cache file unless we assign to the vars.
  7602. (
  7603. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7604. eval ac_val=\$$ac_var
  7605. case $ac_val in #(
  7606. *${as_nl}*)
  7607. case $ac_var in #(
  7608. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7609. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7610. esac
  7611. case $ac_var in #(
  7612. _ | IFS | as_nl) ;; #(
  7613. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7614. *) { eval $ac_var=; unset $ac_var;} ;;
  7615. esac ;;
  7616. esac
  7617. done
  7618. (set) 2>&1 |
  7619. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7620. *${as_nl}ac_space=\ *)
  7621. # `set' does not quote correctly, so add quotes: double-quote
  7622. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7623. sed -n \
  7624. "s/'/'\\\\''/g;
  7625. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7626. ;; #(
  7627. *)
  7628. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7629. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7630. ;;
  7631. esac |
  7632. sort
  7633. ) |
  7634. sed '
  7635. /^ac_cv_env_/b end
  7636. t clear
  7637. :clear
  7638. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7639. t end
  7640. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7641. :end' >>confcache
  7642. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7643. if test -w "$cache_file"; then
  7644. if test "x$cache_file" != "x/dev/null"; then
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7646. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7647. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7648. cat confcache >"$cache_file"
  7649. else
  7650. case $cache_file in #(
  7651. */* | ?:*)
  7652. mv -f confcache "$cache_file"$$ &&
  7653. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7654. *)
  7655. mv -f confcache "$cache_file" ;;
  7656. esac
  7657. fi
  7658. fi
  7659. else
  7660. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7661. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7662. fi
  7663. fi
  7664. rm -f confcache
  7665. for ac_func in clock fsync getrusage isascii getpassphrase posix_madvise madvise
  7666. do :
  7667. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7668. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7669. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7670. cat >>build/confdefs.h <<_ACEOF
  7671. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7672. _ACEOF
  7673. fi
  7674. done
  7675. for ac_func in memcpy memmem memset random rename snprintf srandom gettime
  7676. do :
  7677. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7678. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7679. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7680. cat >>build/confdefs.h <<_ACEOF
  7681. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7682. _ACEOF
  7683. fi
  7684. done
  7685. #checkpoint
  7686. cat >confcache <<\_ACEOF
  7687. # This file is a shell script that caches the results of configure
  7688. # tests run on this system so they can be shared between configure
  7689. # scripts and configure runs, see configure's option --config-cache.
  7690. # It is not useful on other systems. If it contains results you don't
  7691. # want to keep, you may remove or edit it.
  7692. #
  7693. # build/config.status only pays attention to the cache file if you give it
  7694. # the --recheck option to rerun configure.
  7695. #
  7696. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7697. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7698. # following values.
  7699. _ACEOF
  7700. # The following way of writing the cache mishandles newlines in values,
  7701. # but we know of no workaround that is simple, portable, and efficient.
  7702. # So, we kill variables containing newlines.
  7703. # Ultrix sh set writes to stderr and can't be redirected directly,
  7704. # and sets the high bit in the cache file unless we assign to the vars.
  7705. (
  7706. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7707. eval ac_val=\$$ac_var
  7708. case $ac_val in #(
  7709. *${as_nl}*)
  7710. case $ac_var in #(
  7711. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7712. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7713. esac
  7714. case $ac_var in #(
  7715. _ | IFS | as_nl) ;; #(
  7716. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7717. *) { eval $ac_var=; unset $ac_var;} ;;
  7718. esac ;;
  7719. esac
  7720. done
  7721. (set) 2>&1 |
  7722. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7723. *${as_nl}ac_space=\ *)
  7724. # `set' does not quote correctly, so add quotes: double-quote
  7725. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7726. sed -n \
  7727. "s/'/'\\\\''/g;
  7728. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7729. ;; #(
  7730. *)
  7731. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7732. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7733. ;;
  7734. esac |
  7735. sort
  7736. ) |
  7737. sed '
  7738. /^ac_cv_env_/b end
  7739. t clear
  7740. :clear
  7741. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7742. t end
  7743. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7744. :end' >>confcache
  7745. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7746. if test -w "$cache_file"; then
  7747. if test "x$cache_file" != "x/dev/null"; then
  7748. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7749. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7750. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7751. cat confcache >"$cache_file"
  7752. else
  7753. case $cache_file in #(
  7754. */* | ?:*)
  7755. mv -f confcache "$cache_file"$$ &&
  7756. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7757. *)
  7758. mv -f confcache "$cache_file" ;;
  7759. esac
  7760. fi
  7761. fi
  7762. else
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7764. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7765. fi
  7766. fi
  7767. rm -f confcache
  7768. for ac_func in strcasecmp strncasecmp vsnprintf inet_ntop
  7769. do :
  7770. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7771. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7772. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7773. cat >>build/confdefs.h <<_ACEOF
  7774. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7775. _ACEOF
  7776. fi
  7777. done
  7778. #autoscan suggested this....
  7779. #These are recommended by autoscan, but no code supports it currently
  7780. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7781. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7782. for ac_func in vsprintf
  7783. do :
  7784. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7785. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7786. cat >>build/confdefs.h <<_ACEOF
  7787. #define HAVE_VSPRINTF 1
  7788. _ACEOF
  7789. fi
  7790. done
  7791. if test "$ac_cv_func_vsprintf" = "no"
  7792. then
  7793. cat << 'EOF' >&2
  7794. configure: error:
  7795. Your system does not have the sprintf/vsprintf libraries.
  7796. These are required to compile almost anything. Sorry.
  7797. EOF
  7798. exit 1
  7799. fi
  7800. for ac_func in uname
  7801. do :
  7802. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7803. if test "x$ac_cv_func_uname" = xyes; then :
  7804. cat >>build/confdefs.h <<_ACEOF
  7805. #define HAVE_UNAME 1
  7806. _ACEOF
  7807. fi
  7808. done
  7809. if test "$ac_cv_func_uname" = "no"
  7810. then
  7811. cat << 'EOF' >&2
  7812. configure: error:
  7813. Your system does not have the uname() function.
  7814. This is required for the botpack.
  7815. EOF
  7816. exit 1
  7817. fi
  7818. # Make sure we have stdc headers, since we can't compile without them
  7819. if test "$ac_cv_header_stdc" = "no"
  7820. then
  7821. cat << 'EOF' >&2
  7822. configure: error:
  7823. Your system must support ANSI C Header files.
  7824. These are required for the language support. Sorry.
  7825. EOF
  7826. exit 1
  7827. fi
  7828. #checkpoint
  7829. cat >confcache <<\_ACEOF
  7830. # This file is a shell script that caches the results of configure
  7831. # tests run on this system so they can be shared between configure
  7832. # scripts and configure runs, see configure's option --config-cache.
  7833. # It is not useful on other systems. If it contains results you don't
  7834. # want to keep, you may remove or edit it.
  7835. #
  7836. # build/config.status only pays attention to the cache file if you give it
  7837. # the --recheck option to rerun configure.
  7838. #
  7839. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7840. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7841. # following values.
  7842. _ACEOF
  7843. # The following way of writing the cache mishandles newlines in values,
  7844. # but we know of no workaround that is simple, portable, and efficient.
  7845. # So, we kill variables containing newlines.
  7846. # Ultrix sh set writes to stderr and can't be redirected directly,
  7847. # and sets the high bit in the cache file unless we assign to the vars.
  7848. (
  7849. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7850. eval ac_val=\$$ac_var
  7851. case $ac_val in #(
  7852. *${as_nl}*)
  7853. case $ac_var in #(
  7854. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7855. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7856. esac
  7857. case $ac_var in #(
  7858. _ | IFS | as_nl) ;; #(
  7859. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7860. *) { eval $ac_var=; unset $ac_var;} ;;
  7861. esac ;;
  7862. esac
  7863. done
  7864. (set) 2>&1 |
  7865. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7866. *${as_nl}ac_space=\ *)
  7867. # `set' does not quote correctly, so add quotes: double-quote
  7868. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7869. sed -n \
  7870. "s/'/'\\\\''/g;
  7871. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7872. ;; #(
  7873. *)
  7874. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7875. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7876. ;;
  7877. esac |
  7878. sort
  7879. ) |
  7880. sed '
  7881. /^ac_cv_env_/b end
  7882. t clear
  7883. :clear
  7884. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7885. t end
  7886. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7887. :end' >>confcache
  7888. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7889. if test -w "$cache_file"; then
  7890. if test "x$cache_file" != "x/dev/null"; then
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7892. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7893. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7894. cat confcache >"$cache_file"
  7895. else
  7896. case $cache_file in #(
  7897. */* | ?:*)
  7898. mv -f confcache "$cache_file"$$ &&
  7899. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7900. *)
  7901. mv -f confcache "$cache_file" ;;
  7902. esac
  7903. fi
  7904. fi
  7905. else
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7907. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7908. fi
  7909. fi
  7910. rm -f confcache
  7911. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7912. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7913. cat >>build/confdefs.h <<_ACEOF
  7914. #define EGG_VERSION $version_num
  7915. _ACEOF
  7916. #FIND_WRAPS
  7917. case "$srcdir" in
  7918. [\\/]* | ?:[\\/]*)
  7919. MOD_UPDIR=""
  7920. ;;
  7921. *)
  7922. MOD_UPDIR="../"
  7923. ;;
  7924. esac
  7925. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/irc.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  7926. for mf in $files; do
  7927. # Strip MF so we end up with the name of the file.
  7928. mf=${mf%%:*}
  7929. dirpart=${mf%/*}
  7930. rm -f "$dirpart/.deps/includes"
  7931. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  7932. for file in `sed -n -e '
  7933. /^OBJS = .*\\\\$/ {
  7934. s/^OBJS = //
  7935. :loop
  7936. s/\\\\$//
  7937. p
  7938. n
  7939. /\\\\$/ b loop
  7940. p
  7941. }
  7942. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7943. do
  7944. suffix=${file##*.}
  7945. base=${file%%.*}
  7946. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  7947. if ! test -f "$dirpart/.deps/$base.Po"; then
  7948. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7949. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7950. if test -f "$dirpart/${base}.${suffix}"; then
  7951. rm -f "$dirpart/${base}.${suffix}"
  7952. fi
  7953. fi
  7954. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  7955. done
  7956. done
  7957. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  7958. GIT_REQUIRED=1
  7959. if [ "$GIT_REQUIRED" = "1" ]; then
  7960. if ! test -d .git; then
  7961. echo ""
  7962. echo ""
  7963. echo "You have downloaded a GIT version of wraith."
  7964. echo "Either 'git clone' from a git repository or download a source tarball"
  7965. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7966. echo ""
  7967. echo ""
  7968. exit 1
  7969. fi
  7970. fi
  7971. if test -d .git; then
  7972. git submodule init
  7973. git submodule update
  7974. git submodule foreach --recursive git clean -fdx
  7975. fi
  7976. if [ -f lib/bdlib/configure ]; then
  7977. subdirs="$subdirs lib/bdlib"
  7978. fi
  7979. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  7980. subdirs="$subdirs lib/libelf"
  7981. fi
  7982. cat >confcache <<\_ACEOF
  7983. # This file is a shell script that caches the results of configure
  7984. # tests run on this system so they can be shared between configure
  7985. # scripts and configure runs, see configure's option --config-cache.
  7986. # It is not useful on other systems. If it contains results you don't
  7987. # want to keep, you may remove or edit it.
  7988. #
  7989. # build/config.status only pays attention to the cache file if you give it
  7990. # the --recheck option to rerun configure.
  7991. #
  7992. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7993. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7994. # following values.
  7995. _ACEOF
  7996. # The following way of writing the cache mishandles newlines in values,
  7997. # but we know of no workaround that is simple, portable, and efficient.
  7998. # So, we kill variables containing newlines.
  7999. # Ultrix sh set writes to stderr and can't be redirected directly,
  8000. # and sets the high bit in the cache file unless we assign to the vars.
  8001. (
  8002. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8003. eval ac_val=\$$ac_var
  8004. case $ac_val in #(
  8005. *${as_nl}*)
  8006. case $ac_var in #(
  8007. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8008. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8009. esac
  8010. case $ac_var in #(
  8011. _ | IFS | as_nl) ;; #(
  8012. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8013. *) { eval $ac_var=; unset $ac_var;} ;;
  8014. esac ;;
  8015. esac
  8016. done
  8017. (set) 2>&1 |
  8018. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8019. *${as_nl}ac_space=\ *)
  8020. # `set' does not quote correctly, so add quotes: double-quote
  8021. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8022. sed -n \
  8023. "s/'/'\\\\''/g;
  8024. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8025. ;; #(
  8026. *)
  8027. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8028. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8029. ;;
  8030. esac |
  8031. sort
  8032. ) |
  8033. sed '
  8034. /^ac_cv_env_/b end
  8035. t clear
  8036. :clear
  8037. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8038. t end
  8039. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8040. :end' >>confcache
  8041. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8042. if test -w "$cache_file"; then
  8043. if test "x$cache_file" != "x/dev/null"; then
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8045. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8046. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8047. cat confcache >"$cache_file"
  8048. else
  8049. case $cache_file in #(
  8050. */* | ?:*)
  8051. mv -f confcache "$cache_file"$$ &&
  8052. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8053. *)
  8054. mv -f confcache "$cache_file" ;;
  8055. esac
  8056. fi
  8057. fi
  8058. else
  8059. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8060. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8061. fi
  8062. fi
  8063. rm -f confcache
  8064. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8065. # Let make expand exec_prefix.
  8066. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8067. DEFS=-DHAVE_CONFIG_H
  8068. ac_libobjs=
  8069. ac_ltlibobjs=
  8070. U=
  8071. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8072. # 1. Remove the extension, and $U if already installed.
  8073. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8074. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8075. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8076. # will be set to the directory where LIBOBJS objects are built.
  8077. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8078. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8079. done
  8080. LIBOBJS=$ac_libobjs
  8081. LTLIBOBJS=$ac_ltlibobjs
  8082. : "${CONFIG_STATUS=./build/config.status}"
  8083. ac_write_fail=0
  8084. ac_clean_files_save=$ac_clean_files
  8085. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8087. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8088. as_write_fail=0
  8089. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8090. #! $SHELL
  8091. # Generated by $as_me.
  8092. # Run this file to recreate the current configuration.
  8093. # Compiler output produced by configure, useful for debugging
  8094. # configure, is in build/config.log if it exists.
  8095. debug=false
  8096. ac_cs_recheck=false
  8097. ac_cs_silent=false
  8098. SHELL=\${CONFIG_SHELL-$SHELL}
  8099. export SHELL
  8100. _ASEOF
  8101. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8102. ## -------------------- ##
  8103. ## M4sh Initialization. ##
  8104. ## -------------------- ##
  8105. # Be more Bourne compatible
  8106. DUALCASE=1; export DUALCASE # for MKS sh
  8107. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8108. emulate sh
  8109. NULLCMD=:
  8110. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8111. # is contrary to our usage. Disable this feature.
  8112. alias -g '${1+"$@"}'='"$@"'
  8113. setopt NO_GLOB_SUBST
  8114. else
  8115. case `(set -o) 2>/dev/null` in #(
  8116. *posix*) :
  8117. set -o posix ;; #(
  8118. *) :
  8119. ;;
  8120. esac
  8121. fi
  8122. as_nl='
  8123. '
  8124. export as_nl
  8125. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8126. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8127. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8128. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8129. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8130. # but without wasting forks for bash or zsh.
  8131. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8132. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8133. as_echo='print -r --'
  8134. as_echo_n='print -rn --'
  8135. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8136. as_echo='printf %s\n'
  8137. as_echo_n='printf %s'
  8138. else
  8139. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8140. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8141. as_echo_n='/usr/ucb/echo -n'
  8142. else
  8143. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8144. as_echo_n_body='eval
  8145. arg=$1;
  8146. case $arg in #(
  8147. *"$as_nl"*)
  8148. expr "X$arg" : "X\\(.*\\)$as_nl";
  8149. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8150. esac;
  8151. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8152. '
  8153. export as_echo_n_body
  8154. as_echo_n='sh -c $as_echo_n_body as_echo'
  8155. fi
  8156. export as_echo_body
  8157. as_echo='sh -c $as_echo_body as_echo'
  8158. fi
  8159. # The user is always right.
  8160. if test "${PATH_SEPARATOR+set}" != set; then
  8161. PATH_SEPARATOR=:
  8162. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8163. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8164. PATH_SEPARATOR=';'
  8165. }
  8166. fi
  8167. # IFS
  8168. # We need space, tab and new line, in precisely that order. Quoting is
  8169. # there to prevent editors from complaining about space-tab.
  8170. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8171. # splitting by setting IFS to empty value.)
  8172. IFS=" "" $as_nl"
  8173. # Find who we are. Look in the path if we contain no directory separator.
  8174. as_myself=
  8175. case $0 in #((
  8176. *[\\/]* ) as_myself=$0 ;;
  8177. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8178. for as_dir in $PATH
  8179. do
  8180. IFS=$as_save_IFS
  8181. test -z "$as_dir" && as_dir=.
  8182. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8183. done
  8184. IFS=$as_save_IFS
  8185. ;;
  8186. esac
  8187. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8188. # in which case we are not to be found in the path.
  8189. if test "x$as_myself" = x; then
  8190. as_myself=$0
  8191. fi
  8192. if test ! -f "$as_myself"; then
  8193. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8194. exit 1
  8195. fi
  8196. # Unset variables that we do not need and which cause bugs (e.g. in
  8197. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8198. # suppresses any "Segmentation fault" message there. '((' could
  8199. # trigger a bug in pdksh 5.2.14.
  8200. for as_var in BASH_ENV ENV MAIL MAILPATH
  8201. do eval test x\${$as_var+set} = xset \
  8202. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8203. done
  8204. PS1='$ '
  8205. PS2='> '
  8206. PS4='+ '
  8207. # NLS nuisances.
  8208. LC_ALL=C
  8209. export LC_ALL
  8210. LANGUAGE=C
  8211. export LANGUAGE
  8212. # CDPATH.
  8213. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8214. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8215. # ----------------------------------------
  8216. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8217. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8218. # script with STATUS, using 1 if that was 0.
  8219. as_fn_error ()
  8220. {
  8221. as_status=$1; test $as_status -eq 0 && as_status=1
  8222. if test "$4"; then
  8223. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8224. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8225. fi
  8226. $as_echo "$as_me: error: $2" >&2
  8227. as_fn_exit $as_status
  8228. } # as_fn_error
  8229. # as_fn_set_status STATUS
  8230. # -----------------------
  8231. # Set $? to STATUS, without forking.
  8232. as_fn_set_status ()
  8233. {
  8234. return $1
  8235. } # as_fn_set_status
  8236. # as_fn_exit STATUS
  8237. # -----------------
  8238. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8239. as_fn_exit ()
  8240. {
  8241. set +e
  8242. as_fn_set_status $1
  8243. exit $1
  8244. } # as_fn_exit
  8245. # as_fn_unset VAR
  8246. # ---------------
  8247. # Portably unset VAR.
  8248. as_fn_unset ()
  8249. {
  8250. { eval $1=; unset $1;}
  8251. }
  8252. as_unset=as_fn_unset
  8253. # as_fn_append VAR VALUE
  8254. # ----------------------
  8255. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8256. # advantage of any shell optimizations that allow amortized linear growth over
  8257. # repeated appends, instead of the typical quadratic growth present in naive
  8258. # implementations.
  8259. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8260. eval 'as_fn_append ()
  8261. {
  8262. eval $1+=\$2
  8263. }'
  8264. else
  8265. as_fn_append ()
  8266. {
  8267. eval $1=\$$1\$2
  8268. }
  8269. fi # as_fn_append
  8270. # as_fn_arith ARG...
  8271. # ------------------
  8272. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8273. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8274. # must be portable across $(()) and expr.
  8275. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8276. eval 'as_fn_arith ()
  8277. {
  8278. as_val=$(( $* ))
  8279. }'
  8280. else
  8281. as_fn_arith ()
  8282. {
  8283. as_val=`expr "$@" || test $? -eq 1`
  8284. }
  8285. fi # as_fn_arith
  8286. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8287. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8288. as_expr=expr
  8289. else
  8290. as_expr=false
  8291. fi
  8292. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8293. as_basename=basename
  8294. else
  8295. as_basename=false
  8296. fi
  8297. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8298. as_dirname=dirname
  8299. else
  8300. as_dirname=false
  8301. fi
  8302. as_me=`$as_basename -- "$0" ||
  8303. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8304. X"$0" : 'X\(//\)$' \| \
  8305. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8306. $as_echo X/"$0" |
  8307. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8308. s//\1/
  8309. q
  8310. }
  8311. /^X\/\(\/\/\)$/{
  8312. s//\1/
  8313. q
  8314. }
  8315. /^X\/\(\/\).*/{
  8316. s//\1/
  8317. q
  8318. }
  8319. s/.*/./; q'`
  8320. # Avoid depending upon Character Ranges.
  8321. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8322. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8323. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8324. as_cr_digits='0123456789'
  8325. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8326. ECHO_C= ECHO_N= ECHO_T=
  8327. case `echo -n x` in #(((((
  8328. -n*)
  8329. case `echo 'xy\c'` in
  8330. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8331. xy) ECHO_C='\c';;
  8332. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8333. ECHO_T=' ';;
  8334. esac;;
  8335. *)
  8336. ECHO_N='-n';;
  8337. esac
  8338. rm -f conf$$ conf$$.exe conf$$.file
  8339. if test -d conf$$.dir; then
  8340. rm -f conf$$.dir/conf$$.file
  8341. else
  8342. rm -f conf$$.dir
  8343. mkdir conf$$.dir 2>/dev/null
  8344. fi
  8345. if (echo >conf$$.file) 2>/dev/null; then
  8346. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8347. as_ln_s='ln -s'
  8348. # ... but there are two gotchas:
  8349. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8350. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8351. # In both cases, we have to default to `cp -pR'.
  8352. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8353. as_ln_s='cp -pR'
  8354. elif ln conf$$.file conf$$ 2>/dev/null; then
  8355. as_ln_s=ln
  8356. else
  8357. as_ln_s='cp -pR'
  8358. fi
  8359. else
  8360. as_ln_s='cp -pR'
  8361. fi
  8362. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8363. rmdir conf$$.dir 2>/dev/null
  8364. # as_fn_mkdir_p
  8365. # -------------
  8366. # Create "$as_dir" as a directory, including parents if necessary.
  8367. as_fn_mkdir_p ()
  8368. {
  8369. case $as_dir in #(
  8370. -*) as_dir=./$as_dir;;
  8371. esac
  8372. test -d "$as_dir" || eval $as_mkdir_p || {
  8373. as_dirs=
  8374. while :; do
  8375. case $as_dir in #(
  8376. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8377. *) as_qdir=$as_dir;;
  8378. esac
  8379. as_dirs="'$as_qdir' $as_dirs"
  8380. as_dir=`$as_dirname -- "$as_dir" ||
  8381. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8382. X"$as_dir" : 'X\(//\)[^/]' \| \
  8383. X"$as_dir" : 'X\(//\)$' \| \
  8384. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8385. $as_echo X"$as_dir" |
  8386. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8387. s//\1/
  8388. q
  8389. }
  8390. /^X\(\/\/\)[^/].*/{
  8391. s//\1/
  8392. q
  8393. }
  8394. /^X\(\/\/\)$/{
  8395. s//\1/
  8396. q
  8397. }
  8398. /^X\(\/\).*/{
  8399. s//\1/
  8400. q
  8401. }
  8402. s/.*/./; q'`
  8403. test -d "$as_dir" && break
  8404. done
  8405. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8406. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8407. } # as_fn_mkdir_p
  8408. if mkdir -p . 2>/dev/null; then
  8409. as_mkdir_p='mkdir -p "$as_dir"'
  8410. else
  8411. test -d ./-p && rmdir ./-p
  8412. as_mkdir_p=false
  8413. fi
  8414. # as_fn_executable_p FILE
  8415. # -----------------------
  8416. # Test if FILE is an executable regular file.
  8417. as_fn_executable_p ()
  8418. {
  8419. test -f "$1" && test -x "$1"
  8420. } # as_fn_executable_p
  8421. as_test_x='test -x'
  8422. as_executable_p=as_fn_executable_p
  8423. # Sed expression to map a string onto a valid CPP name.
  8424. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8425. # Sed expression to map a string onto a valid variable name.
  8426. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8427. exec 6>&1
  8428. ## ----------------------------------- ##
  8429. ## Main body of $CONFIG_STATUS script. ##
  8430. ## ----------------------------------- ##
  8431. _ASEOF
  8432. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8434. # Save the log message, to keep $0 and so on meaningful, and to
  8435. # report actual input values of CONFIG_FILES etc. instead of their
  8436. # values after options handling.
  8437. ac_log="
  8438. This file was extended by $as_me, which was
  8439. generated by GNU Autoconf 2.69. Invocation command line was
  8440. CONFIG_FILES = $CONFIG_FILES
  8441. CONFIG_HEADERS = $CONFIG_HEADERS
  8442. CONFIG_LINKS = $CONFIG_LINKS
  8443. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8444. $ $0 $@
  8445. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8446. "
  8447. _ACEOF
  8448. case $ac_config_files in *"
  8449. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8450. esac
  8451. case $ac_config_headers in *"
  8452. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8453. esac
  8454. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8455. # Files that build/config.status was made for.
  8456. config_files="$ac_config_files"
  8457. config_headers="$ac_config_headers"
  8458. _ACEOF
  8459. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8460. ac_cs_usage="\
  8461. \`$as_me' instantiates files and other configuration actions
  8462. from templates according to the current configuration. Unless the files
  8463. and actions are specified as TAGs, all are instantiated by default.
  8464. Usage: $0 [OPTION]... [TAG]...
  8465. -h, --help print this help, then exit
  8466. -V, --version print version number and configuration settings, then exit
  8467. --config print configuration, then exit
  8468. -q, --quiet, --silent
  8469. do not print progress messages
  8470. -d, --debug don't remove temporary files
  8471. --recheck update $as_me by reconfiguring in the same conditions
  8472. --file=FILE[:TEMPLATE]
  8473. instantiate the configuration file FILE
  8474. --header=FILE[:TEMPLATE]
  8475. instantiate the configuration header FILE
  8476. Configuration files:
  8477. $config_files
  8478. Configuration headers:
  8479. $config_headers
  8480. Report bugs to the package provider."
  8481. _ACEOF
  8482. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8483. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8484. ac_cs_version="\\
  8485. build/config.status
  8486. configured by $0, generated by GNU Autoconf 2.69,
  8487. with options \\"\$ac_cs_config\\"
  8488. Copyright (C) 2012 Free Software Foundation, Inc.
  8489. This build/config.status script is free software; the Free Software Foundation
  8490. gives unlimited permission to copy, distribute and modify it."
  8491. ac_pwd='$ac_pwd'
  8492. srcdir='$srcdir'
  8493. AWK='$AWK'
  8494. test -n "\$AWK" || AWK=awk
  8495. _ACEOF
  8496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8497. # The default lists apply if the user does not specify any file.
  8498. ac_need_defaults=:
  8499. while test $# != 0
  8500. do
  8501. case $1 in
  8502. --*=?*)
  8503. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8504. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8505. ac_shift=:
  8506. ;;
  8507. --*=)
  8508. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8509. ac_optarg=
  8510. ac_shift=:
  8511. ;;
  8512. *)
  8513. ac_option=$1
  8514. ac_optarg=$2
  8515. ac_shift=shift
  8516. ;;
  8517. esac
  8518. case $ac_option in
  8519. # Handling of the options.
  8520. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8521. ac_cs_recheck=: ;;
  8522. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8523. $as_echo "$ac_cs_version"; exit ;;
  8524. --config | --confi | --conf | --con | --co | --c )
  8525. $as_echo "$ac_cs_config"; exit ;;
  8526. --debug | --debu | --deb | --de | --d | -d )
  8527. debug=: ;;
  8528. --file | --fil | --fi | --f )
  8529. $ac_shift
  8530. case $ac_optarg in
  8531. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8532. '') as_fn_error $? "missing file argument" ;;
  8533. esac
  8534. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8535. ac_need_defaults=false;;
  8536. --header | --heade | --head | --hea )
  8537. $ac_shift
  8538. case $ac_optarg in
  8539. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8540. esac
  8541. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8542. ac_need_defaults=false;;
  8543. --he | --h)
  8544. # Conflict between --help and --header
  8545. as_fn_error $? "ambiguous option: \`$1'
  8546. Try \`$0 --help' for more information.";;
  8547. --help | --hel | -h )
  8548. $as_echo "$ac_cs_usage"; exit ;;
  8549. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8550. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8551. ac_cs_silent=: ;;
  8552. # This is an error.
  8553. -*) as_fn_error $? "unrecognized option: \`$1'
  8554. Try \`$0 --help' for more information." ;;
  8555. *) as_fn_append ac_config_targets " $1"
  8556. ac_need_defaults=false ;;
  8557. esac
  8558. shift
  8559. done
  8560. ac_configure_extra_args=
  8561. if $ac_cs_silent; then
  8562. exec 6>/dev/null
  8563. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8564. fi
  8565. _ACEOF
  8566. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8567. if \$ac_cs_recheck; then
  8568. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8569. shift
  8570. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8571. CONFIG_SHELL='$SHELL'
  8572. export CONFIG_SHELL
  8573. exec "\$@"
  8574. fi
  8575. _ACEOF
  8576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8577. exec 5>>build/config.log
  8578. {
  8579. echo
  8580. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8581. ## Running $as_me. ##
  8582. _ASBOX
  8583. $as_echo "$ac_log"
  8584. } >&5
  8585. _ACEOF
  8586. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8587. _ACEOF
  8588. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8589. # Handling of arguments.
  8590. for ac_config_target in $ac_config_targets
  8591. do
  8592. case $ac_config_target in
  8593. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8594. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8595. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8596. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8597. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  8598. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  8599. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  8600. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8601. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8602. esac
  8603. done
  8604. # If the user did not use the arguments to specify the items to instantiate,
  8605. # then the envvar interface is used. Set only those that are not.
  8606. # We use the long form for the default assignment because of an extremely
  8607. # bizarre bug on SunOS 4.1.3.
  8608. if $ac_need_defaults; then
  8609. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8610. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8611. fi
  8612. # Have a temporary directory for convenience. Make it in the build tree
  8613. # simply because there is no reason against having it here, and in addition,
  8614. # creating and moving files from /tmp can sometimes cause problems.
  8615. # Hook for its removal unless debugging.
  8616. # Note that there is a small window in which the directory will not be cleaned:
  8617. # after its creation but before its name has been assigned to `$tmp'.
  8618. $debug ||
  8619. {
  8620. tmp= ac_tmp=
  8621. trap 'exit_status=$?
  8622. : "${ac_tmp:=$tmp}"
  8623. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8624. ' 0
  8625. trap 'as_fn_exit 1' 1 2 13 15
  8626. }
  8627. # Create a (secure) tmp directory for tmp files.
  8628. {
  8629. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8630. test -d "$tmp"
  8631. } ||
  8632. {
  8633. tmp=./conf$$-$RANDOM
  8634. (umask 077 && mkdir "$tmp")
  8635. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8636. ac_tmp=$tmp
  8637. # Set up the scripts for CONFIG_FILES section.
  8638. # No need to generate them if there are no CONFIG_FILES.
  8639. # This happens for instance with `./build/config.status config.h'.
  8640. if test -n "$CONFIG_FILES"; then
  8641. ac_cr=`echo X | tr X '\015'`
  8642. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8643. # But we know of no other shell where ac_cr would be empty at this
  8644. # point, so we can use a bashism as a fallback.
  8645. if test "x$ac_cr" = x; then
  8646. eval ac_cr=\$\'\\r\'
  8647. fi
  8648. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8649. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8650. ac_cs_awk_cr='\\r'
  8651. else
  8652. ac_cs_awk_cr=$ac_cr
  8653. fi
  8654. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8655. _ACEOF
  8656. {
  8657. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8658. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8659. echo "_ACEOF"
  8660. } >conf$$subs.sh ||
  8661. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8662. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8663. ac_delim='%!_!# '
  8664. for ac_last_try in false false false false false :; do
  8665. . ./conf$$subs.sh ||
  8666. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8667. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8668. if test $ac_delim_n = $ac_delim_num; then
  8669. break
  8670. elif $ac_last_try; then
  8671. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8672. else
  8673. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8674. fi
  8675. done
  8676. rm -f conf$$subs.sh
  8677. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8678. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8679. _ACEOF
  8680. sed -n '
  8681. h
  8682. s/^/S["/; s/!.*/"]=/
  8683. p
  8684. g
  8685. s/^[^!]*!//
  8686. :repl
  8687. t repl
  8688. s/'"$ac_delim"'$//
  8689. t delim
  8690. :nl
  8691. h
  8692. s/\(.\{148\}\)..*/\1/
  8693. t more1
  8694. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8695. p
  8696. n
  8697. b repl
  8698. :more1
  8699. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8700. p
  8701. g
  8702. s/.\{148\}//
  8703. t nl
  8704. :delim
  8705. h
  8706. s/\(.\{148\}\)..*/\1/
  8707. t more2
  8708. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8709. p
  8710. b
  8711. :more2
  8712. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8713. p
  8714. g
  8715. s/.\{148\}//
  8716. t delim
  8717. ' <conf$$subs.awk | sed '
  8718. /^[^""]/{
  8719. N
  8720. s/\n//
  8721. }
  8722. ' >>$CONFIG_STATUS || ac_write_fail=1
  8723. rm -f conf$$subs.awk
  8724. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8725. _ACAWK
  8726. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8727. for (key in S) S_is_set[key] = 1
  8728. FS = ""
  8729. }
  8730. {
  8731. line = $ 0
  8732. nfields = split(line, field, "@")
  8733. substed = 0
  8734. len = length(field[1])
  8735. for (i = 2; i < nfields; i++) {
  8736. key = field[i]
  8737. keylen = length(key)
  8738. if (S_is_set[key]) {
  8739. value = S[key]
  8740. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8741. len += length(value) + length(field[++i])
  8742. substed = 1
  8743. } else
  8744. len += 1 + keylen
  8745. }
  8746. print line
  8747. }
  8748. _ACAWK
  8749. _ACEOF
  8750. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8751. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8752. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8753. else
  8754. cat
  8755. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8756. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8757. _ACEOF
  8758. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8759. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8760. # trailing colons and then remove the whole line if VPATH becomes empty
  8761. # (actually we leave an empty line to preserve line numbers).
  8762. if test "x$srcdir" = x.; then
  8763. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8764. h
  8765. s///
  8766. s/^/:/
  8767. s/[ ]*$/:/
  8768. s/:\$(srcdir):/:/g
  8769. s/:\${srcdir}:/:/g
  8770. s/:@srcdir@:/:/g
  8771. s/^:*//
  8772. s/:*$//
  8773. x
  8774. s/\(=[ ]*\).*/\1/
  8775. G
  8776. s/\n//
  8777. s/^[^=]*=[ ]*$//
  8778. }'
  8779. fi
  8780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8781. fi # test -n "$CONFIG_FILES"
  8782. # Set up the scripts for CONFIG_HEADERS section.
  8783. # No need to generate them if there are no CONFIG_HEADERS.
  8784. # This happens for instance with `./build/config.status Makefile'.
  8785. if test -n "$CONFIG_HEADERS"; then
  8786. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8787. BEGIN {
  8788. _ACEOF
  8789. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8790. # here-document in build/config.status, that substitutes the proper values into
  8791. # config.h.in to produce config.h.
  8792. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8793. # handling of long lines.
  8794. ac_delim='%!_!# '
  8795. for ac_last_try in false false :; do
  8796. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8797. if test -z "$ac_tt"; then
  8798. break
  8799. elif $ac_last_try; then
  8800. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8801. else
  8802. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8803. fi
  8804. done
  8805. # For the awk script, D is an array of macro values keyed by name,
  8806. # likewise P contains macro parameters if any. Preserve backslash
  8807. # newline sequences.
  8808. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8809. sed -n '
  8810. s/.\{148\}/&'"$ac_delim"'/g
  8811. t rset
  8812. :rset
  8813. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8814. t def
  8815. d
  8816. :def
  8817. s/\\$//
  8818. t bsnl
  8819. s/["\\]/\\&/g
  8820. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8821. D["\1"]=" \3"/p
  8822. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8823. d
  8824. :bsnl
  8825. s/["\\]/\\&/g
  8826. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8827. D["\1"]=" \3\\\\\\n"\\/p
  8828. t cont
  8829. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8830. t cont
  8831. d
  8832. :cont
  8833. n
  8834. s/.\{148\}/&'"$ac_delim"'/g
  8835. t clear
  8836. :clear
  8837. s/\\$//
  8838. t bsnlc
  8839. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8840. d
  8841. :bsnlc
  8842. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8843. b cont
  8844. ' <build/confdefs.h | sed '
  8845. s/'"$ac_delim"'/"\\\
  8846. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8847. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8848. for (key in D) D_is_set[key] = 1
  8849. FS = ""
  8850. }
  8851. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8852. line = \$ 0
  8853. split(line, arg, " ")
  8854. if (arg[1] == "#") {
  8855. defundef = arg[2]
  8856. mac1 = arg[3]
  8857. } else {
  8858. defundef = substr(arg[1], 2)
  8859. mac1 = arg[2]
  8860. }
  8861. split(mac1, mac2, "(") #)
  8862. macro = mac2[1]
  8863. prefix = substr(line, 1, index(line, defundef) - 1)
  8864. if (D_is_set[macro]) {
  8865. # Preserve the white space surrounding the "#".
  8866. print prefix "define", macro P[macro] D[macro]
  8867. next
  8868. } else {
  8869. # Replace #undef with comments. This is necessary, for example,
  8870. # in the case of _POSIX_SOURCE, which is predefined and required
  8871. # on some systems where configure will not decide to define it.
  8872. if (defundef == "undef") {
  8873. print "/*", prefix defundef, macro, "*/"
  8874. next
  8875. }
  8876. }
  8877. }
  8878. { print }
  8879. _ACAWK
  8880. _ACEOF
  8881. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8882. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8883. fi # test -n "$CONFIG_HEADERS"
  8884. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8885. shift
  8886. for ac_tag
  8887. do
  8888. case $ac_tag in
  8889. :[FHLC]) ac_mode=$ac_tag; continue;;
  8890. esac
  8891. case $ac_mode$ac_tag in
  8892. :[FHL]*:*);;
  8893. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8894. :[FH]-) ac_tag=-:-;;
  8895. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8896. esac
  8897. ac_save_IFS=$IFS
  8898. IFS=:
  8899. set x $ac_tag
  8900. IFS=$ac_save_IFS
  8901. shift
  8902. ac_file=$1
  8903. shift
  8904. case $ac_mode in
  8905. :L) ac_source=$1;;
  8906. :[FH])
  8907. ac_file_inputs=
  8908. for ac_f
  8909. do
  8910. case $ac_f in
  8911. -) ac_f="$ac_tmp/stdin";;
  8912. *) # Look for the file first in the build tree, then in the source tree
  8913. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8914. # because $ac_f cannot contain `:'.
  8915. test -f "$ac_f" ||
  8916. case $ac_f in
  8917. [\\/$]*) false;;
  8918. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8919. esac ||
  8920. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8921. esac
  8922. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8923. as_fn_append ac_file_inputs " '$ac_f'"
  8924. done
  8925. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8926. # use $as_me), people would be surprised to read:
  8927. # /* config.h. Generated by build/config.status. */
  8928. configure_input='Generated from '`
  8929. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8930. `' by configure.'
  8931. if test x"$ac_file" != x-; then
  8932. configure_input="$ac_file. $configure_input"
  8933. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8934. $as_echo "$as_me: creating $ac_file" >&6;}
  8935. fi
  8936. # Neutralize special characters interpreted by sed in replacement strings.
  8937. case $configure_input in #(
  8938. *\&* | *\|* | *\\* )
  8939. ac_sed_conf_input=`$as_echo "$configure_input" |
  8940. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8941. *) ac_sed_conf_input=$configure_input;;
  8942. esac
  8943. case $ac_tag in
  8944. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8945. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8946. esac
  8947. ;;
  8948. esac
  8949. ac_dir=`$as_dirname -- "$ac_file" ||
  8950. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8951. X"$ac_file" : 'X\(//\)[^/]' \| \
  8952. X"$ac_file" : 'X\(//\)$' \| \
  8953. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8954. $as_echo X"$ac_file" |
  8955. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8956. s//\1/
  8957. q
  8958. }
  8959. /^X\(\/\/\)[^/].*/{
  8960. s//\1/
  8961. q
  8962. }
  8963. /^X\(\/\/\)$/{
  8964. s//\1/
  8965. q
  8966. }
  8967. /^X\(\/\).*/{
  8968. s//\1/
  8969. q
  8970. }
  8971. s/.*/./; q'`
  8972. as_dir="$ac_dir"; as_fn_mkdir_p
  8973. ac_builddir=.
  8974. case "$ac_dir" in
  8975. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8976. *)
  8977. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8978. # A ".." for each directory in $ac_dir_suffix.
  8979. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8980. case $ac_top_builddir_sub in
  8981. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8982. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8983. esac ;;
  8984. esac
  8985. ac_abs_top_builddir=$ac_pwd
  8986. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8987. # for backward compatibility:
  8988. ac_top_builddir=$ac_top_build_prefix
  8989. case $srcdir in
  8990. .) # We are building in place.
  8991. ac_srcdir=.
  8992. ac_top_srcdir=$ac_top_builddir_sub
  8993. ac_abs_top_srcdir=$ac_pwd ;;
  8994. [\\/]* | ?:[\\/]* ) # Absolute name.
  8995. ac_srcdir=$srcdir$ac_dir_suffix;
  8996. ac_top_srcdir=$srcdir
  8997. ac_abs_top_srcdir=$srcdir ;;
  8998. *) # Relative name.
  8999. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9000. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9001. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9002. esac
  9003. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9004. case $ac_mode in
  9005. :F)
  9006. #
  9007. # CONFIG_FILE
  9008. #
  9009. _ACEOF
  9010. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9011. # If the template does not know about datarootdir, expand it.
  9012. # FIXME: This hack should be removed a few years after 2.60.
  9013. ac_datarootdir_hack=; ac_datarootdir_seen=
  9014. ac_sed_dataroot='
  9015. /datarootdir/ {
  9016. p
  9017. q
  9018. }
  9019. /@datadir@/p
  9020. /@docdir@/p
  9021. /@infodir@/p
  9022. /@localedir@/p
  9023. /@mandir@/p'
  9024. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9025. *datarootdir*) ac_datarootdir_seen=yes;;
  9026. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9028. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9029. _ACEOF
  9030. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9031. ac_datarootdir_hack='
  9032. s&@datadir@&$datadir&g
  9033. s&@docdir@&$docdir&g
  9034. s&@infodir@&$infodir&g
  9035. s&@localedir@&$localedir&g
  9036. s&@mandir@&$mandir&g
  9037. s&\\\${datarootdir}&$datarootdir&g' ;;
  9038. esac
  9039. _ACEOF
  9040. # Neutralize VPATH when `$srcdir' = `.'.
  9041. # Shell code in configure.ac might set extrasub.
  9042. # FIXME: do we really want to maintain this feature?
  9043. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9044. ac_sed_extra="$ac_vpsub
  9045. $extrasub
  9046. _ACEOF
  9047. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9048. :t
  9049. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9050. s|@configure_input@|$ac_sed_conf_input|;t t
  9051. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9052. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9053. s&@srcdir@&$ac_srcdir&;t t
  9054. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9055. s&@top_srcdir@&$ac_top_srcdir&;t t
  9056. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9057. s&@builddir@&$ac_builddir&;t t
  9058. s&@abs_builddir@&$ac_abs_builddir&;t t
  9059. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9060. $ac_datarootdir_hack
  9061. "
  9062. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9063. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9064. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9065. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9066. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9067. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9068. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9069. which seems to be undefined. Please make sure it is defined" >&5
  9070. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9071. which seems to be undefined. Please make sure it is defined" >&2;}
  9072. rm -f "$ac_tmp/stdin"
  9073. case $ac_file in
  9074. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9075. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9076. esac \
  9077. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9078. ;;
  9079. :H)
  9080. #
  9081. # CONFIG_HEADER
  9082. #
  9083. if test x"$ac_file" != x-; then
  9084. {
  9085. $as_echo "/* $configure_input */" \
  9086. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9087. } >"$ac_tmp/config.h" \
  9088. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9089. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9090. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9091. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9092. else
  9093. rm -f "$ac_file"
  9094. mv "$ac_tmp/config.h" "$ac_file" \
  9095. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9096. fi
  9097. else
  9098. $as_echo "/* $configure_input */" \
  9099. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9100. || as_fn_error $? "could not create -" "$LINENO" 5
  9101. fi
  9102. ;;
  9103. esac
  9104. done # for ac_tag
  9105. as_fn_exit 0
  9106. _ACEOF
  9107. ac_clean_files=$ac_clean_files_save
  9108. test $ac_write_fail = 0 ||
  9109. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9110. # configure is writing to build/config.log, and then calls build/config.status.
  9111. # build/config.status does its own redirection, appending to build/config.log.
  9112. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9113. # by configure, so build/config.status won't be able to write to it; its
  9114. # output is simply discarded. So we exec the FD to /dev/null,
  9115. # effectively closing build/config.log, so it can be properly (re)opened and
  9116. # appended to by build/config.status. When coming back to configure, we
  9117. # need to make the FD available again.
  9118. if test "$no_create" != yes; then
  9119. ac_cs_success=:
  9120. ac_config_status_args=
  9121. test "$silent" = yes &&
  9122. ac_config_status_args="$ac_config_status_args --quiet"
  9123. exec 5>/dev/null
  9124. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9125. exec 5>>build/config.log
  9126. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9127. # would make configure fail if this is the last instruction.
  9128. $ac_cs_success || as_fn_exit 1
  9129. fi
  9130. #
  9131. # CONFIG_SUBDIRS section.
  9132. #
  9133. if test "$no_recursion" != yes; then
  9134. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9135. # so they do not pile up.
  9136. ac_sub_configure_args=
  9137. ac_prev=
  9138. eval "set x $ac_configure_args"
  9139. shift
  9140. for ac_arg
  9141. do
  9142. if test -n "$ac_prev"; then
  9143. ac_prev=
  9144. continue
  9145. fi
  9146. case $ac_arg in
  9147. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9148. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9149. ac_prev=cache_file ;;
  9150. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9151. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9152. | --c=*)
  9153. ;;
  9154. --config-cache | -C)
  9155. ;;
  9156. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9157. ac_prev=srcdir ;;
  9158. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9159. ;;
  9160. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9161. ac_prev=prefix ;;
  9162. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9163. ;;
  9164. --disable-option-checking)
  9165. ;;
  9166. *)
  9167. case $ac_arg in
  9168. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9169. esac
  9170. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9171. esac
  9172. done
  9173. # Always prepend --prefix to ensure using the same prefix
  9174. # in subdir configurations.
  9175. ac_arg="--prefix=$prefix"
  9176. case $ac_arg in
  9177. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9178. esac
  9179. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9180. # Pass --silent
  9181. if test "$silent" = yes; then
  9182. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9183. fi
  9184. # Always prepend --disable-option-checking to silence warnings, since
  9185. # different subdirs can have different --enable and --with options.
  9186. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9187. ac_popdir=`pwd`
  9188. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9189. # Do not complain, so a configure script can configure whichever
  9190. # parts of a large source tree are present.
  9191. test -d "$srcdir/$ac_dir" || continue
  9192. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9193. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9194. $as_echo "$ac_msg" >&6
  9195. as_dir="$ac_dir"; as_fn_mkdir_p
  9196. ac_builddir=.
  9197. case "$ac_dir" in
  9198. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9199. *)
  9200. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9201. # A ".." for each directory in $ac_dir_suffix.
  9202. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9203. case $ac_top_builddir_sub in
  9204. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9205. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9206. esac ;;
  9207. esac
  9208. ac_abs_top_builddir=$ac_pwd
  9209. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9210. # for backward compatibility:
  9211. ac_top_builddir=$ac_top_build_prefix
  9212. case $srcdir in
  9213. .) # We are building in place.
  9214. ac_srcdir=.
  9215. ac_top_srcdir=$ac_top_builddir_sub
  9216. ac_abs_top_srcdir=$ac_pwd ;;
  9217. [\\/]* | ?:[\\/]* ) # Absolute name.
  9218. ac_srcdir=$srcdir$ac_dir_suffix;
  9219. ac_top_srcdir=$srcdir
  9220. ac_abs_top_srcdir=$srcdir ;;
  9221. *) # Relative name.
  9222. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9223. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9224. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9225. esac
  9226. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9227. cd "$ac_dir"
  9228. # Check for guested configure; otherwise get Cygnus style configure.
  9229. if test -f "$ac_srcdir/configure.gnu"; then
  9230. ac_sub_configure=$ac_srcdir/configure.gnu
  9231. elif test -f "$ac_srcdir/configure"; then
  9232. ac_sub_configure=$ac_srcdir/configure
  9233. elif test -f "$ac_srcdir/configure.in"; then
  9234. # This should be Cygnus configure.
  9235. ac_sub_configure=$ac_aux_dir/configure
  9236. else
  9237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9238. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9239. ac_sub_configure=
  9240. fi
  9241. # The recursion is here.
  9242. if test -n "$ac_sub_configure"; then
  9243. # Make the cache file name correct relative to the subdirectory.
  9244. case $cache_file in
  9245. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9246. *) # Relative name.
  9247. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9248. esac
  9249. { $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
  9250. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9251. # The eval makes quoting arguments work.
  9252. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9253. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9254. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9255. fi
  9256. cd "$ac_popdir"
  9257. done
  9258. fi
  9259. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9261. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9262. fi
  9263. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9264. SED="$SED" src/generate_defs.sh || exit 1