configure 297 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. ac_func_list=
  578. enable_option_checking=no
  579. ac_subst_vars='LTLIBOBJS
  580. subdirs
  581. NUMVER
  582. VERSION
  583. LIBOBJS
  584. TCL_LIBS
  585. TCL_REQS
  586. DEFAULT_MAKE
  587. TCLINCFN
  588. TCL_INCLUDES
  589. TCLLIBFN
  590. TCLLIB
  591. SSL_LIBS
  592. SSL_INCLUDES
  593. LIBELF_LIB
  594. LIBELF_BUNDLED
  595. EGREP
  596. GREP
  597. DEBCXXFLAGS
  598. STATIC
  599. BUILDARCH
  600. BUILDOS
  601. UNAME
  602. DIFF
  603. STRIP
  604. OBJCOPY
  605. BASENAME
  606. AWK
  607. HEAD_1
  608. SED
  609. SET_MAKE
  610. GCC4DEB
  611. GCC3DEB
  612. GCC3_CXXFLAGS
  613. GCC3_CFLAGS
  614. CCDEPMODE
  615. HAVE_CXX11
  616. CXXCPP
  617. CC
  618. OBJEXT
  619. EXEEXT
  620. ac_ct_CXX
  621. CPPFLAGS
  622. LDFLAGS
  623. CXXFLAGS
  624. CXX
  625. egg_ac_parameters
  626. target_alias
  627. host_alias
  628. build_alias
  629. LIBS
  630. ECHO_T
  631. ECHO_N
  632. ECHO_C
  633. DEFS
  634. mandir
  635. localedir
  636. libdir
  637. psdir
  638. pdfdir
  639. dvidir
  640. htmldir
  641. infodir
  642. docdir
  643. oldincludedir
  644. includedir
  645. localstatedir
  646. sharedstatedir
  647. sysconfdir
  648. datadir
  649. datarootdir
  650. libexecdir
  651. sbindir
  652. bindir
  653. program_transform_name
  654. prefix
  655. exec_prefix
  656. PACKAGE_URL
  657. PACKAGE_BUGREPORT
  658. PACKAGE_STRING
  659. PACKAGE_VERSION
  660. PACKAGE_TARNAME
  661. PACKAGE_NAME
  662. PATH_SEPARATOR
  663. SHELL'
  664. ac_subst_files=''
  665. ac_user_opts='
  666. enable_option_checking
  667. enable_ipv6
  668. with_openssl
  669. with_tcllib
  670. with_tclinc
  671. enable_script_tcl
  672. '
  673. ac_precious_vars='build_alias
  674. host_alias
  675. target_alias
  676. CXX
  677. CXXFLAGS
  678. LDFLAGS
  679. LIBS
  680. CPPFLAGS
  681. CCC
  682. CXXCPP'
  683. ac_subdirs_all='lib/bdlib
  684. lib/libelf'
  685. # Initialize some variables set by options.
  686. ac_init_help=
  687. ac_init_version=false
  688. ac_unrecognized_opts=
  689. ac_unrecognized_sep=
  690. # The variables have the same names as the options, with
  691. # dashes changed to underlines.
  692. cache_file=/dev/null
  693. exec_prefix=NONE
  694. no_create=
  695. no_recursion=
  696. prefix=NONE
  697. program_prefix=NONE
  698. program_suffix=NONE
  699. program_transform_name=s,x,x,
  700. silent=
  701. site=
  702. srcdir=
  703. verbose=
  704. x_includes=NONE
  705. x_libraries=NONE
  706. # Installation directory options.
  707. # These are left unexpanded so users can "make install exec_prefix=/foo"
  708. # and all the variables that are supposed to be based on exec_prefix
  709. # by default will actually change.
  710. # Use braces instead of parens because sh, perl, etc. also accept them.
  711. # (The list follows the same order as the GNU Coding Standards.)
  712. bindir='${exec_prefix}/bin'
  713. sbindir='${exec_prefix}/sbin'
  714. libexecdir='${exec_prefix}/libexec'
  715. datarootdir='${prefix}/share'
  716. datadir='${datarootdir}'
  717. sysconfdir='${prefix}/etc'
  718. sharedstatedir='${prefix}/com'
  719. localstatedir='${prefix}/var'
  720. includedir='${prefix}/include'
  721. oldincludedir='/usr/include'
  722. docdir='${datarootdir}/doc/${PACKAGE}'
  723. infodir='${datarootdir}/info'
  724. htmldir='${docdir}'
  725. dvidir='${docdir}'
  726. pdfdir='${docdir}'
  727. psdir='${docdir}'
  728. libdir='${exec_prefix}/lib'
  729. localedir='${datarootdir}/locale'
  730. mandir='${datarootdir}/man'
  731. ac_prev=
  732. ac_dashdash=
  733. for ac_option
  734. do
  735. # If the previous option needs an argument, assign it.
  736. if test -n "$ac_prev"; then
  737. eval $ac_prev=\$ac_option
  738. ac_prev=
  739. continue
  740. fi
  741. case $ac_option in
  742. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  743. *=) ac_optarg= ;;
  744. *) ac_optarg=yes ;;
  745. esac
  746. # Accept the important Cygnus configure options, so we can diagnose typos.
  747. case $ac_dashdash$ac_option in
  748. --)
  749. ac_dashdash=yes ;;
  750. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  751. ac_prev=bindir ;;
  752. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  753. bindir=$ac_optarg ;;
  754. -build | --build | --buil | --bui | --bu)
  755. ac_prev=build_alias ;;
  756. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  757. build_alias=$ac_optarg ;;
  758. -cache-file | --cache-file | --cache-fil | --cache-fi \
  759. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  760. ac_prev=cache_file ;;
  761. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  762. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  763. cache_file=$ac_optarg ;;
  764. --config-cache | -C)
  765. cache_file=config.cache ;;
  766. -datadir | --datadir | --datadi | --datad)
  767. ac_prev=datadir ;;
  768. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  769. datadir=$ac_optarg ;;
  770. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  771. | --dataroo | --dataro | --datar)
  772. ac_prev=datarootdir ;;
  773. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  774. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  775. datarootdir=$ac_optarg ;;
  776. -disable-* | --disable-*)
  777. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  778. # Reject names that are not valid shell variable names.
  779. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  780. as_fn_error $? "invalid feature name: $ac_useropt"
  781. ac_useropt_orig=$ac_useropt
  782. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  783. case $ac_user_opts in
  784. *"
  785. "enable_$ac_useropt"
  786. "*) ;;
  787. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  788. ac_unrecognized_sep=', ';;
  789. esac
  790. eval enable_$ac_useropt=no ;;
  791. -docdir | --docdir | --docdi | --doc | --do)
  792. ac_prev=docdir ;;
  793. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  794. docdir=$ac_optarg ;;
  795. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  796. ac_prev=dvidir ;;
  797. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  798. dvidir=$ac_optarg ;;
  799. -enable-* | --enable-*)
  800. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  801. # Reject names that are not valid shell variable names.
  802. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  803. as_fn_error $? "invalid feature name: $ac_useropt"
  804. ac_useropt_orig=$ac_useropt
  805. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  806. case $ac_user_opts in
  807. *"
  808. "enable_$ac_useropt"
  809. "*) ;;
  810. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  811. ac_unrecognized_sep=', ';;
  812. esac
  813. eval enable_$ac_useropt=\$ac_optarg ;;
  814. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  815. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  816. | --exec | --exe | --ex)
  817. ac_prev=exec_prefix ;;
  818. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  819. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  820. | --exec=* | --exe=* | --ex=*)
  821. exec_prefix=$ac_optarg ;;
  822. -gas | --gas | --ga | --g)
  823. # Obsolete; use --with-gas.
  824. with_gas=yes ;;
  825. -help | --help | --hel | --he | -h)
  826. ac_init_help=long ;;
  827. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  828. ac_init_help=recursive ;;
  829. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  830. ac_init_help=short ;;
  831. -host | --host | --hos | --ho)
  832. ac_prev=host_alias ;;
  833. -host=* | --host=* | --hos=* | --ho=*)
  834. host_alias=$ac_optarg ;;
  835. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  836. ac_prev=htmldir ;;
  837. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  838. | --ht=*)
  839. htmldir=$ac_optarg ;;
  840. -includedir | --includedir | --includedi | --included | --include \
  841. | --includ | --inclu | --incl | --inc)
  842. ac_prev=includedir ;;
  843. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  844. | --includ=* | --inclu=* | --incl=* | --inc=*)
  845. includedir=$ac_optarg ;;
  846. -infodir | --infodir | --infodi | --infod | --info | --inf)
  847. ac_prev=infodir ;;
  848. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  849. infodir=$ac_optarg ;;
  850. -libdir | --libdir | --libdi | --libd)
  851. ac_prev=libdir ;;
  852. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  853. libdir=$ac_optarg ;;
  854. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  855. | --libexe | --libex | --libe)
  856. ac_prev=libexecdir ;;
  857. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  858. | --libexe=* | --libex=* | --libe=*)
  859. libexecdir=$ac_optarg ;;
  860. -localedir | --localedir | --localedi | --localed | --locale)
  861. ac_prev=localedir ;;
  862. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  863. localedir=$ac_optarg ;;
  864. -localstatedir | --localstatedir | --localstatedi | --localstated \
  865. | --localstate | --localstat | --localsta | --localst | --locals)
  866. ac_prev=localstatedir ;;
  867. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  868. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  869. localstatedir=$ac_optarg ;;
  870. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  871. ac_prev=mandir ;;
  872. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  873. mandir=$ac_optarg ;;
  874. -nfp | --nfp | --nf)
  875. # Obsolete; use --without-fp.
  876. with_fp=no ;;
  877. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  878. | --no-cr | --no-c | -n)
  879. no_create=yes ;;
  880. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  881. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  882. no_recursion=yes ;;
  883. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  884. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  885. | --oldin | --oldi | --old | --ol | --o)
  886. ac_prev=oldincludedir ;;
  887. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  888. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  889. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  890. oldincludedir=$ac_optarg ;;
  891. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  892. ac_prev=prefix ;;
  893. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  894. prefix=$ac_optarg ;;
  895. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  896. | --program-pre | --program-pr | --program-p)
  897. ac_prev=program_prefix ;;
  898. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  899. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  900. program_prefix=$ac_optarg ;;
  901. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  902. | --program-suf | --program-su | --program-s)
  903. ac_prev=program_suffix ;;
  904. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  905. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  906. program_suffix=$ac_optarg ;;
  907. -program-transform-name | --program-transform-name \
  908. | --program-transform-nam | --program-transform-na \
  909. | --program-transform-n | --program-transform- \
  910. | --program-transform | --program-transfor \
  911. | --program-transfo | --program-transf \
  912. | --program-trans | --program-tran \
  913. | --progr-tra | --program-tr | --program-t)
  914. ac_prev=program_transform_name ;;
  915. -program-transform-name=* | --program-transform-name=* \
  916. | --program-transform-nam=* | --program-transform-na=* \
  917. | --program-transform-n=* | --program-transform-=* \
  918. | --program-transform=* | --program-transfor=* \
  919. | --program-transfo=* | --program-transf=* \
  920. | --program-trans=* | --program-tran=* \
  921. | --progr-tra=* | --program-tr=* | --program-t=*)
  922. program_transform_name=$ac_optarg ;;
  923. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  924. ac_prev=pdfdir ;;
  925. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  926. pdfdir=$ac_optarg ;;
  927. -psdir | --psdir | --psdi | --psd | --ps)
  928. ac_prev=psdir ;;
  929. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  930. psdir=$ac_optarg ;;
  931. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  932. | -silent | --silent | --silen | --sile | --sil)
  933. silent=yes ;;
  934. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  935. ac_prev=sbindir ;;
  936. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  937. | --sbi=* | --sb=*)
  938. sbindir=$ac_optarg ;;
  939. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  940. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  941. | --sharedst | --shareds | --shared | --share | --shar \
  942. | --sha | --sh)
  943. ac_prev=sharedstatedir ;;
  944. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  945. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  946. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  947. | --sha=* | --sh=*)
  948. sharedstatedir=$ac_optarg ;;
  949. -site | --site | --sit)
  950. ac_prev=site ;;
  951. -site=* | --site=* | --sit=*)
  952. site=$ac_optarg ;;
  953. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  954. ac_prev=srcdir ;;
  955. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  956. srcdir=$ac_optarg ;;
  957. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  958. | --syscon | --sysco | --sysc | --sys | --sy)
  959. ac_prev=sysconfdir ;;
  960. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  961. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  962. sysconfdir=$ac_optarg ;;
  963. -target | --target | --targe | --targ | --tar | --ta | --t)
  964. ac_prev=target_alias ;;
  965. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  966. target_alias=$ac_optarg ;;
  967. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  968. verbose=yes ;;
  969. -version | --version | --versio | --versi | --vers | -V)
  970. ac_init_version=: ;;
  971. -with-* | --with-*)
  972. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  973. # Reject names that are not valid shell variable names.
  974. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  975. as_fn_error $? "invalid package name: $ac_useropt"
  976. ac_useropt_orig=$ac_useropt
  977. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  978. case $ac_user_opts in
  979. *"
  980. "with_$ac_useropt"
  981. "*) ;;
  982. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  983. ac_unrecognized_sep=', ';;
  984. esac
  985. eval with_$ac_useropt=\$ac_optarg ;;
  986. -without-* | --without-*)
  987. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  988. # Reject names that are not valid shell variable names.
  989. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  990. as_fn_error $? "invalid package name: $ac_useropt"
  991. ac_useropt_orig=$ac_useropt
  992. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  993. case $ac_user_opts in
  994. *"
  995. "with_$ac_useropt"
  996. "*) ;;
  997. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  998. ac_unrecognized_sep=', ';;
  999. esac
  1000. eval with_$ac_useropt=no ;;
  1001. --x)
  1002. # Obsolete; use --with-x.
  1003. with_x=yes ;;
  1004. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1005. | --x-incl | --x-inc | --x-in | --x-i)
  1006. ac_prev=x_includes ;;
  1007. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1008. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1009. x_includes=$ac_optarg ;;
  1010. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1011. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1012. ac_prev=x_libraries ;;
  1013. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1014. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1015. x_libraries=$ac_optarg ;;
  1016. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1017. Try \`$0 --help' for more information"
  1018. ;;
  1019. *=*)
  1020. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1021. # Reject names that are not valid shell variable names.
  1022. case $ac_envvar in #(
  1023. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1024. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1025. esac
  1026. eval $ac_envvar=\$ac_optarg
  1027. export $ac_envvar ;;
  1028. *)
  1029. # FIXME: should be removed in autoconf 3.0.
  1030. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1031. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1032. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1033. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1034. ;;
  1035. esac
  1036. done
  1037. if test -n "$ac_prev"; then
  1038. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1039. as_fn_error $? "missing argument to $ac_option"
  1040. fi
  1041. if test -n "$ac_unrecognized_opts"; then
  1042. case $enable_option_checking in
  1043. no) ;;
  1044. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1045. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1046. esac
  1047. fi
  1048. # Check all directory arguments for consistency.
  1049. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1050. datadir sysconfdir sharedstatedir localstatedir includedir \
  1051. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1052. libdir localedir mandir
  1053. do
  1054. eval ac_val=\$$ac_var
  1055. # Remove trailing slashes.
  1056. case $ac_val in
  1057. */ )
  1058. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1059. eval $ac_var=\$ac_val;;
  1060. esac
  1061. # Be sure to have absolute directory names.
  1062. case $ac_val in
  1063. [\\/$]* | ?:[\\/]* ) continue;;
  1064. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1065. esac
  1066. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1067. done
  1068. # There might be people who depend on the old broken behavior: `$host'
  1069. # used to hold the argument of --host etc.
  1070. # FIXME: To remove some day.
  1071. build=$build_alias
  1072. host=$host_alias
  1073. target=$target_alias
  1074. # FIXME: To remove some day.
  1075. if test "x$host_alias" != x; then
  1076. if test "x$build_alias" = x; then
  1077. cross_compiling=maybe
  1078. elif test "x$build_alias" != "x$host_alias"; then
  1079. cross_compiling=yes
  1080. fi
  1081. fi
  1082. ac_tool_prefix=
  1083. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1084. test "$silent" = yes && exec 6>/dev/null
  1085. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1086. ac_ls_di=`ls -di .` &&
  1087. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1088. as_fn_error $? "working directory cannot be determined"
  1089. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1090. as_fn_error $? "pwd does not report name of working directory"
  1091. # Find the source files, if location was not specified.
  1092. if test -z "$srcdir"; then
  1093. ac_srcdir_defaulted=yes
  1094. # Try the directory containing this script, then the parent directory.
  1095. ac_confdir=`$as_dirname -- "$as_myself" ||
  1096. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1097. X"$as_myself" : 'X\(//\)[^/]' \| \
  1098. X"$as_myself" : 'X\(//\)$' \| \
  1099. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1100. $as_echo X"$as_myself" |
  1101. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1102. s//\1/
  1103. q
  1104. }
  1105. /^X\(\/\/\)[^/].*/{
  1106. s//\1/
  1107. q
  1108. }
  1109. /^X\(\/\/\)$/{
  1110. s//\1/
  1111. q
  1112. }
  1113. /^X\(\/\).*/{
  1114. s//\1/
  1115. q
  1116. }
  1117. s/.*/./; q'`
  1118. srcdir=$ac_confdir
  1119. if test ! -r "$srcdir/$ac_unique_file"; then
  1120. srcdir=..
  1121. fi
  1122. else
  1123. ac_srcdir_defaulted=no
  1124. fi
  1125. if test ! -r "$srcdir/$ac_unique_file"; then
  1126. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1127. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1128. fi
  1129. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1130. ac_abs_confdir=`(
  1131. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1132. pwd)`
  1133. # When building in place, set srcdir=.
  1134. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1135. srcdir=.
  1136. fi
  1137. # Remove unnecessary trailing slashes from srcdir.
  1138. # Double slashes in file names in object file debugging info
  1139. # mess up M-x gdb in Emacs.
  1140. case $srcdir in
  1141. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1142. esac
  1143. for ac_var in $ac_precious_vars; do
  1144. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1145. eval ac_env_${ac_var}_value=\$${ac_var}
  1146. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1147. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1148. done
  1149. #
  1150. # Report the --help message.
  1151. #
  1152. if test "$ac_init_help" = "long"; then
  1153. # Omit some internal or obsolete options to make the list less imposing.
  1154. # This message is too long to be a string in the A/UX 3.1 sh.
  1155. cat <<_ACEOF
  1156. \`configure' configures this package to adapt to many kinds of systems.
  1157. Usage: $0 [OPTION]... [VAR=VALUE]...
  1158. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1159. VAR=VALUE. See below for descriptions of some of the useful variables.
  1160. Defaults for the options are specified in brackets.
  1161. Configuration:
  1162. -h, --help display this help and exit
  1163. --help=short display options specific to this package
  1164. --help=recursive display the short help of all the included packages
  1165. -V, --version display version information and exit
  1166. -q, --quiet, --silent do not print \`checking ...' messages
  1167. --cache-file=FILE cache test results in FILE [disabled]
  1168. -C, --config-cache alias for \`--cache-file=config.cache'
  1169. -n, --no-create do not create output files
  1170. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1171. Installation directories:
  1172. --prefix=PREFIX install architecture-independent files in PREFIX
  1173. [$ac_default_prefix]
  1174. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1175. [PREFIX]
  1176. By default, \`make install' will install all the files in
  1177. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1178. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1179. for instance \`--prefix=\$HOME'.
  1180. For better control, use the options below.
  1181. Fine tuning of the installation directories:
  1182. --bindir=DIR user executables [EPREFIX/bin]
  1183. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1184. --libexecdir=DIR program executables [EPREFIX/libexec]
  1185. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1186. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1187. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1188. --libdir=DIR object code libraries [EPREFIX/lib]
  1189. --includedir=DIR C header files [PREFIX/include]
  1190. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1191. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1192. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1193. --infodir=DIR info documentation [DATAROOTDIR/info]
  1194. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1195. --mandir=DIR man documentation [DATAROOTDIR/man]
  1196. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1197. --htmldir=DIR html documentation [DOCDIR]
  1198. --dvidir=DIR dvi documentation [DOCDIR]
  1199. --pdfdir=DIR pdf documentation [DOCDIR]
  1200. --psdir=DIR ps documentation [DOCDIR]
  1201. _ACEOF
  1202. cat <<\_ACEOF
  1203. _ACEOF
  1204. fi
  1205. if test -n "$ac_init_help"; then
  1206. cat <<\_ACEOF
  1207. Optional Features:
  1208. --disable-option-checking ignore unrecognized --enable/--with options
  1209. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1210. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1211. --disable-ipv6 disable IPv6 support
  1212. --disable-script-tcl disable TCL Script support
  1213. Optional Packages:
  1214. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1215. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1216. --with-openssl=PATH Path to OpenSSL
  1217. --with-tcllib=PATH full path to Tcl library
  1218. --with-tclinc=PATH full path to Tcl header
  1219. Some influential environment variables:
  1220. CXX C++ compiler command
  1221. CXXFLAGS C++ compiler flags
  1222. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1223. nonstandard directory <lib dir>
  1224. LIBS libraries to pass to the linker, e.g. -l<library>
  1225. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1226. you have headers in a nonstandard directory <include dir>
  1227. CXXCPP C++ preprocessor
  1228. Use these variables to override the choices made by `configure' or to help
  1229. it to find libraries and programs with nonstandard names/locations.
  1230. Report bugs to the package provider.
  1231. _ACEOF
  1232. ac_status=$?
  1233. fi
  1234. if test "$ac_init_help" = "recursive"; then
  1235. # If there are subdirs, report their specific --help.
  1236. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1237. test -d "$ac_dir" ||
  1238. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1239. continue
  1240. ac_builddir=.
  1241. case "$ac_dir" in
  1242. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1243. *)
  1244. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1245. # A ".." for each directory in $ac_dir_suffix.
  1246. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1247. case $ac_top_builddir_sub in
  1248. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1249. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1250. esac ;;
  1251. esac
  1252. ac_abs_top_builddir=$ac_pwd
  1253. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1254. # for backward compatibility:
  1255. ac_top_builddir=$ac_top_build_prefix
  1256. case $srcdir in
  1257. .) # We are building in place.
  1258. ac_srcdir=.
  1259. ac_top_srcdir=$ac_top_builddir_sub
  1260. ac_abs_top_srcdir=$ac_pwd ;;
  1261. [\\/]* | ?:[\\/]* ) # Absolute name.
  1262. ac_srcdir=$srcdir$ac_dir_suffix;
  1263. ac_top_srcdir=$srcdir
  1264. ac_abs_top_srcdir=$srcdir ;;
  1265. *) # Relative name.
  1266. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1267. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1268. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1269. esac
  1270. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1271. cd "$ac_dir" || { ac_status=$?; continue; }
  1272. # Check for guested configure.
  1273. if test -f "$ac_srcdir/configure.gnu"; then
  1274. echo &&
  1275. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1276. elif test -f "$ac_srcdir/configure"; then
  1277. echo &&
  1278. $SHELL "$ac_srcdir/configure" --help=recursive
  1279. else
  1280. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1281. fi || ac_status=$?
  1282. cd "$ac_pwd" || { ac_status=$?; break; }
  1283. done
  1284. fi
  1285. test -n "$ac_init_help" && exit $ac_status
  1286. if $ac_init_version; then
  1287. cat <<\_ACEOF
  1288. configure
  1289. generated by GNU Autoconf 2.69
  1290. Copyright (C) 2012 Free Software Foundation, Inc.
  1291. This configure script is free software; the Free Software Foundation
  1292. gives unlimited permission to copy, distribute and modify it.
  1293. Copyright (c) Bryan Drewery
  1294. _ACEOF
  1295. exit
  1296. fi
  1297. ## ------------------------ ##
  1298. ## Autoconf initialization. ##
  1299. ## ------------------------ ##
  1300. # ac_fn_cxx_try_compile LINENO
  1301. # ----------------------------
  1302. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1303. ac_fn_cxx_try_compile ()
  1304. {
  1305. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1306. rm -f conftest.$ac_objext
  1307. if { { ac_try="$ac_compile"
  1308. case "(($ac_try" in
  1309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1310. *) ac_try_echo=$ac_try;;
  1311. esac
  1312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1313. $as_echo "$ac_try_echo"; } >&5
  1314. (eval "$ac_compile") 2>conftest.err
  1315. ac_status=$?
  1316. if test -s conftest.err; then
  1317. grep -v '^ *+' conftest.err >conftest.er1
  1318. cat conftest.er1 >&5
  1319. mv -f conftest.er1 conftest.err
  1320. fi
  1321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1322. test $ac_status = 0; } && {
  1323. test -z "$ac_cxx_werror_flag" ||
  1324. test ! -s conftest.err
  1325. } && test -s conftest.$ac_objext; then :
  1326. ac_retval=0
  1327. else
  1328. $as_echo "$as_me: failed program was:" >&5
  1329. sed 's/^/| /' conftest.$ac_ext >&5
  1330. ac_retval=1
  1331. fi
  1332. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1333. as_fn_set_status $ac_retval
  1334. } # ac_fn_cxx_try_compile
  1335. # ac_fn_cxx_try_cpp LINENO
  1336. # ------------------------
  1337. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1338. ac_fn_cxx_try_cpp ()
  1339. {
  1340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1341. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1342. case "(($ac_try" in
  1343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1344. *) ac_try_echo=$ac_try;;
  1345. esac
  1346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1347. $as_echo "$ac_try_echo"; } >&5
  1348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1349. ac_status=$?
  1350. if test -s conftest.err; then
  1351. grep -v '^ *+' conftest.err >conftest.er1
  1352. cat conftest.er1 >&5
  1353. mv -f conftest.er1 conftest.err
  1354. fi
  1355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1356. test $ac_status = 0; } > conftest.i && {
  1357. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1358. test ! -s conftest.err
  1359. }; then :
  1360. ac_retval=0
  1361. else
  1362. $as_echo "$as_me: failed program was:" >&5
  1363. sed 's/^/| /' conftest.$ac_ext >&5
  1364. ac_retval=1
  1365. fi
  1366. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1367. as_fn_set_status $ac_retval
  1368. } # ac_fn_cxx_try_cpp
  1369. # ac_fn_cxx_try_run LINENO
  1370. # ------------------------
  1371. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1372. # that executables *can* be run.
  1373. ac_fn_cxx_try_run ()
  1374. {
  1375. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1376. if { { ac_try="$ac_link"
  1377. case "(($ac_try" in
  1378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. *) ac_try_echo=$ac_try;;
  1380. esac
  1381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1382. $as_echo "$ac_try_echo"; } >&5
  1383. (eval "$ac_link") 2>&5
  1384. ac_status=$?
  1385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1386. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1387. { { case "(($ac_try" in
  1388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1389. *) ac_try_echo=$ac_try;;
  1390. esac
  1391. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1392. $as_echo "$ac_try_echo"; } >&5
  1393. (eval "$ac_try") 2>&5
  1394. ac_status=$?
  1395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1396. test $ac_status = 0; }; }; then :
  1397. ac_retval=0
  1398. else
  1399. $as_echo "$as_me: program exited with status $ac_status" >&5
  1400. $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. ac_retval=$ac_status
  1403. fi
  1404. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1405. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1406. as_fn_set_status $ac_retval
  1407. } # ac_fn_cxx_try_run
  1408. # ac_fn_cxx_try_link LINENO
  1409. # -------------------------
  1410. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1411. ac_fn_cxx_try_link ()
  1412. {
  1413. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1414. rm -f conftest.$ac_objext conftest$ac_exeext
  1415. if { { ac_try="$ac_link"
  1416. case "(($ac_try" in
  1417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1418. *) ac_try_echo=$ac_try;;
  1419. esac
  1420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1421. $as_echo "$ac_try_echo"; } >&5
  1422. (eval "$ac_link") 2>conftest.err
  1423. ac_status=$?
  1424. if test -s conftest.err; then
  1425. grep -v '^ *+' conftest.err >conftest.er1
  1426. cat conftest.er1 >&5
  1427. mv -f conftest.er1 conftest.err
  1428. fi
  1429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1430. test $ac_status = 0; } && {
  1431. test -z "$ac_cxx_werror_flag" ||
  1432. test ! -s conftest.err
  1433. } && test -s conftest$ac_exeext && {
  1434. test "$cross_compiling" = yes ||
  1435. test -x conftest$ac_exeext
  1436. }; then :
  1437. ac_retval=0
  1438. else
  1439. $as_echo "$as_me: failed program was:" >&5
  1440. sed 's/^/| /' conftest.$ac_ext >&5
  1441. ac_retval=1
  1442. fi
  1443. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1444. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1445. # interfere with the next link command; also delete a directory that is
  1446. # left behind by Apple's compiler. We do this before executing the actions.
  1447. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1448. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1449. as_fn_set_status $ac_retval
  1450. } # ac_fn_cxx_try_link
  1451. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1452. # ---------------------------------------------------------
  1453. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1454. # the include files in INCLUDES and setting the cache variable VAR
  1455. # accordingly.
  1456. ac_fn_cxx_check_header_mongrel ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. if eval \${$3+:} false; then :
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1461. $as_echo_n "checking for $2... " >&6; }
  1462. if eval \${$3+:} false; then :
  1463. $as_echo_n "(cached) " >&6
  1464. fi
  1465. eval ac_res=\$$3
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1467. $as_echo "$ac_res" >&6; }
  1468. else
  1469. # Is the header compilable?
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1471. $as_echo_n "checking $2 usability... " >&6; }
  1472. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1473. /* end build/confdefs.h. */
  1474. $4
  1475. #include <$2>
  1476. _ACEOF
  1477. if ac_fn_cxx_try_compile "$LINENO"; then :
  1478. ac_header_compiler=yes
  1479. else
  1480. ac_header_compiler=no
  1481. fi
  1482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1484. $as_echo "$ac_header_compiler" >&6; }
  1485. # Is the header present?
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1487. $as_echo_n "checking $2 presence... " >&6; }
  1488. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1489. /* end build/confdefs.h. */
  1490. #include <$2>
  1491. _ACEOF
  1492. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1493. ac_header_preproc=yes
  1494. else
  1495. ac_header_preproc=no
  1496. fi
  1497. rm -f conftest.err conftest.i conftest.$ac_ext
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1499. $as_echo "$ac_header_preproc" >&6; }
  1500. # So? What about this header?
  1501. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1502. yes:no: )
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1504. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1506. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1507. ;;
  1508. no:yes:* )
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1510. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1512. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1514. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1516. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1518. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1519. ;;
  1520. esac
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1522. $as_echo_n "checking for $2... " >&6; }
  1523. if eval \${$3+:} false; then :
  1524. $as_echo_n "(cached) " >&6
  1525. else
  1526. eval "$3=\$ac_header_compiler"
  1527. fi
  1528. eval ac_res=\$$3
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1530. $as_echo "$ac_res" >&6; }
  1531. fi
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. } # ac_fn_cxx_check_header_mongrel
  1534. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1535. # ---------------------------------------------------------
  1536. # Tests whether HEADER exists and can be compiled using the include files in
  1537. # INCLUDES, setting the cache variable VAR accordingly.
  1538. ac_fn_cxx_check_header_compile ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1542. $as_echo_n "checking for $2... " >&6; }
  1543. if eval \${$3+:} false; then :
  1544. $as_echo_n "(cached) " >&6
  1545. else
  1546. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1547. /* end build/confdefs.h. */
  1548. $4
  1549. #include <$2>
  1550. _ACEOF
  1551. if ac_fn_cxx_try_compile "$LINENO"; then :
  1552. eval "$3=yes"
  1553. else
  1554. eval "$3=no"
  1555. fi
  1556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1562. } # ac_fn_cxx_check_header_compile
  1563. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1564. # ---------------------------------------------
  1565. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1566. # variable VAR accordingly.
  1567. ac_fn_cxx_check_type ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1571. $as_echo_n "checking for $2... " >&6; }
  1572. if eval \${$3+:} false; then :
  1573. $as_echo_n "(cached) " >&6
  1574. else
  1575. eval "$3=no"
  1576. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1577. /* end build/confdefs.h. */
  1578. $4
  1579. int
  1580. main ()
  1581. {
  1582. if (sizeof ($2))
  1583. return 0;
  1584. ;
  1585. return 0;
  1586. }
  1587. _ACEOF
  1588. if ac_fn_cxx_try_compile "$LINENO"; then :
  1589. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1590. /* end build/confdefs.h. */
  1591. $4
  1592. int
  1593. main ()
  1594. {
  1595. if (sizeof (($2)))
  1596. return 0;
  1597. ;
  1598. return 0;
  1599. }
  1600. _ACEOF
  1601. if ac_fn_cxx_try_compile "$LINENO"; then :
  1602. else
  1603. eval "$3=yes"
  1604. fi
  1605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1606. fi
  1607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1608. fi
  1609. eval ac_res=\$$3
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1611. $as_echo "$ac_res" >&6; }
  1612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1613. } # ac_fn_cxx_check_type
  1614. # ac_fn_c_find_intX_t LINENO BITS VAR
  1615. # -----------------------------------
  1616. # Finds a signed integer type with width BITS, setting cache variable VAR
  1617. # accordingly.
  1618. ac_fn_c_find_intX_t ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1622. $as_echo_n "checking for int$2_t... " >&6; }
  1623. if eval \${$3+:} false; then :
  1624. $as_echo_n "(cached) " >&6
  1625. else
  1626. eval "$3=no"
  1627. # Order is important - never check a type that is potentially smaller
  1628. # than half of the expected target width.
  1629. for ac_type in int$2_t 'int' 'long int' \
  1630. 'long long int' 'short int' 'signed char'; do
  1631. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1632. /* end build/confdefs.h. */
  1633. $ac_includes_default
  1634. enum { N = $2 / 2 - 1 };
  1635. int
  1636. main ()
  1637. {
  1638. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1639. test_array [0] = 0;
  1640. return test_array [0];
  1641. ;
  1642. return 0;
  1643. }
  1644. _ACEOF
  1645. if ac_fn_cxx_try_compile "$LINENO"; then :
  1646. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end build/confdefs.h. */
  1648. $ac_includes_default
  1649. enum { N = $2 / 2 - 1 };
  1650. int
  1651. main ()
  1652. {
  1653. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1654. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1655. test_array [0] = 0;
  1656. return test_array [0];
  1657. ;
  1658. return 0;
  1659. }
  1660. _ACEOF
  1661. if ac_fn_cxx_try_compile "$LINENO"; then :
  1662. else
  1663. case $ac_type in #(
  1664. int$2_t) :
  1665. eval "$3=yes" ;; #(
  1666. *) :
  1667. eval "$3=\$ac_type" ;;
  1668. esac
  1669. fi
  1670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1671. fi
  1672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1673. if eval test \"x\$"$3"\" = x"no"; then :
  1674. else
  1675. break
  1676. fi
  1677. done
  1678. fi
  1679. eval ac_res=\$$3
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1681. $as_echo "$ac_res" >&6; }
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. } # ac_fn_c_find_intX_t
  1684. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1685. # ------------------------------------
  1686. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1687. # accordingly.
  1688. ac_fn_c_find_uintX_t ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1692. $as_echo_n "checking for uint$2_t... " >&6; }
  1693. if eval \${$3+:} false; then :
  1694. $as_echo_n "(cached) " >&6
  1695. else
  1696. eval "$3=no"
  1697. # Order is important - never check a type that is potentially smaller
  1698. # than half of the expected target width.
  1699. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1700. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1701. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1702. /* end build/confdefs.h. */
  1703. $ac_includes_default
  1704. int
  1705. main ()
  1706. {
  1707. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1708. test_array [0] = 0;
  1709. return test_array [0];
  1710. ;
  1711. return 0;
  1712. }
  1713. _ACEOF
  1714. if ac_fn_cxx_try_compile "$LINENO"; then :
  1715. case $ac_type in #(
  1716. uint$2_t) :
  1717. eval "$3=yes" ;; #(
  1718. *) :
  1719. eval "$3=\$ac_type" ;;
  1720. esac
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1723. if eval test \"x\$"$3"\" = x"no"; then :
  1724. else
  1725. break
  1726. fi
  1727. done
  1728. fi
  1729. eval ac_res=\$$3
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1731. $as_echo "$ac_res" >&6; }
  1732. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1733. } # ac_fn_c_find_uintX_t
  1734. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1735. # ------------------------------------------------------
  1736. # Tries to find if the field MEMBER exists in type AGGR, after including
  1737. # INCLUDES, setting cache variable VAR accordingly.
  1738. ac_fn_cxx_check_member ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1742. $as_echo_n "checking for $2.$3... " >&6; }
  1743. if eval \${$4+:} false; then :
  1744. $as_echo_n "(cached) " >&6
  1745. else
  1746. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747. /* end build/confdefs.h. */
  1748. $5
  1749. int
  1750. main ()
  1751. {
  1752. static $2 ac_aggr;
  1753. if (ac_aggr.$3)
  1754. return 0;
  1755. ;
  1756. return 0;
  1757. }
  1758. _ACEOF
  1759. if ac_fn_cxx_try_compile "$LINENO"; then :
  1760. eval "$4=yes"
  1761. else
  1762. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1763. /* end build/confdefs.h. */
  1764. $5
  1765. int
  1766. main ()
  1767. {
  1768. static $2 ac_aggr;
  1769. if (sizeof ac_aggr.$3)
  1770. return 0;
  1771. ;
  1772. return 0;
  1773. }
  1774. _ACEOF
  1775. if ac_fn_cxx_try_compile "$LINENO"; then :
  1776. eval "$4=yes"
  1777. else
  1778. eval "$4=no"
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1781. fi
  1782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1783. fi
  1784. eval ac_res=\$$4
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1786. $as_echo "$ac_res" >&6; }
  1787. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1788. } # ac_fn_cxx_check_member
  1789. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1790. # -----------------------------------------------
  1791. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1792. # accordingly.
  1793. ac_fn_cxx_check_decl ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1797. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1799. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1800. if eval \${$3+:} false; then :
  1801. $as_echo_n "(cached) " >&6
  1802. else
  1803. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1804. /* end build/confdefs.h. */
  1805. $4
  1806. int
  1807. main ()
  1808. {
  1809. #ifndef $as_decl_name
  1810. #ifdef __cplusplus
  1811. (void) $as_decl_use;
  1812. #else
  1813. (void) $as_decl_name;
  1814. #endif
  1815. #endif
  1816. ;
  1817. return 0;
  1818. }
  1819. _ACEOF
  1820. if ac_fn_cxx_try_compile "$LINENO"; then :
  1821. eval "$3=yes"
  1822. else
  1823. eval "$3=no"
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. } # ac_fn_cxx_check_decl
  1832. # ac_fn_cxx_check_func LINENO FUNC VAR
  1833. # ------------------------------------
  1834. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1835. ac_fn_cxx_check_func ()
  1836. {
  1837. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1839. $as_echo_n "checking for $2... " >&6; }
  1840. if eval \${$3+:} false; then :
  1841. $as_echo_n "(cached) " >&6
  1842. else
  1843. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1844. /* end build/confdefs.h. */
  1845. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1846. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1847. #define $2 innocuous_$2
  1848. /* System header to define __stub macros and hopefully few prototypes,
  1849. which can conflict with char $2 (); below.
  1850. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1851. <limits.h> exists even on freestanding compilers. */
  1852. #ifdef __STDC__
  1853. # include <limits.h>
  1854. #else
  1855. # include <assert.h>
  1856. #endif
  1857. #undef $2
  1858. /* Override any GCC internal prototype to avoid an error.
  1859. Use char because int might match the return type of a GCC
  1860. builtin and then its argument prototype would still apply. */
  1861. #ifdef __cplusplus
  1862. extern "C"
  1863. #endif
  1864. char $2 ();
  1865. /* The GNU C library defines this for functions which it implements
  1866. to always fail with ENOSYS. Some functions are actually named
  1867. something starting with __ and the normal name is an alias. */
  1868. #if defined __stub_$2 || defined __stub___$2
  1869. choke me
  1870. #endif
  1871. int
  1872. main ()
  1873. {
  1874. return $2 ();
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_cxx_try_link "$LINENO"; then :
  1880. eval "$3=yes"
  1881. else
  1882. eval "$3=no"
  1883. fi
  1884. rm -f core conftest.err conftest.$ac_objext \
  1885. conftest$ac_exeext conftest.$ac_ext
  1886. fi
  1887. eval ac_res=\$$3
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1889. $as_echo "$ac_res" >&6; }
  1890. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1891. } # ac_fn_cxx_check_func
  1892. cat >build/config.log <<_ACEOF
  1893. This file contains any messages produced by compilers while
  1894. running configure, to aid debugging if configure makes a mistake.
  1895. It was created by $as_me, which was
  1896. generated by GNU Autoconf 2.69. Invocation command line was
  1897. $ $0 $@
  1898. _ACEOF
  1899. exec 5>>build/config.log
  1900. {
  1901. cat <<_ASUNAME
  1902. ## --------- ##
  1903. ## Platform. ##
  1904. ## --------- ##
  1905. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1906. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1907. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1908. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1909. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1910. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1911. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1912. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1913. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1914. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1915. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1916. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1917. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1918. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1919. _ASUNAME
  1920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1921. for as_dir in $PATH
  1922. do
  1923. IFS=$as_save_IFS
  1924. test -z "$as_dir" && as_dir=.
  1925. $as_echo "PATH: $as_dir"
  1926. done
  1927. IFS=$as_save_IFS
  1928. } >&5
  1929. cat >&5 <<_ACEOF
  1930. ## ----------- ##
  1931. ## Core tests. ##
  1932. ## ----------- ##
  1933. _ACEOF
  1934. # Keep a trace of the command line.
  1935. # Strip out --no-create and --no-recursion so they do not pile up.
  1936. # Strip out --silent because we don't want to record it for future runs.
  1937. # Also quote any args containing shell meta-characters.
  1938. # Make two passes to allow for proper duplicate-argument suppression.
  1939. ac_configure_args=
  1940. ac_configure_args0=
  1941. ac_configure_args1=
  1942. ac_must_keep_next=false
  1943. for ac_pass in 1 2
  1944. do
  1945. for ac_arg
  1946. do
  1947. case $ac_arg in
  1948. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1949. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1950. | -silent | --silent | --silen | --sile | --sil)
  1951. continue ;;
  1952. *\'*)
  1953. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1954. esac
  1955. case $ac_pass in
  1956. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1957. 2)
  1958. as_fn_append ac_configure_args1 " '$ac_arg'"
  1959. if test $ac_must_keep_next = true; then
  1960. ac_must_keep_next=false # Got value, back to normal.
  1961. else
  1962. case $ac_arg in
  1963. *=* | --config-cache | -C | -disable-* | --disable-* \
  1964. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1965. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1966. | -with-* | --with-* | -without-* | --without-* | --x)
  1967. case "$ac_configure_args0 " in
  1968. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1969. esac
  1970. ;;
  1971. -* ) ac_must_keep_next=true ;;
  1972. esac
  1973. fi
  1974. as_fn_append ac_configure_args " '$ac_arg'"
  1975. ;;
  1976. esac
  1977. done
  1978. done
  1979. { ac_configure_args0=; unset ac_configure_args0;}
  1980. { ac_configure_args1=; unset ac_configure_args1;}
  1981. # When interrupted or exit'd, cleanup temporary files, and complete
  1982. # build/config.log. We remove comments because anyway the quotes in there
  1983. # would cause problems or look ugly.
  1984. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1985. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1986. trap 'exit_status=$?
  1987. # Save into build/config.log some information that might help in debugging.
  1988. {
  1989. echo
  1990. $as_echo "## ---------------- ##
  1991. ## Cache variables. ##
  1992. ## ---------------- ##"
  1993. echo
  1994. # The following way of writing the cache mishandles newlines in values,
  1995. (
  1996. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1997. eval ac_val=\$$ac_var
  1998. case $ac_val in #(
  1999. *${as_nl}*)
  2000. case $ac_var in #(
  2001. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2002. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2003. esac
  2004. case $ac_var in #(
  2005. _ | IFS | as_nl) ;; #(
  2006. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2007. *) { eval $ac_var=; unset $ac_var;} ;;
  2008. esac ;;
  2009. esac
  2010. done
  2011. (set) 2>&1 |
  2012. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2013. *${as_nl}ac_space=\ *)
  2014. sed -n \
  2015. "s/'\''/'\''\\\\'\'''\''/g;
  2016. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2017. ;; #(
  2018. *)
  2019. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2020. ;;
  2021. esac |
  2022. sort
  2023. )
  2024. echo
  2025. $as_echo "## ----------------- ##
  2026. ## Output variables. ##
  2027. ## ----------------- ##"
  2028. echo
  2029. for ac_var in $ac_subst_vars
  2030. do
  2031. eval ac_val=\$$ac_var
  2032. case $ac_val in
  2033. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2034. esac
  2035. $as_echo "$ac_var='\''$ac_val'\''"
  2036. done | sort
  2037. echo
  2038. if test -n "$ac_subst_files"; then
  2039. $as_echo "## ------------------- ##
  2040. ## File substitutions. ##
  2041. ## ------------------- ##"
  2042. echo
  2043. for ac_var in $ac_subst_files
  2044. do
  2045. eval ac_val=\$$ac_var
  2046. case $ac_val in
  2047. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2048. esac
  2049. $as_echo "$ac_var='\''$ac_val'\''"
  2050. done | sort
  2051. echo
  2052. fi
  2053. if test -s build/confdefs.h; then
  2054. $as_echo "## ----------- ##
  2055. ## build/confdefs.h. ##
  2056. ## ----------- ##"
  2057. echo
  2058. cat build/confdefs.h
  2059. echo
  2060. fi
  2061. test "$ac_signal" != 0 &&
  2062. $as_echo "$as_me: caught signal $ac_signal"
  2063. $as_echo "$as_me: exit $exit_status"
  2064. } >&5
  2065. rm -f core *.core core.conftest.* &&
  2066. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2067. exit $exit_status
  2068. ' 0
  2069. for ac_signal in 1 2 13 15; do
  2070. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2071. done
  2072. ac_signal=0
  2073. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2074. rm -f -r conftest* build/confdefs.h
  2075. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2076. # Predefined preprocessor variables.
  2077. cat >>build/confdefs.h <<_ACEOF
  2078. #define PACKAGE_NAME "$PACKAGE_NAME"
  2079. _ACEOF
  2080. cat >>build/confdefs.h <<_ACEOF
  2081. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2082. _ACEOF
  2083. cat >>build/confdefs.h <<_ACEOF
  2084. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2085. _ACEOF
  2086. cat >>build/confdefs.h <<_ACEOF
  2087. #define PACKAGE_STRING "$PACKAGE_STRING"
  2088. _ACEOF
  2089. cat >>build/confdefs.h <<_ACEOF
  2090. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2091. _ACEOF
  2092. cat >>build/confdefs.h <<_ACEOF
  2093. #define PACKAGE_URL "$PACKAGE_URL"
  2094. _ACEOF
  2095. # Let the site file select an alternate cache file if it wants to.
  2096. # Prefer an explicitly selected file to automatically selected ones.
  2097. ac_site_file1=NONE
  2098. ac_site_file2=NONE
  2099. if test -n "$CONFIG_SITE"; then
  2100. # We do not want a PATH search for config.site.
  2101. case $CONFIG_SITE in #((
  2102. -*) ac_site_file1=./$CONFIG_SITE;;
  2103. */*) ac_site_file1=$CONFIG_SITE;;
  2104. *) ac_site_file1=./$CONFIG_SITE;;
  2105. esac
  2106. elif test "x$prefix" != xNONE; then
  2107. ac_site_file1=$prefix/share/config.site
  2108. ac_site_file2=$prefix/etc/config.site
  2109. else
  2110. ac_site_file1=$ac_default_prefix/share/config.site
  2111. ac_site_file2=$ac_default_prefix/etc/config.site
  2112. fi
  2113. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2114. do
  2115. test "x$ac_site_file" = xNONE && continue
  2116. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2118. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2119. sed 's/^/| /' "$ac_site_file" >&5
  2120. . "$ac_site_file" \
  2121. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2123. as_fn_error $? "failed to load site script $ac_site_file
  2124. See \`build/config.log' for more details" "$LINENO" 5; }
  2125. fi
  2126. done
  2127. if test -r "$cache_file"; then
  2128. # Some versions of bash will fail to source /dev/null (special files
  2129. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2130. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2132. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2133. case $cache_file in
  2134. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2135. *) . "./$cache_file";;
  2136. esac
  2137. fi
  2138. else
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2140. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2141. >$cache_file
  2142. fi
  2143. as_fn_append ac_header_list " sys/time.h"
  2144. as_fn_append ac_header_list " unistd.h"
  2145. as_fn_append ac_func_list " alarm"
  2146. as_fn_append ac_header_list " stdlib.h"
  2147. as_fn_append ac_header_list " sys/param.h"
  2148. # Check that the precious variables saved in the cache have kept the same
  2149. # value.
  2150. ac_cache_corrupted=false
  2151. for ac_var in $ac_precious_vars; do
  2152. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2153. eval ac_new_set=\$ac_env_${ac_var}_set
  2154. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2155. eval ac_new_val=\$ac_env_${ac_var}_value
  2156. case $ac_old_set,$ac_new_set in
  2157. set,)
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2159. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2160. ac_cache_corrupted=: ;;
  2161. ,set)
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2163. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2164. ac_cache_corrupted=: ;;
  2165. ,);;
  2166. *)
  2167. if test "x$ac_old_val" != "x$ac_new_val"; then
  2168. # differences in whitespace do not lead to failure.
  2169. ac_old_val_w=`echo x $ac_old_val`
  2170. ac_new_val_w=`echo x $ac_new_val`
  2171. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2173. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2174. ac_cache_corrupted=:
  2175. else
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2177. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2178. eval $ac_var=\$ac_old_val
  2179. fi
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2181. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2183. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2184. fi;;
  2185. esac
  2186. # Pass precious variables to build/config.status.
  2187. if test "$ac_new_set" = set; then
  2188. case $ac_new_val in
  2189. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2190. *) ac_arg=$ac_var=$ac_new_val ;;
  2191. esac
  2192. case " $ac_configure_args " in
  2193. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2194. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2195. esac
  2196. fi
  2197. done
  2198. if $ac_cache_corrupted; then
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2202. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2203. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2204. fi
  2205. ## -------------------- ##
  2206. ## Main body of script. ##
  2207. ## -------------------- ##
  2208. ac_ext=c
  2209. ac_cpp='$CPP $CPPFLAGS'
  2210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2213. ac_config_headers="$ac_config_headers src/config.h"
  2214. ac_aux_dir=
  2215. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2216. if test -f "$ac_dir/install-sh"; then
  2217. ac_aux_dir=$ac_dir
  2218. ac_install_sh="$ac_aux_dir/install-sh -c"
  2219. break
  2220. elif test -f "$ac_dir/install.sh"; then
  2221. ac_aux_dir=$ac_dir
  2222. ac_install_sh="$ac_aux_dir/install.sh -c"
  2223. break
  2224. elif test -f "$ac_dir/shtool"; then
  2225. ac_aux_dir=$ac_dir
  2226. ac_install_sh="$ac_aux_dir/shtool install -c"
  2227. break
  2228. fi
  2229. done
  2230. if test -z "$ac_aux_dir"; then
  2231. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2232. fi
  2233. # These three variables are undocumented and unsupported,
  2234. # and are intended to be withdrawn in a future Autoconf release.
  2235. # They can cause serious problems if a builder's source tree is in a directory
  2236. # whose full name contains unusual characters.
  2237. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2238. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2239. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2240. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2241. egg_ac_parameters=
  2242. ac_prev=
  2243. for ac_arg in $ac_configure_args; do
  2244. if test -n "$ac_prev"; then
  2245. ac_prev=
  2246. continue
  2247. fi
  2248. case $ac_arg in
  2249. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2250. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2251. ac_prev=cache_file ;;
  2252. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2253. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2254. | --c=*)
  2255. ;;
  2256. --config-cache | -C)
  2257. ;;
  2258. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2259. ac_prev=srcdir ;;
  2260. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2261. ;;
  2262. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2263. esac
  2264. done
  2265. # Setup build environment
  2266. #AC_REQUIRE_CPP
  2267. ac_ext=cpp
  2268. ac_cpp='$CXXCPP $CPPFLAGS'
  2269. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2270. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2271. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2272. ac_ext=cpp
  2273. ac_cpp='$CXXCPP $CPPFLAGS'
  2274. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2275. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2276. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2277. if test -z "$CXX"; then
  2278. if test -n "$CCC"; then
  2279. CXX=$CCC
  2280. else
  2281. if test -n "$ac_tool_prefix"; then
  2282. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2283. do
  2284. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2285. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2287. $as_echo_n "checking for $ac_word... " >&6; }
  2288. if ${ac_cv_prog_CXX+:} false; then :
  2289. $as_echo_n "(cached) " >&6
  2290. else
  2291. if test -n "$CXX"; then
  2292. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2293. else
  2294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2295. for as_dir in $PATH
  2296. do
  2297. IFS=$as_save_IFS
  2298. test -z "$as_dir" && as_dir=.
  2299. for ac_exec_ext in '' $ac_executable_extensions; do
  2300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2301. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2303. break 2
  2304. fi
  2305. done
  2306. done
  2307. IFS=$as_save_IFS
  2308. fi
  2309. fi
  2310. CXX=$ac_cv_prog_CXX
  2311. if test -n "$CXX"; then
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2313. $as_echo "$CXX" >&6; }
  2314. else
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2316. $as_echo "no" >&6; }
  2317. fi
  2318. test -n "$CXX" && break
  2319. done
  2320. fi
  2321. if test -z "$CXX"; then
  2322. ac_ct_CXX=$CXX
  2323. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2324. do
  2325. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2326. set dummy $ac_prog; ac_word=$2
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2328. $as_echo_n "checking for $ac_word... " >&6; }
  2329. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2330. $as_echo_n "(cached) " >&6
  2331. else
  2332. if test -n "$ac_ct_CXX"; then
  2333. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2334. else
  2335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2336. for as_dir in $PATH
  2337. do
  2338. IFS=$as_save_IFS
  2339. test -z "$as_dir" && as_dir=.
  2340. for ac_exec_ext in '' $ac_executable_extensions; do
  2341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2342. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2344. break 2
  2345. fi
  2346. done
  2347. done
  2348. IFS=$as_save_IFS
  2349. fi
  2350. fi
  2351. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2352. if test -n "$ac_ct_CXX"; then
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2354. $as_echo "$ac_ct_CXX" >&6; }
  2355. else
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2357. $as_echo "no" >&6; }
  2358. fi
  2359. test -n "$ac_ct_CXX" && break
  2360. done
  2361. if test "x$ac_ct_CXX" = x; then
  2362. CXX="g++"
  2363. else
  2364. case $cross_compiling:$ac_tool_warned in
  2365. yes:)
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2368. ac_tool_warned=yes ;;
  2369. esac
  2370. CXX=$ac_ct_CXX
  2371. fi
  2372. fi
  2373. fi
  2374. fi
  2375. # Provide some information about the compiler.
  2376. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2377. set X $ac_compile
  2378. ac_compiler=$2
  2379. for ac_option in --version -v -V -qversion; do
  2380. { { ac_try="$ac_compiler $ac_option >&5"
  2381. case "(($ac_try" in
  2382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2383. *) ac_try_echo=$ac_try;;
  2384. esac
  2385. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2386. $as_echo "$ac_try_echo"; } >&5
  2387. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2388. ac_status=$?
  2389. if test -s conftest.err; then
  2390. sed '10a\
  2391. ... rest of stderr output deleted ...
  2392. 10q' conftest.err >conftest.er1
  2393. cat conftest.er1 >&5
  2394. fi
  2395. rm -f conftest.er1 conftest.err
  2396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2397. test $ac_status = 0; }
  2398. done
  2399. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2400. /* end build/confdefs.h. */
  2401. int
  2402. main ()
  2403. {
  2404. ;
  2405. return 0;
  2406. }
  2407. _ACEOF
  2408. ac_clean_files_save=$ac_clean_files
  2409. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2410. # Try to create an executable without -o first, disregard a.out.
  2411. # It will help us diagnose broken compilers, and finding out an intuition
  2412. # of exeext.
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2414. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2415. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2416. # The possible output files:
  2417. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2418. ac_rmfiles=
  2419. for ac_file in $ac_files
  2420. do
  2421. case $ac_file in
  2422. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2423. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2424. esac
  2425. done
  2426. rm -f $ac_rmfiles
  2427. if { { ac_try="$ac_link_default"
  2428. case "(($ac_try" in
  2429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2430. *) ac_try_echo=$ac_try;;
  2431. esac
  2432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2433. $as_echo "$ac_try_echo"; } >&5
  2434. (eval "$ac_link_default") 2>&5
  2435. ac_status=$?
  2436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2437. test $ac_status = 0; }; then :
  2438. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2439. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2440. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2441. # so that the user can short-circuit this test for compilers unknown to
  2442. # Autoconf.
  2443. for ac_file in $ac_files ''
  2444. do
  2445. test -f "$ac_file" || continue
  2446. case $ac_file in
  2447. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2448. ;;
  2449. [ab].out )
  2450. # We found the default executable, but exeext='' is most
  2451. # certainly right.
  2452. break;;
  2453. *.* )
  2454. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2455. then :; else
  2456. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2457. fi
  2458. # We set ac_cv_exeext here because the later test for it is not
  2459. # safe: cross compilers may not add the suffix if given an `-o'
  2460. # argument, so we may need to know it at that point already.
  2461. # Even if this section looks crufty: it has the advantage of
  2462. # actually working.
  2463. break;;
  2464. * )
  2465. break;;
  2466. esac
  2467. done
  2468. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2469. else
  2470. ac_file=''
  2471. fi
  2472. if test -z "$ac_file"; then :
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2474. $as_echo "no" >&6; }
  2475. $as_echo "$as_me: failed program was:" >&5
  2476. sed 's/^/| /' conftest.$ac_ext >&5
  2477. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2478. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2479. as_fn_error 77 "C++ compiler cannot create executables
  2480. See \`build/config.log' for more details" "$LINENO" 5; }
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2483. $as_echo "yes" >&6; }
  2484. fi
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2486. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2488. $as_echo "$ac_file" >&6; }
  2489. ac_exeext=$ac_cv_exeext
  2490. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2491. ac_clean_files=$ac_clean_files_save
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2493. $as_echo_n "checking for suffix of executables... " >&6; }
  2494. if { { ac_try="$ac_link"
  2495. case "(($ac_try" in
  2496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2497. *) ac_try_echo=$ac_try;;
  2498. esac
  2499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2500. $as_echo "$ac_try_echo"; } >&5
  2501. (eval "$ac_link") 2>&5
  2502. ac_status=$?
  2503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2504. test $ac_status = 0; }; then :
  2505. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2506. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2507. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2508. # `rm'.
  2509. for ac_file in conftest.exe conftest conftest.*; do
  2510. test -f "$ac_file" || continue
  2511. case $ac_file in
  2512. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2513. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2514. break;;
  2515. * ) break;;
  2516. esac
  2517. done
  2518. else
  2519. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2520. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2521. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2522. See \`build/config.log' for more details" "$LINENO" 5; }
  2523. fi
  2524. rm -f conftest conftest$ac_cv_exeext
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2526. $as_echo "$ac_cv_exeext" >&6; }
  2527. rm -f conftest.$ac_ext
  2528. EXEEXT=$ac_cv_exeext
  2529. ac_exeext=$EXEEXT
  2530. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2531. /* end build/confdefs.h. */
  2532. #include <stdio.h>
  2533. int
  2534. main ()
  2535. {
  2536. FILE *f = fopen ("conftest.out", "w");
  2537. return ferror (f) || fclose (f) != 0;
  2538. ;
  2539. return 0;
  2540. }
  2541. _ACEOF
  2542. ac_clean_files="$ac_clean_files conftest.out"
  2543. # Check that the compiler produces executables we can run. If not, either
  2544. # the compiler is broken, or we cross compile.
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2546. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2547. if test "$cross_compiling" != yes; then
  2548. { { ac_try="$ac_link"
  2549. case "(($ac_try" in
  2550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2551. *) ac_try_echo=$ac_try;;
  2552. esac
  2553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2554. $as_echo "$ac_try_echo"; } >&5
  2555. (eval "$ac_link") 2>&5
  2556. ac_status=$?
  2557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2558. test $ac_status = 0; }
  2559. if { ac_try='./conftest$ac_cv_exeext'
  2560. { { case "(($ac_try" in
  2561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2562. *) ac_try_echo=$ac_try;;
  2563. esac
  2564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2565. $as_echo "$ac_try_echo"; } >&5
  2566. (eval "$ac_try") 2>&5
  2567. ac_status=$?
  2568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2569. test $ac_status = 0; }; }; then
  2570. cross_compiling=no
  2571. else
  2572. if test "$cross_compiling" = maybe; then
  2573. cross_compiling=yes
  2574. else
  2575. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2576. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2577. as_fn_error $? "cannot run C++ compiled programs.
  2578. If you meant to cross compile, use \`--host'.
  2579. See \`build/config.log' for more details" "$LINENO" 5; }
  2580. fi
  2581. fi
  2582. fi
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2584. $as_echo "$cross_compiling" >&6; }
  2585. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2586. ac_clean_files=$ac_clean_files_save
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2588. $as_echo_n "checking for suffix of object files... " >&6; }
  2589. if ${ac_cv_objext+:} false; then :
  2590. $as_echo_n "(cached) " >&6
  2591. else
  2592. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2593. /* end build/confdefs.h. */
  2594. int
  2595. main ()
  2596. {
  2597. ;
  2598. return 0;
  2599. }
  2600. _ACEOF
  2601. rm -f conftest.o conftest.obj
  2602. if { { ac_try="$ac_compile"
  2603. case "(($ac_try" in
  2604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2605. *) ac_try_echo=$ac_try;;
  2606. esac
  2607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2608. $as_echo "$ac_try_echo"; } >&5
  2609. (eval "$ac_compile") 2>&5
  2610. ac_status=$?
  2611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2612. test $ac_status = 0; }; then :
  2613. for ac_file in conftest.o conftest.obj conftest.*; do
  2614. test -f "$ac_file" || continue;
  2615. case $ac_file in
  2616. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2617. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2618. break;;
  2619. esac
  2620. done
  2621. else
  2622. $as_echo "$as_me: failed program was:" >&5
  2623. sed 's/^/| /' conftest.$ac_ext >&5
  2624. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2625. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2626. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2627. See \`build/config.log' for more details" "$LINENO" 5; }
  2628. fi
  2629. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2630. fi
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2632. $as_echo "$ac_cv_objext" >&6; }
  2633. OBJEXT=$ac_cv_objext
  2634. ac_objext=$OBJEXT
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2636. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2637. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2638. $as_echo_n "(cached) " >&6
  2639. else
  2640. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2641. /* end build/confdefs.h. */
  2642. int
  2643. main ()
  2644. {
  2645. #ifndef __GNUC__
  2646. choke me
  2647. #endif
  2648. ;
  2649. return 0;
  2650. }
  2651. _ACEOF
  2652. if ac_fn_cxx_try_compile "$LINENO"; then :
  2653. ac_compiler_gnu=yes
  2654. else
  2655. ac_compiler_gnu=no
  2656. fi
  2657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2658. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2659. fi
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2661. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2662. if test $ac_compiler_gnu = yes; then
  2663. GXX=yes
  2664. else
  2665. GXX=
  2666. fi
  2667. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2668. ac_save_CXXFLAGS=$CXXFLAGS
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2670. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2671. if ${ac_cv_prog_cxx_g+:} false; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2675. ac_cxx_werror_flag=yes
  2676. ac_cv_prog_cxx_g=no
  2677. CXXFLAGS="-g"
  2678. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2679. /* end build/confdefs.h. */
  2680. int
  2681. main ()
  2682. {
  2683. ;
  2684. return 0;
  2685. }
  2686. _ACEOF
  2687. if ac_fn_cxx_try_compile "$LINENO"; then :
  2688. ac_cv_prog_cxx_g=yes
  2689. else
  2690. CXXFLAGS=""
  2691. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2692. /* end build/confdefs.h. */
  2693. int
  2694. main ()
  2695. {
  2696. ;
  2697. return 0;
  2698. }
  2699. _ACEOF
  2700. if ac_fn_cxx_try_compile "$LINENO"; then :
  2701. else
  2702. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2703. CXXFLAGS="-g"
  2704. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2705. /* end build/confdefs.h. */
  2706. int
  2707. main ()
  2708. {
  2709. ;
  2710. return 0;
  2711. }
  2712. _ACEOF
  2713. if ac_fn_cxx_try_compile "$LINENO"; then :
  2714. ac_cv_prog_cxx_g=yes
  2715. fi
  2716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2717. fi
  2718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2719. fi
  2720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2721. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2722. fi
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2724. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2725. if test "$ac_test_CXXFLAGS" = set; then
  2726. CXXFLAGS=$ac_save_CXXFLAGS
  2727. elif test $ac_cv_prog_cxx_g = yes; then
  2728. if test "$GXX" = yes; then
  2729. CXXFLAGS="-g -O2"
  2730. else
  2731. CXXFLAGS="-g"
  2732. fi
  2733. else
  2734. if test "$GXX" = yes; then
  2735. CXXFLAGS="-O2"
  2736. else
  2737. CXXFLAGS=
  2738. fi
  2739. fi
  2740. ac_ext=cpp
  2741. ac_cpp='$CXXCPP $CPPFLAGS'
  2742. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2743. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2744. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2745. CC="${CXX} -x c"
  2746. ac_ext=cpp
  2747. ac_cpp='$CXXCPP $CPPFLAGS'
  2748. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2749. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2750. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2752. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2753. if test -z "$CXXCPP"; then
  2754. if ${ac_cv_prog_CXXCPP+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. # Double quotes because CXXCPP needs to be expanded
  2758. for CXXCPP in "$CXX -E" "/lib/cpp"
  2759. do
  2760. ac_preproc_ok=false
  2761. for ac_cxx_preproc_warn_flag in '' yes
  2762. do
  2763. # Use a header file that comes with gcc, so configuring glibc
  2764. # with a fresh cross-compiler works.
  2765. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2766. # <limits.h> exists even on freestanding compilers.
  2767. # On the NeXT, cc -E runs the code through the compiler's parser,
  2768. # not just through cpp. "Syntax error" is here to catch this case.
  2769. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2770. /* end build/confdefs.h. */
  2771. #ifdef __STDC__
  2772. # include <limits.h>
  2773. #else
  2774. # include <assert.h>
  2775. #endif
  2776. Syntax error
  2777. _ACEOF
  2778. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2779. else
  2780. # Broken: fails on valid input.
  2781. continue
  2782. fi
  2783. rm -f conftest.err conftest.i conftest.$ac_ext
  2784. # OK, works on sane cases. Now check whether nonexistent headers
  2785. # can be detected and how.
  2786. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2787. /* end build/confdefs.h. */
  2788. #include <ac_nonexistent.h>
  2789. _ACEOF
  2790. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2791. # Broken: success on invalid input.
  2792. continue
  2793. else
  2794. # Passes both tests.
  2795. ac_preproc_ok=:
  2796. break
  2797. fi
  2798. rm -f conftest.err conftest.i conftest.$ac_ext
  2799. done
  2800. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2801. rm -f conftest.i conftest.err conftest.$ac_ext
  2802. if $ac_preproc_ok; then :
  2803. break
  2804. fi
  2805. done
  2806. ac_cv_prog_CXXCPP=$CXXCPP
  2807. fi
  2808. CXXCPP=$ac_cv_prog_CXXCPP
  2809. else
  2810. ac_cv_prog_CXXCPP=$CXXCPP
  2811. fi
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2813. $as_echo "$CXXCPP" >&6; }
  2814. ac_preproc_ok=false
  2815. for ac_cxx_preproc_warn_flag in '' yes
  2816. do
  2817. # Use a header file that comes with gcc, so configuring glibc
  2818. # with a fresh cross-compiler works.
  2819. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2820. # <limits.h> exists even on freestanding compilers.
  2821. # On the NeXT, cc -E runs the code through the compiler's parser,
  2822. # not just through cpp. "Syntax error" is here to catch this case.
  2823. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2824. /* end build/confdefs.h. */
  2825. #ifdef __STDC__
  2826. # include <limits.h>
  2827. #else
  2828. # include <assert.h>
  2829. #endif
  2830. Syntax error
  2831. _ACEOF
  2832. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2833. else
  2834. # Broken: fails on valid input.
  2835. continue
  2836. fi
  2837. rm -f conftest.err conftest.i conftest.$ac_ext
  2838. # OK, works on sane cases. Now check whether nonexistent headers
  2839. # can be detected and how.
  2840. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2841. /* end build/confdefs.h. */
  2842. #include <ac_nonexistent.h>
  2843. _ACEOF
  2844. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2845. # Broken: success on invalid input.
  2846. continue
  2847. else
  2848. # Passes both tests.
  2849. ac_preproc_ok=:
  2850. break
  2851. fi
  2852. rm -f conftest.err conftest.i conftest.$ac_ext
  2853. done
  2854. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2855. rm -f conftest.i conftest.err conftest.$ac_ext
  2856. if $ac_preproc_ok; then :
  2857. else
  2858. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2859. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2860. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2861. See \`build/config.log' for more details" "$LINENO" 5; }
  2862. fi
  2863. ac_ext=cpp
  2864. ac_cpp='$CXXCPP $CPPFLAGS'
  2865. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2866. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2867. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2868. ax_cxx_compile_cxx11_required=true
  2869. ac_ext=cpp
  2870. ac_cpp='$CXXCPP $CPPFLAGS'
  2871. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2872. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2873. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2874. ac_success=no
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2876. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2877. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2878. $as_echo_n "(cached) " >&6
  2879. else
  2880. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2881. /* end build/confdefs.h. */
  2882. template <typename T>
  2883. struct check
  2884. {
  2885. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2886. };
  2887. struct Base {
  2888. virtual void f() {}
  2889. };
  2890. struct Child : public Base {
  2891. virtual void f() override {}
  2892. };
  2893. typedef check<check<bool>> right_angle_brackets;
  2894. int a;
  2895. decltype(a) b;
  2896. typedef check<int> check_type;
  2897. check_type c;
  2898. check_type&& cr = static_cast<check_type&&>(c);
  2899. auto d = a;
  2900. auto l = [](){};
  2901. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2902. struct use_l { use_l() { l(); } };
  2903. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2904. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2905. namespace test_template_alias_sfinae {
  2906. struct foo {};
  2907. template<typename T>
  2908. using member = typename T::member_type;
  2909. template<typename T>
  2910. void func(...) {}
  2911. template<typename T>
  2912. void func(member<T>*) {}
  2913. void test();
  2914. void test() {
  2915. func<foo>(0);
  2916. }
  2917. }
  2918. _ACEOF
  2919. if ac_fn_cxx_try_compile "$LINENO"; then :
  2920. ax_cv_cxx_compile_cxx11=yes
  2921. else
  2922. ax_cv_cxx_compile_cxx11=no
  2923. fi
  2924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2925. fi
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2927. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2928. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2929. ac_success=yes
  2930. fi
  2931. if test x$ac_success = xno; then
  2932. for switch in -std=c++11 -std=c++0x; do
  2933. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2935. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2936. if eval \${$cachevar+:} false; then :
  2937. $as_echo_n "(cached) " >&6
  2938. else
  2939. ac_save_CXXFLAGS="$CXXFLAGS"
  2940. CXXFLAGS="$CXXFLAGS $switch"
  2941. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2942. /* end build/confdefs.h. */
  2943. template <typename T>
  2944. struct check
  2945. {
  2946. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2947. };
  2948. struct Base {
  2949. virtual void f() {}
  2950. };
  2951. struct Child : public Base {
  2952. virtual void f() override {}
  2953. };
  2954. typedef check<check<bool>> right_angle_brackets;
  2955. int a;
  2956. decltype(a) b;
  2957. typedef check<int> check_type;
  2958. check_type c;
  2959. check_type&& cr = static_cast<check_type&&>(c);
  2960. auto d = a;
  2961. auto l = [](){};
  2962. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2963. struct use_l { use_l() { l(); } };
  2964. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2965. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2966. namespace test_template_alias_sfinae {
  2967. struct foo {};
  2968. template<typename T>
  2969. using member = typename T::member_type;
  2970. template<typename T>
  2971. void func(...) {}
  2972. template<typename T>
  2973. void func(member<T>*) {}
  2974. void test();
  2975. void test() {
  2976. func<foo>(0);
  2977. }
  2978. }
  2979. _ACEOF
  2980. if ac_fn_cxx_try_compile "$LINENO"; then :
  2981. eval $cachevar=yes
  2982. else
  2983. eval $cachevar=no
  2984. fi
  2985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2986. CXXFLAGS="$ac_save_CXXFLAGS"
  2987. fi
  2988. eval ac_res=\$$cachevar
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2990. $as_echo "$ac_res" >&6; }
  2991. if eval test x\$$cachevar = xyes; then
  2992. CXXFLAGS="$CXXFLAGS $switch"
  2993. ac_success=yes
  2994. break
  2995. fi
  2996. done
  2997. fi
  2998. ac_ext=cpp
  2999. ac_cpp='$CXXCPP $CPPFLAGS'
  3000. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3001. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3002. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3003. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3004. if test x$ac_success = xno; then
  3005. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3006. fi
  3007. else
  3008. if test x$ac_success = xno; then
  3009. HAVE_CXX11=0
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3011. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  3012. else
  3013. HAVE_CXX11=1
  3014. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  3015. fi
  3016. fi
  3017. if test "${cross_compiling-x}" = "x"
  3018. then
  3019. cat << 'EOF' >&2
  3020. configure: error:
  3021. This system does not appear to have a working C compiler.
  3022. A working C compiler is required to compile Wraith.
  3023. EOF
  3024. exit 1
  3025. fi
  3026. if test -n "$GXX"; then
  3027. CXXFLAGS="$CXXFLAGS"
  3028. fi
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler requires -rpath" >&5
  3030. $as_echo_n "checking whether the compiler requires -rpath... " >&6; }
  3031. if ${ax_cv_prog_cc_need_rpath+:} false; then :
  3032. $as_echo_n "(cached) " >&6
  3033. else
  3034. if test "$cross_compiling" = yes; then :
  3035. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3037. as_fn_error $? "cannot run test program while cross compiling
  3038. See \`build/config.log' for more details" "$LINENO" 5; }
  3039. else
  3040. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3041. /* end build/confdefs.h. */
  3042. #include <vector>
  3043. int main() {
  3044. std::vector<int> test;
  3045. try {
  3046. return test.at(5);
  3047. } catch (...) {
  3048. ;
  3049. }
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. if ac_fn_cxx_try_run "$LINENO"; then :
  3054. ax_cv_prog_cc_need_rpath=no
  3055. else
  3056. ax_cv_prog_cc_need_rpath=yes
  3057. fi
  3058. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3059. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3060. fi
  3061. fi
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_need_rpath" >&5
  3063. $as_echo "$ax_cv_prog_cc_need_rpath" >&6; }
  3064. if [ "${ax_cv_prog_cc_need_rpath}" = "yes" ]; then
  3065. save_ldflags="$LDFLAGS"
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler requires -rpath" >&5
  3067. $as_echo_n "checking whether the compiler requires -rpath... " >&6; }
  3068. if ${ax_cv_prog_cc_rpath+:} false; then :
  3069. $as_echo_n "(cached) " >&6
  3070. else
  3071. ax_cv_prog_cc_rpath=
  3072. for path in `${CXX} -print-search-dirs | awk '/^libraries:/ {print substr($0, 13)}' | tr ':' ' '`; do
  3073. if [ -r "${path}/libstdc++.so" ]; then
  3074. LDFLAGS="-Wl,-rpath,${path}"
  3075. if test "$cross_compiling" = yes; then :
  3076. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3078. as_fn_error $? "cannot run test program while cross compiling
  3079. See \`build/config.log' for more details" "$LINENO" 5; }
  3080. else
  3081. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3082. /* end build/confdefs.h. */
  3083. #include <vector>
  3084. int main() {
  3085. std::vector<int> test;
  3086. try {
  3087. return test.at(5);
  3088. } catch (...) {
  3089. ;
  3090. }
  3091. return 0;
  3092. }
  3093. _ACEOF
  3094. if ac_fn_cxx_try_run "$LINENO"; then :
  3095. ax_cv_prog_cc_rpath="`realpath ${path}`"
  3096. fi
  3097. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3098. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3099. fi
  3100. LDFLAGS="$save_ldflags"
  3101. [ -n "${ax_cv_prog_cc_rpath}" ] && break
  3102. fi
  3103. done
  3104. fi
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_rpath" >&5
  3106. $as_echo "$ax_cv_prog_cc_rpath" >&6; }
  3107. LDFLAGS="$save_ldflags"
  3108. fi
  3109. if [ -n "${ax_cv_prog_cc_rpath}" ]; then
  3110. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-Wl,-rpath,${ax_cv_prog_cc_rpath}"
  3111. fi
  3112. #checkpoint
  3113. cat >confcache <<\_ACEOF
  3114. # This file is a shell script that caches the results of configure
  3115. # tests run on this system so they can be shared between configure
  3116. # scripts and configure runs, see configure's option --config-cache.
  3117. # It is not useful on other systems. If it contains results you don't
  3118. # want to keep, you may remove or edit it.
  3119. #
  3120. # build/config.status only pays attention to the cache file if you give it
  3121. # the --recheck option to rerun configure.
  3122. #
  3123. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3124. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3125. # following values.
  3126. _ACEOF
  3127. # The following way of writing the cache mishandles newlines in values,
  3128. # but we know of no workaround that is simple, portable, and efficient.
  3129. # So, we kill variables containing newlines.
  3130. # Ultrix sh set writes to stderr and can't be redirected directly,
  3131. # and sets the high bit in the cache file unless we assign to the vars.
  3132. (
  3133. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3134. eval ac_val=\$$ac_var
  3135. case $ac_val in #(
  3136. *${as_nl}*)
  3137. case $ac_var in #(
  3138. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3139. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3140. esac
  3141. case $ac_var in #(
  3142. _ | IFS | as_nl) ;; #(
  3143. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3144. *) { eval $ac_var=; unset $ac_var;} ;;
  3145. esac ;;
  3146. esac
  3147. done
  3148. (set) 2>&1 |
  3149. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3150. *${as_nl}ac_space=\ *)
  3151. # `set' does not quote correctly, so add quotes: double-quote
  3152. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3153. sed -n \
  3154. "s/'/'\\\\''/g;
  3155. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3156. ;; #(
  3157. *)
  3158. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3159. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3160. ;;
  3161. esac |
  3162. sort
  3163. ) |
  3164. sed '
  3165. /^ac_cv_env_/b end
  3166. t clear
  3167. :clear
  3168. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3169. t end
  3170. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3171. :end' >>confcache
  3172. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3173. if test -w "$cache_file"; then
  3174. if test "x$cache_file" != "x/dev/null"; then
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3176. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3177. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3178. cat confcache >"$cache_file"
  3179. else
  3180. case $cache_file in #(
  3181. */* | ?:*)
  3182. mv -f confcache "$cache_file"$$ &&
  3183. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3184. *)
  3185. mv -f confcache "$cache_file" ;;
  3186. esac
  3187. fi
  3188. fi
  3189. else
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3191. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3192. fi
  3193. fi
  3194. rm -f confcache
  3195. # Speedup compile
  3196. if test -n "$GXX" && test -z "$no_wall"; then
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3198. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3199. if ${egg_cv_var_ccwall+:} false; then :
  3200. $as_echo_n "(cached) " >&6
  3201. else
  3202. ac_old_CXXFLAGS="$CXXFLAGS"
  3203. CXXFLAGS="$CXXFLAGS -Wall"
  3204. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3205. /* end build/confdefs.h. */
  3206. int main ()
  3207. {
  3208. return(0);
  3209. }
  3210. _ACEOF
  3211. if ac_fn_cxx_try_compile "$LINENO"; then :
  3212. egg_cv_var_ccwall="yes"
  3213. else
  3214. egg_cv_var_ccwall="no"
  3215. fi
  3216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3217. CXXFLAGS="$ac_old_CXXFLAGS"
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3220. $as_echo "$egg_cv_var_ccwall" >&6; }
  3221. if test "$egg_cv_var_ccwall" = "yes"; then
  3222. CXXFLAGS="$CXXFLAGS -Wall"
  3223. fi
  3224. fi
  3225. if test -n "$GXX" && test -z "$no_pipe"; then
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3227. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3228. if ${egg_cv_var_ccpipe+:} false; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. ac_old_CXX="$CXX"
  3232. CXX="$CXX -pipe"
  3233. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3234. /* end build/confdefs.h. */
  3235. int main ()
  3236. {
  3237. return(0);
  3238. }
  3239. _ACEOF
  3240. if ac_fn_cxx_try_compile "$LINENO"; then :
  3241. egg_cv_var_ccpipe="yes"
  3242. else
  3243. egg_cv_var_ccpipe="no"
  3244. fi
  3245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3246. CXX="$ac_old_CXX"
  3247. fi
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3249. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3250. if test "$egg_cv_var_ccpipe" = "yes"; then
  3251. CXX="$CXX -pipe"
  3252. fi
  3253. fi
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3255. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3256. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3257. $as_echo_n "(cached) " >&6
  3258. else
  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. ac_saved_flags="$CXXFLAGS"
  3265. CXXFLAGS="-Werror -fcolor-diagnostics"
  3266. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3267. /* end build/confdefs.h. */
  3268. int
  3269. main ()
  3270. {
  3271. ;
  3272. return 0;
  3273. }
  3274. _ACEOF
  3275. if ac_fn_cxx_try_compile "$LINENO"; then :
  3276. ax_cv_prog_cc_colordiagnostics="yes"
  3277. else
  3278. ax_cv_prog_cc_colordiagnostics="no"
  3279. fi
  3280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3281. CXXFLAGS="$ac_saved_flags"
  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. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3289. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3290. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3291. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3292. elif [ -n "" ]; then
  3293. cat << 'EOF' >&2
  3294. configure: error:
  3295. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3296. This compile flag is required.
  3297. EOF
  3298. exit 1
  3299. fi
  3300. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3302. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3303. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. ac_ext=cpp
  3307. ac_cpp='$CXXCPP $CPPFLAGS'
  3308. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3309. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3310. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3311. ac_saved_flags="$CXXFLAGS"
  3312. CXXFLAGS="-Werror -Wno-invalid-source-encoding"
  3313. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3314. /* end build/confdefs.h. */
  3315. int
  3316. main ()
  3317. {
  3318. ;
  3319. return 0;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_cxx_try_compile "$LINENO"; then :
  3323. ax_cv_prog_cc_invalid_source_encoding="yes"
  3324. else
  3325. ax_cv_prog_cc_invalid_source_encoding="no"
  3326. fi
  3327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3328. CXXFLAGS="$ac_saved_flags"
  3329. ac_ext=cpp
  3330. ac_cpp='$CXXCPP $CPPFLAGS'
  3331. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3332. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3333. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3334. fi
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3336. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3337. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3338. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3339. elif [ -n "" ]; then
  3340. cat << 'EOF' >&2
  3341. configure: error:
  3342. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3343. This compile flag is required.
  3344. EOF
  3345. exit 1
  3346. fi
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3348. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3349. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3350. $as_echo_n "(cached) " >&6
  3351. else
  3352. ac_ext=cpp
  3353. ac_cpp='$CXXCPP $CPPFLAGS'
  3354. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3355. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3356. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3357. ac_saved_flags="$CXXFLAGS"
  3358. CXXFLAGS="-Werror -fstack-protector"
  3359. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3360. /* end build/confdefs.h. */
  3361. int
  3362. main ()
  3363. {
  3364. ;
  3365. return 0;
  3366. }
  3367. _ACEOF
  3368. if ac_fn_cxx_try_compile "$LINENO"; then :
  3369. ax_cv_prog_cc_stackprotector="yes"
  3370. else
  3371. ax_cv_prog_cc_stackprotector="no"
  3372. fi
  3373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3374. CXXFLAGS="$ac_saved_flags"
  3375. ac_ext=cpp
  3376. ac_cpp='$CXXCPP $CPPFLAGS'
  3377. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3378. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3379. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3380. fi
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3382. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3383. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3384. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3385. elif [ -n "" ]; then
  3386. cat << 'EOF' >&2
  3387. configure: error:
  3388. Your OS or C++ compiler does not support -fstack-protector.
  3389. This compile flag is required.
  3390. EOF
  3391. exit 1
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3394. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3395. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3396. $as_echo_n "(cached) " >&6
  3397. else
  3398. ac_ext=cpp
  3399. ac_cpp='$CXXCPP $CPPFLAGS'
  3400. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3401. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3402. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3403. ac_saved_flags="$CXXFLAGS"
  3404. CXXFLAGS="-Werror -fstack-protector-strong"
  3405. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3406. /* end build/confdefs.h. */
  3407. int
  3408. main ()
  3409. {
  3410. ;
  3411. return 0;
  3412. }
  3413. _ACEOF
  3414. if ac_fn_cxx_try_compile "$LINENO"; then :
  3415. ax_cv_prog_cc_stackprotectorstrong="yes"
  3416. else
  3417. ax_cv_prog_cc_stackprotectorstrong="no"
  3418. fi
  3419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3420. CXXFLAGS="$ac_saved_flags"
  3421. ac_ext=cpp
  3422. ac_cpp='$CXXCPP $CPPFLAGS'
  3423. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3424. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3425. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3426. fi
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3428. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3429. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3430. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3431. elif [ -n "" ]; then
  3432. cat << 'EOF' >&2
  3433. configure: error:
  3434. Your OS or C++ compiler does not support -fstack-protector-strong.
  3435. This compile flag is required.
  3436. EOF
  3437. exit 1
  3438. fi
  3439. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3440. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3441. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3442. LDFLAGS="${LDFLAGS} -fstack-protector"
  3443. fi
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3445. $as_echo_n "checking whether the compiler understands -Og... " >&6; }
  3446. if ${ax_cv_prog_cc_Og+:} false; then :
  3447. $as_echo_n "(cached) " >&6
  3448. else
  3449. ac_ext=cpp
  3450. ac_cpp='$CXXCPP $CPPFLAGS'
  3451. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3452. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3453. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3454. ac_saved_flags="$CXXFLAGS"
  3455. CXXFLAGS="-Werror -Og"
  3456. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3457. /* end build/confdefs.h. */
  3458. int
  3459. main ()
  3460. {
  3461. ;
  3462. return 0;
  3463. }
  3464. _ACEOF
  3465. if ac_fn_cxx_try_compile "$LINENO"; then :
  3466. ax_cv_prog_cc_Og="yes"
  3467. else
  3468. ax_cv_prog_cc_Og="no"
  3469. fi
  3470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3471. CXXFLAGS="$ac_saved_flags"
  3472. ac_ext=cpp
  3473. ac_cpp='$CXXCPP $CPPFLAGS'
  3474. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3475. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3476. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3477. fi
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  3479. $as_echo "$ax_cv_prog_cc_Og" >&6; }
  3480. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  3481. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  3482. elif [ -n "" ]; then
  3483. cat << 'EOF' >&2
  3484. configure: error:
  3485. Your OS or C++ compiler does not support -Og.
  3486. This compile flag is required.
  3487. EOF
  3488. exit 1
  3489. fi
  3490. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  3491. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  3492. fi
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3494. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3495. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  3496. $as_echo_n "(cached) " >&6
  3497. else
  3498. ac_ext=cpp
  3499. ac_cpp='$CXXCPP $CPPFLAGS'
  3500. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3501. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3502. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3503. ac_saved_flags="$CXXFLAGS"
  3504. CXXFLAGS="-Werror -fstack-protector-all"
  3505. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3506. /* end build/confdefs.h. */
  3507. int
  3508. main ()
  3509. {
  3510. ;
  3511. return 0;
  3512. }
  3513. _ACEOF
  3514. if ac_fn_cxx_try_compile "$LINENO"; then :
  3515. ax_cv_prog_cc_stackprotectorall="yes"
  3516. else
  3517. ax_cv_prog_cc_stackprotectorall="no"
  3518. fi
  3519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3520. CXXFLAGS="$ac_saved_flags"
  3521. ac_ext=cpp
  3522. ac_cpp='$CXXCPP $CPPFLAGS'
  3523. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3524. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3525. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  3528. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3529. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3530. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3531. elif [ -n "" ]; then
  3532. cat << 'EOF' >&2
  3533. configure: error:
  3534. Your OS or C++ compiler does not support -fstack-protector-all.
  3535. This compile flag is required.
  3536. EOF
  3537. exit 1
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
  3540. $as_echo_n "checking whether the compiler understands -static-libstdc++... " >&6; }
  3541. if ${ax_cv_prog_cc_static_libstdcxx+:} false; then :
  3542. $as_echo_n "(cached) " >&6
  3543. else
  3544. ac_ext=cpp
  3545. ac_cpp='$CXXCPP $CPPFLAGS'
  3546. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3547. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3548. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3549. ac_saved_flags="$CXXFLAGS"
  3550. CXXFLAGS="-Werror -static-libstdc++"
  3551. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3552. /* end build/confdefs.h. */
  3553. int
  3554. main ()
  3555. {
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. if ac_fn_cxx_try_compile "$LINENO"; then :
  3561. ax_cv_prog_cc_static_libstdcxx="yes"
  3562. else
  3563. ax_cv_prog_cc_static_libstdcxx="no"
  3564. fi
  3565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3566. CXXFLAGS="$ac_saved_flags"
  3567. ac_ext=cpp
  3568. ac_cpp='$CXXCPP $CPPFLAGS'
  3569. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3570. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3571. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3572. fi
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libstdcxx" >&5
  3574. $as_echo "$ax_cv_prog_cc_static_libstdcxx" >&6; }
  3575. if [ "$ax_cv_prog_cc_static_libstdcxx" = "yes" ]; then
  3576. LDFLAGS="$LDFLAGS -static-libstdc++"
  3577. elif [ -n "" ]; then
  3578. cat << 'EOF' >&2
  3579. configure: error:
  3580. Your OS or C++ compiler does not support -static-libstdc++.
  3581. This compile flag is required.
  3582. EOF
  3583. exit 1
  3584. fi
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libgcc" >&5
  3586. $as_echo_n "checking whether the compiler understands -static-libgcc... " >&6; }
  3587. if ${ax_cv_prog_cc_static_libgcc+:} false; then :
  3588. $as_echo_n "(cached) " >&6
  3589. else
  3590. ac_ext=cpp
  3591. ac_cpp='$CXXCPP $CPPFLAGS'
  3592. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3593. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3594. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3595. ac_saved_flags="$CXXFLAGS"
  3596. CXXFLAGS="-Werror -static-libgcc"
  3597. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3598. /* end build/confdefs.h. */
  3599. int
  3600. main ()
  3601. {
  3602. ;
  3603. return 0;
  3604. }
  3605. _ACEOF
  3606. if ac_fn_cxx_try_compile "$LINENO"; then :
  3607. ax_cv_prog_cc_static_libgcc="yes"
  3608. else
  3609. ax_cv_prog_cc_static_libgcc="no"
  3610. fi
  3611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3612. CXXFLAGS="$ac_saved_flags"
  3613. ac_ext=cpp
  3614. ac_cpp='$CXXCPP $CPPFLAGS'
  3615. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3616. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3617. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3618. fi
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libgcc" >&5
  3620. $as_echo "$ax_cv_prog_cc_static_libgcc" >&6; }
  3621. if [ "$ax_cv_prog_cc_static_libgcc" = "yes" ]; then
  3622. LDFLAGS="$LDFLAGS -static-libgcc"
  3623. elif [ -n "" ]; then
  3624. cat << 'EOF' >&2
  3625. configure: error:
  3626. Your OS or C++ compiler does not support -static-libgcc.
  3627. This compile flag is required.
  3628. EOF
  3629. exit 1
  3630. fi
  3631. CCDEPMODE=gcc
  3632. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3633. if test $num -ge "3"; then
  3634. CCDEPMODE=gcc3
  3635. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3636. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Wno-format-y2k"
  3637. GCC3_CXXFLAGS="-Woverloaded-virtual"
  3638. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3639. fi
  3640. #checkpoint
  3641. cat >confcache <<\_ACEOF
  3642. # This file is a shell script that caches the results of configure
  3643. # tests run on this system so they can be shared between configure
  3644. # scripts and configure runs, see configure's option --config-cache.
  3645. # It is not useful on other systems. If it contains results you don't
  3646. # want to keep, you may remove or edit it.
  3647. #
  3648. # build/config.status only pays attention to the cache file if you give it
  3649. # the --recheck option to rerun configure.
  3650. #
  3651. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3652. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3653. # following values.
  3654. _ACEOF
  3655. # The following way of writing the cache mishandles newlines in values,
  3656. # but we know of no workaround that is simple, portable, and efficient.
  3657. # So, we kill variables containing newlines.
  3658. # Ultrix sh set writes to stderr and can't be redirected directly,
  3659. # and sets the high bit in the cache file unless we assign to the vars.
  3660. (
  3661. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3662. eval ac_val=\$$ac_var
  3663. case $ac_val in #(
  3664. *${as_nl}*)
  3665. case $ac_var in #(
  3666. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3667. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3668. esac
  3669. case $ac_var in #(
  3670. _ | IFS | as_nl) ;; #(
  3671. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3672. *) { eval $ac_var=; unset $ac_var;} ;;
  3673. esac ;;
  3674. esac
  3675. done
  3676. (set) 2>&1 |
  3677. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3678. *${as_nl}ac_space=\ *)
  3679. # `set' does not quote correctly, so add quotes: double-quote
  3680. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3681. sed -n \
  3682. "s/'/'\\\\''/g;
  3683. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3684. ;; #(
  3685. *)
  3686. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3687. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3688. ;;
  3689. esac |
  3690. sort
  3691. ) |
  3692. sed '
  3693. /^ac_cv_env_/b end
  3694. t clear
  3695. :clear
  3696. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3697. t end
  3698. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3699. :end' >>confcache
  3700. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3701. if test -w "$cache_file"; then
  3702. if test "x$cache_file" != "x/dev/null"; then
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3704. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3705. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3706. cat confcache >"$cache_file"
  3707. else
  3708. case $cache_file in #(
  3709. */* | ?:*)
  3710. mv -f confcache "$cache_file"$$ &&
  3711. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3712. *)
  3713. mv -f confcache "$cache_file" ;;
  3714. esac
  3715. fi
  3716. fi
  3717. else
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3719. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3720. fi
  3721. fi
  3722. rm -f confcache
  3723. # Checks for programs
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3725. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3726. set x ${MAKE-make}
  3727. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3728. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3729. $as_echo_n "(cached) " >&6
  3730. else
  3731. cat >conftest.make <<\_ACEOF
  3732. SHELL = /bin/sh
  3733. all:
  3734. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3735. _ACEOF
  3736. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3737. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3738. *@@@%%%=?*=@@@%%%*)
  3739. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3740. *)
  3741. eval ac_cv_prog_make_${ac_make}_set=no;;
  3742. esac
  3743. rm -f conftest.make
  3744. fi
  3745. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3747. $as_echo "yes" >&6; }
  3748. SET_MAKE=
  3749. else
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3751. $as_echo "no" >&6; }
  3752. SET_MAKE="MAKE=${MAKE-make}"
  3753. fi
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3755. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3756. if ${ac_cv_path_SED+:} false; then :
  3757. $as_echo_n "(cached) " >&6
  3758. else
  3759. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3760. for ac_i in 1 2 3 4 5 6 7; do
  3761. ac_script="$ac_script$as_nl$ac_script"
  3762. done
  3763. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3764. { ac_script=; unset ac_script;}
  3765. if test -z "$SED"; then
  3766. ac_path_SED_found=false
  3767. # Loop through the user's path and test for each of PROGNAME-LIST
  3768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3769. for as_dir in $PATH
  3770. do
  3771. IFS=$as_save_IFS
  3772. test -z "$as_dir" && as_dir=.
  3773. for ac_prog in sed gsed; do
  3774. for ac_exec_ext in '' $ac_executable_extensions; do
  3775. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3776. as_fn_executable_p "$ac_path_SED" || continue
  3777. # Check for GNU ac_path_SED and select it if it is found.
  3778. # Check for GNU $ac_path_SED
  3779. case `"$ac_path_SED" --version 2>&1` in
  3780. *GNU*)
  3781. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3782. *)
  3783. ac_count=0
  3784. $as_echo_n 0123456789 >"conftest.in"
  3785. while :
  3786. do
  3787. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3788. mv "conftest.tmp" "conftest.in"
  3789. cp "conftest.in" "conftest.nl"
  3790. $as_echo '' >> "conftest.nl"
  3791. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3792. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3793. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3794. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3795. # Best one so far, save it but keep looking for a better one
  3796. ac_cv_path_SED="$ac_path_SED"
  3797. ac_path_SED_max=$ac_count
  3798. fi
  3799. # 10*(2^10) chars as input seems more than enough
  3800. test $ac_count -gt 10 && break
  3801. done
  3802. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3803. esac
  3804. $ac_path_SED_found && break 3
  3805. done
  3806. done
  3807. done
  3808. IFS=$as_save_IFS
  3809. if test -z "$ac_cv_path_SED"; then
  3810. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3811. fi
  3812. else
  3813. ac_cv_path_SED=$SED
  3814. fi
  3815. fi
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3817. $as_echo "$ac_cv_path_SED" >&6; }
  3818. SED="$ac_cv_path_SED"
  3819. rm -f conftest.sed
  3820. cat << 'EOF' > conftest.head
  3821. a
  3822. b
  3823. c
  3824. EOF
  3825. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3826. do
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3828. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3829. if ${ac_cv_prog_HEAD_1+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. if test -n "$HEAD_1"
  3833. then
  3834. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3835. else
  3836. if test "`cat conftest.head | $ac_prog`" = "a";
  3837. then
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3839. $as_echo "yes" >&6; }
  3840. ac_cv_prog_HEAD_1=$ac_prog
  3841. else
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3843. $as_echo "no" >&6; }
  3844. fi
  3845. fi
  3846. fi
  3847. test -n "$ac_cv_prog_HEAD_1" && break
  3848. done
  3849. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3850. then
  3851. cat << 'EOF' >&2
  3852. configure: error:
  3853. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3854. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3855. EOF
  3856. exit 1
  3857. fi
  3858. rm -f conftest.head
  3859. HEAD_1=$ac_cv_prog_HEAD_1
  3860. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3861. for ac_prog in gawk mawk nawk awk
  3862. do
  3863. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3864. set dummy $ac_prog; ac_word=$2
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3866. $as_echo_n "checking for $ac_word... " >&6; }
  3867. if ${ac_cv_prog_AWK+:} false; then :
  3868. $as_echo_n "(cached) " >&6
  3869. else
  3870. if test -n "$AWK"; then
  3871. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3872. else
  3873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3874. for as_dir in $PATH
  3875. do
  3876. IFS=$as_save_IFS
  3877. test -z "$as_dir" && as_dir=.
  3878. for ac_exec_ext in '' $ac_executable_extensions; do
  3879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3880. ac_cv_prog_AWK="$ac_prog"
  3881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3882. break 2
  3883. fi
  3884. done
  3885. done
  3886. IFS=$as_save_IFS
  3887. fi
  3888. fi
  3889. AWK=$ac_cv_prog_AWK
  3890. if test -n "$AWK"; then
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3892. $as_echo "$AWK" >&6; }
  3893. else
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3895. $as_echo "no" >&6; }
  3896. fi
  3897. test -n "$AWK" && break
  3898. done
  3899. if test "${AWK-x}" = "x"
  3900. then
  3901. cat << 'EOF' >&2
  3902. configure: error:
  3903. This system seems to lack a working 'awk' command.
  3904. A working 'awk' command is required to compile Wraith.
  3905. EOF
  3906. exit 1
  3907. fi
  3908. # basename is needed for Tcl library and header checks
  3909. # Extract the first word of "basename", so it can be a program name with args.
  3910. set dummy basename; ac_word=$2
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3912. $as_echo_n "checking for $ac_word... " >&6; }
  3913. if ${ac_cv_prog_BASENAME+:} false; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. if test -n "$BASENAME"; then
  3917. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3918. else
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3926. ac_cv_prog_BASENAME="basename"
  3927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3928. break 2
  3929. fi
  3930. done
  3931. done
  3932. IFS=$as_save_IFS
  3933. fi
  3934. fi
  3935. BASENAME=$ac_cv_prog_BASENAME
  3936. if test -n "$BASENAME"; then
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3938. $as_echo "$BASENAME" >&6; }
  3939. else
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3941. $as_echo "no" >&6; }
  3942. fi
  3943. if test "${BASENAME-x}" = "x"
  3944. then
  3945. cat << 'EOF' >&2
  3946. configure: error:
  3947. This system seems to lack a working 'basename' command.
  3948. A working 'basename' command is required to compile Wraith.
  3949. EOF
  3950. exit 1
  3951. fi
  3952. # Extract the first word of "objcopy", so it can be a program name with args.
  3953. set dummy objcopy; ac_word=$2
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3955. $as_echo_n "checking for $ac_word... " >&6; }
  3956. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. if test -n "$OBJCOPY"; then
  3960. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3961. else
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3969. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971. break 2
  3972. fi
  3973. done
  3974. done
  3975. IFS=$as_save_IFS
  3976. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3977. fi
  3978. fi
  3979. OBJCOPY=$ac_cv_prog_OBJCOPY
  3980. if test -n "$OBJCOPY"; then
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3982. $as_echo "$OBJCOPY" >&6; }
  3983. else
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3985. $as_echo "no" >&6; }
  3986. fi
  3987. # Extract the first word of "strip", so it can be a program name with args.
  3988. set dummy strip; ac_word=$2
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3990. $as_echo_n "checking for $ac_word... " >&6; }
  3991. if ${ac_cv_prog_STRIP+:} false; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. if test -n "$STRIP"; then
  3995. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3996. else
  3997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3998. for as_dir in $PATH
  3999. do
  4000. IFS=$as_save_IFS
  4001. test -z "$as_dir" && as_dir=.
  4002. for ac_exec_ext in '' $ac_executable_extensions; do
  4003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4004. ac_cv_prog_STRIP="strip"
  4005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4006. break 2
  4007. fi
  4008. done
  4009. done
  4010. IFS=$as_save_IFS
  4011. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  4012. fi
  4013. fi
  4014. STRIP=$ac_cv_prog_STRIP
  4015. if test -n "$STRIP"; then
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4017. $as_echo "$STRIP" >&6; }
  4018. else
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4020. $as_echo "no" >&6; }
  4021. fi
  4022. # Extract the first word of "gdiff", so it can be a program name with args.
  4023. set dummy gdiff; ac_word=$2
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4025. $as_echo_n "checking for $ac_word... " >&6; }
  4026. if ${ac_cv_prog_DIFF+:} false; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. if test -n "$DIFF"; then
  4030. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  4031. else
  4032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4033. for as_dir in $PATH
  4034. do
  4035. IFS=$as_save_IFS
  4036. test -z "$as_dir" && as_dir=.
  4037. for ac_exec_ext in '' $ac_executable_extensions; do
  4038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4039. ac_cv_prog_DIFF="gdiff"
  4040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4041. break 2
  4042. fi
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  4047. fi
  4048. fi
  4049. DIFF=$ac_cv_prog_DIFF
  4050. if test -n "$DIFF"; then
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  4052. $as_echo "$DIFF" >&6; }
  4053. else
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4055. $as_echo "no" >&6; }
  4056. fi
  4057. # Extract the first word of "uname", so it can be a program name with args.
  4058. set dummy uname; ac_word=$2
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4060. $as_echo_n "checking for $ac_word... " >&6; }
  4061. if ${ac_cv_prog_UNAME+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. if test -n "$UNAME"; then
  4065. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  4066. else
  4067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4068. for as_dir in $PATH
  4069. do
  4070. IFS=$as_save_IFS
  4071. test -z "$as_dir" && as_dir=.
  4072. for ac_exec_ext in '' $ac_executable_extensions; do
  4073. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4074. ac_cv_prog_UNAME="uname"
  4075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4076. break 2
  4077. fi
  4078. done
  4079. done
  4080. IFS=$as_save_IFS
  4081. fi
  4082. fi
  4083. UNAME=$ac_cv_prog_UNAME
  4084. if test -n "$UNAME"; then
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4086. $as_echo "$UNAME" >&6; }
  4087. else
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4089. $as_echo "no" >&6; }
  4090. fi
  4091. # Test the os and set the module linking settings
  4092. USE_STATIC=yes
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  4094. $as_echo_n "checking system type... " >&6; }
  4095. if ${egg_cv_var_system_type+:} false; then :
  4096. $as_echo_n "(cached) " >&6
  4097. else
  4098. egg_cv_var_system_type=`$UNAME -s`
  4099. fi
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  4101. $as_echo "$egg_cv_var_system_type" >&6; }
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  4103. $as_echo_n "checking system release... " >&6; }
  4104. if ${egg_cv_var_system_release+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. egg_cv_var_system_release=`$UNAME -r`
  4108. fi
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  4110. $as_echo "$egg_cv_var_system_release" >&6; }
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  4112. $as_echo_n "checking system machine... " >&6; }
  4113. if ${egg_cv_var_system_machine+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. egg_cv_var_system_machine=`$UNAME -m`
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  4119. $as_echo "$egg_cv_var_system_machine" >&6; }
  4120. BUILDOS="$egg_cv_var_system_type"
  4121. BUILDARCH="$egg_cv_var_system_machine"
  4122. USE_GENERIC_I486="yes"
  4123. case "$egg_cv_var_system_type" in
  4124. BSD/OS)
  4125. ;;
  4126. IRIX)
  4127. ;;
  4128. HP-UX)
  4129. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  4130. ;;
  4131. Ultrix)
  4132. SHELL=/bin/sh5
  4133. ;;
  4134. SINIX*)
  4135. ;;
  4136. BeOS)
  4137. ;;
  4138. Linux)
  4139. ;;
  4140. Lynx)
  4141. ;;
  4142. QNX)
  4143. ;;
  4144. OSF1)
  4145. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4146. V*)
  4147. if test "$AWK" = "gawk"
  4148. then
  4149. AWK=awk
  4150. fi
  4151. ;;
  4152. 1.0|1.1|1.2)
  4153. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4154. ;;
  4155. 1.*)
  4156. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4157. ;;
  4158. *)
  4159. ;;
  4160. esac
  4161. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  4162. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  4163. ;;
  4164. SunOS)
  4165. SUNOS="yes"
  4166. USE_STATIC="no"
  4167. ;;
  4168. Darwin)
  4169. USE_STATIC="no"
  4170. USE_GENERIC_I486="no"
  4171. ;;
  4172. *BSD)
  4173. # FreeBSD/OpenBSD/NetBSD
  4174. ;;
  4175. *)
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4177. $as_echo_n "checking if system is Mach based... " >&6; }
  4178. if test -r /mach
  4179. then
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4181. $as_echo "yes" >&6; }
  4182. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  4183. else
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4185. $as_echo "no" >&6; }
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4187. $as_echo_n "checking if system is QNX... " >&6; }
  4188. if test -r /cmds
  4189. then
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4191. $as_echo "yes" >&6; }
  4192. else
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4194. $as_echo "no" >&6; }
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4196. $as_echo "Something unknown!" >&6; }
  4197. fi
  4198. fi
  4199. ;;
  4200. esac
  4201. case "$egg_cv_var_system_machine" in
  4202. i*)
  4203. if test "$USE_GENERIC_I486" = "yes"; then
  4204. CXX="$CXX -march=i486"
  4205. BUILDARCH="i486"
  4206. fi
  4207. ;;
  4208. *)
  4209. ;;
  4210. esac
  4211. # Check for IPv6 support
  4212. #EGG_IPV6_SUPPORTED
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4214. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4215. # Check whether --enable-ipv6 was given.
  4216. if test "${enable_ipv6+set}" = set; then :
  4217. enableval=$enable_ipv6;
  4218. enable_ipv6=$enableval
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4220. $as_echo "$enableval" >&6; }
  4221. else
  4222. # default if not given is ENABLED
  4223. if test "x$enableval" = "x"; then
  4224. enableval="yes"
  4225. fi
  4226. enable_ipv6=$enableval
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4228. $as_echo "$enableval" >&6; }
  4229. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4230. fi
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4232. $as_echo_n "checking for socklen_t... " >&6; }
  4233. if ${egg_cv_socklen_t+:} false; then :
  4234. $as_echo_n "(cached) " >&6
  4235. else
  4236. if test "$cross_compiling" = yes; then :
  4237. egg_cv_socklen_t=no
  4238. else
  4239. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4240. /* end build/confdefs.h. */
  4241. #include <unistd.h>
  4242. #include <sys/types.h>
  4243. #include <sys/socket.h>
  4244. #include <netinet/in.h>
  4245. #include <arpa/inet.h>
  4246. int main()
  4247. {
  4248. socklen_t test = sizeof(int);
  4249. return 0;
  4250. }
  4251. _ACEOF
  4252. if ac_fn_cxx_try_run "$LINENO"; then :
  4253. egg_cv_socklen_t=yes
  4254. else
  4255. egg_cv_socklen_t=no
  4256. fi
  4257. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4258. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4259. fi
  4260. fi
  4261. if test "$egg_cv_socklen_t" = "yes"; then
  4262. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4264. $as_echo "yes" >&6; }
  4265. else
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4267. $as_echo "no" >&6; }
  4268. fi
  4269. # Check for inconsistent random() functions
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4271. $as_echo_n "checking for random limit... " >&6; }
  4272. case "$egg_cv_var_system_type" in
  4273. SunOS) RMAX=0x7FFFFFFF
  4274. ;;
  4275. *) RMAX=RAND_MAX
  4276. ;;
  4277. esac
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4279. $as_echo "$RMAX" >&6; }
  4280. cat >>build/confdefs.h <<_ACEOF
  4281. #define RANDOM_MAX $RMAX
  4282. _ACEOF
  4283. # Create static binaries
  4284. if test "$USE_STATIC" = "yes"
  4285. then
  4286. if test -n "$GXX"
  4287. then
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4289. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4290. if ${egg_cv_var_ccstatic+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4294. /* end build/confdefs.h. */
  4295. int
  4296. main ()
  4297. {
  4298. ;
  4299. return 0;
  4300. }
  4301. _ACEOF
  4302. if ac_fn_cxx_try_compile "$LINENO"; then :
  4303. egg_cv_var_ccstatic="yes"
  4304. else
  4305. egg_cv_var_ccstatic="no"
  4306. fi
  4307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4308. fi
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4310. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4311. if ! test "$egg_cv_var_ccstatic" = "yes"
  4312. then
  4313. cat << 'EOF' >&2
  4314. configure: error:
  4315. Your OS or C++ compiler does not support -static.
  4316. This compile flag is required for the botpack on this OS.
  4317. EOF
  4318. exit 1
  4319. fi
  4320. fi
  4321. STATIC="-static"
  4322. else
  4323. STATIC=""
  4324. fi
  4325. #checkpoint
  4326. cat >confcache <<\_ACEOF
  4327. # This file is a shell script that caches the results of configure
  4328. # tests run on this system so they can be shared between configure
  4329. # scripts and configure runs, see configure's option --config-cache.
  4330. # It is not useful on other systems. If it contains results you don't
  4331. # want to keep, you may remove or edit it.
  4332. #
  4333. # build/config.status only pays attention to the cache file if you give it
  4334. # the --recheck option to rerun configure.
  4335. #
  4336. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4337. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4338. # following values.
  4339. _ACEOF
  4340. # The following way of writing the cache mishandles newlines in values,
  4341. # but we know of no workaround that is simple, portable, and efficient.
  4342. # So, we kill variables containing newlines.
  4343. # Ultrix sh set writes to stderr and can't be redirected directly,
  4344. # and sets the high bit in the cache file unless we assign to the vars.
  4345. (
  4346. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4347. eval ac_val=\$$ac_var
  4348. case $ac_val in #(
  4349. *${as_nl}*)
  4350. case $ac_var in #(
  4351. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4352. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4353. esac
  4354. case $ac_var in #(
  4355. _ | IFS | as_nl) ;; #(
  4356. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4357. *) { eval $ac_var=; unset $ac_var;} ;;
  4358. esac ;;
  4359. esac
  4360. done
  4361. (set) 2>&1 |
  4362. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4363. *${as_nl}ac_space=\ *)
  4364. # `set' does not quote correctly, so add quotes: double-quote
  4365. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4366. sed -n \
  4367. "s/'/'\\\\''/g;
  4368. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4369. ;; #(
  4370. *)
  4371. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4372. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4373. ;;
  4374. esac |
  4375. sort
  4376. ) |
  4377. sed '
  4378. /^ac_cv_env_/b end
  4379. t clear
  4380. :clear
  4381. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4382. t end
  4383. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4384. :end' >>confcache
  4385. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4386. if test -w "$cache_file"; then
  4387. if test "x$cache_file" != "x/dev/null"; then
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4389. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4390. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4391. cat confcache >"$cache_file"
  4392. else
  4393. case $cache_file in #(
  4394. */* | ?:*)
  4395. mv -f confcache "$cache_file"$$ &&
  4396. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4397. *)
  4398. mv -f confcache "$cache_file" ;;
  4399. esac
  4400. fi
  4401. fi
  4402. else
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4404. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4405. fi
  4406. fi
  4407. rm -f confcache
  4408. # Checks for system libraries
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4410. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4411. if ${ac_cv_lib_socket_socket+:} false; then :
  4412. $as_echo_n "(cached) " >&6
  4413. else
  4414. ac_check_lib_save_LIBS=$LIBS
  4415. LIBS="-lsocket $LIBS"
  4416. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4417. /* end build/confdefs.h. */
  4418. /* Override any GCC internal prototype to avoid an error.
  4419. Use char because int might match the return type of a GCC
  4420. builtin and then its argument prototype would still apply. */
  4421. #ifdef __cplusplus
  4422. extern "C"
  4423. #endif
  4424. char socket ();
  4425. int
  4426. main ()
  4427. {
  4428. return socket ();
  4429. ;
  4430. return 0;
  4431. }
  4432. _ACEOF
  4433. if ac_fn_cxx_try_link "$LINENO"; then :
  4434. ac_cv_lib_socket_socket=yes
  4435. else
  4436. ac_cv_lib_socket_socket=no
  4437. fi
  4438. rm -f core conftest.err conftest.$ac_objext \
  4439. conftest$ac_exeext conftest.$ac_ext
  4440. LIBS=$ac_check_lib_save_LIBS
  4441. fi
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4443. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4444. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4445. cat >>build/confdefs.h <<_ACEOF
  4446. #define HAVE_LIBSOCKET 1
  4447. _ACEOF
  4448. LIBS="-lsocket $LIBS"
  4449. fi
  4450. # AC_CHECK_LIB(nsl, connect)
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4452. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4453. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4454. $as_echo_n "(cached) " >&6
  4455. else
  4456. ac_check_lib_save_LIBS=$LIBS
  4457. LIBS="-ldl $LIBS"
  4458. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4459. /* end build/confdefs.h. */
  4460. /* Override any GCC internal prototype to avoid an error.
  4461. Use char because int might match the return type of a GCC
  4462. builtin and then its argument prototype would still apply. */
  4463. #ifdef __cplusplus
  4464. extern "C"
  4465. #endif
  4466. char dlopen ();
  4467. int
  4468. main ()
  4469. {
  4470. return dlopen ();
  4471. ;
  4472. return 0;
  4473. }
  4474. _ACEOF
  4475. if ac_fn_cxx_try_link "$LINENO"; then :
  4476. ac_cv_lib_dl_dlopen=yes
  4477. else
  4478. ac_cv_lib_dl_dlopen=no
  4479. fi
  4480. rm -f core conftest.err conftest.$ac_objext \
  4481. conftest$ac_exeext conftest.$ac_ext
  4482. LIBS=$ac_check_lib_save_LIBS
  4483. fi
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4485. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4486. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4487. cat >>build/confdefs.h <<_ACEOF
  4488. #define HAVE_LIBDL 1
  4489. _ACEOF
  4490. LIBS="-ldl $LIBS"
  4491. fi
  4492. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4493. # This is needed for Tcl libraries compiled with thread support
  4494. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4495. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4496. # ac_cv_lib_pthread="-lpthread"], [dnl
  4497. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4498. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4499. # ac_cv_lib_pthread="-lpthread"], [dnl
  4500. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4501. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4502. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4503. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4504. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4505. # ac_cv_lib_pthread=""],
  4506. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4507. if test "$SUNOS" = "yes"; then
  4508. # For suns without yp
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4510. $as_echo_n "checking for main in -ldl... " >&6; }
  4511. if ${ac_cv_lib_dl_main+:} false; then :
  4512. $as_echo_n "(cached) " >&6
  4513. else
  4514. ac_check_lib_save_LIBS=$LIBS
  4515. LIBS="-ldl $LIBS"
  4516. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4517. /* end build/confdefs.h. */
  4518. int
  4519. main ()
  4520. {
  4521. return main ();
  4522. ;
  4523. return 0;
  4524. }
  4525. _ACEOF
  4526. if ac_fn_cxx_try_link "$LINENO"; then :
  4527. ac_cv_lib_dl_main=yes
  4528. else
  4529. ac_cv_lib_dl_main=no
  4530. fi
  4531. rm -f core conftest.err conftest.$ac_objext \
  4532. conftest$ac_exeext conftest.$ac_ext
  4533. LIBS=$ac_check_lib_save_LIBS
  4534. fi
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4536. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4537. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4538. cat >>build/confdefs.h <<_ACEOF
  4539. #define HAVE_LIBDL 1
  4540. _ACEOF
  4541. LIBS="-ldl $LIBS"
  4542. fi
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4544. $as_echo_n "checking for main in -lsocket... " >&6; }
  4545. if ${ac_cv_lib_socket_main+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. ac_check_lib_save_LIBS=$LIBS
  4549. LIBS="-lsocket $LIBS"
  4550. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4551. /* end build/confdefs.h. */
  4552. int
  4553. main ()
  4554. {
  4555. return main ();
  4556. ;
  4557. return 0;
  4558. }
  4559. _ACEOF
  4560. if ac_fn_cxx_try_link "$LINENO"; then :
  4561. ac_cv_lib_socket_main=yes
  4562. else
  4563. ac_cv_lib_socket_main=no
  4564. fi
  4565. rm -f core conftest.err conftest.$ac_objext \
  4566. conftest$ac_exeext conftest.$ac_ext
  4567. LIBS=$ac_check_lib_save_LIBS
  4568. fi
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4570. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4571. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4572. cat >>build/confdefs.h <<_ACEOF
  4573. #define HAVE_LIBSOCKET 1
  4574. _ACEOF
  4575. LIBS="-lsocket $LIBS"
  4576. fi
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4578. $as_echo_n "checking for main in -lnsl... " >&6; }
  4579. if ${ac_cv_lib_nsl_main+:} false; then :
  4580. $as_echo_n "(cached) " >&6
  4581. else
  4582. ac_check_lib_save_LIBS=$LIBS
  4583. LIBS="-lnsl $LIBS"
  4584. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4585. /* end build/confdefs.h. */
  4586. int
  4587. main ()
  4588. {
  4589. return main ();
  4590. ;
  4591. return 0;
  4592. }
  4593. _ACEOF
  4594. if ac_fn_cxx_try_link "$LINENO"; then :
  4595. ac_cv_lib_nsl_main=yes
  4596. else
  4597. ac_cv_lib_nsl_main=no
  4598. fi
  4599. rm -f core conftest.err conftest.$ac_objext \
  4600. conftest$ac_exeext conftest.$ac_ext
  4601. LIBS=$ac_check_lib_save_LIBS
  4602. fi
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4604. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4605. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4606. cat >>build/confdefs.h <<_ACEOF
  4607. #define HAVE_LIBNSL 1
  4608. _ACEOF
  4609. LIBS="-lnsl $LIBS"
  4610. fi
  4611. fi
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4613. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4614. if ${ac_cv_path_GREP+:} false; then :
  4615. $as_echo_n "(cached) " >&6
  4616. else
  4617. if test -z "$GREP"; then
  4618. ac_path_GREP_found=false
  4619. # Loop through the user's path and test for each of PROGNAME-LIST
  4620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4622. do
  4623. IFS=$as_save_IFS
  4624. test -z "$as_dir" && as_dir=.
  4625. for ac_prog in grep ggrep; do
  4626. for ac_exec_ext in '' $ac_executable_extensions; do
  4627. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4628. as_fn_executable_p "$ac_path_GREP" || continue
  4629. # Check for GNU ac_path_GREP and select it if it is found.
  4630. # Check for GNU $ac_path_GREP
  4631. case `"$ac_path_GREP" --version 2>&1` in
  4632. *GNU*)
  4633. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4634. *)
  4635. ac_count=0
  4636. $as_echo_n 0123456789 >"conftest.in"
  4637. while :
  4638. do
  4639. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4640. mv "conftest.tmp" "conftest.in"
  4641. cp "conftest.in" "conftest.nl"
  4642. $as_echo 'GREP' >> "conftest.nl"
  4643. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4644. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4645. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4646. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4647. # Best one so far, save it but keep looking for a better one
  4648. ac_cv_path_GREP="$ac_path_GREP"
  4649. ac_path_GREP_max=$ac_count
  4650. fi
  4651. # 10*(2^10) chars as input seems more than enough
  4652. test $ac_count -gt 10 && break
  4653. done
  4654. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4655. esac
  4656. $ac_path_GREP_found && break 3
  4657. done
  4658. done
  4659. done
  4660. IFS=$as_save_IFS
  4661. if test -z "$ac_cv_path_GREP"; then
  4662. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4663. fi
  4664. else
  4665. ac_cv_path_GREP=$GREP
  4666. fi
  4667. fi
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4669. $as_echo "$ac_cv_path_GREP" >&6; }
  4670. GREP="$ac_cv_path_GREP"
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4672. $as_echo_n "checking for egrep... " >&6; }
  4673. if ${ac_cv_path_EGREP+:} false; then :
  4674. $as_echo_n "(cached) " >&6
  4675. else
  4676. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4677. then ac_cv_path_EGREP="$GREP -E"
  4678. else
  4679. if test -z "$EGREP"; then
  4680. ac_path_EGREP_found=false
  4681. # Loop through the user's path and test for each of PROGNAME-LIST
  4682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4683. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4684. do
  4685. IFS=$as_save_IFS
  4686. test -z "$as_dir" && as_dir=.
  4687. for ac_prog in egrep; do
  4688. for ac_exec_ext in '' $ac_executable_extensions; do
  4689. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4690. as_fn_executable_p "$ac_path_EGREP" || continue
  4691. # Check for GNU ac_path_EGREP and select it if it is found.
  4692. # Check for GNU $ac_path_EGREP
  4693. case `"$ac_path_EGREP" --version 2>&1` in
  4694. *GNU*)
  4695. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4696. *)
  4697. ac_count=0
  4698. $as_echo_n 0123456789 >"conftest.in"
  4699. while :
  4700. do
  4701. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4702. mv "conftest.tmp" "conftest.in"
  4703. cp "conftest.in" "conftest.nl"
  4704. $as_echo 'EGREP' >> "conftest.nl"
  4705. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4706. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4707. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4708. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4709. # Best one so far, save it but keep looking for a better one
  4710. ac_cv_path_EGREP="$ac_path_EGREP"
  4711. ac_path_EGREP_max=$ac_count
  4712. fi
  4713. # 10*(2^10) chars as input seems more than enough
  4714. test $ac_count -gt 10 && break
  4715. done
  4716. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4717. esac
  4718. $ac_path_EGREP_found && break 3
  4719. done
  4720. done
  4721. done
  4722. IFS=$as_save_IFS
  4723. if test -z "$ac_cv_path_EGREP"; then
  4724. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4725. fi
  4726. else
  4727. ac_cv_path_EGREP=$EGREP
  4728. fi
  4729. fi
  4730. fi
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4732. $as_echo "$ac_cv_path_EGREP" >&6; }
  4733. EGREP="$ac_cv_path_EGREP"
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4735. $as_echo_n "checking for ANSI C header files... " >&6; }
  4736. if ${ac_cv_header_stdc+:} false; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4740. /* end build/confdefs.h. */
  4741. #include <stdlib.h>
  4742. #include <stdarg.h>
  4743. #include <string.h>
  4744. #include <float.h>
  4745. int
  4746. main ()
  4747. {
  4748. ;
  4749. return 0;
  4750. }
  4751. _ACEOF
  4752. if ac_fn_cxx_try_compile "$LINENO"; then :
  4753. ac_cv_header_stdc=yes
  4754. else
  4755. ac_cv_header_stdc=no
  4756. fi
  4757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4758. if test $ac_cv_header_stdc = yes; then
  4759. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4760. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4761. /* end build/confdefs.h. */
  4762. #include <string.h>
  4763. _ACEOF
  4764. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4765. $EGREP "memchr" >/dev/null 2>&1; then :
  4766. else
  4767. ac_cv_header_stdc=no
  4768. fi
  4769. rm -f conftest*
  4770. fi
  4771. if test $ac_cv_header_stdc = yes; then
  4772. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4773. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4774. /* end build/confdefs.h. */
  4775. #include <stdlib.h>
  4776. _ACEOF
  4777. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4778. $EGREP "free" >/dev/null 2>&1; then :
  4779. else
  4780. ac_cv_header_stdc=no
  4781. fi
  4782. rm -f conftest*
  4783. fi
  4784. if test $ac_cv_header_stdc = yes; then
  4785. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4786. if test "$cross_compiling" = yes; then :
  4787. :
  4788. else
  4789. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4790. /* end build/confdefs.h. */
  4791. #include <ctype.h>
  4792. #include <stdlib.h>
  4793. #if ((' ' & 0x0FF) == 0x020)
  4794. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4795. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4796. #else
  4797. # define ISLOWER(c) \
  4798. (('a' <= (c) && (c) <= 'i') \
  4799. || ('j' <= (c) && (c) <= 'r') \
  4800. || ('s' <= (c) && (c) <= 'z'))
  4801. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4802. #endif
  4803. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4804. int
  4805. main ()
  4806. {
  4807. int i;
  4808. for (i = 0; i < 256; i++)
  4809. if (XOR (islower (i), ISLOWER (i))
  4810. || toupper (i) != TOUPPER (i))
  4811. return 2;
  4812. return 0;
  4813. }
  4814. _ACEOF
  4815. if ac_fn_cxx_try_run "$LINENO"; then :
  4816. else
  4817. ac_cv_header_stdc=no
  4818. fi
  4819. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4820. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4821. fi
  4822. fi
  4823. fi
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4825. $as_echo "$ac_cv_header_stdc" >&6; }
  4826. if test $ac_cv_header_stdc = yes; then
  4827. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4828. fi
  4829. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4830. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4831. inttypes.h stdint.h unistd.h
  4832. do :
  4833. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4834. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4835. "
  4836. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4837. cat >>build/confdefs.h <<_ACEOF
  4838. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4839. _ACEOF
  4840. fi
  4841. done
  4842. LIBELF_DIR="\$(top_srcdir)/lib/libelf/lib"
  4843. LIBELF_LIB="${LIBELF_DIR}/libelf.a"
  4844. LIBELF_BUNDLED="${LIBELF_LIB}"
  4845. LIBELF_INCLUDE="-I${LIBELF_DIR}"
  4846. for ac_header in gelf.h libelf.h
  4847. do :
  4848. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4849. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4850. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4851. cat >>build/confdefs.h <<_ACEOF
  4852. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4853. _ACEOF
  4854. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  4855. #include \"gelf.h\"
  4856. #include \"libelf.h\"
  4857. "
  4858. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  4859. cat >>build/confdefs.h <<_ACEOF
  4860. #define HAVE_ELF_NOTE 1
  4861. _ACEOF
  4862. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  4864. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  4865. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. ac_check_lib_save_LIBS=$LIBS
  4869. LIBS="-lelf $LIBS"
  4870. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4871. /* end build/confdefs.h. */
  4872. /* Override any GCC internal prototype to avoid an error.
  4873. Use char because int might match the return type of a GCC
  4874. builtin and then its argument prototype would still apply. */
  4875. #ifdef __cplusplus
  4876. extern "C"
  4877. #endif
  4878. char gelf_getehdr ();
  4879. int
  4880. main ()
  4881. {
  4882. return gelf_getehdr ();
  4883. ;
  4884. return 0;
  4885. }
  4886. _ACEOF
  4887. if ac_fn_cxx_try_link "$LINENO"; then :
  4888. ac_cv_lib_elf_gelf_getehdr=yes
  4889. else
  4890. ac_cv_lib_elf_gelf_getehdr=no
  4891. fi
  4892. rm -f core conftest.err conftest.$ac_objext \
  4893. conftest$ac_exeext conftest.$ac_ext
  4894. LIBS=$ac_check_lib_save_LIBS
  4895. fi
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  4897. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  4898. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  4899. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  4900. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  4901. LIBELF_BUNDLED=
  4902. LIBELF_INCLUDE=
  4903. fi
  4904. fi
  4905. fi
  4906. done
  4907. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  4908. # Checks for header files
  4909. ac_header_dirent=no
  4910. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4911. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4913. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4914. if eval \${$as_ac_Header+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4918. /* end build/confdefs.h. */
  4919. #include <sys/types.h>
  4920. #include <$ac_hdr>
  4921. int
  4922. main ()
  4923. {
  4924. if ((DIR *) 0)
  4925. return 0;
  4926. ;
  4927. return 0;
  4928. }
  4929. _ACEOF
  4930. if ac_fn_cxx_try_compile "$LINENO"; then :
  4931. eval "$as_ac_Header=yes"
  4932. else
  4933. eval "$as_ac_Header=no"
  4934. fi
  4935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4936. fi
  4937. eval ac_res=\$$as_ac_Header
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4939. $as_echo "$ac_res" >&6; }
  4940. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4941. cat >>build/confdefs.h <<_ACEOF
  4942. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4943. _ACEOF
  4944. ac_header_dirent=$ac_hdr; break
  4945. fi
  4946. done
  4947. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4948. if test $ac_header_dirent = dirent.h; then
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4950. $as_echo_n "checking for library containing opendir... " >&6; }
  4951. if ${ac_cv_search_opendir+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. ac_func_search_save_LIBS=$LIBS
  4955. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4956. /* end build/confdefs.h. */
  4957. /* Override any GCC internal prototype to avoid an error.
  4958. Use char because int might match the return type of a GCC
  4959. builtin and then its argument prototype would still apply. */
  4960. #ifdef __cplusplus
  4961. extern "C"
  4962. #endif
  4963. char opendir ();
  4964. int
  4965. main ()
  4966. {
  4967. return opendir ();
  4968. ;
  4969. return 0;
  4970. }
  4971. _ACEOF
  4972. for ac_lib in '' dir; do
  4973. if test -z "$ac_lib"; then
  4974. ac_res="none required"
  4975. else
  4976. ac_res=-l$ac_lib
  4977. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4978. fi
  4979. if ac_fn_cxx_try_link "$LINENO"; then :
  4980. ac_cv_search_opendir=$ac_res
  4981. fi
  4982. rm -f core conftest.err conftest.$ac_objext \
  4983. conftest$ac_exeext
  4984. if ${ac_cv_search_opendir+:} false; then :
  4985. break
  4986. fi
  4987. done
  4988. if ${ac_cv_search_opendir+:} false; then :
  4989. else
  4990. ac_cv_search_opendir=no
  4991. fi
  4992. rm conftest.$ac_ext
  4993. LIBS=$ac_func_search_save_LIBS
  4994. fi
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4996. $as_echo "$ac_cv_search_opendir" >&6; }
  4997. ac_res=$ac_cv_search_opendir
  4998. if test "$ac_res" != no; then :
  4999. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5000. fi
  5001. else
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5003. $as_echo_n "checking for library containing opendir... " >&6; }
  5004. if ${ac_cv_search_opendir+:} false; then :
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. ac_func_search_save_LIBS=$LIBS
  5008. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5009. /* end build/confdefs.h. */
  5010. /* Override any GCC internal prototype to avoid an error.
  5011. Use char because int might match the return type of a GCC
  5012. builtin and then its argument prototype would still apply. */
  5013. #ifdef __cplusplus
  5014. extern "C"
  5015. #endif
  5016. char opendir ();
  5017. int
  5018. main ()
  5019. {
  5020. return opendir ();
  5021. ;
  5022. return 0;
  5023. }
  5024. _ACEOF
  5025. for ac_lib in '' x; do
  5026. if test -z "$ac_lib"; then
  5027. ac_res="none required"
  5028. else
  5029. ac_res=-l$ac_lib
  5030. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5031. fi
  5032. if ac_fn_cxx_try_link "$LINENO"; then :
  5033. ac_cv_search_opendir=$ac_res
  5034. fi
  5035. rm -f core conftest.err conftest.$ac_objext \
  5036. conftest$ac_exeext
  5037. if ${ac_cv_search_opendir+:} false; then :
  5038. break
  5039. fi
  5040. done
  5041. if ${ac_cv_search_opendir+:} false; then :
  5042. else
  5043. ac_cv_search_opendir=no
  5044. fi
  5045. rm conftest.$ac_ext
  5046. LIBS=$ac_func_search_save_LIBS
  5047. fi
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5049. $as_echo "$ac_cv_search_opendir" >&6; }
  5050. ac_res=$ac_cv_search_opendir
  5051. if test "$ac_res" != no; then :
  5052. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5053. fi
  5054. fi
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5056. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5057. if ${ac_cv_header_sys_wait_h+:} false; then :
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5061. /* end build/confdefs.h. */
  5062. #include <sys/types.h>
  5063. #include <sys/wait.h>
  5064. #ifndef WEXITSTATUS
  5065. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5066. #endif
  5067. #ifndef WIFEXITED
  5068. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5069. #endif
  5070. int
  5071. main ()
  5072. {
  5073. int s;
  5074. wait (&s);
  5075. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5076. ;
  5077. return 0;
  5078. }
  5079. _ACEOF
  5080. if ac_fn_cxx_try_compile "$LINENO"; then :
  5081. ac_cv_header_sys_wait_h=yes
  5082. else
  5083. ac_cv_header_sys_wait_h=no
  5084. fi
  5085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5086. fi
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5088. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  5089. if test $ac_cv_header_sys_wait_h = yes; then
  5090. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  5091. fi
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5093. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5094. if ${ac_cv_header_time+:} false; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5098. /* end build/confdefs.h. */
  5099. #include <sys/types.h>
  5100. #include <sys/time.h>
  5101. #include <time.h>
  5102. int
  5103. main ()
  5104. {
  5105. if ((struct tm *) 0)
  5106. return 0;
  5107. ;
  5108. return 0;
  5109. }
  5110. _ACEOF
  5111. if ac_fn_cxx_try_compile "$LINENO"; then :
  5112. ac_cv_header_time=yes
  5113. else
  5114. ac_cv_header_time=no
  5115. fi
  5116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5117. fi
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5119. $as_echo "$ac_cv_header_time" >&6; }
  5120. if test $ac_cv_header_time = yes; then
  5121. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  5122. fi
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5124. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  5125. if ${ac_cv_header_stat_broken+:} false; then :
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5129. /* end build/confdefs.h. */
  5130. #include <sys/types.h>
  5131. #include <sys/stat.h>
  5132. #if defined S_ISBLK && defined S_IFDIR
  5133. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5134. #endif
  5135. #if defined S_ISBLK && defined S_IFCHR
  5136. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5137. #endif
  5138. #if defined S_ISLNK && defined S_IFREG
  5139. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5140. #endif
  5141. #if defined S_ISSOCK && defined S_IFREG
  5142. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5143. #endif
  5144. _ACEOF
  5145. if ac_fn_cxx_try_compile "$LINENO"; then :
  5146. ac_cv_header_stat_broken=no
  5147. else
  5148. ac_cv_header_stat_broken=yes
  5149. fi
  5150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5151. fi
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5153. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5154. if test $ac_cv_header_stat_broken = yes; then
  5155. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  5156. fi
  5157. #checkpoint
  5158. cat >confcache <<\_ACEOF
  5159. # This file is a shell script that caches the results of configure
  5160. # tests run on this system so they can be shared between configure
  5161. # scripts and configure runs, see configure's option --config-cache.
  5162. # It is not useful on other systems. If it contains results you don't
  5163. # want to keep, you may remove or edit it.
  5164. #
  5165. # build/config.status only pays attention to the cache file if you give it
  5166. # the --recheck option to rerun configure.
  5167. #
  5168. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5169. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5170. # following values.
  5171. _ACEOF
  5172. # The following way of writing the cache mishandles newlines in values,
  5173. # but we know of no workaround that is simple, portable, and efficient.
  5174. # So, we kill variables containing newlines.
  5175. # Ultrix sh set writes to stderr and can't be redirected directly,
  5176. # and sets the high bit in the cache file unless we assign to the vars.
  5177. (
  5178. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5179. eval ac_val=\$$ac_var
  5180. case $ac_val in #(
  5181. *${as_nl}*)
  5182. case $ac_var in #(
  5183. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5184. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5185. esac
  5186. case $ac_var in #(
  5187. _ | IFS | as_nl) ;; #(
  5188. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5189. *) { eval $ac_var=; unset $ac_var;} ;;
  5190. esac ;;
  5191. esac
  5192. done
  5193. (set) 2>&1 |
  5194. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5195. *${as_nl}ac_space=\ *)
  5196. # `set' does not quote correctly, so add quotes: double-quote
  5197. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5198. sed -n \
  5199. "s/'/'\\\\''/g;
  5200. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5201. ;; #(
  5202. *)
  5203. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5204. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5205. ;;
  5206. esac |
  5207. sort
  5208. ) |
  5209. sed '
  5210. /^ac_cv_env_/b end
  5211. t clear
  5212. :clear
  5213. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5214. t end
  5215. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5216. :end' >>confcache
  5217. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5218. if test -w "$cache_file"; then
  5219. if test "x$cache_file" != "x/dev/null"; then
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5221. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5222. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5223. cat confcache >"$cache_file"
  5224. else
  5225. case $cache_file in #(
  5226. */* | ?:*)
  5227. mv -f confcache "$cache_file"$$ &&
  5228. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5229. *)
  5230. mv -f confcache "$cache_file" ;;
  5231. esac
  5232. fi
  5233. fi
  5234. else
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5236. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5237. fi
  5238. fi
  5239. rm -f confcache
  5240. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5241. do :
  5242. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5243. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5244. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5245. cat >>build/confdefs.h <<_ACEOF
  5246. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5247. _ACEOF
  5248. fi
  5249. done
  5250. 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
  5251. do :
  5252. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5253. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5254. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5255. cat >>build/confdefs.h <<_ACEOF
  5256. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5257. _ACEOF
  5258. fi
  5259. done
  5260. #checkpoint
  5261. cat >confcache <<\_ACEOF
  5262. # This file is a shell script that caches the results of configure
  5263. # tests run on this system so they can be shared between configure
  5264. # scripts and configure runs, see configure's option --config-cache.
  5265. # It is not useful on other systems. If it contains results you don't
  5266. # want to keep, you may remove or edit it.
  5267. #
  5268. # build/config.status only pays attention to the cache file if you give it
  5269. # the --recheck option to rerun configure.
  5270. #
  5271. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5272. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5273. # following values.
  5274. _ACEOF
  5275. # The following way of writing the cache mishandles newlines in values,
  5276. # but we know of no workaround that is simple, portable, and efficient.
  5277. # So, we kill variables containing newlines.
  5278. # Ultrix sh set writes to stderr and can't be redirected directly,
  5279. # and sets the high bit in the cache file unless we assign to the vars.
  5280. (
  5281. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5282. eval ac_val=\$$ac_var
  5283. case $ac_val in #(
  5284. *${as_nl}*)
  5285. case $ac_var in #(
  5286. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5287. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5288. esac
  5289. case $ac_var in #(
  5290. _ | IFS | as_nl) ;; #(
  5291. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5292. *) { eval $ac_var=; unset $ac_var;} ;;
  5293. esac ;;
  5294. esac
  5295. done
  5296. (set) 2>&1 |
  5297. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5298. *${as_nl}ac_space=\ *)
  5299. # `set' does not quote correctly, so add quotes: double-quote
  5300. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5301. sed -n \
  5302. "s/'/'\\\\''/g;
  5303. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5304. ;; #(
  5305. *)
  5306. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5307. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5308. ;;
  5309. esac |
  5310. sort
  5311. ) |
  5312. sed '
  5313. /^ac_cv_env_/b end
  5314. t clear
  5315. :clear
  5316. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5317. t end
  5318. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5319. :end' >>confcache
  5320. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5321. if test -w "$cache_file"; then
  5322. if test "x$cache_file" != "x/dev/null"; then
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5324. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5325. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5326. cat confcache >"$cache_file"
  5327. else
  5328. case $cache_file in #(
  5329. */* | ?:*)
  5330. mv -f confcache "$cache_file"$$ &&
  5331. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5332. *)
  5333. mv -f confcache "$cache_file" ;;
  5334. esac
  5335. fi
  5336. fi
  5337. else
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5339. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5340. fi
  5341. fi
  5342. rm -f confcache
  5343. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5344. #AC_CHECK_HEADERS(zlib.h)
  5345. #EGG_CHECK_ZLIB
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5347. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5348. # Check whether --with-openssl was given.
  5349. if test "${with_openssl+set}" = set; then :
  5350. withval=$with_openssl; with_openssl_path=$withval
  5351. else
  5352. with_openssl_path=auto
  5353. fi
  5354. cf_openssl_basedir=""
  5355. if test "$with_openssl_path" != "auto"; then
  5356. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5357. else
  5358. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5359. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5360. cf_openssl_basedir="${dirs}"
  5361. break
  5362. fi
  5363. done
  5364. unset dirs
  5365. fi
  5366. if test ! -z "$cf_openssl_basedir"; then
  5367. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5368. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5369. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5370. else
  5371. cf_openssl_basedir=""
  5372. fi
  5373. else
  5374. if test -f "/usr/include/openssl/opensslv.h" ; then
  5375. cf_openssl_basedir="/usr"
  5376. fi
  5377. fi
  5378. if test ! -z "$cf_openssl_basedir"; then
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5380. $as_echo "$cf_openssl_basedir" >&6; }
  5381. else
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5383. $as_echo "not found" >&6; }
  5384. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5385. fi
  5386. unset cf_openssl_basedir
  5387. save_CXX="$CXX"
  5388. CXX="$CXX $SSL_INCLUDES"
  5389. save_LIBS="$LIBS"
  5390. LIBS="$LIBS $SSL_LIBS"
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5392. $as_echo_n "checking for OpenSSL version... " >&6; }
  5393. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5394. /* end build/confdefs.h. */
  5395. #include <openssl/opensslv.h>
  5396. int
  5397. main ()
  5398. {
  5399. #if !defined(OPENSSL_VERSION_NUMBER)
  5400. #error "Missing openssl version"
  5401. #endif
  5402. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5403. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5404. #endif
  5405. ;
  5406. return 0;
  5407. }
  5408. _ACEOF
  5409. if ac_fn_cxx_try_compile "$LINENO"; then :
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5411. $as_echo "OK" >&6; }
  5412. else
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5414. $as_echo "too old." >&6; }
  5415. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5416. fi
  5417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5418. CXX="$CXX $SSL_LIBS"
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5420. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5421. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. ac_check_lib_save_LIBS=$LIBS
  5425. LIBS="-lcrypto $LIBS"
  5426. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5427. /* end build/confdefs.h. */
  5428. /* Override any GCC internal prototype to avoid an error.
  5429. Use char because int might match the return type of a GCC
  5430. builtin and then its argument prototype would still apply. */
  5431. #ifdef __cplusplus
  5432. extern "C"
  5433. #endif
  5434. char AES_encrypt ();
  5435. int
  5436. main ()
  5437. {
  5438. return AES_encrypt ();
  5439. ;
  5440. return 0;
  5441. }
  5442. _ACEOF
  5443. if ac_fn_cxx_try_link "$LINENO"; then :
  5444. ac_cv_lib_crypto_AES_encrypt=yes
  5445. else
  5446. ac_cv_lib_crypto_AES_encrypt=no
  5447. fi
  5448. rm -f core conftest.err conftest.$ac_objext \
  5449. conftest$ac_exeext conftest.$ac_ext
  5450. LIBS=$ac_check_lib_save_LIBS
  5451. fi
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5453. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5454. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5455. if test "$USE_STATIC" = "yes"; then
  5456. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5457. else
  5458. SSL_LIBS="$SSL_LIBS -lcrypto"
  5459. fi
  5460. else
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5462. $as_echo "not found." >&6; }
  5463. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5464. fi
  5465. CXX="$save_CXX"
  5466. LIBS="$save_LIBS"
  5467. cat >>build/confdefs.h <<_ACEOF
  5468. #define EGG_SSL_EXT 1
  5469. _ACEOF
  5470. # TCL checks
  5471. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5472. # found for download.
  5473. tclrecommendver="8.5.X"
  5474. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5475. # Tcl library filename prefixes, suffixes, and search paths.
  5476. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5477. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5478. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5479. tcl7.0 tcl70"
  5480. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5481. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5482. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5483. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5484. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5485. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5486. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5487. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5488. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5489. # Tcl header filenames and search paths.
  5490. tclheadernames="tcl.h"
  5491. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5492. /usr/local/include /usr/include \
  5493. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5494. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5495. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5496. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5497. /usr/local/pkgs/tcl/include /sys/include \
  5498. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5499. # Misc Tcl checks.
  5500. # Check whether --with-tcllib was given.
  5501. if test "${with_tcllib+set}" = set; then :
  5502. withval=$with_tcllib; tcllibname="$withval"
  5503. fi
  5504. # Check whether --with-tclinc was given.
  5505. if test "${with_tclinc+set}" = set; then :
  5506. withval=$with_tclinc; tclincname="$withval"
  5507. fi
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5509. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5510. # Check whether --enable-script-tcl was given.
  5511. if test "${enable_script_tcl+set}" = set; then :
  5512. enableval=$enable_script_tcl;
  5513. enable_script_tcl=$enableval
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5515. $as_echo "$enableval" >&6; }
  5516. else
  5517. # default if not given is ENABLED
  5518. if test "x$enableval" = "x"; then
  5519. enableval="yes"
  5520. fi
  5521. enable_script_tcl=$enableval
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5523. $as_echo "$enableval" >&6; }
  5524. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5525. fi
  5526. WARN=0
  5527. # Make sure either both or neither $tcllibname and $tclincname are set
  5528. if test "x$tcllibname" != x; then
  5529. if test "x$tclincname" = x; then
  5530. WARN=1
  5531. tcllibname=""
  5532. TCLLIB=""
  5533. TCLINC=""
  5534. fi
  5535. else
  5536. if test "x$tclincname" != x; then
  5537. WARN=1
  5538. tclincname=""
  5539. TCLLIB=""
  5540. TCLINC=""
  5541. fi
  5542. fi
  5543. if test "$WARN" = 1; then
  5544. cat << 'EOF' >&2
  5545. configure: WARNING:
  5546. You must specify both --with-tcllib and --with-tclinc for either to work.
  5547. configure will now attempt to autodetect both the Tcl library and header.
  5548. EOF
  5549. fi
  5550. WARN=0
  5551. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5552. if test "x$TCLLIB" != x; then
  5553. if test "x$TCLINC" = x; then
  5554. WARN=1
  5555. WVAR1=TCLLIB
  5556. WVAR2=TCLINC
  5557. TCLLIB=""
  5558. fi
  5559. else
  5560. if test "x$TCLINC" != x; then
  5561. WARN=1
  5562. WVAR1=TCLINC
  5563. WVAR2=TCLLIB
  5564. TCLINC=""
  5565. fi
  5566. fi
  5567. if test "$WARN" = 1; then
  5568. cat << EOF >&2
  5569. configure: WARNING:
  5570. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5571. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5572. configure will now attempt to autodetect both the Tcl library and header.
  5573. EOF
  5574. fi
  5575. # Look for Tcl library: if $tcllibname is set, check there first
  5576. if test "x$tcllibname" != x; then
  5577. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5578. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5579. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5580. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5581. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5582. else
  5583. cat << EOF >&2
  5584. configure: WARNING:
  5585. The file '$tcllibname' given to option --with-tcllib is not valid.
  5586. configure will now attempt to autodetect both the Tcl library and header.
  5587. EOF
  5588. tcllibname=""
  5589. tclincname=""
  5590. TCLLIB=""
  5591. TCLLIBFN=""
  5592. TCLINC=""
  5593. TCLINCFN=""
  5594. fi
  5595. fi
  5596. # Look for Tcl header: if $tclincname is set, check there first
  5597. if test "x$tclincname" != x; then
  5598. if test -f "$tclincname" && test -r "$tclincname"; then
  5599. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5600. TCLINCFN=`$BASENAME $tclincname`
  5601. else
  5602. cat << EOF >&2
  5603. configure: WARNING:
  5604. The file '$tclincname' given to option --with-tclinc is not valid.
  5605. configure will now attempt to autodetect both the Tcl library and header.
  5606. EOF
  5607. tcllibname=""
  5608. tclincname=""
  5609. TCLLIB=""
  5610. TCLLIBFN=""
  5611. TCLINC=""
  5612. TCLINCFN=""
  5613. fi
  5614. fi
  5615. # Look for Tcl library: if $TCLLIB is set, check there first
  5616. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5617. if test -d "$TCLLIB"; then
  5618. for tcllibfns in $tcllibnames; do
  5619. for tcllibext in $tcllibextensions; do
  5620. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5621. TCLLIBFN="${tcllibfns}${tcllibext}"
  5622. TCLLIBEXT="$tcllibext"
  5623. TCLLIBFNS="$tcllibfns"
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. fi
  5629. if test "x$TCLLIBFN" = x; then
  5630. cat << 'EOF' >&2
  5631. configure: WARNING:
  5632. Environment variable TCLLIB was set, but incorrectly.
  5633. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5634. configure will now attempt to autodetect both the Tcl library and header.
  5635. EOF
  5636. TCLLIB=""
  5637. TCLLIBFN=""
  5638. TCLINC=""
  5639. TCLINCFN=""
  5640. fi
  5641. fi
  5642. # Look for Tcl header: if $TCLINC is set, check there first
  5643. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5644. if test -d "$TCLINC"; then
  5645. for tclheaderfn in $tclheadernames; do
  5646. if test -r "${TCLINC}/${tclheaderfn}"; then
  5647. TCLINCFN="$tclheaderfn"
  5648. break
  5649. fi
  5650. done
  5651. fi
  5652. if test "x$TCLINCFN" = x; then
  5653. cat << 'EOF' >&2
  5654. configure: WARNING:
  5655. Environment variable TCLINC was set, but incorrectly.
  5656. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5657. configure will now attempt to autodetect both the Tcl library and header.
  5658. EOF
  5659. TCLLIB=""
  5660. TCLLIBFN=""
  5661. TCLINC=""
  5662. TCLINCFN=""
  5663. fi
  5664. fi
  5665. if test "$enable_script_tcl" = "yes"; then
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5667. $as_echo_n "checking for Tcl library... " >&6; }
  5668. # Attempt autodetect for $TCLLIBFN if it's not set
  5669. if test "x$TCLLIBFN" != x; then
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5671. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5672. else
  5673. for tcllibfns in $tcllibnames; do
  5674. for tcllibext in $tcllibextensions; do
  5675. for tcllibpath in $tcllibpaths; do
  5676. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5678. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5679. TCLLIB="$tcllibpath"
  5680. TCLLIBFN="${tcllibfns}${tcllibext}"
  5681. TCLLIBEXT="$tcllibext"
  5682. TCLLIBFNS="$tcllibfns"
  5683. break 3
  5684. fi
  5685. done
  5686. done
  5687. done
  5688. fi
  5689. # Show if $TCLLIBFN wasn't found
  5690. if test "x$TCLLIBFN" = x; then
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5692. $as_echo "not found" >&6; }
  5693. fi
  5694. fi
  5695. if test "$enable_script_tcl" = "yes"; then
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5697. $as_echo_n "checking for Tcl header... " >&6; }
  5698. # Attempt autodetect for $TCLINCFN if it's not set
  5699. if test "x$TCLINCFN" != x; then
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5701. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5702. else
  5703. for tclheaderpath in $tclheaderpaths; do
  5704. for tclheaderfn in $tclheadernames; do
  5705. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5707. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5708. TCLINC="$tclheaderpath"
  5709. TCLINCFN="$tclheaderfn"
  5710. break 2
  5711. fi
  5712. done
  5713. done
  5714. # FreeBSD hack ...
  5715. if test "x$TCLINCFN" = x; then
  5716. for tcllibfns in $tcllibnames; do
  5717. for tclheaderpath in $tclheaderpaths; do
  5718. for tclheaderfn in $tclheadernames; do
  5719. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5721. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5722. TCLINC="${tclheaderpath}/${tcllibfns}"
  5723. TCLINCFN="$tclheaderfn"
  5724. break 3
  5725. fi
  5726. done
  5727. done
  5728. done
  5729. fi
  5730. fi
  5731. TCL_INCLUDES=""
  5732. if ! test "x$TCLINC" = x; then
  5733. TCL_INCLUDES="-I$TCLINC"
  5734. fi
  5735. if test "x$TCLINCFN" = x; then
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5737. $as_echo "not found" >&6; }
  5738. fi
  5739. fi
  5740. if test "$enable_script_tcl" = "yes"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5742. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5743. egg_tcl_changed="yes"
  5744. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5745. if test "$egg_tcl_id" != ":::"; then
  5746. egg_tcl_cached="yes"
  5747. if ${egg_cv_var_tcl_id+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. egg_cv_var_tcl_id="$egg_tcl_id"
  5751. egg_tcl_cached="no"
  5752. fi
  5753. if test "$egg_tcl_cached" = yes; then
  5754. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5755. egg_tcl_changed="no"
  5756. else
  5757. egg_cv_var_tcl_id="$egg_tcl_id"
  5758. fi
  5759. fi
  5760. fi
  5761. if test "$egg_tcl_changed" = yes; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5763. $as_echo "yes" >&6; }
  5764. else
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5766. $as_echo "no" >&6; }
  5767. fi
  5768. fi
  5769. if test "$enable_script_tcl" = "yes"; then
  5770. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5771. TCL_FOUND=0
  5772. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5773. TCL_FOUND=1
  5774. # Check Tcl's version
  5775. if test "$egg_tcl_changed" = yes; then
  5776. unset egg_cv_var_tcl_version
  5777. fi
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5779. $as_echo_n "checking for Tcl version... " >&6; }
  5780. if ${egg_cv_var_tcl_version+:} false; then :
  5781. $as_echo_n "(cached) " >&6
  5782. else
  5783. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5784. fi
  5785. if test "x$egg_cv_var_tcl_version" != x; then
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5787. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5788. else
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5790. $as_echo "not found" >&6; }
  5791. TCL_FOUND=0
  5792. fi
  5793. # Check Tcl's patch level (if available)
  5794. if test "$egg_tcl_changed" = yes; then
  5795. unset egg_cv_var_tcl_patch_level
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5798. $as_echo_n "checking for Tcl patch level... " >&6; }
  5799. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5803. fi
  5804. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5806. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5807. else
  5808. egg_cv_var_tcl_patch_level="unknown"
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5810. $as_echo "unknown" >&6; }
  5811. fi
  5812. fi
  5813. # Check if we found Tcl's version
  5814. if test "$TCL_FOUND" = 0; then
  5815. cat << 'EOF' >&2
  5816. configure: error:
  5817. Tcl cannot be found on this system.
  5818. Tcl is not required. Wraith will be compiled without TCL support. If you
  5819. already have Tcl installed on this system, please specify the path by
  5820. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5821. --with-tclinc='/path/to/tcl.h' options.
  5822. EOF
  5823. enable_script_tcl="no"
  5824. else
  5825. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5826. fi
  5827. fi
  5828. if test "$enable_script_tcl" = "yes"; then
  5829. # Is this version of Tcl too old for us to use ?
  5830. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5831. if test "$TCL_VER_PRE70" = yes; then
  5832. cat << EOF >&2
  5833. configure: error:
  5834. Your Tcl version is much too old for Wraith to use. You should
  5835. download and compile a more recent version. The most reliable
  5836. current version is $tclrecommendver and can be downloaded from
  5837. ${tclrecommendsite}.
  5838. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5839. for more information.
  5840. EOF
  5841. exit 1
  5842. fi
  5843. fi
  5844. # Set variables for Tcl library tests
  5845. TCL_TEST_LIB="$TCLLIBFNS"
  5846. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5847. if test "x$ac_cv_lib_pthread" != x; then
  5848. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5849. fi
  5850. if test "$enable_script_tcl" = "yes"; then
  5851. if test "$egg_tcl_changed" = yes; then
  5852. unset egg_cv_var_tcl_free
  5853. fi
  5854. # Check for Tcl_Free()
  5855. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5857. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5858. if eval \${$as_ac_Lib+:} false; then :
  5859. $as_echo_n "(cached) " >&6
  5860. else
  5861. ac_check_lib_save_LIBS=$LIBS
  5862. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5863. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5864. /* end build/confdefs.h. */
  5865. /* Override any GCC internal prototype to avoid an error.
  5866. Use char because int might match the return type of a GCC
  5867. builtin and then its argument prototype would still apply. */
  5868. #ifdef __cplusplus
  5869. extern "C"
  5870. #endif
  5871. char Tcl_Free ();
  5872. int
  5873. main ()
  5874. {
  5875. return Tcl_Free ();
  5876. ;
  5877. return 0;
  5878. }
  5879. _ACEOF
  5880. if ac_fn_cxx_try_link "$LINENO"; then :
  5881. eval "$as_ac_Lib=yes"
  5882. else
  5883. eval "$as_ac_Lib=no"
  5884. fi
  5885. rm -f core conftest.err conftest.$ac_objext \
  5886. conftest$ac_exeext conftest.$ac_ext
  5887. LIBS=$ac_check_lib_save_LIBS
  5888. fi
  5889. eval ac_res=\$$as_ac_Lib
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5891. $as_echo "$ac_res" >&6; }
  5892. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5893. egg_cv_var_tcl_free="yes"
  5894. else
  5895. egg_cv_var_tcl_free="no"
  5896. fi
  5897. if test "$egg_cv_var_tcl_free" = yes; then
  5898. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5899. fi
  5900. fi
  5901. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5902. #EGG_TCL_CHECK_GETTHREADDATA
  5903. if test "$enable_script_tcl" = "yes"; then
  5904. if test "$egg_tcl_changed" = yes; then
  5905. unset egg_cv_var_tcl_setnotifier
  5906. fi
  5907. # Check for Tcl_SetNotifier()
  5908. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5910. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5911. if eval \${$as_ac_Lib+:} false; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. ac_check_lib_save_LIBS=$LIBS
  5915. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5916. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5917. /* end build/confdefs.h. */
  5918. /* Override any GCC internal prototype to avoid an error.
  5919. Use char because int might match the return type of a GCC
  5920. builtin and then its argument prototype would still apply. */
  5921. #ifdef __cplusplus
  5922. extern "C"
  5923. #endif
  5924. char Tcl_SetNotifier ();
  5925. int
  5926. main ()
  5927. {
  5928. return Tcl_SetNotifier ();
  5929. ;
  5930. return 0;
  5931. }
  5932. _ACEOF
  5933. if ac_fn_cxx_try_link "$LINENO"; then :
  5934. eval "$as_ac_Lib=yes"
  5935. else
  5936. eval "$as_ac_Lib=no"
  5937. fi
  5938. rm -f core conftest.err conftest.$ac_objext \
  5939. conftest$ac_exeext conftest.$ac_ext
  5940. LIBS=$ac_check_lib_save_LIBS
  5941. fi
  5942. eval ac_res=\$$as_ac_Lib
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5944. $as_echo "$ac_res" >&6; }
  5945. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5946. egg_cv_var_tcl_setnotifier="yes"
  5947. else
  5948. egg_cv_var_tcl_setnotifier="no"
  5949. fi
  5950. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5951. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5952. fi
  5953. fi
  5954. if test "$enable_script_tcl" = "yes"; then
  5955. if test "$EGG_CYGWIN" = yes; then
  5956. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5957. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5958. else
  5959. if test "$TCLLIBEXT" != ".a"; then
  5960. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5961. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5962. else
  5963. # Set default make as static for unshared Tcl library
  5964. if test "$DEFAULT_MAKE" != static; then
  5965. cat << 'EOF' >&2
  5966. configure: WARNING:
  5967. Your Tcl library is not a shared lib.
  5968. configure will now set default make type to static.
  5969. EOF
  5970. DEFAULT_MAKE="static"
  5971. fi
  5972. # Are we using a pre 7.4 Tcl version ?
  5973. 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"}'`
  5974. if test "$TCL_VER_PRE74" = no; then
  5975. # Was the --with-tcllib option given ?
  5976. if test "x$tcllibname" != x; then
  5977. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5978. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5979. else
  5980. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5981. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5982. fi
  5983. else
  5984. cat << EOF >&2
  5985. configure: WARNING:
  5986. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5987. There are known problems, but we will attempt to work around them.
  5988. EOF
  5989. TCL_REQS="libtcle.a"
  5990. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5991. fi
  5992. fi
  5993. fi
  5994. fi
  5995. cat >confcache <<\_ACEOF
  5996. # This file is a shell script that caches the results of configure
  5997. # tests run on this system so they can be shared between configure
  5998. # scripts and configure runs, see configure's option --config-cache.
  5999. # It is not useful on other systems. If it contains results you don't
  6000. # want to keep, you may remove or edit it.
  6001. #
  6002. # build/config.status only pays attention to the cache file if you give it
  6003. # the --recheck option to rerun configure.
  6004. #
  6005. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6006. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6007. # following values.
  6008. _ACEOF
  6009. # The following way of writing the cache mishandles newlines in values,
  6010. # but we know of no workaround that is simple, portable, and efficient.
  6011. # So, we kill variables containing newlines.
  6012. # Ultrix sh set writes to stderr and can't be redirected directly,
  6013. # and sets the high bit in the cache file unless we assign to the vars.
  6014. (
  6015. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6016. eval ac_val=\$$ac_var
  6017. case $ac_val in #(
  6018. *${as_nl}*)
  6019. case $ac_var in #(
  6020. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6021. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6022. esac
  6023. case $ac_var in #(
  6024. _ | IFS | as_nl) ;; #(
  6025. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6026. *) { eval $ac_var=; unset $ac_var;} ;;
  6027. esac ;;
  6028. esac
  6029. done
  6030. (set) 2>&1 |
  6031. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6032. *${as_nl}ac_space=\ *)
  6033. # `set' does not quote correctly, so add quotes: double-quote
  6034. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6035. sed -n \
  6036. "s/'/'\\\\''/g;
  6037. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6038. ;; #(
  6039. *)
  6040. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6041. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6042. ;;
  6043. esac |
  6044. sort
  6045. ) |
  6046. sed '
  6047. /^ac_cv_env_/b end
  6048. t clear
  6049. :clear
  6050. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6051. t end
  6052. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6053. :end' >>confcache
  6054. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6055. if test -w "$cache_file"; then
  6056. if test "x$cache_file" != "x/dev/null"; then
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6058. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6059. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6060. cat confcache >"$cache_file"
  6061. else
  6062. case $cache_file in #(
  6063. */* | ?:*)
  6064. mv -f confcache "$cache_file"$$ &&
  6065. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6066. *)
  6067. mv -f confcache "$cache_file" ;;
  6068. esac
  6069. fi
  6070. fi
  6071. else
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6073. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6074. fi
  6075. fi
  6076. rm -f confcache
  6077. #AC_SUBST(ZLIB)dnl
  6078. # Checks for typedefs, structures, and compiler characteristics
  6079. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6080. if test "x$ac_cv_type_pid_t" = xyes; then :
  6081. else
  6082. cat >>build/confdefs.h <<_ACEOF
  6083. #define pid_t int
  6084. _ACEOF
  6085. fi
  6086. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6087. if test "x$ac_cv_type_size_t" = xyes; then :
  6088. else
  6089. cat >>build/confdefs.h <<_ACEOF
  6090. #define size_t unsigned int
  6091. _ACEOF
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6094. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6095. if ${ac_cv_type_uid_t+:} false; then :
  6096. $as_echo_n "(cached) " >&6
  6097. else
  6098. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end build/confdefs.h. */
  6100. #include <sys/types.h>
  6101. _ACEOF
  6102. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6103. $EGREP "uid_t" >/dev/null 2>&1; then :
  6104. ac_cv_type_uid_t=yes
  6105. else
  6106. ac_cv_type_uid_t=no
  6107. fi
  6108. rm -f conftest*
  6109. fi
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6111. $as_echo "$ac_cv_type_uid_t" >&6; }
  6112. if test $ac_cv_type_uid_t = no; then
  6113. $as_echo "#define uid_t int" >>build/confdefs.h
  6114. $as_echo "#define gid_t int" >>build/confdefs.h
  6115. fi
  6116. #AC_C_CONST
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  6118. $as_echo_n "checking for working volatile... " >&6; }
  6119. if ${ac_cv_c_volatile+:} false; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6123. /* end build/confdefs.h. */
  6124. int
  6125. main ()
  6126. {
  6127. volatile int x;
  6128. int * volatile y = (int *) 0;
  6129. return !x && !y;
  6130. ;
  6131. return 0;
  6132. }
  6133. _ACEOF
  6134. if ac_fn_cxx_try_compile "$LINENO"; then :
  6135. ac_cv_c_volatile=yes
  6136. else
  6137. ac_cv_c_volatile=no
  6138. fi
  6139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6140. fi
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  6142. $as_echo "$ac_cv_c_volatile" >&6; }
  6143. if test $ac_cv_c_volatile = no; then
  6144. $as_echo "#define volatile /**/" >>build/confdefs.h
  6145. fi
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6147. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  6148. if ${ac_cv_c_bigendian+:} false; then :
  6149. $as_echo_n "(cached) " >&6
  6150. else
  6151. ac_cv_c_bigendian=unknown
  6152. # See if we're dealing with a universal compiler.
  6153. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6154. /* end build/confdefs.h. */
  6155. #ifndef __APPLE_CC__
  6156. not a universal capable compiler
  6157. #endif
  6158. typedef int dummy;
  6159. _ACEOF
  6160. if ac_fn_cxx_try_compile "$LINENO"; then :
  6161. # Check for potential -arch flags. It is not universal unless
  6162. # there are at least two -arch flags with different values.
  6163. ac_arch=
  6164. ac_prev=
  6165. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6166. if test -n "$ac_prev"; then
  6167. case $ac_word in
  6168. i?86 | x86_64 | ppc | ppc64)
  6169. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6170. ac_arch=$ac_word
  6171. else
  6172. ac_cv_c_bigendian=universal
  6173. break
  6174. fi
  6175. ;;
  6176. esac
  6177. ac_prev=
  6178. elif test "x$ac_word" = "x-arch"; then
  6179. ac_prev=arch
  6180. fi
  6181. done
  6182. fi
  6183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6184. if test $ac_cv_c_bigendian = unknown; then
  6185. # See if sys/param.h defines the BYTE_ORDER macro.
  6186. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6187. /* end build/confdefs.h. */
  6188. #include <sys/types.h>
  6189. #include <sys/param.h>
  6190. int
  6191. main ()
  6192. {
  6193. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6194. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6195. && LITTLE_ENDIAN)
  6196. bogus endian macros
  6197. #endif
  6198. ;
  6199. return 0;
  6200. }
  6201. _ACEOF
  6202. if ac_fn_cxx_try_compile "$LINENO"; then :
  6203. # It does; now see whether it defined to BIG_ENDIAN or not.
  6204. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6205. /* end build/confdefs.h. */
  6206. #include <sys/types.h>
  6207. #include <sys/param.h>
  6208. int
  6209. main ()
  6210. {
  6211. #if BYTE_ORDER != BIG_ENDIAN
  6212. not big endian
  6213. #endif
  6214. ;
  6215. return 0;
  6216. }
  6217. _ACEOF
  6218. if ac_fn_cxx_try_compile "$LINENO"; then :
  6219. ac_cv_c_bigendian=yes
  6220. else
  6221. ac_cv_c_bigendian=no
  6222. fi
  6223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6224. fi
  6225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6226. fi
  6227. if test $ac_cv_c_bigendian = unknown; then
  6228. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6229. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end build/confdefs.h. */
  6231. #include <limits.h>
  6232. int
  6233. main ()
  6234. {
  6235. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6236. bogus endian macros
  6237. #endif
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. if ac_fn_cxx_try_compile "$LINENO"; then :
  6243. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6244. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6245. /* end build/confdefs.h. */
  6246. #include <limits.h>
  6247. int
  6248. main ()
  6249. {
  6250. #ifndef _BIG_ENDIAN
  6251. not big endian
  6252. #endif
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. if ac_fn_cxx_try_compile "$LINENO"; then :
  6258. ac_cv_c_bigendian=yes
  6259. else
  6260. ac_cv_c_bigendian=no
  6261. fi
  6262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6263. fi
  6264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6265. fi
  6266. if test $ac_cv_c_bigendian = unknown; then
  6267. # Compile a test program.
  6268. if test "$cross_compiling" = yes; then :
  6269. # Try to guess by grepping values from an object file.
  6270. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6271. /* end build/confdefs.h. */
  6272. short int ascii_mm[] =
  6273. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6274. short int ascii_ii[] =
  6275. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6276. int use_ascii (int i) {
  6277. return ascii_mm[i] + ascii_ii[i];
  6278. }
  6279. short int ebcdic_ii[] =
  6280. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6281. short int ebcdic_mm[] =
  6282. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6283. int use_ebcdic (int i) {
  6284. return ebcdic_mm[i] + ebcdic_ii[i];
  6285. }
  6286. extern int foo;
  6287. int
  6288. main ()
  6289. {
  6290. return use_ascii (foo) == use_ebcdic (foo);
  6291. ;
  6292. return 0;
  6293. }
  6294. _ACEOF
  6295. if ac_fn_cxx_try_compile "$LINENO"; then :
  6296. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6297. ac_cv_c_bigendian=yes
  6298. fi
  6299. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6300. if test "$ac_cv_c_bigendian" = unknown; then
  6301. ac_cv_c_bigendian=no
  6302. else
  6303. # finding both strings is unlikely to happen, but who knows?
  6304. ac_cv_c_bigendian=unknown
  6305. fi
  6306. fi
  6307. fi
  6308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6309. else
  6310. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end build/confdefs.h. */
  6312. $ac_includes_default
  6313. int
  6314. main ()
  6315. {
  6316. /* Are we little or big endian? From Harbison&Steele. */
  6317. union
  6318. {
  6319. long int l;
  6320. char c[sizeof (long int)];
  6321. } u;
  6322. u.l = 1;
  6323. return u.c[sizeof (long int) - 1] == 1;
  6324. ;
  6325. return 0;
  6326. }
  6327. _ACEOF
  6328. if ac_fn_cxx_try_run "$LINENO"; then :
  6329. ac_cv_c_bigendian=no
  6330. else
  6331. ac_cv_c_bigendian=yes
  6332. fi
  6333. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6334. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6335. fi
  6336. fi
  6337. fi
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6339. $as_echo "$ac_cv_c_bigendian" >&6; }
  6340. case $ac_cv_c_bigendian in #(
  6341. yes)
  6342. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6343. ;; #(
  6344. no)
  6345. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6346. ;; #(
  6347. universal)
  6348. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6349. ;; #(
  6350. *)
  6351. as_fn_error $? "unknown endianness
  6352. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6353. esac
  6354. #AC_C_INLINE
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6356. $as_echo_n "checking whether char is unsigned... " >&6; }
  6357. if ${ac_cv_c_char_unsigned+:} false; then :
  6358. $as_echo_n "(cached) " >&6
  6359. else
  6360. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6361. /* end build/confdefs.h. */
  6362. $ac_includes_default
  6363. int
  6364. main ()
  6365. {
  6366. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6367. test_array [0] = 0;
  6368. return test_array [0];
  6369. ;
  6370. return 0;
  6371. }
  6372. _ACEOF
  6373. if ac_fn_cxx_try_compile "$LINENO"; then :
  6374. ac_cv_c_char_unsigned=no
  6375. else
  6376. ac_cv_c_char_unsigned=yes
  6377. fi
  6378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6379. fi
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6381. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6382. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6383. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6384. fi
  6385. #AC_C_STRINGIZE
  6386. #AC_C_PROTOTYPES
  6387. #checkpoint
  6388. cat >confcache <<\_ACEOF
  6389. # This file is a shell script that caches the results of configure
  6390. # tests run on this system so they can be shared between configure
  6391. # scripts and configure runs, see configure's option --config-cache.
  6392. # It is not useful on other systems. If it contains results you don't
  6393. # want to keep, you may remove or edit it.
  6394. #
  6395. # build/config.status only pays attention to the cache file if you give it
  6396. # the --recheck option to rerun configure.
  6397. #
  6398. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6399. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6400. # following values.
  6401. _ACEOF
  6402. # The following way of writing the cache mishandles newlines in values,
  6403. # but we know of no workaround that is simple, portable, and efficient.
  6404. # So, we kill variables containing newlines.
  6405. # Ultrix sh set writes to stderr and can't be redirected directly,
  6406. # and sets the high bit in the cache file unless we assign to the vars.
  6407. (
  6408. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6409. eval ac_val=\$$ac_var
  6410. case $ac_val in #(
  6411. *${as_nl}*)
  6412. case $ac_var in #(
  6413. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6414. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6415. esac
  6416. case $ac_var in #(
  6417. _ | IFS | as_nl) ;; #(
  6418. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6419. *) { eval $ac_var=; unset $ac_var;} ;;
  6420. esac ;;
  6421. esac
  6422. done
  6423. (set) 2>&1 |
  6424. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6425. *${as_nl}ac_space=\ *)
  6426. # `set' does not quote correctly, so add quotes: double-quote
  6427. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6428. sed -n \
  6429. "s/'/'\\\\''/g;
  6430. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6431. ;; #(
  6432. *)
  6433. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6434. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6435. ;;
  6436. esac |
  6437. sort
  6438. ) |
  6439. sed '
  6440. /^ac_cv_env_/b end
  6441. t clear
  6442. :clear
  6443. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6444. t end
  6445. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6446. :end' >>confcache
  6447. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6448. if test -w "$cache_file"; then
  6449. if test "x$cache_file" != "x/dev/null"; then
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6451. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6452. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6453. cat confcache >"$cache_file"
  6454. else
  6455. case $cache_file in #(
  6456. */* | ?:*)
  6457. mv -f confcache "$cache_file"$$ &&
  6458. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6459. *)
  6460. mv -f confcache "$cache_file" ;;
  6461. esac
  6462. fi
  6463. fi
  6464. else
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6466. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6467. fi
  6468. fi
  6469. rm -f confcache
  6470. # Checks for typedefs, structures, and compiler characteristics
  6471. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6472. if test "x$ac_cv_type_pid_t" = xyes; then :
  6473. else
  6474. cat >>build/confdefs.h <<_ACEOF
  6475. #define pid_t int
  6476. _ACEOF
  6477. fi
  6478. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6479. if test "x$ac_cv_type_size_t" = xyes; then :
  6480. else
  6481. cat >>build/confdefs.h <<_ACEOF
  6482. #define size_t unsigned int
  6483. _ACEOF
  6484. fi
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6486. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6487. if ${ac_cv_type_uid_t+:} false; then :
  6488. $as_echo_n "(cached) " >&6
  6489. else
  6490. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6491. /* end build/confdefs.h. */
  6492. #include <sys/types.h>
  6493. _ACEOF
  6494. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6495. $EGREP "uid_t" >/dev/null 2>&1; then :
  6496. ac_cv_type_uid_t=yes
  6497. else
  6498. ac_cv_type_uid_t=no
  6499. fi
  6500. rm -f conftest*
  6501. fi
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6503. $as_echo "$ac_cv_type_uid_t" >&6; }
  6504. if test $ac_cv_type_uid_t = no; then
  6505. $as_echo "#define uid_t int" >>build/confdefs.h
  6506. $as_echo "#define gid_t int" >>build/confdefs.h
  6507. fi
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6509. $as_echo_n "checking for unsigned long long int... " >&6; }
  6510. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6511. $as_echo_n "(cached) " >&6
  6512. else
  6513. ac_cv_type_unsigned_long_long_int=yes
  6514. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6515. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6516. /* end build/confdefs.h. */
  6517. /* For now, do not test the preprocessor; as of 2007 there are too many
  6518. implementations with broken preprocessors. Perhaps this can
  6519. be revisited in 2012. In the meantime, code should not expect
  6520. #if to work with literals wider than 32 bits. */
  6521. /* Test literals. */
  6522. long long int ll = 9223372036854775807ll;
  6523. long long int nll = -9223372036854775807LL;
  6524. unsigned long long int ull = 18446744073709551615ULL;
  6525. /* Test constant expressions. */
  6526. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6527. ? 1 : -1)];
  6528. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6529. ? 1 : -1)];
  6530. int i = 63;
  6531. int
  6532. main ()
  6533. {
  6534. /* Test availability of runtime routines for shift and division. */
  6535. long long int llmax = 9223372036854775807ll;
  6536. unsigned long long int ullmax = 18446744073709551615ull;
  6537. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6538. | (llmax / ll) | (llmax % ll)
  6539. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6540. | (ullmax / ull) | (ullmax % ull));
  6541. ;
  6542. return 0;
  6543. }
  6544. _ACEOF
  6545. if ac_fn_cxx_try_link "$LINENO"; then :
  6546. else
  6547. ac_cv_type_unsigned_long_long_int=no
  6548. fi
  6549. rm -f core conftest.err conftest.$ac_objext \
  6550. conftest$ac_exeext conftest.$ac_ext
  6551. fi
  6552. fi
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6554. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6555. if test $ac_cv_type_unsigned_long_long_int = yes; then
  6556. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  6557. fi
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6559. $as_echo_n "checking for long long int... " >&6; }
  6560. if ${ac_cv_type_long_long_int+:} false; then :
  6561. $as_echo_n "(cached) " >&6
  6562. else
  6563. ac_cv_type_long_long_int=yes
  6564. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6565. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6566. if test $ac_cv_type_long_long_int = yes; then
  6567. if test "$cross_compiling" = yes; then :
  6568. :
  6569. else
  6570. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6571. /* end build/confdefs.h. */
  6572. #include <limits.h>
  6573. #ifndef LLONG_MAX
  6574. # define HALF \
  6575. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6576. # define LLONG_MAX (HALF - 1 + HALF)
  6577. #endif
  6578. int
  6579. main ()
  6580. {
  6581. long long int n = 1;
  6582. int i;
  6583. for (i = 0; ; i++)
  6584. {
  6585. long long int m = n << i;
  6586. if (m >> i != n)
  6587. return 1;
  6588. if (LLONG_MAX / 2 < m)
  6589. break;
  6590. }
  6591. return 0;
  6592. ;
  6593. return 0;
  6594. }
  6595. _ACEOF
  6596. if ac_fn_cxx_try_run "$LINENO"; then :
  6597. else
  6598. ac_cv_type_long_long_int=no
  6599. fi
  6600. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6601. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6602. fi
  6603. fi
  6604. fi
  6605. fi
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6607. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6608. if test $ac_cv_type_long_long_int = yes; then
  6609. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6610. fi
  6611. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6612. case $ac_cv_c_int8_t in #(
  6613. no|yes) ;; #(
  6614. *)
  6615. cat >>build/confdefs.h <<_ACEOF
  6616. #define int8_t $ac_cv_c_int8_t
  6617. _ACEOF
  6618. ;;
  6619. esac
  6620. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6621. case $ac_cv_c_uint8_t in #(
  6622. no|yes) ;; #(
  6623. *)
  6624. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6625. cat >>build/confdefs.h <<_ACEOF
  6626. #define uint8_t $ac_cv_c_uint8_t
  6627. _ACEOF
  6628. ;;
  6629. esac
  6630. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6631. case $ac_cv_c_int16_t in #(
  6632. no|yes) ;; #(
  6633. *)
  6634. cat >>build/confdefs.h <<_ACEOF
  6635. #define int16_t $ac_cv_c_int16_t
  6636. _ACEOF
  6637. ;;
  6638. esac
  6639. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6640. case $ac_cv_c_uint16_t in #(
  6641. no|yes) ;; #(
  6642. *)
  6643. cat >>build/confdefs.h <<_ACEOF
  6644. #define uint16_t $ac_cv_c_uint16_t
  6645. _ACEOF
  6646. ;;
  6647. esac
  6648. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6649. case $ac_cv_c_int32_t in #(
  6650. no|yes) ;; #(
  6651. *)
  6652. cat >>build/confdefs.h <<_ACEOF
  6653. #define int32_t $ac_cv_c_int32_t
  6654. _ACEOF
  6655. ;;
  6656. esac
  6657. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6658. case $ac_cv_c_uint32_t in #(
  6659. no|yes) ;; #(
  6660. *)
  6661. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6662. cat >>build/confdefs.h <<_ACEOF
  6663. #define uint32_t $ac_cv_c_uint32_t
  6664. _ACEOF
  6665. ;;
  6666. esac
  6667. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6668. case $ac_cv_c_int64_t in #(
  6669. no|yes) ;; #(
  6670. *)
  6671. cat >>build/confdefs.h <<_ACEOF
  6672. #define int64_t $ac_cv_c_int64_t
  6673. _ACEOF
  6674. ;;
  6675. esac
  6676. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6677. case $ac_cv_c_uint64_t in #(
  6678. no|yes) ;; #(
  6679. *)
  6680. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6681. cat >>build/confdefs.h <<_ACEOF
  6682. #define uint64_t $ac_cv_c_uint64_t
  6683. _ACEOF
  6684. ;;
  6685. esac
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6687. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6688. if ${ac_cv_struct_tm+:} false; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6692. /* end build/confdefs.h. */
  6693. #include <sys/types.h>
  6694. #include <time.h>
  6695. int
  6696. main ()
  6697. {
  6698. struct tm tm;
  6699. int *p = &tm.tm_sec;
  6700. return !p;
  6701. ;
  6702. return 0;
  6703. }
  6704. _ACEOF
  6705. if ac_fn_cxx_try_compile "$LINENO"; then :
  6706. ac_cv_struct_tm=time.h
  6707. else
  6708. ac_cv_struct_tm=sys/time.h
  6709. fi
  6710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6711. fi
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6713. $as_echo "$ac_cv_struct_tm" >&6; }
  6714. if test $ac_cv_struct_tm = sys/time.h; then
  6715. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6716. fi
  6717. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6718. #include <$ac_cv_struct_tm>
  6719. "
  6720. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6721. cat >>build/confdefs.h <<_ACEOF
  6722. #define HAVE_STRUCT_TM_TM_ZONE 1
  6723. _ACEOF
  6724. fi
  6725. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6726. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6727. else
  6728. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6729. "
  6730. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6731. ac_have_decl=1
  6732. else
  6733. ac_have_decl=0
  6734. fi
  6735. cat >>build/confdefs.h <<_ACEOF
  6736. #define HAVE_DECL_TZNAME $ac_have_decl
  6737. _ACEOF
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6739. $as_echo_n "checking for tzname... " >&6; }
  6740. if ${ac_cv_var_tzname+:} false; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6744. /* end build/confdefs.h. */
  6745. #include <time.h>
  6746. #if !HAVE_DECL_TZNAME
  6747. extern char *tzname[];
  6748. #endif
  6749. int
  6750. main ()
  6751. {
  6752. return tzname[0][0];
  6753. ;
  6754. return 0;
  6755. }
  6756. _ACEOF
  6757. if ac_fn_cxx_try_link "$LINENO"; then :
  6758. ac_cv_var_tzname=yes
  6759. else
  6760. ac_cv_var_tzname=no
  6761. fi
  6762. rm -f core conftest.err conftest.$ac_objext \
  6763. conftest$ac_exeext conftest.$ac_ext
  6764. fi
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6766. $as_echo "$ac_cv_var_tzname" >&6; }
  6767. if test $ac_cv_var_tzname = yes; then
  6768. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6769. fi
  6770. fi
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6772. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6773. if ${ac_cv_struct_tm+:} false; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6777. /* end build/confdefs.h. */
  6778. #include <sys/types.h>
  6779. #include <time.h>
  6780. int
  6781. main ()
  6782. {
  6783. struct tm tm;
  6784. int *p = &tm.tm_sec;
  6785. return !p;
  6786. ;
  6787. return 0;
  6788. }
  6789. _ACEOF
  6790. if ac_fn_cxx_try_compile "$LINENO"; then :
  6791. ac_cv_struct_tm=time.h
  6792. else
  6793. ac_cv_struct_tm=sys/time.h
  6794. fi
  6795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6796. fi
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6798. $as_echo "$ac_cv_struct_tm" >&6; }
  6799. if test $ac_cv_struct_tm = sys/time.h; then
  6800. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6801. fi
  6802. # Checks for library functions
  6803. for ac_header in vfork.h
  6804. do :
  6805. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6806. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6807. cat >>build/confdefs.h <<_ACEOF
  6808. #define HAVE_VFORK_H 1
  6809. _ACEOF
  6810. fi
  6811. done
  6812. for ac_func in fork vfork
  6813. do :
  6814. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6815. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6816. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6817. cat >>build/confdefs.h <<_ACEOF
  6818. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6819. _ACEOF
  6820. fi
  6821. done
  6822. if test "x$ac_cv_func_fork" = xyes; then
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6824. $as_echo_n "checking for working fork... " >&6; }
  6825. if ${ac_cv_func_fork_works+:} false; then :
  6826. $as_echo_n "(cached) " >&6
  6827. else
  6828. if test "$cross_compiling" = yes; then :
  6829. ac_cv_func_fork_works=cross
  6830. else
  6831. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6832. /* end build/confdefs.h. */
  6833. $ac_includes_default
  6834. int
  6835. main ()
  6836. {
  6837. /* By Ruediger Kuhlmann. */
  6838. return fork () < 0;
  6839. ;
  6840. return 0;
  6841. }
  6842. _ACEOF
  6843. if ac_fn_cxx_try_run "$LINENO"; then :
  6844. ac_cv_func_fork_works=yes
  6845. else
  6846. ac_cv_func_fork_works=no
  6847. fi
  6848. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6849. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6850. fi
  6851. fi
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6853. $as_echo "$ac_cv_func_fork_works" >&6; }
  6854. else
  6855. ac_cv_func_fork_works=$ac_cv_func_fork
  6856. fi
  6857. if test "x$ac_cv_func_fork_works" = xcross; then
  6858. case $host in
  6859. *-*-amigaos* | *-*-msdosdjgpp*)
  6860. # Override, as these systems have only a dummy fork() stub
  6861. ac_cv_func_fork_works=no
  6862. ;;
  6863. *)
  6864. ac_cv_func_fork_works=yes
  6865. ;;
  6866. esac
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6868. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6869. fi
  6870. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6871. if test "x$ac_cv_func_vfork" = xyes; then
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6873. $as_echo_n "checking for working vfork... " >&6; }
  6874. if ${ac_cv_func_vfork_works+:} false; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. if test "$cross_compiling" = yes; then :
  6878. ac_cv_func_vfork_works=cross
  6879. else
  6880. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6881. /* end build/confdefs.h. */
  6882. /* Thanks to Paul Eggert for this test. */
  6883. $ac_includes_default
  6884. #include <sys/wait.h>
  6885. #ifdef HAVE_VFORK_H
  6886. # include <vfork.h>
  6887. #endif
  6888. /* On some sparc systems, changes by the child to local and incoming
  6889. argument registers are propagated back to the parent. The compiler
  6890. is told about this with #include <vfork.h>, but some compilers
  6891. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6892. static variable whose address is put into a register that is
  6893. clobbered by the vfork. */
  6894. static void
  6895. #ifdef __cplusplus
  6896. sparc_address_test (int arg)
  6897. # else
  6898. sparc_address_test (arg) int arg;
  6899. #endif
  6900. {
  6901. static pid_t child;
  6902. if (!child) {
  6903. child = vfork ();
  6904. if (child < 0) {
  6905. perror ("vfork");
  6906. _exit(2);
  6907. }
  6908. if (!child) {
  6909. arg = getpid();
  6910. write(-1, "", 0);
  6911. _exit (arg);
  6912. }
  6913. }
  6914. }
  6915. int
  6916. main ()
  6917. {
  6918. pid_t parent = getpid ();
  6919. pid_t child;
  6920. sparc_address_test (0);
  6921. child = vfork ();
  6922. if (child == 0) {
  6923. /* Here is another test for sparc vfork register problems. This
  6924. test uses lots of local variables, at least as many local
  6925. variables as main has allocated so far including compiler
  6926. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6927. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6928. reuse the register of parent for one of the local variables,
  6929. since it will think that parent can't possibly be used any more
  6930. in this routine. Assigning to the local variable will thus
  6931. munge parent in the parent process. */
  6932. pid_t
  6933. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6934. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6935. /* Convince the compiler that p..p7 are live; otherwise, it might
  6936. use the same hardware register for all 8 local variables. */
  6937. if (p != p1 || p != p2 || p != p3 || p != p4
  6938. || p != p5 || p != p6 || p != p7)
  6939. _exit(1);
  6940. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6941. from child file descriptors. If the child closes a descriptor
  6942. before it execs or exits, this munges the parent's descriptor
  6943. as well. Test for this by closing stdout in the child. */
  6944. _exit(close(fileno(stdout)) != 0);
  6945. } else {
  6946. int status;
  6947. struct stat st;
  6948. while (wait(&status) != child)
  6949. ;
  6950. return (
  6951. /* Was there some problem with vforking? */
  6952. child < 0
  6953. /* Did the child fail? (This shouldn't happen.) */
  6954. || status
  6955. /* Did the vfork/compiler bug occur? */
  6956. || parent != getpid()
  6957. /* Did the file descriptor bug occur? */
  6958. || fstat(fileno(stdout), &st) != 0
  6959. );
  6960. }
  6961. }
  6962. _ACEOF
  6963. if ac_fn_cxx_try_run "$LINENO"; then :
  6964. ac_cv_func_vfork_works=yes
  6965. else
  6966. ac_cv_func_vfork_works=no
  6967. fi
  6968. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6969. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6970. fi
  6971. fi
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6973. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6974. fi;
  6975. if test "x$ac_cv_func_fork_works" = xcross; then
  6976. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6978. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6979. fi
  6980. if test "x$ac_cv_func_vfork_works" = xyes; then
  6981. $as_echo "#define HAVE_WORKING_VFORK 1" >>build/confdefs.h
  6982. else
  6983. $as_echo "#define vfork fork" >>build/confdefs.h
  6984. fi
  6985. if test "x$ac_cv_func_fork_works" = xyes; then
  6986. $as_echo "#define HAVE_WORKING_FORK 1" >>build/confdefs.h
  6987. fi
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6989. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6990. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6991. $as_echo_n "(cached) " >&6
  6992. else
  6993. rm -f conftest.sym conftest.file
  6994. echo >conftest.file
  6995. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6996. if test "$cross_compiling" = yes; then :
  6997. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6998. else
  6999. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7000. /* end build/confdefs.h. */
  7001. $ac_includes_default
  7002. int
  7003. main ()
  7004. {
  7005. struct stat sbuf;
  7006. /* Linux will dereference the symlink and fail, as required by POSIX.
  7007. That is better in the sense that it means we will not
  7008. have to compile and use the lstat wrapper. */
  7009. return lstat ("conftest.sym/", &sbuf) == 0;
  7010. ;
  7011. return 0;
  7012. }
  7013. _ACEOF
  7014. if ac_fn_cxx_try_run "$LINENO"; then :
  7015. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7016. else
  7017. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7018. fi
  7019. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7020. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7021. fi
  7022. else
  7023. # If the `ln -s' command failed, then we probably don't even
  7024. # have an lstat function.
  7025. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7026. fi
  7027. rm -f conftest.sym conftest.file
  7028. fi
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7030. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  7031. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7032. cat >>build/confdefs.h <<_ACEOF
  7033. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7034. _ACEOF
  7035. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  7036. case " $LIBOBJS " in
  7037. *" lstat.$ac_objext "* ) ;;
  7038. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  7039. ;;
  7040. esac
  7041. fi
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  7043. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  7044. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  7045. $as_echo_n "(cached) " >&6
  7046. else
  7047. if test "$cross_compiling" = yes; then :
  7048. ac_cv_func_lstat_empty_string_bug=yes
  7049. else
  7050. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7051. /* end build/confdefs.h. */
  7052. $ac_includes_default
  7053. int
  7054. main ()
  7055. {
  7056. struct stat sbuf;
  7057. return lstat ("", &sbuf) == 0;
  7058. ;
  7059. return 0;
  7060. }
  7061. _ACEOF
  7062. if ac_fn_cxx_try_run "$LINENO"; then :
  7063. ac_cv_func_lstat_empty_string_bug=no
  7064. else
  7065. ac_cv_func_lstat_empty_string_bug=yes
  7066. fi
  7067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7068. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7069. fi
  7070. fi
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  7072. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  7073. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  7074. case " $LIBOBJS " in
  7075. *" lstat.$ac_objext "* ) ;;
  7076. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  7077. ;;
  7078. esac
  7079. cat >>build/confdefs.h <<_ACEOF
  7080. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  7081. _ACEOF
  7082. fi
  7083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  7084. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  7085. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  7086. $as_echo_n "(cached) " >&6
  7087. else
  7088. rm -f conftest.sym conftest.file
  7089. echo >conftest.file
  7090. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7091. if test "$cross_compiling" = yes; then :
  7092. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7093. else
  7094. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7095. /* end build/confdefs.h. */
  7096. $ac_includes_default
  7097. int
  7098. main ()
  7099. {
  7100. struct stat sbuf;
  7101. /* Linux will dereference the symlink and fail, as required by POSIX.
  7102. That is better in the sense that it means we will not
  7103. have to compile and use the lstat wrapper. */
  7104. return lstat ("conftest.sym/", &sbuf) == 0;
  7105. ;
  7106. return 0;
  7107. }
  7108. _ACEOF
  7109. if ac_fn_cxx_try_run "$LINENO"; then :
  7110. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7111. else
  7112. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7113. fi
  7114. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7115. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7116. fi
  7117. else
  7118. # If the `ln -s' command failed, then we probably don't even
  7119. # have an lstat function.
  7120. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7121. fi
  7122. rm -f conftest.sym conftest.file
  7123. fi
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7125. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  7126. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7127. cat >>build/confdefs.h <<_ACEOF
  7128. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7129. _ACEOF
  7130. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  7131. case " $LIBOBJS " in
  7132. *" lstat.$ac_objext "* ) ;;
  7133. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  7134. ;;
  7135. esac
  7136. fi
  7137. for ac_header in stdlib.h
  7138. do :
  7139. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7140. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7141. cat >>build/confdefs.h <<_ACEOF
  7142. #define HAVE_STDLIB_H 1
  7143. _ACEOF
  7144. fi
  7145. done
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  7147. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  7148. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  7149. $as_echo_n "(cached) " >&6
  7150. else
  7151. if test "$cross_compiling" = yes; then :
  7152. ac_cv_func_malloc_0_nonnull=no
  7153. else
  7154. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7155. /* end build/confdefs.h. */
  7156. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7157. # include <stdlib.h>
  7158. #else
  7159. char *malloc ();
  7160. #endif
  7161. int
  7162. main ()
  7163. {
  7164. return ! malloc (0);
  7165. ;
  7166. return 0;
  7167. }
  7168. _ACEOF
  7169. if ac_fn_cxx_try_run "$LINENO"; then :
  7170. ac_cv_func_malloc_0_nonnull=yes
  7171. else
  7172. ac_cv_func_malloc_0_nonnull=no
  7173. fi
  7174. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7175. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7176. fi
  7177. fi
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  7179. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  7180. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  7181. $as_echo "#define HAVE_MALLOC 1" >>build/confdefs.h
  7182. else
  7183. $as_echo "#define HAVE_MALLOC 0" >>build/confdefs.h
  7184. case " $LIBOBJS " in
  7185. *" malloc.$ac_objext "* ) ;;
  7186. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  7187. ;;
  7188. esac
  7189. $as_echo "#define malloc rpl_malloc" >>build/confdefs.h
  7190. fi
  7191. for ac_header in $ac_header_list
  7192. do :
  7193. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7194. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7195. "
  7196. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7197. cat >>build/confdefs.h <<_ACEOF
  7198. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7199. _ACEOF
  7200. fi
  7201. done
  7202. for ac_func in $ac_func_list
  7203. do :
  7204. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7205. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7206. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7207. cat >>build/confdefs.h <<_ACEOF
  7208. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7209. _ACEOF
  7210. fi
  7211. done
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  7213. $as_echo_n "checking for working mktime... " >&6; }
  7214. if ${ac_cv_func_working_mktime+:} false; then :
  7215. $as_echo_n "(cached) " >&6
  7216. else
  7217. if test "$cross_compiling" = yes; then :
  7218. ac_cv_func_working_mktime=no
  7219. else
  7220. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7221. /* end build/confdefs.h. */
  7222. /* Test program from Paul Eggert and Tony Leneis. */
  7223. #ifdef TIME_WITH_SYS_TIME
  7224. # include <sys/time.h>
  7225. # include <time.h>
  7226. #else
  7227. # ifdef HAVE_SYS_TIME_H
  7228. # include <sys/time.h>
  7229. # else
  7230. # include <time.h>
  7231. # endif
  7232. #endif
  7233. #include <limits.h>
  7234. #include <stdlib.h>
  7235. #ifdef HAVE_UNISTD_H
  7236. # include <unistd.h>
  7237. #endif
  7238. #ifndef HAVE_ALARM
  7239. # define alarm(X) /* empty */
  7240. #endif
  7241. /* Work around redefinition to rpl_putenv by other config tests. */
  7242. #undef putenv
  7243. static time_t time_t_max;
  7244. static time_t time_t_min;
  7245. /* Values we'll use to set the TZ environment variable. */
  7246. static const char *tz_strings[] = {
  7247. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  7248. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  7249. };
  7250. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  7251. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  7252. Based on a problem report from Andreas Jaeger. */
  7253. static int
  7254. spring_forward_gap ()
  7255. {
  7256. /* glibc (up to about 1998-10-07) failed this test. */
  7257. struct tm tm;
  7258. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7259. instead of "TZ=America/Vancouver" in order to detect the bug even
  7260. on systems that don't support the Olson extension, or don't have the
  7261. full zoneinfo tables installed. */
  7262. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7263. tm.tm_year = 98;
  7264. tm.tm_mon = 3;
  7265. tm.tm_mday = 5;
  7266. tm.tm_hour = 2;
  7267. tm.tm_min = 0;
  7268. tm.tm_sec = 0;
  7269. tm.tm_isdst = -1;
  7270. return mktime (&tm) != (time_t) -1;
  7271. }
  7272. static int
  7273. mktime_test1 (time_t now)
  7274. {
  7275. struct tm *lt;
  7276. return ! (lt = localtime (&now)) || mktime (lt) == now;
  7277. }
  7278. static int
  7279. mktime_test (time_t now)
  7280. {
  7281. return (mktime_test1 (now)
  7282. && mktime_test1 ((time_t) (time_t_max - now))
  7283. && mktime_test1 ((time_t) (time_t_min + now)));
  7284. }
  7285. static int
  7286. irix_6_4_bug ()
  7287. {
  7288. /* Based on code from Ariel Faigon. */
  7289. struct tm tm;
  7290. tm.tm_year = 96;
  7291. tm.tm_mon = 3;
  7292. tm.tm_mday = 0;
  7293. tm.tm_hour = 0;
  7294. tm.tm_min = 0;
  7295. tm.tm_sec = 0;
  7296. tm.tm_isdst = -1;
  7297. mktime (&tm);
  7298. return tm.tm_mon == 2 && tm.tm_mday == 31;
  7299. }
  7300. static int
  7301. bigtime_test (int j)
  7302. {
  7303. struct tm tm;
  7304. time_t now;
  7305. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  7306. now = mktime (&tm);
  7307. if (now != (time_t) -1)
  7308. {
  7309. struct tm *lt = localtime (&now);
  7310. if (! (lt
  7311. && lt->tm_year == tm.tm_year
  7312. && lt->tm_mon == tm.tm_mon
  7313. && lt->tm_mday == tm.tm_mday
  7314. && lt->tm_hour == tm.tm_hour
  7315. && lt->tm_min == tm.tm_min
  7316. && lt->tm_sec == tm.tm_sec
  7317. && lt->tm_yday == tm.tm_yday
  7318. && lt->tm_wday == tm.tm_wday
  7319. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  7320. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  7321. return 0;
  7322. }
  7323. return 1;
  7324. }
  7325. static int
  7326. year_2050_test ()
  7327. {
  7328. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  7329. ignoring leap seconds. */
  7330. unsigned long int answer = 2527315200UL;
  7331. struct tm tm;
  7332. time_t t;
  7333. tm.tm_year = 2050 - 1900;
  7334. tm.tm_mon = 2 - 1;
  7335. tm.tm_mday = 1;
  7336. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  7337. tm.tm_isdst = -1;
  7338. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7339. instead of "TZ=America/Vancouver" in order to detect the bug even
  7340. on systems that don't support the Olson extension, or don't have the
  7341. full zoneinfo tables installed. */
  7342. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7343. t = mktime (&tm);
  7344. /* Check that the result is either a failure, or close enough
  7345. to the correct answer that we can assume the discrepancy is
  7346. due to leap seconds. */
  7347. return (t == (time_t) -1
  7348. || (0 < t && answer - 120 <= t && t <= answer + 120));
  7349. }
  7350. int
  7351. main ()
  7352. {
  7353. time_t t, delta;
  7354. int i, j;
  7355. /* This test makes some buggy mktime implementations loop.
  7356. Give up after 60 seconds; a mktime slower than that
  7357. isn't worth using anyway. */
  7358. alarm (60);
  7359. for (;;)
  7360. {
  7361. t = (time_t_max << 1) + 1;
  7362. if (t <= time_t_max)
  7363. break;
  7364. time_t_max = t;
  7365. }
  7366. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  7367. delta = time_t_max / 997; /* a suitable prime number */
  7368. for (i = 0; i < N_STRINGS; i++)
  7369. {
  7370. if (tz_strings[i])
  7371. putenv ((char*) tz_strings[i]);
  7372. for (t = 0; t <= time_t_max - delta; t += delta)
  7373. if (! mktime_test (t))
  7374. return 1;
  7375. if (! (mktime_test ((time_t) 1)
  7376. && mktime_test ((time_t) (60 * 60))
  7377. && mktime_test ((time_t) (60 * 60 * 24))))
  7378. return 1;
  7379. for (j = 1; ; j <<= 1)
  7380. if (! bigtime_test (j))
  7381. return 1;
  7382. else if (INT_MAX / 2 < j)
  7383. break;
  7384. if (! bigtime_test (INT_MAX))
  7385. return 1;
  7386. }
  7387. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  7388. }
  7389. _ACEOF
  7390. if ac_fn_cxx_try_run "$LINENO"; then :
  7391. ac_cv_func_working_mktime=yes
  7392. else
  7393. ac_cv_func_working_mktime=no
  7394. fi
  7395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7397. fi
  7398. fi
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  7400. $as_echo "$ac_cv_func_working_mktime" >&6; }
  7401. if test $ac_cv_func_working_mktime = no; then
  7402. case " $LIBOBJS " in
  7403. *" mktime.$ac_objext "* ) ;;
  7404. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  7405. ;;
  7406. esac
  7407. fi
  7408. for ac_func in getpagesize
  7409. do :
  7410. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7411. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7412. cat >>build/confdefs.h <<_ACEOF
  7413. #define HAVE_GETPAGESIZE 1
  7414. _ACEOF
  7415. fi
  7416. done
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7418. $as_echo_n "checking for working mmap... " >&6; }
  7419. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7420. $as_echo_n "(cached) " >&6
  7421. else
  7422. if test "$cross_compiling" = yes; then :
  7423. ac_cv_func_mmap_fixed_mapped=no
  7424. else
  7425. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7426. /* end build/confdefs.h. */
  7427. $ac_includes_default
  7428. /* malloc might have been renamed as rpl_malloc. */
  7429. #undef malloc
  7430. /* Thanks to Mike Haertel and Jim Avera for this test.
  7431. Here is a matrix of mmap possibilities:
  7432. mmap private not fixed
  7433. mmap private fixed at somewhere currently unmapped
  7434. mmap private fixed at somewhere already mapped
  7435. mmap shared not fixed
  7436. mmap shared fixed at somewhere currently unmapped
  7437. mmap shared fixed at somewhere already mapped
  7438. For private mappings, we should verify that changes cannot be read()
  7439. back from the file, nor mmap's back from the file at a different
  7440. address. (There have been systems where private was not correctly
  7441. implemented like the infamous i386 svr4.0, and systems where the
  7442. VM page cache was not coherent with the file system buffer cache
  7443. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7444. For shared mappings, we should conversely verify that changes get
  7445. propagated back to all the places they're supposed to be.
  7446. Grep wants private fixed already mapped.
  7447. The main things grep needs to know about mmap are:
  7448. * does it exist and is it safe to write into the mmap'd area
  7449. * how to use it (BSD variants) */
  7450. #include <fcntl.h>
  7451. #include <sys/mman.h>
  7452. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7453. char *malloc ();
  7454. #endif
  7455. /* This mess was copied from the GNU getpagesize.h. */
  7456. #ifndef HAVE_GETPAGESIZE
  7457. # ifdef _SC_PAGESIZE
  7458. # define getpagesize() sysconf(_SC_PAGESIZE)
  7459. # else /* no _SC_PAGESIZE */
  7460. # ifdef HAVE_SYS_PARAM_H
  7461. # include <sys/param.h>
  7462. # ifdef EXEC_PAGESIZE
  7463. # define getpagesize() EXEC_PAGESIZE
  7464. # else /* no EXEC_PAGESIZE */
  7465. # ifdef NBPG
  7466. # define getpagesize() NBPG * CLSIZE
  7467. # ifndef CLSIZE
  7468. # define CLSIZE 1
  7469. # endif /* no CLSIZE */
  7470. # else /* no NBPG */
  7471. # ifdef NBPC
  7472. # define getpagesize() NBPC
  7473. # else /* no NBPC */
  7474. # ifdef PAGESIZE
  7475. # define getpagesize() PAGESIZE
  7476. # endif /* PAGESIZE */
  7477. # endif /* no NBPC */
  7478. # endif /* no NBPG */
  7479. # endif /* no EXEC_PAGESIZE */
  7480. # else /* no HAVE_SYS_PARAM_H */
  7481. # define getpagesize() 8192 /* punt totally */
  7482. # endif /* no HAVE_SYS_PARAM_H */
  7483. # endif /* no _SC_PAGESIZE */
  7484. #endif /* no HAVE_GETPAGESIZE */
  7485. int
  7486. main ()
  7487. {
  7488. char *data, *data2, *data3;
  7489. const char *cdata2;
  7490. int i, pagesize;
  7491. int fd, fd2;
  7492. pagesize = getpagesize ();
  7493. /* First, make a file with some known garbage in it. */
  7494. data = (char *) malloc (pagesize);
  7495. if (!data)
  7496. return 1;
  7497. for (i = 0; i < pagesize; ++i)
  7498. *(data + i) = rand ();
  7499. umask (0);
  7500. fd = creat ("conftest.mmap", 0600);
  7501. if (fd < 0)
  7502. return 2;
  7503. if (write (fd, data, pagesize) != pagesize)
  7504. return 3;
  7505. close (fd);
  7506. /* Next, check that the tail of a page is zero-filled. File must have
  7507. non-zero length, otherwise we risk SIGBUS for entire page. */
  7508. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7509. if (fd2 < 0)
  7510. return 4;
  7511. cdata2 = "";
  7512. if (write (fd2, cdata2, 1) != 1)
  7513. return 5;
  7514. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7515. if (data2 == MAP_FAILED)
  7516. return 6;
  7517. for (i = 0; i < pagesize; ++i)
  7518. if (*(data2 + i))
  7519. return 7;
  7520. close (fd2);
  7521. if (munmap (data2, pagesize))
  7522. return 8;
  7523. /* Next, try to mmap the file at a fixed address which already has
  7524. something else allocated at it. If we can, also make sure that
  7525. we see the same garbage. */
  7526. fd = open ("conftest.mmap", O_RDWR);
  7527. if (fd < 0)
  7528. return 9;
  7529. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7530. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7531. return 10;
  7532. for (i = 0; i < pagesize; ++i)
  7533. if (*(data + i) != *(data2 + i))
  7534. return 11;
  7535. /* Finally, make sure that changes to the mapped area do not
  7536. percolate back to the file as seen by read(). (This is a bug on
  7537. some variants of i386 svr4.0.) */
  7538. for (i = 0; i < pagesize; ++i)
  7539. *(data2 + i) = *(data2 + i) + 1;
  7540. data3 = (char *) malloc (pagesize);
  7541. if (!data3)
  7542. return 12;
  7543. if (read (fd, data3, pagesize) != pagesize)
  7544. return 13;
  7545. for (i = 0; i < pagesize; ++i)
  7546. if (*(data + i) != *(data3 + i))
  7547. return 14;
  7548. close (fd);
  7549. return 0;
  7550. }
  7551. _ACEOF
  7552. if ac_fn_cxx_try_run "$LINENO"; then :
  7553. ac_cv_func_mmap_fixed_mapped=yes
  7554. else
  7555. ac_cv_func_mmap_fixed_mapped=no
  7556. fi
  7557. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7558. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7559. fi
  7560. fi
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7562. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7563. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7564. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7565. fi
  7566. rm -f conftest.mmap conftest.txt
  7567. for ac_header in stdlib.h
  7568. do :
  7569. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7570. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7571. cat >>build/confdefs.h <<_ACEOF
  7572. #define HAVE_STDLIB_H 1
  7573. _ACEOF
  7574. fi
  7575. done
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  7577. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  7578. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  7579. $as_echo_n "(cached) " >&6
  7580. else
  7581. if test "$cross_compiling" = yes; then :
  7582. ac_cv_func_realloc_0_nonnull=no
  7583. else
  7584. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7585. /* end build/confdefs.h. */
  7586. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7587. # include <stdlib.h>
  7588. #else
  7589. char *realloc ();
  7590. #endif
  7591. int
  7592. main ()
  7593. {
  7594. return ! realloc (0, 0);
  7595. ;
  7596. return 0;
  7597. }
  7598. _ACEOF
  7599. if ac_fn_cxx_try_run "$LINENO"; then :
  7600. ac_cv_func_realloc_0_nonnull=yes
  7601. else
  7602. ac_cv_func_realloc_0_nonnull=no
  7603. fi
  7604. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7605. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7606. fi
  7607. fi
  7608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  7609. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  7610. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  7611. $as_echo "#define HAVE_REALLOC 1" >>build/confdefs.h
  7612. else
  7613. $as_echo "#define HAVE_REALLOC 0" >>build/confdefs.h
  7614. case " $LIBOBJS " in
  7615. *" realloc.$ac_objext "* ) ;;
  7616. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  7617. ;;
  7618. esac
  7619. $as_echo "#define realloc rpl_realloc" >>build/confdefs.h
  7620. fi
  7621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  7622. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  7623. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  7624. $as_echo_n "(cached) " >&6
  7625. else
  7626. if test "$cross_compiling" = yes; then :
  7627. ac_cv_func_stat_empty_string_bug=yes
  7628. else
  7629. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7630. /* end build/confdefs.h. */
  7631. $ac_includes_default
  7632. int
  7633. main ()
  7634. {
  7635. struct stat sbuf;
  7636. return stat ("", &sbuf) == 0;
  7637. ;
  7638. return 0;
  7639. }
  7640. _ACEOF
  7641. if ac_fn_cxx_try_run "$LINENO"; then :
  7642. ac_cv_func_stat_empty_string_bug=no
  7643. else
  7644. ac_cv_func_stat_empty_string_bug=yes
  7645. fi
  7646. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7647. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7648. fi
  7649. fi
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  7651. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  7652. if test $ac_cv_func_stat_empty_string_bug = yes; then
  7653. case " $LIBOBJS " in
  7654. *" stat.$ac_objext "* ) ;;
  7655. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  7656. ;;
  7657. esac
  7658. cat >>build/confdefs.h <<_ACEOF
  7659. #define HAVE_STAT_EMPTY_STRING_BUG 1
  7660. _ACEOF
  7661. fi
  7662. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7663. #include <sys/time.h>
  7664. #include <time.h>
  7665. "
  7666. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7667. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7668. fi
  7669. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7670. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7671. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7672. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7673. else
  7674. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7675. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7676. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7677. fi
  7678. fi
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7680. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7681. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7682. /* end build/confdefs.h. */
  7683. #include <sys/types.h>
  7684. #include <sys/time.h>
  7685. int
  7686. main ()
  7687. {
  7688. struct timespec ts1, ts2;
  7689. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7690. #ifndef timespecsub
  7691. #error missing timespecsub
  7692. #endif
  7693. timespecsub(&ts1, &ts2);
  7694. ;
  7695. return 0;
  7696. }
  7697. _ACEOF
  7698. if ac_fn_cxx_try_compile "$LINENO"; then :
  7699. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7701. $as_echo "yes" >&6; }
  7702. else
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7704. $as_echo "no" >&6; }
  7705. fi
  7706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7707. fi
  7708. for ac_func in strftime
  7709. do :
  7710. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  7711. if test "x$ac_cv_func_strftime" = xyes; then :
  7712. cat >>build/confdefs.h <<_ACEOF
  7713. #define HAVE_STRFTIME 1
  7714. _ACEOF
  7715. else
  7716. # strftime is in -lintl on SCO UNIX.
  7717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  7718. $as_echo_n "checking for strftime in -lintl... " >&6; }
  7719. if ${ac_cv_lib_intl_strftime+:} false; then :
  7720. $as_echo_n "(cached) " >&6
  7721. else
  7722. ac_check_lib_save_LIBS=$LIBS
  7723. LIBS="-lintl $LIBS"
  7724. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7725. /* end build/confdefs.h. */
  7726. /* Override any GCC internal prototype to avoid an error.
  7727. Use char because int might match the return type of a GCC
  7728. builtin and then its argument prototype would still apply. */
  7729. #ifdef __cplusplus
  7730. extern "C"
  7731. #endif
  7732. char strftime ();
  7733. int
  7734. main ()
  7735. {
  7736. return strftime ();
  7737. ;
  7738. return 0;
  7739. }
  7740. _ACEOF
  7741. if ac_fn_cxx_try_link "$LINENO"; then :
  7742. ac_cv_lib_intl_strftime=yes
  7743. else
  7744. ac_cv_lib_intl_strftime=no
  7745. fi
  7746. rm -f core conftest.err conftest.$ac_objext \
  7747. conftest$ac_exeext conftest.$ac_ext
  7748. LIBS=$ac_check_lib_save_LIBS
  7749. fi
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  7751. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  7752. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  7753. $as_echo "#define HAVE_STRFTIME 1" >>build/confdefs.h
  7754. LIBS="-lintl $LIBS"
  7755. fi
  7756. fi
  7757. done
  7758. #checkpoint
  7759. cat >confcache <<\_ACEOF
  7760. # This file is a shell script that caches the results of configure
  7761. # tests run on this system so they can be shared between configure
  7762. # scripts and configure runs, see configure's option --config-cache.
  7763. # It is not useful on other systems. If it contains results you don't
  7764. # want to keep, you may remove or edit it.
  7765. #
  7766. # build/config.status only pays attention to the cache file if you give it
  7767. # the --recheck option to rerun configure.
  7768. #
  7769. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7770. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7771. # following values.
  7772. _ACEOF
  7773. # The following way of writing the cache mishandles newlines in values,
  7774. # but we know of no workaround that is simple, portable, and efficient.
  7775. # So, we kill variables containing newlines.
  7776. # Ultrix sh set writes to stderr and can't be redirected directly,
  7777. # and sets the high bit in the cache file unless we assign to the vars.
  7778. (
  7779. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7780. eval ac_val=\$$ac_var
  7781. case $ac_val in #(
  7782. *${as_nl}*)
  7783. case $ac_var in #(
  7784. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7785. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7786. esac
  7787. case $ac_var in #(
  7788. _ | IFS | as_nl) ;; #(
  7789. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7790. *) { eval $ac_var=; unset $ac_var;} ;;
  7791. esac ;;
  7792. esac
  7793. done
  7794. (set) 2>&1 |
  7795. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7796. *${as_nl}ac_space=\ *)
  7797. # `set' does not quote correctly, so add quotes: double-quote
  7798. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7799. sed -n \
  7800. "s/'/'\\\\''/g;
  7801. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7802. ;; #(
  7803. *)
  7804. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7805. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7806. ;;
  7807. esac |
  7808. sort
  7809. ) |
  7810. sed '
  7811. /^ac_cv_env_/b end
  7812. t clear
  7813. :clear
  7814. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7815. t end
  7816. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7817. :end' >>confcache
  7818. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7819. if test -w "$cache_file"; then
  7820. if test "x$cache_file" != "x/dev/null"; then
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7822. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7823. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7824. cat confcache >"$cache_file"
  7825. else
  7826. case $cache_file in #(
  7827. */* | ?:*)
  7828. mv -f confcache "$cache_file"$$ &&
  7829. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7830. *)
  7831. mv -f confcache "$cache_file" ;;
  7832. esac
  7833. fi
  7834. fi
  7835. else
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7837. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7838. fi
  7839. fi
  7840. rm -f confcache
  7841. for ac_func in clock fsync getrusage isascii getpassphrase posix_madvise madvise
  7842. do :
  7843. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7844. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7845. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7846. cat >>build/confdefs.h <<_ACEOF
  7847. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7848. _ACEOF
  7849. fi
  7850. done
  7851. for ac_func in memcpy memmem memset random rename snprintf srandom gettime
  7852. do :
  7853. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7854. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7855. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7856. cat >>build/confdefs.h <<_ACEOF
  7857. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7858. _ACEOF
  7859. fi
  7860. done
  7861. #checkpoint
  7862. cat >confcache <<\_ACEOF
  7863. # This file is a shell script that caches the results of configure
  7864. # tests run on this system so they can be shared between configure
  7865. # scripts and configure runs, see configure's option --config-cache.
  7866. # It is not useful on other systems. If it contains results you don't
  7867. # want to keep, you may remove or edit it.
  7868. #
  7869. # build/config.status only pays attention to the cache file if you give it
  7870. # the --recheck option to rerun configure.
  7871. #
  7872. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7873. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7874. # following values.
  7875. _ACEOF
  7876. # The following way of writing the cache mishandles newlines in values,
  7877. # but we know of no workaround that is simple, portable, and efficient.
  7878. # So, we kill variables containing newlines.
  7879. # Ultrix sh set writes to stderr and can't be redirected directly,
  7880. # and sets the high bit in the cache file unless we assign to the vars.
  7881. (
  7882. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7883. eval ac_val=\$$ac_var
  7884. case $ac_val in #(
  7885. *${as_nl}*)
  7886. case $ac_var in #(
  7887. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7888. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7889. esac
  7890. case $ac_var in #(
  7891. _ | IFS | as_nl) ;; #(
  7892. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7893. *) { eval $ac_var=; unset $ac_var;} ;;
  7894. esac ;;
  7895. esac
  7896. done
  7897. (set) 2>&1 |
  7898. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7899. *${as_nl}ac_space=\ *)
  7900. # `set' does not quote correctly, so add quotes: double-quote
  7901. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7902. sed -n \
  7903. "s/'/'\\\\''/g;
  7904. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7905. ;; #(
  7906. *)
  7907. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7908. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7909. ;;
  7910. esac |
  7911. sort
  7912. ) |
  7913. sed '
  7914. /^ac_cv_env_/b end
  7915. t clear
  7916. :clear
  7917. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7918. t end
  7919. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7920. :end' >>confcache
  7921. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7922. if test -w "$cache_file"; then
  7923. if test "x$cache_file" != "x/dev/null"; then
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7925. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7926. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7927. cat confcache >"$cache_file"
  7928. else
  7929. case $cache_file in #(
  7930. */* | ?:*)
  7931. mv -f confcache "$cache_file"$$ &&
  7932. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7933. *)
  7934. mv -f confcache "$cache_file" ;;
  7935. esac
  7936. fi
  7937. fi
  7938. else
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7940. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7941. fi
  7942. fi
  7943. rm -f confcache
  7944. for ac_func in strcasecmp strncasecmp vsnprintf inet_ntop
  7945. do :
  7946. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7947. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7948. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7949. cat >>build/confdefs.h <<_ACEOF
  7950. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7951. _ACEOF
  7952. fi
  7953. done
  7954. #autoscan suggested this....
  7955. #These are recommended by autoscan, but no code supports it currently
  7956. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7957. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7958. for ac_func in vsprintf
  7959. do :
  7960. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7961. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7962. cat >>build/confdefs.h <<_ACEOF
  7963. #define HAVE_VSPRINTF 1
  7964. _ACEOF
  7965. fi
  7966. done
  7967. if test "$ac_cv_func_vsprintf" = "no"
  7968. then
  7969. cat << 'EOF' >&2
  7970. configure: error:
  7971. Your system does not have the sprintf/vsprintf libraries.
  7972. These are required to compile almost anything. Sorry.
  7973. EOF
  7974. exit 1
  7975. fi
  7976. for ac_func in uname
  7977. do :
  7978. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7979. if test "x$ac_cv_func_uname" = xyes; then :
  7980. cat >>build/confdefs.h <<_ACEOF
  7981. #define HAVE_UNAME 1
  7982. _ACEOF
  7983. fi
  7984. done
  7985. if test "$ac_cv_func_uname" = "no"
  7986. then
  7987. cat << 'EOF' >&2
  7988. configure: error:
  7989. Your system does not have the uname() function.
  7990. This is required for the botpack.
  7991. EOF
  7992. exit 1
  7993. fi
  7994. # Make sure we have stdc headers, since we can't compile without them
  7995. if test "$ac_cv_header_stdc" = "no"
  7996. then
  7997. cat << 'EOF' >&2
  7998. configure: error:
  7999. Your system must support ANSI C Header files.
  8000. These are required for the language support. Sorry.
  8001. EOF
  8002. exit 1
  8003. fi
  8004. #checkpoint
  8005. cat >confcache <<\_ACEOF
  8006. # This file is a shell script that caches the results of configure
  8007. # tests run on this system so they can be shared between configure
  8008. # scripts and configure runs, see configure's option --config-cache.
  8009. # It is not useful on other systems. If it contains results you don't
  8010. # want to keep, you may remove or edit it.
  8011. #
  8012. # build/config.status only pays attention to the cache file if you give it
  8013. # the --recheck option to rerun configure.
  8014. #
  8015. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8016. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8017. # following values.
  8018. _ACEOF
  8019. # The following way of writing the cache mishandles newlines in values,
  8020. # but we know of no workaround that is simple, portable, and efficient.
  8021. # So, we kill variables containing newlines.
  8022. # Ultrix sh set writes to stderr and can't be redirected directly,
  8023. # and sets the high bit in the cache file unless we assign to the vars.
  8024. (
  8025. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8026. eval ac_val=\$$ac_var
  8027. case $ac_val in #(
  8028. *${as_nl}*)
  8029. case $ac_var in #(
  8030. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8031. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8032. esac
  8033. case $ac_var in #(
  8034. _ | IFS | as_nl) ;; #(
  8035. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8036. *) { eval $ac_var=; unset $ac_var;} ;;
  8037. esac ;;
  8038. esac
  8039. done
  8040. (set) 2>&1 |
  8041. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8042. *${as_nl}ac_space=\ *)
  8043. # `set' does not quote correctly, so add quotes: double-quote
  8044. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8045. sed -n \
  8046. "s/'/'\\\\''/g;
  8047. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8048. ;; #(
  8049. *)
  8050. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8051. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8052. ;;
  8053. esac |
  8054. sort
  8055. ) |
  8056. sed '
  8057. /^ac_cv_env_/b end
  8058. t clear
  8059. :clear
  8060. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8061. t end
  8062. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8063. :end' >>confcache
  8064. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8065. if test -w "$cache_file"; then
  8066. if test "x$cache_file" != "x/dev/null"; then
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8068. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8069. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8070. cat confcache >"$cache_file"
  8071. else
  8072. case $cache_file in #(
  8073. */* | ?:*)
  8074. mv -f confcache "$cache_file"$$ &&
  8075. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8076. *)
  8077. mv -f confcache "$cache_file" ;;
  8078. esac
  8079. fi
  8080. fi
  8081. else
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8083. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8084. fi
  8085. fi
  8086. rm -f confcache
  8087. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  8088. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  8089. cat >>build/confdefs.h <<_ACEOF
  8090. #define EGG_VERSION $version_num
  8091. _ACEOF
  8092. #FIND_WRAPS
  8093. files="src/Makefile.in"
  8094. for mf in $files; do
  8095. # Strip MF so we end up with the name of the file.
  8096. mf=${mf%%:*}
  8097. dirmf=${mf%/*}
  8098. rm -f "$dirmf/.deps/includes"
  8099. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  8100. for file in `sed -n -e '
  8101. /^OBJS = .*\\\\$/ {
  8102. s/^OBJS = //
  8103. :loop
  8104. s/\\\\$//
  8105. p
  8106. n
  8107. /\\\\$/ b loop
  8108. p
  8109. }
  8110. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  8111. do
  8112. dirpart="${dirmf}/${file}"
  8113. dirpart="${dirpart%/*}"
  8114. if [ "${dirpart}" != "${dirmf}" ]; then
  8115. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  8116. fi
  8117. file="${file##*/}"
  8118. suffix=${file##*.}
  8119. base=${file%%.*}
  8120. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  8121. if ! test -f "$dirpart/.deps/$base.Po"; then
  8122. echo '# dummy' > "$dirpart/.deps/$base.Po"
  8123. #Remove the .o file, because it needs to be recompiled for its dependancies.
  8124. if test -f "$dirpart/${base}.${suffix}"; then
  8125. rm -f "$dirpart/${base}.${suffix}"
  8126. fi
  8127. fi
  8128. echo "include .${dirpart#${dirmf}}/.deps/$base.Po" >> "${dirmf}/.deps/includes"
  8129. done
  8130. done
  8131. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  8132. GIT_REQUIRED=1
  8133. if [ "$GIT_REQUIRED" = "1" ]; then
  8134. if ! test -d .git; then
  8135. echo ""
  8136. echo ""
  8137. echo "You have downloaded a GIT version of wraith."
  8138. echo "Either 'git clone' from a git repository or download a source tarball"
  8139. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  8140. echo ""
  8141. echo ""
  8142. exit 1
  8143. fi
  8144. fi
  8145. if test -d .git; then
  8146. git submodule init
  8147. git submodule update
  8148. git submodule foreach --recursive git clean -fdx
  8149. # Restore as it may have been removed by an older 'make distclean'
  8150. if ! test -f src/response.h; then
  8151. git checkout src/response.h
  8152. fi
  8153. fi
  8154. if [ -f lib/bdlib/configure ]; then
  8155. subdirs="$subdirs lib/bdlib"
  8156. fi
  8157. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  8158. subdirs="$subdirs lib/libelf"
  8159. fi
  8160. cat >confcache <<\_ACEOF
  8161. # This file is a shell script that caches the results of configure
  8162. # tests run on this system so they can be shared between configure
  8163. # scripts and configure runs, see configure's option --config-cache.
  8164. # It is not useful on other systems. If it contains results you don't
  8165. # want to keep, you may remove or edit it.
  8166. #
  8167. # build/config.status only pays attention to the cache file if you give it
  8168. # the --recheck option to rerun configure.
  8169. #
  8170. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8171. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8172. # following values.
  8173. _ACEOF
  8174. # The following way of writing the cache mishandles newlines in values,
  8175. # but we know of no workaround that is simple, portable, and efficient.
  8176. # So, we kill variables containing newlines.
  8177. # Ultrix sh set writes to stderr and can't be redirected directly,
  8178. # and sets the high bit in the cache file unless we assign to the vars.
  8179. (
  8180. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8181. eval ac_val=\$$ac_var
  8182. case $ac_val in #(
  8183. *${as_nl}*)
  8184. case $ac_var in #(
  8185. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8186. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8187. esac
  8188. case $ac_var in #(
  8189. _ | IFS | as_nl) ;; #(
  8190. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8191. *) { eval $ac_var=; unset $ac_var;} ;;
  8192. esac ;;
  8193. esac
  8194. done
  8195. (set) 2>&1 |
  8196. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8197. *${as_nl}ac_space=\ *)
  8198. # `set' does not quote correctly, so add quotes: double-quote
  8199. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8200. sed -n \
  8201. "s/'/'\\\\''/g;
  8202. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8203. ;; #(
  8204. *)
  8205. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8206. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8207. ;;
  8208. esac |
  8209. sort
  8210. ) |
  8211. sed '
  8212. /^ac_cv_env_/b end
  8213. t clear
  8214. :clear
  8215. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8216. t end
  8217. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8218. :end' >>confcache
  8219. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8220. if test -w "$cache_file"; then
  8221. if test "x$cache_file" != "x/dev/null"; then
  8222. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8223. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8224. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8225. cat confcache >"$cache_file"
  8226. else
  8227. case $cache_file in #(
  8228. */* | ?:*)
  8229. mv -f confcache "$cache_file"$$ &&
  8230. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8231. *)
  8232. mv -f confcache "$cache_file" ;;
  8233. esac
  8234. fi
  8235. fi
  8236. else
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8238. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8239. fi
  8240. fi
  8241. rm -f confcache
  8242. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8243. # Let make expand exec_prefix.
  8244. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8245. DEFS=-DHAVE_CONFIG_H
  8246. ac_libobjs=
  8247. ac_ltlibobjs=
  8248. U=
  8249. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8250. # 1. Remove the extension, and $U if already installed.
  8251. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8252. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8253. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8254. # will be set to the directory where LIBOBJS objects are built.
  8255. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8256. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8257. done
  8258. LIBOBJS=$ac_libobjs
  8259. LTLIBOBJS=$ac_ltlibobjs
  8260. : "${CONFIG_STATUS=./build/config.status}"
  8261. ac_write_fail=0
  8262. ac_clean_files_save=$ac_clean_files
  8263. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8264. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8265. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8266. as_write_fail=0
  8267. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8268. #! $SHELL
  8269. # Generated by $as_me.
  8270. # Run this file to recreate the current configuration.
  8271. # Compiler output produced by configure, useful for debugging
  8272. # configure, is in build/config.log if it exists.
  8273. debug=false
  8274. ac_cs_recheck=false
  8275. ac_cs_silent=false
  8276. SHELL=\${CONFIG_SHELL-$SHELL}
  8277. export SHELL
  8278. _ASEOF
  8279. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8280. ## -------------------- ##
  8281. ## M4sh Initialization. ##
  8282. ## -------------------- ##
  8283. # Be more Bourne compatible
  8284. DUALCASE=1; export DUALCASE # for MKS sh
  8285. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8286. emulate sh
  8287. NULLCMD=:
  8288. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8289. # is contrary to our usage. Disable this feature.
  8290. alias -g '${1+"$@"}'='"$@"'
  8291. setopt NO_GLOB_SUBST
  8292. else
  8293. case `(set -o) 2>/dev/null` in #(
  8294. *posix*) :
  8295. set -o posix ;; #(
  8296. *) :
  8297. ;;
  8298. esac
  8299. fi
  8300. as_nl='
  8301. '
  8302. export as_nl
  8303. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8304. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8305. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8306. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8307. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8308. # but without wasting forks for bash or zsh.
  8309. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8310. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8311. as_echo='print -r --'
  8312. as_echo_n='print -rn --'
  8313. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8314. as_echo='printf %s\n'
  8315. as_echo_n='printf %s'
  8316. else
  8317. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8318. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8319. as_echo_n='/usr/ucb/echo -n'
  8320. else
  8321. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8322. as_echo_n_body='eval
  8323. arg=$1;
  8324. case $arg in #(
  8325. *"$as_nl"*)
  8326. expr "X$arg" : "X\\(.*\\)$as_nl";
  8327. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8328. esac;
  8329. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8330. '
  8331. export as_echo_n_body
  8332. as_echo_n='sh -c $as_echo_n_body as_echo'
  8333. fi
  8334. export as_echo_body
  8335. as_echo='sh -c $as_echo_body as_echo'
  8336. fi
  8337. # The user is always right.
  8338. if test "${PATH_SEPARATOR+set}" != set; then
  8339. PATH_SEPARATOR=:
  8340. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8341. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8342. PATH_SEPARATOR=';'
  8343. }
  8344. fi
  8345. # IFS
  8346. # We need space, tab and new line, in precisely that order. Quoting is
  8347. # there to prevent editors from complaining about space-tab.
  8348. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8349. # splitting by setting IFS to empty value.)
  8350. IFS=" "" $as_nl"
  8351. # Find who we are. Look in the path if we contain no directory separator.
  8352. as_myself=
  8353. case $0 in #((
  8354. *[\\/]* ) as_myself=$0 ;;
  8355. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8356. for as_dir in $PATH
  8357. do
  8358. IFS=$as_save_IFS
  8359. test -z "$as_dir" && as_dir=.
  8360. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8361. done
  8362. IFS=$as_save_IFS
  8363. ;;
  8364. esac
  8365. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8366. # in which case we are not to be found in the path.
  8367. if test "x$as_myself" = x; then
  8368. as_myself=$0
  8369. fi
  8370. if test ! -f "$as_myself"; then
  8371. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8372. exit 1
  8373. fi
  8374. # Unset variables that we do not need and which cause bugs (e.g. in
  8375. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8376. # suppresses any "Segmentation fault" message there. '((' could
  8377. # trigger a bug in pdksh 5.2.14.
  8378. for as_var in BASH_ENV ENV MAIL MAILPATH
  8379. do eval test x\${$as_var+set} = xset \
  8380. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8381. done
  8382. PS1='$ '
  8383. PS2='> '
  8384. PS4='+ '
  8385. # NLS nuisances.
  8386. LC_ALL=C
  8387. export LC_ALL
  8388. LANGUAGE=C
  8389. export LANGUAGE
  8390. # CDPATH.
  8391. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8392. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8393. # ----------------------------------------
  8394. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8395. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8396. # script with STATUS, using 1 if that was 0.
  8397. as_fn_error ()
  8398. {
  8399. as_status=$1; test $as_status -eq 0 && as_status=1
  8400. if test "$4"; then
  8401. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8402. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8403. fi
  8404. $as_echo "$as_me: error: $2" >&2
  8405. as_fn_exit $as_status
  8406. } # as_fn_error
  8407. # as_fn_set_status STATUS
  8408. # -----------------------
  8409. # Set $? to STATUS, without forking.
  8410. as_fn_set_status ()
  8411. {
  8412. return $1
  8413. } # as_fn_set_status
  8414. # as_fn_exit STATUS
  8415. # -----------------
  8416. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8417. as_fn_exit ()
  8418. {
  8419. set +e
  8420. as_fn_set_status $1
  8421. exit $1
  8422. } # as_fn_exit
  8423. # as_fn_unset VAR
  8424. # ---------------
  8425. # Portably unset VAR.
  8426. as_fn_unset ()
  8427. {
  8428. { eval $1=; unset $1;}
  8429. }
  8430. as_unset=as_fn_unset
  8431. # as_fn_append VAR VALUE
  8432. # ----------------------
  8433. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8434. # advantage of any shell optimizations that allow amortized linear growth over
  8435. # repeated appends, instead of the typical quadratic growth present in naive
  8436. # implementations.
  8437. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8438. eval 'as_fn_append ()
  8439. {
  8440. eval $1+=\$2
  8441. }'
  8442. else
  8443. as_fn_append ()
  8444. {
  8445. eval $1=\$$1\$2
  8446. }
  8447. fi # as_fn_append
  8448. # as_fn_arith ARG...
  8449. # ------------------
  8450. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8451. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8452. # must be portable across $(()) and expr.
  8453. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8454. eval 'as_fn_arith ()
  8455. {
  8456. as_val=$(( $* ))
  8457. }'
  8458. else
  8459. as_fn_arith ()
  8460. {
  8461. as_val=`expr "$@" || test $? -eq 1`
  8462. }
  8463. fi # as_fn_arith
  8464. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8465. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8466. as_expr=expr
  8467. else
  8468. as_expr=false
  8469. fi
  8470. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8471. as_basename=basename
  8472. else
  8473. as_basename=false
  8474. fi
  8475. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8476. as_dirname=dirname
  8477. else
  8478. as_dirname=false
  8479. fi
  8480. as_me=`$as_basename -- "$0" ||
  8481. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8482. X"$0" : 'X\(//\)$' \| \
  8483. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8484. $as_echo X/"$0" |
  8485. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8486. s//\1/
  8487. q
  8488. }
  8489. /^X\/\(\/\/\)$/{
  8490. s//\1/
  8491. q
  8492. }
  8493. /^X\/\(\/\).*/{
  8494. s//\1/
  8495. q
  8496. }
  8497. s/.*/./; q'`
  8498. # Avoid depending upon Character Ranges.
  8499. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8500. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8501. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8502. as_cr_digits='0123456789'
  8503. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8504. ECHO_C= ECHO_N= ECHO_T=
  8505. case `echo -n x` in #(((((
  8506. -n*)
  8507. case `echo 'xy\c'` in
  8508. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8509. xy) ECHO_C='\c';;
  8510. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8511. ECHO_T=' ';;
  8512. esac;;
  8513. *)
  8514. ECHO_N='-n';;
  8515. esac
  8516. rm -f conf$$ conf$$.exe conf$$.file
  8517. if test -d conf$$.dir; then
  8518. rm -f conf$$.dir/conf$$.file
  8519. else
  8520. rm -f conf$$.dir
  8521. mkdir conf$$.dir 2>/dev/null
  8522. fi
  8523. if (echo >conf$$.file) 2>/dev/null; then
  8524. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8525. as_ln_s='ln -s'
  8526. # ... but there are two gotchas:
  8527. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8528. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8529. # In both cases, we have to default to `cp -pR'.
  8530. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8531. as_ln_s='cp -pR'
  8532. elif ln conf$$.file conf$$ 2>/dev/null; then
  8533. as_ln_s=ln
  8534. else
  8535. as_ln_s='cp -pR'
  8536. fi
  8537. else
  8538. as_ln_s='cp -pR'
  8539. fi
  8540. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8541. rmdir conf$$.dir 2>/dev/null
  8542. # as_fn_mkdir_p
  8543. # -------------
  8544. # Create "$as_dir" as a directory, including parents if necessary.
  8545. as_fn_mkdir_p ()
  8546. {
  8547. case $as_dir in #(
  8548. -*) as_dir=./$as_dir;;
  8549. esac
  8550. test -d "$as_dir" || eval $as_mkdir_p || {
  8551. as_dirs=
  8552. while :; do
  8553. case $as_dir in #(
  8554. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8555. *) as_qdir=$as_dir;;
  8556. esac
  8557. as_dirs="'$as_qdir' $as_dirs"
  8558. as_dir=`$as_dirname -- "$as_dir" ||
  8559. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8560. X"$as_dir" : 'X\(//\)[^/]' \| \
  8561. X"$as_dir" : 'X\(//\)$' \| \
  8562. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8563. $as_echo X"$as_dir" |
  8564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8565. s//\1/
  8566. q
  8567. }
  8568. /^X\(\/\/\)[^/].*/{
  8569. s//\1/
  8570. q
  8571. }
  8572. /^X\(\/\/\)$/{
  8573. s//\1/
  8574. q
  8575. }
  8576. /^X\(\/\).*/{
  8577. s//\1/
  8578. q
  8579. }
  8580. s/.*/./; q'`
  8581. test -d "$as_dir" && break
  8582. done
  8583. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8584. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8585. } # as_fn_mkdir_p
  8586. if mkdir -p . 2>/dev/null; then
  8587. as_mkdir_p='mkdir -p "$as_dir"'
  8588. else
  8589. test -d ./-p && rmdir ./-p
  8590. as_mkdir_p=false
  8591. fi
  8592. # as_fn_executable_p FILE
  8593. # -----------------------
  8594. # Test if FILE is an executable regular file.
  8595. as_fn_executable_p ()
  8596. {
  8597. test -f "$1" && test -x "$1"
  8598. } # as_fn_executable_p
  8599. as_test_x='test -x'
  8600. as_executable_p=as_fn_executable_p
  8601. # Sed expression to map a string onto a valid CPP name.
  8602. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8603. # Sed expression to map a string onto a valid variable name.
  8604. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8605. exec 6>&1
  8606. ## ----------------------------------- ##
  8607. ## Main body of $CONFIG_STATUS script. ##
  8608. ## ----------------------------------- ##
  8609. _ASEOF
  8610. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8611. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8612. # Save the log message, to keep $0 and so on meaningful, and to
  8613. # report actual input values of CONFIG_FILES etc. instead of their
  8614. # values after options handling.
  8615. ac_log="
  8616. This file was extended by $as_me, which was
  8617. generated by GNU Autoconf 2.69. Invocation command line was
  8618. CONFIG_FILES = $CONFIG_FILES
  8619. CONFIG_HEADERS = $CONFIG_HEADERS
  8620. CONFIG_LINKS = $CONFIG_LINKS
  8621. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8622. $ $0 $@
  8623. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8624. "
  8625. _ACEOF
  8626. case $ac_config_files in *"
  8627. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8628. esac
  8629. case $ac_config_headers in *"
  8630. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8631. esac
  8632. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8633. # Files that build/config.status was made for.
  8634. config_files="$ac_config_files"
  8635. config_headers="$ac_config_headers"
  8636. _ACEOF
  8637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8638. ac_cs_usage="\
  8639. \`$as_me' instantiates files and other configuration actions
  8640. from templates according to the current configuration. Unless the files
  8641. and actions are specified as TAGs, all are instantiated by default.
  8642. Usage: $0 [OPTION]... [TAG]...
  8643. -h, --help print this help, then exit
  8644. -V, --version print version number and configuration settings, then exit
  8645. --config print configuration, then exit
  8646. -q, --quiet, --silent
  8647. do not print progress messages
  8648. -d, --debug don't remove temporary files
  8649. --recheck update $as_me by reconfiguring in the same conditions
  8650. --file=FILE[:TEMPLATE]
  8651. instantiate the configuration file FILE
  8652. --header=FILE[:TEMPLATE]
  8653. instantiate the configuration header FILE
  8654. Configuration files:
  8655. $config_files
  8656. Configuration headers:
  8657. $config_headers
  8658. Report bugs to the package provider."
  8659. _ACEOF
  8660. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8661. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8662. ac_cs_version="\\
  8663. build/config.status
  8664. configured by $0, generated by GNU Autoconf 2.69,
  8665. with options \\"\$ac_cs_config\\"
  8666. Copyright (C) 2012 Free Software Foundation, Inc.
  8667. This build/config.status script is free software; the Free Software Foundation
  8668. gives unlimited permission to copy, distribute and modify it."
  8669. ac_pwd='$ac_pwd'
  8670. srcdir='$srcdir'
  8671. AWK='$AWK'
  8672. test -n "\$AWK" || AWK=awk
  8673. _ACEOF
  8674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8675. # The default lists apply if the user does not specify any file.
  8676. ac_need_defaults=:
  8677. while test $# != 0
  8678. do
  8679. case $1 in
  8680. --*=?*)
  8681. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8682. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8683. ac_shift=:
  8684. ;;
  8685. --*=)
  8686. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8687. ac_optarg=
  8688. ac_shift=:
  8689. ;;
  8690. *)
  8691. ac_option=$1
  8692. ac_optarg=$2
  8693. ac_shift=shift
  8694. ;;
  8695. esac
  8696. case $ac_option in
  8697. # Handling of the options.
  8698. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8699. ac_cs_recheck=: ;;
  8700. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8701. $as_echo "$ac_cs_version"; exit ;;
  8702. --config | --confi | --conf | --con | --co | --c )
  8703. $as_echo "$ac_cs_config"; exit ;;
  8704. --debug | --debu | --deb | --de | --d | -d )
  8705. debug=: ;;
  8706. --file | --fil | --fi | --f )
  8707. $ac_shift
  8708. case $ac_optarg in
  8709. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8710. '') as_fn_error $? "missing file argument" ;;
  8711. esac
  8712. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8713. ac_need_defaults=false;;
  8714. --header | --heade | --head | --hea )
  8715. $ac_shift
  8716. case $ac_optarg in
  8717. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8718. esac
  8719. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8720. ac_need_defaults=false;;
  8721. --he | --h)
  8722. # Conflict between --help and --header
  8723. as_fn_error $? "ambiguous option: \`$1'
  8724. Try \`$0 --help' for more information.";;
  8725. --help | --hel | -h )
  8726. $as_echo "$ac_cs_usage"; exit ;;
  8727. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8728. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8729. ac_cs_silent=: ;;
  8730. # This is an error.
  8731. -*) as_fn_error $? "unrecognized option: \`$1'
  8732. Try \`$0 --help' for more information." ;;
  8733. *) as_fn_append ac_config_targets " $1"
  8734. ac_need_defaults=false ;;
  8735. esac
  8736. shift
  8737. done
  8738. ac_configure_extra_args=
  8739. if $ac_cs_silent; then
  8740. exec 6>/dev/null
  8741. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8742. fi
  8743. _ACEOF
  8744. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8745. if \$ac_cs_recheck; then
  8746. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8747. shift
  8748. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8749. CONFIG_SHELL='$SHELL'
  8750. export CONFIG_SHELL
  8751. exec "\$@"
  8752. fi
  8753. _ACEOF
  8754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8755. exec 5>>build/config.log
  8756. {
  8757. echo
  8758. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8759. ## Running $as_me. ##
  8760. _ASBOX
  8761. $as_echo "$ac_log"
  8762. } >&5
  8763. _ACEOF
  8764. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8765. _ACEOF
  8766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8767. # Handling of arguments.
  8768. for ac_config_target in $ac_config_targets
  8769. do
  8770. case $ac_config_target in
  8771. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8772. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8773. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8774. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8775. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8776. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8777. esac
  8778. done
  8779. # If the user did not use the arguments to specify the items to instantiate,
  8780. # then the envvar interface is used. Set only those that are not.
  8781. # We use the long form for the default assignment because of an extremely
  8782. # bizarre bug on SunOS 4.1.3.
  8783. if $ac_need_defaults; then
  8784. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8785. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8786. fi
  8787. # Have a temporary directory for convenience. Make it in the build tree
  8788. # simply because there is no reason against having it here, and in addition,
  8789. # creating and moving files from /tmp can sometimes cause problems.
  8790. # Hook for its removal unless debugging.
  8791. # Note that there is a small window in which the directory will not be cleaned:
  8792. # after its creation but before its name has been assigned to `$tmp'.
  8793. $debug ||
  8794. {
  8795. tmp= ac_tmp=
  8796. trap 'exit_status=$?
  8797. : "${ac_tmp:=$tmp}"
  8798. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8799. ' 0
  8800. trap 'as_fn_exit 1' 1 2 13 15
  8801. }
  8802. # Create a (secure) tmp directory for tmp files.
  8803. {
  8804. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8805. test -d "$tmp"
  8806. } ||
  8807. {
  8808. tmp=./conf$$-$RANDOM
  8809. (umask 077 && mkdir "$tmp")
  8810. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8811. ac_tmp=$tmp
  8812. # Set up the scripts for CONFIG_FILES section.
  8813. # No need to generate them if there are no CONFIG_FILES.
  8814. # This happens for instance with `./build/config.status config.h'.
  8815. if test -n "$CONFIG_FILES"; then
  8816. ac_cr=`echo X | tr X '\015'`
  8817. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8818. # But we know of no other shell where ac_cr would be empty at this
  8819. # point, so we can use a bashism as a fallback.
  8820. if test "x$ac_cr" = x; then
  8821. eval ac_cr=\$\'\\r\'
  8822. fi
  8823. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8824. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8825. ac_cs_awk_cr='\\r'
  8826. else
  8827. ac_cs_awk_cr=$ac_cr
  8828. fi
  8829. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8830. _ACEOF
  8831. {
  8832. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8833. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8834. echo "_ACEOF"
  8835. } >conf$$subs.sh ||
  8836. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8837. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8838. ac_delim='%!_!# '
  8839. for ac_last_try in false false false false false :; do
  8840. . ./conf$$subs.sh ||
  8841. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8842. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8843. if test $ac_delim_n = $ac_delim_num; then
  8844. break
  8845. elif $ac_last_try; then
  8846. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8847. else
  8848. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8849. fi
  8850. done
  8851. rm -f conf$$subs.sh
  8852. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8853. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8854. _ACEOF
  8855. sed -n '
  8856. h
  8857. s/^/S["/; s/!.*/"]=/
  8858. p
  8859. g
  8860. s/^[^!]*!//
  8861. :repl
  8862. t repl
  8863. s/'"$ac_delim"'$//
  8864. t delim
  8865. :nl
  8866. h
  8867. s/\(.\{148\}\)..*/\1/
  8868. t more1
  8869. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8870. p
  8871. n
  8872. b repl
  8873. :more1
  8874. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8875. p
  8876. g
  8877. s/.\{148\}//
  8878. t nl
  8879. :delim
  8880. h
  8881. s/\(.\{148\}\)..*/\1/
  8882. t more2
  8883. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8884. p
  8885. b
  8886. :more2
  8887. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8888. p
  8889. g
  8890. s/.\{148\}//
  8891. t delim
  8892. ' <conf$$subs.awk | sed '
  8893. /^[^""]/{
  8894. N
  8895. s/\n//
  8896. }
  8897. ' >>$CONFIG_STATUS || ac_write_fail=1
  8898. rm -f conf$$subs.awk
  8899. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8900. _ACAWK
  8901. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8902. for (key in S) S_is_set[key] = 1
  8903. FS = ""
  8904. }
  8905. {
  8906. line = $ 0
  8907. nfields = split(line, field, "@")
  8908. substed = 0
  8909. len = length(field[1])
  8910. for (i = 2; i < nfields; i++) {
  8911. key = field[i]
  8912. keylen = length(key)
  8913. if (S_is_set[key]) {
  8914. value = S[key]
  8915. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8916. len += length(value) + length(field[++i])
  8917. substed = 1
  8918. } else
  8919. len += 1 + keylen
  8920. }
  8921. print line
  8922. }
  8923. _ACAWK
  8924. _ACEOF
  8925. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8926. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8927. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8928. else
  8929. cat
  8930. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8931. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8932. _ACEOF
  8933. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8934. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8935. # trailing colons and then remove the whole line if VPATH becomes empty
  8936. # (actually we leave an empty line to preserve line numbers).
  8937. if test "x$srcdir" = x.; then
  8938. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8939. h
  8940. s///
  8941. s/^/:/
  8942. s/[ ]*$/:/
  8943. s/:\$(srcdir):/:/g
  8944. s/:\${srcdir}:/:/g
  8945. s/:@srcdir@:/:/g
  8946. s/^:*//
  8947. s/:*$//
  8948. x
  8949. s/\(=[ ]*\).*/\1/
  8950. G
  8951. s/\n//
  8952. s/^[^=]*=[ ]*$//
  8953. }'
  8954. fi
  8955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8956. fi # test -n "$CONFIG_FILES"
  8957. # Set up the scripts for CONFIG_HEADERS section.
  8958. # No need to generate them if there are no CONFIG_HEADERS.
  8959. # This happens for instance with `./build/config.status Makefile'.
  8960. if test -n "$CONFIG_HEADERS"; then
  8961. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8962. BEGIN {
  8963. _ACEOF
  8964. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8965. # here-document in build/config.status, that substitutes the proper values into
  8966. # config.h.in to produce config.h.
  8967. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8968. # handling of long lines.
  8969. ac_delim='%!_!# '
  8970. for ac_last_try in false false :; do
  8971. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8972. if test -z "$ac_tt"; then
  8973. break
  8974. elif $ac_last_try; then
  8975. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8976. else
  8977. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8978. fi
  8979. done
  8980. # For the awk script, D is an array of macro values keyed by name,
  8981. # likewise P contains macro parameters if any. Preserve backslash
  8982. # newline sequences.
  8983. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8984. sed -n '
  8985. s/.\{148\}/&'"$ac_delim"'/g
  8986. t rset
  8987. :rset
  8988. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8989. t def
  8990. d
  8991. :def
  8992. s/\\$//
  8993. t bsnl
  8994. s/["\\]/\\&/g
  8995. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8996. D["\1"]=" \3"/p
  8997. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8998. d
  8999. :bsnl
  9000. s/["\\]/\\&/g
  9001. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9002. D["\1"]=" \3\\\\\\n"\\/p
  9003. t cont
  9004. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9005. t cont
  9006. d
  9007. :cont
  9008. n
  9009. s/.\{148\}/&'"$ac_delim"'/g
  9010. t clear
  9011. :clear
  9012. s/\\$//
  9013. t bsnlc
  9014. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9015. d
  9016. :bsnlc
  9017. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9018. b cont
  9019. ' <build/confdefs.h | sed '
  9020. s/'"$ac_delim"'/"\\\
  9021. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9022. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9023. for (key in D) D_is_set[key] = 1
  9024. FS = ""
  9025. }
  9026. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9027. line = \$ 0
  9028. split(line, arg, " ")
  9029. if (arg[1] == "#") {
  9030. defundef = arg[2]
  9031. mac1 = arg[3]
  9032. } else {
  9033. defundef = substr(arg[1], 2)
  9034. mac1 = arg[2]
  9035. }
  9036. split(mac1, mac2, "(") #)
  9037. macro = mac2[1]
  9038. prefix = substr(line, 1, index(line, defundef) - 1)
  9039. if (D_is_set[macro]) {
  9040. # Preserve the white space surrounding the "#".
  9041. print prefix "define", macro P[macro] D[macro]
  9042. next
  9043. } else {
  9044. # Replace #undef with comments. This is necessary, for example,
  9045. # in the case of _POSIX_SOURCE, which is predefined and required
  9046. # on some systems where configure will not decide to define it.
  9047. if (defundef == "undef") {
  9048. print "/*", prefix defundef, macro, "*/"
  9049. next
  9050. }
  9051. }
  9052. }
  9053. { print }
  9054. _ACAWK
  9055. _ACEOF
  9056. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9057. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9058. fi # test -n "$CONFIG_HEADERS"
  9059. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  9060. shift
  9061. for ac_tag
  9062. do
  9063. case $ac_tag in
  9064. :[FHLC]) ac_mode=$ac_tag; continue;;
  9065. esac
  9066. case $ac_mode$ac_tag in
  9067. :[FHL]*:*);;
  9068. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9069. :[FH]-) ac_tag=-:-;;
  9070. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9071. esac
  9072. ac_save_IFS=$IFS
  9073. IFS=:
  9074. set x $ac_tag
  9075. IFS=$ac_save_IFS
  9076. shift
  9077. ac_file=$1
  9078. shift
  9079. case $ac_mode in
  9080. :L) ac_source=$1;;
  9081. :[FH])
  9082. ac_file_inputs=
  9083. for ac_f
  9084. do
  9085. case $ac_f in
  9086. -) ac_f="$ac_tmp/stdin";;
  9087. *) # Look for the file first in the build tree, then in the source tree
  9088. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9089. # because $ac_f cannot contain `:'.
  9090. test -f "$ac_f" ||
  9091. case $ac_f in
  9092. [\\/$]*) false;;
  9093. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9094. esac ||
  9095. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9096. esac
  9097. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9098. as_fn_append ac_file_inputs " '$ac_f'"
  9099. done
  9100. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9101. # use $as_me), people would be surprised to read:
  9102. # /* config.h. Generated by build/config.status. */
  9103. configure_input='Generated from '`
  9104. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9105. `' by configure.'
  9106. if test x"$ac_file" != x-; then
  9107. configure_input="$ac_file. $configure_input"
  9108. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9109. $as_echo "$as_me: creating $ac_file" >&6;}
  9110. fi
  9111. # Neutralize special characters interpreted by sed in replacement strings.
  9112. case $configure_input in #(
  9113. *\&* | *\|* | *\\* )
  9114. ac_sed_conf_input=`$as_echo "$configure_input" |
  9115. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9116. *) ac_sed_conf_input=$configure_input;;
  9117. esac
  9118. case $ac_tag in
  9119. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9120. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9121. esac
  9122. ;;
  9123. esac
  9124. ac_dir=`$as_dirname -- "$ac_file" ||
  9125. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9126. X"$ac_file" : 'X\(//\)[^/]' \| \
  9127. X"$ac_file" : 'X\(//\)$' \| \
  9128. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9129. $as_echo X"$ac_file" |
  9130. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9131. s//\1/
  9132. q
  9133. }
  9134. /^X\(\/\/\)[^/].*/{
  9135. s//\1/
  9136. q
  9137. }
  9138. /^X\(\/\/\)$/{
  9139. s//\1/
  9140. q
  9141. }
  9142. /^X\(\/\).*/{
  9143. s//\1/
  9144. q
  9145. }
  9146. s/.*/./; q'`
  9147. as_dir="$ac_dir"; as_fn_mkdir_p
  9148. ac_builddir=.
  9149. case "$ac_dir" in
  9150. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9151. *)
  9152. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9153. # A ".." for each directory in $ac_dir_suffix.
  9154. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9155. case $ac_top_builddir_sub in
  9156. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9157. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9158. esac ;;
  9159. esac
  9160. ac_abs_top_builddir=$ac_pwd
  9161. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9162. # for backward compatibility:
  9163. ac_top_builddir=$ac_top_build_prefix
  9164. case $srcdir in
  9165. .) # We are building in place.
  9166. ac_srcdir=.
  9167. ac_top_srcdir=$ac_top_builddir_sub
  9168. ac_abs_top_srcdir=$ac_pwd ;;
  9169. [\\/]* | ?:[\\/]* ) # Absolute name.
  9170. ac_srcdir=$srcdir$ac_dir_suffix;
  9171. ac_top_srcdir=$srcdir
  9172. ac_abs_top_srcdir=$srcdir ;;
  9173. *) # Relative name.
  9174. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9175. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9176. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9177. esac
  9178. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9179. case $ac_mode in
  9180. :F)
  9181. #
  9182. # CONFIG_FILE
  9183. #
  9184. _ACEOF
  9185. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9186. # If the template does not know about datarootdir, expand it.
  9187. # FIXME: This hack should be removed a few years after 2.60.
  9188. ac_datarootdir_hack=; ac_datarootdir_seen=
  9189. ac_sed_dataroot='
  9190. /datarootdir/ {
  9191. p
  9192. q
  9193. }
  9194. /@datadir@/p
  9195. /@docdir@/p
  9196. /@infodir@/p
  9197. /@localedir@/p
  9198. /@mandir@/p'
  9199. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9200. *datarootdir*) ac_datarootdir_seen=yes;;
  9201. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9203. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9204. _ACEOF
  9205. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9206. ac_datarootdir_hack='
  9207. s&@datadir@&$datadir&g
  9208. s&@docdir@&$docdir&g
  9209. s&@infodir@&$infodir&g
  9210. s&@localedir@&$localedir&g
  9211. s&@mandir@&$mandir&g
  9212. s&\\\${datarootdir}&$datarootdir&g' ;;
  9213. esac
  9214. _ACEOF
  9215. # Neutralize VPATH when `$srcdir' = `.'.
  9216. # Shell code in configure.ac might set extrasub.
  9217. # FIXME: do we really want to maintain this feature?
  9218. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9219. ac_sed_extra="$ac_vpsub
  9220. $extrasub
  9221. _ACEOF
  9222. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9223. :t
  9224. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9225. s|@configure_input@|$ac_sed_conf_input|;t t
  9226. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9227. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9228. s&@srcdir@&$ac_srcdir&;t t
  9229. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9230. s&@top_srcdir@&$ac_top_srcdir&;t t
  9231. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9232. s&@builddir@&$ac_builddir&;t t
  9233. s&@abs_builddir@&$ac_abs_builddir&;t t
  9234. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9235. $ac_datarootdir_hack
  9236. "
  9237. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9238. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9239. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9240. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9241. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9242. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9244. which seems to be undefined. Please make sure it is defined" >&5
  9245. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9246. which seems to be undefined. Please make sure it is defined" >&2;}
  9247. rm -f "$ac_tmp/stdin"
  9248. case $ac_file in
  9249. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9250. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9251. esac \
  9252. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9253. ;;
  9254. :H)
  9255. #
  9256. # CONFIG_HEADER
  9257. #
  9258. if test x"$ac_file" != x-; then
  9259. {
  9260. $as_echo "/* $configure_input */" \
  9261. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9262. } >"$ac_tmp/config.h" \
  9263. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9264. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9265. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9266. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9267. else
  9268. rm -f "$ac_file"
  9269. mv "$ac_tmp/config.h" "$ac_file" \
  9270. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9271. fi
  9272. else
  9273. $as_echo "/* $configure_input */" \
  9274. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9275. || as_fn_error $? "could not create -" "$LINENO" 5
  9276. fi
  9277. ;;
  9278. esac
  9279. done # for ac_tag
  9280. as_fn_exit 0
  9281. _ACEOF
  9282. ac_clean_files=$ac_clean_files_save
  9283. test $ac_write_fail = 0 ||
  9284. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9285. # configure is writing to build/config.log, and then calls build/config.status.
  9286. # build/config.status does its own redirection, appending to build/config.log.
  9287. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9288. # by configure, so build/config.status won't be able to write to it; its
  9289. # output is simply discarded. So we exec the FD to /dev/null,
  9290. # effectively closing build/config.log, so it can be properly (re)opened and
  9291. # appended to by build/config.status. When coming back to configure, we
  9292. # need to make the FD available again.
  9293. if test "$no_create" != yes; then
  9294. ac_cs_success=:
  9295. ac_config_status_args=
  9296. test "$silent" = yes &&
  9297. ac_config_status_args="$ac_config_status_args --quiet"
  9298. exec 5>/dev/null
  9299. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9300. exec 5>>build/config.log
  9301. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9302. # would make configure fail if this is the last instruction.
  9303. $ac_cs_success || as_fn_exit 1
  9304. fi
  9305. #
  9306. # CONFIG_SUBDIRS section.
  9307. #
  9308. if test "$no_recursion" != yes; then
  9309. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9310. # so they do not pile up.
  9311. ac_sub_configure_args=
  9312. ac_prev=
  9313. eval "set x $ac_configure_args"
  9314. shift
  9315. for ac_arg
  9316. do
  9317. if test -n "$ac_prev"; then
  9318. ac_prev=
  9319. continue
  9320. fi
  9321. case $ac_arg in
  9322. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9323. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9324. ac_prev=cache_file ;;
  9325. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9326. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9327. | --c=*)
  9328. ;;
  9329. --config-cache | -C)
  9330. ;;
  9331. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9332. ac_prev=srcdir ;;
  9333. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9334. ;;
  9335. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9336. ac_prev=prefix ;;
  9337. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9338. ;;
  9339. --disable-option-checking)
  9340. ;;
  9341. *)
  9342. case $ac_arg in
  9343. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9344. esac
  9345. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9346. esac
  9347. done
  9348. # Always prepend --prefix to ensure using the same prefix
  9349. # in subdir configurations.
  9350. ac_arg="--prefix=$prefix"
  9351. case $ac_arg in
  9352. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9353. esac
  9354. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9355. # Pass --silent
  9356. if test "$silent" = yes; then
  9357. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9358. fi
  9359. # Always prepend --disable-option-checking to silence warnings, since
  9360. # different subdirs can have different --enable and --with options.
  9361. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9362. ac_popdir=`pwd`
  9363. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9364. # Do not complain, so a configure script can configure whichever
  9365. # parts of a large source tree are present.
  9366. test -d "$srcdir/$ac_dir" || continue
  9367. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9368. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9369. $as_echo "$ac_msg" >&6
  9370. as_dir="$ac_dir"; as_fn_mkdir_p
  9371. ac_builddir=.
  9372. case "$ac_dir" in
  9373. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9374. *)
  9375. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9376. # A ".." for each directory in $ac_dir_suffix.
  9377. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9378. case $ac_top_builddir_sub in
  9379. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9380. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9381. esac ;;
  9382. esac
  9383. ac_abs_top_builddir=$ac_pwd
  9384. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9385. # for backward compatibility:
  9386. ac_top_builddir=$ac_top_build_prefix
  9387. case $srcdir in
  9388. .) # We are building in place.
  9389. ac_srcdir=.
  9390. ac_top_srcdir=$ac_top_builddir_sub
  9391. ac_abs_top_srcdir=$ac_pwd ;;
  9392. [\\/]* | ?:[\\/]* ) # Absolute name.
  9393. ac_srcdir=$srcdir$ac_dir_suffix;
  9394. ac_top_srcdir=$srcdir
  9395. ac_abs_top_srcdir=$srcdir ;;
  9396. *) # Relative name.
  9397. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9398. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9399. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9400. esac
  9401. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9402. cd "$ac_dir"
  9403. # Check for guested configure; otherwise get Cygnus style configure.
  9404. if test -f "$ac_srcdir/configure.gnu"; then
  9405. ac_sub_configure=$ac_srcdir/configure.gnu
  9406. elif test -f "$ac_srcdir/configure"; then
  9407. ac_sub_configure=$ac_srcdir/configure
  9408. elif test -f "$ac_srcdir/configure.in"; then
  9409. # This should be Cygnus configure.
  9410. ac_sub_configure=$ac_aux_dir/configure
  9411. else
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9413. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9414. ac_sub_configure=
  9415. fi
  9416. # The recursion is here.
  9417. if test -n "$ac_sub_configure"; then
  9418. # Make the cache file name correct relative to the subdirectory.
  9419. case $cache_file in
  9420. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9421. *) # Relative name.
  9422. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9423. esac
  9424. { $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
  9425. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9426. # The eval makes quoting arguments work.
  9427. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9428. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9429. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9430. fi
  9431. cd "$ac_popdir"
  9432. done
  9433. fi
  9434. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9436. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9437. fi
  9438. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9439. SED="$SED" src/generate_defs.sh || exit 1