configure 246 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for ngIRCd 25.
  4. #
  5. # Report bugs to <ngircd-ml@ngircd.barton.de>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: ngircd-ml@ngircd.barton.de about your system, including
  253. $0: any error possibly output before this message. Then
  254. $0: install a modern shell, or manually run the script
  255. $0: 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='ngIRCd'
  534. PACKAGE_TARNAME='ngircd'
  535. PACKAGE_VERSION='25'
  536. PACKAGE_STRING='ngIRCd 25'
  537. PACKAGE_BUGREPORT='ngircd-ml@ngircd.barton.de'
  538. PACKAGE_URL='http://ngircd.barton.de/'
  539. ac_unique_file="src/ngircd/ngircd.c"
  540. # Factoring default headers for most tests.
  541. ac_includes_default="\
  542. #include <stdio.h>
  543. #ifdef HAVE_SYS_TYPES_H
  544. # include <sys/types.h>
  545. #endif
  546. #ifdef HAVE_SYS_STAT_H
  547. # include <sys/stat.h>
  548. #endif
  549. #ifdef STDC_HEADERS
  550. # include <stdlib.h>
  551. # include <stddef.h>
  552. #else
  553. # ifdef HAVE_STDLIB_H
  554. # include <stdlib.h>
  555. # endif
  556. #endif
  557. #ifdef HAVE_STRING_H
  558. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  559. # include <memory.h>
  560. # endif
  561. # include <string.h>
  562. #endif
  563. #ifdef HAVE_STRINGS_H
  564. # include <strings.h>
  565. #endif
  566. #ifdef HAVE_INTTYPES_H
  567. # include <inttypes.h>
  568. #endif
  569. #ifdef HAVE_STDINT_H
  570. # include <stdint.h>
  571. #endif
  572. #ifdef HAVE_UNISTD_H
  573. # include <unistd.h>
  574. #endif"
  575. ac_header_list=
  576. ac_func_list=
  577. ac_subst_vars='am__EXEEXT_FALSE
  578. am__EXEEXT_TRUE
  579. LTLIBOBJS
  580. LIBOBJS
  581. ANSI2KNR
  582. U
  583. EGREP
  584. GREP
  585. CPP
  586. RANLIB
  587. LN_S
  588. ac_ct_AR
  589. AR
  590. am__fastdepCC_FALSE
  591. am__fastdepCC_TRUE
  592. CCDEPMODE
  593. am__nodep
  594. AMDEPBACKSLASH
  595. AMDEP_FALSE
  596. AMDEP_TRUE
  597. am__quote
  598. am__include
  599. DEPDIR
  600. OBJEXT
  601. EXEEXT
  602. ac_ct_CC
  603. CPPFLAGS
  604. LDFLAGS
  605. CFLAGS
  606. CC
  607. AM_BACKSLASH
  608. AM_DEFAULT_VERBOSITY
  609. AM_DEFAULT_V
  610. AM_V
  611. am__untar
  612. am__tar
  613. AMTAR
  614. am__leading_dot
  615. SET_MAKE
  616. AWK
  617. mkdir_p
  618. MKDIR_P
  619. INSTALL_STRIP_PROGRAM
  620. STRIP
  621. install_sh
  622. MAKEINFO
  623. AUTOHEADER
  624. AUTOMAKE
  625. AUTOCONF
  626. ACLOCAL
  627. VERSION
  628. PACKAGE
  629. CYGPATH_W
  630. am__isrc
  631. INSTALL_DATA
  632. INSTALL_SCRIPT
  633. INSTALL_PROGRAM
  634. host_os
  635. host_vendor
  636. host_cpu
  637. host
  638. build_os
  639. build_vendor
  640. build_cpu
  641. build
  642. target_alias
  643. host_alias
  644. build_alias
  645. LIBS
  646. ECHO_T
  647. ECHO_N
  648. ECHO_C
  649. DEFS
  650. mandir
  651. localedir
  652. libdir
  653. psdir
  654. pdfdir
  655. dvidir
  656. htmldir
  657. infodir
  658. docdir
  659. oldincludedir
  660. includedir
  661. runstatedir
  662. localstatedir
  663. sharedstatedir
  664. sysconfdir
  665. datadir
  666. datarootdir
  667. libexecdir
  668. sbindir
  669. bindir
  670. program_transform_name
  671. prefix
  672. exec_prefix
  673. PACKAGE_URL
  674. PACKAGE_BUGREPORT
  675. PACKAGE_STRING
  676. PACKAGE_VERSION
  677. PACKAGE_TARNAME
  678. PACKAGE_NAME
  679. PATH_SEPARATOR
  680. SHELL'
  681. ac_subst_files=''
  682. ac_user_opts='
  683. enable_option_checking
  684. enable_silent_rules
  685. enable_dependency_tracking
  686. with_syslog
  687. with_zlib
  688. with_select
  689. with_poll
  690. with_devpoll
  691. with_epoll
  692. with_kqueue
  693. with_openssl
  694. with_gnutls
  695. with_tcp_wrappers
  696. with_ident
  697. with_pam
  698. enable_ircplus
  699. with_iconv
  700. enable_ipv6
  701. enable_sniffer
  702. enable_debug
  703. enable_strict_rfc
  704. '
  705. ac_precious_vars='build_alias
  706. host_alias
  707. target_alias
  708. CC
  709. CFLAGS
  710. LDFLAGS
  711. LIBS
  712. CPPFLAGS
  713. CPP'
  714. # Initialize some variables set by options.
  715. ac_init_help=
  716. ac_init_version=false
  717. ac_unrecognized_opts=
  718. ac_unrecognized_sep=
  719. # The variables have the same names as the options, with
  720. # dashes changed to underlines.
  721. cache_file=/dev/null
  722. exec_prefix=NONE
  723. no_create=
  724. no_recursion=
  725. prefix=NONE
  726. program_prefix=NONE
  727. program_suffix=NONE
  728. program_transform_name=s,x,x,
  729. silent=
  730. site=
  731. srcdir=
  732. verbose=
  733. x_includes=NONE
  734. x_libraries=NONE
  735. # Installation directory options.
  736. # These are left unexpanded so users can "make install exec_prefix=/foo"
  737. # and all the variables that are supposed to be based on exec_prefix
  738. # by default will actually change.
  739. # Use braces instead of parens because sh, perl, etc. also accept them.
  740. # (The list follows the same order as the GNU Coding Standards.)
  741. bindir='${exec_prefix}/bin'
  742. sbindir='${exec_prefix}/sbin'
  743. libexecdir='${exec_prefix}/libexec'
  744. datarootdir='${prefix}/share'
  745. datadir='${datarootdir}'
  746. sysconfdir='${prefix}/etc'
  747. sharedstatedir='${prefix}/com'
  748. localstatedir='${prefix}/var'
  749. runstatedir='${localstatedir}/run'
  750. includedir='${prefix}/include'
  751. oldincludedir='/usr/include'
  752. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  753. infodir='${datarootdir}/info'
  754. htmldir='${docdir}'
  755. dvidir='${docdir}'
  756. pdfdir='${docdir}'
  757. psdir='${docdir}'
  758. libdir='${exec_prefix}/lib'
  759. localedir='${datarootdir}/locale'
  760. mandir='${datarootdir}/man'
  761. ac_prev=
  762. ac_dashdash=
  763. for ac_option
  764. do
  765. # If the previous option needs an argument, assign it.
  766. if test -n "$ac_prev"; then
  767. eval $ac_prev=\$ac_option
  768. ac_prev=
  769. continue
  770. fi
  771. case $ac_option in
  772. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  773. *=) ac_optarg= ;;
  774. *) ac_optarg=yes ;;
  775. esac
  776. # Accept the important Cygnus configure options, so we can diagnose typos.
  777. case $ac_dashdash$ac_option in
  778. --)
  779. ac_dashdash=yes ;;
  780. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  781. ac_prev=bindir ;;
  782. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  783. bindir=$ac_optarg ;;
  784. -build | --build | --buil | --bui | --bu)
  785. ac_prev=build_alias ;;
  786. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  787. build_alias=$ac_optarg ;;
  788. -cache-file | --cache-file | --cache-fil | --cache-fi \
  789. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  790. ac_prev=cache_file ;;
  791. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  792. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  793. cache_file=$ac_optarg ;;
  794. --config-cache | -C)
  795. cache_file=config.cache ;;
  796. -datadir | --datadir | --datadi | --datad)
  797. ac_prev=datadir ;;
  798. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  799. datadir=$ac_optarg ;;
  800. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  801. | --dataroo | --dataro | --datar)
  802. ac_prev=datarootdir ;;
  803. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  804. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  805. datarootdir=$ac_optarg ;;
  806. -disable-* | --disable-*)
  807. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  808. # Reject names that are not valid shell variable names.
  809. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  810. as_fn_error $? "invalid feature name: $ac_useropt"
  811. ac_useropt_orig=$ac_useropt
  812. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  813. case $ac_user_opts in
  814. *"
  815. "enable_$ac_useropt"
  816. "*) ;;
  817. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  818. ac_unrecognized_sep=', ';;
  819. esac
  820. eval enable_$ac_useropt=no ;;
  821. -docdir | --docdir | --docdi | --doc | --do)
  822. ac_prev=docdir ;;
  823. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  824. docdir=$ac_optarg ;;
  825. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  826. ac_prev=dvidir ;;
  827. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  828. dvidir=$ac_optarg ;;
  829. -enable-* | --enable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=\$ac_optarg ;;
  844. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  845. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  846. | --exec | --exe | --ex)
  847. ac_prev=exec_prefix ;;
  848. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  849. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  850. | --exec=* | --exe=* | --ex=*)
  851. exec_prefix=$ac_optarg ;;
  852. -gas | --gas | --ga | --g)
  853. # Obsolete; use --with-gas.
  854. with_gas=yes ;;
  855. -help | --help | --hel | --he | -h)
  856. ac_init_help=long ;;
  857. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  858. ac_init_help=recursive ;;
  859. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  860. ac_init_help=short ;;
  861. -host | --host | --hos | --ho)
  862. ac_prev=host_alias ;;
  863. -host=* | --host=* | --hos=* | --ho=*)
  864. host_alias=$ac_optarg ;;
  865. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  866. ac_prev=htmldir ;;
  867. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  868. | --ht=*)
  869. htmldir=$ac_optarg ;;
  870. -includedir | --includedir | --includedi | --included | --include \
  871. | --includ | --inclu | --incl | --inc)
  872. ac_prev=includedir ;;
  873. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  874. | --includ=* | --inclu=* | --incl=* | --inc=*)
  875. includedir=$ac_optarg ;;
  876. -infodir | --infodir | --infodi | --infod | --info | --inf)
  877. ac_prev=infodir ;;
  878. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  879. infodir=$ac_optarg ;;
  880. -libdir | --libdir | --libdi | --libd)
  881. ac_prev=libdir ;;
  882. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  883. libdir=$ac_optarg ;;
  884. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  885. | --libexe | --libex | --libe)
  886. ac_prev=libexecdir ;;
  887. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  888. | --libexe=* | --libex=* | --libe=*)
  889. libexecdir=$ac_optarg ;;
  890. -localedir | --localedir | --localedi | --localed | --locale)
  891. ac_prev=localedir ;;
  892. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  893. localedir=$ac_optarg ;;
  894. -localstatedir | --localstatedir | --localstatedi | --localstated \
  895. | --localstate | --localstat | --localsta | --localst | --locals)
  896. ac_prev=localstatedir ;;
  897. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  898. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  899. localstatedir=$ac_optarg ;;
  900. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  901. ac_prev=mandir ;;
  902. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  903. mandir=$ac_optarg ;;
  904. -nfp | --nfp | --nf)
  905. # Obsolete; use --without-fp.
  906. with_fp=no ;;
  907. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  908. | --no-cr | --no-c | -n)
  909. no_create=yes ;;
  910. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  911. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  912. no_recursion=yes ;;
  913. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  914. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  915. | --oldin | --oldi | --old | --ol | --o)
  916. ac_prev=oldincludedir ;;
  917. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  918. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  919. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  920. oldincludedir=$ac_optarg ;;
  921. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  922. ac_prev=prefix ;;
  923. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  924. prefix=$ac_optarg ;;
  925. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  926. | --program-pre | --program-pr | --program-p)
  927. ac_prev=program_prefix ;;
  928. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  929. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  930. program_prefix=$ac_optarg ;;
  931. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  932. | --program-suf | --program-su | --program-s)
  933. ac_prev=program_suffix ;;
  934. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  935. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  936. program_suffix=$ac_optarg ;;
  937. -program-transform-name | --program-transform-name \
  938. | --program-transform-nam | --program-transform-na \
  939. | --program-transform-n | --program-transform- \
  940. | --program-transform | --program-transfor \
  941. | --program-transfo | --program-transf \
  942. | --program-trans | --program-tran \
  943. | --progr-tra | --program-tr | --program-t)
  944. ac_prev=program_transform_name ;;
  945. -program-transform-name=* | --program-transform-name=* \
  946. | --program-transform-nam=* | --program-transform-na=* \
  947. | --program-transform-n=* | --program-transform-=* \
  948. | --program-transform=* | --program-transfor=* \
  949. | --program-transfo=* | --program-transf=* \
  950. | --program-trans=* | --program-tran=* \
  951. | --progr-tra=* | --program-tr=* | --program-t=*)
  952. program_transform_name=$ac_optarg ;;
  953. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  954. ac_prev=pdfdir ;;
  955. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  956. pdfdir=$ac_optarg ;;
  957. -psdir | --psdir | --psdi | --psd | --ps)
  958. ac_prev=psdir ;;
  959. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  960. psdir=$ac_optarg ;;
  961. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  962. | -silent | --silent | --silen | --sile | --sil)
  963. silent=yes ;;
  964. -runstatedir | --runstatedir | --runstatedi | --runstated \
  965. | --runstate | --runstat | --runsta | --runst | --runs \
  966. | --run | --ru | --r)
  967. ac_prev=runstatedir ;;
  968. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  969. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  970. | --run=* | --ru=* | --r=*)
  971. runstatedir=$ac_optarg ;;
  972. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  973. ac_prev=sbindir ;;
  974. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  975. | --sbi=* | --sb=*)
  976. sbindir=$ac_optarg ;;
  977. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  978. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  979. | --sharedst | --shareds | --shared | --share | --shar \
  980. | --sha | --sh)
  981. ac_prev=sharedstatedir ;;
  982. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  983. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  984. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  985. | --sha=* | --sh=*)
  986. sharedstatedir=$ac_optarg ;;
  987. -site | --site | --sit)
  988. ac_prev=site ;;
  989. -site=* | --site=* | --sit=*)
  990. site=$ac_optarg ;;
  991. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  992. ac_prev=srcdir ;;
  993. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  994. srcdir=$ac_optarg ;;
  995. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  996. | --syscon | --sysco | --sysc | --sys | --sy)
  997. ac_prev=sysconfdir ;;
  998. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  999. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1000. sysconfdir=$ac_optarg ;;
  1001. -target | --target | --targe | --targ | --tar | --ta | --t)
  1002. ac_prev=target_alias ;;
  1003. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1004. target_alias=$ac_optarg ;;
  1005. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1006. verbose=yes ;;
  1007. -version | --version | --versio | --versi | --vers | -V)
  1008. ac_init_version=: ;;
  1009. -with-* | --with-*)
  1010. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1011. # Reject names that are not valid shell variable names.
  1012. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1013. as_fn_error $? "invalid package name: $ac_useropt"
  1014. ac_useropt_orig=$ac_useropt
  1015. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1016. case $ac_user_opts in
  1017. *"
  1018. "with_$ac_useropt"
  1019. "*) ;;
  1020. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1021. ac_unrecognized_sep=', ';;
  1022. esac
  1023. eval with_$ac_useropt=\$ac_optarg ;;
  1024. -without-* | --without-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=no ;;
  1039. --x)
  1040. # Obsolete; use --with-x.
  1041. with_x=yes ;;
  1042. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1043. | --x-incl | --x-inc | --x-in | --x-i)
  1044. ac_prev=x_includes ;;
  1045. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1046. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1047. x_includes=$ac_optarg ;;
  1048. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1049. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1050. ac_prev=x_libraries ;;
  1051. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1052. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1053. x_libraries=$ac_optarg ;;
  1054. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1055. Try \`$0 --help' for more information"
  1056. ;;
  1057. *=*)
  1058. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1059. # Reject names that are not valid shell variable names.
  1060. case $ac_envvar in #(
  1061. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1062. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1063. esac
  1064. eval $ac_envvar=\$ac_optarg
  1065. export $ac_envvar ;;
  1066. *)
  1067. # FIXME: should be removed in autoconf 3.0.
  1068. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1069. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1070. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1071. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1072. ;;
  1073. esac
  1074. done
  1075. if test -n "$ac_prev"; then
  1076. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1077. as_fn_error $? "missing argument to $ac_option"
  1078. fi
  1079. if test -n "$ac_unrecognized_opts"; then
  1080. case $enable_option_checking in
  1081. no) ;;
  1082. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1083. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1084. esac
  1085. fi
  1086. # Check all directory arguments for consistency.
  1087. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1088. datadir sysconfdir sharedstatedir localstatedir includedir \
  1089. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1090. libdir localedir mandir runstatedir
  1091. do
  1092. eval ac_val=\$$ac_var
  1093. # Remove trailing slashes.
  1094. case $ac_val in
  1095. */ )
  1096. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1097. eval $ac_var=\$ac_val;;
  1098. esac
  1099. # Be sure to have absolute directory names.
  1100. case $ac_val in
  1101. [\\/$]* | ?:[\\/]* ) continue;;
  1102. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1103. esac
  1104. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1105. done
  1106. # There might be people who depend on the old broken behavior: `$host'
  1107. # used to hold the argument of --host etc.
  1108. # FIXME: To remove some day.
  1109. build=$build_alias
  1110. host=$host_alias
  1111. target=$target_alias
  1112. # FIXME: To remove some day.
  1113. if test "x$host_alias" != x; then
  1114. if test "x$build_alias" = x; then
  1115. cross_compiling=maybe
  1116. elif test "x$build_alias" != "x$host_alias"; then
  1117. cross_compiling=yes
  1118. fi
  1119. fi
  1120. ac_tool_prefix=
  1121. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1122. test "$silent" = yes && exec 6>/dev/null
  1123. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1124. ac_ls_di=`ls -di .` &&
  1125. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1126. as_fn_error $? "working directory cannot be determined"
  1127. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1128. as_fn_error $? "pwd does not report name of working directory"
  1129. # Find the source files, if location was not specified.
  1130. if test -z "$srcdir"; then
  1131. ac_srcdir_defaulted=yes
  1132. # Try the directory containing this script, then the parent directory.
  1133. ac_confdir=`$as_dirname -- "$as_myself" ||
  1134. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1135. X"$as_myself" : 'X\(//\)[^/]' \| \
  1136. X"$as_myself" : 'X\(//\)$' \| \
  1137. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1138. $as_echo X"$as_myself" |
  1139. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\/\)[^/].*/{
  1144. s//\1/
  1145. q
  1146. }
  1147. /^X\(\/\/\)$/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\).*/{
  1152. s//\1/
  1153. q
  1154. }
  1155. s/.*/./; q'`
  1156. srcdir=$ac_confdir
  1157. if test ! -r "$srcdir/$ac_unique_file"; then
  1158. srcdir=..
  1159. fi
  1160. else
  1161. ac_srcdir_defaulted=no
  1162. fi
  1163. if test ! -r "$srcdir/$ac_unique_file"; then
  1164. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1165. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1166. fi
  1167. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1168. ac_abs_confdir=`(
  1169. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1170. pwd)`
  1171. # When building in place, set srcdir=.
  1172. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1173. srcdir=.
  1174. fi
  1175. # Remove unnecessary trailing slashes from srcdir.
  1176. # Double slashes in file names in object file debugging info
  1177. # mess up M-x gdb in Emacs.
  1178. case $srcdir in
  1179. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1180. esac
  1181. for ac_var in $ac_precious_vars; do
  1182. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1183. eval ac_env_${ac_var}_value=\$${ac_var}
  1184. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1185. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1186. done
  1187. #
  1188. # Report the --help message.
  1189. #
  1190. if test "$ac_init_help" = "long"; then
  1191. # Omit some internal or obsolete options to make the list less imposing.
  1192. # This message is too long to be a string in the A/UX 3.1 sh.
  1193. cat <<_ACEOF
  1194. \`configure' configures ngIRCd 25 to adapt to many kinds of systems.
  1195. Usage: $0 [OPTION]... [VAR=VALUE]...
  1196. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1197. VAR=VALUE. See below for descriptions of some of the useful variables.
  1198. Defaults for the options are specified in brackets.
  1199. Configuration:
  1200. -h, --help display this help and exit
  1201. --help=short display options specific to this package
  1202. --help=recursive display the short help of all the included packages
  1203. -V, --version display version information and exit
  1204. -q, --quiet, --silent do not print \`checking ...' messages
  1205. --cache-file=FILE cache test results in FILE [disabled]
  1206. -C, --config-cache alias for \`--cache-file=config.cache'
  1207. -n, --no-create do not create output files
  1208. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1209. Installation directories:
  1210. --prefix=PREFIX install architecture-independent files in PREFIX
  1211. [$ac_default_prefix]
  1212. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1213. [PREFIX]
  1214. By default, \`make install' will install all the files in
  1215. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1216. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1217. for instance \`--prefix=\$HOME'.
  1218. For better control, use the options below.
  1219. Fine tuning of the installation directories:
  1220. --bindir=DIR user executables [EPREFIX/bin]
  1221. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1222. --libexecdir=DIR program executables [EPREFIX/libexec]
  1223. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1224. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1225. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1226. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1227. --libdir=DIR object code libraries [EPREFIX/lib]
  1228. --includedir=DIR C header files [PREFIX/include]
  1229. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1230. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1231. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1232. --infodir=DIR info documentation [DATAROOTDIR/info]
  1233. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1234. --mandir=DIR man documentation [DATAROOTDIR/man]
  1235. --docdir=DIR documentation root [DATAROOTDIR/doc/ngircd]
  1236. --htmldir=DIR html documentation [DOCDIR]
  1237. --dvidir=DIR dvi documentation [DOCDIR]
  1238. --pdfdir=DIR pdf documentation [DOCDIR]
  1239. --psdir=DIR ps documentation [DOCDIR]
  1240. _ACEOF
  1241. cat <<\_ACEOF
  1242. Program names:
  1243. --program-prefix=PREFIX prepend PREFIX to installed program names
  1244. --program-suffix=SUFFIX append SUFFIX to installed program names
  1245. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1246. System types:
  1247. --build=BUILD configure for building on BUILD [guessed]
  1248. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1249. _ACEOF
  1250. fi
  1251. if test -n "$ac_init_help"; then
  1252. case $ac_init_help in
  1253. short | recursive ) echo "Configuration of ngIRCd 25:";;
  1254. esac
  1255. cat <<\_ACEOF
  1256. Optional Features:
  1257. --disable-option-checking ignore unrecognized --enable/--with options
  1258. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1259. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1260. --enable-silent-rules less verbose build output (undo: `make V=1')
  1261. --disable-silent-rules verbose build output (undo: `make V=0')
  1262. --disable-dependency-tracking speeds up one-time build
  1263. --enable-dependency-tracking do not reject slow dependency extractors
  1264. --disable-ircplus disable IRC+ protocol
  1265. --enable-ipv6 enable IPv6 protocol support
  1266. --enable-sniffer enable IRC traffic sniffer (enables debug mode)
  1267. --enable-debug show additional debug output
  1268. --enable-strict-rfc strict RFC conformance -- may break clients!
  1269. Optional Packages:
  1270. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1271. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1272. --without-syslog disable syslog (autodetected by default)
  1273. --without-zlib disable zlib compression (autodetected by default)
  1274. --without-select disable select IO support (autodetected by default)
  1275. --without-poll disable poll support (autodetected by default)
  1276. --without-devpoll disable /dev/poll IO support (autodetected by
  1277. default)
  1278. --without-epoll disable epoll IO support (autodetected by default)
  1279. --without-kqueue disable kqueue IO support (autodetected by default)
  1280. --with-openssl enable SSL support using OpenSSL
  1281. --with-gnutls enable SSL support using gnutls
  1282. --with-tcp-wrappers enable TCP wrappers support
  1283. --with-ident enable "IDENT" ("AUTH") protocol support
  1284. --with-pam enable user authentication using PAM
  1285. --with-iconv enable character conversion using libiconv
  1286. Some influential environment variables:
  1287. CC C compiler command
  1288. CFLAGS C compiler flags
  1289. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1290. nonstandard directory <lib dir>
  1291. LIBS libraries to pass to the linker, e.g. -l<library>
  1292. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1293. you have headers in a nonstandard directory <include dir>
  1294. CPP C preprocessor
  1295. Use these variables to override the choices made by `configure' or to help
  1296. it to find libraries and programs with nonstandard names/locations.
  1297. Report bugs to <ngircd-ml@ngircd.barton.de>.
  1298. ngIRCd home page: <http://ngircd.barton.de/>.
  1299. _ACEOF
  1300. ac_status=$?
  1301. fi
  1302. if test "$ac_init_help" = "recursive"; then
  1303. # If there are subdirs, report their specific --help.
  1304. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1305. test -d "$ac_dir" ||
  1306. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1307. continue
  1308. ac_builddir=.
  1309. case "$ac_dir" in
  1310. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1311. *)
  1312. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1313. # A ".." for each directory in $ac_dir_suffix.
  1314. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1315. case $ac_top_builddir_sub in
  1316. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1317. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1318. esac ;;
  1319. esac
  1320. ac_abs_top_builddir=$ac_pwd
  1321. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1322. # for backward compatibility:
  1323. ac_top_builddir=$ac_top_build_prefix
  1324. case $srcdir in
  1325. .) # We are building in place.
  1326. ac_srcdir=.
  1327. ac_top_srcdir=$ac_top_builddir_sub
  1328. ac_abs_top_srcdir=$ac_pwd ;;
  1329. [\\/]* | ?:[\\/]* ) # Absolute name.
  1330. ac_srcdir=$srcdir$ac_dir_suffix;
  1331. ac_top_srcdir=$srcdir
  1332. ac_abs_top_srcdir=$srcdir ;;
  1333. *) # Relative name.
  1334. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1335. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1336. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1337. esac
  1338. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1339. cd "$ac_dir" || { ac_status=$?; continue; }
  1340. # Check for guested configure.
  1341. if test -f "$ac_srcdir/configure.gnu"; then
  1342. echo &&
  1343. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1344. elif test -f "$ac_srcdir/configure"; then
  1345. echo &&
  1346. $SHELL "$ac_srcdir/configure" --help=recursive
  1347. else
  1348. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1349. fi || ac_status=$?
  1350. cd "$ac_pwd" || { ac_status=$?; break; }
  1351. done
  1352. fi
  1353. test -n "$ac_init_help" && exit $ac_status
  1354. if $ac_init_version; then
  1355. cat <<\_ACEOF
  1356. ngIRCd configure 25
  1357. generated by GNU Autoconf 2.69
  1358. Copyright (C) 2012 Free Software Foundation, Inc.
  1359. This configure script is free software; the Free Software Foundation
  1360. gives unlimited permission to copy, distribute and modify it.
  1361. _ACEOF
  1362. exit
  1363. fi
  1364. ## ------------------------ ##
  1365. ## Autoconf initialization. ##
  1366. ## ------------------------ ##
  1367. # ac_fn_c_try_compile LINENO
  1368. # --------------------------
  1369. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1370. ac_fn_c_try_compile ()
  1371. {
  1372. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1373. rm -f conftest.$ac_objext
  1374. if { { ac_try="$ac_compile"
  1375. case "(($ac_try" in
  1376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1377. *) ac_try_echo=$ac_try;;
  1378. esac
  1379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1380. $as_echo "$ac_try_echo"; } >&5
  1381. (eval "$ac_compile") 2>conftest.err
  1382. ac_status=$?
  1383. if test -s conftest.err; then
  1384. grep -v '^ *+' conftest.err >conftest.er1
  1385. cat conftest.er1 >&5
  1386. mv -f conftest.er1 conftest.err
  1387. fi
  1388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1389. test $ac_status = 0; } && {
  1390. test -z "$ac_c_werror_flag" ||
  1391. test ! -s conftest.err
  1392. } && test -s conftest.$ac_objext; then :
  1393. ac_retval=0
  1394. else
  1395. $as_echo "$as_me: failed program was:" >&5
  1396. sed 's/^/| /' conftest.$ac_ext >&5
  1397. ac_retval=1
  1398. fi
  1399. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1400. as_fn_set_status $ac_retval
  1401. } # ac_fn_c_try_compile
  1402. # ac_fn_c_try_cpp LINENO
  1403. # ----------------------
  1404. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1405. ac_fn_c_try_cpp ()
  1406. {
  1407. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1408. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1409. case "(($ac_try" in
  1410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1411. *) ac_try_echo=$ac_try;;
  1412. esac
  1413. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1414. $as_echo "$ac_try_echo"; } >&5
  1415. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1416. ac_status=$?
  1417. if test -s conftest.err; then
  1418. grep -v '^ *+' conftest.err >conftest.er1
  1419. cat conftest.er1 >&5
  1420. mv -f conftest.er1 conftest.err
  1421. fi
  1422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1423. test $ac_status = 0; } > conftest.i && {
  1424. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1425. test ! -s conftest.err
  1426. }; then :
  1427. ac_retval=0
  1428. else
  1429. $as_echo "$as_me: failed program was:" >&5
  1430. sed 's/^/| /' conftest.$ac_ext >&5
  1431. ac_retval=1
  1432. fi
  1433. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1434. as_fn_set_status $ac_retval
  1435. } # ac_fn_c_try_cpp
  1436. # ac_fn_c_try_run LINENO
  1437. # ----------------------
  1438. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1439. # that executables *can* be run.
  1440. ac_fn_c_try_run ()
  1441. {
  1442. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1443. if { { ac_try="$ac_link"
  1444. case "(($ac_try" in
  1445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1446. *) ac_try_echo=$ac_try;;
  1447. esac
  1448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1449. $as_echo "$ac_try_echo"; } >&5
  1450. (eval "$ac_link") 2>&5
  1451. ac_status=$?
  1452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1453. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1454. { { case "(($ac_try" in
  1455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1456. *) ac_try_echo=$ac_try;;
  1457. esac
  1458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1459. $as_echo "$ac_try_echo"; } >&5
  1460. (eval "$ac_try") 2>&5
  1461. ac_status=$?
  1462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1463. test $ac_status = 0; }; }; then :
  1464. ac_retval=0
  1465. else
  1466. $as_echo "$as_me: program exited with status $ac_status" >&5
  1467. $as_echo "$as_me: failed program was:" >&5
  1468. sed 's/^/| /' conftest.$ac_ext >&5
  1469. ac_retval=$ac_status
  1470. fi
  1471. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1472. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1473. as_fn_set_status $ac_retval
  1474. } # ac_fn_c_try_run
  1475. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1476. # -------------------------------------------------------
  1477. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1478. # the include files in INCLUDES and setting the cache variable VAR
  1479. # accordingly.
  1480. ac_fn_c_check_header_mongrel ()
  1481. {
  1482. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1483. if eval \${$3+:} false; then :
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1485. $as_echo_n "checking for $2... " >&6; }
  1486. if eval \${$3+:} false; then :
  1487. $as_echo_n "(cached) " >&6
  1488. fi
  1489. eval ac_res=\$$3
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1491. $as_echo "$ac_res" >&6; }
  1492. else
  1493. # Is the header compilable?
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1495. $as_echo_n "checking $2 usability... " >&6; }
  1496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1497. /* end confdefs.h. */
  1498. $4
  1499. #include <$2>
  1500. _ACEOF
  1501. if ac_fn_c_try_compile "$LINENO"; then :
  1502. ac_header_compiler=yes
  1503. else
  1504. ac_header_compiler=no
  1505. fi
  1506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1508. $as_echo "$ac_header_compiler" >&6; }
  1509. # Is the header present?
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1511. $as_echo_n "checking $2 presence... " >&6; }
  1512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1513. /* end confdefs.h. */
  1514. #include <$2>
  1515. _ACEOF
  1516. if ac_fn_c_try_cpp "$LINENO"; then :
  1517. ac_header_preproc=yes
  1518. else
  1519. ac_header_preproc=no
  1520. fi
  1521. rm -f conftest.err conftest.i conftest.$ac_ext
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1523. $as_echo "$ac_header_preproc" >&6; }
  1524. # So? What about this header?
  1525. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1526. yes:no: )
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1528. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1530. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1531. ;;
  1532. no:yes:* )
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1534. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1536. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1538. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1540. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1542. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1543. ( $as_echo "## ----------------------------------------- ##
  1544. ## Report this to ngircd-ml@ngircd.barton.de ##
  1545. ## ----------------------------------------- ##"
  1546. ) | sed "s/^/$as_me: WARNING: /" >&2
  1547. ;;
  1548. esac
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1550. $as_echo_n "checking for $2... " >&6; }
  1551. if eval \${$3+:} false; then :
  1552. $as_echo_n "(cached) " >&6
  1553. else
  1554. eval "$3=\$ac_header_compiler"
  1555. fi
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. fi
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. } # ac_fn_c_check_header_mongrel
  1562. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1563. # -------------------------------------------------------
  1564. # Tests whether HEADER exists and can be compiled using the include files in
  1565. # INCLUDES, setting the cache variable VAR accordingly.
  1566. ac_fn_c_check_header_compile ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1570. $as_echo_n "checking for $2... " >&6; }
  1571. if eval \${$3+:} false; then :
  1572. $as_echo_n "(cached) " >&6
  1573. else
  1574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1575. /* end confdefs.h. */
  1576. $4
  1577. #include <$2>
  1578. _ACEOF
  1579. if ac_fn_c_try_compile "$LINENO"; then :
  1580. eval "$3=yes"
  1581. else
  1582. eval "$3=no"
  1583. fi
  1584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1585. fi
  1586. eval ac_res=\$$3
  1587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1588. $as_echo "$ac_res" >&6; }
  1589. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1590. } # ac_fn_c_check_header_compile
  1591. # ac_fn_c_try_link LINENO
  1592. # -----------------------
  1593. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1594. ac_fn_c_try_link ()
  1595. {
  1596. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1597. rm -f conftest.$ac_objext conftest$ac_exeext
  1598. if { { ac_try="$ac_link"
  1599. case "(($ac_try" in
  1600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1601. *) ac_try_echo=$ac_try;;
  1602. esac
  1603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1604. $as_echo "$ac_try_echo"; } >&5
  1605. (eval "$ac_link") 2>conftest.err
  1606. ac_status=$?
  1607. if test -s conftest.err; then
  1608. grep -v '^ *+' conftest.err >conftest.er1
  1609. cat conftest.er1 >&5
  1610. mv -f conftest.er1 conftest.err
  1611. fi
  1612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1613. test $ac_status = 0; } && {
  1614. test -z "$ac_c_werror_flag" ||
  1615. test ! -s conftest.err
  1616. } && test -s conftest$ac_exeext && {
  1617. test "$cross_compiling" = yes ||
  1618. test -x conftest$ac_exeext
  1619. }; then :
  1620. ac_retval=0
  1621. else
  1622. $as_echo "$as_me: failed program was:" >&5
  1623. sed 's/^/| /' conftest.$ac_ext >&5
  1624. ac_retval=1
  1625. fi
  1626. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1627. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1628. # interfere with the next link command; also delete a directory that is
  1629. # left behind by Apple's compiler. We do this before executing the actions.
  1630. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1631. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1632. as_fn_set_status $ac_retval
  1633. } # ac_fn_c_try_link
  1634. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1635. # -------------------------------------------
  1636. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1637. # variable VAR accordingly.
  1638. ac_fn_c_check_type ()
  1639. {
  1640. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1642. $as_echo_n "checking for $2... " >&6; }
  1643. if eval \${$3+:} false; then :
  1644. $as_echo_n "(cached) " >&6
  1645. else
  1646. eval "$3=no"
  1647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1648. /* end confdefs.h. */
  1649. $4
  1650. int
  1651. main ()
  1652. {
  1653. if (sizeof ($2))
  1654. return 0;
  1655. ;
  1656. return 0;
  1657. }
  1658. _ACEOF
  1659. if ac_fn_c_try_compile "$LINENO"; then :
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. $4
  1663. int
  1664. main ()
  1665. {
  1666. if (sizeof (($2)))
  1667. return 0;
  1668. ;
  1669. return 0;
  1670. }
  1671. _ACEOF
  1672. if ac_fn_c_try_compile "$LINENO"; then :
  1673. else
  1674. eval "$3=yes"
  1675. fi
  1676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1677. fi
  1678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1679. fi
  1680. eval ac_res=\$$3
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1682. $as_echo "$ac_res" >&6; }
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. } # ac_fn_c_check_type
  1685. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1686. # ------------------------------------
  1687. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1688. # accordingly.
  1689. ac_fn_c_find_uintX_t ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1693. $as_echo_n "checking for uint$2_t... " >&6; }
  1694. if eval \${$3+:} false; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. eval "$3=no"
  1698. # Order is important - never check a type that is potentially smaller
  1699. # than half of the expected target width.
  1700. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1701. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1703. /* end confdefs.h. */
  1704. $ac_includes_default
  1705. int
  1706. main ()
  1707. {
  1708. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1709. test_array [0] = 0;
  1710. return test_array [0];
  1711. ;
  1712. return 0;
  1713. }
  1714. _ACEOF
  1715. if ac_fn_c_try_compile "$LINENO"; then :
  1716. case $ac_type in #(
  1717. uint$2_t) :
  1718. eval "$3=yes" ;; #(
  1719. *) :
  1720. eval "$3=\$ac_type" ;;
  1721. esac
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1724. if eval test \"x\$"$3"\" = x"no"; then :
  1725. else
  1726. break
  1727. fi
  1728. done
  1729. fi
  1730. eval ac_res=\$$3
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1732. $as_echo "$ac_res" >&6; }
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. } # ac_fn_c_find_uintX_t
  1735. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1736. # ----------------------------------------------------
  1737. # Tries to find if the field MEMBER exists in type AGGR, after including
  1738. # INCLUDES, setting cache variable VAR accordingly.
  1739. ac_fn_c_check_member ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1743. $as_echo_n "checking for $2.$3... " >&6; }
  1744. if eval \${$4+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end confdefs.h. */
  1749. $5
  1750. int
  1751. main ()
  1752. {
  1753. static $2 ac_aggr;
  1754. if (ac_aggr.$3)
  1755. return 0;
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_c_try_compile "$LINENO"; then :
  1761. eval "$4=yes"
  1762. else
  1763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end confdefs.h. */
  1765. $5
  1766. int
  1767. main ()
  1768. {
  1769. static $2 ac_aggr;
  1770. if (sizeof ac_aggr.$3)
  1771. return 0;
  1772. ;
  1773. return 0;
  1774. }
  1775. _ACEOF
  1776. if ac_fn_c_try_compile "$LINENO"; then :
  1777. eval "$4=yes"
  1778. else
  1779. eval "$4=no"
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1784. fi
  1785. eval ac_res=\$$4
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1787. $as_echo "$ac_res" >&6; }
  1788. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1789. } # ac_fn_c_check_member
  1790. # ac_fn_c_check_func LINENO FUNC VAR
  1791. # ----------------------------------
  1792. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1793. ac_fn_c_check_func ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1797. $as_echo_n "checking for $2... " >&6; }
  1798. if eval \${$3+:} false; then :
  1799. $as_echo_n "(cached) " >&6
  1800. else
  1801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1802. /* end confdefs.h. */
  1803. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1804. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1805. #define $2 innocuous_$2
  1806. /* System header to define __stub macros and hopefully few prototypes,
  1807. which can conflict with char $2 (); below.
  1808. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1809. <limits.h> exists even on freestanding compilers. */
  1810. #ifdef __STDC__
  1811. # include <limits.h>
  1812. #else
  1813. # include <assert.h>
  1814. #endif
  1815. #undef $2
  1816. /* Override any GCC internal prototype to avoid an error.
  1817. Use char because int might match the return type of a GCC
  1818. builtin and then its argument prototype would still apply. */
  1819. #ifdef __cplusplus
  1820. extern "C"
  1821. #endif
  1822. char $2 ();
  1823. /* The GNU C library defines this for functions which it implements
  1824. to always fail with ENOSYS. Some functions are actually named
  1825. something starting with __ and the normal name is an alias. */
  1826. #if defined __stub_$2 || defined __stub___$2
  1827. choke me
  1828. #endif
  1829. int
  1830. main ()
  1831. {
  1832. return $2 ();
  1833. ;
  1834. return 0;
  1835. }
  1836. _ACEOF
  1837. if ac_fn_c_try_link "$LINENO"; then :
  1838. eval "$3=yes"
  1839. else
  1840. eval "$3=no"
  1841. fi
  1842. rm -f core conftest.err conftest.$ac_objext \
  1843. conftest$ac_exeext conftest.$ac_ext
  1844. fi
  1845. eval ac_res=\$$3
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1847. $as_echo "$ac_res" >&6; }
  1848. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1849. } # ac_fn_c_check_func
  1850. cat >config.log <<_ACEOF
  1851. This file contains any messages produced by compilers while
  1852. running configure, to aid debugging if configure makes a mistake.
  1853. It was created by ngIRCd $as_me 25, which was
  1854. generated by GNU Autoconf 2.69. Invocation command line was
  1855. $ $0 $@
  1856. _ACEOF
  1857. exec 5>>config.log
  1858. {
  1859. cat <<_ASUNAME
  1860. ## --------- ##
  1861. ## Platform. ##
  1862. ## --------- ##
  1863. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1864. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1865. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1866. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1867. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1868. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1869. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1870. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1871. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1872. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1873. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1874. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1875. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1876. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1877. _ASUNAME
  1878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1879. for as_dir in $PATH
  1880. do
  1881. IFS=$as_save_IFS
  1882. test -z "$as_dir" && as_dir=.
  1883. $as_echo "PATH: $as_dir"
  1884. done
  1885. IFS=$as_save_IFS
  1886. } >&5
  1887. cat >&5 <<_ACEOF
  1888. ## ----------- ##
  1889. ## Core tests. ##
  1890. ## ----------- ##
  1891. _ACEOF
  1892. # Keep a trace of the command line.
  1893. # Strip out --no-create and --no-recursion so they do not pile up.
  1894. # Strip out --silent because we don't want to record it for future runs.
  1895. # Also quote any args containing shell meta-characters.
  1896. # Make two passes to allow for proper duplicate-argument suppression.
  1897. ac_configure_args=
  1898. ac_configure_args0=
  1899. ac_configure_args1=
  1900. ac_must_keep_next=false
  1901. for ac_pass in 1 2
  1902. do
  1903. for ac_arg
  1904. do
  1905. case $ac_arg in
  1906. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1908. | -silent | --silent | --silen | --sile | --sil)
  1909. continue ;;
  1910. *\'*)
  1911. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1912. esac
  1913. case $ac_pass in
  1914. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1915. 2)
  1916. as_fn_append ac_configure_args1 " '$ac_arg'"
  1917. if test $ac_must_keep_next = true; then
  1918. ac_must_keep_next=false # Got value, back to normal.
  1919. else
  1920. case $ac_arg in
  1921. *=* | --config-cache | -C | -disable-* | --disable-* \
  1922. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1923. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1924. | -with-* | --with-* | -without-* | --without-* | --x)
  1925. case "$ac_configure_args0 " in
  1926. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1927. esac
  1928. ;;
  1929. -* ) ac_must_keep_next=true ;;
  1930. esac
  1931. fi
  1932. as_fn_append ac_configure_args " '$ac_arg'"
  1933. ;;
  1934. esac
  1935. done
  1936. done
  1937. { ac_configure_args0=; unset ac_configure_args0;}
  1938. { ac_configure_args1=; unset ac_configure_args1;}
  1939. # When interrupted or exit'd, cleanup temporary files, and complete
  1940. # config.log. We remove comments because anyway the quotes in there
  1941. # would cause problems or look ugly.
  1942. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1943. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1944. trap 'exit_status=$?
  1945. # Save into config.log some information that might help in debugging.
  1946. {
  1947. echo
  1948. $as_echo "## ---------------- ##
  1949. ## Cache variables. ##
  1950. ## ---------------- ##"
  1951. echo
  1952. # The following way of writing the cache mishandles newlines in values,
  1953. (
  1954. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1955. eval ac_val=\$$ac_var
  1956. case $ac_val in #(
  1957. *${as_nl}*)
  1958. case $ac_var in #(
  1959. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1960. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1961. esac
  1962. case $ac_var in #(
  1963. _ | IFS | as_nl) ;; #(
  1964. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1965. *) { eval $ac_var=; unset $ac_var;} ;;
  1966. esac ;;
  1967. esac
  1968. done
  1969. (set) 2>&1 |
  1970. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1971. *${as_nl}ac_space=\ *)
  1972. sed -n \
  1973. "s/'\''/'\''\\\\'\'''\''/g;
  1974. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1975. ;; #(
  1976. *)
  1977. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1978. ;;
  1979. esac |
  1980. sort
  1981. )
  1982. echo
  1983. $as_echo "## ----------------- ##
  1984. ## Output variables. ##
  1985. ## ----------------- ##"
  1986. echo
  1987. for ac_var in $ac_subst_vars
  1988. do
  1989. eval ac_val=\$$ac_var
  1990. case $ac_val in
  1991. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1992. esac
  1993. $as_echo "$ac_var='\''$ac_val'\''"
  1994. done | sort
  1995. echo
  1996. if test -n "$ac_subst_files"; then
  1997. $as_echo "## ------------------- ##
  1998. ## File substitutions. ##
  1999. ## ------------------- ##"
  2000. echo
  2001. for ac_var in $ac_subst_files
  2002. do
  2003. eval ac_val=\$$ac_var
  2004. case $ac_val in
  2005. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2006. esac
  2007. $as_echo "$ac_var='\''$ac_val'\''"
  2008. done | sort
  2009. echo
  2010. fi
  2011. if test -s confdefs.h; then
  2012. $as_echo "## ----------- ##
  2013. ## confdefs.h. ##
  2014. ## ----------- ##"
  2015. echo
  2016. cat confdefs.h
  2017. echo
  2018. fi
  2019. test "$ac_signal" != 0 &&
  2020. $as_echo "$as_me: caught signal $ac_signal"
  2021. $as_echo "$as_me: exit $exit_status"
  2022. } >&5
  2023. rm -f core *.core core.conftest.* &&
  2024. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2025. exit $exit_status
  2026. ' 0
  2027. for ac_signal in 1 2 13 15; do
  2028. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2029. done
  2030. ac_signal=0
  2031. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2032. rm -f -r conftest* confdefs.h
  2033. $as_echo "/* confdefs.h */" > confdefs.h
  2034. # Predefined preprocessor variables.
  2035. cat >>confdefs.h <<_ACEOF
  2036. #define PACKAGE_NAME "$PACKAGE_NAME"
  2037. _ACEOF
  2038. cat >>confdefs.h <<_ACEOF
  2039. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2040. _ACEOF
  2041. cat >>confdefs.h <<_ACEOF
  2042. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2043. _ACEOF
  2044. cat >>confdefs.h <<_ACEOF
  2045. #define PACKAGE_STRING "$PACKAGE_STRING"
  2046. _ACEOF
  2047. cat >>confdefs.h <<_ACEOF
  2048. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2049. _ACEOF
  2050. cat >>confdefs.h <<_ACEOF
  2051. #define PACKAGE_URL "$PACKAGE_URL"
  2052. _ACEOF
  2053. # Let the site file select an alternate cache file if it wants to.
  2054. # Prefer an explicitly selected file to automatically selected ones.
  2055. ac_site_file1=NONE
  2056. ac_site_file2=NONE
  2057. if test -n "$CONFIG_SITE"; then
  2058. # We do not want a PATH search for config.site.
  2059. case $CONFIG_SITE in #((
  2060. -*) ac_site_file1=./$CONFIG_SITE;;
  2061. */*) ac_site_file1=$CONFIG_SITE;;
  2062. *) ac_site_file1=./$CONFIG_SITE;;
  2063. esac
  2064. elif test "x$prefix" != xNONE; then
  2065. ac_site_file1=$prefix/share/config.site
  2066. ac_site_file2=$prefix/etc/config.site
  2067. else
  2068. ac_site_file1=$ac_default_prefix/share/config.site
  2069. ac_site_file2=$ac_default_prefix/etc/config.site
  2070. fi
  2071. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2072. do
  2073. test "x$ac_site_file" = xNONE && continue
  2074. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2076. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2077. sed 's/^/| /' "$ac_site_file" >&5
  2078. . "$ac_site_file" \
  2079. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2080. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2081. as_fn_error $? "failed to load site script $ac_site_file
  2082. See \`config.log' for more details" "$LINENO" 5; }
  2083. fi
  2084. done
  2085. if test -r "$cache_file"; then
  2086. # Some versions of bash will fail to source /dev/null (special files
  2087. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2088. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2090. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2091. case $cache_file in
  2092. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2093. *) . "./$cache_file";;
  2094. esac
  2095. fi
  2096. else
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2098. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2099. >$cache_file
  2100. fi
  2101. as_fn_append ac_header_list " arpa/inet.h"
  2102. as_fn_append ac_header_list " inttypes.h"
  2103. as_fn_append ac_header_list " malloc.h"
  2104. as_fn_append ac_header_list " netinet/in_systm.h"
  2105. as_fn_append ac_header_list " netinet/ip.h"
  2106. as_fn_append ac_header_list " stdbool.h"
  2107. as_fn_append ac_header_list " stddef.h"
  2108. as_fn_append ac_header_list " stdint.h"
  2109. as_fn_append ac_header_list " varargs.h"
  2110. as_fn_append ac_func_list " arc4random"
  2111. as_fn_append ac_func_list " arc4random_stir"
  2112. as_fn_append ac_func_list " gai_strerror"
  2113. as_fn_append ac_func_list " getnameinfo"
  2114. as_fn_append ac_func_list " inet_aton"
  2115. as_fn_append ac_func_list " setgroups"
  2116. as_fn_append ac_func_list " sigaction"
  2117. as_fn_append ac_func_list " sigprocmask"
  2118. as_fn_append ac_func_list " snprintf"
  2119. as_fn_append ac_func_list " strdup"
  2120. as_fn_append ac_func_list " strlcat"
  2121. as_fn_append ac_func_list " strlcpy"
  2122. as_fn_append ac_func_list " strndup"
  2123. as_fn_append ac_func_list " strtok_r"
  2124. as_fn_append ac_func_list " unsetenv"
  2125. as_fn_append ac_func_list " vsnprintf"
  2126. as_fn_append ac_func_list " waitpid"
  2127. # Check that the precious variables saved in the cache have kept the same
  2128. # value.
  2129. ac_cache_corrupted=false
  2130. for ac_var in $ac_precious_vars; do
  2131. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2132. eval ac_new_set=\$ac_env_${ac_var}_set
  2133. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2134. eval ac_new_val=\$ac_env_${ac_var}_value
  2135. case $ac_old_set,$ac_new_set in
  2136. set,)
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2138. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2139. ac_cache_corrupted=: ;;
  2140. ,set)
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2142. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2143. ac_cache_corrupted=: ;;
  2144. ,);;
  2145. *)
  2146. if test "x$ac_old_val" != "x$ac_new_val"; then
  2147. # differences in whitespace do not lead to failure.
  2148. ac_old_val_w=`echo x $ac_old_val`
  2149. ac_new_val_w=`echo x $ac_new_val`
  2150. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2152. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2153. ac_cache_corrupted=:
  2154. else
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2156. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2157. eval $ac_var=\$ac_old_val
  2158. fi
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2160. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2162. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2163. fi;;
  2164. esac
  2165. # Pass precious variables to config.status.
  2166. if test "$ac_new_set" = set; then
  2167. case $ac_new_val in
  2168. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2169. *) ac_arg=$ac_var=$ac_new_val ;;
  2170. esac
  2171. case " $ac_configure_args " in
  2172. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2173. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2174. esac
  2175. fi
  2176. done
  2177. if $ac_cache_corrupted; then
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2179. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2181. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2182. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2183. fi
  2184. ## -------------------- ##
  2185. ## Main body of script. ##
  2186. ## -------------------- ##
  2187. ac_ext=c
  2188. ac_cpp='$CPP $CPPFLAGS'
  2189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2192. ac_config_headers="$ac_config_headers src/config.h"
  2193. ac_aux_dir=
  2194. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2195. if test -f "$ac_dir/install-sh"; then
  2196. ac_aux_dir=$ac_dir
  2197. ac_install_sh="$ac_aux_dir/install-sh -c"
  2198. break
  2199. elif test -f "$ac_dir/install.sh"; then
  2200. ac_aux_dir=$ac_dir
  2201. ac_install_sh="$ac_aux_dir/install.sh -c"
  2202. break
  2203. elif test -f "$ac_dir/shtool"; then
  2204. ac_aux_dir=$ac_dir
  2205. ac_install_sh="$ac_aux_dir/shtool install -c"
  2206. break
  2207. fi
  2208. done
  2209. if test -z "$ac_aux_dir"; then
  2210. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2211. fi
  2212. # These three variables are undocumented and unsupported,
  2213. # and are intended to be withdrawn in a future Autoconf release.
  2214. # They can cause serious problems if a builder's source tree is in a directory
  2215. # whose full name contains unusual characters.
  2216. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2217. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2218. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2219. # Make sure we can run config.sub.
  2220. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2221. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2223. $as_echo_n "checking build system type... " >&6; }
  2224. if ${ac_cv_build+:} false; then :
  2225. $as_echo_n "(cached) " >&6
  2226. else
  2227. ac_build_alias=$build_alias
  2228. test "x$ac_build_alias" = x &&
  2229. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2230. test "x$ac_build_alias" = x &&
  2231. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2232. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2233. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2234. fi
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2236. $as_echo "$ac_cv_build" >&6; }
  2237. case $ac_cv_build in
  2238. *-*-*) ;;
  2239. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2240. esac
  2241. build=$ac_cv_build
  2242. ac_save_IFS=$IFS; IFS='-'
  2243. set x $ac_cv_build
  2244. shift
  2245. build_cpu=$1
  2246. build_vendor=$2
  2247. shift; shift
  2248. # Remember, the first character of IFS is used to create $*,
  2249. # except with old shells:
  2250. build_os=$*
  2251. IFS=$ac_save_IFS
  2252. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2254. $as_echo_n "checking host system type... " >&6; }
  2255. if ${ac_cv_host+:} false; then :
  2256. $as_echo_n "(cached) " >&6
  2257. else
  2258. if test "x$host_alias" = x; then
  2259. ac_cv_host=$ac_cv_build
  2260. else
  2261. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2262. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2263. fi
  2264. fi
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2266. $as_echo "$ac_cv_host" >&6; }
  2267. case $ac_cv_host in
  2268. *-*-*) ;;
  2269. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2270. esac
  2271. host=$ac_cv_host
  2272. ac_save_IFS=$IFS; IFS='-'
  2273. set x $ac_cv_host
  2274. shift
  2275. host_cpu=$1
  2276. host_vendor=$2
  2277. shift; shift
  2278. # Remember, the first character of IFS is used to create $*,
  2279. # except with old shells:
  2280. host_os=$*
  2281. IFS=$ac_save_IFS
  2282. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2283. am__api_version='1.11'
  2284. # Find a good install program. We prefer a C program (faster),
  2285. # so one script is as good as another. But avoid the broken or
  2286. # incompatible versions:
  2287. # SysV /etc/install, /usr/sbin/install
  2288. # SunOS /usr/etc/install
  2289. # IRIX /sbin/install
  2290. # AIX /bin/install
  2291. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2292. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2293. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2294. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2295. # OS/2's system install, which has a completely different semantic
  2296. # ./install, which can be erroneously created by make from ./install.sh.
  2297. # Reject install programs that cannot install multiple files.
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2299. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2300. if test -z "$INSTALL"; then
  2301. if ${ac_cv_path_install+:} false; then :
  2302. $as_echo_n "(cached) " >&6
  2303. else
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. # Account for people who put trailing slashes in PATH elements.
  2310. case $as_dir/ in #((
  2311. ./ | .// | /[cC]/* | \
  2312. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2313. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2314. /usr/ucb/* ) ;;
  2315. *)
  2316. # OSF1 and SCO ODT 3.0 have their own names for install.
  2317. # Don't use installbsd from OSF since it installs stuff as root
  2318. # by default.
  2319. for ac_prog in ginstall scoinst install; do
  2320. for ac_exec_ext in '' $ac_executable_extensions; do
  2321. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2322. if test $ac_prog = install &&
  2323. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2324. # AIX install. It has an incompatible calling convention.
  2325. :
  2326. elif test $ac_prog = install &&
  2327. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2328. # program-specific install script used by HP pwplus--don't use.
  2329. :
  2330. else
  2331. rm -rf conftest.one conftest.two conftest.dir
  2332. echo one > conftest.one
  2333. echo two > conftest.two
  2334. mkdir conftest.dir
  2335. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2336. test -s conftest.one && test -s conftest.two &&
  2337. test -s conftest.dir/conftest.one &&
  2338. test -s conftest.dir/conftest.two
  2339. then
  2340. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2341. break 3
  2342. fi
  2343. fi
  2344. fi
  2345. done
  2346. done
  2347. ;;
  2348. esac
  2349. done
  2350. IFS=$as_save_IFS
  2351. rm -rf conftest.one conftest.two conftest.dir
  2352. fi
  2353. if test "${ac_cv_path_install+set}" = set; then
  2354. INSTALL=$ac_cv_path_install
  2355. else
  2356. # As a last resort, use the slow shell script. Don't cache a
  2357. # value for INSTALL within a source directory, because that will
  2358. # break other packages using the cache if that directory is
  2359. # removed, or if the value is a relative name.
  2360. INSTALL=$ac_install_sh
  2361. fi
  2362. fi
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2364. $as_echo "$INSTALL" >&6; }
  2365. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2366. # It thinks the first close brace ends the variable substitution.
  2367. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2368. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2369. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2371. $as_echo_n "checking whether build environment is sane... " >&6; }
  2372. # Just in case
  2373. sleep 1
  2374. echo timestamp > conftest.file
  2375. # Reject unsafe characters in $srcdir or the absolute working directory
  2376. # name. Accept space and tab only in the latter.
  2377. am_lf='
  2378. '
  2379. case `pwd` in
  2380. *[\\\"\#\$\&\'\`$am_lf]*)
  2381. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2382. esac
  2383. case $srcdir in
  2384. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2385. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2386. esac
  2387. # Do `set' in a subshell so we don't clobber the current shell's
  2388. # arguments. Must try -L first in case configure is actually a
  2389. # symlink; some systems play weird games with the mod time of symlinks
  2390. # (eg FreeBSD returns the mod time of the symlink's containing
  2391. # directory).
  2392. if (
  2393. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2394. if test "$*" = "X"; then
  2395. # -L didn't work.
  2396. set X `ls -t "$srcdir/configure" conftest.file`
  2397. fi
  2398. rm -f conftest.file
  2399. if test "$*" != "X $srcdir/configure conftest.file" \
  2400. && test "$*" != "X conftest.file $srcdir/configure"; then
  2401. # If neither matched, then we have a broken ls. This can happen
  2402. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2403. # broken ls alias from the environment. This has actually
  2404. # happened. Such a system could not be considered "sane".
  2405. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2406. alias in your environment" "$LINENO" 5
  2407. fi
  2408. test "$2" = conftest.file
  2409. )
  2410. then
  2411. # Ok.
  2412. :
  2413. else
  2414. as_fn_error $? "newly created file is older than distributed files!
  2415. Check your system clock" "$LINENO" 5
  2416. fi
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2418. $as_echo "yes" >&6; }
  2419. test "$program_prefix" != NONE &&
  2420. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2421. # Use a double $ so make ignores it.
  2422. test "$program_suffix" != NONE &&
  2423. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2424. # Double any \ or $.
  2425. # By default was `s,x,x', remove it if useless.
  2426. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2427. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2428. # expand $ac_aux_dir to an absolute path
  2429. am_aux_dir=`cd $ac_aux_dir && pwd`
  2430. if test x"${MISSING+set}" != xset; then
  2431. case $am_aux_dir in
  2432. *\ * | *\ *)
  2433. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2434. *)
  2435. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2436. esac
  2437. fi
  2438. # Use eval to expand $SHELL
  2439. if eval "$MISSING --run true"; then
  2440. am_missing_run="$MISSING --run "
  2441. else
  2442. am_missing_run=
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2444. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2445. fi
  2446. if test x"${install_sh}" != xset; then
  2447. case $am_aux_dir in
  2448. *\ * | *\ *)
  2449. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2450. *)
  2451. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2452. esac
  2453. fi
  2454. # Installed binaries are usually stripped using `strip' when the user
  2455. # run `make install-strip'. However `strip' might not be the right
  2456. # tool to use in cross-compilation environments, therefore Automake
  2457. # will honor the `STRIP' environment variable to overrule this program.
  2458. if test "$cross_compiling" != no; then
  2459. if test -n "$ac_tool_prefix"; then
  2460. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2461. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2463. $as_echo_n "checking for $ac_word... " >&6; }
  2464. if ${ac_cv_prog_STRIP+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if test -n "$STRIP"; then
  2468. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2469. else
  2470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471. for as_dir in $PATH
  2472. do
  2473. IFS=$as_save_IFS
  2474. test -z "$as_dir" && as_dir=.
  2475. for ac_exec_ext in '' $ac_executable_extensions; do
  2476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2477. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2479. break 2
  2480. fi
  2481. done
  2482. done
  2483. IFS=$as_save_IFS
  2484. fi
  2485. fi
  2486. STRIP=$ac_cv_prog_STRIP
  2487. if test -n "$STRIP"; then
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2489. $as_echo "$STRIP" >&6; }
  2490. else
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2492. $as_echo "no" >&6; }
  2493. fi
  2494. fi
  2495. if test -z "$ac_cv_prog_STRIP"; then
  2496. ac_ct_STRIP=$STRIP
  2497. # Extract the first word of "strip", so it can be a program name with args.
  2498. set dummy strip; ac_word=$2
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2500. $as_echo_n "checking for $ac_word... " >&6; }
  2501. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2502. $as_echo_n "(cached) " >&6
  2503. else
  2504. if test -n "$ac_ct_STRIP"; then
  2505. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2506. else
  2507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2508. for as_dir in $PATH
  2509. do
  2510. IFS=$as_save_IFS
  2511. test -z "$as_dir" && as_dir=.
  2512. for ac_exec_ext in '' $ac_executable_extensions; do
  2513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2514. ac_cv_prog_ac_ct_STRIP="strip"
  2515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2516. break 2
  2517. fi
  2518. done
  2519. done
  2520. IFS=$as_save_IFS
  2521. fi
  2522. fi
  2523. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2524. if test -n "$ac_ct_STRIP"; then
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2526. $as_echo "$ac_ct_STRIP" >&6; }
  2527. else
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2529. $as_echo "no" >&6; }
  2530. fi
  2531. if test "x$ac_ct_STRIP" = x; then
  2532. STRIP=":"
  2533. else
  2534. case $cross_compiling:$ac_tool_warned in
  2535. yes:)
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2538. ac_tool_warned=yes ;;
  2539. esac
  2540. STRIP=$ac_ct_STRIP
  2541. fi
  2542. else
  2543. STRIP="$ac_cv_prog_STRIP"
  2544. fi
  2545. fi
  2546. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2548. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2549. if test -z "$MKDIR_P"; then
  2550. if ${ac_cv_path_mkdir+:} false; then :
  2551. $as_echo_n "(cached) " >&6
  2552. else
  2553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2554. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2555. do
  2556. IFS=$as_save_IFS
  2557. test -z "$as_dir" && as_dir=.
  2558. for ac_prog in mkdir gmkdir; do
  2559. for ac_exec_ext in '' $ac_executable_extensions; do
  2560. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2561. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2562. 'mkdir (GNU coreutils) '* | \
  2563. 'mkdir (coreutils) '* | \
  2564. 'mkdir (fileutils) '4.1*)
  2565. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2566. break 3;;
  2567. esac
  2568. done
  2569. done
  2570. done
  2571. IFS=$as_save_IFS
  2572. fi
  2573. test -d ./--version && rmdir ./--version
  2574. if test "${ac_cv_path_mkdir+set}" = set; then
  2575. MKDIR_P="$ac_cv_path_mkdir -p"
  2576. else
  2577. # As a last resort, use the slow shell script. Don't cache a
  2578. # value for MKDIR_P within a source directory, because that will
  2579. # break other packages using the cache if that directory is
  2580. # removed, or if the value is a relative name.
  2581. MKDIR_P="$ac_install_sh -d"
  2582. fi
  2583. fi
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2585. $as_echo "$MKDIR_P" >&6; }
  2586. mkdir_p="$MKDIR_P"
  2587. case $mkdir_p in
  2588. [\\/$]* | ?:[\\/]*) ;;
  2589. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2590. esac
  2591. for ac_prog in gawk mawk nawk awk
  2592. do
  2593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2594. set dummy $ac_prog; ac_word=$2
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2596. $as_echo_n "checking for $ac_word... " >&6; }
  2597. if ${ac_cv_prog_AWK+:} false; then :
  2598. $as_echo_n "(cached) " >&6
  2599. else
  2600. if test -n "$AWK"; then
  2601. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2602. else
  2603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2604. for as_dir in $PATH
  2605. do
  2606. IFS=$as_save_IFS
  2607. test -z "$as_dir" && as_dir=.
  2608. for ac_exec_ext in '' $ac_executable_extensions; do
  2609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2610. ac_cv_prog_AWK="$ac_prog"
  2611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2612. break 2
  2613. fi
  2614. done
  2615. done
  2616. IFS=$as_save_IFS
  2617. fi
  2618. fi
  2619. AWK=$ac_cv_prog_AWK
  2620. if test -n "$AWK"; then
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2622. $as_echo "$AWK" >&6; }
  2623. else
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2625. $as_echo "no" >&6; }
  2626. fi
  2627. test -n "$AWK" && break
  2628. done
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2630. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2631. set x ${MAKE-make}
  2632. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2633. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2634. $as_echo_n "(cached) " >&6
  2635. else
  2636. cat >conftest.make <<\_ACEOF
  2637. SHELL = /bin/sh
  2638. all:
  2639. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2640. _ACEOF
  2641. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2642. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2643. *@@@%%%=?*=@@@%%%*)
  2644. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2645. *)
  2646. eval ac_cv_prog_make_${ac_make}_set=no;;
  2647. esac
  2648. rm -f conftest.make
  2649. fi
  2650. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2652. $as_echo "yes" >&6; }
  2653. SET_MAKE=
  2654. else
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2656. $as_echo "no" >&6; }
  2657. SET_MAKE="MAKE=${MAKE-make}"
  2658. fi
  2659. rm -rf .tst 2>/dev/null
  2660. mkdir .tst 2>/dev/null
  2661. if test -d .tst; then
  2662. am__leading_dot=.
  2663. else
  2664. am__leading_dot=_
  2665. fi
  2666. rmdir .tst 2>/dev/null
  2667. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2668. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2669. # is not polluted with repeated "-I."
  2670. am__isrc=' -I$(srcdir)'
  2671. # test to see if srcdir already configured
  2672. if test -f $srcdir/config.status; then
  2673. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2674. fi
  2675. fi
  2676. # test whether we have cygpath
  2677. if test -z "$CYGPATH_W"; then
  2678. if (cygpath --version) >/dev/null 2>/dev/null; then
  2679. CYGPATH_W='cygpath -w'
  2680. else
  2681. CYGPATH_W=echo
  2682. fi
  2683. fi
  2684. # Define the identity of the package.
  2685. PACKAGE='ngircd'
  2686. VERSION='25'
  2687. cat >>confdefs.h <<_ACEOF
  2688. #define PACKAGE "$PACKAGE"
  2689. _ACEOF
  2690. cat >>confdefs.h <<_ACEOF
  2691. #define VERSION "$VERSION"
  2692. _ACEOF
  2693. # Some tools Automake needs.
  2694. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2695. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2696. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2697. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2698. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2699. # We need awk for the "check" target. The system "awk" is bad on
  2700. # some platforms.
  2701. # Always define AMTAR for backward compatibility. Yes, it's still used
  2702. # in the wild :-( We should find a proper way to deprecate it ...
  2703. AMTAR='$${TAR-tar}'
  2704. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2705. # Check whether --enable-silent-rules was given.
  2706. if test "${enable_silent_rules+set}" = set; then :
  2707. enableval=$enable_silent_rules;
  2708. fi
  2709. case $enable_silent_rules in
  2710. yes) AM_DEFAULT_VERBOSITY=0;;
  2711. no) AM_DEFAULT_VERBOSITY=1;;
  2712. *) AM_DEFAULT_VERBOSITY=0;;
  2713. esac
  2714. am_make=${MAKE-make}
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2716. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2717. if ${am_cv_make_support_nested_variables+:} false; then :
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if $as_echo 'TRUE=$(BAR$(V))
  2721. BAR0=false
  2722. BAR1=true
  2723. V=1
  2724. am__doit:
  2725. @$(TRUE)
  2726. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2727. am_cv_make_support_nested_variables=yes
  2728. else
  2729. am_cv_make_support_nested_variables=no
  2730. fi
  2731. fi
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2733. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2734. if test $am_cv_make_support_nested_variables = yes; then
  2735. AM_V='$(V)'
  2736. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2737. else
  2738. AM_V=$AM_DEFAULT_VERBOSITY
  2739. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2740. fi
  2741. AM_BACKSLASH='\'
  2742. # -- Templates for config.h --
  2743. # -- C Compiler --
  2744. ac_ext=c
  2745. ac_cpp='$CPP $CPPFLAGS'
  2746. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2747. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2748. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2749. if test -n "$ac_tool_prefix"; then
  2750. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2751. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2753. $as_echo_n "checking for $ac_word... " >&6; }
  2754. if ${ac_cv_prog_CC+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. if test -n "$CC"; then
  2758. ac_cv_prog_CC="$CC" # Let the user override the test.
  2759. else
  2760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2761. for as_dir in $PATH
  2762. do
  2763. IFS=$as_save_IFS
  2764. test -z "$as_dir" && as_dir=.
  2765. for ac_exec_ext in '' $ac_executable_extensions; do
  2766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2767. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2769. break 2
  2770. fi
  2771. done
  2772. done
  2773. IFS=$as_save_IFS
  2774. fi
  2775. fi
  2776. CC=$ac_cv_prog_CC
  2777. if test -n "$CC"; then
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2779. $as_echo "$CC" >&6; }
  2780. else
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2782. $as_echo "no" >&6; }
  2783. fi
  2784. fi
  2785. if test -z "$ac_cv_prog_CC"; then
  2786. ac_ct_CC=$CC
  2787. # Extract the first word of "gcc", so it can be a program name with args.
  2788. set dummy gcc; ac_word=$2
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2790. $as_echo_n "checking for $ac_word... " >&6; }
  2791. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. if test -n "$ac_ct_CC"; then
  2795. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2796. else
  2797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2798. for as_dir in $PATH
  2799. do
  2800. IFS=$as_save_IFS
  2801. test -z "$as_dir" && as_dir=.
  2802. for ac_exec_ext in '' $ac_executable_extensions; do
  2803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2804. ac_cv_prog_ac_ct_CC="gcc"
  2805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2806. break 2
  2807. fi
  2808. done
  2809. done
  2810. IFS=$as_save_IFS
  2811. fi
  2812. fi
  2813. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2814. if test -n "$ac_ct_CC"; then
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2816. $as_echo "$ac_ct_CC" >&6; }
  2817. else
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2819. $as_echo "no" >&6; }
  2820. fi
  2821. if test "x$ac_ct_CC" = x; then
  2822. CC=""
  2823. else
  2824. case $cross_compiling:$ac_tool_warned in
  2825. yes:)
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2828. ac_tool_warned=yes ;;
  2829. esac
  2830. CC=$ac_ct_CC
  2831. fi
  2832. else
  2833. CC="$ac_cv_prog_CC"
  2834. fi
  2835. if test -z "$CC"; then
  2836. if test -n "$ac_tool_prefix"; then
  2837. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2838. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2840. $as_echo_n "checking for $ac_word... " >&6; }
  2841. if ${ac_cv_prog_CC+:} false; then :
  2842. $as_echo_n "(cached) " >&6
  2843. else
  2844. if test -n "$CC"; then
  2845. ac_cv_prog_CC="$CC" # Let the user override the test.
  2846. else
  2847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2848. for as_dir in $PATH
  2849. do
  2850. IFS=$as_save_IFS
  2851. test -z "$as_dir" && as_dir=.
  2852. for ac_exec_ext in '' $ac_executable_extensions; do
  2853. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2854. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2856. break 2
  2857. fi
  2858. done
  2859. done
  2860. IFS=$as_save_IFS
  2861. fi
  2862. fi
  2863. CC=$ac_cv_prog_CC
  2864. if test -n "$CC"; then
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2866. $as_echo "$CC" >&6; }
  2867. else
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2869. $as_echo "no" >&6; }
  2870. fi
  2871. fi
  2872. fi
  2873. if test -z "$CC"; then
  2874. # Extract the first word of "cc", so it can be a program name with args.
  2875. set dummy cc; ac_word=$2
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2877. $as_echo_n "checking for $ac_word... " >&6; }
  2878. if ${ac_cv_prog_CC+:} false; then :
  2879. $as_echo_n "(cached) " >&6
  2880. else
  2881. if test -n "$CC"; then
  2882. ac_cv_prog_CC="$CC" # Let the user override the test.
  2883. else
  2884. ac_prog_rejected=no
  2885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2886. for as_dir in $PATH
  2887. do
  2888. IFS=$as_save_IFS
  2889. test -z "$as_dir" && as_dir=.
  2890. for ac_exec_ext in '' $ac_executable_extensions; do
  2891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2892. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2893. ac_prog_rejected=yes
  2894. continue
  2895. fi
  2896. ac_cv_prog_CC="cc"
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2898. break 2
  2899. fi
  2900. done
  2901. done
  2902. IFS=$as_save_IFS
  2903. if test $ac_prog_rejected = yes; then
  2904. # We found a bogon in the path, so make sure we never use it.
  2905. set dummy $ac_cv_prog_CC
  2906. shift
  2907. if test $# != 0; then
  2908. # We chose a different compiler from the bogus one.
  2909. # However, it has the same basename, so the bogon will be chosen
  2910. # first if we set CC to just the basename; use the full file name.
  2911. shift
  2912. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2913. fi
  2914. fi
  2915. fi
  2916. fi
  2917. CC=$ac_cv_prog_CC
  2918. if test -n "$CC"; then
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2920. $as_echo "$CC" >&6; }
  2921. else
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2923. $as_echo "no" >&6; }
  2924. fi
  2925. fi
  2926. if test -z "$CC"; then
  2927. if test -n "$ac_tool_prefix"; then
  2928. for ac_prog in cl.exe
  2929. do
  2930. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2931. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2933. $as_echo_n "checking for $ac_word... " >&6; }
  2934. if ${ac_cv_prog_CC+:} false; then :
  2935. $as_echo_n "(cached) " >&6
  2936. else
  2937. if test -n "$CC"; then
  2938. ac_cv_prog_CC="$CC" # Let the user override the test.
  2939. else
  2940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2941. for as_dir in $PATH
  2942. do
  2943. IFS=$as_save_IFS
  2944. test -z "$as_dir" && as_dir=.
  2945. for ac_exec_ext in '' $ac_executable_extensions; do
  2946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2947. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2949. break 2
  2950. fi
  2951. done
  2952. done
  2953. IFS=$as_save_IFS
  2954. fi
  2955. fi
  2956. CC=$ac_cv_prog_CC
  2957. if test -n "$CC"; then
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2959. $as_echo "$CC" >&6; }
  2960. else
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2962. $as_echo "no" >&6; }
  2963. fi
  2964. test -n "$CC" && break
  2965. done
  2966. fi
  2967. if test -z "$CC"; then
  2968. ac_ct_CC=$CC
  2969. for ac_prog in cl.exe
  2970. do
  2971. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2972. set dummy $ac_prog; ac_word=$2
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2974. $as_echo_n "checking for $ac_word... " >&6; }
  2975. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2976. $as_echo_n "(cached) " >&6
  2977. else
  2978. if test -n "$ac_ct_CC"; then
  2979. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2980. else
  2981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2982. for as_dir in $PATH
  2983. do
  2984. IFS=$as_save_IFS
  2985. test -z "$as_dir" && as_dir=.
  2986. for ac_exec_ext in '' $ac_executable_extensions; do
  2987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2988. ac_cv_prog_ac_ct_CC="$ac_prog"
  2989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2990. break 2
  2991. fi
  2992. done
  2993. done
  2994. IFS=$as_save_IFS
  2995. fi
  2996. fi
  2997. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2998. if test -n "$ac_ct_CC"; then
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3000. $as_echo "$ac_ct_CC" >&6; }
  3001. else
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3003. $as_echo "no" >&6; }
  3004. fi
  3005. test -n "$ac_ct_CC" && break
  3006. done
  3007. if test "x$ac_ct_CC" = x; then
  3008. CC=""
  3009. else
  3010. case $cross_compiling:$ac_tool_warned in
  3011. yes:)
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3013. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3014. ac_tool_warned=yes ;;
  3015. esac
  3016. CC=$ac_ct_CC
  3017. fi
  3018. fi
  3019. fi
  3020. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3021. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3022. as_fn_error $? "no acceptable C compiler found in \$PATH
  3023. See \`config.log' for more details" "$LINENO" 5; }
  3024. # Provide some information about the compiler.
  3025. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3026. set X $ac_compile
  3027. ac_compiler=$2
  3028. for ac_option in --version -v -V -qversion; do
  3029. { { ac_try="$ac_compiler $ac_option >&5"
  3030. case "(($ac_try" in
  3031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3032. *) ac_try_echo=$ac_try;;
  3033. esac
  3034. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3035. $as_echo "$ac_try_echo"; } >&5
  3036. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3037. ac_status=$?
  3038. if test -s conftest.err; then
  3039. sed '10a\
  3040. ... rest of stderr output deleted ...
  3041. 10q' conftest.err >conftest.er1
  3042. cat conftest.er1 >&5
  3043. fi
  3044. rm -f conftest.er1 conftest.err
  3045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3046. test $ac_status = 0; }
  3047. done
  3048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3049. /* end confdefs.h. */
  3050. int
  3051. main ()
  3052. {
  3053. ;
  3054. return 0;
  3055. }
  3056. _ACEOF
  3057. ac_clean_files_save=$ac_clean_files
  3058. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3059. # Try to create an executable without -o first, disregard a.out.
  3060. # It will help us diagnose broken compilers, and finding out an intuition
  3061. # of exeext.
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3063. $as_echo_n "checking whether the C compiler works... " >&6; }
  3064. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3065. # The possible output files:
  3066. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3067. ac_rmfiles=
  3068. for ac_file in $ac_files
  3069. do
  3070. case $ac_file in
  3071. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3072. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3073. esac
  3074. done
  3075. rm -f $ac_rmfiles
  3076. if { { ac_try="$ac_link_default"
  3077. case "(($ac_try" in
  3078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3079. *) ac_try_echo=$ac_try;;
  3080. esac
  3081. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3082. $as_echo "$ac_try_echo"; } >&5
  3083. (eval "$ac_link_default") 2>&5
  3084. ac_status=$?
  3085. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3086. test $ac_status = 0; }; then :
  3087. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3088. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3089. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3090. # so that the user can short-circuit this test for compilers unknown to
  3091. # Autoconf.
  3092. for ac_file in $ac_files ''
  3093. do
  3094. test -f "$ac_file" || continue
  3095. case $ac_file in
  3096. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3097. ;;
  3098. [ab].out )
  3099. # We found the default executable, but exeext='' is most
  3100. # certainly right.
  3101. break;;
  3102. *.* )
  3103. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3104. then :; else
  3105. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3106. fi
  3107. # We set ac_cv_exeext here because the later test for it is not
  3108. # safe: cross compilers may not add the suffix if given an `-o'
  3109. # argument, so we may need to know it at that point already.
  3110. # Even if this section looks crufty: it has the advantage of
  3111. # actually working.
  3112. break;;
  3113. * )
  3114. break;;
  3115. esac
  3116. done
  3117. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3118. else
  3119. ac_file=''
  3120. fi
  3121. if test -z "$ac_file"; then :
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3123. $as_echo "no" >&6; }
  3124. $as_echo "$as_me: failed program was:" >&5
  3125. sed 's/^/| /' conftest.$ac_ext >&5
  3126. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3127. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3128. as_fn_error 77 "C compiler cannot create executables
  3129. See \`config.log' for more details" "$LINENO" 5; }
  3130. else
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3132. $as_echo "yes" >&6; }
  3133. fi
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3135. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3137. $as_echo "$ac_file" >&6; }
  3138. ac_exeext=$ac_cv_exeext
  3139. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3140. ac_clean_files=$ac_clean_files_save
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3142. $as_echo_n "checking for suffix of executables... " >&6; }
  3143. if { { ac_try="$ac_link"
  3144. case "(($ac_try" in
  3145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3146. *) ac_try_echo=$ac_try;;
  3147. esac
  3148. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3149. $as_echo "$ac_try_echo"; } >&5
  3150. (eval "$ac_link") 2>&5
  3151. ac_status=$?
  3152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3153. test $ac_status = 0; }; then :
  3154. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3155. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3156. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3157. # `rm'.
  3158. for ac_file in conftest.exe conftest conftest.*; do
  3159. test -f "$ac_file" || continue
  3160. case $ac_file in
  3161. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3162. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3163. break;;
  3164. * ) break;;
  3165. esac
  3166. done
  3167. else
  3168. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3169. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3170. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3171. See \`config.log' for more details" "$LINENO" 5; }
  3172. fi
  3173. rm -f conftest conftest$ac_cv_exeext
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3175. $as_echo "$ac_cv_exeext" >&6; }
  3176. rm -f conftest.$ac_ext
  3177. EXEEXT=$ac_cv_exeext
  3178. ac_exeext=$EXEEXT
  3179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3180. /* end confdefs.h. */
  3181. #include <stdio.h>
  3182. int
  3183. main ()
  3184. {
  3185. FILE *f = fopen ("conftest.out", "w");
  3186. return ferror (f) || fclose (f) != 0;
  3187. ;
  3188. return 0;
  3189. }
  3190. _ACEOF
  3191. ac_clean_files="$ac_clean_files conftest.out"
  3192. # Check that the compiler produces executables we can run. If not, either
  3193. # the compiler is broken, or we cross compile.
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3195. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3196. if test "$cross_compiling" != yes; then
  3197. { { ac_try="$ac_link"
  3198. case "(($ac_try" in
  3199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3200. *) ac_try_echo=$ac_try;;
  3201. esac
  3202. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3203. $as_echo "$ac_try_echo"; } >&5
  3204. (eval "$ac_link") 2>&5
  3205. ac_status=$?
  3206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3207. test $ac_status = 0; }
  3208. if { ac_try='./conftest$ac_cv_exeext'
  3209. { { case "(($ac_try" in
  3210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3211. *) ac_try_echo=$ac_try;;
  3212. esac
  3213. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3214. $as_echo "$ac_try_echo"; } >&5
  3215. (eval "$ac_try") 2>&5
  3216. ac_status=$?
  3217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3218. test $ac_status = 0; }; }; then
  3219. cross_compiling=no
  3220. else
  3221. if test "$cross_compiling" = maybe; then
  3222. cross_compiling=yes
  3223. else
  3224. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3225. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3226. as_fn_error $? "cannot run C compiled programs.
  3227. If you meant to cross compile, use \`--host'.
  3228. See \`config.log' for more details" "$LINENO" 5; }
  3229. fi
  3230. fi
  3231. fi
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3233. $as_echo "$cross_compiling" >&6; }
  3234. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3235. ac_clean_files=$ac_clean_files_save
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3237. $as_echo_n "checking for suffix of object files... " >&6; }
  3238. if ${ac_cv_objext+:} false; then :
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3242. /* end confdefs.h. */
  3243. int
  3244. main ()
  3245. {
  3246. ;
  3247. return 0;
  3248. }
  3249. _ACEOF
  3250. rm -f conftest.o conftest.obj
  3251. if { { ac_try="$ac_compile"
  3252. case "(($ac_try" in
  3253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3254. *) ac_try_echo=$ac_try;;
  3255. esac
  3256. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3257. $as_echo "$ac_try_echo"; } >&5
  3258. (eval "$ac_compile") 2>&5
  3259. ac_status=$?
  3260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3261. test $ac_status = 0; }; then :
  3262. for ac_file in conftest.o conftest.obj conftest.*; do
  3263. test -f "$ac_file" || continue;
  3264. case $ac_file in
  3265. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3266. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3267. break;;
  3268. esac
  3269. done
  3270. else
  3271. $as_echo "$as_me: failed program was:" >&5
  3272. sed 's/^/| /' conftest.$ac_ext >&5
  3273. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3274. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3275. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3276. See \`config.log' for more details" "$LINENO" 5; }
  3277. fi
  3278. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3281. $as_echo "$ac_cv_objext" >&6; }
  3282. OBJEXT=$ac_cv_objext
  3283. ac_objext=$OBJEXT
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3285. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3286. if ${ac_cv_c_compiler_gnu+:} false; then :
  3287. $as_echo_n "(cached) " >&6
  3288. else
  3289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3290. /* end confdefs.h. */
  3291. int
  3292. main ()
  3293. {
  3294. #ifndef __GNUC__
  3295. choke me
  3296. #endif
  3297. ;
  3298. return 0;
  3299. }
  3300. _ACEOF
  3301. if ac_fn_c_try_compile "$LINENO"; then :
  3302. ac_compiler_gnu=yes
  3303. else
  3304. ac_compiler_gnu=no
  3305. fi
  3306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3307. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3310. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3311. if test $ac_compiler_gnu = yes; then
  3312. GCC=yes
  3313. else
  3314. GCC=
  3315. fi
  3316. ac_test_CFLAGS=${CFLAGS+set}
  3317. ac_save_CFLAGS=$CFLAGS
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3319. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3320. if ${ac_cv_prog_cc_g+:} false; then :
  3321. $as_echo_n "(cached) " >&6
  3322. else
  3323. ac_save_c_werror_flag=$ac_c_werror_flag
  3324. ac_c_werror_flag=yes
  3325. ac_cv_prog_cc_g=no
  3326. CFLAGS="-g"
  3327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3328. /* end confdefs.h. */
  3329. int
  3330. main ()
  3331. {
  3332. ;
  3333. return 0;
  3334. }
  3335. _ACEOF
  3336. if ac_fn_c_try_compile "$LINENO"; then :
  3337. ac_cv_prog_cc_g=yes
  3338. else
  3339. CFLAGS=""
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. int
  3343. main ()
  3344. {
  3345. ;
  3346. return 0;
  3347. }
  3348. _ACEOF
  3349. if ac_fn_c_try_compile "$LINENO"; then :
  3350. else
  3351. ac_c_werror_flag=$ac_save_c_werror_flag
  3352. CFLAGS="-g"
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. int
  3356. main ()
  3357. {
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. if ac_fn_c_try_compile "$LINENO"; then :
  3363. ac_cv_prog_cc_g=yes
  3364. fi
  3365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3366. fi
  3367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3368. fi
  3369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3370. ac_c_werror_flag=$ac_save_c_werror_flag
  3371. fi
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3373. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3374. if test "$ac_test_CFLAGS" = set; then
  3375. CFLAGS=$ac_save_CFLAGS
  3376. elif test $ac_cv_prog_cc_g = yes; then
  3377. if test "$GCC" = yes; then
  3378. CFLAGS="-g -O2"
  3379. else
  3380. CFLAGS="-g"
  3381. fi
  3382. else
  3383. if test "$GCC" = yes; then
  3384. CFLAGS="-O2"
  3385. else
  3386. CFLAGS=
  3387. fi
  3388. fi
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3390. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3391. if ${ac_cv_prog_cc_c89+:} false; then :
  3392. $as_echo_n "(cached) " >&6
  3393. else
  3394. ac_cv_prog_cc_c89=no
  3395. ac_save_CC=$CC
  3396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3397. /* end confdefs.h. */
  3398. #include <stdarg.h>
  3399. #include <stdio.h>
  3400. struct stat;
  3401. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3402. struct buf { int x; };
  3403. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3404. static char *e (p, i)
  3405. char **p;
  3406. int i;
  3407. {
  3408. return p[i];
  3409. }
  3410. static char *f (char * (*g) (char **, int), char **p, ...)
  3411. {
  3412. char *s;
  3413. va_list v;
  3414. va_start (v,p);
  3415. s = g (p, va_arg (v,int));
  3416. va_end (v);
  3417. return s;
  3418. }
  3419. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3420. function prototypes and stuff, but not '\xHH' hex character constants.
  3421. These don't provoke an error unfortunately, instead are silently treated
  3422. as 'x'. The following induces an error, until -std is added to get
  3423. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3424. array size at least. It's necessary to write '\x00'==0 to get something
  3425. that's true only with -std. */
  3426. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3427. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3428. inside strings and character constants. */
  3429. #define FOO(x) 'x'
  3430. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3431. int test (int i, double x);
  3432. struct s1 {int (*f) (int a);};
  3433. struct s2 {int (*f) (double a);};
  3434. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3435. int argc;
  3436. char **argv;
  3437. int
  3438. main ()
  3439. {
  3440. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3441. ;
  3442. return 0;
  3443. }
  3444. _ACEOF
  3445. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3446. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3447. do
  3448. CC="$ac_save_CC $ac_arg"
  3449. if ac_fn_c_try_compile "$LINENO"; then :
  3450. ac_cv_prog_cc_c89=$ac_arg
  3451. fi
  3452. rm -f core conftest.err conftest.$ac_objext
  3453. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3454. done
  3455. rm -f conftest.$ac_ext
  3456. CC=$ac_save_CC
  3457. fi
  3458. # AC_CACHE_VAL
  3459. case "x$ac_cv_prog_cc_c89" in
  3460. x)
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3462. $as_echo "none needed" >&6; } ;;
  3463. xno)
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3465. $as_echo "unsupported" >&6; } ;;
  3466. *)
  3467. CC="$CC $ac_cv_prog_cc_c89"
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3469. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3470. esac
  3471. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3472. fi
  3473. ac_ext=c
  3474. ac_cpp='$CPP $CPPFLAGS'
  3475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3478. DEPDIR="${am__leading_dot}deps"
  3479. ac_config_commands="$ac_config_commands depfiles"
  3480. am_make=${MAKE-make}
  3481. cat > confinc << 'END'
  3482. am__doit:
  3483. @echo this is the am__doit target
  3484. .PHONY: am__doit
  3485. END
  3486. # If we don't find an include directive, just comment out the code.
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3488. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3489. am__include="#"
  3490. am__quote=
  3491. _am_result=none
  3492. # First try GNU make style include.
  3493. echo "include confinc" > confmf
  3494. # Ignore all kinds of additional output from `make'.
  3495. case `$am_make -s -f confmf 2> /dev/null` in #(
  3496. *the\ am__doit\ target*)
  3497. am__include=include
  3498. am__quote=
  3499. _am_result=GNU
  3500. ;;
  3501. esac
  3502. # Now try BSD make style include.
  3503. if test "$am__include" = "#"; then
  3504. echo '.include "confinc"' > confmf
  3505. case `$am_make -s -f confmf 2> /dev/null` in #(
  3506. *the\ am__doit\ target*)
  3507. am__include=.include
  3508. am__quote="\""
  3509. _am_result=BSD
  3510. ;;
  3511. esac
  3512. fi
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3514. $as_echo "$_am_result" >&6; }
  3515. rm -f confinc confmf
  3516. # Check whether --enable-dependency-tracking was given.
  3517. if test "${enable_dependency_tracking+set}" = set; then :
  3518. enableval=$enable_dependency_tracking;
  3519. fi
  3520. if test "x$enable_dependency_tracking" != xno; then
  3521. am_depcomp="$ac_aux_dir/depcomp"
  3522. AMDEPBACKSLASH='\'
  3523. am__nodep='_no'
  3524. fi
  3525. if test "x$enable_dependency_tracking" != xno; then
  3526. AMDEP_TRUE=
  3527. AMDEP_FALSE='#'
  3528. else
  3529. AMDEP_TRUE='#'
  3530. AMDEP_FALSE=
  3531. fi
  3532. depcc="$CC" am_compiler_list=
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3534. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3535. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3539. # We make a subdir and do the tests there. Otherwise we can end up
  3540. # making bogus files that we don't know about and never remove. For
  3541. # instance it was reported that on HP-UX the gcc test will end up
  3542. # making a dummy file named `D' -- because `-MD' means `put the output
  3543. # in D'.
  3544. rm -rf conftest.dir
  3545. mkdir conftest.dir
  3546. # Copy depcomp to subdir because otherwise we won't find it if we're
  3547. # using a relative directory.
  3548. cp "$am_depcomp" conftest.dir
  3549. cd conftest.dir
  3550. # We will build objects and dependencies in a subdirectory because
  3551. # it helps to detect inapplicable dependency modes. For instance
  3552. # both Tru64's cc and ICC support -MD to output dependencies as a
  3553. # side effect of compilation, but ICC will put the dependencies in
  3554. # the current directory while Tru64 will put them in the object
  3555. # directory.
  3556. mkdir sub
  3557. am_cv_CC_dependencies_compiler_type=none
  3558. if test "$am_compiler_list" = ""; then
  3559. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3560. fi
  3561. am__universal=false
  3562. case " $depcc " in #(
  3563. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3564. esac
  3565. for depmode in $am_compiler_list; do
  3566. # Setup a source with many dependencies, because some compilers
  3567. # like to wrap large dependency lists on column 80 (with \), and
  3568. # we should not choose a depcomp mode which is confused by this.
  3569. #
  3570. # We need to recreate these files for each test, as the compiler may
  3571. # overwrite some of them when testing with obscure command lines.
  3572. # This happens at least with the AIX C compiler.
  3573. : > sub/conftest.c
  3574. for i in 1 2 3 4 5 6; do
  3575. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3576. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3577. # Solaris 8's {/usr,}/bin/sh.
  3578. touch sub/conftst$i.h
  3579. done
  3580. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3581. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3582. # mode. It turns out that the SunPro C++ compiler does not properly
  3583. # handle `-M -o', and we need to detect this. Also, some Intel
  3584. # versions had trouble with output in subdirs
  3585. am__obj=sub/conftest.${OBJEXT-o}
  3586. am__minus_obj="-o $am__obj"
  3587. case $depmode in
  3588. gcc)
  3589. # This depmode causes a compiler race in universal mode.
  3590. test "$am__universal" = false || continue
  3591. ;;
  3592. nosideeffect)
  3593. # after this tag, mechanisms are not by side-effect, so they'll
  3594. # only be used when explicitly requested
  3595. if test "x$enable_dependency_tracking" = xyes; then
  3596. continue
  3597. else
  3598. break
  3599. fi
  3600. ;;
  3601. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3602. # This compiler won't grok `-c -o', but also, the minuso test has
  3603. # not run yet. These depmodes are late enough in the game, and
  3604. # so weak that their functioning should not be impacted.
  3605. am__obj=conftest.${OBJEXT-o}
  3606. am__minus_obj=
  3607. ;;
  3608. none) break ;;
  3609. esac
  3610. if depmode=$depmode \
  3611. source=sub/conftest.c object=$am__obj \
  3612. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3613. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3614. >/dev/null 2>conftest.err &&
  3615. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3616. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3617. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3618. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3619. # icc doesn't choke on unknown options, it will just issue warnings
  3620. # or remarks (even with -Werror). So we grep stderr for any message
  3621. # that says an option was ignored or not supported.
  3622. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3623. # icc: Command line warning: ignoring option '-M'; no argument required
  3624. # The diagnosis changed in icc 8.0:
  3625. # icc: Command line remark: option '-MP' not supported
  3626. if (grep 'ignoring option' conftest.err ||
  3627. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3628. am_cv_CC_dependencies_compiler_type=$depmode
  3629. break
  3630. fi
  3631. fi
  3632. done
  3633. cd ..
  3634. rm -rf conftest.dir
  3635. else
  3636. am_cv_CC_dependencies_compiler_type=none
  3637. fi
  3638. fi
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3640. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3641. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3642. if
  3643. test "x$enable_dependency_tracking" != xno \
  3644. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3645. am__fastdepCC_TRUE=
  3646. am__fastdepCC_FALSE='#'
  3647. else
  3648. am__fastdepCC_TRUE='#'
  3649. am__fastdepCC_FALSE=
  3650. fi
  3651. case $ac_cv_prog_cc_stdc in #(
  3652. no) :
  3653. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3654. *) :
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3656. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3657. if ${ac_cv_prog_cc_c99+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. ac_cv_prog_cc_c99=no
  3661. ac_save_CC=$CC
  3662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3663. /* end confdefs.h. */
  3664. #include <stdarg.h>
  3665. #include <stdbool.h>
  3666. #include <stdlib.h>
  3667. #include <wchar.h>
  3668. #include <stdio.h>
  3669. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3670. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3671. #define showlist(...) puts (#__VA_ARGS__)
  3672. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3673. static void
  3674. test_varargs_macros (void)
  3675. {
  3676. int x = 1234;
  3677. int y = 5678;
  3678. debug ("Flag");
  3679. debug ("X = %d\n", x);
  3680. showlist (The first, second, and third items.);
  3681. report (x>y, "x is %d but y is %d", x, y);
  3682. }
  3683. // Check long long types.
  3684. #define BIG64 18446744073709551615ull
  3685. #define BIG32 4294967295ul
  3686. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3687. #if !BIG_OK
  3688. your preprocessor is broken;
  3689. #endif
  3690. #if BIG_OK
  3691. #else
  3692. your preprocessor is broken;
  3693. #endif
  3694. static long long int bignum = -9223372036854775807LL;
  3695. static unsigned long long int ubignum = BIG64;
  3696. struct incomplete_array
  3697. {
  3698. int datasize;
  3699. double data[];
  3700. };
  3701. struct named_init {
  3702. int number;
  3703. const wchar_t *name;
  3704. double average;
  3705. };
  3706. typedef const char *ccp;
  3707. static inline int
  3708. test_restrict (ccp restrict text)
  3709. {
  3710. // See if C++-style comments work.
  3711. // Iterate through items via the restricted pointer.
  3712. // Also check for declarations in for loops.
  3713. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3714. continue;
  3715. return 0;
  3716. }
  3717. // Check varargs and va_copy.
  3718. static void
  3719. test_varargs (const char *format, ...)
  3720. {
  3721. va_list args;
  3722. va_start (args, format);
  3723. va_list args_copy;
  3724. va_copy (args_copy, args);
  3725. const char *str;
  3726. int number;
  3727. float fnumber;
  3728. while (*format)
  3729. {
  3730. switch (*format++)
  3731. {
  3732. case 's': // string
  3733. str = va_arg (args_copy, const char *);
  3734. break;
  3735. case 'd': // int
  3736. number = va_arg (args_copy, int);
  3737. break;
  3738. case 'f': // float
  3739. fnumber = va_arg (args_copy, double);
  3740. break;
  3741. default:
  3742. break;
  3743. }
  3744. }
  3745. va_end (args_copy);
  3746. va_end (args);
  3747. }
  3748. int
  3749. main ()
  3750. {
  3751. // Check bool.
  3752. _Bool success = false;
  3753. // Check restrict.
  3754. if (test_restrict ("String literal") == 0)
  3755. success = true;
  3756. char *restrict newvar = "Another string";
  3757. // Check varargs.
  3758. test_varargs ("s, d' f .", "string", 65, 34.234);
  3759. test_varargs_macros ();
  3760. // Check flexible array members.
  3761. struct incomplete_array *ia =
  3762. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3763. ia->datasize = 10;
  3764. for (int i = 0; i < ia->datasize; ++i)
  3765. ia->data[i] = i * 1.234;
  3766. // Check named initializers.
  3767. struct named_init ni = {
  3768. .number = 34,
  3769. .name = L"Test wide string",
  3770. .average = 543.34343,
  3771. };
  3772. ni.number = 58;
  3773. int dynamic_array[ni.number];
  3774. dynamic_array[ni.number - 1] = 543;
  3775. // work around unused variable warnings
  3776. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3777. || dynamic_array[ni.number - 1] != 543);
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3783. do
  3784. CC="$ac_save_CC $ac_arg"
  3785. if ac_fn_c_try_compile "$LINENO"; then :
  3786. ac_cv_prog_cc_c99=$ac_arg
  3787. fi
  3788. rm -f core conftest.err conftest.$ac_objext
  3789. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3790. done
  3791. rm -f conftest.$ac_ext
  3792. CC=$ac_save_CC
  3793. fi
  3794. # AC_CACHE_VAL
  3795. case "x$ac_cv_prog_cc_c99" in
  3796. x)
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3798. $as_echo "none needed" >&6; } ;;
  3799. xno)
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3801. $as_echo "unsupported" >&6; } ;;
  3802. *)
  3803. CC="$CC $ac_cv_prog_cc_c99"
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3805. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3806. esac
  3807. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3808. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3809. else
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3811. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3812. if ${ac_cv_prog_cc_c89+:} false; then :
  3813. $as_echo_n "(cached) " >&6
  3814. else
  3815. ac_cv_prog_cc_c89=no
  3816. ac_save_CC=$CC
  3817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3818. /* end confdefs.h. */
  3819. #include <stdarg.h>
  3820. #include <stdio.h>
  3821. struct stat;
  3822. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3823. struct buf { int x; };
  3824. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3825. static char *e (p, i)
  3826. char **p;
  3827. int i;
  3828. {
  3829. return p[i];
  3830. }
  3831. static char *f (char * (*g) (char **, int), char **p, ...)
  3832. {
  3833. char *s;
  3834. va_list v;
  3835. va_start (v,p);
  3836. s = g (p, va_arg (v,int));
  3837. va_end (v);
  3838. return s;
  3839. }
  3840. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3841. function prototypes and stuff, but not '\xHH' hex character constants.
  3842. These don't provoke an error unfortunately, instead are silently treated
  3843. as 'x'. The following induces an error, until -std is added to get
  3844. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3845. array size at least. It's necessary to write '\x00'==0 to get something
  3846. that's true only with -std. */
  3847. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3848. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3849. inside strings and character constants. */
  3850. #define FOO(x) 'x'
  3851. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3852. int test (int i, double x);
  3853. struct s1 {int (*f) (int a);};
  3854. struct s2 {int (*f) (double a);};
  3855. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3856. int argc;
  3857. char **argv;
  3858. int
  3859. main ()
  3860. {
  3861. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3862. ;
  3863. return 0;
  3864. }
  3865. _ACEOF
  3866. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3867. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3868. do
  3869. CC="$ac_save_CC $ac_arg"
  3870. if ac_fn_c_try_compile "$LINENO"; then :
  3871. ac_cv_prog_cc_c89=$ac_arg
  3872. fi
  3873. rm -f core conftest.err conftest.$ac_objext
  3874. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3875. done
  3876. rm -f conftest.$ac_ext
  3877. CC=$ac_save_CC
  3878. fi
  3879. # AC_CACHE_VAL
  3880. case "x$ac_cv_prog_cc_c89" in
  3881. x)
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3883. $as_echo "none needed" >&6; } ;;
  3884. xno)
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3886. $as_echo "unsupported" >&6; } ;;
  3887. *)
  3888. CC="$CC $ac_cv_prog_cc_c89"
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3890. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3891. esac
  3892. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3893. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3894. else
  3895. ac_cv_prog_cc_stdc=no
  3896. fi
  3897. fi
  3898. ;;
  3899. esac
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  3901. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  3902. if ${ac_cv_prog_cc_stdc+:} false; then :
  3903. $as_echo_n "(cached) " >&6
  3904. fi
  3905. case $ac_cv_prog_cc_stdc in #(
  3906. no) :
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3908. $as_echo "unsupported" >&6; } ;; #(
  3909. '') :
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3911. $as_echo "none needed" >&6; } ;; #(
  3912. *) :
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  3914. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  3915. esac
  3916. # -- Helper programs --
  3917. if test -n "$ac_tool_prefix"; then
  3918. for ac_prog in ar lib "link -lib"
  3919. do
  3920. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3921. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3923. $as_echo_n "checking for $ac_word... " >&6; }
  3924. if ${ac_cv_prog_AR+:} false; then :
  3925. $as_echo_n "(cached) " >&6
  3926. else
  3927. if test -n "$AR"; then
  3928. ac_cv_prog_AR="$AR" # Let the user override the test.
  3929. else
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_exec_ext in '' $ac_executable_extensions; do
  3936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3937. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3939. break 2
  3940. fi
  3941. done
  3942. done
  3943. IFS=$as_save_IFS
  3944. fi
  3945. fi
  3946. AR=$ac_cv_prog_AR
  3947. if test -n "$AR"; then
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3949. $as_echo "$AR" >&6; }
  3950. else
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3952. $as_echo "no" >&6; }
  3953. fi
  3954. test -n "$AR" && break
  3955. done
  3956. fi
  3957. if test -z "$AR"; then
  3958. ac_ct_AR=$AR
  3959. for ac_prog in ar lib "link -lib"
  3960. do
  3961. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3962. set dummy $ac_prog; ac_word=$2
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3964. $as_echo_n "checking for $ac_word... " >&6; }
  3965. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. if test -n "$ac_ct_AR"; then
  3969. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3970. else
  3971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3972. for as_dir in $PATH
  3973. do
  3974. IFS=$as_save_IFS
  3975. test -z "$as_dir" && as_dir=.
  3976. for ac_exec_ext in '' $ac_executable_extensions; do
  3977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3978. ac_cv_prog_ac_ct_AR="$ac_prog"
  3979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3980. break 2
  3981. fi
  3982. done
  3983. done
  3984. IFS=$as_save_IFS
  3985. fi
  3986. fi
  3987. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3988. if test -n "$ac_ct_AR"; then
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3990. $as_echo "$ac_ct_AR" >&6; }
  3991. else
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3993. $as_echo "no" >&6; }
  3994. fi
  3995. test -n "$ac_ct_AR" && break
  3996. done
  3997. if test "x$ac_ct_AR" = x; then
  3998. AR="false"
  3999. else
  4000. case $cross_compiling:$ac_tool_warned in
  4001. yes:)
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4004. ac_tool_warned=yes ;;
  4005. esac
  4006. AR=$ac_ct_AR
  4007. fi
  4008. fi
  4009. : ${AR=ar}
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4011. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4012. if ${am_cv_ar_interface+:} false; then :
  4013. $as_echo_n "(cached) " >&6
  4014. else
  4015. am_cv_ar_interface=ar
  4016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4017. /* end confdefs.h. */
  4018. int some_variable = 0;
  4019. _ACEOF
  4020. if ac_fn_c_try_compile "$LINENO"; then :
  4021. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4022. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4023. (eval $am_ar_try) 2>&5
  4024. ac_status=$?
  4025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4026. test $ac_status = 0; }
  4027. if test "$ac_status" -eq 0; then
  4028. am_cv_ar_interface=ar
  4029. else
  4030. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4031. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4032. (eval $am_ar_try) 2>&5
  4033. ac_status=$?
  4034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4035. test $ac_status = 0; }
  4036. if test "$ac_status" -eq 0; then
  4037. am_cv_ar_interface=lib
  4038. else
  4039. am_cv_ar_interface=unknown
  4040. fi
  4041. fi
  4042. rm -f conftest.lib libconftest.a
  4043. fi
  4044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4045. fi
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4047. $as_echo "$am_cv_ar_interface" >&6; }
  4048. case $am_cv_ar_interface in
  4049. ar)
  4050. ;;
  4051. lib)
  4052. # Microsoft lib, so override with the ar-lib wrapper script.
  4053. # FIXME: It is wrong to rewrite AR.
  4054. # But if we don't then we get into trouble of one sort or another.
  4055. # A longer-term fix would be to have automake use am__AR in this case,
  4056. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4057. # similar.
  4058. AR="$am_aux_dir/ar-lib $AR"
  4059. ;;
  4060. unknown)
  4061. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4062. ;;
  4063. esac
  4064. for ac_prog in gawk mawk nawk awk
  4065. do
  4066. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4067. set dummy $ac_prog; ac_word=$2
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4069. $as_echo_n "checking for $ac_word... " >&6; }
  4070. if ${ac_cv_prog_AWK+:} false; then :
  4071. $as_echo_n "(cached) " >&6
  4072. else
  4073. if test -n "$AWK"; then
  4074. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4075. else
  4076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4077. for as_dir in $PATH
  4078. do
  4079. IFS=$as_save_IFS
  4080. test -z "$as_dir" && as_dir=.
  4081. for ac_exec_ext in '' $ac_executable_extensions; do
  4082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4083. ac_cv_prog_AWK="$ac_prog"
  4084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4085. break 2
  4086. fi
  4087. done
  4088. done
  4089. IFS=$as_save_IFS
  4090. fi
  4091. fi
  4092. AWK=$ac_cv_prog_AWK
  4093. if test -n "$AWK"; then
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4095. $as_echo "$AWK" >&6; }
  4096. else
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4098. $as_echo "no" >&6; }
  4099. fi
  4100. test -n "$AWK" && break
  4101. done
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4103. $as_echo_n "checking whether ln -s works... " >&6; }
  4104. LN_S=$as_ln_s
  4105. if test "$LN_S" = "ln -s"; then
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4107. $as_echo "yes" >&6; }
  4108. else
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4110. $as_echo "no, using $LN_S" >&6; }
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4113. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4114. set x ${MAKE-make}
  4115. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4116. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4117. $as_echo_n "(cached) " >&6
  4118. else
  4119. cat >conftest.make <<\_ACEOF
  4120. SHELL = /bin/sh
  4121. all:
  4122. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4123. _ACEOF
  4124. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4125. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4126. *@@@%%%=?*=@@@%%%*)
  4127. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4128. *)
  4129. eval ac_cv_prog_make_${ac_make}_set=no;;
  4130. esac
  4131. rm -f conftest.make
  4132. fi
  4133. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4135. $as_echo "yes" >&6; }
  4136. SET_MAKE=
  4137. else
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4139. $as_echo "no" >&6; }
  4140. SET_MAKE="MAKE=${MAKE-make}"
  4141. fi
  4142. if test -n "$ac_tool_prefix"; then
  4143. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4144. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4146. $as_echo_n "checking for $ac_word... " >&6; }
  4147. if ${ac_cv_prog_RANLIB+:} false; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. if test -n "$RANLIB"; then
  4151. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4152. else
  4153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4154. for as_dir in $PATH
  4155. do
  4156. IFS=$as_save_IFS
  4157. test -z "$as_dir" && as_dir=.
  4158. for ac_exec_ext in '' $ac_executable_extensions; do
  4159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4160. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4162. break 2
  4163. fi
  4164. done
  4165. done
  4166. IFS=$as_save_IFS
  4167. fi
  4168. fi
  4169. RANLIB=$ac_cv_prog_RANLIB
  4170. if test -n "$RANLIB"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4172. $as_echo "$RANLIB" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. fi
  4178. if test -z "$ac_cv_prog_RANLIB"; then
  4179. ac_ct_RANLIB=$RANLIB
  4180. # Extract the first word of "ranlib", so it can be a program name with args.
  4181. set dummy ranlib; ac_word=$2
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4183. $as_echo_n "checking for $ac_word... " >&6; }
  4184. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. if test -n "$ac_ct_RANLIB"; then
  4188. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4189. else
  4190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4191. for as_dir in $PATH
  4192. do
  4193. IFS=$as_save_IFS
  4194. test -z "$as_dir" && as_dir=.
  4195. for ac_exec_ext in '' $ac_executable_extensions; do
  4196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4197. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4199. break 2
  4200. fi
  4201. done
  4202. done
  4203. IFS=$as_save_IFS
  4204. fi
  4205. fi
  4206. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4207. if test -n "$ac_ct_RANLIB"; then
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4209. $as_echo "$ac_ct_RANLIB" >&6; }
  4210. else
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4212. $as_echo "no" >&6; }
  4213. fi
  4214. if test "x$ac_ct_RANLIB" = x; then
  4215. RANLIB=":"
  4216. else
  4217. case $cross_compiling:$ac_tool_warned in
  4218. yes:)
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4220. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4221. ac_tool_warned=yes ;;
  4222. esac
  4223. RANLIB=$ac_ct_RANLIB
  4224. fi
  4225. else
  4226. RANLIB="$ac_cv_prog_RANLIB"
  4227. fi
  4228. # -- Compiler Features --
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4230. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4231. if ${ac_cv_c_const+:} false; then :
  4232. $as_echo_n "(cached) " >&6
  4233. else
  4234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4235. /* end confdefs.h. */
  4236. int
  4237. main ()
  4238. {
  4239. #ifndef __cplusplus
  4240. /* Ultrix mips cc rejects this sort of thing. */
  4241. typedef int charset[2];
  4242. const charset cs = { 0, 0 };
  4243. /* SunOS 4.1.1 cc rejects this. */
  4244. char const *const *pcpcc;
  4245. char **ppc;
  4246. /* NEC SVR4.0.2 mips cc rejects this. */
  4247. struct point {int x, y;};
  4248. static struct point const zero = {0,0};
  4249. /* AIX XL C 1.02.0.0 rejects this.
  4250. It does not let you subtract one const X* pointer from another in
  4251. an arm of an if-expression whose if-part is not a constant
  4252. expression */
  4253. const char *g = "string";
  4254. pcpcc = &g + (g ? g-g : 0);
  4255. /* HPUX 7.0 cc rejects these. */
  4256. ++pcpcc;
  4257. ppc = (char**) pcpcc;
  4258. pcpcc = (char const *const *) ppc;
  4259. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4260. char tx;
  4261. char *t = &tx;
  4262. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4263. *t++ = 0;
  4264. if (s) return 0;
  4265. }
  4266. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4267. int x[] = {25, 17};
  4268. const int *foo = &x[0];
  4269. ++foo;
  4270. }
  4271. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4272. typedef const int *iptr;
  4273. iptr p = 0;
  4274. ++p;
  4275. }
  4276. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4277. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4278. struct s { int j; const int *ap[3]; } bx;
  4279. struct s *b = &bx; b->j = 5;
  4280. }
  4281. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4282. const int foo = 10;
  4283. if (!foo) return 0;
  4284. }
  4285. return !cs[0] && !zero.x;
  4286. #endif
  4287. ;
  4288. return 0;
  4289. }
  4290. _ACEOF
  4291. if ac_fn_c_try_compile "$LINENO"; then :
  4292. ac_cv_c_const=yes
  4293. else
  4294. ac_cv_c_const=no
  4295. fi
  4296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4299. $as_echo "$ac_cv_c_const" >&6; }
  4300. if test $ac_cv_c_const = no; then
  4301. $as_echo "#define const /**/" >>confdefs.h
  4302. fi
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4304. $as_echo_n "checking for inline... " >&6; }
  4305. if ${ac_cv_c_inline+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. ac_cv_c_inline=no
  4309. for ac_kw in inline __inline__ __inline; do
  4310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4311. /* end confdefs.h. */
  4312. #ifndef __cplusplus
  4313. typedef int foo_t;
  4314. static $ac_kw foo_t static_foo () {return 0; }
  4315. $ac_kw foo_t foo () {return 0; }
  4316. #endif
  4317. _ACEOF
  4318. if ac_fn_c_try_compile "$LINENO"; then :
  4319. ac_cv_c_inline=$ac_kw
  4320. fi
  4321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4322. test "$ac_cv_c_inline" != no && break
  4323. done
  4324. fi
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4326. $as_echo "$ac_cv_c_inline" >&6; }
  4327. case $ac_cv_c_inline in
  4328. inline | yes) ;;
  4329. *)
  4330. case $ac_cv_c_inline in
  4331. no) ac_val=;;
  4332. *) ac_val=$ac_cv_c_inline;;
  4333. esac
  4334. cat >>confdefs.h <<_ACEOF
  4335. #ifndef __cplusplus
  4336. #define inline $ac_val
  4337. #endif
  4338. _ACEOF
  4339. ;;
  4340. esac
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  4342. $as_echo_n "checking for function prototypes... " >&6; }
  4343. if test "$ac_cv_prog_cc_c89" != no; then
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4345. $as_echo "yes" >&6; }
  4346. $as_echo "#define PROTOTYPES 1" >>confdefs.h
  4347. $as_echo "#define __PROTOTYPES 1" >>confdefs.h
  4348. else
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4350. $as_echo "no" >&6; }
  4351. fi
  4352. ac_ext=c
  4353. ac_cpp='$CPP $CPPFLAGS'
  4354. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4355. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4356. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4358. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4359. # On Suns, sometimes $CPP names a directory.
  4360. if test -n "$CPP" && test -d "$CPP"; then
  4361. CPP=
  4362. fi
  4363. if test -z "$CPP"; then
  4364. if ${ac_cv_prog_CPP+:} false; then :
  4365. $as_echo_n "(cached) " >&6
  4366. else
  4367. # Double quotes because CPP needs to be expanded
  4368. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4369. do
  4370. ac_preproc_ok=false
  4371. for ac_c_preproc_warn_flag in '' yes
  4372. do
  4373. # Use a header file that comes with gcc, so configuring glibc
  4374. # with a fresh cross-compiler works.
  4375. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4376. # <limits.h> exists even on freestanding compilers.
  4377. # On the NeXT, cc -E runs the code through the compiler's parser,
  4378. # not just through cpp. "Syntax error" is here to catch this case.
  4379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4380. /* end confdefs.h. */
  4381. #ifdef __STDC__
  4382. # include <limits.h>
  4383. #else
  4384. # include <assert.h>
  4385. #endif
  4386. Syntax error
  4387. _ACEOF
  4388. if ac_fn_c_try_cpp "$LINENO"; then :
  4389. else
  4390. # Broken: fails on valid input.
  4391. continue
  4392. fi
  4393. rm -f conftest.err conftest.i conftest.$ac_ext
  4394. # OK, works on sane cases. Now check whether nonexistent headers
  4395. # can be detected and how.
  4396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4397. /* end confdefs.h. */
  4398. #include <ac_nonexistent.h>
  4399. _ACEOF
  4400. if ac_fn_c_try_cpp "$LINENO"; then :
  4401. # Broken: success on invalid input.
  4402. continue
  4403. else
  4404. # Passes both tests.
  4405. ac_preproc_ok=:
  4406. break
  4407. fi
  4408. rm -f conftest.err conftest.i conftest.$ac_ext
  4409. done
  4410. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4411. rm -f conftest.i conftest.err conftest.$ac_ext
  4412. if $ac_preproc_ok; then :
  4413. break
  4414. fi
  4415. done
  4416. ac_cv_prog_CPP=$CPP
  4417. fi
  4418. CPP=$ac_cv_prog_CPP
  4419. else
  4420. ac_cv_prog_CPP=$CPP
  4421. fi
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4423. $as_echo "$CPP" >&6; }
  4424. ac_preproc_ok=false
  4425. for ac_c_preproc_warn_flag in '' yes
  4426. do
  4427. # Use a header file that comes with gcc, so configuring glibc
  4428. # with a fresh cross-compiler works.
  4429. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4430. # <limits.h> exists even on freestanding compilers.
  4431. # On the NeXT, cc -E runs the code through the compiler's parser,
  4432. # not just through cpp. "Syntax error" is here to catch this case.
  4433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4434. /* end confdefs.h. */
  4435. #ifdef __STDC__
  4436. # include <limits.h>
  4437. #else
  4438. # include <assert.h>
  4439. #endif
  4440. Syntax error
  4441. _ACEOF
  4442. if ac_fn_c_try_cpp "$LINENO"; then :
  4443. else
  4444. # Broken: fails on valid input.
  4445. continue
  4446. fi
  4447. rm -f conftest.err conftest.i conftest.$ac_ext
  4448. # OK, works on sane cases. Now check whether nonexistent headers
  4449. # can be detected and how.
  4450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4451. /* end confdefs.h. */
  4452. #include <ac_nonexistent.h>
  4453. _ACEOF
  4454. if ac_fn_c_try_cpp "$LINENO"; then :
  4455. # Broken: success on invalid input.
  4456. continue
  4457. else
  4458. # Passes both tests.
  4459. ac_preproc_ok=:
  4460. break
  4461. fi
  4462. rm -f conftest.err conftest.i conftest.$ac_ext
  4463. done
  4464. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4465. rm -f conftest.i conftest.err conftest.$ac_ext
  4466. if $ac_preproc_ok; then :
  4467. else
  4468. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4470. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4471. See \`config.log' for more details" "$LINENO" 5; }
  4472. fi
  4473. ac_ext=c
  4474. ac_cpp='$CPP $CPPFLAGS'
  4475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4479. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4480. if ${ac_cv_path_GREP+:} false; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. if test -z "$GREP"; then
  4484. ac_path_GREP_found=false
  4485. # Loop through the user's path and test for each of PROGNAME-LIST
  4486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4487. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4488. do
  4489. IFS=$as_save_IFS
  4490. test -z "$as_dir" && as_dir=.
  4491. for ac_prog in grep ggrep; do
  4492. for ac_exec_ext in '' $ac_executable_extensions; do
  4493. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4494. as_fn_executable_p "$ac_path_GREP" || continue
  4495. # Check for GNU ac_path_GREP and select it if it is found.
  4496. # Check for GNU $ac_path_GREP
  4497. case `"$ac_path_GREP" --version 2>&1` in
  4498. *GNU*)
  4499. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4500. *)
  4501. ac_count=0
  4502. $as_echo_n 0123456789 >"conftest.in"
  4503. while :
  4504. do
  4505. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4506. mv "conftest.tmp" "conftest.in"
  4507. cp "conftest.in" "conftest.nl"
  4508. $as_echo 'GREP' >> "conftest.nl"
  4509. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4510. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4511. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4512. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4513. # Best one so far, save it but keep looking for a better one
  4514. ac_cv_path_GREP="$ac_path_GREP"
  4515. ac_path_GREP_max=$ac_count
  4516. fi
  4517. # 10*(2^10) chars as input seems more than enough
  4518. test $ac_count -gt 10 && break
  4519. done
  4520. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4521. esac
  4522. $ac_path_GREP_found && break 3
  4523. done
  4524. done
  4525. done
  4526. IFS=$as_save_IFS
  4527. if test -z "$ac_cv_path_GREP"; then
  4528. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4529. fi
  4530. else
  4531. ac_cv_path_GREP=$GREP
  4532. fi
  4533. fi
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4535. $as_echo "$ac_cv_path_GREP" >&6; }
  4536. GREP="$ac_cv_path_GREP"
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4538. $as_echo_n "checking for egrep... " >&6; }
  4539. if ${ac_cv_path_EGREP+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4543. then ac_cv_path_EGREP="$GREP -E"
  4544. else
  4545. if test -z "$EGREP"; then
  4546. ac_path_EGREP_found=false
  4547. # Loop through the user's path and test for each of PROGNAME-LIST
  4548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4549. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4550. do
  4551. IFS=$as_save_IFS
  4552. test -z "$as_dir" && as_dir=.
  4553. for ac_prog in egrep; do
  4554. for ac_exec_ext in '' $ac_executable_extensions; do
  4555. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4556. as_fn_executable_p "$ac_path_EGREP" || continue
  4557. # Check for GNU ac_path_EGREP and select it if it is found.
  4558. # Check for GNU $ac_path_EGREP
  4559. case `"$ac_path_EGREP" --version 2>&1` in
  4560. *GNU*)
  4561. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4562. *)
  4563. ac_count=0
  4564. $as_echo_n 0123456789 >"conftest.in"
  4565. while :
  4566. do
  4567. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4568. mv "conftest.tmp" "conftest.in"
  4569. cp "conftest.in" "conftest.nl"
  4570. $as_echo 'EGREP' >> "conftest.nl"
  4571. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4572. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4573. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4574. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4575. # Best one so far, save it but keep looking for a better one
  4576. ac_cv_path_EGREP="$ac_path_EGREP"
  4577. ac_path_EGREP_max=$ac_count
  4578. fi
  4579. # 10*(2^10) chars as input seems more than enough
  4580. test $ac_count -gt 10 && break
  4581. done
  4582. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4583. esac
  4584. $ac_path_EGREP_found && break 3
  4585. done
  4586. done
  4587. done
  4588. IFS=$as_save_IFS
  4589. if test -z "$ac_cv_path_EGREP"; then
  4590. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4591. fi
  4592. else
  4593. ac_cv_path_EGREP=$EGREP
  4594. fi
  4595. fi
  4596. fi
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4598. $as_echo "$ac_cv_path_EGREP" >&6; }
  4599. EGREP="$ac_cv_path_EGREP"
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4601. $as_echo_n "checking for ANSI C header files... " >&6; }
  4602. if ${ac_cv_header_stdc+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4606. /* end confdefs.h. */
  4607. #include <stdlib.h>
  4608. #include <stdarg.h>
  4609. #include <string.h>
  4610. #include <float.h>
  4611. int
  4612. main ()
  4613. {
  4614. ;
  4615. return 0;
  4616. }
  4617. _ACEOF
  4618. if ac_fn_c_try_compile "$LINENO"; then :
  4619. ac_cv_header_stdc=yes
  4620. else
  4621. ac_cv_header_stdc=no
  4622. fi
  4623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4624. if test $ac_cv_header_stdc = yes; then
  4625. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4627. /* end confdefs.h. */
  4628. #include <string.h>
  4629. _ACEOF
  4630. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4631. $EGREP "memchr" >/dev/null 2>&1; then :
  4632. else
  4633. ac_cv_header_stdc=no
  4634. fi
  4635. rm -f conftest*
  4636. fi
  4637. if test $ac_cv_header_stdc = yes; then
  4638. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4640. /* end confdefs.h. */
  4641. #include <stdlib.h>
  4642. _ACEOF
  4643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4644. $EGREP "free" >/dev/null 2>&1; then :
  4645. else
  4646. ac_cv_header_stdc=no
  4647. fi
  4648. rm -f conftest*
  4649. fi
  4650. if test $ac_cv_header_stdc = yes; then
  4651. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4652. if test "$cross_compiling" = yes; then :
  4653. :
  4654. else
  4655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4656. /* end confdefs.h. */
  4657. #include <ctype.h>
  4658. #include <stdlib.h>
  4659. #if ((' ' & 0x0FF) == 0x020)
  4660. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4661. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4662. #else
  4663. # define ISLOWER(c) \
  4664. (('a' <= (c) && (c) <= 'i') \
  4665. || ('j' <= (c) && (c) <= 'r') \
  4666. || ('s' <= (c) && (c) <= 'z'))
  4667. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4668. #endif
  4669. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4670. int
  4671. main ()
  4672. {
  4673. int i;
  4674. for (i = 0; i < 256; i++)
  4675. if (XOR (islower (i), ISLOWER (i))
  4676. || toupper (i) != TOUPPER (i))
  4677. return 2;
  4678. return 0;
  4679. }
  4680. _ACEOF
  4681. if ac_fn_c_try_run "$LINENO"; then :
  4682. else
  4683. ac_cv_header_stdc=no
  4684. fi
  4685. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4686. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4687. fi
  4688. fi
  4689. fi
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4691. $as_echo "$ac_cv_header_stdc" >&6; }
  4692. if test $ac_cv_header_stdc = yes; then
  4693. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4694. fi
  4695. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4696. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4697. inttypes.h stdint.h unistd.h
  4698. do :
  4699. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4700. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4701. "
  4702. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4703. cat >>confdefs.h <<_ACEOF
  4704. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4705. _ACEOF
  4706. fi
  4707. done
  4708. if test "$ac_cv_prog_cc_stdc" != no; then
  4709. U= ANSI2KNR=
  4710. else
  4711. U=_ ANSI2KNR=./ansi2knr
  4712. fi
  4713. # Ensure some checks needed by ansi2knr itself.
  4714. for ac_header in string.h
  4715. do :
  4716. ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  4717. if test "x$ac_cv_header_string_h" = xyes; then :
  4718. cat >>confdefs.h <<_ACEOF
  4719. #define HAVE_STRING_H 1
  4720. _ACEOF
  4721. fi
  4722. done
  4723. # -- Function Definitions --
  4724. # -- Hard coded system and compiler dependencies/features/options ... --
  4725. if test "$GCC" = "yes"; then
  4726. # We are using the GNU C compiler. Good!
  4727. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  4728. ssp_cc=yes
  4729. # Use -fstack-protector-all for the test to enfoce the use of the
  4730. # guard variable
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
  4732. $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
  4733. ssp_old_cflags="$CFLAGS"
  4734. CFLAGS="$CFLAGS -fstack-protector-all"
  4735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4736. /* end confdefs.h. */
  4737. int
  4738. main ()
  4739. {
  4740. ;
  4741. return 0;
  4742. }
  4743. _ACEOF
  4744. if ac_fn_c_try_link "$LINENO"; then :
  4745. else
  4746. ssp_cc=no
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext \
  4749. conftest$ac_exeext conftest.$ac_ext
  4750. echo $ssp_cc
  4751. CFLAGS="$ssp_old_cflags"
  4752. if test "X$ssp_cc" = "Xyes"; then
  4753. CFLAGS="$CFLAGS -fstack-protector"
  4754. $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
  4755. fi
  4756. fi
  4757. case "$host_os" in
  4758. hpux*)
  4759. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  4760. # (tested with HP/UX 11.11)
  4761. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  4762. ;;
  4763. esac
  4764. # Add additional CFLAGS, eventually specified on the command line:
  4765. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  4766. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"' -DDOCDIR='\"\$(docdir)\"'"
  4767. # -- Headers --
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4769. $as_echo_n "checking for ANSI C header files... " >&6; }
  4770. if ${ac_cv_header_stdc+:} false; then :
  4771. $as_echo_n "(cached) " >&6
  4772. else
  4773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4774. /* end confdefs.h. */
  4775. #include <stdlib.h>
  4776. #include <stdarg.h>
  4777. #include <string.h>
  4778. #include <float.h>
  4779. int
  4780. main ()
  4781. {
  4782. ;
  4783. return 0;
  4784. }
  4785. _ACEOF
  4786. if ac_fn_c_try_compile "$LINENO"; then :
  4787. ac_cv_header_stdc=yes
  4788. else
  4789. ac_cv_header_stdc=no
  4790. fi
  4791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4792. if test $ac_cv_header_stdc = yes; then
  4793. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4795. /* end confdefs.h. */
  4796. #include <string.h>
  4797. _ACEOF
  4798. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4799. $EGREP "memchr" >/dev/null 2>&1; then :
  4800. else
  4801. ac_cv_header_stdc=no
  4802. fi
  4803. rm -f conftest*
  4804. fi
  4805. if test $ac_cv_header_stdc = yes; then
  4806. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4808. /* end confdefs.h. */
  4809. #include <stdlib.h>
  4810. _ACEOF
  4811. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4812. $EGREP "free" >/dev/null 2>&1; then :
  4813. else
  4814. ac_cv_header_stdc=no
  4815. fi
  4816. rm -f conftest*
  4817. fi
  4818. if test $ac_cv_header_stdc = yes; then
  4819. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4820. if test "$cross_compiling" = yes; then :
  4821. :
  4822. else
  4823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4824. /* end confdefs.h. */
  4825. #include <ctype.h>
  4826. #include <stdlib.h>
  4827. #if ((' ' & 0x0FF) == 0x020)
  4828. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4829. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4830. #else
  4831. # define ISLOWER(c) \
  4832. (('a' <= (c) && (c) <= 'i') \
  4833. || ('j' <= (c) && (c) <= 'r') \
  4834. || ('s' <= (c) && (c) <= 'z'))
  4835. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4836. #endif
  4837. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4838. int
  4839. main ()
  4840. {
  4841. int i;
  4842. for (i = 0; i < 256; i++)
  4843. if (XOR (islower (i), ISLOWER (i))
  4844. || toupper (i) != TOUPPER (i))
  4845. return 2;
  4846. return 0;
  4847. }
  4848. _ACEOF
  4849. if ac_fn_c_try_run "$LINENO"; then :
  4850. else
  4851. ac_cv_header_stdc=no
  4852. fi
  4853. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4854. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4855. fi
  4856. fi
  4857. fi
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4859. $as_echo "$ac_cv_header_stdc" >&6; }
  4860. if test $ac_cv_header_stdc = yes; then
  4861. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4862. fi
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4864. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4865. if ${ac_cv_header_sys_wait_h+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4869. /* end confdefs.h. */
  4870. #include <sys/types.h>
  4871. #include <sys/wait.h>
  4872. #ifndef WEXITSTATUS
  4873. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4874. #endif
  4875. #ifndef WIFEXITED
  4876. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4877. #endif
  4878. int
  4879. main ()
  4880. {
  4881. int s;
  4882. wait (&s);
  4883. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4884. ;
  4885. return 0;
  4886. }
  4887. _ACEOF
  4888. if ac_fn_c_try_compile "$LINENO"; then :
  4889. ac_cv_header_sys_wait_h=yes
  4890. else
  4891. ac_cv_header_sys_wait_h=no
  4892. fi
  4893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4894. fi
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4896. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4897. if test $ac_cv_header_sys_wait_h = yes; then
  4898. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4899. fi
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4901. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4902. if ${ac_cv_header_time+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4906. /* end confdefs.h. */
  4907. #include <sys/types.h>
  4908. #include <sys/time.h>
  4909. #include <time.h>
  4910. int
  4911. main ()
  4912. {
  4913. if ((struct tm *) 0)
  4914. return 0;
  4915. ;
  4916. return 0;
  4917. }
  4918. _ACEOF
  4919. if ac_fn_c_try_compile "$LINENO"; then :
  4920. ac_cv_header_time=yes
  4921. else
  4922. ac_cv_header_time=no
  4923. fi
  4924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4925. fi
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4927. $as_echo "$ac_cv_header_time" >&6; }
  4928. if test $ac_cv_header_time = yes; then
  4929. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4930. fi
  4931. # Required header files
  4932. for ac_header in \
  4933. fcntl.h \
  4934. netdb.h \
  4935. netinet/in.h \
  4936. stdlib.h \
  4937. string.h \
  4938. strings.h \
  4939. sys/socket.h \
  4940. sys/time.h \
  4941. sys/types.h \
  4942. unistd.h \
  4943. do :
  4944. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4945. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4946. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4947. cat >>confdefs.h <<_ACEOF
  4948. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4949. _ACEOF
  4950. else
  4951. as_fn_error $? "required C header missing!" "$LINENO" 5
  4952. fi
  4953. done
  4954. # Optional header files
  4955. for ac_header in $ac_header_list
  4956. do :
  4957. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4958. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4959. "
  4960. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4961. cat >>confdefs.h <<_ACEOF
  4962. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4963. _ACEOF
  4964. fi
  4965. done
  4966. # -- Datatypes --
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t exists" >&5
  4968. $as_echo_n "checking whether socklen_t exists... " >&6; }
  4969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4970. /* end confdefs.h. */
  4971. #include <sys/types.h>
  4972. #include <sys/socket.h>
  4973. int
  4974. main ()
  4975. {
  4976. socklen_t a, b;
  4977. a = 2; b = 4; a += b;
  4978. ;
  4979. return 0;
  4980. }
  4981. _ACEOF
  4982. if ac_fn_c_try_compile "$LINENO"; then :
  4983. $as_echo "#define HAVE_socklen_t 1" >>confdefs.h
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4985. $as_echo "yes" >&6; }
  4986. else
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4988. $as_echo "no" >&6; }
  4989. fi
  4990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4991. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4992. if test "x$ac_cv_type_pid_t" = xyes; then :
  4993. else
  4994. cat >>confdefs.h <<_ACEOF
  4995. #define pid_t int
  4996. _ACEOF
  4997. fi
  4998. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4999. if test "x$ac_cv_type_size_t" = xyes; then :
  5000. else
  5001. cat >>confdefs.h <<_ACEOF
  5002. #define size_t unsigned int
  5003. _ACEOF
  5004. fi
  5005. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  5006. if test "x$ac_cv_type_ssize_t" = xyes; then :
  5007. else
  5008. cat >>confdefs.h <<_ACEOF
  5009. #define ssize_t int
  5010. _ACEOF
  5011. fi
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5013. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5014. if ${ac_cv_type_uid_t+:} false; then :
  5015. $as_echo_n "(cached) " >&6
  5016. else
  5017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5018. /* end confdefs.h. */
  5019. #include <sys/types.h>
  5020. _ACEOF
  5021. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5022. $EGREP "uid_t" >/dev/null 2>&1; then :
  5023. ac_cv_type_uid_t=yes
  5024. else
  5025. ac_cv_type_uid_t=no
  5026. fi
  5027. rm -f conftest*
  5028. fi
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5030. $as_echo "$ac_cv_type_uid_t" >&6; }
  5031. if test $ac_cv_type_uid_t = no; then
  5032. $as_echo "#define uid_t int" >>confdefs.h
  5033. $as_echo "#define gid_t int" >>confdefs.h
  5034. fi
  5035. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  5036. case $ac_cv_c_uint16_t in #(
  5037. no|yes) ;; #(
  5038. *)
  5039. cat >>confdefs.h <<_ACEOF
  5040. #define uint16_t $ac_cv_c_uint16_t
  5041. _ACEOF
  5042. ;;
  5043. esac
  5044. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  5045. case $ac_cv_c_uint32_t in #(
  5046. no|yes) ;; #(
  5047. *)
  5048. $as_echo "#define _UINT32_T 1" >>confdefs.h
  5049. cat >>confdefs.h <<_ACEOF
  5050. #define uint32_t $ac_cv_c_uint32_t
  5051. _ACEOF
  5052. ;;
  5053. esac
  5054. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  5055. case $ac_cv_c_uint8_t in #(
  5056. no|yes) ;; #(
  5057. *)
  5058. $as_echo "#define _UINT8_T 1" >>confdefs.h
  5059. cat >>confdefs.h <<_ACEOF
  5060. #define uint8_t $ac_cv_c_uint8_t
  5061. _ACEOF
  5062. ;;
  5063. esac
  5064. ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <arpa/inet.h>
  5065. "
  5066. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
  5067. $as_echo "#define HAVE_sockaddr_in_len 1" >>confdefs.h
  5068. fi
  5069. # -- Libraries --
  5070. # memmove: A/UX libUTIL
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memmove" >&5
  5072. $as_echo_n "checking for library containing memmove... " >&6; }
  5073. if ${ac_cv_search_memmove+:} false; then :
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. ac_func_search_save_LIBS=$LIBS
  5077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5078. /* end confdefs.h. */
  5079. /* Override any GCC internal prototype to avoid an error.
  5080. Use char because int might match the return type of a GCC
  5081. builtin and then its argument prototype would still apply. */
  5082. #ifdef __cplusplus
  5083. extern "C"
  5084. #endif
  5085. char memmove ();
  5086. int
  5087. main ()
  5088. {
  5089. return memmove ();
  5090. ;
  5091. return 0;
  5092. }
  5093. _ACEOF
  5094. for ac_lib in '' UTIL; do
  5095. if test -z "$ac_lib"; then
  5096. ac_res="none required"
  5097. else
  5098. ac_res=-l$ac_lib
  5099. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5100. fi
  5101. if ac_fn_c_try_link "$LINENO"; then :
  5102. ac_cv_search_memmove=$ac_res
  5103. fi
  5104. rm -f core conftest.err conftest.$ac_objext \
  5105. conftest$ac_exeext
  5106. if ${ac_cv_search_memmove+:} false; then :
  5107. break
  5108. fi
  5109. done
  5110. if ${ac_cv_search_memmove+:} false; then :
  5111. else
  5112. ac_cv_search_memmove=no
  5113. fi
  5114. rm conftest.$ac_ext
  5115. LIBS=$ac_func_search_save_LIBS
  5116. fi
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memmove" >&5
  5118. $as_echo "$ac_cv_search_memmove" >&6; }
  5119. ac_res=$ac_cv_search_memmove
  5120. if test "$ac_res" != no; then :
  5121. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5122. else
  5123. as_fn_error $? "unable to find the memmove() function" "$LINENO" 5
  5124. fi
  5125. # gethostbyname: Solaris libnsl
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  5127. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  5128. if ${ac_cv_search_gethostbyname+:} false; then :
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. ac_func_search_save_LIBS=$LIBS
  5132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5133. /* end confdefs.h. */
  5134. /* Override any GCC internal prototype to avoid an error.
  5135. Use char because int might match the return type of a GCC
  5136. builtin and then its argument prototype would still apply. */
  5137. #ifdef __cplusplus
  5138. extern "C"
  5139. #endif
  5140. char gethostbyname ();
  5141. int
  5142. main ()
  5143. {
  5144. return gethostbyname ();
  5145. ;
  5146. return 0;
  5147. }
  5148. _ACEOF
  5149. for ac_lib in '' bind nsl network; do
  5150. if test -z "$ac_lib"; then
  5151. ac_res="none required"
  5152. else
  5153. ac_res=-l$ac_lib
  5154. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5155. fi
  5156. if ac_fn_c_try_link "$LINENO"; then :
  5157. ac_cv_search_gethostbyname=$ac_res
  5158. fi
  5159. rm -f core conftest.err conftest.$ac_objext \
  5160. conftest$ac_exeext
  5161. if ${ac_cv_search_gethostbyname+:} false; then :
  5162. break
  5163. fi
  5164. done
  5165. if ${ac_cv_search_gethostbyname+:} false; then :
  5166. else
  5167. ac_cv_search_gethostbyname=no
  5168. fi
  5169. rm conftest.$ac_ext
  5170. LIBS=$ac_func_search_save_LIBS
  5171. fi
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  5173. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  5174. ac_res=$ac_cv_search_gethostbyname
  5175. if test "$ac_res" != no; then :
  5176. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5177. else
  5178. as_fn_error $? "unable to find the gethostbyname() function" "$LINENO" 5
  5179. fi
  5180. # bind: SVR4 libsocket
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
  5182. $as_echo_n "checking for library containing bind... " >&6; }
  5183. if ${ac_cv_search_bind+:} false; then :
  5184. $as_echo_n "(cached) " >&6
  5185. else
  5186. ac_func_search_save_LIBS=$LIBS
  5187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5188. /* end confdefs.h. */
  5189. /* Override any GCC internal prototype to avoid an error.
  5190. Use char because int might match the return type of a GCC
  5191. builtin and then its argument prototype would still apply. */
  5192. #ifdef __cplusplus
  5193. extern "C"
  5194. #endif
  5195. char bind ();
  5196. int
  5197. main ()
  5198. {
  5199. return bind ();
  5200. ;
  5201. return 0;
  5202. }
  5203. _ACEOF
  5204. for ac_lib in '' socket network; do
  5205. if test -z "$ac_lib"; then
  5206. ac_res="none required"
  5207. else
  5208. ac_res=-l$ac_lib
  5209. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5210. fi
  5211. if ac_fn_c_try_link "$LINENO"; then :
  5212. ac_cv_search_bind=$ac_res
  5213. fi
  5214. rm -f core conftest.err conftest.$ac_objext \
  5215. conftest$ac_exeext
  5216. if ${ac_cv_search_bind+:} false; then :
  5217. break
  5218. fi
  5219. done
  5220. if ${ac_cv_search_bind+:} false; then :
  5221. else
  5222. ac_cv_search_bind=no
  5223. fi
  5224. rm conftest.$ac_ext
  5225. LIBS=$ac_func_search_save_LIBS
  5226. fi
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
  5228. $as_echo "$ac_cv_search_bind" >&6; }
  5229. ac_res=$ac_cv_search_bind
  5230. if test "$ac_res" != no; then :
  5231. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5232. else
  5233. as_fn_error $? "unable to find the bind() function" "$LINENO" 5
  5234. fi
  5235. # -- Functions --
  5236. for ac_header in vfork.h
  5237. do :
  5238. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  5239. if test "x$ac_cv_header_vfork_h" = xyes; then :
  5240. cat >>confdefs.h <<_ACEOF
  5241. #define HAVE_VFORK_H 1
  5242. _ACEOF
  5243. fi
  5244. done
  5245. for ac_func in fork vfork
  5246. do :
  5247. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5248. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5249. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5250. cat >>confdefs.h <<_ACEOF
  5251. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5252. _ACEOF
  5253. fi
  5254. done
  5255. if test "x$ac_cv_func_fork" = xyes; then
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5257. $as_echo_n "checking for working fork... " >&6; }
  5258. if ${ac_cv_func_fork_works+:} false; then :
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. if test "$cross_compiling" = yes; then :
  5262. ac_cv_func_fork_works=cross
  5263. else
  5264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5265. /* end confdefs.h. */
  5266. $ac_includes_default
  5267. int
  5268. main ()
  5269. {
  5270. /* By Ruediger Kuhlmann. */
  5271. return fork () < 0;
  5272. ;
  5273. return 0;
  5274. }
  5275. _ACEOF
  5276. if ac_fn_c_try_run "$LINENO"; then :
  5277. ac_cv_func_fork_works=yes
  5278. else
  5279. ac_cv_func_fork_works=no
  5280. fi
  5281. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5282. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5283. fi
  5284. fi
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5286. $as_echo "$ac_cv_func_fork_works" >&6; }
  5287. else
  5288. ac_cv_func_fork_works=$ac_cv_func_fork
  5289. fi
  5290. if test "x$ac_cv_func_fork_works" = xcross; then
  5291. case $host in
  5292. *-*-amigaos* | *-*-msdosdjgpp*)
  5293. # Override, as these systems have only a dummy fork() stub
  5294. ac_cv_func_fork_works=no
  5295. ;;
  5296. *)
  5297. ac_cv_func_fork_works=yes
  5298. ;;
  5299. esac
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5301. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5302. fi
  5303. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5304. if test "x$ac_cv_func_vfork" = xyes; then
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5306. $as_echo_n "checking for working vfork... " >&6; }
  5307. if ${ac_cv_func_vfork_works+:} false; then :
  5308. $as_echo_n "(cached) " >&6
  5309. else
  5310. if test "$cross_compiling" = yes; then :
  5311. ac_cv_func_vfork_works=cross
  5312. else
  5313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5314. /* end confdefs.h. */
  5315. /* Thanks to Paul Eggert for this test. */
  5316. $ac_includes_default
  5317. #include <sys/wait.h>
  5318. #ifdef HAVE_VFORK_H
  5319. # include <vfork.h>
  5320. #endif
  5321. /* On some sparc systems, changes by the child to local and incoming
  5322. argument registers are propagated back to the parent. The compiler
  5323. is told about this with #include <vfork.h>, but some compilers
  5324. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5325. static variable whose address is put into a register that is
  5326. clobbered by the vfork. */
  5327. static void
  5328. #ifdef __cplusplus
  5329. sparc_address_test (int arg)
  5330. # else
  5331. sparc_address_test (arg) int arg;
  5332. #endif
  5333. {
  5334. static pid_t child;
  5335. if (!child) {
  5336. child = vfork ();
  5337. if (child < 0) {
  5338. perror ("vfork");
  5339. _exit(2);
  5340. }
  5341. if (!child) {
  5342. arg = getpid();
  5343. write(-1, "", 0);
  5344. _exit (arg);
  5345. }
  5346. }
  5347. }
  5348. int
  5349. main ()
  5350. {
  5351. pid_t parent = getpid ();
  5352. pid_t child;
  5353. sparc_address_test (0);
  5354. child = vfork ();
  5355. if (child == 0) {
  5356. /* Here is another test for sparc vfork register problems. This
  5357. test uses lots of local variables, at least as many local
  5358. variables as main has allocated so far including compiler
  5359. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5360. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5361. reuse the register of parent for one of the local variables,
  5362. since it will think that parent can't possibly be used any more
  5363. in this routine. Assigning to the local variable will thus
  5364. munge parent in the parent process. */
  5365. pid_t
  5366. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5367. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5368. /* Convince the compiler that p..p7 are live; otherwise, it might
  5369. use the same hardware register for all 8 local variables. */
  5370. if (p != p1 || p != p2 || p != p3 || p != p4
  5371. || p != p5 || p != p6 || p != p7)
  5372. _exit(1);
  5373. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5374. from child file descriptors. If the child closes a descriptor
  5375. before it execs or exits, this munges the parent's descriptor
  5376. as well. Test for this by closing stdout in the child. */
  5377. _exit(close(fileno(stdout)) != 0);
  5378. } else {
  5379. int status;
  5380. struct stat st;
  5381. while (wait(&status) != child)
  5382. ;
  5383. return (
  5384. /* Was there some problem with vforking? */
  5385. child < 0
  5386. /* Did the child fail? (This shouldn't happen.) */
  5387. || status
  5388. /* Did the vfork/compiler bug occur? */
  5389. || parent != getpid()
  5390. /* Did the file descriptor bug occur? */
  5391. || fstat(fileno(stdout), &st) != 0
  5392. );
  5393. }
  5394. }
  5395. _ACEOF
  5396. if ac_fn_c_try_run "$LINENO"; then :
  5397. ac_cv_func_vfork_works=yes
  5398. else
  5399. ac_cv_func_vfork_works=no
  5400. fi
  5401. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5402. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5403. fi
  5404. fi
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  5406. $as_echo "$ac_cv_func_vfork_works" >&6; }
  5407. fi;
  5408. if test "x$ac_cv_func_fork_works" = xcross; then
  5409. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5411. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5412. fi
  5413. if test "x$ac_cv_func_vfork_works" = xyes; then
  5414. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  5415. else
  5416. $as_echo "#define vfork fork" >>confdefs.h
  5417. fi
  5418. if test "x$ac_cv_func_fork_works" = xyes; then
  5419. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  5420. fi
  5421. for ac_func in strftime
  5422. do :
  5423. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  5424. if test "x$ac_cv_func_strftime" = xyes; then :
  5425. cat >>confdefs.h <<_ACEOF
  5426. #define HAVE_STRFTIME 1
  5427. _ACEOF
  5428. else
  5429. # strftime is in -lintl on SCO UNIX.
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  5431. $as_echo_n "checking for strftime in -lintl... " >&6; }
  5432. if ${ac_cv_lib_intl_strftime+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. ac_check_lib_save_LIBS=$LIBS
  5436. LIBS="-lintl $LIBS"
  5437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5438. /* end confdefs.h. */
  5439. /* Override any GCC internal prototype to avoid an error.
  5440. Use char because int might match the return type of a GCC
  5441. builtin and then its argument prototype would still apply. */
  5442. #ifdef __cplusplus
  5443. extern "C"
  5444. #endif
  5445. char strftime ();
  5446. int
  5447. main ()
  5448. {
  5449. return strftime ();
  5450. ;
  5451. return 0;
  5452. }
  5453. _ACEOF
  5454. if ac_fn_c_try_link "$LINENO"; then :
  5455. ac_cv_lib_intl_strftime=yes
  5456. else
  5457. ac_cv_lib_intl_strftime=no
  5458. fi
  5459. rm -f core conftest.err conftest.$ac_objext \
  5460. conftest$ac_exeext conftest.$ac_ext
  5461. LIBS=$ac_check_lib_save_LIBS
  5462. fi
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  5464. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  5465. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  5466. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  5467. LIBS="-lintl $LIBS"
  5468. fi
  5469. fi
  5470. done
  5471. # Required functions
  5472. for ac_func in \
  5473. alarm \
  5474. dup2 \
  5475. endpwent \
  5476. gethostbyaddr \
  5477. gethostbyname \
  5478. gethostname \
  5479. gettimeofday \
  5480. inet_ntoa \
  5481. memmove \
  5482. memset \
  5483. setsid \
  5484. socket \
  5485. strcasecmp \
  5486. strchr \
  5487. strcspn \
  5488. strerror \
  5489. strncasecmp \
  5490. strrchr \
  5491. strspn \
  5492. strstr \
  5493. do :
  5494. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5495. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5496. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5497. cat >>confdefs.h <<_ACEOF
  5498. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5499. _ACEOF
  5500. else
  5501. as_fn_error $? "required function missing!" "$LINENO" 5
  5502. fi
  5503. done
  5504. # Optional functions
  5505. for ac_func in $ac_func_list
  5506. do :
  5507. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5508. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5509. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5510. cat >>confdefs.h <<_ACEOF
  5511. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5512. _ACEOF
  5513. fi
  5514. done
  5515. for ac_func in getaddrinfo
  5516. do :
  5517. ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  5518. if test "x$ac_cv_func_getaddrinfo" = xyes; then :
  5519. cat >>confdefs.h <<_ACEOF
  5520. #define HAVE_GETADDRINFO 1
  5521. _ACEOF
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getaddrinfo() works" >&5
  5523. $as_echo_n "checking whether getaddrinfo() works... " >&6; }
  5524. if test "$cross_compiling" = yes; then :
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. else
  5528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5529. /* end confdefs.h. */
  5530. #include <stdio.h>
  5531. #include <sys/types.h>
  5532. #include <sys/socket.h>
  5533. #include <netdb.h>
  5534. int
  5535. main(int argc, char **argv)
  5536. {
  5537. struct addrinfo hints, *ai;
  5538. memset(&hints, 0, sizeof(hints));
  5539. hints.ai_flags = AI_PASSIVE;
  5540. hints.ai_socktype = SOCK_STREAM;
  5541. hints.ai_family = PF_UNSPEC;
  5542. if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
  5543. return 1;
  5544. return 0;
  5545. }
  5546. _ACEOF
  5547. if ac_fn_c_try_run "$LINENO"; then :
  5548. $as_echo "#define HAVE_WORKING_GETADDRINFO 1" >>confdefs.h
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5550. $as_echo "yes" >&6; }
  5551. else
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5553. $as_echo "no" >&6; }
  5554. fi
  5555. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5556. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5557. fi
  5558. fi
  5559. done
  5560. # -- Configuration options --
  5561. # use syslog?
  5562. x_syslog_on=no
  5563. # Check whether --with-syslog was given.
  5564. if test "${with_syslog+set}" = set; then :
  5565. withval=$with_syslog; if test "$withval" != "no"; then
  5566. if test "$withval" != "yes"; then
  5567. CFLAGS="-I$withval/include $CFLAGS"
  5568. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5569. LDFLAGS="-L$withval/lib $LDFLAGS"
  5570. fi
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
  5572. $as_echo_n "checking for library containing syslog... " >&6; }
  5573. if ${ac_cv_search_syslog+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. ac_func_search_save_LIBS=$LIBS
  5577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5578. /* end confdefs.h. */
  5579. /* Override any GCC internal prototype to avoid an error.
  5580. Use char because int might match the return type of a GCC
  5581. builtin and then its argument prototype would still apply. */
  5582. #ifdef __cplusplus
  5583. extern "C"
  5584. #endif
  5585. char syslog ();
  5586. int
  5587. main ()
  5588. {
  5589. return syslog ();
  5590. ;
  5591. return 0;
  5592. }
  5593. _ACEOF
  5594. for ac_lib in '' be; do
  5595. if test -z "$ac_lib"; then
  5596. ac_res="none required"
  5597. else
  5598. ac_res=-l$ac_lib
  5599. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5600. fi
  5601. if ac_fn_c_try_link "$LINENO"; then :
  5602. ac_cv_search_syslog=$ac_res
  5603. fi
  5604. rm -f core conftest.err conftest.$ac_objext \
  5605. conftest$ac_exeext
  5606. if ${ac_cv_search_syslog+:} false; then :
  5607. break
  5608. fi
  5609. done
  5610. if ${ac_cv_search_syslog+:} false; then :
  5611. else
  5612. ac_cv_search_syslog=no
  5613. fi
  5614. rm conftest.$ac_ext
  5615. LIBS=$ac_func_search_save_LIBS
  5616. fi
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
  5618. $as_echo "$ac_cv_search_syslog" >&6; }
  5619. ac_res=$ac_cv_search_syslog
  5620. if test "$ac_res" != no; then :
  5621. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5622. x_syslog_on=yes
  5623. else
  5624. as_fn_error $? "Can't enable syslog!" "$LINENO" 5
  5625. fi
  5626. fi
  5627. else
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
  5629. $as_echo_n "checking for library containing syslog... " >&6; }
  5630. if ${ac_cv_search_syslog+:} false; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. ac_func_search_save_LIBS=$LIBS
  5634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5635. /* end confdefs.h. */
  5636. /* Override any GCC internal prototype to avoid an error.
  5637. Use char because int might match the return type of a GCC
  5638. builtin and then its argument prototype would still apply. */
  5639. #ifdef __cplusplus
  5640. extern "C"
  5641. #endif
  5642. char syslog ();
  5643. int
  5644. main ()
  5645. {
  5646. return syslog ();
  5647. ;
  5648. return 0;
  5649. }
  5650. _ACEOF
  5651. for ac_lib in '' be; do
  5652. if test -z "$ac_lib"; then
  5653. ac_res="none required"
  5654. else
  5655. ac_res=-l$ac_lib
  5656. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5657. fi
  5658. if ac_fn_c_try_link "$LINENO"; then :
  5659. ac_cv_search_syslog=$ac_res
  5660. fi
  5661. rm -f core conftest.err conftest.$ac_objext \
  5662. conftest$ac_exeext
  5663. if ${ac_cv_search_syslog+:} false; then :
  5664. break
  5665. fi
  5666. done
  5667. if ${ac_cv_search_syslog+:} false; then :
  5668. else
  5669. ac_cv_search_syslog=no
  5670. fi
  5671. rm conftest.$ac_ext
  5672. LIBS=$ac_func_search_save_LIBS
  5673. fi
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
  5675. $as_echo "$ac_cv_search_syslog" >&6; }
  5676. ac_res=$ac_cv_search_syslog
  5677. if test "$ac_res" != no; then :
  5678. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5679. x_syslog_on=yes
  5680. fi
  5681. fi
  5682. if test "$x_syslog_on" = "yes"; then
  5683. $as_echo "#define SYSLOG 1" >>confdefs.h
  5684. for ac_header in syslog.h
  5685. do :
  5686. ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  5687. if test "x$ac_cv_header_syslog_h" = xyes; then :
  5688. cat >>confdefs.h <<_ACEOF
  5689. #define HAVE_SYSLOG_H 1
  5690. _ACEOF
  5691. else
  5692. as_fn_error $? "required C header missing!" "$LINENO" 5
  5693. fi
  5694. done
  5695. fi
  5696. # use zlib compression?
  5697. x_zlib_on=no
  5698. # Check whether --with-zlib was given.
  5699. if test "${with_zlib+set}" = set; then :
  5700. withval=$with_zlib; if test "$withval" != "no"; then
  5701. if test "$withval" != "yes"; then
  5702. CFLAGS="-I$withval/include $CFLAGS"
  5703. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5704. LDFLAGS="-L$withval/lib $LDFLAGS"
  5705. fi
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  5707. $as_echo_n "checking for deflate in -lz... " >&6; }
  5708. if ${ac_cv_lib_z_deflate+:} false; then :
  5709. $as_echo_n "(cached) " >&6
  5710. else
  5711. ac_check_lib_save_LIBS=$LIBS
  5712. LIBS="-lz $LIBS"
  5713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5714. /* end confdefs.h. */
  5715. /* Override any GCC internal prototype to avoid an error.
  5716. Use char because int might match the return type of a GCC
  5717. builtin and then its argument prototype would still apply. */
  5718. #ifdef __cplusplus
  5719. extern "C"
  5720. #endif
  5721. char deflate ();
  5722. int
  5723. main ()
  5724. {
  5725. return deflate ();
  5726. ;
  5727. return 0;
  5728. }
  5729. _ACEOF
  5730. if ac_fn_c_try_link "$LINENO"; then :
  5731. ac_cv_lib_z_deflate=yes
  5732. else
  5733. ac_cv_lib_z_deflate=no
  5734. fi
  5735. rm -f core conftest.err conftest.$ac_objext \
  5736. conftest$ac_exeext conftest.$ac_ext
  5737. LIBS=$ac_check_lib_save_LIBS
  5738. fi
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  5740. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  5741. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  5742. cat >>confdefs.h <<_ACEOF
  5743. #define HAVE_LIBZ 1
  5744. _ACEOF
  5745. LIBS="-lz $LIBS"
  5746. fi
  5747. for ac_func in deflate
  5748. do :
  5749. ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
  5750. if test "x$ac_cv_func_deflate" = xyes; then :
  5751. cat >>confdefs.h <<_ACEOF
  5752. #define HAVE_DEFLATE 1
  5753. _ACEOF
  5754. x_zlib_on=yes
  5755. else
  5756. as_fn_error $? "Can't enable zlib!" "$LINENO" 5
  5757. fi
  5758. done
  5759. fi
  5760. else
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  5762. $as_echo_n "checking for deflate in -lz... " >&6; }
  5763. if ${ac_cv_lib_z_deflate+:} false; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. ac_check_lib_save_LIBS=$LIBS
  5767. LIBS="-lz $LIBS"
  5768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5769. /* end confdefs.h. */
  5770. /* Override any GCC internal prototype to avoid an error.
  5771. Use char because int might match the return type of a GCC
  5772. builtin and then its argument prototype would still apply. */
  5773. #ifdef __cplusplus
  5774. extern "C"
  5775. #endif
  5776. char deflate ();
  5777. int
  5778. main ()
  5779. {
  5780. return deflate ();
  5781. ;
  5782. return 0;
  5783. }
  5784. _ACEOF
  5785. if ac_fn_c_try_link "$LINENO"; then :
  5786. ac_cv_lib_z_deflate=yes
  5787. else
  5788. ac_cv_lib_z_deflate=no
  5789. fi
  5790. rm -f core conftest.err conftest.$ac_objext \
  5791. conftest$ac_exeext conftest.$ac_ext
  5792. LIBS=$ac_check_lib_save_LIBS
  5793. fi
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  5795. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  5796. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  5797. cat >>confdefs.h <<_ACEOF
  5798. #define HAVE_LIBZ 1
  5799. _ACEOF
  5800. LIBS="-lz $LIBS"
  5801. fi
  5802. for ac_func in deflate
  5803. do :
  5804. ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
  5805. if test "x$ac_cv_func_deflate" = xyes; then :
  5806. cat >>confdefs.h <<_ACEOF
  5807. #define HAVE_DEFLATE 1
  5808. _ACEOF
  5809. x_zlib_on=yes
  5810. fi
  5811. done
  5812. fi
  5813. if test "$x_zlib_on" = "yes"; then
  5814. $as_echo "#define ZLIB 1" >>confdefs.h
  5815. for ac_header in zlib.h
  5816. do :
  5817. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5818. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5819. cat >>confdefs.h <<_ACEOF
  5820. #define HAVE_ZLIB_H 1
  5821. _ACEOF
  5822. else
  5823. as_fn_error $? "required C header missing!" "$LINENO" 5
  5824. fi
  5825. done
  5826. fi
  5827. # detect which IO API to use:
  5828. x_io_backend=none
  5829. # Check whether --with-select was given.
  5830. if test "${with_select+set}" = set; then :
  5831. withval=$with_select; if test "$withval" != "no"; then
  5832. if test "$withval" != "yes"; then
  5833. CFLAGS="-I$withval/include $CFLAGS"
  5834. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5835. LDFLAGS="-L$withval/lib $LDFLAGS"
  5836. fi
  5837. for ac_func in select
  5838. do :
  5839. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  5840. if test "x$ac_cv_func_select" = xyes; then :
  5841. cat >>confdefs.h <<_ACEOF
  5842. #define HAVE_SELECT 1
  5843. _ACEOF
  5844. x_io_select=yes
  5845. else
  5846. as_fn_error $? "Can't enable select IO support!" "$LINENO" 5
  5847. fi
  5848. done
  5849. fi
  5850. else
  5851. for ac_func in select
  5852. do :
  5853. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  5854. if test "x$ac_cv_func_select" = xyes; then :
  5855. cat >>confdefs.h <<_ACEOF
  5856. #define HAVE_SELECT 1
  5857. _ACEOF
  5858. x_io_select=yes
  5859. fi
  5860. done
  5861. fi
  5862. # Check whether --with-poll was given.
  5863. if test "${with_poll+set}" = set; then :
  5864. withval=$with_poll; if test "$withval" != "no"; then
  5865. if test "$withval" != "yes"; then
  5866. CFLAGS="-I$withval/include $CFLAGS"
  5867. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5868. LDFLAGS="-L$withval/lib $LDFLAGS"
  5869. fi
  5870. for ac_func in poll
  5871. do :
  5872. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5873. if test "x$ac_cv_func_poll" = xyes; then :
  5874. cat >>confdefs.h <<_ACEOF
  5875. #define HAVE_POLL 1
  5876. _ACEOF
  5877. for ac_header in poll.h
  5878. do :
  5879. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  5880. if test "x$ac_cv_header_poll_h" = xyes; then :
  5881. cat >>confdefs.h <<_ACEOF
  5882. #define HAVE_POLL_H 1
  5883. _ACEOF
  5884. x_io_backend=poll\(\)
  5885. else
  5886. as_fn_error $? "Can't enable poll IO support!" "$LINENO" 5
  5887. fi
  5888. done
  5889. else
  5890. as_fn_error $? "Can't enable poll IO support!" "$LINENO" 5
  5891. fi
  5892. done
  5893. fi
  5894. else
  5895. for ac_func in poll
  5896. do :
  5897. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5898. if test "x$ac_cv_func_poll" = xyes; then :
  5899. cat >>confdefs.h <<_ACEOF
  5900. #define HAVE_POLL 1
  5901. _ACEOF
  5902. for ac_header in poll.h
  5903. do :
  5904. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  5905. if test "x$ac_cv_header_poll_h" = xyes; then :
  5906. cat >>confdefs.h <<_ACEOF
  5907. #define HAVE_POLL_H 1
  5908. _ACEOF
  5909. x_io_backend=poll\(\)
  5910. fi
  5911. done
  5912. fi
  5913. done
  5914. fi
  5915. # Check whether --with-devpoll was given.
  5916. if test "${with_devpoll+set}" = set; then :
  5917. withval=$with_devpoll; if test "$withval" != "no"; then
  5918. if test "$withval" != "yes"; then
  5919. CFLAGS="-I$withval/include $CFLAGS"
  5920. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5921. LDFLAGS="-L$withval/lib $LDFLAGS"
  5922. fi
  5923. for ac_header in sys/devpoll.h
  5924. do :
  5925. ac_fn_c_check_header_mongrel "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
  5926. if test "x$ac_cv_header_sys_devpoll_h" = xyes; then :
  5927. cat >>confdefs.h <<_ACEOF
  5928. #define HAVE_SYS_DEVPOLL_H 1
  5929. _ACEOF
  5930. else
  5931. as_fn_error $? "required C header missing!" "$LINENO" 5
  5932. fi
  5933. done
  5934. fi
  5935. else
  5936. for ac_header in sys/devpoll.h
  5937. do :
  5938. ac_fn_c_check_header_mongrel "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
  5939. if test "x$ac_cv_header_sys_devpoll_h" = xyes; then :
  5940. cat >>confdefs.h <<_ACEOF
  5941. #define HAVE_SYS_DEVPOLL_H 1
  5942. _ACEOF
  5943. x_io_backend=/dev/poll
  5944. fi
  5945. done
  5946. fi
  5947. # Check whether --with-epoll was given.
  5948. if test "${with_epoll+set}" = set; then :
  5949. withval=$with_epoll; if test "$withval" != "no"; then
  5950. if test "$withval" != "yes"; then
  5951. CFLAGS="-I$withval/include $CFLAGS"
  5952. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5953. LDFLAGS="-L$withval/lib $LDFLAGS"
  5954. fi
  5955. for ac_func in epoll_create
  5956. do :
  5957. ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  5958. if test "x$ac_cv_func_epoll_create" = xyes; then :
  5959. cat >>confdefs.h <<_ACEOF
  5960. #define HAVE_EPOLL_CREATE 1
  5961. _ACEOF
  5962. x_io_epoll=yes
  5963. else
  5964. as_fn_error $? "Can't enable epoll IO support!" "$LINENO" 5
  5965. fi
  5966. done
  5967. fi
  5968. else
  5969. for ac_func in epoll_create
  5970. do :
  5971. ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  5972. if test "x$ac_cv_func_epoll_create" = xyes; then :
  5973. cat >>confdefs.h <<_ACEOF
  5974. #define HAVE_EPOLL_CREATE 1
  5975. _ACEOF
  5976. x_io_epoll=yes
  5977. fi
  5978. done
  5979. fi
  5980. # Check whether --with-kqueue was given.
  5981. if test "${with_kqueue+set}" = set; then :
  5982. withval=$with_kqueue; if test "$withval" != "no"; then
  5983. if test "$withval" != "yes"; then
  5984. CFLAGS="-I$withval/include $CFLAGS"
  5985. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5986. LDFLAGS="-L$withval/lib $LDFLAGS"
  5987. fi
  5988. for ac_func in kqueue
  5989. do :
  5990. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  5991. if test "x$ac_cv_func_kqueue" = xyes; then :
  5992. cat >>confdefs.h <<_ACEOF
  5993. #define HAVE_KQUEUE 1
  5994. _ACEOF
  5995. x_io_backend=kqueue\(\)
  5996. else
  5997. as_fn_error $? "Can't enable kqueue IO support!" "$LINENO" 5
  5998. fi
  5999. done
  6000. fi
  6001. else
  6002. for ac_func in kqueue
  6003. do :
  6004. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  6005. if test "x$ac_cv_func_kqueue" = xyes; then :
  6006. cat >>confdefs.h <<_ACEOF
  6007. #define HAVE_KQUEUE 1
  6008. _ACEOF
  6009. x_io_backend=kqueue\(\)
  6010. fi
  6011. done
  6012. fi
  6013. if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
  6014. # when epoll() and select() are available, we'll use both!
  6015. x_io_backend="epoll(), select()"
  6016. else
  6017. if test "$x_io_epoll" = "yes"; then
  6018. # we prefere epoll() if it is available
  6019. x_io_backend="epoll()"
  6020. else
  6021. if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
  6022. # we'll use select, when available and no "better"
  6023. # interface has been detected ...
  6024. x_io_backend="select()"
  6025. fi
  6026. fi
  6027. fi
  6028. if test "$x_io_backend" = "none"; then
  6029. as_fn_error $? "No useable IO API activated/found!?" "$LINENO" 5
  6030. fi
  6031. # use SSL?
  6032. # Check whether --with-openssl was given.
  6033. if test "${with_openssl+set}" = set; then :
  6034. withval=$with_openssl; if test "$withval" != "no"; then
  6035. if test "$withval" != "yes"; then
  6036. CFLAGS="-I$withval/include $CFLAGS"
  6037. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6038. LDFLAGS="-L$withval/lib $LDFLAGS"
  6039. fi
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_s_mem in -lcrypto" >&5
  6041. $as_echo_n "checking for BIO_s_mem in -lcrypto... " >&6; }
  6042. if ${ac_cv_lib_crypto_BIO_s_mem+:} false; then :
  6043. $as_echo_n "(cached) " >&6
  6044. else
  6045. ac_check_lib_save_LIBS=$LIBS
  6046. LIBS="-lcrypto $LIBS"
  6047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6048. /* end confdefs.h. */
  6049. /* Override any GCC internal prototype to avoid an error.
  6050. Use char because int might match the return type of a GCC
  6051. builtin and then its argument prototype would still apply. */
  6052. #ifdef __cplusplus
  6053. extern "C"
  6054. #endif
  6055. char BIO_s_mem ();
  6056. int
  6057. main ()
  6058. {
  6059. return BIO_s_mem ();
  6060. ;
  6061. return 0;
  6062. }
  6063. _ACEOF
  6064. if ac_fn_c_try_link "$LINENO"; then :
  6065. ac_cv_lib_crypto_BIO_s_mem=yes
  6066. else
  6067. ac_cv_lib_crypto_BIO_s_mem=no
  6068. fi
  6069. rm -f core conftest.err conftest.$ac_objext \
  6070. conftest$ac_exeext conftest.$ac_ext
  6071. LIBS=$ac_check_lib_save_LIBS
  6072. fi
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_s_mem" >&5
  6074. $as_echo "$ac_cv_lib_crypto_BIO_s_mem" >&6; }
  6075. if test "x$ac_cv_lib_crypto_BIO_s_mem" = xyes; then :
  6076. cat >>confdefs.h <<_ACEOF
  6077. #define HAVE_LIBCRYPTO 1
  6078. _ACEOF
  6079. LIBS="-lcrypto $LIBS"
  6080. fi
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
  6082. $as_echo_n "checking for SSL_new in -lssl... " >&6; }
  6083. if ${ac_cv_lib_ssl_SSL_new+:} false; then :
  6084. $as_echo_n "(cached) " >&6
  6085. else
  6086. ac_check_lib_save_LIBS=$LIBS
  6087. LIBS="-lssl $LIBS"
  6088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6089. /* end confdefs.h. */
  6090. /* Override any GCC internal prototype to avoid an error.
  6091. Use char because int might match the return type of a GCC
  6092. builtin and then its argument prototype would still apply. */
  6093. #ifdef __cplusplus
  6094. extern "C"
  6095. #endif
  6096. char SSL_new ();
  6097. int
  6098. main ()
  6099. {
  6100. return SSL_new ();
  6101. ;
  6102. return 0;
  6103. }
  6104. _ACEOF
  6105. if ac_fn_c_try_link "$LINENO"; then :
  6106. ac_cv_lib_ssl_SSL_new=yes
  6107. else
  6108. ac_cv_lib_ssl_SSL_new=no
  6109. fi
  6110. rm -f core conftest.err conftest.$ac_objext \
  6111. conftest$ac_exeext conftest.$ac_ext
  6112. LIBS=$ac_check_lib_save_LIBS
  6113. fi
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
  6115. $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
  6116. if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
  6117. cat >>confdefs.h <<_ACEOF
  6118. #define HAVE_LIBSSL 1
  6119. _ACEOF
  6120. LIBS="-lssl $LIBS"
  6121. fi
  6122. for ac_func in SSL_new
  6123. do :
  6124. ac_fn_c_check_func "$LINENO" "SSL_new" "ac_cv_func_SSL_new"
  6125. if test "x$ac_cv_func_SSL_new" = xyes; then :
  6126. cat >>confdefs.h <<_ACEOF
  6127. #define HAVE_SSL_NEW 1
  6128. _ACEOF
  6129. x_ssl_openssl=yes
  6130. else
  6131. as_fn_error $? "Can't enable openssl" "$LINENO" 5
  6132. fi
  6133. done
  6134. fi
  6135. fi
  6136. # Check whether --with-gnutls was given.
  6137. if test "${with_gnutls+set}" = set; then :
  6138. withval=$with_gnutls; if test "$withval" != "no"; then
  6139. if test "$withval" != "yes"; then
  6140. CFLAGS="-I$withval/include $CFLAGS"
  6141. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6142. LDFLAGS="-L$withval/lib $LDFLAGS"
  6143. fi
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
  6145. $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
  6146. if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then :
  6147. $as_echo_n "(cached) " >&6
  6148. else
  6149. ac_check_lib_save_LIBS=$LIBS
  6150. LIBS="-lgnutls $LIBS"
  6151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6152. /* end confdefs.h. */
  6153. /* Override any GCC internal prototype to avoid an error.
  6154. Use char because int might match the return type of a GCC
  6155. builtin and then its argument prototype would still apply. */
  6156. #ifdef __cplusplus
  6157. extern "C"
  6158. #endif
  6159. char gnutls_global_init ();
  6160. int
  6161. main ()
  6162. {
  6163. return gnutls_global_init ();
  6164. ;
  6165. return 0;
  6166. }
  6167. _ACEOF
  6168. if ac_fn_c_try_link "$LINENO"; then :
  6169. ac_cv_lib_gnutls_gnutls_global_init=yes
  6170. else
  6171. ac_cv_lib_gnutls_gnutls_global_init=no
  6172. fi
  6173. rm -f core conftest.err conftest.$ac_objext \
  6174. conftest$ac_exeext conftest.$ac_ext
  6175. LIBS=$ac_check_lib_save_LIBS
  6176. fi
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
  6178. $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
  6179. if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then :
  6180. cat >>confdefs.h <<_ACEOF
  6181. #define HAVE_LIBGNUTLS 1
  6182. _ACEOF
  6183. LIBS="-lgnutls $LIBS"
  6184. fi
  6185. for ac_func in gnutls_global_init
  6186. do :
  6187. ac_fn_c_check_func "$LINENO" "gnutls_global_init" "ac_cv_func_gnutls_global_init"
  6188. if test "x$ac_cv_func_gnutls_global_init" = xyes; then :
  6189. cat >>confdefs.h <<_ACEOF
  6190. #define HAVE_GNUTLS_GLOBAL_INIT 1
  6191. _ACEOF
  6192. x_ssl_gnutls=yes
  6193. else
  6194. as_fn_error $? "Can't enable gnutls" "$LINENO" 5
  6195. fi
  6196. done
  6197. fi
  6198. fi
  6199. x_ssl_lib="no"
  6200. if test "$x_ssl_gnutls" = "yes"; then
  6201. if test "$x_ssl_openssl" = "yes";then
  6202. as_fn_error $? "Cannot enable both gnutls and openssl" "$LINENO" 5
  6203. fi
  6204. x_ssl_lib=gnutls
  6205. fi
  6206. if test "$x_ssl_openssl" = "yes"; then
  6207. x_ssl_lib=openssl
  6208. fi
  6209. # use TCP wrappers?
  6210. x_tcpwrap_on=no
  6211. # Check whether --with-tcp-wrappers was given.
  6212. if test "${with_tcp_wrappers+set}" = set; then :
  6213. withval=$with_tcp_wrappers; if test "$withval" != "no"; then
  6214. if test "$withval" != "yes"; then
  6215. CFLAGS="-I$withval/include $CFLAGS"
  6216. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6217. LDFLAGS="-L$withval/lib $LDFLAGS"
  6218. fi
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access" >&5
  6220. $as_echo_n "checking for hosts_access... " >&6; }
  6221. saved_LIBS="$LIBS"
  6222. LIBS="-lwrap $LIBS"
  6223. LIBS_END="-lwrap $LIBS_END"
  6224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6225. /* end confdefs.h. */
  6226. #include <sys/types.h>
  6227. #include <sys/socket.h>
  6228. #include <tcpd.h>
  6229. int allow_severity = 0;
  6230. int deny_severity = 0;
  6231. int
  6232. main ()
  6233. {
  6234. tcpd_warn("link test");
  6235. ;
  6236. return 0;
  6237. }
  6238. _ACEOF
  6239. if ac_fn_c_try_link "$LINENO"; then :
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6241. $as_echo "yes" >&6; }
  6242. $as_echo "#define TCPWRAP 1" >>confdefs.h
  6243. x_tcpwrap_on=yes
  6244. else
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6246. $as_echo "no" >&6; }
  6247. as_fn_error $? "Can't enable TCP wrappers!" "$LINENO" 5
  6248. fi
  6249. rm -f core conftest.err conftest.$ac_objext \
  6250. conftest$ac_exeext conftest.$ac_ext
  6251. LIBS="$saved_LIBS"
  6252. fi
  6253. fi
  6254. # do IDENT requests using libident?
  6255. x_identauth_on=no
  6256. # Check whether --with-ident was given.
  6257. if test "${with_ident+set}" = set; then :
  6258. withval=$with_ident; if test "$withval" != "no"; then
  6259. if test "$withval" != "yes"; then
  6260. CFLAGS="-I$withval/include $CFLAGS"
  6261. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6262. LDFLAGS="-L$withval/lib $LDFLAGS"
  6263. fi
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ident_id in -lident" >&5
  6265. $as_echo_n "checking for ident_id in -lident... " >&6; }
  6266. if ${ac_cv_lib_ident_ident_id+:} false; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. ac_check_lib_save_LIBS=$LIBS
  6270. LIBS="-lident $LIBS"
  6271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6272. /* end confdefs.h. */
  6273. /* Override any GCC internal prototype to avoid an error.
  6274. Use char because int might match the return type of a GCC
  6275. builtin and then its argument prototype would still apply. */
  6276. #ifdef __cplusplus
  6277. extern "C"
  6278. #endif
  6279. char ident_id ();
  6280. int
  6281. main ()
  6282. {
  6283. return ident_id ();
  6284. ;
  6285. return 0;
  6286. }
  6287. _ACEOF
  6288. if ac_fn_c_try_link "$LINENO"; then :
  6289. ac_cv_lib_ident_ident_id=yes
  6290. else
  6291. ac_cv_lib_ident_ident_id=no
  6292. fi
  6293. rm -f core conftest.err conftest.$ac_objext \
  6294. conftest$ac_exeext conftest.$ac_ext
  6295. LIBS=$ac_check_lib_save_LIBS
  6296. fi
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ident_ident_id" >&5
  6298. $as_echo "$ac_cv_lib_ident_ident_id" >&6; }
  6299. if test "x$ac_cv_lib_ident_ident_id" = xyes; then :
  6300. cat >>confdefs.h <<_ACEOF
  6301. #define HAVE_LIBIDENT 1
  6302. _ACEOF
  6303. LIBS="-lident $LIBS"
  6304. fi
  6305. for ac_func in ident_id
  6306. do :
  6307. ac_fn_c_check_func "$LINENO" "ident_id" "ac_cv_func_ident_id"
  6308. if test "x$ac_cv_func_ident_id" = xyes; then :
  6309. cat >>confdefs.h <<_ACEOF
  6310. #define HAVE_IDENT_ID 1
  6311. _ACEOF
  6312. x_identauth_on=yes
  6313. else
  6314. as_fn_error $? "Can't enable IDENT support!" "$LINENO" 5
  6315. fi
  6316. done
  6317. fi
  6318. fi
  6319. if test "$x_identauth_on" = "yes"; then
  6320. $as_echo "#define IDENTAUTH 1" >>confdefs.h
  6321. for ac_header in ident.h
  6322. do :
  6323. ac_fn_c_check_header_mongrel "$LINENO" "ident.h" "ac_cv_header_ident_h" "$ac_includes_default"
  6324. if test "x$ac_cv_header_ident_h" = xyes; then :
  6325. cat >>confdefs.h <<_ACEOF
  6326. #define HAVE_IDENT_H 1
  6327. _ACEOF
  6328. else
  6329. as_fn_error $? "required C header missing!" "$LINENO" 5
  6330. fi
  6331. done
  6332. fi
  6333. # compile in PAM support?
  6334. x_pam_on=no
  6335. # Check whether --with-pam was given.
  6336. if test "${with_pam+set}" = set; then :
  6337. withval=$with_pam; if test "$withval" != "no"; then
  6338. if test "$withval" != "yes"; then
  6339. CFLAGS="-I$withval/include $CFLAGS"
  6340. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6341. LDFLAGS="-L$withval/lib $LDFLAGS"
  6342. fi
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
  6344. $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
  6345. if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
  6346. $as_echo_n "(cached) " >&6
  6347. else
  6348. ac_check_lib_save_LIBS=$LIBS
  6349. LIBS="-lpam $LIBS"
  6350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6351. /* end confdefs.h. */
  6352. /* Override any GCC internal prototype to avoid an error.
  6353. Use char because int might match the return type of a GCC
  6354. builtin and then its argument prototype would still apply. */
  6355. #ifdef __cplusplus
  6356. extern "C"
  6357. #endif
  6358. char pam_authenticate ();
  6359. int
  6360. main ()
  6361. {
  6362. return pam_authenticate ();
  6363. ;
  6364. return 0;
  6365. }
  6366. _ACEOF
  6367. if ac_fn_c_try_link "$LINENO"; then :
  6368. ac_cv_lib_pam_pam_authenticate=yes
  6369. else
  6370. ac_cv_lib_pam_pam_authenticate=no
  6371. fi
  6372. rm -f core conftest.err conftest.$ac_objext \
  6373. conftest$ac_exeext conftest.$ac_ext
  6374. LIBS=$ac_check_lib_save_LIBS
  6375. fi
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
  6377. $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
  6378. if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
  6379. cat >>confdefs.h <<_ACEOF
  6380. #define HAVE_LIBPAM 1
  6381. _ACEOF
  6382. LIBS="-lpam $LIBS"
  6383. fi
  6384. for ac_func in pam_authenticate
  6385. do :
  6386. ac_fn_c_check_func "$LINENO" "pam_authenticate" "ac_cv_func_pam_authenticate"
  6387. if test "x$ac_cv_func_pam_authenticate" = xyes; then :
  6388. cat >>confdefs.h <<_ACEOF
  6389. #define HAVE_PAM_AUTHENTICATE 1
  6390. _ACEOF
  6391. x_pam_on=yes
  6392. else
  6393. as_fn_error $? "Can't enable PAM support!" "$LINENO" 5
  6394. fi
  6395. done
  6396. fi
  6397. fi
  6398. if test "$x_pam_on" = "yes"; then
  6399. $as_echo "#define PAM 1" >>confdefs.h
  6400. for ac_header in security/pam_appl.h
  6401. do :
  6402. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  6403. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  6404. cat >>confdefs.h <<_ACEOF
  6405. #define HAVE_SECURITY_PAM_APPL_H 1
  6406. _ACEOF
  6407. pam_ok=yes
  6408. fi
  6409. done
  6410. if test "$pam_ok" != "yes"; then
  6411. for ac_header in pam/pam_appl.h
  6412. do :
  6413. ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
  6414. if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
  6415. cat >>confdefs.h <<_ACEOF
  6416. #define HAVE_PAM_PAM_APPL_H 1
  6417. _ACEOF
  6418. pam_ok=yes
  6419. else
  6420. as_fn_error $? "required C header missing!" "$LINENO" 5
  6421. fi
  6422. done
  6423. fi
  6424. fi
  6425. # compile in IRC+ protocol support?
  6426. x_ircplus_on=yes
  6427. # Check whether --enable-ircplus was given.
  6428. if test "${enable_ircplus+set}" = set; then :
  6429. enableval=$enable_ircplus; if test "$enableval" = "no"; then x_ircplus_on=no; fi
  6430. fi
  6431. if test "$x_ircplus_on" = "yes"; then
  6432. $as_echo "#define IRCPLUS 1" >>confdefs.h
  6433. # Compile in iconv support?
  6434. # We only check for it when IRC+ is enabled, because the IRC+ command
  6435. # CHARCONV is the only function depending on it.
  6436. x_iconv_on=no
  6437. # Check whether --with-iconv was given.
  6438. if test "${with_iconv+set}" = set; then :
  6439. withval=$with_iconv; if test "$withval" != "no"; then
  6440. if test "$withval" != "yes"; then
  6441. CFLAGS="-I$withval/include $CFLAGS"
  6442. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6443. LDFLAGS="-L$withval/lib $LDFLAGS"
  6444. fi
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  6446. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  6447. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  6448. $as_echo_n "(cached) " >&6
  6449. else
  6450. ac_check_lib_save_LIBS=$LIBS
  6451. LIBS="-liconv $LIBS"
  6452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6453. /* end confdefs.h. */
  6454. /* Override any GCC internal prototype to avoid an error.
  6455. Use char because int might match the return type of a GCC
  6456. builtin and then its argument prototype would still apply. */
  6457. #ifdef __cplusplus
  6458. extern "C"
  6459. #endif
  6460. char iconv_open ();
  6461. int
  6462. main ()
  6463. {
  6464. return iconv_open ();
  6465. ;
  6466. return 0;
  6467. }
  6468. _ACEOF
  6469. if ac_fn_c_try_link "$LINENO"; then :
  6470. ac_cv_lib_iconv_iconv_open=yes
  6471. else
  6472. ac_cv_lib_iconv_iconv_open=no
  6473. fi
  6474. rm -f core conftest.err conftest.$ac_objext \
  6475. conftest$ac_exeext conftest.$ac_ext
  6476. LIBS=$ac_check_lib_save_LIBS
  6477. fi
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  6479. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  6480. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  6481. cat >>confdefs.h <<_ACEOF
  6482. #define HAVE_LIBICONV 1
  6483. _ACEOF
  6484. LIBS="-liconv $LIBS"
  6485. fi
  6486. for ac_func in iconv_open
  6487. do :
  6488. ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
  6489. if test "x$ac_cv_func_iconv_open" = xyes; then :
  6490. cat >>confdefs.h <<_ACEOF
  6491. #define HAVE_ICONV_OPEN 1
  6492. _ACEOF
  6493. x_iconv_on=yes
  6494. fi
  6495. done
  6496. if test "$x_iconv_on" != "yes"; then
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
  6498. $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
  6499. if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. ac_check_lib_save_LIBS=$LIBS
  6503. LIBS="-liconv $LIBS"
  6504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6505. /* end confdefs.h. */
  6506. /* Override any GCC internal prototype to avoid an error.
  6507. Use char because int might match the return type of a GCC
  6508. builtin and then its argument prototype would still apply. */
  6509. #ifdef __cplusplus
  6510. extern "C"
  6511. #endif
  6512. char libiconv_open ();
  6513. int
  6514. main ()
  6515. {
  6516. return libiconv_open ();
  6517. ;
  6518. return 0;
  6519. }
  6520. _ACEOF
  6521. if ac_fn_c_try_link "$LINENO"; then :
  6522. ac_cv_lib_iconv_libiconv_open=yes
  6523. else
  6524. ac_cv_lib_iconv_libiconv_open=no
  6525. fi
  6526. rm -f core conftest.err conftest.$ac_objext \
  6527. conftest$ac_exeext conftest.$ac_ext
  6528. LIBS=$ac_check_lib_save_LIBS
  6529. fi
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
  6531. $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
  6532. if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
  6533. cat >>confdefs.h <<_ACEOF
  6534. #define HAVE_LIBICONV 1
  6535. _ACEOF
  6536. LIBS="-liconv $LIBS"
  6537. fi
  6538. for ac_func in libiconv_open
  6539. do :
  6540. ac_fn_c_check_func "$LINENO" "libiconv_open" "ac_cv_func_libiconv_open"
  6541. if test "x$ac_cv_func_libiconv_open" = xyes; then :
  6542. cat >>confdefs.h <<_ACEOF
  6543. #define HAVE_LIBICONV_OPEN 1
  6544. _ACEOF
  6545. x_iconv_on=yes
  6546. fi
  6547. done
  6548. fi
  6549. if test "$x_iconv_on" != "yes"; then
  6550. as_fn_error $? "Can't enable libiconv support!" "$LINENO" 5
  6551. fi
  6552. fi
  6553. fi
  6554. if test "$x_iconv_on" = "yes"; then
  6555. $as_echo "#define ICONV 1" >>confdefs.h
  6556. fi
  6557. fi
  6558. # enable support for IPv6?
  6559. x_ipv6_on=no
  6560. # Check whether --enable-ipv6 was given.
  6561. if test "${enable_ipv6+set}" = set; then :
  6562. enableval=$enable_ipv6; if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
  6563. fi
  6564. if test "$x_ipv6_on" = "yes"; then
  6565. # getaddrinfo() and getnameinfo() are optional when not compiling
  6566. # with IPv6 support, but are required for IPv6 to work!
  6567. for ac_func in \
  6568. getaddrinfo getnameinfo \
  6569. do :
  6570. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6571. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6572. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6573. cat >>confdefs.h <<_ACEOF
  6574. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6575. _ACEOF
  6576. else
  6577. as_fn_error $? "required function missing for IPv6 support!" "$LINENO" 5
  6578. fi
  6579. done
  6580. $as_echo "#define WANT_IPV6 1" >>confdefs.h
  6581. fi
  6582. # compile in IRC "sniffer"?
  6583. x_sniffer_on=no; x_debug_on=no
  6584. # Check whether --enable-sniffer was given.
  6585. if test "${enable_sniffer+set}" = set; then :
  6586. enableval=$enable_sniffer; if test "$enableval" = "yes"; then
  6587. $as_echo "#define SNIFFER 1" >>confdefs.h
  6588. x_sniffer_on=yes; x_debug_on=yes
  6589. fi
  6590. fi
  6591. # enable additional debugging code?
  6592. # Check whether --enable-debug was given.
  6593. if test "${enable_debug+set}" = set; then :
  6594. enableval=$enable_debug; if test "$enableval" = "yes"; then x_debug_on=yes; fi
  6595. fi
  6596. if test "$x_debug_on" = "yes"; then
  6597. $as_echo "#define DEBUG 1" >>confdefs.h
  6598. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  6599. for ac_func in mtrace
  6600. do :
  6601. ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace"
  6602. if test "x$ac_cv_func_mtrace" = xyes; then :
  6603. cat >>confdefs.h <<_ACEOF
  6604. #define HAVE_MTRACE 1
  6605. _ACEOF
  6606. fi
  6607. done
  6608. fi
  6609. # enable "strict RFC rules"?
  6610. x_strict_rfc_on=no
  6611. # Check whether --enable-strict-rfc was given.
  6612. if test "${enable_strict_rfc+set}" = set; then :
  6613. enableval=$enable_strict_rfc; if test "$enableval" = "yes"; then
  6614. $as_echo "#define STRICT_RFC 1" >>confdefs.h
  6615. x_strict_rfc_on=yes
  6616. fi
  6617. fi
  6618. # -- Definitions --
  6619. cat >>confdefs.h <<_ACEOF
  6620. #define HOST_CPU "$host_cpu"
  6621. _ACEOF
  6622. cat >>confdefs.h <<_ACEOF
  6623. #define HOST_VENDOR "$host_vendor"
  6624. _ACEOF
  6625. cat >>confdefs.h <<_ACEOF
  6626. #define HOST_OS "$host_os"
  6627. _ACEOF
  6628. # Add additional CFLAGS, LDFLAGS and LIBS which were specified on the command
  6629. # line or by some tests from above, but after running this script. Useful for
  6630. # adding "-Werror", for example:
  6631. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  6632. test -n "$LDFLAGS_END" && LDFLAGS="$LDFLAGS $LDFLAGS_END"
  6633. test -n "$LIBS_END" && LIBS="$LIBS $LIBS_END"
  6634. # -- Generate files --
  6635. ac_config_files="$ac_config_files Makefile contrib/Debian/Makefile contrib/MacOSX/Makefile contrib/MacOSX/ngIRCd.pmdoc/Makefile contrib/MacOSX/ngIRCd.xcodeproj/Makefile contrib/Makefile doc/Makefile doc/src/Makefile man/Makefile src/ipaddr/Makefile src/Makefile src/ngircd/Makefile src/portab/Makefile src/testsuite/Makefile src/tool/Makefile"
  6636. cat >confcache <<\_ACEOF
  6637. # This file is a shell script that caches the results of configure
  6638. # tests run on this system so they can be shared between configure
  6639. # scripts and configure runs, see configure's option --config-cache.
  6640. # It is not useful on other systems. If it contains results you don't
  6641. # want to keep, you may remove or edit it.
  6642. #
  6643. # config.status only pays attention to the cache file if you give it
  6644. # the --recheck option to rerun configure.
  6645. #
  6646. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6647. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6648. # following values.
  6649. _ACEOF
  6650. # The following way of writing the cache mishandles newlines in values,
  6651. # but we know of no workaround that is simple, portable, and efficient.
  6652. # So, we kill variables containing newlines.
  6653. # Ultrix sh set writes to stderr and can't be redirected directly,
  6654. # and sets the high bit in the cache file unless we assign to the vars.
  6655. (
  6656. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6657. eval ac_val=\$$ac_var
  6658. case $ac_val in #(
  6659. *${as_nl}*)
  6660. case $ac_var in #(
  6661. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6662. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6663. esac
  6664. case $ac_var in #(
  6665. _ | IFS | as_nl) ;; #(
  6666. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6667. *) { eval $ac_var=; unset $ac_var;} ;;
  6668. esac ;;
  6669. esac
  6670. done
  6671. (set) 2>&1 |
  6672. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6673. *${as_nl}ac_space=\ *)
  6674. # `set' does not quote correctly, so add quotes: double-quote
  6675. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6676. sed -n \
  6677. "s/'/'\\\\''/g;
  6678. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6679. ;; #(
  6680. *)
  6681. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6682. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6683. ;;
  6684. esac |
  6685. sort
  6686. ) |
  6687. sed '
  6688. /^ac_cv_env_/b end
  6689. t clear
  6690. :clear
  6691. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6692. t end
  6693. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6694. :end' >>confcache
  6695. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6696. if test -w "$cache_file"; then
  6697. if test "x$cache_file" != "x/dev/null"; then
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6699. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6700. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6701. cat confcache >"$cache_file"
  6702. else
  6703. case $cache_file in #(
  6704. */* | ?:*)
  6705. mv -f confcache "$cache_file"$$ &&
  6706. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6707. *)
  6708. mv -f confcache "$cache_file" ;;
  6709. esac
  6710. fi
  6711. fi
  6712. else
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6714. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6715. fi
  6716. fi
  6717. rm -f confcache
  6718. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6719. # Let make expand exec_prefix.
  6720. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6721. DEFS=-DHAVE_CONFIG_H
  6722. ac_libobjs=
  6723. ac_ltlibobjs=
  6724. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6725. # 1. Remove the extension, and $U if already installed.
  6726. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6727. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6728. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6729. # will be set to the directory where LIBOBJS objects are built.
  6730. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6731. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6732. done
  6733. LIBOBJS=$ac_libobjs
  6734. LTLIBOBJS=$ac_ltlibobjs
  6735. if test -n "$EXEEXT"; then
  6736. am__EXEEXT_TRUE=
  6737. am__EXEEXT_FALSE='#'
  6738. else
  6739. am__EXEEXT_TRUE='#'
  6740. am__EXEEXT_FALSE=
  6741. fi
  6742. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  6743. as_fn_error $? "conditional \"AMDEP\" was never defined.
  6744. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6745. fi
  6746. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  6747. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  6748. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6749. fi
  6750. : "${CONFIG_STATUS=./config.status}"
  6751. ac_write_fail=0
  6752. ac_clean_files_save=$ac_clean_files
  6753. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6755. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6756. as_write_fail=0
  6757. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6758. #! $SHELL
  6759. # Generated by $as_me.
  6760. # Run this file to recreate the current configuration.
  6761. # Compiler output produced by configure, useful for debugging
  6762. # configure, is in config.log if it exists.
  6763. debug=false
  6764. ac_cs_recheck=false
  6765. ac_cs_silent=false
  6766. SHELL=\${CONFIG_SHELL-$SHELL}
  6767. export SHELL
  6768. _ASEOF
  6769. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6770. ## -------------------- ##
  6771. ## M4sh Initialization. ##
  6772. ## -------------------- ##
  6773. # Be more Bourne compatible
  6774. DUALCASE=1; export DUALCASE # for MKS sh
  6775. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6776. emulate sh
  6777. NULLCMD=:
  6778. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6779. # is contrary to our usage. Disable this feature.
  6780. alias -g '${1+"$@"}'='"$@"'
  6781. setopt NO_GLOB_SUBST
  6782. else
  6783. case `(set -o) 2>/dev/null` in #(
  6784. *posix*) :
  6785. set -o posix ;; #(
  6786. *) :
  6787. ;;
  6788. esac
  6789. fi
  6790. as_nl='
  6791. '
  6792. export as_nl
  6793. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6794. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6795. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6796. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6797. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6798. # but without wasting forks for bash or zsh.
  6799. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6800. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6801. as_echo='print -r --'
  6802. as_echo_n='print -rn --'
  6803. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6804. as_echo='printf %s\n'
  6805. as_echo_n='printf %s'
  6806. else
  6807. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6808. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6809. as_echo_n='/usr/ucb/echo -n'
  6810. else
  6811. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6812. as_echo_n_body='eval
  6813. arg=$1;
  6814. case $arg in #(
  6815. *"$as_nl"*)
  6816. expr "X$arg" : "X\\(.*\\)$as_nl";
  6817. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6818. esac;
  6819. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6820. '
  6821. export as_echo_n_body
  6822. as_echo_n='sh -c $as_echo_n_body as_echo'
  6823. fi
  6824. export as_echo_body
  6825. as_echo='sh -c $as_echo_body as_echo'
  6826. fi
  6827. # The user is always right.
  6828. if test "${PATH_SEPARATOR+set}" != set; then
  6829. PATH_SEPARATOR=:
  6830. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6831. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6832. PATH_SEPARATOR=';'
  6833. }
  6834. fi
  6835. # IFS
  6836. # We need space, tab and new line, in precisely that order. Quoting is
  6837. # there to prevent editors from complaining about space-tab.
  6838. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6839. # splitting by setting IFS to empty value.)
  6840. IFS=" "" $as_nl"
  6841. # Find who we are. Look in the path if we contain no directory separator.
  6842. as_myself=
  6843. case $0 in #((
  6844. *[\\/]* ) as_myself=$0 ;;
  6845. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6846. for as_dir in $PATH
  6847. do
  6848. IFS=$as_save_IFS
  6849. test -z "$as_dir" && as_dir=.
  6850. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6851. done
  6852. IFS=$as_save_IFS
  6853. ;;
  6854. esac
  6855. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6856. # in which case we are not to be found in the path.
  6857. if test "x$as_myself" = x; then
  6858. as_myself=$0
  6859. fi
  6860. if test ! -f "$as_myself"; then
  6861. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6862. exit 1
  6863. fi
  6864. # Unset variables that we do not need and which cause bugs (e.g. in
  6865. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6866. # suppresses any "Segmentation fault" message there. '((' could
  6867. # trigger a bug in pdksh 5.2.14.
  6868. for as_var in BASH_ENV ENV MAIL MAILPATH
  6869. do eval test x\${$as_var+set} = xset \
  6870. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6871. done
  6872. PS1='$ '
  6873. PS2='> '
  6874. PS4='+ '
  6875. # NLS nuisances.
  6876. LC_ALL=C
  6877. export LC_ALL
  6878. LANGUAGE=C
  6879. export LANGUAGE
  6880. # CDPATH.
  6881. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6882. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6883. # ----------------------------------------
  6884. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6885. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6886. # script with STATUS, using 1 if that was 0.
  6887. as_fn_error ()
  6888. {
  6889. as_status=$1; test $as_status -eq 0 && as_status=1
  6890. if test "$4"; then
  6891. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6892. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6893. fi
  6894. $as_echo "$as_me: error: $2" >&2
  6895. as_fn_exit $as_status
  6896. } # as_fn_error
  6897. # as_fn_set_status STATUS
  6898. # -----------------------
  6899. # Set $? to STATUS, without forking.
  6900. as_fn_set_status ()
  6901. {
  6902. return $1
  6903. } # as_fn_set_status
  6904. # as_fn_exit STATUS
  6905. # -----------------
  6906. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6907. as_fn_exit ()
  6908. {
  6909. set +e
  6910. as_fn_set_status $1
  6911. exit $1
  6912. } # as_fn_exit
  6913. # as_fn_unset VAR
  6914. # ---------------
  6915. # Portably unset VAR.
  6916. as_fn_unset ()
  6917. {
  6918. { eval $1=; unset $1;}
  6919. }
  6920. as_unset=as_fn_unset
  6921. # as_fn_append VAR VALUE
  6922. # ----------------------
  6923. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6924. # advantage of any shell optimizations that allow amortized linear growth over
  6925. # repeated appends, instead of the typical quadratic growth present in naive
  6926. # implementations.
  6927. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6928. eval 'as_fn_append ()
  6929. {
  6930. eval $1+=\$2
  6931. }'
  6932. else
  6933. as_fn_append ()
  6934. {
  6935. eval $1=\$$1\$2
  6936. }
  6937. fi # as_fn_append
  6938. # as_fn_arith ARG...
  6939. # ------------------
  6940. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6941. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6942. # must be portable across $(()) and expr.
  6943. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6944. eval 'as_fn_arith ()
  6945. {
  6946. as_val=$(( $* ))
  6947. }'
  6948. else
  6949. as_fn_arith ()
  6950. {
  6951. as_val=`expr "$@" || test $? -eq 1`
  6952. }
  6953. fi # as_fn_arith
  6954. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6955. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6956. as_expr=expr
  6957. else
  6958. as_expr=false
  6959. fi
  6960. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6961. as_basename=basename
  6962. else
  6963. as_basename=false
  6964. fi
  6965. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6966. as_dirname=dirname
  6967. else
  6968. as_dirname=false
  6969. fi
  6970. as_me=`$as_basename -- "$0" ||
  6971. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6972. X"$0" : 'X\(//\)$' \| \
  6973. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6974. $as_echo X/"$0" |
  6975. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6976. s//\1/
  6977. q
  6978. }
  6979. /^X\/\(\/\/\)$/{
  6980. s//\1/
  6981. q
  6982. }
  6983. /^X\/\(\/\).*/{
  6984. s//\1/
  6985. q
  6986. }
  6987. s/.*/./; q'`
  6988. # Avoid depending upon Character Ranges.
  6989. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6990. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6991. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6992. as_cr_digits='0123456789'
  6993. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6994. ECHO_C= ECHO_N= ECHO_T=
  6995. case `echo -n x` in #(((((
  6996. -n*)
  6997. case `echo 'xy\c'` in
  6998. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6999. xy) ECHO_C='\c';;
  7000. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7001. ECHO_T=' ';;
  7002. esac;;
  7003. *)
  7004. ECHO_N='-n';;
  7005. esac
  7006. rm -f conf$$ conf$$.exe conf$$.file
  7007. if test -d conf$$.dir; then
  7008. rm -f conf$$.dir/conf$$.file
  7009. else
  7010. rm -f conf$$.dir
  7011. mkdir conf$$.dir 2>/dev/null
  7012. fi
  7013. if (echo >conf$$.file) 2>/dev/null; then
  7014. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7015. as_ln_s='ln -s'
  7016. # ... but there are two gotchas:
  7017. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7018. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7019. # In both cases, we have to default to `cp -pR'.
  7020. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7021. as_ln_s='cp -pR'
  7022. elif ln conf$$.file conf$$ 2>/dev/null; then
  7023. as_ln_s=ln
  7024. else
  7025. as_ln_s='cp -pR'
  7026. fi
  7027. else
  7028. as_ln_s='cp -pR'
  7029. fi
  7030. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7031. rmdir conf$$.dir 2>/dev/null
  7032. # as_fn_mkdir_p
  7033. # -------------
  7034. # Create "$as_dir" as a directory, including parents if necessary.
  7035. as_fn_mkdir_p ()
  7036. {
  7037. case $as_dir in #(
  7038. -*) as_dir=./$as_dir;;
  7039. esac
  7040. test -d "$as_dir" || eval $as_mkdir_p || {
  7041. as_dirs=
  7042. while :; do
  7043. case $as_dir in #(
  7044. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7045. *) as_qdir=$as_dir;;
  7046. esac
  7047. as_dirs="'$as_qdir' $as_dirs"
  7048. as_dir=`$as_dirname -- "$as_dir" ||
  7049. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7050. X"$as_dir" : 'X\(//\)[^/]' \| \
  7051. X"$as_dir" : 'X\(//\)$' \| \
  7052. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7053. $as_echo X"$as_dir" |
  7054. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7055. s//\1/
  7056. q
  7057. }
  7058. /^X\(\/\/\)[^/].*/{
  7059. s//\1/
  7060. q
  7061. }
  7062. /^X\(\/\/\)$/{
  7063. s//\1/
  7064. q
  7065. }
  7066. /^X\(\/\).*/{
  7067. s//\1/
  7068. q
  7069. }
  7070. s/.*/./; q'`
  7071. test -d "$as_dir" && break
  7072. done
  7073. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7074. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7075. } # as_fn_mkdir_p
  7076. if mkdir -p . 2>/dev/null; then
  7077. as_mkdir_p='mkdir -p "$as_dir"'
  7078. else
  7079. test -d ./-p && rmdir ./-p
  7080. as_mkdir_p=false
  7081. fi
  7082. # as_fn_executable_p FILE
  7083. # -----------------------
  7084. # Test if FILE is an executable regular file.
  7085. as_fn_executable_p ()
  7086. {
  7087. test -f "$1" && test -x "$1"
  7088. } # as_fn_executable_p
  7089. as_test_x='test -x'
  7090. as_executable_p=as_fn_executable_p
  7091. # Sed expression to map a string onto a valid CPP name.
  7092. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7093. # Sed expression to map a string onto a valid variable name.
  7094. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7095. exec 6>&1
  7096. ## ----------------------------------- ##
  7097. ## Main body of $CONFIG_STATUS script. ##
  7098. ## ----------------------------------- ##
  7099. _ASEOF
  7100. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7101. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7102. # Save the log message, to keep $0 and so on meaningful, and to
  7103. # report actual input values of CONFIG_FILES etc. instead of their
  7104. # values after options handling.
  7105. ac_log="
  7106. This file was extended by ngIRCd $as_me 25, which was
  7107. generated by GNU Autoconf 2.69. Invocation command line was
  7108. CONFIG_FILES = $CONFIG_FILES
  7109. CONFIG_HEADERS = $CONFIG_HEADERS
  7110. CONFIG_LINKS = $CONFIG_LINKS
  7111. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7112. $ $0 $@
  7113. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7114. "
  7115. _ACEOF
  7116. case $ac_config_files in *"
  7117. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7118. esac
  7119. case $ac_config_headers in *"
  7120. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7121. esac
  7122. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7123. # Files that config.status was made for.
  7124. config_files="$ac_config_files"
  7125. config_headers="$ac_config_headers"
  7126. config_commands="$ac_config_commands"
  7127. _ACEOF
  7128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7129. ac_cs_usage="\
  7130. \`$as_me' instantiates files and other configuration actions
  7131. from templates according to the current configuration. Unless the files
  7132. and actions are specified as TAGs, all are instantiated by default.
  7133. Usage: $0 [OPTION]... [TAG]...
  7134. -h, --help print this help, then exit
  7135. -V, --version print version number and configuration settings, then exit
  7136. --config print configuration, then exit
  7137. -q, --quiet, --silent
  7138. do not print progress messages
  7139. -d, --debug don't remove temporary files
  7140. --recheck update $as_me by reconfiguring in the same conditions
  7141. --file=FILE[:TEMPLATE]
  7142. instantiate the configuration file FILE
  7143. --header=FILE[:TEMPLATE]
  7144. instantiate the configuration header FILE
  7145. Configuration files:
  7146. $config_files
  7147. Configuration headers:
  7148. $config_headers
  7149. Configuration commands:
  7150. $config_commands
  7151. Report bugs to <ngircd-ml@ngircd.barton.de>.
  7152. ngIRCd home page: <http://ngircd.barton.de/>."
  7153. _ACEOF
  7154. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7155. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7156. ac_cs_version="\\
  7157. ngIRCd config.status 25
  7158. configured by $0, generated by GNU Autoconf 2.69,
  7159. with options \\"\$ac_cs_config\\"
  7160. Copyright (C) 2012 Free Software Foundation, Inc.
  7161. This config.status script is free software; the Free Software Foundation
  7162. gives unlimited permission to copy, distribute and modify it."
  7163. ac_pwd='$ac_pwd'
  7164. srcdir='$srcdir'
  7165. INSTALL='$INSTALL'
  7166. MKDIR_P='$MKDIR_P'
  7167. AWK='$AWK'
  7168. test -n "\$AWK" || AWK=awk
  7169. _ACEOF
  7170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7171. # The default lists apply if the user does not specify any file.
  7172. ac_need_defaults=:
  7173. while test $# != 0
  7174. do
  7175. case $1 in
  7176. --*=?*)
  7177. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7178. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7179. ac_shift=:
  7180. ;;
  7181. --*=)
  7182. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7183. ac_optarg=
  7184. ac_shift=:
  7185. ;;
  7186. *)
  7187. ac_option=$1
  7188. ac_optarg=$2
  7189. ac_shift=shift
  7190. ;;
  7191. esac
  7192. case $ac_option in
  7193. # Handling of the options.
  7194. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7195. ac_cs_recheck=: ;;
  7196. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7197. $as_echo "$ac_cs_version"; exit ;;
  7198. --config | --confi | --conf | --con | --co | --c )
  7199. $as_echo "$ac_cs_config"; exit ;;
  7200. --debug | --debu | --deb | --de | --d | -d )
  7201. debug=: ;;
  7202. --file | --fil | --fi | --f )
  7203. $ac_shift
  7204. case $ac_optarg in
  7205. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7206. '') as_fn_error $? "missing file argument" ;;
  7207. esac
  7208. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7209. ac_need_defaults=false;;
  7210. --header | --heade | --head | --hea )
  7211. $ac_shift
  7212. case $ac_optarg in
  7213. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7214. esac
  7215. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7216. ac_need_defaults=false;;
  7217. --he | --h)
  7218. # Conflict between --help and --header
  7219. as_fn_error $? "ambiguous option: \`$1'
  7220. Try \`$0 --help' for more information.";;
  7221. --help | --hel | -h )
  7222. $as_echo "$ac_cs_usage"; exit ;;
  7223. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7224. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7225. ac_cs_silent=: ;;
  7226. # This is an error.
  7227. -*) as_fn_error $? "unrecognized option: \`$1'
  7228. Try \`$0 --help' for more information." ;;
  7229. *) as_fn_append ac_config_targets " $1"
  7230. ac_need_defaults=false ;;
  7231. esac
  7232. shift
  7233. done
  7234. ac_configure_extra_args=
  7235. if $ac_cs_silent; then
  7236. exec 6>/dev/null
  7237. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7238. fi
  7239. _ACEOF
  7240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7241. if \$ac_cs_recheck; then
  7242. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7243. shift
  7244. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7245. CONFIG_SHELL='$SHELL'
  7246. export CONFIG_SHELL
  7247. exec "\$@"
  7248. fi
  7249. _ACEOF
  7250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7251. exec 5>>config.log
  7252. {
  7253. echo
  7254. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7255. ## Running $as_me. ##
  7256. _ASBOX
  7257. $as_echo "$ac_log"
  7258. } >&5
  7259. _ACEOF
  7260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7261. #
  7262. # INIT-COMMANDS
  7263. #
  7264. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  7265. _ACEOF
  7266. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7267. # Handling of arguments.
  7268. for ac_config_target in $ac_config_targets
  7269. do
  7270. case $ac_config_target in
  7271. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  7272. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  7273. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7274. "contrib/Debian/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  7275. "contrib/MacOSX/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  7276. "contrib/MacOSX/ngIRCd.pmdoc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.pmdoc/Makefile" ;;
  7277. "contrib/MacOSX/ngIRCd.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.xcodeproj/Makefile" ;;
  7278. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  7279. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  7280. "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  7281. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  7282. "src/ipaddr/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipaddr/Makefile" ;;
  7283. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7284. "src/ngircd/Makefile") CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  7285. "src/portab/Makefile") CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  7286. "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  7287. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  7288. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7289. esac
  7290. done
  7291. # If the user did not use the arguments to specify the items to instantiate,
  7292. # then the envvar interface is used. Set only those that are not.
  7293. # We use the long form for the default assignment because of an extremely
  7294. # bizarre bug on SunOS 4.1.3.
  7295. if $ac_need_defaults; then
  7296. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7297. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7298. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7299. fi
  7300. # Have a temporary directory for convenience. Make it in the build tree
  7301. # simply because there is no reason against having it here, and in addition,
  7302. # creating and moving files from /tmp can sometimes cause problems.
  7303. # Hook for its removal unless debugging.
  7304. # Note that there is a small window in which the directory will not be cleaned:
  7305. # after its creation but before its name has been assigned to `$tmp'.
  7306. $debug ||
  7307. {
  7308. tmp= ac_tmp=
  7309. trap 'exit_status=$?
  7310. : "${ac_tmp:=$tmp}"
  7311. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7312. ' 0
  7313. trap 'as_fn_exit 1' 1 2 13 15
  7314. }
  7315. # Create a (secure) tmp directory for tmp files.
  7316. {
  7317. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7318. test -d "$tmp"
  7319. } ||
  7320. {
  7321. tmp=./conf$$-$RANDOM
  7322. (umask 077 && mkdir "$tmp")
  7323. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7324. ac_tmp=$tmp
  7325. # Set up the scripts for CONFIG_FILES section.
  7326. # No need to generate them if there are no CONFIG_FILES.
  7327. # This happens for instance with `./config.status config.h'.
  7328. if test -n "$CONFIG_FILES"; then
  7329. ac_cr=`echo X | tr X '\015'`
  7330. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7331. # But we know of no other shell where ac_cr would be empty at this
  7332. # point, so we can use a bashism as a fallback.
  7333. if test "x$ac_cr" = x; then
  7334. eval ac_cr=\$\'\\r\'
  7335. fi
  7336. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7337. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7338. ac_cs_awk_cr='\\r'
  7339. else
  7340. ac_cs_awk_cr=$ac_cr
  7341. fi
  7342. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7343. _ACEOF
  7344. {
  7345. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7346. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7347. echo "_ACEOF"
  7348. } >conf$$subs.sh ||
  7349. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7350. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7351. ac_delim='%!_!# '
  7352. for ac_last_try in false false false false false :; do
  7353. . ./conf$$subs.sh ||
  7354. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7355. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7356. if test $ac_delim_n = $ac_delim_num; then
  7357. break
  7358. elif $ac_last_try; then
  7359. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7360. else
  7361. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7362. fi
  7363. done
  7364. rm -f conf$$subs.sh
  7365. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7366. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7367. _ACEOF
  7368. sed -n '
  7369. h
  7370. s/^/S["/; s/!.*/"]=/
  7371. p
  7372. g
  7373. s/^[^!]*!//
  7374. :repl
  7375. t repl
  7376. s/'"$ac_delim"'$//
  7377. t delim
  7378. :nl
  7379. h
  7380. s/\(.\{148\}\)..*/\1/
  7381. t more1
  7382. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7383. p
  7384. n
  7385. b repl
  7386. :more1
  7387. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7388. p
  7389. g
  7390. s/.\{148\}//
  7391. t nl
  7392. :delim
  7393. h
  7394. s/\(.\{148\}\)..*/\1/
  7395. t more2
  7396. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7397. p
  7398. b
  7399. :more2
  7400. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7401. p
  7402. g
  7403. s/.\{148\}//
  7404. t delim
  7405. ' <conf$$subs.awk | sed '
  7406. /^[^""]/{
  7407. N
  7408. s/\n//
  7409. }
  7410. ' >>$CONFIG_STATUS || ac_write_fail=1
  7411. rm -f conf$$subs.awk
  7412. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7413. _ACAWK
  7414. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7415. for (key in S) S_is_set[key] = 1
  7416. FS = ""
  7417. }
  7418. {
  7419. line = $ 0
  7420. nfields = split(line, field, "@")
  7421. substed = 0
  7422. len = length(field[1])
  7423. for (i = 2; i < nfields; i++) {
  7424. key = field[i]
  7425. keylen = length(key)
  7426. if (S_is_set[key]) {
  7427. value = S[key]
  7428. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7429. len += length(value) + length(field[++i])
  7430. substed = 1
  7431. } else
  7432. len += 1 + keylen
  7433. }
  7434. print line
  7435. }
  7436. _ACAWK
  7437. _ACEOF
  7438. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7439. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7440. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7441. else
  7442. cat
  7443. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7444. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7445. _ACEOF
  7446. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7447. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7448. # trailing colons and then remove the whole line if VPATH becomes empty
  7449. # (actually we leave an empty line to preserve line numbers).
  7450. if test "x$srcdir" = x.; then
  7451. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7452. h
  7453. s///
  7454. s/^/:/
  7455. s/[ ]*$/:/
  7456. s/:\$(srcdir):/:/g
  7457. s/:\${srcdir}:/:/g
  7458. s/:@srcdir@:/:/g
  7459. s/^:*//
  7460. s/:*$//
  7461. x
  7462. s/\(=[ ]*\).*/\1/
  7463. G
  7464. s/\n//
  7465. s/^[^=]*=[ ]*$//
  7466. }'
  7467. fi
  7468. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7469. fi # test -n "$CONFIG_FILES"
  7470. # Set up the scripts for CONFIG_HEADERS section.
  7471. # No need to generate them if there are no CONFIG_HEADERS.
  7472. # This happens for instance with `./config.status Makefile'.
  7473. if test -n "$CONFIG_HEADERS"; then
  7474. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  7475. BEGIN {
  7476. _ACEOF
  7477. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7478. # here-document in config.status, that substitutes the proper values into
  7479. # config.h.in to produce config.h.
  7480. # Create a delimiter string that does not exist in confdefs.h, to ease
  7481. # handling of long lines.
  7482. ac_delim='%!_!# '
  7483. for ac_last_try in false false :; do
  7484. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  7485. if test -z "$ac_tt"; then
  7486. break
  7487. elif $ac_last_try; then
  7488. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7489. else
  7490. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7491. fi
  7492. done
  7493. # For the awk script, D is an array of macro values keyed by name,
  7494. # likewise P contains macro parameters if any. Preserve backslash
  7495. # newline sequences.
  7496. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7497. sed -n '
  7498. s/.\{148\}/&'"$ac_delim"'/g
  7499. t rset
  7500. :rset
  7501. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7502. t def
  7503. d
  7504. :def
  7505. s/\\$//
  7506. t bsnl
  7507. s/["\\]/\\&/g
  7508. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7509. D["\1"]=" \3"/p
  7510. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7511. d
  7512. :bsnl
  7513. s/["\\]/\\&/g
  7514. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7515. D["\1"]=" \3\\\\\\n"\\/p
  7516. t cont
  7517. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7518. t cont
  7519. d
  7520. :cont
  7521. n
  7522. s/.\{148\}/&'"$ac_delim"'/g
  7523. t clear
  7524. :clear
  7525. s/\\$//
  7526. t bsnlc
  7527. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7528. d
  7529. :bsnlc
  7530. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7531. b cont
  7532. ' <confdefs.h | sed '
  7533. s/'"$ac_delim"'/"\\\
  7534. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7535. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7536. for (key in D) D_is_set[key] = 1
  7537. FS = ""
  7538. }
  7539. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7540. line = \$ 0
  7541. split(line, arg, " ")
  7542. if (arg[1] == "#") {
  7543. defundef = arg[2]
  7544. mac1 = arg[3]
  7545. } else {
  7546. defundef = substr(arg[1], 2)
  7547. mac1 = arg[2]
  7548. }
  7549. split(mac1, mac2, "(") #)
  7550. macro = mac2[1]
  7551. prefix = substr(line, 1, index(line, defundef) - 1)
  7552. if (D_is_set[macro]) {
  7553. # Preserve the white space surrounding the "#".
  7554. print prefix "define", macro P[macro] D[macro]
  7555. next
  7556. } else {
  7557. # Replace #undef with comments. This is necessary, for example,
  7558. # in the case of _POSIX_SOURCE, which is predefined and required
  7559. # on some systems where configure will not decide to define it.
  7560. if (defundef == "undef") {
  7561. print "/*", prefix defundef, macro, "*/"
  7562. next
  7563. }
  7564. }
  7565. }
  7566. { print }
  7567. _ACAWK
  7568. _ACEOF
  7569. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7570. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7571. fi # test -n "$CONFIG_HEADERS"
  7572. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7573. shift
  7574. for ac_tag
  7575. do
  7576. case $ac_tag in
  7577. :[FHLC]) ac_mode=$ac_tag; continue;;
  7578. esac
  7579. case $ac_mode$ac_tag in
  7580. :[FHL]*:*);;
  7581. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7582. :[FH]-) ac_tag=-:-;;
  7583. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7584. esac
  7585. ac_save_IFS=$IFS
  7586. IFS=:
  7587. set x $ac_tag
  7588. IFS=$ac_save_IFS
  7589. shift
  7590. ac_file=$1
  7591. shift
  7592. case $ac_mode in
  7593. :L) ac_source=$1;;
  7594. :[FH])
  7595. ac_file_inputs=
  7596. for ac_f
  7597. do
  7598. case $ac_f in
  7599. -) ac_f="$ac_tmp/stdin";;
  7600. *) # Look for the file first in the build tree, then in the source tree
  7601. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7602. # because $ac_f cannot contain `:'.
  7603. test -f "$ac_f" ||
  7604. case $ac_f in
  7605. [\\/$]*) false;;
  7606. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7607. esac ||
  7608. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7609. esac
  7610. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7611. as_fn_append ac_file_inputs " '$ac_f'"
  7612. done
  7613. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7614. # use $as_me), people would be surprised to read:
  7615. # /* config.h. Generated by config.status. */
  7616. configure_input='Generated from '`
  7617. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7618. `' by configure.'
  7619. if test x"$ac_file" != x-; then
  7620. configure_input="$ac_file. $configure_input"
  7621. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7622. $as_echo "$as_me: creating $ac_file" >&6;}
  7623. fi
  7624. # Neutralize special characters interpreted by sed in replacement strings.
  7625. case $configure_input in #(
  7626. *\&* | *\|* | *\\* )
  7627. ac_sed_conf_input=`$as_echo "$configure_input" |
  7628. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7629. *) ac_sed_conf_input=$configure_input;;
  7630. esac
  7631. case $ac_tag in
  7632. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7633. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7634. esac
  7635. ;;
  7636. esac
  7637. ac_dir=`$as_dirname -- "$ac_file" ||
  7638. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7639. X"$ac_file" : 'X\(//\)[^/]' \| \
  7640. X"$ac_file" : 'X\(//\)$' \| \
  7641. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7642. $as_echo X"$ac_file" |
  7643. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7644. s//\1/
  7645. q
  7646. }
  7647. /^X\(\/\/\)[^/].*/{
  7648. s//\1/
  7649. q
  7650. }
  7651. /^X\(\/\/\)$/{
  7652. s//\1/
  7653. q
  7654. }
  7655. /^X\(\/\).*/{
  7656. s//\1/
  7657. q
  7658. }
  7659. s/.*/./; q'`
  7660. as_dir="$ac_dir"; as_fn_mkdir_p
  7661. ac_builddir=.
  7662. case "$ac_dir" in
  7663. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7664. *)
  7665. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7666. # A ".." for each directory in $ac_dir_suffix.
  7667. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7668. case $ac_top_builddir_sub in
  7669. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7670. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7671. esac ;;
  7672. esac
  7673. ac_abs_top_builddir=$ac_pwd
  7674. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7675. # for backward compatibility:
  7676. ac_top_builddir=$ac_top_build_prefix
  7677. case $srcdir in
  7678. .) # We are building in place.
  7679. ac_srcdir=.
  7680. ac_top_srcdir=$ac_top_builddir_sub
  7681. ac_abs_top_srcdir=$ac_pwd ;;
  7682. [\\/]* | ?:[\\/]* ) # Absolute name.
  7683. ac_srcdir=$srcdir$ac_dir_suffix;
  7684. ac_top_srcdir=$srcdir
  7685. ac_abs_top_srcdir=$srcdir ;;
  7686. *) # Relative name.
  7687. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7688. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7689. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7690. esac
  7691. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7692. case $ac_mode in
  7693. :F)
  7694. #
  7695. # CONFIG_FILE
  7696. #
  7697. case $INSTALL in
  7698. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7699. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7700. esac
  7701. ac_MKDIR_P=$MKDIR_P
  7702. case $MKDIR_P in
  7703. [\\/$]* | ?:[\\/]* ) ;;
  7704. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  7705. esac
  7706. _ACEOF
  7707. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7708. # If the template does not know about datarootdir, expand it.
  7709. # FIXME: This hack should be removed a few years after 2.60.
  7710. ac_datarootdir_hack=; ac_datarootdir_seen=
  7711. ac_sed_dataroot='
  7712. /datarootdir/ {
  7713. p
  7714. q
  7715. }
  7716. /@datadir@/p
  7717. /@docdir@/p
  7718. /@infodir@/p
  7719. /@localedir@/p
  7720. /@mandir@/p'
  7721. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7722. *datarootdir*) ac_datarootdir_seen=yes;;
  7723. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7725. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7726. _ACEOF
  7727. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7728. ac_datarootdir_hack='
  7729. s&@datadir@&$datadir&g
  7730. s&@docdir@&$docdir&g
  7731. s&@infodir@&$infodir&g
  7732. s&@localedir@&$localedir&g
  7733. s&@mandir@&$mandir&g
  7734. s&\\\${datarootdir}&$datarootdir&g' ;;
  7735. esac
  7736. _ACEOF
  7737. # Neutralize VPATH when `$srcdir' = `.'.
  7738. # Shell code in configure.ac might set extrasub.
  7739. # FIXME: do we really want to maintain this feature?
  7740. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7741. ac_sed_extra="$ac_vpsub
  7742. $extrasub
  7743. _ACEOF
  7744. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7745. :t
  7746. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7747. s|@configure_input@|$ac_sed_conf_input|;t t
  7748. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7749. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7750. s&@srcdir@&$ac_srcdir&;t t
  7751. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7752. s&@top_srcdir@&$ac_top_srcdir&;t t
  7753. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7754. s&@builddir@&$ac_builddir&;t t
  7755. s&@abs_builddir@&$ac_abs_builddir&;t t
  7756. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7757. s&@INSTALL@&$ac_INSTALL&;t t
  7758. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  7759. $ac_datarootdir_hack
  7760. "
  7761. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7762. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7763. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7764. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7765. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  7766. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7768. which seems to be undefined. Please make sure it is defined" >&5
  7769. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7770. which seems to be undefined. Please make sure it is defined" >&2;}
  7771. rm -f "$ac_tmp/stdin"
  7772. case $ac_file in
  7773. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7774. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7775. esac \
  7776. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7777. ;;
  7778. :H)
  7779. #
  7780. # CONFIG_HEADER
  7781. #
  7782. if test x"$ac_file" != x-; then
  7783. {
  7784. $as_echo "/* $configure_input */" \
  7785. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  7786. } >"$ac_tmp/config.h" \
  7787. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7788. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7790. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7791. else
  7792. rm -f "$ac_file"
  7793. mv "$ac_tmp/config.h" "$ac_file" \
  7794. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7795. fi
  7796. else
  7797. $as_echo "/* $configure_input */" \
  7798. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  7799. || as_fn_error $? "could not create -" "$LINENO" 5
  7800. fi
  7801. # Compute "$ac_file"'s index in $config_headers.
  7802. _am_arg="$ac_file"
  7803. _am_stamp_count=1
  7804. for _am_header in $config_headers :; do
  7805. case $_am_header in
  7806. $_am_arg | $_am_arg:* )
  7807. break ;;
  7808. * )
  7809. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  7810. esac
  7811. done
  7812. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  7813. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7814. X"$_am_arg" : 'X\(//\)[^/]' \| \
  7815. X"$_am_arg" : 'X\(//\)$' \| \
  7816. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  7817. $as_echo X"$_am_arg" |
  7818. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7819. s//\1/
  7820. q
  7821. }
  7822. /^X\(\/\/\)[^/].*/{
  7823. s//\1/
  7824. q
  7825. }
  7826. /^X\(\/\/\)$/{
  7827. s//\1/
  7828. q
  7829. }
  7830. /^X\(\/\).*/{
  7831. s//\1/
  7832. q
  7833. }
  7834. s/.*/./; q'`/stamp-h$_am_stamp_count
  7835. ;;
  7836. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7837. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7838. ;;
  7839. esac
  7840. case $ac_file$ac_mode in
  7841. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  7842. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  7843. # are listed without --file. Let's play safe and only enable the eval
  7844. # if we detect the quoting.
  7845. case $CONFIG_FILES in
  7846. *\'*) eval set x "$CONFIG_FILES" ;;
  7847. *) set x $CONFIG_FILES ;;
  7848. esac
  7849. shift
  7850. for mf
  7851. do
  7852. # Strip MF so we end up with the name of the file.
  7853. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7854. # Check whether this is an Automake generated Makefile or not.
  7855. # We used to match only the files named `Makefile.in', but
  7856. # some people rename them; so instead we look at the file content.
  7857. # Grep'ing the first line is not enough: some people post-process
  7858. # each Makefile.in and add a new line on top of each file to say so.
  7859. # Grep'ing the whole file is not good either: AIX grep has a line
  7860. # limit of 2048, but all sed's we know have understand at least 4000.
  7861. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  7862. dirpart=`$as_dirname -- "$mf" ||
  7863. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7864. X"$mf" : 'X\(//\)[^/]' \| \
  7865. X"$mf" : 'X\(//\)$' \| \
  7866. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  7867. $as_echo X"$mf" |
  7868. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7869. s//\1/
  7870. q
  7871. }
  7872. /^X\(\/\/\)[^/].*/{
  7873. s//\1/
  7874. q
  7875. }
  7876. /^X\(\/\/\)$/{
  7877. s//\1/
  7878. q
  7879. }
  7880. /^X\(\/\).*/{
  7881. s//\1/
  7882. q
  7883. }
  7884. s/.*/./; q'`
  7885. else
  7886. continue
  7887. fi
  7888. # Extract the definition of DEPDIR, am__include, and am__quote
  7889. # from the Makefile without running `make'.
  7890. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7891. test -z "$DEPDIR" && continue
  7892. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7893. test -z "am__include" && continue
  7894. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7895. # When using ansi2knr, U may be empty or an underscore; expand it
  7896. U=`sed -n 's/^U = //p' < "$mf"`
  7897. # Find all dependency output files, they are included files with
  7898. # $(DEPDIR) in their names. We invoke sed twice because it is the
  7899. # simplest approach to changing $(DEPDIR) to its actual value in the
  7900. # expansion.
  7901. for file in `sed -n "
  7902. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7903. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7904. # Make sure the directory exists.
  7905. test -f "$dirpart/$file" && continue
  7906. fdir=`$as_dirname -- "$file" ||
  7907. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7908. X"$file" : 'X\(//\)[^/]' \| \
  7909. X"$file" : 'X\(//\)$' \| \
  7910. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  7911. $as_echo X"$file" |
  7912. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7913. s//\1/
  7914. q
  7915. }
  7916. /^X\(\/\/\)[^/].*/{
  7917. s//\1/
  7918. q
  7919. }
  7920. /^X\(\/\/\)$/{
  7921. s//\1/
  7922. q
  7923. }
  7924. /^X\(\/\).*/{
  7925. s//\1/
  7926. q
  7927. }
  7928. s/.*/./; q'`
  7929. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  7930. # echo "creating $dirpart/$file"
  7931. echo '# dummy' > "$dirpart/$file"
  7932. done
  7933. done
  7934. }
  7935. ;;
  7936. esac
  7937. done # for ac_tag
  7938. as_fn_exit 0
  7939. _ACEOF
  7940. ac_clean_files=$ac_clean_files_save
  7941. test $ac_write_fail = 0 ||
  7942. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7943. # configure is writing to config.log, and then calls config.status.
  7944. # config.status does its own redirection, appending to config.log.
  7945. # Unfortunately, on DOS this fails, as config.log is still kept open
  7946. # by configure, so config.status won't be able to write to it; its
  7947. # output is simply discarded. So we exec the FD to /dev/null,
  7948. # effectively closing config.log, so it can be properly (re)opened and
  7949. # appended to by config.status. When coming back to configure, we
  7950. # need to make the FD available again.
  7951. if test "$no_create" != yes; then
  7952. ac_cs_success=:
  7953. ac_config_status_args=
  7954. test "$silent" = yes &&
  7955. ac_config_status_args="$ac_config_status_args --quiet"
  7956. exec 5>/dev/null
  7957. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7958. exec 5>>config.log
  7959. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7960. # would make configure fail if this is the last instruction.
  7961. $ac_cs_success || as_fn_exit 1
  7962. fi
  7963. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7965. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7966. fi
  7967. type dpkg >/dev/null 2>&1
  7968. if test $? -eq 0; then
  7969. # Generate debian/ link if the dpkg command exists
  7970. # (read: if we are running on a debian compatible system)
  7971. echo "creating Debian-specific links ..."
  7972. if test ! -f debian/rules -a -f contrib/Debian/rules; then
  7973. ln -s contrib/Debian debian
  7974. fi
  7975. fi
  7976. # -- Result --
  7977. echo
  7978. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  7979. echo
  7980. # Someone please show me a better way :) [borrowed by OpenSSH]
  7981. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  7982. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  7983. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  7984. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  7985. D=`eval echo ${docdir}` ; D=`eval echo ${D}`
  7986. echo " Host: ${host}"
  7987. echo " Compiler: ${CC}"
  7988. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  7989. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  7990. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  7991. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  7992. echo
  7993. echo " 'ngircd' binary: $S"
  7994. echo " Configuration file: $C"
  7995. echo " Manual pages: $M"
  7996. echo " Documentation: $D"
  7997. echo
  7998. echo $ECHO_N " Syslog support: $ECHO_C"
  7999. test "$x_syslog_on" = "yes" \
  8000. && echo $ECHO_N "yes $ECHO_C" \
  8001. || echo $ECHO_N "no $ECHO_C"
  8002. echo $ECHO_N " Enable debug code: $ECHO_C"
  8003. test "$x_debug_on" = "yes" \
  8004. && echo "yes" \
  8005. || echo "no"
  8006. echo $ECHO_N " zlib compression: $ECHO_C"
  8007. test "$x_zlib_on" = "yes" \
  8008. && echo $ECHO_N "yes $ECHO_C" \
  8009. || echo $ECHO_N "no $ECHO_C"
  8010. echo $ECHO_N " IRC sniffer: $ECHO_C"
  8011. test "$x_sniffer_on" = "yes" \
  8012. && echo "yes" \
  8013. || echo "no"
  8014. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  8015. test "$x_tcpwrap_on" = "yes" \
  8016. && echo $ECHO_N "yes $ECHO_C" \
  8017. || echo $ECHO_N "no $ECHO_C"
  8018. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  8019. test "$x_strict_rfc_on" = "yes" \
  8020. && echo "yes" \
  8021. || echo "no"
  8022. echo $ECHO_N " IDENT support: $ECHO_C"
  8023. test "$x_identauth_on" = "yes" \
  8024. && echo $ECHO_N "yes $ECHO_C" \
  8025. || echo $ECHO_N "no $ECHO_C"
  8026. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  8027. test "$x_ircplus_on" = "yes" \
  8028. && echo "yes" \
  8029. || echo "no"
  8030. echo $ECHO_N " IPv6 protocol: $ECHO_C"
  8031. test "$x_ipv6_on" = "yes" \
  8032. && echo $ECHO_N "yes $ECHO_C" \
  8033. || echo $ECHO_N "no $ECHO_C"
  8034. echo $ECHO_N " I/O backend: $ECHO_C"
  8035. echo "$x_io_backend"
  8036. echo $ECHO_N " PAM support: $ECHO_C"
  8037. test "$x_pam_on" = "yes" \
  8038. && echo $ECHO_N "yes $ECHO_C" \
  8039. || echo $ECHO_N "no $ECHO_C"
  8040. echo $ECHO_N " SSL support: $ECHO_C"
  8041. echo "$x_ssl_lib"
  8042. echo $ECHO_N " libiconv support: $ECHO_C"
  8043. echo "$x_iconv_on"
  8044. echo
  8045. if ! grep "^AUTOMAKE_OPTIONS = [a-z .\-]*/portab/ansi2knr" src/ngircd/Makefile.am >/dev/null 2>&1; then
  8046. echo "WARNING:"
  8047. echo "This GNU automake generated build system does not support \"de-ANSI-fication\","
  8048. echo "therefore don't use it to generate \"official\" distribution archives!"
  8049. echo "(Most probably you want to use GNU automake 1.11.x for this purpose ...)"
  8050. echo
  8051. fi
  8052. # -eof-