configure 291 KB

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