configure 364 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for ngircd 17.1.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME='ngircd'
  492. PACKAGE_TARNAME='ngircd'
  493. PACKAGE_VERSION='17.1'
  494. PACKAGE_STRING='ngircd 17.1'
  495. PACKAGE_BUGREPORT=''
  496. ac_unique_file="src/ngircd/ngircd.c"
  497. # Factoring default headers for most tests.
  498. ac_includes_default="\
  499. #include <stdio.h>
  500. #ifdef HAVE_SYS_TYPES_H
  501. # include <sys/types.h>
  502. #endif
  503. #ifdef HAVE_SYS_STAT_H
  504. # include <sys/stat.h>
  505. #endif
  506. #ifdef STDC_HEADERS
  507. # include <stdlib.h>
  508. # include <stddef.h>
  509. #else
  510. # ifdef HAVE_STDLIB_H
  511. # include <stdlib.h>
  512. # endif
  513. #endif
  514. #ifdef HAVE_STRING_H
  515. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  516. # include <memory.h>
  517. # endif
  518. # include <string.h>
  519. #endif
  520. #ifdef HAVE_STRINGS_H
  521. # include <strings.h>
  522. #endif
  523. #ifdef HAVE_INTTYPES_H
  524. # include <inttypes.h>
  525. #endif
  526. #ifdef HAVE_STDINT_H
  527. # include <stdint.h>
  528. #endif
  529. #ifdef HAVE_UNISTD_H
  530. # include <unistd.h>
  531. #endif"
  532. ac_subst_vars='SHELL
  533. PATH_SEPARATOR
  534. PACKAGE_NAME
  535. PACKAGE_TARNAME
  536. PACKAGE_VERSION
  537. PACKAGE_STRING
  538. PACKAGE_BUGREPORT
  539. exec_prefix
  540. prefix
  541. program_transform_name
  542. bindir
  543. sbindir
  544. libexecdir
  545. datarootdir
  546. datadir
  547. sysconfdir
  548. sharedstatedir
  549. localstatedir
  550. includedir
  551. oldincludedir
  552. docdir
  553. infodir
  554. htmldir
  555. dvidir
  556. pdfdir
  557. psdir
  558. libdir
  559. localedir
  560. mandir
  561. DEFS
  562. ECHO_C
  563. ECHO_N
  564. ECHO_T
  565. LIBS
  566. build_alias
  567. host_alias
  568. target_alias
  569. build
  570. build_cpu
  571. build_vendor
  572. build_os
  573. host
  574. host_cpu
  575. host_vendor
  576. host_os
  577. target
  578. target_cpu
  579. target_vendor
  580. target_os
  581. INSTALL_PROGRAM
  582. INSTALL_SCRIPT
  583. INSTALL_DATA
  584. am__isrc
  585. CYGPATH_W
  586. PACKAGE
  587. VERSION
  588. ACLOCAL
  589. AUTOCONF
  590. AUTOMAKE
  591. AUTOHEADER
  592. MAKEINFO
  593. install_sh
  594. STRIP
  595. INSTALL_STRIP_PROGRAM
  596. mkdir_p
  597. AWK
  598. SET_MAKE
  599. am__leading_dot
  600. AMTAR
  601. am__tar
  602. am__untar
  603. CC
  604. CFLAGS
  605. LDFLAGS
  606. CPPFLAGS
  607. ac_ct_CC
  608. EXEEXT
  609. OBJEXT
  610. DEPDIR
  611. am__include
  612. am__quote
  613. AMDEP_TRUE
  614. AMDEP_FALSE
  615. AMDEPBACKSLASH
  616. CCDEPMODE
  617. am__fastdepCC_TRUE
  618. am__fastdepCC_FALSE
  619. LN_S
  620. RANLIB
  621. CPP
  622. GREP
  623. EGREP
  624. U
  625. ANSI2KNR
  626. LIBOBJS
  627. LTLIBOBJS'
  628. ac_subst_files=''
  629. ac_precious_vars='build_alias
  630. host_alias
  631. target_alias
  632. CC
  633. CFLAGS
  634. LDFLAGS
  635. LIBS
  636. CPPFLAGS
  637. CPP'
  638. # Initialize some variables set by options.
  639. ac_init_help=
  640. ac_init_version=false
  641. # The variables have the same names as the options, with
  642. # dashes changed to underlines.
  643. cache_file=/dev/null
  644. exec_prefix=NONE
  645. no_create=
  646. no_recursion=
  647. prefix=NONE
  648. program_prefix=NONE
  649. program_suffix=NONE
  650. program_transform_name=s,x,x,
  651. silent=
  652. site=
  653. srcdir=
  654. verbose=
  655. x_includes=NONE
  656. x_libraries=NONE
  657. # Installation directory options.
  658. # These are left unexpanded so users can "make install exec_prefix=/foo"
  659. # and all the variables that are supposed to be based on exec_prefix
  660. # by default will actually change.
  661. # Use braces instead of parens because sh, perl, etc. also accept them.
  662. # (The list follows the same order as the GNU Coding Standards.)
  663. bindir='${exec_prefix}/bin'
  664. sbindir='${exec_prefix}/sbin'
  665. libexecdir='${exec_prefix}/libexec'
  666. datarootdir='${prefix}/share'
  667. datadir='${datarootdir}'
  668. sysconfdir='${prefix}/etc'
  669. sharedstatedir='${prefix}/com'
  670. localstatedir='${prefix}/var'
  671. includedir='${prefix}/include'
  672. oldincludedir='/usr/include'
  673. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  674. infodir='${datarootdir}/info'
  675. htmldir='${docdir}'
  676. dvidir='${docdir}'
  677. pdfdir='${docdir}'
  678. psdir='${docdir}'
  679. libdir='${exec_prefix}/lib'
  680. localedir='${datarootdir}/locale'
  681. mandir='${datarootdir}/man'
  682. ac_prev=
  683. ac_dashdash=
  684. for ac_option
  685. do
  686. # If the previous option needs an argument, assign it.
  687. if test -n "$ac_prev"; then
  688. eval $ac_prev=\$ac_option
  689. ac_prev=
  690. continue
  691. fi
  692. case $ac_option in
  693. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  694. *) ac_optarg=yes ;;
  695. esac
  696. # Accept the important Cygnus configure options, so we can diagnose typos.
  697. case $ac_dashdash$ac_option in
  698. --)
  699. ac_dashdash=yes ;;
  700. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  701. ac_prev=bindir ;;
  702. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  703. bindir=$ac_optarg ;;
  704. -build | --build | --buil | --bui | --bu)
  705. ac_prev=build_alias ;;
  706. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  707. build_alias=$ac_optarg ;;
  708. -cache-file | --cache-file | --cache-fil | --cache-fi \
  709. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  710. ac_prev=cache_file ;;
  711. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  712. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  713. cache_file=$ac_optarg ;;
  714. --config-cache | -C)
  715. cache_file=config.cache ;;
  716. -datadir | --datadir | --datadi | --datad)
  717. ac_prev=datadir ;;
  718. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  719. datadir=$ac_optarg ;;
  720. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  721. | --dataroo | --dataro | --datar)
  722. ac_prev=datarootdir ;;
  723. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  724. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  725. datarootdir=$ac_optarg ;;
  726. -disable-* | --disable-*)
  727. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  728. # Reject names that are not valid shell variable names.
  729. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  730. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  731. { (exit 1); exit 1; }; }
  732. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  733. eval enable_$ac_feature=no ;;
  734. -docdir | --docdir | --docdi | --doc | --do)
  735. ac_prev=docdir ;;
  736. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  737. docdir=$ac_optarg ;;
  738. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  739. ac_prev=dvidir ;;
  740. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  741. dvidir=$ac_optarg ;;
  742. -enable-* | --enable-*)
  743. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  744. # Reject names that are not valid shell variable names.
  745. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  746. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  747. { (exit 1); exit 1; }; }
  748. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  749. eval enable_$ac_feature=\$ac_optarg ;;
  750. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  751. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  752. | --exec | --exe | --ex)
  753. ac_prev=exec_prefix ;;
  754. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  755. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  756. | --exec=* | --exe=* | --ex=*)
  757. exec_prefix=$ac_optarg ;;
  758. -gas | --gas | --ga | --g)
  759. # Obsolete; use --with-gas.
  760. with_gas=yes ;;
  761. -help | --help | --hel | --he | -h)
  762. ac_init_help=long ;;
  763. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  764. ac_init_help=recursive ;;
  765. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  766. ac_init_help=short ;;
  767. -host | --host | --hos | --ho)
  768. ac_prev=host_alias ;;
  769. -host=* | --host=* | --hos=* | --ho=*)
  770. host_alias=$ac_optarg ;;
  771. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  772. ac_prev=htmldir ;;
  773. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  774. | --ht=*)
  775. htmldir=$ac_optarg ;;
  776. -includedir | --includedir | --includedi | --included | --include \
  777. | --includ | --inclu | --incl | --inc)
  778. ac_prev=includedir ;;
  779. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  780. | --includ=* | --inclu=* | --incl=* | --inc=*)
  781. includedir=$ac_optarg ;;
  782. -infodir | --infodir | --infodi | --infod | --info | --inf)
  783. ac_prev=infodir ;;
  784. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  785. infodir=$ac_optarg ;;
  786. -libdir | --libdir | --libdi | --libd)
  787. ac_prev=libdir ;;
  788. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  789. libdir=$ac_optarg ;;
  790. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  791. | --libexe | --libex | --libe)
  792. ac_prev=libexecdir ;;
  793. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  794. | --libexe=* | --libex=* | --libe=*)
  795. libexecdir=$ac_optarg ;;
  796. -localedir | --localedir | --localedi | --localed | --locale)
  797. ac_prev=localedir ;;
  798. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  799. localedir=$ac_optarg ;;
  800. -localstatedir | --localstatedir | --localstatedi | --localstated \
  801. | --localstate | --localstat | --localsta | --localst | --locals)
  802. ac_prev=localstatedir ;;
  803. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  804. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  805. localstatedir=$ac_optarg ;;
  806. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  807. ac_prev=mandir ;;
  808. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  809. mandir=$ac_optarg ;;
  810. -nfp | --nfp | --nf)
  811. # Obsolete; use --without-fp.
  812. with_fp=no ;;
  813. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  814. | --no-cr | --no-c | -n)
  815. no_create=yes ;;
  816. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  817. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  818. no_recursion=yes ;;
  819. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  820. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  821. | --oldin | --oldi | --old | --ol | --o)
  822. ac_prev=oldincludedir ;;
  823. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  824. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  825. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  826. oldincludedir=$ac_optarg ;;
  827. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  828. ac_prev=prefix ;;
  829. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  830. prefix=$ac_optarg ;;
  831. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  832. | --program-pre | --program-pr | --program-p)
  833. ac_prev=program_prefix ;;
  834. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  835. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  836. program_prefix=$ac_optarg ;;
  837. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  838. | --program-suf | --program-su | --program-s)
  839. ac_prev=program_suffix ;;
  840. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  841. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  842. program_suffix=$ac_optarg ;;
  843. -program-transform-name | --program-transform-name \
  844. | --program-transform-nam | --program-transform-na \
  845. | --program-transform-n | --program-transform- \
  846. | --program-transform | --program-transfor \
  847. | --program-transfo | --program-transf \
  848. | --program-trans | --program-tran \
  849. | --progr-tra | --program-tr | --program-t)
  850. ac_prev=program_transform_name ;;
  851. -program-transform-name=* | --program-transform-name=* \
  852. | --program-transform-nam=* | --program-transform-na=* \
  853. | --program-transform-n=* | --program-transform-=* \
  854. | --program-transform=* | --program-transfor=* \
  855. | --program-transfo=* | --program-transf=* \
  856. | --program-trans=* | --program-tran=* \
  857. | --progr-tra=* | --program-tr=* | --program-t=*)
  858. program_transform_name=$ac_optarg ;;
  859. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  860. ac_prev=pdfdir ;;
  861. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  862. pdfdir=$ac_optarg ;;
  863. -psdir | --psdir | --psdi | --psd | --ps)
  864. ac_prev=psdir ;;
  865. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  866. psdir=$ac_optarg ;;
  867. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  868. | -silent | --silent | --silen | --sile | --sil)
  869. silent=yes ;;
  870. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  871. ac_prev=sbindir ;;
  872. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  873. | --sbi=* | --sb=*)
  874. sbindir=$ac_optarg ;;
  875. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  876. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  877. | --sharedst | --shareds | --shared | --share | --shar \
  878. | --sha | --sh)
  879. ac_prev=sharedstatedir ;;
  880. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  881. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  882. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  883. | --sha=* | --sh=*)
  884. sharedstatedir=$ac_optarg ;;
  885. -site | --site | --sit)
  886. ac_prev=site ;;
  887. -site=* | --site=* | --sit=*)
  888. site=$ac_optarg ;;
  889. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  890. ac_prev=srcdir ;;
  891. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  892. srcdir=$ac_optarg ;;
  893. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  894. | --syscon | --sysco | --sysc | --sys | --sy)
  895. ac_prev=sysconfdir ;;
  896. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  897. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  898. sysconfdir=$ac_optarg ;;
  899. -target | --target | --targe | --targ | --tar | --ta | --t)
  900. ac_prev=target_alias ;;
  901. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  902. target_alias=$ac_optarg ;;
  903. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  904. verbose=yes ;;
  905. -version | --version | --versio | --versi | --vers | -V)
  906. ac_init_version=: ;;
  907. -with-* | --with-*)
  908. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  909. # Reject names that are not valid shell variable names.
  910. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  911. { echo "$as_me: error: invalid package name: $ac_package" >&2
  912. { (exit 1); exit 1; }; }
  913. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  914. eval with_$ac_package=\$ac_optarg ;;
  915. -without-* | --without-*)
  916. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  919. { echo "$as_me: error: invalid package name: $ac_package" >&2
  920. { (exit 1); exit 1; }; }
  921. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  922. eval with_$ac_package=no ;;
  923. --x)
  924. # Obsolete; use --with-x.
  925. with_x=yes ;;
  926. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  927. | --x-incl | --x-inc | --x-in | --x-i)
  928. ac_prev=x_includes ;;
  929. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  930. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  931. x_includes=$ac_optarg ;;
  932. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  933. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  934. ac_prev=x_libraries ;;
  935. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  936. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  937. x_libraries=$ac_optarg ;;
  938. -*) { echo "$as_me: error: unrecognized option: $ac_option
  939. Try \`$0 --help' for more information." >&2
  940. { (exit 1); exit 1; }; }
  941. ;;
  942. *=*)
  943. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  946. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  947. { (exit 1); exit 1; }; }
  948. eval $ac_envvar=\$ac_optarg
  949. export $ac_envvar ;;
  950. *)
  951. # FIXME: should be removed in autoconf 3.0.
  952. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  953. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  954. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  955. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  956. ;;
  957. esac
  958. done
  959. if test -n "$ac_prev"; then
  960. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  961. { echo "$as_me: error: missing argument to $ac_option" >&2
  962. { (exit 1); exit 1; }; }
  963. fi
  964. # Be sure to have absolute directory names.
  965. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  966. datadir sysconfdir sharedstatedir localstatedir includedir \
  967. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  968. libdir localedir mandir
  969. do
  970. eval ac_val=\$$ac_var
  971. case $ac_val in
  972. [\\/$]* | ?:[\\/]* ) continue;;
  973. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  974. esac
  975. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  976. { (exit 1); exit 1; }; }
  977. done
  978. # There might be people who depend on the old broken behavior: `$host'
  979. # used to hold the argument of --host etc.
  980. # FIXME: To remove some day.
  981. build=$build_alias
  982. host=$host_alias
  983. target=$target_alias
  984. # FIXME: To remove some day.
  985. if test "x$host_alias" != x; then
  986. if test "x$build_alias" = x; then
  987. cross_compiling=maybe
  988. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  989. If a cross compiler is detected then cross compile mode will be used." >&2
  990. elif test "x$build_alias" != "x$host_alias"; then
  991. cross_compiling=yes
  992. fi
  993. fi
  994. ac_tool_prefix=
  995. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  996. test "$silent" = yes && exec 6>/dev/null
  997. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  998. ac_ls_di=`ls -di .` &&
  999. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1000. { echo "$as_me: error: Working directory cannot be determined" >&2
  1001. { (exit 1); exit 1; }; }
  1002. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1003. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1004. { (exit 1); exit 1; }; }
  1005. # Find the source files, if location was not specified.
  1006. if test -z "$srcdir"; then
  1007. ac_srcdir_defaulted=yes
  1008. # Try the directory containing this script, then the parent directory.
  1009. ac_confdir=`$as_dirname -- "$0" ||
  1010. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1011. X"$0" : 'X\(//\)[^/]' \| \
  1012. X"$0" : 'X\(//\)$' \| \
  1013. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1014. echo X"$0" |
  1015. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1016. s//\1/
  1017. q
  1018. }
  1019. /^X\(\/\/\)[^/].*/{
  1020. s//\1/
  1021. q
  1022. }
  1023. /^X\(\/\/\)$/{
  1024. s//\1/
  1025. q
  1026. }
  1027. /^X\(\/\).*/{
  1028. s//\1/
  1029. q
  1030. }
  1031. s/.*/./; q'`
  1032. srcdir=$ac_confdir
  1033. if test ! -r "$srcdir/$ac_unique_file"; then
  1034. srcdir=..
  1035. fi
  1036. else
  1037. ac_srcdir_defaulted=no
  1038. fi
  1039. if test ! -r "$srcdir/$ac_unique_file"; then
  1040. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1041. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1042. { (exit 1); exit 1; }; }
  1043. fi
  1044. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1045. ac_abs_confdir=`(
  1046. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1047. { (exit 1); exit 1; }; }
  1048. pwd)`
  1049. # When building in place, set srcdir=.
  1050. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1051. srcdir=.
  1052. fi
  1053. # Remove unnecessary trailing slashes from srcdir.
  1054. # Double slashes in file names in object file debugging info
  1055. # mess up M-x gdb in Emacs.
  1056. case $srcdir in
  1057. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1058. esac
  1059. for ac_var in $ac_precious_vars; do
  1060. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1061. eval ac_env_${ac_var}_value=\$${ac_var}
  1062. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1063. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1064. done
  1065. #
  1066. # Report the --help message.
  1067. #
  1068. if test "$ac_init_help" = "long"; then
  1069. # Omit some internal or obsolete options to make the list less imposing.
  1070. # This message is too long to be a string in the A/UX 3.1 sh.
  1071. cat <<_ACEOF
  1072. \`configure' configures ngircd 17.1 to adapt to many kinds of systems.
  1073. Usage: $0 [OPTION]... [VAR=VALUE]...
  1074. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1075. VAR=VALUE. See below for descriptions of some of the useful variables.
  1076. Defaults for the options are specified in brackets.
  1077. Configuration:
  1078. -h, --help display this help and exit
  1079. --help=short display options specific to this package
  1080. --help=recursive display the short help of all the included packages
  1081. -V, --version display version information and exit
  1082. -q, --quiet, --silent do not print \`checking...' messages
  1083. --cache-file=FILE cache test results in FILE [disabled]
  1084. -C, --config-cache alias for \`--cache-file=config.cache'
  1085. -n, --no-create do not create output files
  1086. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1087. Installation directories:
  1088. --prefix=PREFIX install architecture-independent files in PREFIX
  1089. [$ac_default_prefix]
  1090. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1091. [PREFIX]
  1092. By default, \`make install' will install all the files in
  1093. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1094. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1095. for instance \`--prefix=\$HOME'.
  1096. For better control, use the options below.
  1097. Fine tuning of the installation directories:
  1098. --bindir=DIR user executables [EPREFIX/bin]
  1099. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1100. --libexecdir=DIR program executables [EPREFIX/libexec]
  1101. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1102. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1103. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1104. --libdir=DIR object code libraries [EPREFIX/lib]
  1105. --includedir=DIR C header files [PREFIX/include]
  1106. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1107. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1108. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1109. --infodir=DIR info documentation [DATAROOTDIR/info]
  1110. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1111. --mandir=DIR man documentation [DATAROOTDIR/man]
  1112. --docdir=DIR documentation root [DATAROOTDIR/doc/ngircd]
  1113. --htmldir=DIR html documentation [DOCDIR]
  1114. --dvidir=DIR dvi documentation [DOCDIR]
  1115. --pdfdir=DIR pdf documentation [DOCDIR]
  1116. --psdir=DIR ps documentation [DOCDIR]
  1117. _ACEOF
  1118. cat <<\_ACEOF
  1119. Program names:
  1120. --program-prefix=PREFIX prepend PREFIX to installed program names
  1121. --program-suffix=SUFFIX append SUFFIX to installed program names
  1122. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1123. System types:
  1124. --build=BUILD configure for building on BUILD [guessed]
  1125. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1126. --target=TARGET configure for building compilers for TARGET [HOST]
  1127. _ACEOF
  1128. fi
  1129. if test -n "$ac_init_help"; then
  1130. case $ac_init_help in
  1131. short | recursive ) echo "Configuration of ngircd 17.1:";;
  1132. esac
  1133. cat <<\_ACEOF
  1134. Optional Features:
  1135. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1136. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1137. --disable-dependency-tracking speeds up one-time build
  1138. --enable-dependency-tracking do not reject slow dependency extractors
  1139. --disable-ircplus disable IRC+ protocol
  1140. --enable-ipv6 enable IPv6 protocol support
  1141. --enable-sniffer enable IRC traffic sniffer (enables debug mode)
  1142. --enable-debug show additional debug output
  1143. --enable-strict-rfc strict RFC conformance -- may break clients!
  1144. Optional Packages:
  1145. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1146. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1147. --without-syslog disable syslog (autodetected by default)
  1148. --without-zlib disable zlib compression (autodetected by default)
  1149. --without-select disable select IO support (autodetected by default)
  1150. --without-poll disable poll support (autodetected by default)
  1151. --without-devpoll disable /dev/poll IO support (autodetected by default)
  1152. --without-epoll disable epoll IO support (autodetected by default)
  1153. --without-kqueue disable kqueue IO support (autodetected by default)
  1154. --with-openssl enable SSL support using OpenSSL
  1155. --with-gnutls enable SSL support using gnutls
  1156. --with-tcp-wrappers enable TCP wrappers support
  1157. --with-zeroconf enable support for "Zeroconf"
  1158. --with-ident enable "IDENT" ("AUTH") protocol support
  1159. --with-pam enable user authentication using PAM
  1160. Some influential environment variables:
  1161. CC C compiler command
  1162. CFLAGS C compiler flags
  1163. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1164. nonstandard directory <lib dir>
  1165. LIBS libraries to pass to the linker, e.g. -l<library>
  1166. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1167. you have headers in a nonstandard directory <include dir>
  1168. CPP C preprocessor
  1169. Use these variables to override the choices made by `configure' or to help
  1170. it to find libraries and programs with nonstandard names/locations.
  1171. _ACEOF
  1172. ac_status=$?
  1173. fi
  1174. if test "$ac_init_help" = "recursive"; then
  1175. # If there are subdirs, report their specific --help.
  1176. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1177. test -d "$ac_dir" || continue
  1178. ac_builddir=.
  1179. case "$ac_dir" in
  1180. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1181. *)
  1182. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1183. # A ".." for each directory in $ac_dir_suffix.
  1184. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1185. case $ac_top_builddir_sub in
  1186. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1187. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1188. esac ;;
  1189. esac
  1190. ac_abs_top_builddir=$ac_pwd
  1191. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1192. # for backward compatibility:
  1193. ac_top_builddir=$ac_top_build_prefix
  1194. case $srcdir in
  1195. .) # We are building in place.
  1196. ac_srcdir=.
  1197. ac_top_srcdir=$ac_top_builddir_sub
  1198. ac_abs_top_srcdir=$ac_pwd ;;
  1199. [\\/]* | ?:[\\/]* ) # Absolute name.
  1200. ac_srcdir=$srcdir$ac_dir_suffix;
  1201. ac_top_srcdir=$srcdir
  1202. ac_abs_top_srcdir=$srcdir ;;
  1203. *) # Relative name.
  1204. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1205. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1206. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1207. esac
  1208. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1209. cd "$ac_dir" || { ac_status=$?; continue; }
  1210. # Check for guested configure.
  1211. if test -f "$ac_srcdir/configure.gnu"; then
  1212. echo &&
  1213. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1214. elif test -f "$ac_srcdir/configure"; then
  1215. echo &&
  1216. $SHELL "$ac_srcdir/configure" --help=recursive
  1217. else
  1218. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1219. fi || ac_status=$?
  1220. cd "$ac_pwd" || { ac_status=$?; break; }
  1221. done
  1222. fi
  1223. test -n "$ac_init_help" && exit $ac_status
  1224. if $ac_init_version; then
  1225. cat <<\_ACEOF
  1226. ngircd configure 17.1
  1227. generated by GNU Autoconf 2.61
  1228. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1229. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1230. This configure script is free software; the Free Software Foundation
  1231. gives unlimited permission to copy, distribute and modify it.
  1232. _ACEOF
  1233. exit
  1234. fi
  1235. cat >config.log <<_ACEOF
  1236. This file contains any messages produced by compilers while
  1237. running configure, to aid debugging if configure makes a mistake.
  1238. It was created by ngircd $as_me 17.1, which was
  1239. generated by GNU Autoconf 2.61. Invocation command line was
  1240. $ $0 $@
  1241. _ACEOF
  1242. exec 5>>config.log
  1243. {
  1244. cat <<_ASUNAME
  1245. ## --------- ##
  1246. ## Platform. ##
  1247. ## --------- ##
  1248. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1249. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1250. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1251. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1252. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1253. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1254. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1255. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1256. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1257. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1258. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1259. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1260. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1261. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1262. _ASUNAME
  1263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1264. for as_dir in $PATH
  1265. do
  1266. IFS=$as_save_IFS
  1267. test -z "$as_dir" && as_dir=.
  1268. echo "PATH: $as_dir"
  1269. done
  1270. IFS=$as_save_IFS
  1271. } >&5
  1272. cat >&5 <<_ACEOF
  1273. ## ----------- ##
  1274. ## Core tests. ##
  1275. ## ----------- ##
  1276. _ACEOF
  1277. # Keep a trace of the command line.
  1278. # Strip out --no-create and --no-recursion so they do not pile up.
  1279. # Strip out --silent because we don't want to record it for future runs.
  1280. # Also quote any args containing shell meta-characters.
  1281. # Make two passes to allow for proper duplicate-argument suppression.
  1282. ac_configure_args=
  1283. ac_configure_args0=
  1284. ac_configure_args1=
  1285. ac_must_keep_next=false
  1286. for ac_pass in 1 2
  1287. do
  1288. for ac_arg
  1289. do
  1290. case $ac_arg in
  1291. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1292. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1293. | -silent | --silent | --silen | --sile | --sil)
  1294. continue ;;
  1295. *\'*)
  1296. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1297. esac
  1298. case $ac_pass in
  1299. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1300. 2)
  1301. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1302. if test $ac_must_keep_next = true; then
  1303. ac_must_keep_next=false # Got value, back to normal.
  1304. else
  1305. case $ac_arg in
  1306. *=* | --config-cache | -C | -disable-* | --disable-* \
  1307. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1308. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1309. | -with-* | --with-* | -without-* | --without-* | --x)
  1310. case "$ac_configure_args0 " in
  1311. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1312. esac
  1313. ;;
  1314. -* ) ac_must_keep_next=true ;;
  1315. esac
  1316. fi
  1317. ac_configure_args="$ac_configure_args '$ac_arg'"
  1318. ;;
  1319. esac
  1320. done
  1321. done
  1322. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1323. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1324. # When interrupted or exit'd, cleanup temporary files, and complete
  1325. # config.log. We remove comments because anyway the quotes in there
  1326. # would cause problems or look ugly.
  1327. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1328. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1329. trap 'exit_status=$?
  1330. # Save into config.log some information that might help in debugging.
  1331. {
  1332. echo
  1333. cat <<\_ASBOX
  1334. ## ---------------- ##
  1335. ## Cache variables. ##
  1336. ## ---------------- ##
  1337. _ASBOX
  1338. echo
  1339. # The following way of writing the cache mishandles newlines in values,
  1340. (
  1341. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1342. eval ac_val=\$$ac_var
  1343. case $ac_val in #(
  1344. *${as_nl}*)
  1345. case $ac_var in #(
  1346. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1347. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1348. esac
  1349. case $ac_var in #(
  1350. _ | IFS | as_nl) ;; #(
  1351. *) $as_unset $ac_var ;;
  1352. esac ;;
  1353. esac
  1354. done
  1355. (set) 2>&1 |
  1356. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1357. *${as_nl}ac_space=\ *)
  1358. sed -n \
  1359. "s/'\''/'\''\\\\'\'''\''/g;
  1360. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1361. ;; #(
  1362. *)
  1363. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1364. ;;
  1365. esac |
  1366. sort
  1367. )
  1368. echo
  1369. cat <<\_ASBOX
  1370. ## ----------------- ##
  1371. ## Output variables. ##
  1372. ## ----------------- ##
  1373. _ASBOX
  1374. echo
  1375. for ac_var in $ac_subst_vars
  1376. do
  1377. eval ac_val=\$$ac_var
  1378. case $ac_val in
  1379. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1380. esac
  1381. echo "$ac_var='\''$ac_val'\''"
  1382. done | sort
  1383. echo
  1384. if test -n "$ac_subst_files"; then
  1385. cat <<\_ASBOX
  1386. ## ------------------- ##
  1387. ## File substitutions. ##
  1388. ## ------------------- ##
  1389. _ASBOX
  1390. echo
  1391. for ac_var in $ac_subst_files
  1392. do
  1393. eval ac_val=\$$ac_var
  1394. case $ac_val in
  1395. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1396. esac
  1397. echo "$ac_var='\''$ac_val'\''"
  1398. done | sort
  1399. echo
  1400. fi
  1401. if test -s confdefs.h; then
  1402. cat <<\_ASBOX
  1403. ## ----------- ##
  1404. ## confdefs.h. ##
  1405. ## ----------- ##
  1406. _ASBOX
  1407. echo
  1408. cat confdefs.h
  1409. echo
  1410. fi
  1411. test "$ac_signal" != 0 &&
  1412. echo "$as_me: caught signal $ac_signal"
  1413. echo "$as_me: exit $exit_status"
  1414. } >&5
  1415. rm -f core *.core core.conftest.* &&
  1416. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1417. exit $exit_status
  1418. ' 0
  1419. for ac_signal in 1 2 13 15; do
  1420. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1421. done
  1422. ac_signal=0
  1423. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1424. rm -f -r conftest* confdefs.h
  1425. # Predefined preprocessor variables.
  1426. cat >>confdefs.h <<_ACEOF
  1427. #define PACKAGE_NAME "$PACKAGE_NAME"
  1428. _ACEOF
  1429. cat >>confdefs.h <<_ACEOF
  1430. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1431. _ACEOF
  1432. cat >>confdefs.h <<_ACEOF
  1433. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1434. _ACEOF
  1435. cat >>confdefs.h <<_ACEOF
  1436. #define PACKAGE_STRING "$PACKAGE_STRING"
  1437. _ACEOF
  1438. cat >>confdefs.h <<_ACEOF
  1439. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1440. _ACEOF
  1441. # Let the site file select an alternate cache file if it wants to.
  1442. # Prefer explicitly selected file to automatically selected ones.
  1443. if test -n "$CONFIG_SITE"; then
  1444. set x "$CONFIG_SITE"
  1445. elif test "x$prefix" != xNONE; then
  1446. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1447. else
  1448. set x "$ac_default_prefix/share/config.site" \
  1449. "$ac_default_prefix/etc/config.site"
  1450. fi
  1451. shift
  1452. for ac_site_file
  1453. do
  1454. if test -r "$ac_site_file"; then
  1455. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1456. echo "$as_me: loading site script $ac_site_file" >&6;}
  1457. sed 's/^/| /' "$ac_site_file" >&5
  1458. . "$ac_site_file"
  1459. fi
  1460. done
  1461. if test -r "$cache_file"; then
  1462. # Some versions of bash will fail to source /dev/null (special
  1463. # files actually), so we avoid doing that.
  1464. if test -f "$cache_file"; then
  1465. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1466. echo "$as_me: loading cache $cache_file" >&6;}
  1467. case $cache_file in
  1468. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1469. *) . "./$cache_file";;
  1470. esac
  1471. fi
  1472. else
  1473. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1474. echo "$as_me: creating cache $cache_file" >&6;}
  1475. >$cache_file
  1476. fi
  1477. # Check that the precious variables saved in the cache have kept the same
  1478. # value.
  1479. ac_cache_corrupted=false
  1480. for ac_var in $ac_precious_vars; do
  1481. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1482. eval ac_new_set=\$ac_env_${ac_var}_set
  1483. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1484. eval ac_new_val=\$ac_env_${ac_var}_value
  1485. case $ac_old_set,$ac_new_set in
  1486. set,)
  1487. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1488. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1489. ac_cache_corrupted=: ;;
  1490. ,set)
  1491. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1492. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1493. ac_cache_corrupted=: ;;
  1494. ,);;
  1495. *)
  1496. if test "x$ac_old_val" != "x$ac_new_val"; then
  1497. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1498. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1499. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1500. echo "$as_me: former value: $ac_old_val" >&2;}
  1501. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1502. echo "$as_me: current value: $ac_new_val" >&2;}
  1503. ac_cache_corrupted=:
  1504. fi;;
  1505. esac
  1506. # Pass precious variables to config.status.
  1507. if test "$ac_new_set" = set; then
  1508. case $ac_new_val in
  1509. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1510. *) ac_arg=$ac_var=$ac_new_val ;;
  1511. esac
  1512. case " $ac_configure_args " in
  1513. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1514. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1515. esac
  1516. fi
  1517. done
  1518. if $ac_cache_corrupted; then
  1519. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1520. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1521. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1522. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1523. { (exit 1); exit 1; }; }
  1524. fi
  1525. ac_ext=c
  1526. ac_cpp='$CPP $CPPFLAGS'
  1527. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1528. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1529. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1530. ac_aux_dir=
  1531. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1532. if test -f "$ac_dir/install-sh"; then
  1533. ac_aux_dir=$ac_dir
  1534. ac_install_sh="$ac_aux_dir/install-sh -c"
  1535. break
  1536. elif test -f "$ac_dir/install.sh"; then
  1537. ac_aux_dir=$ac_dir
  1538. ac_install_sh="$ac_aux_dir/install.sh -c"
  1539. break
  1540. elif test -f "$ac_dir/shtool"; then
  1541. ac_aux_dir=$ac_dir
  1542. ac_install_sh="$ac_aux_dir/shtool install -c"
  1543. break
  1544. fi
  1545. done
  1546. if test -z "$ac_aux_dir"; then
  1547. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1548. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1549. { (exit 1); exit 1; }; }
  1550. fi
  1551. # These three variables are undocumented and unsupported,
  1552. # and are intended to be withdrawn in a future Autoconf release.
  1553. # They can cause serious problems if a builder's source tree is in a directory
  1554. # whose full name contains unusual characters.
  1555. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1556. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1557. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1558. # Make sure we can run config.sub.
  1559. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1560. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1561. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. { echo "$as_me:$LINENO: checking build system type" >&5
  1564. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1565. if test "${ac_cv_build+set}" = set; then
  1566. echo $ECHO_N "(cached) $ECHO_C" >&6
  1567. else
  1568. ac_build_alias=$build_alias
  1569. test "x$ac_build_alias" = x &&
  1570. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1571. test "x$ac_build_alias" = x &&
  1572. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1573. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1574. { (exit 1); exit 1; }; }
  1575. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1576. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1577. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1578. { (exit 1); exit 1; }; }
  1579. fi
  1580. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1581. echo "${ECHO_T}$ac_cv_build" >&6; }
  1582. case $ac_cv_build in
  1583. *-*-*) ;;
  1584. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1585. echo "$as_me: error: invalid value of canonical build" >&2;}
  1586. { (exit 1); exit 1; }; };;
  1587. esac
  1588. build=$ac_cv_build
  1589. ac_save_IFS=$IFS; IFS='-'
  1590. set x $ac_cv_build
  1591. shift
  1592. build_cpu=$1
  1593. build_vendor=$2
  1594. shift; shift
  1595. # Remember, the first character of IFS is used to create $*,
  1596. # except with old shells:
  1597. build_os=$*
  1598. IFS=$ac_save_IFS
  1599. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1600. { echo "$as_me:$LINENO: checking host system type" >&5
  1601. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1602. if test "${ac_cv_host+set}" = set; then
  1603. echo $ECHO_N "(cached) $ECHO_C" >&6
  1604. else
  1605. if test "x$host_alias" = x; then
  1606. ac_cv_host=$ac_cv_build
  1607. else
  1608. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1609. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1610. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1611. { (exit 1); exit 1; }; }
  1612. fi
  1613. fi
  1614. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1615. echo "${ECHO_T}$ac_cv_host" >&6; }
  1616. case $ac_cv_host in
  1617. *-*-*) ;;
  1618. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1619. echo "$as_me: error: invalid value of canonical host" >&2;}
  1620. { (exit 1); exit 1; }; };;
  1621. esac
  1622. host=$ac_cv_host
  1623. ac_save_IFS=$IFS; IFS='-'
  1624. set x $ac_cv_host
  1625. shift
  1626. host_cpu=$1
  1627. host_vendor=$2
  1628. shift; shift
  1629. # Remember, the first character of IFS is used to create $*,
  1630. # except with old shells:
  1631. host_os=$*
  1632. IFS=$ac_save_IFS
  1633. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1634. { echo "$as_me:$LINENO: checking target system type" >&5
  1635. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1636. if test "${ac_cv_target+set}" = set; then
  1637. echo $ECHO_N "(cached) $ECHO_C" >&6
  1638. else
  1639. if test "x$target_alias" = x; then
  1640. ac_cv_target=$ac_cv_host
  1641. else
  1642. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1643. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1644. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1645. { (exit 1); exit 1; }; }
  1646. fi
  1647. fi
  1648. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1649. echo "${ECHO_T}$ac_cv_target" >&6; }
  1650. case $ac_cv_target in
  1651. *-*-*) ;;
  1652. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1653. echo "$as_me: error: invalid value of canonical target" >&2;}
  1654. { (exit 1); exit 1; }; };;
  1655. esac
  1656. target=$ac_cv_target
  1657. ac_save_IFS=$IFS; IFS='-'
  1658. set x $ac_cv_target
  1659. shift
  1660. target_cpu=$1
  1661. target_vendor=$2
  1662. shift; shift
  1663. # Remember, the first character of IFS is used to create $*,
  1664. # except with old shells:
  1665. target_os=$*
  1666. IFS=$ac_save_IFS
  1667. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1668. # The aliases save the names the user supplied, while $host etc.
  1669. # will get canonicalized.
  1670. test -n "$target_alias" &&
  1671. test "$program_prefix$program_suffix$program_transform_name" = \
  1672. NONENONEs,x,x, &&
  1673. program_prefix=${target_alias}-
  1674. am__api_version='1.10'
  1675. # Find a good install program. We prefer a C program (faster),
  1676. # so one script is as good as another. But avoid the broken or
  1677. # incompatible versions:
  1678. # SysV /etc/install, /usr/sbin/install
  1679. # SunOS /usr/etc/install
  1680. # IRIX /sbin/install
  1681. # AIX /bin/install
  1682. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1683. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1684. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1685. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1686. # OS/2's system install, which has a completely different semantic
  1687. # ./install, which can be erroneously created by make from ./install.sh.
  1688. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1689. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1690. if test -z "$INSTALL"; then
  1691. if test "${ac_cv_path_install+set}" = set; then
  1692. echo $ECHO_N "(cached) $ECHO_C" >&6
  1693. else
  1694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1695. for as_dir in $PATH
  1696. do
  1697. IFS=$as_save_IFS
  1698. test -z "$as_dir" && as_dir=.
  1699. # Account for people who put trailing slashes in PATH elements.
  1700. case $as_dir/ in
  1701. ./ | .// | /cC/* | \
  1702. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1703. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1704. /usr/ucb/* ) ;;
  1705. *)
  1706. # OSF1 and SCO ODT 3.0 have their own names for install.
  1707. # Don't use installbsd from OSF since it installs stuff as root
  1708. # by default.
  1709. for ac_prog in ginstall scoinst install; do
  1710. for ac_exec_ext in '' $ac_executable_extensions; do
  1711. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1712. if test $ac_prog = install &&
  1713. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1714. # AIX install. It has an incompatible calling convention.
  1715. :
  1716. elif test $ac_prog = install &&
  1717. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1718. # program-specific install script used by HP pwplus--don't use.
  1719. :
  1720. else
  1721. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1722. break 3
  1723. fi
  1724. fi
  1725. done
  1726. done
  1727. ;;
  1728. esac
  1729. done
  1730. IFS=$as_save_IFS
  1731. fi
  1732. if test "${ac_cv_path_install+set}" = set; then
  1733. INSTALL=$ac_cv_path_install
  1734. else
  1735. # As a last resort, use the slow shell script. Don't cache a
  1736. # value for INSTALL within a source directory, because that will
  1737. # break other packages using the cache if that directory is
  1738. # removed, or if the value is a relative name.
  1739. INSTALL=$ac_install_sh
  1740. fi
  1741. fi
  1742. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1743. echo "${ECHO_T}$INSTALL" >&6; }
  1744. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1745. # It thinks the first close brace ends the variable substitution.
  1746. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1747. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1748. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1749. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1750. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1751. # Just in case
  1752. sleep 1
  1753. echo timestamp > conftest.file
  1754. # Do `set' in a subshell so we don't clobber the current shell's
  1755. # arguments. Must try -L first in case configure is actually a
  1756. # symlink; some systems play weird games with the mod time of symlinks
  1757. # (eg FreeBSD returns the mod time of the symlink's containing
  1758. # directory).
  1759. if (
  1760. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1761. if test "$*" = "X"; then
  1762. # -L didn't work.
  1763. set X `ls -t $srcdir/configure conftest.file`
  1764. fi
  1765. rm -f conftest.file
  1766. if test "$*" != "X $srcdir/configure conftest.file" \
  1767. && test "$*" != "X conftest.file $srcdir/configure"; then
  1768. # If neither matched, then we have a broken ls. This can happen
  1769. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1770. # broken ls alias from the environment. This has actually
  1771. # happened. Such a system could not be considered "sane".
  1772. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1773. alias in your environment" >&5
  1774. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1775. alias in your environment" >&2;}
  1776. { (exit 1); exit 1; }; }
  1777. fi
  1778. test "$2" = conftest.file
  1779. )
  1780. then
  1781. # Ok.
  1782. :
  1783. else
  1784. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1785. Check your system clock" >&5
  1786. echo "$as_me: error: newly created file is older than distributed files!
  1787. Check your system clock" >&2;}
  1788. { (exit 1); exit 1; }; }
  1789. fi
  1790. { echo "$as_me:$LINENO: result: yes" >&5
  1791. echo "${ECHO_T}yes" >&6; }
  1792. test "$program_prefix" != NONE &&
  1793. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1794. # Use a double $ so make ignores it.
  1795. test "$program_suffix" != NONE &&
  1796. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1797. # Double any \ or $. echo might interpret backslashes.
  1798. # By default was `s,x,x', remove it if useless.
  1799. cat <<\_ACEOF >conftest.sed
  1800. s/[\\$]/&&/g;s/;s,x,x,$//
  1801. _ACEOF
  1802. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1803. rm -f conftest.sed
  1804. # expand $ac_aux_dir to an absolute path
  1805. am_aux_dir=`cd $ac_aux_dir && pwd`
  1806. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1807. # Use eval to expand $SHELL
  1808. if eval "$MISSING --run true"; then
  1809. am_missing_run="$MISSING --run "
  1810. else
  1811. am_missing_run=
  1812. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1813. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1814. fi
  1815. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1816. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1817. if test -z "$MKDIR_P"; then
  1818. if test "${ac_cv_path_mkdir+set}" = set; then
  1819. echo $ECHO_N "(cached) $ECHO_C" >&6
  1820. else
  1821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1822. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1823. do
  1824. IFS=$as_save_IFS
  1825. test -z "$as_dir" && as_dir=.
  1826. for ac_prog in mkdir gmkdir; do
  1827. for ac_exec_ext in '' $ac_executable_extensions; do
  1828. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1829. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1830. 'mkdir (GNU coreutils) '* | \
  1831. 'mkdir (coreutils) '* | \
  1832. 'mkdir (fileutils) '4.1*)
  1833. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1834. break 3;;
  1835. esac
  1836. done
  1837. done
  1838. done
  1839. IFS=$as_save_IFS
  1840. fi
  1841. if test "${ac_cv_path_mkdir+set}" = set; then
  1842. MKDIR_P="$ac_cv_path_mkdir -p"
  1843. else
  1844. # As a last resort, use the slow shell script. Don't cache a
  1845. # value for MKDIR_P within a source directory, because that will
  1846. # break other packages using the cache if that directory is
  1847. # removed, or if the value is a relative name.
  1848. test -d ./--version && rmdir ./--version
  1849. MKDIR_P="$ac_install_sh -d"
  1850. fi
  1851. fi
  1852. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1853. echo "${ECHO_T}$MKDIR_P" >&6; }
  1854. mkdir_p="$MKDIR_P"
  1855. case $mkdir_p in
  1856. [\\/$]* | ?:[\\/]*) ;;
  1857. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1858. esac
  1859. for ac_prog in gawk mawk nawk awk
  1860. do
  1861. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1862. set dummy $ac_prog; ac_word=$2
  1863. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1864. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1865. if test "${ac_cv_prog_AWK+set}" = set; then
  1866. echo $ECHO_N "(cached) $ECHO_C" >&6
  1867. else
  1868. if test -n "$AWK"; then
  1869. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1870. else
  1871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1872. for as_dir in $PATH
  1873. do
  1874. IFS=$as_save_IFS
  1875. test -z "$as_dir" && as_dir=.
  1876. for ac_exec_ext in '' $ac_executable_extensions; do
  1877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1878. ac_cv_prog_AWK="$ac_prog"
  1879. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1880. break 2
  1881. fi
  1882. done
  1883. done
  1884. IFS=$as_save_IFS
  1885. fi
  1886. fi
  1887. AWK=$ac_cv_prog_AWK
  1888. if test -n "$AWK"; then
  1889. { echo "$as_me:$LINENO: result: $AWK" >&5
  1890. echo "${ECHO_T}$AWK" >&6; }
  1891. else
  1892. { echo "$as_me:$LINENO: result: no" >&5
  1893. echo "${ECHO_T}no" >&6; }
  1894. fi
  1895. test -n "$AWK" && break
  1896. done
  1897. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1898. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1899. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1900. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1901. echo $ECHO_N "(cached) $ECHO_C" >&6
  1902. else
  1903. cat >conftest.make <<\_ACEOF
  1904. SHELL = /bin/sh
  1905. all:
  1906. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1907. _ACEOF
  1908. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1909. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1910. *@@@%%%=?*=@@@%%%*)
  1911. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1912. *)
  1913. eval ac_cv_prog_make_${ac_make}_set=no;;
  1914. esac
  1915. rm -f conftest.make
  1916. fi
  1917. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1918. { echo "$as_me:$LINENO: result: yes" >&5
  1919. echo "${ECHO_T}yes" >&6; }
  1920. SET_MAKE=
  1921. else
  1922. { echo "$as_me:$LINENO: result: no" >&5
  1923. echo "${ECHO_T}no" >&6; }
  1924. SET_MAKE="MAKE=${MAKE-make}"
  1925. fi
  1926. rm -rf .tst 2>/dev/null
  1927. mkdir .tst 2>/dev/null
  1928. if test -d .tst; then
  1929. am__leading_dot=.
  1930. else
  1931. am__leading_dot=_
  1932. fi
  1933. rmdir .tst 2>/dev/null
  1934. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1935. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1936. # is not polluted with repeated "-I."
  1937. am__isrc=' -I$(srcdir)'
  1938. # test to see if srcdir already configured
  1939. if test -f $srcdir/config.status; then
  1940. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1941. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1942. { (exit 1); exit 1; }; }
  1943. fi
  1944. fi
  1945. # test whether we have cygpath
  1946. if test -z "$CYGPATH_W"; then
  1947. if (cygpath --version) >/dev/null 2>/dev/null; then
  1948. CYGPATH_W='cygpath -w'
  1949. else
  1950. CYGPATH_W=echo
  1951. fi
  1952. fi
  1953. # Define the identity of the package.
  1954. PACKAGE='ngircd'
  1955. VERSION='17.1'
  1956. cat >>confdefs.h <<_ACEOF
  1957. #define PACKAGE "$PACKAGE"
  1958. _ACEOF
  1959. cat >>confdefs.h <<_ACEOF
  1960. #define VERSION "$VERSION"
  1961. _ACEOF
  1962. # Some tools Automake needs.
  1963. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1964. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1965. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1966. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1967. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1968. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  1969. # Installed binaries are usually stripped using `strip' when the user
  1970. # run `make install-strip'. However `strip' might not be the right
  1971. # tool to use in cross-compilation environments, therefore Automake
  1972. # will honor the `STRIP' environment variable to overrule this program.
  1973. if test "$cross_compiling" != no; then
  1974. if test -n "$ac_tool_prefix"; then
  1975. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1976. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1977. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1978. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1979. if test "${ac_cv_prog_STRIP+set}" = set; then
  1980. echo $ECHO_N "(cached) $ECHO_C" >&6
  1981. else
  1982. if test -n "$STRIP"; then
  1983. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1984. else
  1985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1986. for as_dir in $PATH
  1987. do
  1988. IFS=$as_save_IFS
  1989. test -z "$as_dir" && as_dir=.
  1990. for ac_exec_ext in '' $ac_executable_extensions; do
  1991. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1992. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1993. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1994. break 2
  1995. fi
  1996. done
  1997. done
  1998. IFS=$as_save_IFS
  1999. fi
  2000. fi
  2001. STRIP=$ac_cv_prog_STRIP
  2002. if test -n "$STRIP"; then
  2003. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2004. echo "${ECHO_T}$STRIP" >&6; }
  2005. else
  2006. { echo "$as_me:$LINENO: result: no" >&5
  2007. echo "${ECHO_T}no" >&6; }
  2008. fi
  2009. fi
  2010. if test -z "$ac_cv_prog_STRIP"; then
  2011. ac_ct_STRIP=$STRIP
  2012. # Extract the first word of "strip", so it can be a program name with args.
  2013. set dummy strip; ac_word=$2
  2014. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2015. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2016. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2017. echo $ECHO_N "(cached) $ECHO_C" >&6
  2018. else
  2019. if test -n "$ac_ct_STRIP"; then
  2020. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2021. else
  2022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2023. for as_dir in $PATH
  2024. do
  2025. IFS=$as_save_IFS
  2026. test -z "$as_dir" && as_dir=.
  2027. for ac_exec_ext in '' $ac_executable_extensions; do
  2028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2029. ac_cv_prog_ac_ct_STRIP="strip"
  2030. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2031. break 2
  2032. fi
  2033. done
  2034. done
  2035. IFS=$as_save_IFS
  2036. fi
  2037. fi
  2038. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2039. if test -n "$ac_ct_STRIP"; then
  2040. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2041. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2042. else
  2043. { echo "$as_me:$LINENO: result: no" >&5
  2044. echo "${ECHO_T}no" >&6; }
  2045. fi
  2046. if test "x$ac_ct_STRIP" = x; then
  2047. STRIP=":"
  2048. else
  2049. case $cross_compiling:$ac_tool_warned in
  2050. yes:)
  2051. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2052. whose name does not start with the host triplet. If you think this
  2053. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2054. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2055. whose name does not start with the host triplet. If you think this
  2056. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2057. ac_tool_warned=yes ;;
  2058. esac
  2059. STRIP=$ac_ct_STRIP
  2060. fi
  2061. else
  2062. STRIP="$ac_cv_prog_STRIP"
  2063. fi
  2064. fi
  2065. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2066. # We need awk for the "check" target. The system "awk" is bad on
  2067. # some platforms.
  2068. # Always define AMTAR for backward compatibility.
  2069. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2070. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2071. ac_config_headers="$ac_config_headers src/config.h"
  2072. # -- Templates for config.h --
  2073. # -- C Compiler --
  2074. ac_ext=c
  2075. ac_cpp='$CPP $CPPFLAGS'
  2076. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2077. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2078. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2079. if test -n "$ac_tool_prefix"; then
  2080. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2081. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2082. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2083. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2084. if test "${ac_cv_prog_CC+set}" = set; then
  2085. echo $ECHO_N "(cached) $ECHO_C" >&6
  2086. else
  2087. if test -n "$CC"; then
  2088. ac_cv_prog_CC="$CC" # Let the user override the test.
  2089. else
  2090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2091. for as_dir in $PATH
  2092. do
  2093. IFS=$as_save_IFS
  2094. test -z "$as_dir" && as_dir=.
  2095. for ac_exec_ext in '' $ac_executable_extensions; do
  2096. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2097. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2098. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2099. break 2
  2100. fi
  2101. done
  2102. done
  2103. IFS=$as_save_IFS
  2104. fi
  2105. fi
  2106. CC=$ac_cv_prog_CC
  2107. if test -n "$CC"; then
  2108. { echo "$as_me:$LINENO: result: $CC" >&5
  2109. echo "${ECHO_T}$CC" >&6; }
  2110. else
  2111. { echo "$as_me:$LINENO: result: no" >&5
  2112. echo "${ECHO_T}no" >&6; }
  2113. fi
  2114. fi
  2115. if test -z "$ac_cv_prog_CC"; then
  2116. ac_ct_CC=$CC
  2117. # Extract the first word of "gcc", so it can be a program name with args.
  2118. set dummy gcc; ac_word=$2
  2119. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2120. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2121. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2122. echo $ECHO_N "(cached) $ECHO_C" >&6
  2123. else
  2124. if test -n "$ac_ct_CC"; then
  2125. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2126. else
  2127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2128. for as_dir in $PATH
  2129. do
  2130. IFS=$as_save_IFS
  2131. test -z "$as_dir" && as_dir=.
  2132. for ac_exec_ext in '' $ac_executable_extensions; do
  2133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2134. ac_cv_prog_ac_ct_CC="gcc"
  2135. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2136. break 2
  2137. fi
  2138. done
  2139. done
  2140. IFS=$as_save_IFS
  2141. fi
  2142. fi
  2143. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2144. if test -n "$ac_ct_CC"; then
  2145. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2146. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2147. else
  2148. { echo "$as_me:$LINENO: result: no" >&5
  2149. echo "${ECHO_T}no" >&6; }
  2150. fi
  2151. if test "x$ac_ct_CC" = x; then
  2152. CC=""
  2153. else
  2154. case $cross_compiling:$ac_tool_warned in
  2155. yes:)
  2156. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2157. whose name does not start with the host triplet. If you think this
  2158. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2159. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2160. whose name does not start with the host triplet. If you think this
  2161. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2162. ac_tool_warned=yes ;;
  2163. esac
  2164. CC=$ac_ct_CC
  2165. fi
  2166. else
  2167. CC="$ac_cv_prog_CC"
  2168. fi
  2169. if test -z "$CC"; then
  2170. if test -n "$ac_tool_prefix"; then
  2171. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2172. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2173. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2174. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2175. if test "${ac_cv_prog_CC+set}" = set; then
  2176. echo $ECHO_N "(cached) $ECHO_C" >&6
  2177. else
  2178. if test -n "$CC"; then
  2179. ac_cv_prog_CC="$CC" # Let the user override the test.
  2180. else
  2181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2182. for as_dir in $PATH
  2183. do
  2184. IFS=$as_save_IFS
  2185. test -z "$as_dir" && as_dir=.
  2186. for ac_exec_ext in '' $ac_executable_extensions; do
  2187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2188. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2189. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2190. break 2
  2191. fi
  2192. done
  2193. done
  2194. IFS=$as_save_IFS
  2195. fi
  2196. fi
  2197. CC=$ac_cv_prog_CC
  2198. if test -n "$CC"; then
  2199. { echo "$as_me:$LINENO: result: $CC" >&5
  2200. echo "${ECHO_T}$CC" >&6; }
  2201. else
  2202. { echo "$as_me:$LINENO: result: no" >&5
  2203. echo "${ECHO_T}no" >&6; }
  2204. fi
  2205. fi
  2206. fi
  2207. if test -z "$CC"; then
  2208. # Extract the first word of "cc", so it can be a program name with args.
  2209. set dummy cc; ac_word=$2
  2210. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2211. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2212. if test "${ac_cv_prog_CC+set}" = set; then
  2213. echo $ECHO_N "(cached) $ECHO_C" >&6
  2214. else
  2215. if test -n "$CC"; then
  2216. ac_cv_prog_CC="$CC" # Let the user override the test.
  2217. else
  2218. ac_prog_rejected=no
  2219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2220. for as_dir in $PATH
  2221. do
  2222. IFS=$as_save_IFS
  2223. test -z "$as_dir" && as_dir=.
  2224. for ac_exec_ext in '' $ac_executable_extensions; do
  2225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2226. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2227. ac_prog_rejected=yes
  2228. continue
  2229. fi
  2230. ac_cv_prog_CC="cc"
  2231. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2232. break 2
  2233. fi
  2234. done
  2235. done
  2236. IFS=$as_save_IFS
  2237. if test $ac_prog_rejected = yes; then
  2238. # We found a bogon in the path, so make sure we never use it.
  2239. set dummy $ac_cv_prog_CC
  2240. shift
  2241. if test $# != 0; then
  2242. # We chose a different compiler from the bogus one.
  2243. # However, it has the same basename, so the bogon will be chosen
  2244. # first if we set CC to just the basename; use the full file name.
  2245. shift
  2246. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2247. fi
  2248. fi
  2249. fi
  2250. fi
  2251. CC=$ac_cv_prog_CC
  2252. if test -n "$CC"; then
  2253. { echo "$as_me:$LINENO: result: $CC" >&5
  2254. echo "${ECHO_T}$CC" >&6; }
  2255. else
  2256. { echo "$as_me:$LINENO: result: no" >&5
  2257. echo "${ECHO_T}no" >&6; }
  2258. fi
  2259. fi
  2260. if test -z "$CC"; then
  2261. if test -n "$ac_tool_prefix"; then
  2262. for ac_prog in cl.exe
  2263. do
  2264. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2265. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2266. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2267. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2268. if test "${ac_cv_prog_CC+set}" = set; then
  2269. echo $ECHO_N "(cached) $ECHO_C" >&6
  2270. else
  2271. if test -n "$CC"; then
  2272. ac_cv_prog_CC="$CC" # Let the user override the test.
  2273. else
  2274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2275. for as_dir in $PATH
  2276. do
  2277. IFS=$as_save_IFS
  2278. test -z "$as_dir" && as_dir=.
  2279. for ac_exec_ext in '' $ac_executable_extensions; do
  2280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2281. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2282. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2283. break 2
  2284. fi
  2285. done
  2286. done
  2287. IFS=$as_save_IFS
  2288. fi
  2289. fi
  2290. CC=$ac_cv_prog_CC
  2291. if test -n "$CC"; then
  2292. { echo "$as_me:$LINENO: result: $CC" >&5
  2293. echo "${ECHO_T}$CC" >&6; }
  2294. else
  2295. { echo "$as_me:$LINENO: result: no" >&5
  2296. echo "${ECHO_T}no" >&6; }
  2297. fi
  2298. test -n "$CC" && break
  2299. done
  2300. fi
  2301. if test -z "$CC"; then
  2302. ac_ct_CC=$CC
  2303. for ac_prog in cl.exe
  2304. do
  2305. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2306. set dummy $ac_prog; ac_word=$2
  2307. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2308. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2309. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2310. echo $ECHO_N "(cached) $ECHO_C" >&6
  2311. else
  2312. if test -n "$ac_ct_CC"; then
  2313. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2314. else
  2315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2316. for as_dir in $PATH
  2317. do
  2318. IFS=$as_save_IFS
  2319. test -z "$as_dir" && as_dir=.
  2320. for ac_exec_ext in '' $ac_executable_extensions; do
  2321. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2322. ac_cv_prog_ac_ct_CC="$ac_prog"
  2323. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2324. break 2
  2325. fi
  2326. done
  2327. done
  2328. IFS=$as_save_IFS
  2329. fi
  2330. fi
  2331. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2332. if test -n "$ac_ct_CC"; then
  2333. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2334. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2335. else
  2336. { echo "$as_me:$LINENO: result: no" >&5
  2337. echo "${ECHO_T}no" >&6; }
  2338. fi
  2339. test -n "$ac_ct_CC" && break
  2340. done
  2341. if test "x$ac_ct_CC" = x; then
  2342. CC=""
  2343. else
  2344. case $cross_compiling:$ac_tool_warned in
  2345. yes:)
  2346. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2347. whose name does not start with the host triplet. If you think this
  2348. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2349. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2350. whose name does not start with the host triplet. If you think this
  2351. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2352. ac_tool_warned=yes ;;
  2353. esac
  2354. CC=$ac_ct_CC
  2355. fi
  2356. fi
  2357. fi
  2358. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2359. See \`config.log' for more details." >&5
  2360. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2361. See \`config.log' for more details." >&2;}
  2362. { (exit 1); exit 1; }; }
  2363. # Provide some information about the compiler.
  2364. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2365. ac_compiler=`set X $ac_compile; echo $2`
  2366. { (ac_try="$ac_compiler --version >&5"
  2367. case "(($ac_try" in
  2368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2369. *) ac_try_echo=$ac_try;;
  2370. esac
  2371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2372. (eval "$ac_compiler --version >&5") 2>&5
  2373. ac_status=$?
  2374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2375. (exit $ac_status); }
  2376. { (ac_try="$ac_compiler -v >&5"
  2377. case "(($ac_try" in
  2378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2379. *) ac_try_echo=$ac_try;;
  2380. esac
  2381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2382. (eval "$ac_compiler -v >&5") 2>&5
  2383. ac_status=$?
  2384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2385. (exit $ac_status); }
  2386. { (ac_try="$ac_compiler -V >&5"
  2387. case "(($ac_try" in
  2388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2389. *) ac_try_echo=$ac_try;;
  2390. esac
  2391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2392. (eval "$ac_compiler -V >&5") 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }
  2396. cat >conftest.$ac_ext <<_ACEOF
  2397. /* confdefs.h. */
  2398. _ACEOF
  2399. cat confdefs.h >>conftest.$ac_ext
  2400. cat >>conftest.$ac_ext <<_ACEOF
  2401. /* end confdefs.h. */
  2402. int
  2403. main ()
  2404. {
  2405. ;
  2406. return 0;
  2407. }
  2408. _ACEOF
  2409. ac_clean_files_save=$ac_clean_files
  2410. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2411. # Try to create an executable without -o first, disregard a.out.
  2412. # It will help us diagnose broken compilers, and finding out an intuition
  2413. # of exeext.
  2414. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2415. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2416. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2417. #
  2418. # List of possible output files, starting from the most likely.
  2419. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2420. # only as a last resort. b.out is created by i960 compilers.
  2421. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2422. #
  2423. # The IRIX 6 linker writes into existing files which may not be
  2424. # executable, retaining their permissions. Remove them first so a
  2425. # subsequent execution test works.
  2426. ac_rmfiles=
  2427. for ac_file in $ac_files
  2428. do
  2429. case $ac_file in
  2430. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2431. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2432. esac
  2433. done
  2434. rm -f $ac_rmfiles
  2435. if { (ac_try="$ac_link_default"
  2436. case "(($ac_try" in
  2437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2438. *) ac_try_echo=$ac_try;;
  2439. esac
  2440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2441. (eval "$ac_link_default") 2>&5
  2442. ac_status=$?
  2443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2444. (exit $ac_status); }; then
  2445. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2446. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2447. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2448. # so that the user can short-circuit this test for compilers unknown to
  2449. # Autoconf.
  2450. for ac_file in $ac_files ''
  2451. do
  2452. test -f "$ac_file" || continue
  2453. case $ac_file in
  2454. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2455. ;;
  2456. [ab].out )
  2457. # We found the default executable, but exeext='' is most
  2458. # certainly right.
  2459. break;;
  2460. *.* )
  2461. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2462. then :; else
  2463. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2464. fi
  2465. # We set ac_cv_exeext here because the later test for it is not
  2466. # safe: cross compilers may not add the suffix if given an `-o'
  2467. # argument, so we may need to know it at that point already.
  2468. # Even if this section looks crufty: it has the advantage of
  2469. # actually working.
  2470. break;;
  2471. * )
  2472. break;;
  2473. esac
  2474. done
  2475. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2476. else
  2477. ac_file=''
  2478. fi
  2479. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2480. echo "${ECHO_T}$ac_file" >&6; }
  2481. if test -z "$ac_file"; then
  2482. echo "$as_me: failed program was:" >&5
  2483. sed 's/^/| /' conftest.$ac_ext >&5
  2484. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2485. See \`config.log' for more details." >&5
  2486. echo "$as_me: error: C compiler cannot create executables
  2487. See \`config.log' for more details." >&2;}
  2488. { (exit 77); exit 77; }; }
  2489. fi
  2490. ac_exeext=$ac_cv_exeext
  2491. # Check that the compiler produces executables we can run. If not, either
  2492. # the compiler is broken, or we cross compile.
  2493. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2494. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2495. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2496. # If not cross compiling, check that we can run a simple program.
  2497. if test "$cross_compiling" != yes; then
  2498. if { ac_try='./$ac_file'
  2499. { (case "(($ac_try" in
  2500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2501. *) ac_try_echo=$ac_try;;
  2502. esac
  2503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2504. (eval "$ac_try") 2>&5
  2505. ac_status=$?
  2506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2507. (exit $ac_status); }; }; then
  2508. cross_compiling=no
  2509. else
  2510. if test "$cross_compiling" = maybe; then
  2511. cross_compiling=yes
  2512. else
  2513. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2514. If you meant to cross compile, use \`--host'.
  2515. See \`config.log' for more details." >&5
  2516. echo "$as_me: error: cannot run C compiled programs.
  2517. If you meant to cross compile, use \`--host'.
  2518. See \`config.log' for more details." >&2;}
  2519. { (exit 1); exit 1; }; }
  2520. fi
  2521. fi
  2522. fi
  2523. { echo "$as_me:$LINENO: result: yes" >&5
  2524. echo "${ECHO_T}yes" >&6; }
  2525. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2526. ac_clean_files=$ac_clean_files_save
  2527. # Check that the compiler produces executables we can run. If not, either
  2528. # the compiler is broken, or we cross compile.
  2529. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2530. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2531. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2532. echo "${ECHO_T}$cross_compiling" >&6; }
  2533. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2534. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2535. if { (ac_try="$ac_link"
  2536. case "(($ac_try" in
  2537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2538. *) ac_try_echo=$ac_try;;
  2539. esac
  2540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2541. (eval "$ac_link") 2>&5
  2542. ac_status=$?
  2543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2544. (exit $ac_status); }; then
  2545. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2546. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2547. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2548. # `rm'.
  2549. for ac_file in conftest.exe conftest conftest.*; do
  2550. test -f "$ac_file" || continue
  2551. case $ac_file in
  2552. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2553. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2554. break;;
  2555. * ) break;;
  2556. esac
  2557. done
  2558. else
  2559. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2560. See \`config.log' for more details." >&5
  2561. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2562. See \`config.log' for more details." >&2;}
  2563. { (exit 1); exit 1; }; }
  2564. fi
  2565. rm -f conftest$ac_cv_exeext
  2566. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2567. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2568. rm -f conftest.$ac_ext
  2569. EXEEXT=$ac_cv_exeext
  2570. ac_exeext=$EXEEXT
  2571. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2572. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2573. if test "${ac_cv_objext+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. else
  2576. cat >conftest.$ac_ext <<_ACEOF
  2577. /* confdefs.h. */
  2578. _ACEOF
  2579. cat confdefs.h >>conftest.$ac_ext
  2580. cat >>conftest.$ac_ext <<_ACEOF
  2581. /* end confdefs.h. */
  2582. int
  2583. main ()
  2584. {
  2585. ;
  2586. return 0;
  2587. }
  2588. _ACEOF
  2589. rm -f conftest.o conftest.obj
  2590. if { (ac_try="$ac_compile"
  2591. case "(($ac_try" in
  2592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2593. *) ac_try_echo=$ac_try;;
  2594. esac
  2595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2596. (eval "$ac_compile") 2>&5
  2597. ac_status=$?
  2598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2599. (exit $ac_status); }; then
  2600. for ac_file in conftest.o conftest.obj conftest.*; do
  2601. test -f "$ac_file" || continue;
  2602. case $ac_file in
  2603. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2604. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2605. break;;
  2606. esac
  2607. done
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2612. See \`config.log' for more details." >&5
  2613. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2614. See \`config.log' for more details." >&2;}
  2615. { (exit 1); exit 1; }; }
  2616. fi
  2617. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2618. fi
  2619. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2620. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2621. OBJEXT=$ac_cv_objext
  2622. ac_objext=$OBJEXT
  2623. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2624. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2625. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2626. echo $ECHO_N "(cached) $ECHO_C" >&6
  2627. else
  2628. cat >conftest.$ac_ext <<_ACEOF
  2629. /* confdefs.h. */
  2630. _ACEOF
  2631. cat confdefs.h >>conftest.$ac_ext
  2632. cat >>conftest.$ac_ext <<_ACEOF
  2633. /* end confdefs.h. */
  2634. int
  2635. main ()
  2636. {
  2637. #ifndef __GNUC__
  2638. choke me
  2639. #endif
  2640. ;
  2641. return 0;
  2642. }
  2643. _ACEOF
  2644. rm -f conftest.$ac_objext
  2645. if { (ac_try="$ac_compile"
  2646. case "(($ac_try" in
  2647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2648. *) ac_try_echo=$ac_try;;
  2649. esac
  2650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2651. (eval "$ac_compile") 2>conftest.er1
  2652. ac_status=$?
  2653. grep -v '^ *+' conftest.er1 >conftest.err
  2654. rm -f conftest.er1
  2655. cat conftest.err >&5
  2656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2657. (exit $ac_status); } && {
  2658. test -z "$ac_c_werror_flag" ||
  2659. test ! -s conftest.err
  2660. } && test -s conftest.$ac_objext; then
  2661. ac_compiler_gnu=yes
  2662. else
  2663. echo "$as_me: failed program was:" >&5
  2664. sed 's/^/| /' conftest.$ac_ext >&5
  2665. ac_compiler_gnu=no
  2666. fi
  2667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2668. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2669. fi
  2670. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2671. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2672. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2673. ac_test_CFLAGS=${CFLAGS+set}
  2674. ac_save_CFLAGS=$CFLAGS
  2675. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2676. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2677. if test "${ac_cv_prog_cc_g+set}" = set; then
  2678. echo $ECHO_N "(cached) $ECHO_C" >&6
  2679. else
  2680. ac_save_c_werror_flag=$ac_c_werror_flag
  2681. ac_c_werror_flag=yes
  2682. ac_cv_prog_cc_g=no
  2683. CFLAGS="-g"
  2684. cat >conftest.$ac_ext <<_ACEOF
  2685. /* confdefs.h. */
  2686. _ACEOF
  2687. cat confdefs.h >>conftest.$ac_ext
  2688. cat >>conftest.$ac_ext <<_ACEOF
  2689. /* end confdefs.h. */
  2690. int
  2691. main ()
  2692. {
  2693. ;
  2694. return 0;
  2695. }
  2696. _ACEOF
  2697. rm -f conftest.$ac_objext
  2698. if { (ac_try="$ac_compile"
  2699. case "(($ac_try" in
  2700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2701. *) ac_try_echo=$ac_try;;
  2702. esac
  2703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2704. (eval "$ac_compile") 2>conftest.er1
  2705. ac_status=$?
  2706. grep -v '^ *+' conftest.er1 >conftest.err
  2707. rm -f conftest.er1
  2708. cat conftest.err >&5
  2709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2710. (exit $ac_status); } && {
  2711. test -z "$ac_c_werror_flag" ||
  2712. test ! -s conftest.err
  2713. } && test -s conftest.$ac_objext; then
  2714. ac_cv_prog_cc_g=yes
  2715. else
  2716. echo "$as_me: failed program was:" >&5
  2717. sed 's/^/| /' conftest.$ac_ext >&5
  2718. CFLAGS=""
  2719. cat >conftest.$ac_ext <<_ACEOF
  2720. /* confdefs.h. */
  2721. _ACEOF
  2722. cat confdefs.h >>conftest.$ac_ext
  2723. cat >>conftest.$ac_ext <<_ACEOF
  2724. /* end confdefs.h. */
  2725. int
  2726. main ()
  2727. {
  2728. ;
  2729. return 0;
  2730. }
  2731. _ACEOF
  2732. rm -f conftest.$ac_objext
  2733. if { (ac_try="$ac_compile"
  2734. case "(($ac_try" in
  2735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2736. *) ac_try_echo=$ac_try;;
  2737. esac
  2738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2739. (eval "$ac_compile") 2>conftest.er1
  2740. ac_status=$?
  2741. grep -v '^ *+' conftest.er1 >conftest.err
  2742. rm -f conftest.er1
  2743. cat conftest.err >&5
  2744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2745. (exit $ac_status); } && {
  2746. test -z "$ac_c_werror_flag" ||
  2747. test ! -s conftest.err
  2748. } && test -s conftest.$ac_objext; then
  2749. :
  2750. else
  2751. echo "$as_me: failed program was:" >&5
  2752. sed 's/^/| /' conftest.$ac_ext >&5
  2753. ac_c_werror_flag=$ac_save_c_werror_flag
  2754. CFLAGS="-g"
  2755. cat >conftest.$ac_ext <<_ACEOF
  2756. /* confdefs.h. */
  2757. _ACEOF
  2758. cat confdefs.h >>conftest.$ac_ext
  2759. cat >>conftest.$ac_ext <<_ACEOF
  2760. /* end confdefs.h. */
  2761. int
  2762. main ()
  2763. {
  2764. ;
  2765. return 0;
  2766. }
  2767. _ACEOF
  2768. rm -f conftest.$ac_objext
  2769. if { (ac_try="$ac_compile"
  2770. case "(($ac_try" in
  2771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2772. *) ac_try_echo=$ac_try;;
  2773. esac
  2774. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2775. (eval "$ac_compile") 2>conftest.er1
  2776. ac_status=$?
  2777. grep -v '^ *+' conftest.er1 >conftest.err
  2778. rm -f conftest.er1
  2779. cat conftest.err >&5
  2780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2781. (exit $ac_status); } && {
  2782. test -z "$ac_c_werror_flag" ||
  2783. test ! -s conftest.err
  2784. } && test -s conftest.$ac_objext; then
  2785. ac_cv_prog_cc_g=yes
  2786. else
  2787. echo "$as_me: failed program was:" >&5
  2788. sed 's/^/| /' conftest.$ac_ext >&5
  2789. fi
  2790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2791. fi
  2792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2793. fi
  2794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2795. ac_c_werror_flag=$ac_save_c_werror_flag
  2796. fi
  2797. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2798. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2799. if test "$ac_test_CFLAGS" = set; then
  2800. CFLAGS=$ac_save_CFLAGS
  2801. elif test $ac_cv_prog_cc_g = yes; then
  2802. if test "$GCC" = yes; then
  2803. CFLAGS="-g -O2"
  2804. else
  2805. CFLAGS="-g"
  2806. fi
  2807. else
  2808. if test "$GCC" = yes; then
  2809. CFLAGS="-O2"
  2810. else
  2811. CFLAGS=
  2812. fi
  2813. fi
  2814. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2815. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2816. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2817. echo $ECHO_N "(cached) $ECHO_C" >&6
  2818. else
  2819. ac_cv_prog_cc_c89=no
  2820. ac_save_CC=$CC
  2821. cat >conftest.$ac_ext <<_ACEOF
  2822. /* confdefs.h. */
  2823. _ACEOF
  2824. cat confdefs.h >>conftest.$ac_ext
  2825. cat >>conftest.$ac_ext <<_ACEOF
  2826. /* end confdefs.h. */
  2827. #include <stdarg.h>
  2828. #include <stdio.h>
  2829. #include <sys/types.h>
  2830. #include <sys/stat.h>
  2831. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2832. struct buf { int x; };
  2833. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2834. static char *e (p, i)
  2835. char **p;
  2836. int i;
  2837. {
  2838. return p[i];
  2839. }
  2840. static char *f (char * (*g) (char **, int), char **p, ...)
  2841. {
  2842. char *s;
  2843. va_list v;
  2844. va_start (v,p);
  2845. s = g (p, va_arg (v,int));
  2846. va_end (v);
  2847. return s;
  2848. }
  2849. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2850. function prototypes and stuff, but not '\xHH' hex character constants.
  2851. These don't provoke an error unfortunately, instead are silently treated
  2852. as 'x'. The following induces an error, until -std is added to get
  2853. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2854. array size at least. It's necessary to write '\x00'==0 to get something
  2855. that's true only with -std. */
  2856. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2857. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2858. inside strings and character constants. */
  2859. #define FOO(x) 'x'
  2860. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2861. int test (int i, double x);
  2862. struct s1 {int (*f) (int a);};
  2863. struct s2 {int (*f) (double a);};
  2864. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2865. int argc;
  2866. char **argv;
  2867. int
  2868. main ()
  2869. {
  2870. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2871. ;
  2872. return 0;
  2873. }
  2874. _ACEOF
  2875. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2876. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2877. do
  2878. CC="$ac_save_CC $ac_arg"
  2879. rm -f conftest.$ac_objext
  2880. if { (ac_try="$ac_compile"
  2881. case "(($ac_try" in
  2882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2883. *) ac_try_echo=$ac_try;;
  2884. esac
  2885. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2886. (eval "$ac_compile") 2>conftest.er1
  2887. ac_status=$?
  2888. grep -v '^ *+' conftest.er1 >conftest.err
  2889. rm -f conftest.er1
  2890. cat conftest.err >&5
  2891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2892. (exit $ac_status); } && {
  2893. test -z "$ac_c_werror_flag" ||
  2894. test ! -s conftest.err
  2895. } && test -s conftest.$ac_objext; then
  2896. ac_cv_prog_cc_c89=$ac_arg
  2897. else
  2898. echo "$as_me: failed program was:" >&5
  2899. sed 's/^/| /' conftest.$ac_ext >&5
  2900. fi
  2901. rm -f core conftest.err conftest.$ac_objext
  2902. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2903. done
  2904. rm -f conftest.$ac_ext
  2905. CC=$ac_save_CC
  2906. fi
  2907. # AC_CACHE_VAL
  2908. case "x$ac_cv_prog_cc_c89" in
  2909. x)
  2910. { echo "$as_me:$LINENO: result: none needed" >&5
  2911. echo "${ECHO_T}none needed" >&6; } ;;
  2912. xno)
  2913. { echo "$as_me:$LINENO: result: unsupported" >&5
  2914. echo "${ECHO_T}unsupported" >&6; } ;;
  2915. *)
  2916. CC="$CC $ac_cv_prog_cc_c89"
  2917. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2918. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2919. esac
  2920. ac_ext=c
  2921. ac_cpp='$CPP $CPPFLAGS'
  2922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2925. DEPDIR="${am__leading_dot}deps"
  2926. ac_config_commands="$ac_config_commands depfiles"
  2927. am_make=${MAKE-make}
  2928. cat > confinc << 'END'
  2929. am__doit:
  2930. @echo done
  2931. .PHONY: am__doit
  2932. END
  2933. # If we don't find an include directive, just comment out the code.
  2934. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2935. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2936. am__include="#"
  2937. am__quote=
  2938. _am_result=none
  2939. # First try GNU make style include.
  2940. echo "include confinc" > confmf
  2941. # We grep out `Entering directory' and `Leaving directory'
  2942. # messages which can occur if `w' ends up in MAKEFLAGS.
  2943. # In particular we don't look at `^make:' because GNU make might
  2944. # be invoked under some other name (usually "gmake"), in which
  2945. # case it prints its new name instead of `make'.
  2946. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2947. am__include=include
  2948. am__quote=
  2949. _am_result=GNU
  2950. fi
  2951. # Now try BSD make style include.
  2952. if test "$am__include" = "#"; then
  2953. echo '.include "confinc"' > confmf
  2954. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2955. am__include=.include
  2956. am__quote="\""
  2957. _am_result=BSD
  2958. fi
  2959. fi
  2960. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2961. echo "${ECHO_T}$_am_result" >&6; }
  2962. rm -f confinc confmf
  2963. # Check whether --enable-dependency-tracking was given.
  2964. if test "${enable_dependency_tracking+set}" = set; then
  2965. enableval=$enable_dependency_tracking;
  2966. fi
  2967. if test "x$enable_dependency_tracking" != xno; then
  2968. am_depcomp="$ac_aux_dir/depcomp"
  2969. AMDEPBACKSLASH='\'
  2970. fi
  2971. if test "x$enable_dependency_tracking" != xno; then
  2972. AMDEP_TRUE=
  2973. AMDEP_FALSE='#'
  2974. else
  2975. AMDEP_TRUE='#'
  2976. AMDEP_FALSE=
  2977. fi
  2978. depcc="$CC" am_compiler_list=
  2979. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2980. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2981. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2982. echo $ECHO_N "(cached) $ECHO_C" >&6
  2983. else
  2984. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2985. # We make a subdir and do the tests there. Otherwise we can end up
  2986. # making bogus files that we don't know about and never remove. For
  2987. # instance it was reported that on HP-UX the gcc test will end up
  2988. # making a dummy file named `D' -- because `-MD' means `put the output
  2989. # in D'.
  2990. mkdir conftest.dir
  2991. # Copy depcomp to subdir because otherwise we won't find it if we're
  2992. # using a relative directory.
  2993. cp "$am_depcomp" conftest.dir
  2994. cd conftest.dir
  2995. # We will build objects and dependencies in a subdirectory because
  2996. # it helps to detect inapplicable dependency modes. For instance
  2997. # both Tru64's cc and ICC support -MD to output dependencies as a
  2998. # side effect of compilation, but ICC will put the dependencies in
  2999. # the current directory while Tru64 will put them in the object
  3000. # directory.
  3001. mkdir sub
  3002. am_cv_CC_dependencies_compiler_type=none
  3003. if test "$am_compiler_list" = ""; then
  3004. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3005. fi
  3006. for depmode in $am_compiler_list; do
  3007. # Setup a source with many dependencies, because some compilers
  3008. # like to wrap large dependency lists on column 80 (with \), and
  3009. # we should not choose a depcomp mode which is confused by this.
  3010. #
  3011. # We need to recreate these files for each test, as the compiler may
  3012. # overwrite some of them when testing with obscure command lines.
  3013. # This happens at least with the AIX C compiler.
  3014. : > sub/conftest.c
  3015. for i in 1 2 3 4 5 6; do
  3016. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3017. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3018. # Solaris 8's {/usr,}/bin/sh.
  3019. touch sub/conftst$i.h
  3020. done
  3021. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3022. case $depmode in
  3023. nosideeffect)
  3024. # after this tag, mechanisms are not by side-effect, so they'll
  3025. # only be used when explicitly requested
  3026. if test "x$enable_dependency_tracking" = xyes; then
  3027. continue
  3028. else
  3029. break
  3030. fi
  3031. ;;
  3032. none) break ;;
  3033. esac
  3034. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3035. # mode. It turns out that the SunPro C++ compiler does not properly
  3036. # handle `-M -o', and we need to detect this.
  3037. if depmode=$depmode \
  3038. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3039. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3040. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3041. >/dev/null 2>conftest.err &&
  3042. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3043. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3044. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3045. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3046. # icc doesn't choke on unknown options, it will just issue warnings
  3047. # or remarks (even with -Werror). So we grep stderr for any message
  3048. # that says an option was ignored or not supported.
  3049. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3050. # icc: Command line warning: ignoring option '-M'; no argument required
  3051. # The diagnosis changed in icc 8.0:
  3052. # icc: Command line remark: option '-MP' not supported
  3053. if (grep 'ignoring option' conftest.err ||
  3054. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3055. am_cv_CC_dependencies_compiler_type=$depmode
  3056. break
  3057. fi
  3058. fi
  3059. done
  3060. cd ..
  3061. rm -rf conftest.dir
  3062. else
  3063. am_cv_CC_dependencies_compiler_type=none
  3064. fi
  3065. fi
  3066. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3067. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3068. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3069. if
  3070. test "x$enable_dependency_tracking" != xno \
  3071. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3072. am__fastdepCC_TRUE=
  3073. am__fastdepCC_FALSE='#'
  3074. else
  3075. am__fastdepCC_TRUE='#'
  3076. am__fastdepCC_FALSE=
  3077. fi
  3078. case $ac_cv_prog_cc_stdc in
  3079. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  3080. *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  3081. echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  3082. if test "${ac_cv_prog_cc_c99+set}" = set; then
  3083. echo $ECHO_N "(cached) $ECHO_C" >&6
  3084. else
  3085. ac_cv_prog_cc_c99=no
  3086. ac_save_CC=$CC
  3087. cat >conftest.$ac_ext <<_ACEOF
  3088. /* confdefs.h. */
  3089. _ACEOF
  3090. cat confdefs.h >>conftest.$ac_ext
  3091. cat >>conftest.$ac_ext <<_ACEOF
  3092. /* end confdefs.h. */
  3093. #include <stdarg.h>
  3094. #include <stdbool.h>
  3095. #include <stdlib.h>
  3096. #include <wchar.h>
  3097. #include <stdio.h>
  3098. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3099. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3100. #define showlist(...) puts (#__VA_ARGS__)
  3101. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3102. static void
  3103. test_varargs_macros (void)
  3104. {
  3105. int x = 1234;
  3106. int y = 5678;
  3107. debug ("Flag");
  3108. debug ("X = %d\n", x);
  3109. showlist (The first, second, and third items.);
  3110. report (x>y, "x is %d but y is %d", x, y);
  3111. }
  3112. // Check long long types.
  3113. #define BIG64 18446744073709551615ull
  3114. #define BIG32 4294967295ul
  3115. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3116. #if !BIG_OK
  3117. your preprocessor is broken;
  3118. #endif
  3119. #if BIG_OK
  3120. #else
  3121. your preprocessor is broken;
  3122. #endif
  3123. static long long int bignum = -9223372036854775807LL;
  3124. static unsigned long long int ubignum = BIG64;
  3125. struct incomplete_array
  3126. {
  3127. int datasize;
  3128. double data[];
  3129. };
  3130. struct named_init {
  3131. int number;
  3132. const wchar_t *name;
  3133. double average;
  3134. };
  3135. typedef const char *ccp;
  3136. static inline int
  3137. test_restrict (ccp restrict text)
  3138. {
  3139. // See if C++-style comments work.
  3140. // Iterate through items via the restricted pointer.
  3141. // Also check for declarations in for loops.
  3142. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3143. continue;
  3144. return 0;
  3145. }
  3146. // Check varargs and va_copy.
  3147. static void
  3148. test_varargs (const char *format, ...)
  3149. {
  3150. va_list args;
  3151. va_start (args, format);
  3152. va_list args_copy;
  3153. va_copy (args_copy, args);
  3154. const char *str;
  3155. int number;
  3156. float fnumber;
  3157. while (*format)
  3158. {
  3159. switch (*format++)
  3160. {
  3161. case 's': // string
  3162. str = va_arg (args_copy, const char *);
  3163. break;
  3164. case 'd': // int
  3165. number = va_arg (args_copy, int);
  3166. break;
  3167. case 'f': // float
  3168. fnumber = va_arg (args_copy, double);
  3169. break;
  3170. default:
  3171. break;
  3172. }
  3173. }
  3174. va_end (args_copy);
  3175. va_end (args);
  3176. }
  3177. int
  3178. main ()
  3179. {
  3180. // Check bool.
  3181. _Bool success = false;
  3182. // Check restrict.
  3183. if (test_restrict ("String literal") == 0)
  3184. success = true;
  3185. char *restrict newvar = "Another string";
  3186. // Check varargs.
  3187. test_varargs ("s, d' f .", "string", 65, 34.234);
  3188. test_varargs_macros ();
  3189. // Check flexible array members.
  3190. struct incomplete_array *ia =
  3191. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3192. ia->datasize = 10;
  3193. for (int i = 0; i < ia->datasize; ++i)
  3194. ia->data[i] = i * 1.234;
  3195. // Check named initializers.
  3196. struct named_init ni = {
  3197. .number = 34,
  3198. .name = L"Test wide string",
  3199. .average = 543.34343,
  3200. };
  3201. ni.number = 58;
  3202. int dynamic_array[ni.number];
  3203. dynamic_array[ni.number - 1] = 543;
  3204. // work around unused variable warnings
  3205. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3206. || dynamic_array[ni.number - 1] != 543);
  3207. ;
  3208. return 0;
  3209. }
  3210. _ACEOF
  3211. for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  3212. do
  3213. CC="$ac_save_CC $ac_arg"
  3214. rm -f conftest.$ac_objext
  3215. if { (ac_try="$ac_compile"
  3216. case "(($ac_try" in
  3217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3218. *) ac_try_echo=$ac_try;;
  3219. esac
  3220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3221. (eval "$ac_compile") 2>conftest.er1
  3222. ac_status=$?
  3223. grep -v '^ *+' conftest.er1 >conftest.err
  3224. rm -f conftest.er1
  3225. cat conftest.err >&5
  3226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3227. (exit $ac_status); } && {
  3228. test -z "$ac_c_werror_flag" ||
  3229. test ! -s conftest.err
  3230. } && test -s conftest.$ac_objext; then
  3231. ac_cv_prog_cc_c99=$ac_arg
  3232. else
  3233. echo "$as_me: failed program was:" >&5
  3234. sed 's/^/| /' conftest.$ac_ext >&5
  3235. fi
  3236. rm -f core conftest.err conftest.$ac_objext
  3237. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3238. done
  3239. rm -f conftest.$ac_ext
  3240. CC=$ac_save_CC
  3241. fi
  3242. # AC_CACHE_VAL
  3243. case "x$ac_cv_prog_cc_c99" in
  3244. x)
  3245. { echo "$as_me:$LINENO: result: none needed" >&5
  3246. echo "${ECHO_T}none needed" >&6; } ;;
  3247. xno)
  3248. { echo "$as_me:$LINENO: result: unsupported" >&5
  3249. echo "${ECHO_T}unsupported" >&6; } ;;
  3250. *)
  3251. CC="$CC $ac_cv_prog_cc_c99"
  3252. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  3253. echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  3254. esac
  3255. if test "x$ac_cv_prog_cc_c99" != xno; then
  3256. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3257. else
  3258. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3259. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3260. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3261. echo $ECHO_N "(cached) $ECHO_C" >&6
  3262. else
  3263. ac_cv_prog_cc_c89=no
  3264. ac_save_CC=$CC
  3265. cat >conftest.$ac_ext <<_ACEOF
  3266. /* confdefs.h. */
  3267. _ACEOF
  3268. cat confdefs.h >>conftest.$ac_ext
  3269. cat >>conftest.$ac_ext <<_ACEOF
  3270. /* end confdefs.h. */
  3271. #include <stdarg.h>
  3272. #include <stdio.h>
  3273. #include <sys/types.h>
  3274. #include <sys/stat.h>
  3275. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3276. struct buf { int x; };
  3277. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3278. static char *e (p, i)
  3279. char **p;
  3280. int i;
  3281. {
  3282. return p[i];
  3283. }
  3284. static char *f (char * (*g) (char **, int), char **p, ...)
  3285. {
  3286. char *s;
  3287. va_list v;
  3288. va_start (v,p);
  3289. s = g (p, va_arg (v,int));
  3290. va_end (v);
  3291. return s;
  3292. }
  3293. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3294. function prototypes and stuff, but not '\xHH' hex character constants.
  3295. These don't provoke an error unfortunately, instead are silently treated
  3296. as 'x'. The following induces an error, until -std is added to get
  3297. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3298. array size at least. It's necessary to write '\x00'==0 to get something
  3299. that's true only with -std. */
  3300. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3301. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3302. inside strings and character constants. */
  3303. #define FOO(x) 'x'
  3304. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3305. int test (int i, double x);
  3306. struct s1 {int (*f) (int a);};
  3307. struct s2 {int (*f) (double a);};
  3308. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3309. int argc;
  3310. char **argv;
  3311. int
  3312. main ()
  3313. {
  3314. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3320. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3321. do
  3322. CC="$ac_save_CC $ac_arg"
  3323. rm -f conftest.$ac_objext
  3324. if { (ac_try="$ac_compile"
  3325. case "(($ac_try" in
  3326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3327. *) ac_try_echo=$ac_try;;
  3328. esac
  3329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3330. (eval "$ac_compile") 2>conftest.er1
  3331. ac_status=$?
  3332. grep -v '^ *+' conftest.er1 >conftest.err
  3333. rm -f conftest.er1
  3334. cat conftest.err >&5
  3335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3336. (exit $ac_status); } && {
  3337. test -z "$ac_c_werror_flag" ||
  3338. test ! -s conftest.err
  3339. } && test -s conftest.$ac_objext; then
  3340. ac_cv_prog_cc_c89=$ac_arg
  3341. else
  3342. echo "$as_me: failed program was:" >&5
  3343. sed 's/^/| /' conftest.$ac_ext >&5
  3344. fi
  3345. rm -f core conftest.err conftest.$ac_objext
  3346. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3347. done
  3348. rm -f conftest.$ac_ext
  3349. CC=$ac_save_CC
  3350. fi
  3351. # AC_CACHE_VAL
  3352. case "x$ac_cv_prog_cc_c89" in
  3353. x)
  3354. { echo "$as_me:$LINENO: result: none needed" >&5
  3355. echo "${ECHO_T}none needed" >&6; } ;;
  3356. xno)
  3357. { echo "$as_me:$LINENO: result: unsupported" >&5
  3358. echo "${ECHO_T}unsupported" >&6; } ;;
  3359. *)
  3360. CC="$CC $ac_cv_prog_cc_c89"
  3361. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3362. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3363. esac
  3364. if test "x$ac_cv_prog_cc_c89" != xno; then
  3365. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3366. else
  3367. ac_cv_prog_cc_stdc=no
  3368. fi
  3369. fi
  3370. ;;
  3371. esac
  3372. { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  3373. echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  3374. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3375. echo $ECHO_N "(cached) $ECHO_C" >&6
  3376. fi
  3377. case $ac_cv_prog_cc_stdc in
  3378. no) { echo "$as_me:$LINENO: result: unsupported" >&5
  3379. echo "${ECHO_T}unsupported" >&6; } ;;
  3380. '') { echo "$as_me:$LINENO: result: none needed" >&5
  3381. echo "${ECHO_T}none needed" >&6; } ;;
  3382. *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3383. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  3384. esac
  3385. { echo "$as_me:$LINENO: checking for function prototypes" >&5
  3386. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
  3387. if test "$ac_cv_prog_cc_c89" != no; then
  3388. { echo "$as_me:$LINENO: result: yes" >&5
  3389. echo "${ECHO_T}yes" >&6; }
  3390. cat >>confdefs.h <<\_ACEOF
  3391. #define PROTOTYPES 1
  3392. _ACEOF
  3393. cat >>confdefs.h <<\_ACEOF
  3394. #define __PROTOTYPES 1
  3395. _ACEOF
  3396. else
  3397. { echo "$as_me:$LINENO: result: no" >&5
  3398. echo "${ECHO_T}no" >&6; }
  3399. fi
  3400. # -- Helper programs --
  3401. for ac_prog in gawk mawk nawk awk
  3402. do
  3403. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3404. set dummy $ac_prog; ac_word=$2
  3405. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3406. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3407. if test "${ac_cv_prog_AWK+set}" = set; then
  3408. echo $ECHO_N "(cached) $ECHO_C" >&6
  3409. else
  3410. if test -n "$AWK"; then
  3411. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3412. else
  3413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3414. for as_dir in $PATH
  3415. do
  3416. IFS=$as_save_IFS
  3417. test -z "$as_dir" && as_dir=.
  3418. for ac_exec_ext in '' $ac_executable_extensions; do
  3419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3420. ac_cv_prog_AWK="$ac_prog"
  3421. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3422. break 2
  3423. fi
  3424. done
  3425. done
  3426. IFS=$as_save_IFS
  3427. fi
  3428. fi
  3429. AWK=$ac_cv_prog_AWK
  3430. if test -n "$AWK"; then
  3431. { echo "$as_me:$LINENO: result: $AWK" >&5
  3432. echo "${ECHO_T}$AWK" >&6; }
  3433. else
  3434. { echo "$as_me:$LINENO: result: no" >&5
  3435. echo "${ECHO_T}no" >&6; }
  3436. fi
  3437. test -n "$AWK" && break
  3438. done
  3439. # Find a good install program. We prefer a C program (faster),
  3440. # so one script is as good as another. But avoid the broken or
  3441. # incompatible versions:
  3442. # SysV /etc/install, /usr/sbin/install
  3443. # SunOS /usr/etc/install
  3444. # IRIX /sbin/install
  3445. # AIX /bin/install
  3446. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3447. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3448. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3449. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3450. # OS/2's system install, which has a completely different semantic
  3451. # ./install, which can be erroneously created by make from ./install.sh.
  3452. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3453. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3454. if test -z "$INSTALL"; then
  3455. if test "${ac_cv_path_install+set}" = set; then
  3456. echo $ECHO_N "(cached) $ECHO_C" >&6
  3457. else
  3458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3459. for as_dir in $PATH
  3460. do
  3461. IFS=$as_save_IFS
  3462. test -z "$as_dir" && as_dir=.
  3463. # Account for people who put trailing slashes in PATH elements.
  3464. case $as_dir/ in
  3465. ./ | .// | /cC/* | \
  3466. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3467. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3468. /usr/ucb/* ) ;;
  3469. *)
  3470. # OSF1 and SCO ODT 3.0 have their own names for install.
  3471. # Don't use installbsd from OSF since it installs stuff as root
  3472. # by default.
  3473. for ac_prog in ginstall scoinst install; do
  3474. for ac_exec_ext in '' $ac_executable_extensions; do
  3475. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3476. if test $ac_prog = install &&
  3477. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3478. # AIX install. It has an incompatible calling convention.
  3479. :
  3480. elif test $ac_prog = install &&
  3481. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3482. # program-specific install script used by HP pwplus--don't use.
  3483. :
  3484. else
  3485. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3486. break 3
  3487. fi
  3488. fi
  3489. done
  3490. done
  3491. ;;
  3492. esac
  3493. done
  3494. IFS=$as_save_IFS
  3495. fi
  3496. if test "${ac_cv_path_install+set}" = set; then
  3497. INSTALL=$ac_cv_path_install
  3498. else
  3499. # As a last resort, use the slow shell script. Don't cache a
  3500. # value for INSTALL within a source directory, because that will
  3501. # break other packages using the cache if that directory is
  3502. # removed, or if the value is a relative name.
  3503. INSTALL=$ac_install_sh
  3504. fi
  3505. fi
  3506. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3507. echo "${ECHO_T}$INSTALL" >&6; }
  3508. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3509. # It thinks the first close brace ends the variable substitution.
  3510. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3511. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3512. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3513. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3514. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3515. LN_S=$as_ln_s
  3516. if test "$LN_S" = "ln -s"; then
  3517. { echo "$as_me:$LINENO: result: yes" >&5
  3518. echo "${ECHO_T}yes" >&6; }
  3519. else
  3520. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3521. echo "${ECHO_T}no, using $LN_S" >&6; }
  3522. fi
  3523. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3524. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  3525. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3526. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3527. echo $ECHO_N "(cached) $ECHO_C" >&6
  3528. else
  3529. cat >conftest.make <<\_ACEOF
  3530. SHELL = /bin/sh
  3531. all:
  3532. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3533. _ACEOF
  3534. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3535. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3536. *@@@%%%=?*=@@@%%%*)
  3537. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3538. *)
  3539. eval ac_cv_prog_make_${ac_make}_set=no;;
  3540. esac
  3541. rm -f conftest.make
  3542. fi
  3543. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3544. { echo "$as_me:$LINENO: result: yes" >&5
  3545. echo "${ECHO_T}yes" >&6; }
  3546. SET_MAKE=
  3547. else
  3548. { echo "$as_me:$LINENO: result: no" >&5
  3549. echo "${ECHO_T}no" >&6; }
  3550. SET_MAKE="MAKE=${MAKE-make}"
  3551. fi
  3552. if test -n "$ac_tool_prefix"; then
  3553. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3554. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3555. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3556. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3557. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3558. echo $ECHO_N "(cached) $ECHO_C" >&6
  3559. else
  3560. if test -n "$RANLIB"; then
  3561. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3562. else
  3563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3564. for as_dir in $PATH
  3565. do
  3566. IFS=$as_save_IFS
  3567. test -z "$as_dir" && as_dir=.
  3568. for ac_exec_ext in '' $ac_executable_extensions; do
  3569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3570. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3571. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3572. break 2
  3573. fi
  3574. done
  3575. done
  3576. IFS=$as_save_IFS
  3577. fi
  3578. fi
  3579. RANLIB=$ac_cv_prog_RANLIB
  3580. if test -n "$RANLIB"; then
  3581. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3582. echo "${ECHO_T}$RANLIB" >&6; }
  3583. else
  3584. { echo "$as_me:$LINENO: result: no" >&5
  3585. echo "${ECHO_T}no" >&6; }
  3586. fi
  3587. fi
  3588. if test -z "$ac_cv_prog_RANLIB"; then
  3589. ac_ct_RANLIB=$RANLIB
  3590. # Extract the first word of "ranlib", so it can be a program name with args.
  3591. set dummy ranlib; ac_word=$2
  3592. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3593. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3594. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3595. echo $ECHO_N "(cached) $ECHO_C" >&6
  3596. else
  3597. if test -n "$ac_ct_RANLIB"; then
  3598. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3599. else
  3600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3601. for as_dir in $PATH
  3602. do
  3603. IFS=$as_save_IFS
  3604. test -z "$as_dir" && as_dir=.
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3607. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3608. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3609. break 2
  3610. fi
  3611. done
  3612. done
  3613. IFS=$as_save_IFS
  3614. fi
  3615. fi
  3616. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3617. if test -n "$ac_ct_RANLIB"; then
  3618. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3619. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3620. else
  3621. { echo "$as_me:$LINENO: result: no" >&5
  3622. echo "${ECHO_T}no" >&6; }
  3623. fi
  3624. if test "x$ac_ct_RANLIB" = x; then
  3625. RANLIB=":"
  3626. else
  3627. case $cross_compiling:$ac_tool_warned in
  3628. yes:)
  3629. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3630. whose name does not start with the host triplet. If you think this
  3631. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3632. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3633. whose name does not start with the host triplet. If you think this
  3634. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3635. ac_tool_warned=yes ;;
  3636. esac
  3637. RANLIB=$ac_ct_RANLIB
  3638. fi
  3639. else
  3640. RANLIB="$ac_cv_prog_RANLIB"
  3641. fi
  3642. # -- Compiler Features --
  3643. ac_ext=c
  3644. ac_cpp='$CPP $CPPFLAGS'
  3645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3648. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3649. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3650. # On Suns, sometimes $CPP names a directory.
  3651. if test -n "$CPP" && test -d "$CPP"; then
  3652. CPP=
  3653. fi
  3654. if test -z "$CPP"; then
  3655. if test "${ac_cv_prog_CPP+set}" = set; then
  3656. echo $ECHO_N "(cached) $ECHO_C" >&6
  3657. else
  3658. # Double quotes because CPP needs to be expanded
  3659. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3660. do
  3661. ac_preproc_ok=false
  3662. for ac_c_preproc_warn_flag in '' yes
  3663. do
  3664. # Use a header file that comes with gcc, so configuring glibc
  3665. # with a fresh cross-compiler works.
  3666. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3667. # <limits.h> exists even on freestanding compilers.
  3668. # On the NeXT, cc -E runs the code through the compiler's parser,
  3669. # not just through cpp. "Syntax error" is here to catch this case.
  3670. cat >conftest.$ac_ext <<_ACEOF
  3671. /* confdefs.h. */
  3672. _ACEOF
  3673. cat confdefs.h >>conftest.$ac_ext
  3674. cat >>conftest.$ac_ext <<_ACEOF
  3675. /* end confdefs.h. */
  3676. #ifdef __STDC__
  3677. # include <limits.h>
  3678. #else
  3679. # include <assert.h>
  3680. #endif
  3681. Syntax error
  3682. _ACEOF
  3683. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3684. case "(($ac_try" in
  3685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3686. *) ac_try_echo=$ac_try;;
  3687. esac
  3688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3689. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3690. ac_status=$?
  3691. grep -v '^ *+' conftest.er1 >conftest.err
  3692. rm -f conftest.er1
  3693. cat conftest.err >&5
  3694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3695. (exit $ac_status); } >/dev/null && {
  3696. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3697. test ! -s conftest.err
  3698. }; then
  3699. :
  3700. else
  3701. echo "$as_me: failed program was:" >&5
  3702. sed 's/^/| /' conftest.$ac_ext >&5
  3703. # Broken: fails on valid input.
  3704. continue
  3705. fi
  3706. rm -f conftest.err conftest.$ac_ext
  3707. # OK, works on sane cases. Now check whether nonexistent headers
  3708. # can be detected and how.
  3709. cat >conftest.$ac_ext <<_ACEOF
  3710. /* confdefs.h. */
  3711. _ACEOF
  3712. cat confdefs.h >>conftest.$ac_ext
  3713. cat >>conftest.$ac_ext <<_ACEOF
  3714. /* end confdefs.h. */
  3715. #include <ac_nonexistent.h>
  3716. _ACEOF
  3717. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3718. case "(($ac_try" in
  3719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3720. *) ac_try_echo=$ac_try;;
  3721. esac
  3722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3723. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3724. ac_status=$?
  3725. grep -v '^ *+' conftest.er1 >conftest.err
  3726. rm -f conftest.er1
  3727. cat conftest.err >&5
  3728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729. (exit $ac_status); } >/dev/null && {
  3730. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3731. test ! -s conftest.err
  3732. }; then
  3733. # Broken: success on invalid input.
  3734. continue
  3735. else
  3736. echo "$as_me: failed program was:" >&5
  3737. sed 's/^/| /' conftest.$ac_ext >&5
  3738. # Passes both tests.
  3739. ac_preproc_ok=:
  3740. break
  3741. fi
  3742. rm -f conftest.err conftest.$ac_ext
  3743. done
  3744. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3745. rm -f conftest.err conftest.$ac_ext
  3746. if $ac_preproc_ok; then
  3747. break
  3748. fi
  3749. done
  3750. ac_cv_prog_CPP=$CPP
  3751. fi
  3752. CPP=$ac_cv_prog_CPP
  3753. else
  3754. ac_cv_prog_CPP=$CPP
  3755. fi
  3756. { echo "$as_me:$LINENO: result: $CPP" >&5
  3757. echo "${ECHO_T}$CPP" >&6; }
  3758. ac_preproc_ok=false
  3759. for ac_c_preproc_warn_flag in '' yes
  3760. do
  3761. # Use a header file that comes with gcc, so configuring glibc
  3762. # with a fresh cross-compiler works.
  3763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3764. # <limits.h> exists even on freestanding compilers.
  3765. # On the NeXT, cc -E runs the code through the compiler's parser,
  3766. # not just through cpp. "Syntax error" is here to catch this case.
  3767. cat >conftest.$ac_ext <<_ACEOF
  3768. /* confdefs.h. */
  3769. _ACEOF
  3770. cat confdefs.h >>conftest.$ac_ext
  3771. cat >>conftest.$ac_ext <<_ACEOF
  3772. /* end confdefs.h. */
  3773. #ifdef __STDC__
  3774. # include <limits.h>
  3775. #else
  3776. # include <assert.h>
  3777. #endif
  3778. Syntax error
  3779. _ACEOF
  3780. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3781. case "(($ac_try" in
  3782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3783. *) ac_try_echo=$ac_try;;
  3784. esac
  3785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3786. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3787. ac_status=$?
  3788. grep -v '^ *+' conftest.er1 >conftest.err
  3789. rm -f conftest.er1
  3790. cat conftest.err >&5
  3791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3792. (exit $ac_status); } >/dev/null && {
  3793. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3794. test ! -s conftest.err
  3795. }; then
  3796. :
  3797. else
  3798. echo "$as_me: failed program was:" >&5
  3799. sed 's/^/| /' conftest.$ac_ext >&5
  3800. # Broken: fails on valid input.
  3801. continue
  3802. fi
  3803. rm -f conftest.err conftest.$ac_ext
  3804. # OK, works on sane cases. Now check whether nonexistent headers
  3805. # can be detected and how.
  3806. cat >conftest.$ac_ext <<_ACEOF
  3807. /* confdefs.h. */
  3808. _ACEOF
  3809. cat confdefs.h >>conftest.$ac_ext
  3810. cat >>conftest.$ac_ext <<_ACEOF
  3811. /* end confdefs.h. */
  3812. #include <ac_nonexistent.h>
  3813. _ACEOF
  3814. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3815. case "(($ac_try" in
  3816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3817. *) ac_try_echo=$ac_try;;
  3818. esac
  3819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3820. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3821. ac_status=$?
  3822. grep -v '^ *+' conftest.er1 >conftest.err
  3823. rm -f conftest.er1
  3824. cat conftest.err >&5
  3825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3826. (exit $ac_status); } >/dev/null && {
  3827. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3828. test ! -s conftest.err
  3829. }; then
  3830. # Broken: success on invalid input.
  3831. continue
  3832. else
  3833. echo "$as_me: failed program was:" >&5
  3834. sed 's/^/| /' conftest.$ac_ext >&5
  3835. # Passes both tests.
  3836. ac_preproc_ok=:
  3837. break
  3838. fi
  3839. rm -f conftest.err conftest.$ac_ext
  3840. done
  3841. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3842. rm -f conftest.err conftest.$ac_ext
  3843. if $ac_preproc_ok; then
  3844. :
  3845. else
  3846. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3847. See \`config.log' for more details." >&5
  3848. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3849. See \`config.log' for more details." >&2;}
  3850. { (exit 1); exit 1; }; }
  3851. fi
  3852. ac_ext=c
  3853. ac_cpp='$CPP $CPPFLAGS'
  3854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3857. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3858. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3859. if test "${ac_cv_path_GREP+set}" = set; then
  3860. echo $ECHO_N "(cached) $ECHO_C" >&6
  3861. else
  3862. # Extract the first word of "grep ggrep" to use in msg output
  3863. if test -z "$GREP"; then
  3864. set dummy grep ggrep; ac_prog_name=$2
  3865. if test "${ac_cv_path_GREP+set}" = set; then
  3866. echo $ECHO_N "(cached) $ECHO_C" >&6
  3867. else
  3868. ac_path_GREP_found=false
  3869. # Loop through the user's path and test for each of PROGNAME-LIST
  3870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3871. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3872. do
  3873. IFS=$as_save_IFS
  3874. test -z "$as_dir" && as_dir=.
  3875. for ac_prog in grep ggrep; do
  3876. for ac_exec_ext in '' $ac_executable_extensions; do
  3877. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3878. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3879. # Check for GNU ac_path_GREP and select it if it is found.
  3880. # Check for GNU $ac_path_GREP
  3881. case `"$ac_path_GREP" --version 2>&1` in
  3882. *GNU*)
  3883. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3884. *)
  3885. ac_count=0
  3886. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3887. while :
  3888. do
  3889. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3890. mv "conftest.tmp" "conftest.in"
  3891. cp "conftest.in" "conftest.nl"
  3892. echo 'GREP' >> "conftest.nl"
  3893. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3894. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3895. ac_count=`expr $ac_count + 1`
  3896. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3897. # Best one so far, save it but keep looking for a better one
  3898. ac_cv_path_GREP="$ac_path_GREP"
  3899. ac_path_GREP_max=$ac_count
  3900. fi
  3901. # 10*(2^10) chars as input seems more than enough
  3902. test $ac_count -gt 10 && break
  3903. done
  3904. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3905. esac
  3906. $ac_path_GREP_found && break 3
  3907. done
  3908. done
  3909. done
  3910. IFS=$as_save_IFS
  3911. fi
  3912. GREP="$ac_cv_path_GREP"
  3913. if test -z "$GREP"; then
  3914. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3915. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3916. { (exit 1); exit 1; }; }
  3917. fi
  3918. else
  3919. ac_cv_path_GREP=$GREP
  3920. fi
  3921. fi
  3922. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3923. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3924. GREP="$ac_cv_path_GREP"
  3925. { echo "$as_me:$LINENO: checking for egrep" >&5
  3926. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3927. if test "${ac_cv_path_EGREP+set}" = set; then
  3928. echo $ECHO_N "(cached) $ECHO_C" >&6
  3929. else
  3930. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3931. then ac_cv_path_EGREP="$GREP -E"
  3932. else
  3933. # Extract the first word of "egrep" to use in msg output
  3934. if test -z "$EGREP"; then
  3935. set dummy egrep; ac_prog_name=$2
  3936. if test "${ac_cv_path_EGREP+set}" = set; then
  3937. echo $ECHO_N "(cached) $ECHO_C" >&6
  3938. else
  3939. ac_path_EGREP_found=false
  3940. # Loop through the user's path and test for each of PROGNAME-LIST
  3941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3942. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3943. do
  3944. IFS=$as_save_IFS
  3945. test -z "$as_dir" && as_dir=.
  3946. for ac_prog in egrep; do
  3947. for ac_exec_ext in '' $ac_executable_extensions; do
  3948. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3949. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3950. # Check for GNU ac_path_EGREP and select it if it is found.
  3951. # Check for GNU $ac_path_EGREP
  3952. case `"$ac_path_EGREP" --version 2>&1` in
  3953. *GNU*)
  3954. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3955. *)
  3956. ac_count=0
  3957. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3958. while :
  3959. do
  3960. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3961. mv "conftest.tmp" "conftest.in"
  3962. cp "conftest.in" "conftest.nl"
  3963. echo 'EGREP' >> "conftest.nl"
  3964. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3965. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3966. ac_count=`expr $ac_count + 1`
  3967. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3968. # Best one so far, save it but keep looking for a better one
  3969. ac_cv_path_EGREP="$ac_path_EGREP"
  3970. ac_path_EGREP_max=$ac_count
  3971. fi
  3972. # 10*(2^10) chars as input seems more than enough
  3973. test $ac_count -gt 10 && break
  3974. done
  3975. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3976. esac
  3977. $ac_path_EGREP_found && break 3
  3978. done
  3979. done
  3980. done
  3981. IFS=$as_save_IFS
  3982. fi
  3983. EGREP="$ac_cv_path_EGREP"
  3984. if test -z "$EGREP"; then
  3985. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3986. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3987. { (exit 1); exit 1; }; }
  3988. fi
  3989. else
  3990. ac_cv_path_EGREP=$EGREP
  3991. fi
  3992. fi
  3993. fi
  3994. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3995. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3996. EGREP="$ac_cv_path_EGREP"
  3997. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3998. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3999. if test "${ac_cv_header_stdc+set}" = set; then
  4000. echo $ECHO_N "(cached) $ECHO_C" >&6
  4001. else
  4002. cat >conftest.$ac_ext <<_ACEOF
  4003. /* confdefs.h. */
  4004. _ACEOF
  4005. cat confdefs.h >>conftest.$ac_ext
  4006. cat >>conftest.$ac_ext <<_ACEOF
  4007. /* end confdefs.h. */
  4008. #include <stdlib.h>
  4009. #include <stdarg.h>
  4010. #include <string.h>
  4011. #include <float.h>
  4012. int
  4013. main ()
  4014. {
  4015. ;
  4016. return 0;
  4017. }
  4018. _ACEOF
  4019. rm -f conftest.$ac_objext
  4020. if { (ac_try="$ac_compile"
  4021. case "(($ac_try" in
  4022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4023. *) ac_try_echo=$ac_try;;
  4024. esac
  4025. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4026. (eval "$ac_compile") 2>conftest.er1
  4027. ac_status=$?
  4028. grep -v '^ *+' conftest.er1 >conftest.err
  4029. rm -f conftest.er1
  4030. cat conftest.err >&5
  4031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032. (exit $ac_status); } && {
  4033. test -z "$ac_c_werror_flag" ||
  4034. test ! -s conftest.err
  4035. } && test -s conftest.$ac_objext; then
  4036. ac_cv_header_stdc=yes
  4037. else
  4038. echo "$as_me: failed program was:" >&5
  4039. sed 's/^/| /' conftest.$ac_ext >&5
  4040. ac_cv_header_stdc=no
  4041. fi
  4042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4043. if test $ac_cv_header_stdc = yes; then
  4044. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4045. cat >conftest.$ac_ext <<_ACEOF
  4046. /* confdefs.h. */
  4047. _ACEOF
  4048. cat confdefs.h >>conftest.$ac_ext
  4049. cat >>conftest.$ac_ext <<_ACEOF
  4050. /* end confdefs.h. */
  4051. #include <string.h>
  4052. _ACEOF
  4053. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4054. $EGREP "memchr" >/dev/null 2>&1; then
  4055. :
  4056. else
  4057. ac_cv_header_stdc=no
  4058. fi
  4059. rm -f conftest*
  4060. fi
  4061. if test $ac_cv_header_stdc = yes; then
  4062. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4063. cat >conftest.$ac_ext <<_ACEOF
  4064. /* confdefs.h. */
  4065. _ACEOF
  4066. cat confdefs.h >>conftest.$ac_ext
  4067. cat >>conftest.$ac_ext <<_ACEOF
  4068. /* end confdefs.h. */
  4069. #include <stdlib.h>
  4070. _ACEOF
  4071. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4072. $EGREP "free" >/dev/null 2>&1; then
  4073. :
  4074. else
  4075. ac_cv_header_stdc=no
  4076. fi
  4077. rm -f conftest*
  4078. fi
  4079. if test $ac_cv_header_stdc = yes; then
  4080. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4081. if test "$cross_compiling" = yes; then
  4082. :
  4083. else
  4084. cat >conftest.$ac_ext <<_ACEOF
  4085. /* confdefs.h. */
  4086. _ACEOF
  4087. cat confdefs.h >>conftest.$ac_ext
  4088. cat >>conftest.$ac_ext <<_ACEOF
  4089. /* end confdefs.h. */
  4090. #include <ctype.h>
  4091. #include <stdlib.h>
  4092. #if ((' ' & 0x0FF) == 0x020)
  4093. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4094. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4095. #else
  4096. # define ISLOWER(c) \
  4097. (('a' <= (c) && (c) <= 'i') \
  4098. || ('j' <= (c) && (c) <= 'r') \
  4099. || ('s' <= (c) && (c) <= 'z'))
  4100. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4101. #endif
  4102. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4103. int
  4104. main ()
  4105. {
  4106. int i;
  4107. for (i = 0; i < 256; i++)
  4108. if (XOR (islower (i), ISLOWER (i))
  4109. || toupper (i) != TOUPPER (i))
  4110. return 2;
  4111. return 0;
  4112. }
  4113. _ACEOF
  4114. rm -f conftest$ac_exeext
  4115. if { (ac_try="$ac_link"
  4116. case "(($ac_try" in
  4117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4118. *) ac_try_echo=$ac_try;;
  4119. esac
  4120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4121. (eval "$ac_link") 2>&5
  4122. ac_status=$?
  4123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4124. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4125. { (case "(($ac_try" in
  4126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4127. *) ac_try_echo=$ac_try;;
  4128. esac
  4129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4130. (eval "$ac_try") 2>&5
  4131. ac_status=$?
  4132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4133. (exit $ac_status); }; }; then
  4134. :
  4135. else
  4136. echo "$as_me: program exited with status $ac_status" >&5
  4137. echo "$as_me: failed program was:" >&5
  4138. sed 's/^/| /' conftest.$ac_ext >&5
  4139. ( exit $ac_status )
  4140. ac_cv_header_stdc=no
  4141. fi
  4142. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4143. fi
  4144. fi
  4145. fi
  4146. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4147. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4148. if test $ac_cv_header_stdc = yes; then
  4149. cat >>confdefs.h <<\_ACEOF
  4150. #define STDC_HEADERS 1
  4151. _ACEOF
  4152. fi
  4153. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4154. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4155. inttypes.h stdint.h unistd.h
  4156. do
  4157. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4158. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4159. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4160. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4161. echo $ECHO_N "(cached) $ECHO_C" >&6
  4162. else
  4163. cat >conftest.$ac_ext <<_ACEOF
  4164. /* confdefs.h. */
  4165. _ACEOF
  4166. cat confdefs.h >>conftest.$ac_ext
  4167. cat >>conftest.$ac_ext <<_ACEOF
  4168. /* end confdefs.h. */
  4169. $ac_includes_default
  4170. #include <$ac_header>
  4171. _ACEOF
  4172. rm -f conftest.$ac_objext
  4173. if { (ac_try="$ac_compile"
  4174. case "(($ac_try" in
  4175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4176. *) ac_try_echo=$ac_try;;
  4177. esac
  4178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4179. (eval "$ac_compile") 2>conftest.er1
  4180. ac_status=$?
  4181. grep -v '^ *+' conftest.er1 >conftest.err
  4182. rm -f conftest.er1
  4183. cat conftest.err >&5
  4184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); } && {
  4186. test -z "$ac_c_werror_flag" ||
  4187. test ! -s conftest.err
  4188. } && test -s conftest.$ac_objext; then
  4189. eval "$as_ac_Header=yes"
  4190. else
  4191. echo "$as_me: failed program was:" >&5
  4192. sed 's/^/| /' conftest.$ac_ext >&5
  4193. eval "$as_ac_Header=no"
  4194. fi
  4195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4196. fi
  4197. ac_res=`eval echo '${'$as_ac_Header'}'`
  4198. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4199. echo "${ECHO_T}$ac_res" >&6; }
  4200. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4201. cat >>confdefs.h <<_ACEOF
  4202. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4203. _ACEOF
  4204. fi
  4205. done
  4206. if test "$ac_cv_prog_cc_stdc" != no; then
  4207. U= ANSI2KNR=
  4208. else
  4209. U=_ ANSI2KNR=./ansi2knr
  4210. fi
  4211. # Ensure some checks needed by ansi2knr itself.
  4212. for ac_header in string.h
  4213. do
  4214. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4215. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4216. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4217. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4218. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4219. echo $ECHO_N "(cached) $ECHO_C" >&6
  4220. fi
  4221. ac_res=`eval echo '${'$as_ac_Header'}'`
  4222. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4223. echo "${ECHO_T}$ac_res" >&6; }
  4224. else
  4225. # Is the header compilable?
  4226. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4227. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4228. cat >conftest.$ac_ext <<_ACEOF
  4229. /* confdefs.h. */
  4230. _ACEOF
  4231. cat confdefs.h >>conftest.$ac_ext
  4232. cat >>conftest.$ac_ext <<_ACEOF
  4233. /* end confdefs.h. */
  4234. $ac_includes_default
  4235. #include <$ac_header>
  4236. _ACEOF
  4237. rm -f conftest.$ac_objext
  4238. if { (ac_try="$ac_compile"
  4239. case "(($ac_try" in
  4240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4241. *) ac_try_echo=$ac_try;;
  4242. esac
  4243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4244. (eval "$ac_compile") 2>conftest.er1
  4245. ac_status=$?
  4246. grep -v '^ *+' conftest.er1 >conftest.err
  4247. rm -f conftest.er1
  4248. cat conftest.err >&5
  4249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4250. (exit $ac_status); } && {
  4251. test -z "$ac_c_werror_flag" ||
  4252. test ! -s conftest.err
  4253. } && test -s conftest.$ac_objext; then
  4254. ac_header_compiler=yes
  4255. else
  4256. echo "$as_me: failed program was:" >&5
  4257. sed 's/^/| /' conftest.$ac_ext >&5
  4258. ac_header_compiler=no
  4259. fi
  4260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4261. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4262. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4263. # Is the header present?
  4264. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4265. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4266. cat >conftest.$ac_ext <<_ACEOF
  4267. /* confdefs.h. */
  4268. _ACEOF
  4269. cat confdefs.h >>conftest.$ac_ext
  4270. cat >>conftest.$ac_ext <<_ACEOF
  4271. /* end confdefs.h. */
  4272. #include <$ac_header>
  4273. _ACEOF
  4274. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4275. case "(($ac_try" in
  4276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4277. *) ac_try_echo=$ac_try;;
  4278. esac
  4279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4280. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4281. ac_status=$?
  4282. grep -v '^ *+' conftest.er1 >conftest.err
  4283. rm -f conftest.er1
  4284. cat conftest.err >&5
  4285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4286. (exit $ac_status); } >/dev/null && {
  4287. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4288. test ! -s conftest.err
  4289. }; then
  4290. ac_header_preproc=yes
  4291. else
  4292. echo "$as_me: failed program was:" >&5
  4293. sed 's/^/| /' conftest.$ac_ext >&5
  4294. ac_header_preproc=no
  4295. fi
  4296. rm -f conftest.err conftest.$ac_ext
  4297. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4298. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4299. # So? What about this header?
  4300. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4301. yes:no: )
  4302. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4303. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4304. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4305. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4306. ac_header_preproc=yes
  4307. ;;
  4308. no:yes:* )
  4309. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4310. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4311. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4312. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4313. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4314. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4315. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4316. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4317. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4318. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4319. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4320. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4321. ;;
  4322. esac
  4323. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4324. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4325. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4326. echo $ECHO_N "(cached) $ECHO_C" >&6
  4327. else
  4328. eval "$as_ac_Header=\$ac_header_preproc"
  4329. fi
  4330. ac_res=`eval echo '${'$as_ac_Header'}'`
  4331. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4332. echo "${ECHO_T}$ac_res" >&6; }
  4333. fi
  4334. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4335. cat >>confdefs.h <<_ACEOF
  4336. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4337. _ACEOF
  4338. fi
  4339. done
  4340. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4341. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  4342. if test "${ac_cv_c_const+set}" = set; then
  4343. echo $ECHO_N "(cached) $ECHO_C" >&6
  4344. else
  4345. cat >conftest.$ac_ext <<_ACEOF
  4346. /* confdefs.h. */
  4347. _ACEOF
  4348. cat confdefs.h >>conftest.$ac_ext
  4349. cat >>conftest.$ac_ext <<_ACEOF
  4350. /* end confdefs.h. */
  4351. int
  4352. main ()
  4353. {
  4354. /* FIXME: Include the comments suggested by Paul. */
  4355. #ifndef __cplusplus
  4356. /* Ultrix mips cc rejects this. */
  4357. typedef int charset[2];
  4358. const charset cs;
  4359. /* SunOS 4.1.1 cc rejects this. */
  4360. char const *const *pcpcc;
  4361. char **ppc;
  4362. /* NEC SVR4.0.2 mips cc rejects this. */
  4363. struct point {int x, y;};
  4364. static struct point const zero = {0,0};
  4365. /* AIX XL C 1.02.0.0 rejects this.
  4366. It does not let you subtract one const X* pointer from another in
  4367. an arm of an if-expression whose if-part is not a constant
  4368. expression */
  4369. const char *g = "string";
  4370. pcpcc = &g + (g ? g-g : 0);
  4371. /* HPUX 7.0 cc rejects these. */
  4372. ++pcpcc;
  4373. ppc = (char**) pcpcc;
  4374. pcpcc = (char const *const *) ppc;
  4375. { /* SCO 3.2v4 cc rejects this. */
  4376. char *t;
  4377. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4378. *t++ = 0;
  4379. if (s) return 0;
  4380. }
  4381. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4382. int x[] = {25, 17};
  4383. const int *foo = &x[0];
  4384. ++foo;
  4385. }
  4386. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4387. typedef const int *iptr;
  4388. iptr p = 0;
  4389. ++p;
  4390. }
  4391. { /* AIX XL C 1.02.0.0 rejects this saying
  4392. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4393. struct s { int j; const int *ap[3]; };
  4394. struct s *b; b->j = 5;
  4395. }
  4396. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4397. const int foo = 10;
  4398. if (!foo) return 0;
  4399. }
  4400. return !cs[0] && !zero.x;
  4401. #endif
  4402. ;
  4403. return 0;
  4404. }
  4405. _ACEOF
  4406. rm -f conftest.$ac_objext
  4407. if { (ac_try="$ac_compile"
  4408. case "(($ac_try" in
  4409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4410. *) ac_try_echo=$ac_try;;
  4411. esac
  4412. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4413. (eval "$ac_compile") 2>conftest.er1
  4414. ac_status=$?
  4415. grep -v '^ *+' conftest.er1 >conftest.err
  4416. rm -f conftest.er1
  4417. cat conftest.err >&5
  4418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4419. (exit $ac_status); } && {
  4420. test -z "$ac_c_werror_flag" ||
  4421. test ! -s conftest.err
  4422. } && test -s conftest.$ac_objext; then
  4423. ac_cv_c_const=yes
  4424. else
  4425. echo "$as_me: failed program was:" >&5
  4426. sed 's/^/| /' conftest.$ac_ext >&5
  4427. ac_cv_c_const=no
  4428. fi
  4429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4430. fi
  4431. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4432. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  4433. if test $ac_cv_c_const = no; then
  4434. cat >>confdefs.h <<\_ACEOF
  4435. #define const
  4436. _ACEOF
  4437. fi
  4438. { echo "$as_me:$LINENO: checking for inline" >&5
  4439. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  4440. if test "${ac_cv_c_inline+set}" = set; then
  4441. echo $ECHO_N "(cached) $ECHO_C" >&6
  4442. else
  4443. ac_cv_c_inline=no
  4444. for ac_kw in inline __inline__ __inline; do
  4445. cat >conftest.$ac_ext <<_ACEOF
  4446. /* confdefs.h. */
  4447. _ACEOF
  4448. cat confdefs.h >>conftest.$ac_ext
  4449. cat >>conftest.$ac_ext <<_ACEOF
  4450. /* end confdefs.h. */
  4451. #ifndef __cplusplus
  4452. typedef int foo_t;
  4453. static $ac_kw foo_t static_foo () {return 0; }
  4454. $ac_kw foo_t foo () {return 0; }
  4455. #endif
  4456. _ACEOF
  4457. rm -f conftest.$ac_objext
  4458. if { (ac_try="$ac_compile"
  4459. case "(($ac_try" in
  4460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4461. *) ac_try_echo=$ac_try;;
  4462. esac
  4463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4464. (eval "$ac_compile") 2>conftest.er1
  4465. ac_status=$?
  4466. grep -v '^ *+' conftest.er1 >conftest.err
  4467. rm -f conftest.er1
  4468. cat conftest.err >&5
  4469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4470. (exit $ac_status); } && {
  4471. test -z "$ac_c_werror_flag" ||
  4472. test ! -s conftest.err
  4473. } && test -s conftest.$ac_objext; then
  4474. ac_cv_c_inline=$ac_kw
  4475. else
  4476. echo "$as_me: failed program was:" >&5
  4477. sed 's/^/| /' conftest.$ac_ext >&5
  4478. fi
  4479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4480. test "$ac_cv_c_inline" != no && break
  4481. done
  4482. fi
  4483. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  4484. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  4485. case $ac_cv_c_inline in
  4486. inline | yes) ;;
  4487. *)
  4488. case $ac_cv_c_inline in
  4489. no) ac_val=;;
  4490. *) ac_val=$ac_cv_c_inline;;
  4491. esac
  4492. cat >>confdefs.h <<_ACEOF
  4493. #ifndef __cplusplus
  4494. #define inline $ac_val
  4495. #endif
  4496. _ACEOF
  4497. ;;
  4498. esac
  4499. # -- Hard coded system and compiler dependencies/features/options ... --
  4500. if test "$GCC" = "yes"; then
  4501. # We are using the GNU C compiler. Good!
  4502. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  4503. ssp_cc=yes
  4504. # we use -fstack-protector-all for the test to enfoce the use of the guard variable
  4505. { echo "$as_me:$LINENO: checking whether ${CC} accepts -fstack-protector" >&5
  4506. echo $ECHO_N "checking whether ${CC} accepts -fstack-protector... $ECHO_C" >&6; }
  4507. ssp_old_cflags="$CFLAGS"
  4508. CFLAGS="$CFLAGS -fstack-protector-all"
  4509. cat >conftest.$ac_ext <<_ACEOF
  4510. /* confdefs.h. */
  4511. _ACEOF
  4512. cat confdefs.h >>conftest.$ac_ext
  4513. cat >>conftest.$ac_ext <<_ACEOF
  4514. /* end confdefs.h. */
  4515. int
  4516. main ()
  4517. {
  4518. ;
  4519. return 0;
  4520. }
  4521. _ACEOF
  4522. rm -f conftest.$ac_objext conftest$ac_exeext
  4523. if { (ac_try="$ac_link"
  4524. case "(($ac_try" in
  4525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4526. *) ac_try_echo=$ac_try;;
  4527. esac
  4528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4529. (eval "$ac_link") 2>conftest.er1
  4530. ac_status=$?
  4531. grep -v '^ *+' conftest.er1 >conftest.err
  4532. rm -f conftest.er1
  4533. cat conftest.err >&5
  4534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4535. (exit $ac_status); } && {
  4536. test -z "$ac_c_werror_flag" ||
  4537. test ! -s conftest.err
  4538. } && test -s conftest$ac_exeext &&
  4539. $as_test_x conftest$ac_exeext; then
  4540. :
  4541. else
  4542. echo "$as_me: failed program was:" >&5
  4543. sed 's/^/| /' conftest.$ac_ext >&5
  4544. ssp_cc=no
  4545. fi
  4546. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4547. conftest$ac_exeext conftest.$ac_ext
  4548. echo $ssp_cc
  4549. CFLAGS="$ssp_old_cflags"
  4550. if test "X$ssp_cc" = "Xyes"; then
  4551. CFLAGS="$CFLAGS -fstack-protector"
  4552. cat >>confdefs.h <<\_ACEOF
  4553. #define ENABLE_SSP_CC 1
  4554. _ACEOF
  4555. fi
  4556. fi
  4557. case "$target_os" in
  4558. hpux*)
  4559. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  4560. # (tested with HP/UX 11.11)
  4561. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  4562. ;;
  4563. esac
  4564. # Add additional CFLAGS, eventually specified on the command line:
  4565. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  4566. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
  4567. # -- Headers --
  4568. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4569. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4570. if test "${ac_cv_header_stdc+set}" = set; then
  4571. echo $ECHO_N "(cached) $ECHO_C" >&6
  4572. else
  4573. cat >conftest.$ac_ext <<_ACEOF
  4574. /* confdefs.h. */
  4575. _ACEOF
  4576. cat confdefs.h >>conftest.$ac_ext
  4577. cat >>conftest.$ac_ext <<_ACEOF
  4578. /* end confdefs.h. */
  4579. #include <stdlib.h>
  4580. #include <stdarg.h>
  4581. #include <string.h>
  4582. #include <float.h>
  4583. int
  4584. main ()
  4585. {
  4586. ;
  4587. return 0;
  4588. }
  4589. _ACEOF
  4590. rm -f conftest.$ac_objext
  4591. if { (ac_try="$ac_compile"
  4592. case "(($ac_try" in
  4593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4594. *) ac_try_echo=$ac_try;;
  4595. esac
  4596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4597. (eval "$ac_compile") 2>conftest.er1
  4598. ac_status=$?
  4599. grep -v '^ *+' conftest.er1 >conftest.err
  4600. rm -f conftest.er1
  4601. cat conftest.err >&5
  4602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4603. (exit $ac_status); } && {
  4604. test -z "$ac_c_werror_flag" ||
  4605. test ! -s conftest.err
  4606. } && test -s conftest.$ac_objext; then
  4607. ac_cv_header_stdc=yes
  4608. else
  4609. echo "$as_me: failed program was:" >&5
  4610. sed 's/^/| /' conftest.$ac_ext >&5
  4611. ac_cv_header_stdc=no
  4612. fi
  4613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4614. if test $ac_cv_header_stdc = yes; then
  4615. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4616. cat >conftest.$ac_ext <<_ACEOF
  4617. /* confdefs.h. */
  4618. _ACEOF
  4619. cat confdefs.h >>conftest.$ac_ext
  4620. cat >>conftest.$ac_ext <<_ACEOF
  4621. /* end confdefs.h. */
  4622. #include <string.h>
  4623. _ACEOF
  4624. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4625. $EGREP "memchr" >/dev/null 2>&1; then
  4626. :
  4627. else
  4628. ac_cv_header_stdc=no
  4629. fi
  4630. rm -f conftest*
  4631. fi
  4632. if test $ac_cv_header_stdc = yes; then
  4633. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4634. cat >conftest.$ac_ext <<_ACEOF
  4635. /* confdefs.h. */
  4636. _ACEOF
  4637. cat confdefs.h >>conftest.$ac_ext
  4638. cat >>conftest.$ac_ext <<_ACEOF
  4639. /* end confdefs.h. */
  4640. #include <stdlib.h>
  4641. _ACEOF
  4642. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4643. $EGREP "free" >/dev/null 2>&1; then
  4644. :
  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 >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. #include <ctype.h>
  4662. #include <stdlib.h>
  4663. #if ((' ' & 0x0FF) == 0x020)
  4664. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4665. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4666. #else
  4667. # define ISLOWER(c) \
  4668. (('a' <= (c) && (c) <= 'i') \
  4669. || ('j' <= (c) && (c) <= 'r') \
  4670. || ('s' <= (c) && (c) <= 'z'))
  4671. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4672. #endif
  4673. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4674. int
  4675. main ()
  4676. {
  4677. int i;
  4678. for (i = 0; i < 256; i++)
  4679. if (XOR (islower (i), ISLOWER (i))
  4680. || toupper (i) != TOUPPER (i))
  4681. return 2;
  4682. return 0;
  4683. }
  4684. _ACEOF
  4685. rm -f conftest$ac_exeext
  4686. if { (ac_try="$ac_link"
  4687. case "(($ac_try" in
  4688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4689. *) ac_try_echo=$ac_try;;
  4690. esac
  4691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4692. (eval "$ac_link") 2>&5
  4693. ac_status=$?
  4694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4695. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4696. { (case "(($ac_try" in
  4697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4698. *) ac_try_echo=$ac_try;;
  4699. esac
  4700. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4701. (eval "$ac_try") 2>&5
  4702. ac_status=$?
  4703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); }; }; then
  4705. :
  4706. else
  4707. echo "$as_me: program exited with status $ac_status" >&5
  4708. echo "$as_me: failed program was:" >&5
  4709. sed 's/^/| /' conftest.$ac_ext >&5
  4710. ( exit $ac_status )
  4711. ac_cv_header_stdc=no
  4712. fi
  4713. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4714. fi
  4715. fi
  4716. fi
  4717. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4718. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4719. if test $ac_cv_header_stdc = yes; then
  4720. cat >>confdefs.h <<\_ACEOF
  4721. #define STDC_HEADERS 1
  4722. _ACEOF
  4723. fi
  4724. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4725. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  4726. if test "${ac_cv_header_time+set}" = set; then
  4727. echo $ECHO_N "(cached) $ECHO_C" >&6
  4728. else
  4729. cat >conftest.$ac_ext <<_ACEOF
  4730. /* confdefs.h. */
  4731. _ACEOF
  4732. cat confdefs.h >>conftest.$ac_ext
  4733. cat >>conftest.$ac_ext <<_ACEOF
  4734. /* end confdefs.h. */
  4735. #include <sys/types.h>
  4736. #include <sys/time.h>
  4737. #include <time.h>
  4738. int
  4739. main ()
  4740. {
  4741. if ((struct tm *) 0)
  4742. return 0;
  4743. ;
  4744. return 0;
  4745. }
  4746. _ACEOF
  4747. rm -f conftest.$ac_objext
  4748. if { (ac_try="$ac_compile"
  4749. case "(($ac_try" in
  4750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4751. *) ac_try_echo=$ac_try;;
  4752. esac
  4753. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4754. (eval "$ac_compile") 2>conftest.er1
  4755. ac_status=$?
  4756. grep -v '^ *+' conftest.er1 >conftest.err
  4757. rm -f conftest.er1
  4758. cat conftest.err >&5
  4759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4760. (exit $ac_status); } && {
  4761. test -z "$ac_c_werror_flag" ||
  4762. test ! -s conftest.err
  4763. } && test -s conftest.$ac_objext; then
  4764. ac_cv_header_time=yes
  4765. else
  4766. echo "$as_me: failed program was:" >&5
  4767. sed 's/^/| /' conftest.$ac_ext >&5
  4768. ac_cv_header_time=no
  4769. fi
  4770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4771. fi
  4772. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4773. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  4774. if test $ac_cv_header_time = yes; then
  4775. cat >>confdefs.h <<\_ACEOF
  4776. #define TIME_WITH_SYS_TIME 1
  4777. _ACEOF
  4778. fi
  4779. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4780. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  4781. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4782. echo $ECHO_N "(cached) $ECHO_C" >&6
  4783. else
  4784. cat >conftest.$ac_ext <<_ACEOF
  4785. /* confdefs.h. */
  4786. _ACEOF
  4787. cat confdefs.h >>conftest.$ac_ext
  4788. cat >>conftest.$ac_ext <<_ACEOF
  4789. /* end confdefs.h. */
  4790. #include <sys/types.h>
  4791. #include <sys/wait.h>
  4792. #ifndef WEXITSTATUS
  4793. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4794. #endif
  4795. #ifndef WIFEXITED
  4796. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4797. #endif
  4798. int
  4799. main ()
  4800. {
  4801. int s;
  4802. wait (&s);
  4803. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4804. ;
  4805. return 0;
  4806. }
  4807. _ACEOF
  4808. rm -f conftest.$ac_objext
  4809. if { (ac_try="$ac_compile"
  4810. case "(($ac_try" in
  4811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4812. *) ac_try_echo=$ac_try;;
  4813. esac
  4814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4815. (eval "$ac_compile") 2>conftest.er1
  4816. ac_status=$?
  4817. grep -v '^ *+' conftest.er1 >conftest.err
  4818. rm -f conftest.er1
  4819. cat conftest.err >&5
  4820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4821. (exit $ac_status); } && {
  4822. test -z "$ac_c_werror_flag" ||
  4823. test ! -s conftest.err
  4824. } && test -s conftest.$ac_objext; then
  4825. ac_cv_header_sys_wait_h=yes
  4826. else
  4827. echo "$as_me: failed program was:" >&5
  4828. sed 's/^/| /' conftest.$ac_ext >&5
  4829. ac_cv_header_sys_wait_h=no
  4830. fi
  4831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4832. fi
  4833. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4834. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  4835. if test $ac_cv_header_sys_wait_h = yes; then
  4836. cat >>confdefs.h <<\_ACEOF
  4837. #define HAVE_SYS_WAIT_H 1
  4838. _ACEOF
  4839. fi
  4840. for ac_header in \
  4841. ctype.h errno.h fcntl.h netdb.h netinet/in.h netinet/in_systm.h \
  4842. stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h \
  4843. do
  4844. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4845. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4846. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4847. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4848. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4849. echo $ECHO_N "(cached) $ECHO_C" >&6
  4850. fi
  4851. ac_res=`eval echo '${'$as_ac_Header'}'`
  4852. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4853. echo "${ECHO_T}$ac_res" >&6; }
  4854. else
  4855. # Is the header compilable?
  4856. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4857. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4858. cat >conftest.$ac_ext <<_ACEOF
  4859. /* confdefs.h. */
  4860. _ACEOF
  4861. cat confdefs.h >>conftest.$ac_ext
  4862. cat >>conftest.$ac_ext <<_ACEOF
  4863. /* end confdefs.h. */
  4864. $ac_includes_default
  4865. #include <$ac_header>
  4866. _ACEOF
  4867. rm -f conftest.$ac_objext
  4868. if { (ac_try="$ac_compile"
  4869. case "(($ac_try" in
  4870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4871. *) ac_try_echo=$ac_try;;
  4872. esac
  4873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4874. (eval "$ac_compile") 2>conftest.er1
  4875. ac_status=$?
  4876. grep -v '^ *+' conftest.er1 >conftest.err
  4877. rm -f conftest.er1
  4878. cat conftest.err >&5
  4879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4880. (exit $ac_status); } && {
  4881. test -z "$ac_c_werror_flag" ||
  4882. test ! -s conftest.err
  4883. } && test -s conftest.$ac_objext; then
  4884. ac_header_compiler=yes
  4885. else
  4886. echo "$as_me: failed program was:" >&5
  4887. sed 's/^/| /' conftest.$ac_ext >&5
  4888. ac_header_compiler=no
  4889. fi
  4890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4891. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4892. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4893. # Is the header present?
  4894. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4895. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4896. cat >conftest.$ac_ext <<_ACEOF
  4897. /* confdefs.h. */
  4898. _ACEOF
  4899. cat confdefs.h >>conftest.$ac_ext
  4900. cat >>conftest.$ac_ext <<_ACEOF
  4901. /* end confdefs.h. */
  4902. #include <$ac_header>
  4903. _ACEOF
  4904. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4905. case "(($ac_try" in
  4906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4907. *) ac_try_echo=$ac_try;;
  4908. esac
  4909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4910. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4911. ac_status=$?
  4912. grep -v '^ *+' conftest.er1 >conftest.err
  4913. rm -f conftest.er1
  4914. cat conftest.err >&5
  4915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4916. (exit $ac_status); } >/dev/null && {
  4917. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4918. test ! -s conftest.err
  4919. }; then
  4920. ac_header_preproc=yes
  4921. else
  4922. echo "$as_me: failed program was:" >&5
  4923. sed 's/^/| /' conftest.$ac_ext >&5
  4924. ac_header_preproc=no
  4925. fi
  4926. rm -f conftest.err conftest.$ac_ext
  4927. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4928. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4929. # So? What about this header?
  4930. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4931. yes:no: )
  4932. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4933. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4934. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4935. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4936. ac_header_preproc=yes
  4937. ;;
  4938. no:yes:* )
  4939. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4940. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4941. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4942. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4943. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4944. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4945. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4946. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4947. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4948. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4949. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4950. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4951. ;;
  4952. esac
  4953. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4954. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4955. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4956. echo $ECHO_N "(cached) $ECHO_C" >&6
  4957. else
  4958. eval "$as_ac_Header=\$ac_header_preproc"
  4959. fi
  4960. ac_res=`eval echo '${'$as_ac_Header'}'`
  4961. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4962. echo "${ECHO_T}$ac_res" >&6; }
  4963. fi
  4964. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4965. cat >>confdefs.h <<_ACEOF
  4966. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4967. _ACEOF
  4968. else
  4969. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  4970. echo "$as_me: error: required C header missing!" >&2;}
  4971. { (exit 1); exit 1; }; }
  4972. fi
  4973. done
  4974. for ac_header in \
  4975. arpa/inet.h ctype.h malloc.h netinet/ip.h stdbool.h stddef.h varargs.h \
  4976. do
  4977. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4978. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4979. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4980. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4981. echo $ECHO_N "(cached) $ECHO_C" >&6
  4982. else
  4983. cat >conftest.$ac_ext <<_ACEOF
  4984. /* confdefs.h. */
  4985. _ACEOF
  4986. cat confdefs.h >>conftest.$ac_ext
  4987. cat >>conftest.$ac_ext <<_ACEOF
  4988. /* end confdefs.h. */
  4989. #ifdef HAVE_SYS_TYPES_H
  4990. #include <sys/types.h>
  4991. #endif
  4992. #ifdef HAVE_SYS_SOCKET_H
  4993. #include <sys/socket.h>
  4994. #endif
  4995. #ifdef HAVE_NETINET_IN_H
  4996. #include <netinet/in.h>
  4997. #endif
  4998. #include <$ac_header>
  4999. _ACEOF
  5000. rm -f conftest.$ac_objext
  5001. if { (ac_try="$ac_compile"
  5002. case "(($ac_try" in
  5003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5004. *) ac_try_echo=$ac_try;;
  5005. esac
  5006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5007. (eval "$ac_compile") 2>conftest.er1
  5008. ac_status=$?
  5009. grep -v '^ *+' conftest.er1 >conftest.err
  5010. rm -f conftest.er1
  5011. cat conftest.err >&5
  5012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5013. (exit $ac_status); } && {
  5014. test -z "$ac_c_werror_flag" ||
  5015. test ! -s conftest.err
  5016. } && test -s conftest.$ac_objext; then
  5017. eval "$as_ac_Header=yes"
  5018. else
  5019. echo "$as_me: failed program was:" >&5
  5020. sed 's/^/| /' conftest.$ac_ext >&5
  5021. eval "$as_ac_Header=no"
  5022. fi
  5023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5024. fi
  5025. ac_res=`eval echo '${'$as_ac_Header'}'`
  5026. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5027. echo "${ECHO_T}$ac_res" >&6; }
  5028. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5029. cat >>confdefs.h <<_ACEOF
  5030. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5031. _ACEOF
  5032. fi
  5033. done
  5034. # -- Datatypes --
  5035. { echo "$as_me:$LINENO: checking whether socklen_t exists" >&5
  5036. echo $ECHO_N "checking whether socklen_t exists... $ECHO_C" >&6; }
  5037. cat >conftest.$ac_ext <<_ACEOF
  5038. /* confdefs.h. */
  5039. _ACEOF
  5040. cat confdefs.h >>conftest.$ac_ext
  5041. cat >>conftest.$ac_ext <<_ACEOF
  5042. /* end confdefs.h. */
  5043. #include <sys/types.h>
  5044. #include <sys/socket.h>
  5045. int
  5046. main ()
  5047. {
  5048. socklen_t a, b;
  5049. a = 2; b = 4; a += b;
  5050. ;
  5051. return 0;
  5052. }
  5053. _ACEOF
  5054. rm -f conftest.$ac_objext
  5055. if { (ac_try="$ac_compile"
  5056. case "(($ac_try" in
  5057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5058. *) ac_try_echo=$ac_try;;
  5059. esac
  5060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5061. (eval "$ac_compile") 2>conftest.er1
  5062. ac_status=$?
  5063. grep -v '^ *+' conftest.er1 >conftest.err
  5064. rm -f conftest.er1
  5065. cat conftest.err >&5
  5066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5067. (exit $ac_status); } && {
  5068. test -z "$ac_c_werror_flag" ||
  5069. test ! -s conftest.err
  5070. } && test -s conftest.$ac_objext; then
  5071. cat >>confdefs.h <<\_ACEOF
  5072. #define HAVE_socklen_t 1
  5073. _ACEOF
  5074. { echo "$as_me:$LINENO: result: yes" >&5
  5075. echo "${ECHO_T}yes" >&6; }
  5076. else
  5077. echo "$as_me: failed program was:" >&5
  5078. sed 's/^/| /' conftest.$ac_ext >&5
  5079. { echo "$as_me:$LINENO: result: no" >&5
  5080. echo "${ECHO_T}no" >&6; }
  5081. fi
  5082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5083. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  5084. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  5085. if test "${ac_cv_type_signal+set}" = set; then
  5086. echo $ECHO_N "(cached) $ECHO_C" >&6
  5087. else
  5088. cat >conftest.$ac_ext <<_ACEOF
  5089. /* confdefs.h. */
  5090. _ACEOF
  5091. cat confdefs.h >>conftest.$ac_ext
  5092. cat >>conftest.$ac_ext <<_ACEOF
  5093. /* end confdefs.h. */
  5094. #include <sys/types.h>
  5095. #include <signal.h>
  5096. int
  5097. main ()
  5098. {
  5099. return *(signal (0, 0)) (0) == 1;
  5100. ;
  5101. return 0;
  5102. }
  5103. _ACEOF
  5104. rm -f conftest.$ac_objext
  5105. if { (ac_try="$ac_compile"
  5106. case "(($ac_try" in
  5107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5108. *) ac_try_echo=$ac_try;;
  5109. esac
  5110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5111. (eval "$ac_compile") 2>conftest.er1
  5112. ac_status=$?
  5113. grep -v '^ *+' conftest.er1 >conftest.err
  5114. rm -f conftest.er1
  5115. cat conftest.err >&5
  5116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5117. (exit $ac_status); } && {
  5118. test -z "$ac_c_werror_flag" ||
  5119. test ! -s conftest.err
  5120. } && test -s conftest.$ac_objext; then
  5121. ac_cv_type_signal=int
  5122. else
  5123. echo "$as_me: failed program was:" >&5
  5124. sed 's/^/| /' conftest.$ac_ext >&5
  5125. ac_cv_type_signal=void
  5126. fi
  5127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5128. fi
  5129. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  5130. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  5131. cat >>confdefs.h <<_ACEOF
  5132. #define RETSIGTYPE $ac_cv_type_signal
  5133. _ACEOF
  5134. { echo "$as_me:$LINENO: checking for size_t" >&5
  5135. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  5136. if test "${ac_cv_type_size_t+set}" = set; then
  5137. echo $ECHO_N "(cached) $ECHO_C" >&6
  5138. else
  5139. cat >conftest.$ac_ext <<_ACEOF
  5140. /* confdefs.h. */
  5141. _ACEOF
  5142. cat confdefs.h >>conftest.$ac_ext
  5143. cat >>conftest.$ac_ext <<_ACEOF
  5144. /* end confdefs.h. */
  5145. $ac_includes_default
  5146. typedef size_t ac__type_new_;
  5147. int
  5148. main ()
  5149. {
  5150. if ((ac__type_new_ *) 0)
  5151. return 0;
  5152. if (sizeof (ac__type_new_))
  5153. return 0;
  5154. ;
  5155. return 0;
  5156. }
  5157. _ACEOF
  5158. rm -f conftest.$ac_objext
  5159. if { (ac_try="$ac_compile"
  5160. case "(($ac_try" in
  5161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5162. *) ac_try_echo=$ac_try;;
  5163. esac
  5164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5165. (eval "$ac_compile") 2>conftest.er1
  5166. ac_status=$?
  5167. grep -v '^ *+' conftest.er1 >conftest.err
  5168. rm -f conftest.er1
  5169. cat conftest.err >&5
  5170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5171. (exit $ac_status); } && {
  5172. test -z "$ac_c_werror_flag" ||
  5173. test ! -s conftest.err
  5174. } && test -s conftest.$ac_objext; then
  5175. ac_cv_type_size_t=yes
  5176. else
  5177. echo "$as_me: failed program was:" >&5
  5178. sed 's/^/| /' conftest.$ac_ext >&5
  5179. ac_cv_type_size_t=no
  5180. fi
  5181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5182. fi
  5183. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5184. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  5185. if test $ac_cv_type_size_t = yes; then
  5186. :
  5187. else
  5188. cat >>confdefs.h <<_ACEOF
  5189. #define size_t unsigned int
  5190. _ACEOF
  5191. fi
  5192. { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  5193. echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
  5194. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  5195. echo $ECHO_N "(cached) $ECHO_C" >&6
  5196. else
  5197. cat >conftest.$ac_ext <<_ACEOF
  5198. /* confdefs.h. */
  5199. _ACEOF
  5200. cat confdefs.h >>conftest.$ac_ext
  5201. cat >>conftest.$ac_ext <<_ACEOF
  5202. /* end confdefs.h. */
  5203. #include <arpa/inet.h>
  5204. int
  5205. main ()
  5206. {
  5207. static struct sockaddr_in ac_aggr;
  5208. if (ac_aggr.sin_len)
  5209. return 0;
  5210. ;
  5211. return 0;
  5212. }
  5213. _ACEOF
  5214. rm -f conftest.$ac_objext
  5215. if { (ac_try="$ac_compile"
  5216. case "(($ac_try" in
  5217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5218. *) ac_try_echo=$ac_try;;
  5219. esac
  5220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5221. (eval "$ac_compile") 2>conftest.er1
  5222. ac_status=$?
  5223. grep -v '^ *+' conftest.er1 >conftest.err
  5224. rm -f conftest.er1
  5225. cat conftest.err >&5
  5226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5227. (exit $ac_status); } && {
  5228. test -z "$ac_c_werror_flag" ||
  5229. test ! -s conftest.err
  5230. } && test -s conftest.$ac_objext; then
  5231. ac_cv_member_struct_sockaddr_in_sin_len=yes
  5232. else
  5233. echo "$as_me: failed program was:" >&5
  5234. sed 's/^/| /' conftest.$ac_ext >&5
  5235. cat >conftest.$ac_ext <<_ACEOF
  5236. /* confdefs.h. */
  5237. _ACEOF
  5238. cat confdefs.h >>conftest.$ac_ext
  5239. cat >>conftest.$ac_ext <<_ACEOF
  5240. /* end confdefs.h. */
  5241. #include <arpa/inet.h>
  5242. int
  5243. main ()
  5244. {
  5245. static struct sockaddr_in ac_aggr;
  5246. if (sizeof ac_aggr.sin_len)
  5247. return 0;
  5248. ;
  5249. return 0;
  5250. }
  5251. _ACEOF
  5252. rm -f conftest.$ac_objext
  5253. if { (ac_try="$ac_compile"
  5254. case "(($ac_try" in
  5255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5256. *) ac_try_echo=$ac_try;;
  5257. esac
  5258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5259. (eval "$ac_compile") 2>conftest.er1
  5260. ac_status=$?
  5261. grep -v '^ *+' conftest.er1 >conftest.err
  5262. rm -f conftest.er1
  5263. cat conftest.err >&5
  5264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5265. (exit $ac_status); } && {
  5266. test -z "$ac_c_werror_flag" ||
  5267. test ! -s conftest.err
  5268. } && test -s conftest.$ac_objext; then
  5269. ac_cv_member_struct_sockaddr_in_sin_len=yes
  5270. else
  5271. echo "$as_me: failed program was:" >&5
  5272. sed 's/^/| /' conftest.$ac_ext >&5
  5273. ac_cv_member_struct_sockaddr_in_sin_len=no
  5274. fi
  5275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5276. fi
  5277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5278. fi
  5279. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  5280. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  5281. if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
  5282. cat >>confdefs.h <<\_ACEOF
  5283. #define HAVE_sockaddr_in_len 1
  5284. _ACEOF
  5285. fi
  5286. # -- Libraries --
  5287. # A/UX needs this.
  5288. { echo "$as_me:$LINENO: checking for memmove in -lUTIL" >&5
  5289. echo $ECHO_N "checking for memmove in -lUTIL... $ECHO_C" >&6; }
  5290. if test "${ac_cv_lib_UTIL_memmove+set}" = set; then
  5291. echo $ECHO_N "(cached) $ECHO_C" >&6
  5292. else
  5293. ac_check_lib_save_LIBS=$LIBS
  5294. LIBS="-lUTIL $LIBS"
  5295. cat >conftest.$ac_ext <<_ACEOF
  5296. /* confdefs.h. */
  5297. _ACEOF
  5298. cat confdefs.h >>conftest.$ac_ext
  5299. cat >>conftest.$ac_ext <<_ACEOF
  5300. /* end confdefs.h. */
  5301. /* Override any GCC internal prototype to avoid an error.
  5302. Use char because int might match the return type of a GCC
  5303. builtin and then its argument prototype would still apply. */
  5304. #ifdef __cplusplus
  5305. extern "C"
  5306. #endif
  5307. char memmove ();
  5308. int
  5309. main ()
  5310. {
  5311. return memmove ();
  5312. ;
  5313. return 0;
  5314. }
  5315. _ACEOF
  5316. rm -f conftest.$ac_objext conftest$ac_exeext
  5317. if { (ac_try="$ac_link"
  5318. case "(($ac_try" in
  5319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5320. *) ac_try_echo=$ac_try;;
  5321. esac
  5322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5323. (eval "$ac_link") 2>conftest.er1
  5324. ac_status=$?
  5325. grep -v '^ *+' conftest.er1 >conftest.err
  5326. rm -f conftest.er1
  5327. cat conftest.err >&5
  5328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5329. (exit $ac_status); } && {
  5330. test -z "$ac_c_werror_flag" ||
  5331. test ! -s conftest.err
  5332. } && test -s conftest$ac_exeext &&
  5333. $as_test_x conftest$ac_exeext; then
  5334. ac_cv_lib_UTIL_memmove=yes
  5335. else
  5336. echo "$as_me: failed program was:" >&5
  5337. sed 's/^/| /' conftest.$ac_ext >&5
  5338. ac_cv_lib_UTIL_memmove=no
  5339. fi
  5340. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5341. conftest$ac_exeext conftest.$ac_ext
  5342. LIBS=$ac_check_lib_save_LIBS
  5343. fi
  5344. { echo "$as_me:$LINENO: result: $ac_cv_lib_UTIL_memmove" >&5
  5345. echo "${ECHO_T}$ac_cv_lib_UTIL_memmove" >&6; }
  5346. if test $ac_cv_lib_UTIL_memmove = yes; then
  5347. cat >>confdefs.h <<_ACEOF
  5348. #define HAVE_LIBUTIL 1
  5349. _ACEOF
  5350. LIBS="-lUTIL $LIBS"
  5351. fi
  5352. # needed on solaris. GNU libc also has a libnsl, but we do not need it.
  5353. { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
  5354. echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
  5355. if test "${ac_cv_search_gethostbyname+set}" = set; then
  5356. echo $ECHO_N "(cached) $ECHO_C" >&6
  5357. else
  5358. ac_func_search_save_LIBS=$LIBS
  5359. cat >conftest.$ac_ext <<_ACEOF
  5360. /* confdefs.h. */
  5361. _ACEOF
  5362. cat confdefs.h >>conftest.$ac_ext
  5363. cat >>conftest.$ac_ext <<_ACEOF
  5364. /* end confdefs.h. */
  5365. /* Override any GCC internal prototype to avoid an error.
  5366. Use char because int might match the return type of a GCC
  5367. builtin and then its argument prototype would still apply. */
  5368. #ifdef __cplusplus
  5369. extern "C"
  5370. #endif
  5371. char gethostbyname ();
  5372. int
  5373. main ()
  5374. {
  5375. return gethostbyname ();
  5376. ;
  5377. return 0;
  5378. }
  5379. _ACEOF
  5380. for ac_lib in '' nsl; do
  5381. if test -z "$ac_lib"; then
  5382. ac_res="none required"
  5383. else
  5384. ac_res=-l$ac_lib
  5385. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5386. fi
  5387. rm -f conftest.$ac_objext conftest$ac_exeext
  5388. if { (ac_try="$ac_link"
  5389. case "(($ac_try" in
  5390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5391. *) ac_try_echo=$ac_try;;
  5392. esac
  5393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5394. (eval "$ac_link") 2>conftest.er1
  5395. ac_status=$?
  5396. grep -v '^ *+' conftest.er1 >conftest.err
  5397. rm -f conftest.er1
  5398. cat conftest.err >&5
  5399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5400. (exit $ac_status); } && {
  5401. test -z "$ac_c_werror_flag" ||
  5402. test ! -s conftest.err
  5403. } && test -s conftest$ac_exeext &&
  5404. $as_test_x conftest$ac_exeext; then
  5405. ac_cv_search_gethostbyname=$ac_res
  5406. else
  5407. echo "$as_me: failed program was:" >&5
  5408. sed 's/^/| /' conftest.$ac_ext >&5
  5409. fi
  5410. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5411. conftest$ac_exeext
  5412. if test "${ac_cv_search_gethostbyname+set}" = set; then
  5413. break
  5414. fi
  5415. done
  5416. if test "${ac_cv_search_gethostbyname+set}" = set; then
  5417. :
  5418. else
  5419. ac_cv_search_gethostbyname=no
  5420. fi
  5421. rm conftest.$ac_ext
  5422. LIBS=$ac_func_search_save_LIBS
  5423. fi
  5424. { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
  5425. echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
  5426. ac_res=$ac_cv_search_gethostbyname
  5427. if test "$ac_res" != no; then
  5428. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5429. fi
  5430. { echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
  5431. echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6; }
  5432. if test "${ac_cv_lib_socket_bind+set}" = set; then
  5433. echo $ECHO_N "(cached) $ECHO_C" >&6
  5434. else
  5435. ac_check_lib_save_LIBS=$LIBS
  5436. LIBS="-lsocket $LIBS"
  5437. cat >conftest.$ac_ext <<_ACEOF
  5438. /* confdefs.h. */
  5439. _ACEOF
  5440. cat confdefs.h >>conftest.$ac_ext
  5441. cat >>conftest.$ac_ext <<_ACEOF
  5442. /* end confdefs.h. */
  5443. /* Override any GCC internal prototype to avoid an error.
  5444. Use char because int might match the return type of a GCC
  5445. builtin and then its argument prototype would still apply. */
  5446. #ifdef __cplusplus
  5447. extern "C"
  5448. #endif
  5449. char bind ();
  5450. int
  5451. main ()
  5452. {
  5453. return bind ();
  5454. ;
  5455. return 0;
  5456. }
  5457. _ACEOF
  5458. rm -f conftest.$ac_objext conftest$ac_exeext
  5459. if { (ac_try="$ac_link"
  5460. case "(($ac_try" in
  5461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5462. *) ac_try_echo=$ac_try;;
  5463. esac
  5464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5465. (eval "$ac_link") 2>conftest.er1
  5466. ac_status=$?
  5467. grep -v '^ *+' conftest.er1 >conftest.err
  5468. rm -f conftest.er1
  5469. cat conftest.err >&5
  5470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5471. (exit $ac_status); } && {
  5472. test -z "$ac_c_werror_flag" ||
  5473. test ! -s conftest.err
  5474. } && test -s conftest$ac_exeext &&
  5475. $as_test_x conftest$ac_exeext; then
  5476. ac_cv_lib_socket_bind=yes
  5477. else
  5478. echo "$as_me: failed program was:" >&5
  5479. sed 's/^/| /' conftest.$ac_ext >&5
  5480. ac_cv_lib_socket_bind=no
  5481. fi
  5482. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5483. conftest$ac_exeext conftest.$ac_ext
  5484. LIBS=$ac_check_lib_save_LIBS
  5485. fi
  5486. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
  5487. echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6; }
  5488. if test $ac_cv_lib_socket_bind = yes; then
  5489. cat >>confdefs.h <<_ACEOF
  5490. #define HAVE_LIBSOCKET 1
  5491. _ACEOF
  5492. LIBS="-lsocket $LIBS"
  5493. fi
  5494. # -- Functions --
  5495. { echo "$as_me:$LINENO: checking for pid_t" >&5
  5496. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  5497. if test "${ac_cv_type_pid_t+set}" = set; then
  5498. echo $ECHO_N "(cached) $ECHO_C" >&6
  5499. else
  5500. cat >conftest.$ac_ext <<_ACEOF
  5501. /* confdefs.h. */
  5502. _ACEOF
  5503. cat confdefs.h >>conftest.$ac_ext
  5504. cat >>conftest.$ac_ext <<_ACEOF
  5505. /* end confdefs.h. */
  5506. $ac_includes_default
  5507. typedef pid_t ac__type_new_;
  5508. int
  5509. main ()
  5510. {
  5511. if ((ac__type_new_ *) 0)
  5512. return 0;
  5513. if (sizeof (ac__type_new_))
  5514. return 0;
  5515. ;
  5516. return 0;
  5517. }
  5518. _ACEOF
  5519. rm -f conftest.$ac_objext
  5520. if { (ac_try="$ac_compile"
  5521. case "(($ac_try" in
  5522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5523. *) ac_try_echo=$ac_try;;
  5524. esac
  5525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5526. (eval "$ac_compile") 2>conftest.er1
  5527. ac_status=$?
  5528. grep -v '^ *+' conftest.er1 >conftest.err
  5529. rm -f conftest.er1
  5530. cat conftest.err >&5
  5531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5532. (exit $ac_status); } && {
  5533. test -z "$ac_c_werror_flag" ||
  5534. test ! -s conftest.err
  5535. } && test -s conftest.$ac_objext; then
  5536. ac_cv_type_pid_t=yes
  5537. else
  5538. echo "$as_me: failed program was:" >&5
  5539. sed 's/^/| /' conftest.$ac_ext >&5
  5540. ac_cv_type_pid_t=no
  5541. fi
  5542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5543. fi
  5544. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5545. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  5546. if test $ac_cv_type_pid_t = yes; then
  5547. :
  5548. else
  5549. cat >>confdefs.h <<_ACEOF
  5550. #define pid_t int
  5551. _ACEOF
  5552. fi
  5553. for ac_header in vfork.h
  5554. do
  5555. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5556. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5557. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5558. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5559. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5560. echo $ECHO_N "(cached) $ECHO_C" >&6
  5561. fi
  5562. ac_res=`eval echo '${'$as_ac_Header'}'`
  5563. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5564. echo "${ECHO_T}$ac_res" >&6; }
  5565. else
  5566. # Is the header compilable?
  5567. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5568. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5569. cat >conftest.$ac_ext <<_ACEOF
  5570. /* confdefs.h. */
  5571. _ACEOF
  5572. cat confdefs.h >>conftest.$ac_ext
  5573. cat >>conftest.$ac_ext <<_ACEOF
  5574. /* end confdefs.h. */
  5575. $ac_includes_default
  5576. #include <$ac_header>
  5577. _ACEOF
  5578. rm -f conftest.$ac_objext
  5579. if { (ac_try="$ac_compile"
  5580. case "(($ac_try" in
  5581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5582. *) ac_try_echo=$ac_try;;
  5583. esac
  5584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5585. (eval "$ac_compile") 2>conftest.er1
  5586. ac_status=$?
  5587. grep -v '^ *+' conftest.er1 >conftest.err
  5588. rm -f conftest.er1
  5589. cat conftest.err >&5
  5590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5591. (exit $ac_status); } && {
  5592. test -z "$ac_c_werror_flag" ||
  5593. test ! -s conftest.err
  5594. } && test -s conftest.$ac_objext; then
  5595. ac_header_compiler=yes
  5596. else
  5597. echo "$as_me: failed program was:" >&5
  5598. sed 's/^/| /' conftest.$ac_ext >&5
  5599. ac_header_compiler=no
  5600. fi
  5601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5602. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5603. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5604. # Is the header present?
  5605. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5606. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5607. cat >conftest.$ac_ext <<_ACEOF
  5608. /* confdefs.h. */
  5609. _ACEOF
  5610. cat confdefs.h >>conftest.$ac_ext
  5611. cat >>conftest.$ac_ext <<_ACEOF
  5612. /* end confdefs.h. */
  5613. #include <$ac_header>
  5614. _ACEOF
  5615. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5616. case "(($ac_try" in
  5617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5618. *) ac_try_echo=$ac_try;;
  5619. esac
  5620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5621. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5622. ac_status=$?
  5623. grep -v '^ *+' conftest.er1 >conftest.err
  5624. rm -f conftest.er1
  5625. cat conftest.err >&5
  5626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5627. (exit $ac_status); } >/dev/null && {
  5628. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5629. test ! -s conftest.err
  5630. }; then
  5631. ac_header_preproc=yes
  5632. else
  5633. echo "$as_me: failed program was:" >&5
  5634. sed 's/^/| /' conftest.$ac_ext >&5
  5635. ac_header_preproc=no
  5636. fi
  5637. rm -f conftest.err conftest.$ac_ext
  5638. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5639. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5640. # So? What about this header?
  5641. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5642. yes:no: )
  5643. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5644. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5645. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5646. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5647. ac_header_preproc=yes
  5648. ;;
  5649. no:yes:* )
  5650. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5651. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5652. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5653. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5654. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5655. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5656. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5657. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5658. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5659. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5660. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5661. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5662. ;;
  5663. esac
  5664. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5665. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5666. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5667. echo $ECHO_N "(cached) $ECHO_C" >&6
  5668. else
  5669. eval "$as_ac_Header=\$ac_header_preproc"
  5670. fi
  5671. ac_res=`eval echo '${'$as_ac_Header'}'`
  5672. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5673. echo "${ECHO_T}$ac_res" >&6; }
  5674. fi
  5675. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5676. cat >>confdefs.h <<_ACEOF
  5677. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5678. _ACEOF
  5679. fi
  5680. done
  5681. for ac_func in fork vfork
  5682. do
  5683. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5684. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5685. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5686. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5687. echo $ECHO_N "(cached) $ECHO_C" >&6
  5688. else
  5689. cat >conftest.$ac_ext <<_ACEOF
  5690. /* confdefs.h. */
  5691. _ACEOF
  5692. cat confdefs.h >>conftest.$ac_ext
  5693. cat >>conftest.$ac_ext <<_ACEOF
  5694. /* end confdefs.h. */
  5695. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5696. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5697. #define $ac_func innocuous_$ac_func
  5698. /* System header to define __stub macros and hopefully few prototypes,
  5699. which can conflict with char $ac_func (); below.
  5700. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5701. <limits.h> exists even on freestanding compilers. */
  5702. #ifdef __STDC__
  5703. # include <limits.h>
  5704. #else
  5705. # include <assert.h>
  5706. #endif
  5707. #undef $ac_func
  5708. /* Override any GCC internal prototype to avoid an error.
  5709. Use char because int might match the return type of a GCC
  5710. builtin and then its argument prototype would still apply. */
  5711. #ifdef __cplusplus
  5712. extern "C"
  5713. #endif
  5714. char $ac_func ();
  5715. /* The GNU C library defines this for functions which it implements
  5716. to always fail with ENOSYS. Some functions are actually named
  5717. something starting with __ and the normal name is an alias. */
  5718. #if defined __stub_$ac_func || defined __stub___$ac_func
  5719. choke me
  5720. #endif
  5721. int
  5722. main ()
  5723. {
  5724. return $ac_func ();
  5725. ;
  5726. return 0;
  5727. }
  5728. _ACEOF
  5729. rm -f conftest.$ac_objext conftest$ac_exeext
  5730. if { (ac_try="$ac_link"
  5731. case "(($ac_try" in
  5732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5733. *) ac_try_echo=$ac_try;;
  5734. esac
  5735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5736. (eval "$ac_link") 2>conftest.er1
  5737. ac_status=$?
  5738. grep -v '^ *+' conftest.er1 >conftest.err
  5739. rm -f conftest.er1
  5740. cat conftest.err >&5
  5741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5742. (exit $ac_status); } && {
  5743. test -z "$ac_c_werror_flag" ||
  5744. test ! -s conftest.err
  5745. } && test -s conftest$ac_exeext &&
  5746. $as_test_x conftest$ac_exeext; then
  5747. eval "$as_ac_var=yes"
  5748. else
  5749. echo "$as_me: failed program was:" >&5
  5750. sed 's/^/| /' conftest.$ac_ext >&5
  5751. eval "$as_ac_var=no"
  5752. fi
  5753. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5754. conftest$ac_exeext conftest.$ac_ext
  5755. fi
  5756. ac_res=`eval echo '${'$as_ac_var'}'`
  5757. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5758. echo "${ECHO_T}$ac_res" >&6; }
  5759. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5760. cat >>confdefs.h <<_ACEOF
  5761. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5762. _ACEOF
  5763. fi
  5764. done
  5765. if test "x$ac_cv_func_fork" = xyes; then
  5766. { echo "$as_me:$LINENO: checking for working fork" >&5
  5767. echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
  5768. if test "${ac_cv_func_fork_works+set}" = set; then
  5769. echo $ECHO_N "(cached) $ECHO_C" >&6
  5770. else
  5771. if test "$cross_compiling" = yes; then
  5772. ac_cv_func_fork_works=cross
  5773. else
  5774. cat >conftest.$ac_ext <<_ACEOF
  5775. /* confdefs.h. */
  5776. _ACEOF
  5777. cat confdefs.h >>conftest.$ac_ext
  5778. cat >>conftest.$ac_ext <<_ACEOF
  5779. /* end confdefs.h. */
  5780. $ac_includes_default
  5781. int
  5782. main ()
  5783. {
  5784. /* By Ruediger Kuhlmann. */
  5785. return fork () < 0;
  5786. ;
  5787. return 0;
  5788. }
  5789. _ACEOF
  5790. rm -f conftest$ac_exeext
  5791. if { (ac_try="$ac_link"
  5792. case "(($ac_try" in
  5793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5794. *) ac_try_echo=$ac_try;;
  5795. esac
  5796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5797. (eval "$ac_link") 2>&5
  5798. ac_status=$?
  5799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5800. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5801. { (case "(($ac_try" in
  5802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5803. *) ac_try_echo=$ac_try;;
  5804. esac
  5805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5806. (eval "$ac_try") 2>&5
  5807. ac_status=$?
  5808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5809. (exit $ac_status); }; }; then
  5810. ac_cv_func_fork_works=yes
  5811. else
  5812. echo "$as_me: program exited with status $ac_status" >&5
  5813. echo "$as_me: failed program was:" >&5
  5814. sed 's/^/| /' conftest.$ac_ext >&5
  5815. ( exit $ac_status )
  5816. ac_cv_func_fork_works=no
  5817. fi
  5818. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5819. fi
  5820. fi
  5821. { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  5822. echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
  5823. else
  5824. ac_cv_func_fork_works=$ac_cv_func_fork
  5825. fi
  5826. if test "x$ac_cv_func_fork_works" = xcross; then
  5827. case $host in
  5828. *-*-amigaos* | *-*-msdosdjgpp*)
  5829. # Override, as these systems have only a dummy fork() stub
  5830. ac_cv_func_fork_works=no
  5831. ;;
  5832. *)
  5833. ac_cv_func_fork_works=yes
  5834. ;;
  5835. esac
  5836. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5837. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5838. fi
  5839. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5840. if test "x$ac_cv_func_vfork" = xyes; then
  5841. { echo "$as_me:$LINENO: checking for working vfork" >&5
  5842. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
  5843. if test "${ac_cv_func_vfork_works+set}" = set; then
  5844. echo $ECHO_N "(cached) $ECHO_C" >&6
  5845. else
  5846. if test "$cross_compiling" = yes; then
  5847. ac_cv_func_vfork_works=cross
  5848. else
  5849. cat >conftest.$ac_ext <<_ACEOF
  5850. /* confdefs.h. */
  5851. _ACEOF
  5852. cat confdefs.h >>conftest.$ac_ext
  5853. cat >>conftest.$ac_ext <<_ACEOF
  5854. /* end confdefs.h. */
  5855. /* Thanks to Paul Eggert for this test. */
  5856. $ac_includes_default
  5857. #include <sys/wait.h>
  5858. #ifdef HAVE_VFORK_H
  5859. # include <vfork.h>
  5860. #endif
  5861. /* On some sparc systems, changes by the child to local and incoming
  5862. argument registers are propagated back to the parent. The compiler
  5863. is told about this with #include <vfork.h>, but some compilers
  5864. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5865. static variable whose address is put into a register that is
  5866. clobbered by the vfork. */
  5867. static void
  5868. #ifdef __cplusplus
  5869. sparc_address_test (int arg)
  5870. # else
  5871. sparc_address_test (arg) int arg;
  5872. #endif
  5873. {
  5874. static pid_t child;
  5875. if (!child) {
  5876. child = vfork ();
  5877. if (child < 0) {
  5878. perror ("vfork");
  5879. _exit(2);
  5880. }
  5881. if (!child) {
  5882. arg = getpid();
  5883. write(-1, "", 0);
  5884. _exit (arg);
  5885. }
  5886. }
  5887. }
  5888. int
  5889. main ()
  5890. {
  5891. pid_t parent = getpid ();
  5892. pid_t child;
  5893. sparc_address_test (0);
  5894. child = vfork ();
  5895. if (child == 0) {
  5896. /* Here is another test for sparc vfork register problems. This
  5897. test uses lots of local variables, at least as many local
  5898. variables as main has allocated so far including compiler
  5899. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5900. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5901. reuse the register of parent for one of the local variables,
  5902. since it will think that parent can't possibly be used any more
  5903. in this routine. Assigning to the local variable will thus
  5904. munge parent in the parent process. */
  5905. pid_t
  5906. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5907. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5908. /* Convince the compiler that p..p7 are live; otherwise, it might
  5909. use the same hardware register for all 8 local variables. */
  5910. if (p != p1 || p != p2 || p != p3 || p != p4
  5911. || p != p5 || p != p6 || p != p7)
  5912. _exit(1);
  5913. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5914. from child file descriptors. If the child closes a descriptor
  5915. before it execs or exits, this munges the parent's descriptor
  5916. as well. Test for this by closing stdout in the child. */
  5917. _exit(close(fileno(stdout)) != 0);
  5918. } else {
  5919. int status;
  5920. struct stat st;
  5921. while (wait(&status) != child)
  5922. ;
  5923. return (
  5924. /* Was there some problem with vforking? */
  5925. child < 0
  5926. /* Did the child fail? (This shouldn't happen.) */
  5927. || status
  5928. /* Did the vfork/compiler bug occur? */
  5929. || parent != getpid()
  5930. /* Did the file descriptor bug occur? */
  5931. || fstat(fileno(stdout), &st) != 0
  5932. );
  5933. }
  5934. }
  5935. _ACEOF
  5936. rm -f conftest$ac_exeext
  5937. if { (ac_try="$ac_link"
  5938. case "(($ac_try" in
  5939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5940. *) ac_try_echo=$ac_try;;
  5941. esac
  5942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5943. (eval "$ac_link") 2>&5
  5944. ac_status=$?
  5945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5946. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5947. { (case "(($ac_try" in
  5948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5949. *) ac_try_echo=$ac_try;;
  5950. esac
  5951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5952. (eval "$ac_try") 2>&5
  5953. ac_status=$?
  5954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5955. (exit $ac_status); }; }; then
  5956. ac_cv_func_vfork_works=yes
  5957. else
  5958. echo "$as_me: program exited with status $ac_status" >&5
  5959. echo "$as_me: failed program was:" >&5
  5960. sed 's/^/| /' conftest.$ac_ext >&5
  5961. ( exit $ac_status )
  5962. ac_cv_func_vfork_works=no
  5963. fi
  5964. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5965. fi
  5966. fi
  5967. { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  5968. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
  5969. fi;
  5970. if test "x$ac_cv_func_fork_works" = xcross; then
  5971. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5972. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5973. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5974. fi
  5975. if test "x$ac_cv_func_vfork_works" = xyes; then
  5976. cat >>confdefs.h <<\_ACEOF
  5977. #define HAVE_WORKING_VFORK 1
  5978. _ACEOF
  5979. else
  5980. cat >>confdefs.h <<\_ACEOF
  5981. #define vfork fork
  5982. _ACEOF
  5983. fi
  5984. if test "x$ac_cv_func_fork_works" = xyes; then
  5985. cat >>confdefs.h <<\_ACEOF
  5986. #define HAVE_WORKING_FORK 1
  5987. _ACEOF
  5988. fi
  5989. for ac_func in strftime
  5990. do
  5991. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5992. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5993. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5994. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5995. echo $ECHO_N "(cached) $ECHO_C" >&6
  5996. else
  5997. cat >conftest.$ac_ext <<_ACEOF
  5998. /* confdefs.h. */
  5999. _ACEOF
  6000. cat confdefs.h >>conftest.$ac_ext
  6001. cat >>conftest.$ac_ext <<_ACEOF
  6002. /* end confdefs.h. */
  6003. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6004. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6005. #define $ac_func innocuous_$ac_func
  6006. /* System header to define __stub macros and hopefully few prototypes,
  6007. which can conflict with char $ac_func (); below.
  6008. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6009. <limits.h> exists even on freestanding compilers. */
  6010. #ifdef __STDC__
  6011. # include <limits.h>
  6012. #else
  6013. # include <assert.h>
  6014. #endif
  6015. #undef $ac_func
  6016. /* Override any GCC internal prototype to avoid an error.
  6017. Use char because int might match the return type of a GCC
  6018. builtin and then its argument prototype would still apply. */
  6019. #ifdef __cplusplus
  6020. extern "C"
  6021. #endif
  6022. char $ac_func ();
  6023. /* The GNU C library defines this for functions which it implements
  6024. to always fail with ENOSYS. Some functions are actually named
  6025. something starting with __ and the normal name is an alias. */
  6026. #if defined __stub_$ac_func || defined __stub___$ac_func
  6027. choke me
  6028. #endif
  6029. int
  6030. main ()
  6031. {
  6032. return $ac_func ();
  6033. ;
  6034. return 0;
  6035. }
  6036. _ACEOF
  6037. rm -f conftest.$ac_objext conftest$ac_exeext
  6038. if { (ac_try="$ac_link"
  6039. case "(($ac_try" in
  6040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6041. *) ac_try_echo=$ac_try;;
  6042. esac
  6043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6044. (eval "$ac_link") 2>conftest.er1
  6045. ac_status=$?
  6046. grep -v '^ *+' conftest.er1 >conftest.err
  6047. rm -f conftest.er1
  6048. cat conftest.err >&5
  6049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6050. (exit $ac_status); } && {
  6051. test -z "$ac_c_werror_flag" ||
  6052. test ! -s conftest.err
  6053. } && test -s conftest$ac_exeext &&
  6054. $as_test_x conftest$ac_exeext; then
  6055. eval "$as_ac_var=yes"
  6056. else
  6057. echo "$as_me: failed program was:" >&5
  6058. sed 's/^/| /' conftest.$ac_ext >&5
  6059. eval "$as_ac_var=no"
  6060. fi
  6061. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6062. conftest$ac_exeext conftest.$ac_ext
  6063. fi
  6064. ac_res=`eval echo '${'$as_ac_var'}'`
  6065. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6066. echo "${ECHO_T}$ac_res" >&6; }
  6067. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6068. cat >>confdefs.h <<_ACEOF
  6069. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6070. _ACEOF
  6071. else
  6072. # strftime is in -lintl on SCO UNIX.
  6073. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  6074. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  6075. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  6076. echo $ECHO_N "(cached) $ECHO_C" >&6
  6077. else
  6078. ac_check_lib_save_LIBS=$LIBS
  6079. LIBS="-lintl $LIBS"
  6080. cat >conftest.$ac_ext <<_ACEOF
  6081. /* confdefs.h. */
  6082. _ACEOF
  6083. cat confdefs.h >>conftest.$ac_ext
  6084. cat >>conftest.$ac_ext <<_ACEOF
  6085. /* end confdefs.h. */
  6086. /* Override any GCC internal prototype to avoid an error.
  6087. Use char because int might match the return type of a GCC
  6088. builtin and then its argument prototype would still apply. */
  6089. #ifdef __cplusplus
  6090. extern "C"
  6091. #endif
  6092. char strftime ();
  6093. int
  6094. main ()
  6095. {
  6096. return strftime ();
  6097. ;
  6098. return 0;
  6099. }
  6100. _ACEOF
  6101. rm -f conftest.$ac_objext conftest$ac_exeext
  6102. if { (ac_try="$ac_link"
  6103. case "(($ac_try" in
  6104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6105. *) ac_try_echo=$ac_try;;
  6106. esac
  6107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6108. (eval "$ac_link") 2>conftest.er1
  6109. ac_status=$?
  6110. grep -v '^ *+' conftest.er1 >conftest.err
  6111. rm -f conftest.er1
  6112. cat conftest.err >&5
  6113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6114. (exit $ac_status); } && {
  6115. test -z "$ac_c_werror_flag" ||
  6116. test ! -s conftest.err
  6117. } && test -s conftest$ac_exeext &&
  6118. $as_test_x conftest$ac_exeext; then
  6119. ac_cv_lib_intl_strftime=yes
  6120. else
  6121. echo "$as_me: failed program was:" >&5
  6122. sed 's/^/| /' conftest.$ac_ext >&5
  6123. ac_cv_lib_intl_strftime=no
  6124. fi
  6125. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6126. conftest$ac_exeext conftest.$ac_ext
  6127. LIBS=$ac_check_lib_save_LIBS
  6128. fi
  6129. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  6130. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  6131. if test $ac_cv_lib_intl_strftime = yes; then
  6132. cat >>confdefs.h <<\_ACEOF
  6133. #define HAVE_STRFTIME 1
  6134. _ACEOF
  6135. LIBS="-lintl $LIBS"
  6136. fi
  6137. fi
  6138. done
  6139. for ac_func in \
  6140. bind gethostbyaddr gethostbyname gethostname inet_ntoa \
  6141. setsid setsockopt socket strcasecmp waitpid
  6142. do
  6143. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6144. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6145. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6146. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6147. echo $ECHO_N "(cached) $ECHO_C" >&6
  6148. else
  6149. cat >conftest.$ac_ext <<_ACEOF
  6150. /* confdefs.h. */
  6151. _ACEOF
  6152. cat confdefs.h >>conftest.$ac_ext
  6153. cat >>conftest.$ac_ext <<_ACEOF
  6154. /* end confdefs.h. */
  6155. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6156. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6157. #define $ac_func innocuous_$ac_func
  6158. /* System header to define __stub macros and hopefully few prototypes,
  6159. which can conflict with char $ac_func (); below.
  6160. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6161. <limits.h> exists even on freestanding compilers. */
  6162. #ifdef __STDC__
  6163. # include <limits.h>
  6164. #else
  6165. # include <assert.h>
  6166. #endif
  6167. #undef $ac_func
  6168. /* Override any GCC internal prototype to avoid an error.
  6169. Use char because int might match the return type of a GCC
  6170. builtin and then its argument prototype would still apply. */
  6171. #ifdef __cplusplus
  6172. extern "C"
  6173. #endif
  6174. char $ac_func ();
  6175. /* The GNU C library defines this for functions which it implements
  6176. to always fail with ENOSYS. Some functions are actually named
  6177. something starting with __ and the normal name is an alias. */
  6178. #if defined __stub_$ac_func || defined __stub___$ac_func
  6179. choke me
  6180. #endif
  6181. int
  6182. main ()
  6183. {
  6184. return $ac_func ();
  6185. ;
  6186. return 0;
  6187. }
  6188. _ACEOF
  6189. rm -f conftest.$ac_objext conftest$ac_exeext
  6190. if { (ac_try="$ac_link"
  6191. case "(($ac_try" in
  6192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6193. *) ac_try_echo=$ac_try;;
  6194. esac
  6195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6196. (eval "$ac_link") 2>conftest.er1
  6197. ac_status=$?
  6198. grep -v '^ *+' conftest.er1 >conftest.err
  6199. rm -f conftest.er1
  6200. cat conftest.err >&5
  6201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6202. (exit $ac_status); } && {
  6203. test -z "$ac_c_werror_flag" ||
  6204. test ! -s conftest.err
  6205. } && test -s conftest$ac_exeext &&
  6206. $as_test_x conftest$ac_exeext; then
  6207. eval "$as_ac_var=yes"
  6208. else
  6209. echo "$as_me: failed program was:" >&5
  6210. sed 's/^/| /' conftest.$ac_ext >&5
  6211. eval "$as_ac_var=no"
  6212. fi
  6213. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6214. conftest$ac_exeext conftest.$ac_ext
  6215. fi
  6216. ac_res=`eval echo '${'$as_ac_var'}'`
  6217. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6218. echo "${ECHO_T}$ac_res" >&6; }
  6219. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6220. cat >>confdefs.h <<_ACEOF
  6221. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6222. _ACEOF
  6223. else
  6224. { { echo "$as_me:$LINENO: error: required function missing!" >&5
  6225. echo "$as_me: error: required function missing!" >&2;}
  6226. { (exit 1); exit 1; }; }
  6227. fi
  6228. done
  6229. for ac_func in getaddrinfo getnameinfo inet_aton isdigit sigaction sigprocmask snprintf \
  6230. vsnprintf strdup strlcpy strlcat strtok_r
  6231. do
  6232. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6233. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6234. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6235. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6236. echo $ECHO_N "(cached) $ECHO_C" >&6
  6237. else
  6238. cat >conftest.$ac_ext <<_ACEOF
  6239. /* confdefs.h. */
  6240. _ACEOF
  6241. cat confdefs.h >>conftest.$ac_ext
  6242. cat >>conftest.$ac_ext <<_ACEOF
  6243. /* end confdefs.h. */
  6244. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6245. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6246. #define $ac_func innocuous_$ac_func
  6247. /* System header to define __stub macros and hopefully few prototypes,
  6248. which can conflict with char $ac_func (); below.
  6249. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6250. <limits.h> exists even on freestanding compilers. */
  6251. #ifdef __STDC__
  6252. # include <limits.h>
  6253. #else
  6254. # include <assert.h>
  6255. #endif
  6256. #undef $ac_func
  6257. /* Override any GCC internal prototype to avoid an error.
  6258. Use char because int might match the return type of a GCC
  6259. builtin and then its argument prototype would still apply. */
  6260. #ifdef __cplusplus
  6261. extern "C"
  6262. #endif
  6263. char $ac_func ();
  6264. /* The GNU C library defines this for functions which it implements
  6265. to always fail with ENOSYS. Some functions are actually named
  6266. something starting with __ and the normal name is an alias. */
  6267. #if defined __stub_$ac_func || defined __stub___$ac_func
  6268. choke me
  6269. #endif
  6270. int
  6271. main ()
  6272. {
  6273. return $ac_func ();
  6274. ;
  6275. return 0;
  6276. }
  6277. _ACEOF
  6278. rm -f conftest.$ac_objext conftest$ac_exeext
  6279. if { (ac_try="$ac_link"
  6280. case "(($ac_try" in
  6281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6282. *) ac_try_echo=$ac_try;;
  6283. esac
  6284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6285. (eval "$ac_link") 2>conftest.er1
  6286. ac_status=$?
  6287. grep -v '^ *+' conftest.er1 >conftest.err
  6288. rm -f conftest.er1
  6289. cat conftest.err >&5
  6290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6291. (exit $ac_status); } && {
  6292. test -z "$ac_c_werror_flag" ||
  6293. test ! -s conftest.err
  6294. } && test -s conftest$ac_exeext &&
  6295. $as_test_x conftest$ac_exeext; then
  6296. eval "$as_ac_var=yes"
  6297. else
  6298. echo "$as_me: failed program was:" >&5
  6299. sed 's/^/| /' conftest.$ac_ext >&5
  6300. eval "$as_ac_var=no"
  6301. fi
  6302. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6303. conftest$ac_exeext conftest.$ac_ext
  6304. fi
  6305. ac_res=`eval echo '${'$as_ac_var'}'`
  6306. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6307. echo "${ECHO_T}$ac_res" >&6; }
  6308. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6309. cat >>confdefs.h <<_ACEOF
  6310. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6311. _ACEOF
  6312. fi
  6313. done
  6314. # -- Configuration options --
  6315. # use syslog?
  6316. x_syslog_on=no
  6317. # Check whether --with-syslog was given.
  6318. if test "${with_syslog+set}" = set; then
  6319. withval=$with_syslog; if test "$withval" != "no"; then
  6320. if test "$withval" != "yes"; then
  6321. CFLAGS="-I$withval/include $CFLAGS"
  6322. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6323. LDFLAGS="-L$withval/lib $LDFLAGS"
  6324. fi
  6325. { echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  6326. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6; }
  6327. if test "${ac_cv_lib_be_syslog+set}" = set; then
  6328. echo $ECHO_N "(cached) $ECHO_C" >&6
  6329. else
  6330. ac_check_lib_save_LIBS=$LIBS
  6331. LIBS="-lbe $LIBS"
  6332. cat >conftest.$ac_ext <<_ACEOF
  6333. /* confdefs.h. */
  6334. _ACEOF
  6335. cat confdefs.h >>conftest.$ac_ext
  6336. cat >>conftest.$ac_ext <<_ACEOF
  6337. /* end confdefs.h. */
  6338. /* Override any GCC internal prototype to avoid an error.
  6339. Use char because int might match the return type of a GCC
  6340. builtin and then its argument prototype would still apply. */
  6341. #ifdef __cplusplus
  6342. extern "C"
  6343. #endif
  6344. char syslog ();
  6345. int
  6346. main ()
  6347. {
  6348. return syslog ();
  6349. ;
  6350. return 0;
  6351. }
  6352. _ACEOF
  6353. rm -f conftest.$ac_objext conftest$ac_exeext
  6354. if { (ac_try="$ac_link"
  6355. case "(($ac_try" in
  6356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6357. *) ac_try_echo=$ac_try;;
  6358. esac
  6359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6360. (eval "$ac_link") 2>conftest.er1
  6361. ac_status=$?
  6362. grep -v '^ *+' conftest.er1 >conftest.err
  6363. rm -f conftest.er1
  6364. cat conftest.err >&5
  6365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); } && {
  6367. test -z "$ac_c_werror_flag" ||
  6368. test ! -s conftest.err
  6369. } && test -s conftest$ac_exeext &&
  6370. $as_test_x conftest$ac_exeext; then
  6371. ac_cv_lib_be_syslog=yes
  6372. else
  6373. echo "$as_me: failed program was:" >&5
  6374. sed 's/^/| /' conftest.$ac_ext >&5
  6375. ac_cv_lib_be_syslog=no
  6376. fi
  6377. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6378. conftest$ac_exeext conftest.$ac_ext
  6379. LIBS=$ac_check_lib_save_LIBS
  6380. fi
  6381. { echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  6382. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6; }
  6383. if test $ac_cv_lib_be_syslog = yes; then
  6384. cat >>confdefs.h <<_ACEOF
  6385. #define HAVE_LIBBE 1
  6386. _ACEOF
  6387. LIBS="-lbe $LIBS"
  6388. fi
  6389. for ac_func in syslog
  6390. do
  6391. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6392. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6393. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6394. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6395. echo $ECHO_N "(cached) $ECHO_C" >&6
  6396. else
  6397. cat >conftest.$ac_ext <<_ACEOF
  6398. /* confdefs.h. */
  6399. _ACEOF
  6400. cat confdefs.h >>conftest.$ac_ext
  6401. cat >>conftest.$ac_ext <<_ACEOF
  6402. /* end confdefs.h. */
  6403. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6404. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6405. #define $ac_func innocuous_$ac_func
  6406. /* System header to define __stub macros and hopefully few prototypes,
  6407. which can conflict with char $ac_func (); below.
  6408. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6409. <limits.h> exists even on freestanding compilers. */
  6410. #ifdef __STDC__
  6411. # include <limits.h>
  6412. #else
  6413. # include <assert.h>
  6414. #endif
  6415. #undef $ac_func
  6416. /* Override any GCC internal prototype to avoid an error.
  6417. Use char because int might match the return type of a GCC
  6418. builtin and then its argument prototype would still apply. */
  6419. #ifdef __cplusplus
  6420. extern "C"
  6421. #endif
  6422. char $ac_func ();
  6423. /* The GNU C library defines this for functions which it implements
  6424. to always fail with ENOSYS. Some functions are actually named
  6425. something starting with __ and the normal name is an alias. */
  6426. #if defined __stub_$ac_func || defined __stub___$ac_func
  6427. choke me
  6428. #endif
  6429. int
  6430. main ()
  6431. {
  6432. return $ac_func ();
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. rm -f conftest.$ac_objext conftest$ac_exeext
  6438. if { (ac_try="$ac_link"
  6439. case "(($ac_try" in
  6440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6441. *) ac_try_echo=$ac_try;;
  6442. esac
  6443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6444. (eval "$ac_link") 2>conftest.er1
  6445. ac_status=$?
  6446. grep -v '^ *+' conftest.er1 >conftest.err
  6447. rm -f conftest.er1
  6448. cat conftest.err >&5
  6449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6450. (exit $ac_status); } && {
  6451. test -z "$ac_c_werror_flag" ||
  6452. test ! -s conftest.err
  6453. } && test -s conftest$ac_exeext &&
  6454. $as_test_x conftest$ac_exeext; then
  6455. eval "$as_ac_var=yes"
  6456. else
  6457. echo "$as_me: failed program was:" >&5
  6458. sed 's/^/| /' conftest.$ac_ext >&5
  6459. eval "$as_ac_var=no"
  6460. fi
  6461. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6462. conftest$ac_exeext conftest.$ac_ext
  6463. fi
  6464. ac_res=`eval echo '${'$as_ac_var'}'`
  6465. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6466. echo "${ECHO_T}$ac_res" >&6; }
  6467. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6468. cat >>confdefs.h <<_ACEOF
  6469. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6470. _ACEOF
  6471. x_syslog_on=yes
  6472. else
  6473. { { echo "$as_me:$LINENO: error: Can't enable syslog!" >&5
  6474. echo "$as_me: error: Can't enable syslog!" >&2;}
  6475. { (exit 1); exit 1; }; }
  6476. fi
  6477. done
  6478. fi
  6479. else
  6480. { echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  6481. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6; }
  6482. if test "${ac_cv_lib_be_syslog+set}" = set; then
  6483. echo $ECHO_N "(cached) $ECHO_C" >&6
  6484. else
  6485. ac_check_lib_save_LIBS=$LIBS
  6486. LIBS="-lbe $LIBS"
  6487. cat >conftest.$ac_ext <<_ACEOF
  6488. /* confdefs.h. */
  6489. _ACEOF
  6490. cat confdefs.h >>conftest.$ac_ext
  6491. cat >>conftest.$ac_ext <<_ACEOF
  6492. /* end confdefs.h. */
  6493. /* Override any GCC internal prototype to avoid an error.
  6494. Use char because int might match the return type of a GCC
  6495. builtin and then its argument prototype would still apply. */
  6496. #ifdef __cplusplus
  6497. extern "C"
  6498. #endif
  6499. char syslog ();
  6500. int
  6501. main ()
  6502. {
  6503. return syslog ();
  6504. ;
  6505. return 0;
  6506. }
  6507. _ACEOF
  6508. rm -f conftest.$ac_objext conftest$ac_exeext
  6509. if { (ac_try="$ac_link"
  6510. case "(($ac_try" in
  6511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6512. *) ac_try_echo=$ac_try;;
  6513. esac
  6514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6515. (eval "$ac_link") 2>conftest.er1
  6516. ac_status=$?
  6517. grep -v '^ *+' conftest.er1 >conftest.err
  6518. rm -f conftest.er1
  6519. cat conftest.err >&5
  6520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6521. (exit $ac_status); } && {
  6522. test -z "$ac_c_werror_flag" ||
  6523. test ! -s conftest.err
  6524. } && test -s conftest$ac_exeext &&
  6525. $as_test_x conftest$ac_exeext; then
  6526. ac_cv_lib_be_syslog=yes
  6527. else
  6528. echo "$as_me: failed program was:" >&5
  6529. sed 's/^/| /' conftest.$ac_ext >&5
  6530. ac_cv_lib_be_syslog=no
  6531. fi
  6532. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6533. conftest$ac_exeext conftest.$ac_ext
  6534. LIBS=$ac_check_lib_save_LIBS
  6535. fi
  6536. { echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  6537. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6; }
  6538. if test $ac_cv_lib_be_syslog = yes; then
  6539. cat >>confdefs.h <<_ACEOF
  6540. #define HAVE_LIBBE 1
  6541. _ACEOF
  6542. LIBS="-lbe $LIBS"
  6543. fi
  6544. for ac_func in syslog
  6545. do
  6546. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6547. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6548. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6549. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6550. echo $ECHO_N "(cached) $ECHO_C" >&6
  6551. else
  6552. cat >conftest.$ac_ext <<_ACEOF
  6553. /* confdefs.h. */
  6554. _ACEOF
  6555. cat confdefs.h >>conftest.$ac_ext
  6556. cat >>conftest.$ac_ext <<_ACEOF
  6557. /* end confdefs.h. */
  6558. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6559. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6560. #define $ac_func innocuous_$ac_func
  6561. /* System header to define __stub macros and hopefully few prototypes,
  6562. which can conflict with char $ac_func (); below.
  6563. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6564. <limits.h> exists even on freestanding compilers. */
  6565. #ifdef __STDC__
  6566. # include <limits.h>
  6567. #else
  6568. # include <assert.h>
  6569. #endif
  6570. #undef $ac_func
  6571. /* Override any GCC internal prototype to avoid an error.
  6572. Use char because int might match the return type of a GCC
  6573. builtin and then its argument prototype would still apply. */
  6574. #ifdef __cplusplus
  6575. extern "C"
  6576. #endif
  6577. char $ac_func ();
  6578. /* The GNU C library defines this for functions which it implements
  6579. to always fail with ENOSYS. Some functions are actually named
  6580. something starting with __ and the normal name is an alias. */
  6581. #if defined __stub_$ac_func || defined __stub___$ac_func
  6582. choke me
  6583. #endif
  6584. int
  6585. main ()
  6586. {
  6587. return $ac_func ();
  6588. ;
  6589. return 0;
  6590. }
  6591. _ACEOF
  6592. rm -f conftest.$ac_objext conftest$ac_exeext
  6593. if { (ac_try="$ac_link"
  6594. case "(($ac_try" in
  6595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6596. *) ac_try_echo=$ac_try;;
  6597. esac
  6598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6599. (eval "$ac_link") 2>conftest.er1
  6600. ac_status=$?
  6601. grep -v '^ *+' conftest.er1 >conftest.err
  6602. rm -f conftest.er1
  6603. cat conftest.err >&5
  6604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6605. (exit $ac_status); } && {
  6606. test -z "$ac_c_werror_flag" ||
  6607. test ! -s conftest.err
  6608. } && test -s conftest$ac_exeext &&
  6609. $as_test_x conftest$ac_exeext; then
  6610. eval "$as_ac_var=yes"
  6611. else
  6612. echo "$as_me: failed program was:" >&5
  6613. sed 's/^/| /' conftest.$ac_ext >&5
  6614. eval "$as_ac_var=no"
  6615. fi
  6616. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6617. conftest$ac_exeext conftest.$ac_ext
  6618. fi
  6619. ac_res=`eval echo '${'$as_ac_var'}'`
  6620. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6621. echo "${ECHO_T}$ac_res" >&6; }
  6622. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6623. cat >>confdefs.h <<_ACEOF
  6624. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6625. _ACEOF
  6626. x_syslog_on=yes
  6627. fi
  6628. done
  6629. fi
  6630. if test "$x_syslog_on" = "yes"; then
  6631. cat >>confdefs.h <<\_ACEOF
  6632. #define SYSLOG 1
  6633. _ACEOF
  6634. for ac_header in syslog.h
  6635. do
  6636. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6637. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6638. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6639. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6640. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6641. echo $ECHO_N "(cached) $ECHO_C" >&6
  6642. fi
  6643. ac_res=`eval echo '${'$as_ac_Header'}'`
  6644. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6645. echo "${ECHO_T}$ac_res" >&6; }
  6646. else
  6647. # Is the header compilable?
  6648. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6649. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6650. cat >conftest.$ac_ext <<_ACEOF
  6651. /* confdefs.h. */
  6652. _ACEOF
  6653. cat confdefs.h >>conftest.$ac_ext
  6654. cat >>conftest.$ac_ext <<_ACEOF
  6655. /* end confdefs.h. */
  6656. $ac_includes_default
  6657. #include <$ac_header>
  6658. _ACEOF
  6659. rm -f conftest.$ac_objext
  6660. if { (ac_try="$ac_compile"
  6661. case "(($ac_try" in
  6662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6663. *) ac_try_echo=$ac_try;;
  6664. esac
  6665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6666. (eval "$ac_compile") 2>conftest.er1
  6667. ac_status=$?
  6668. grep -v '^ *+' conftest.er1 >conftest.err
  6669. rm -f conftest.er1
  6670. cat conftest.err >&5
  6671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6672. (exit $ac_status); } && {
  6673. test -z "$ac_c_werror_flag" ||
  6674. test ! -s conftest.err
  6675. } && test -s conftest.$ac_objext; then
  6676. ac_header_compiler=yes
  6677. else
  6678. echo "$as_me: failed program was:" >&5
  6679. sed 's/^/| /' conftest.$ac_ext >&5
  6680. ac_header_compiler=no
  6681. fi
  6682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6683. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6684. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6685. # Is the header present?
  6686. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6687. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6688. cat >conftest.$ac_ext <<_ACEOF
  6689. /* confdefs.h. */
  6690. _ACEOF
  6691. cat confdefs.h >>conftest.$ac_ext
  6692. cat >>conftest.$ac_ext <<_ACEOF
  6693. /* end confdefs.h. */
  6694. #include <$ac_header>
  6695. _ACEOF
  6696. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6697. case "(($ac_try" in
  6698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6699. *) ac_try_echo=$ac_try;;
  6700. esac
  6701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6702. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6703. ac_status=$?
  6704. grep -v '^ *+' conftest.er1 >conftest.err
  6705. rm -f conftest.er1
  6706. cat conftest.err >&5
  6707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6708. (exit $ac_status); } >/dev/null && {
  6709. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6710. test ! -s conftest.err
  6711. }; then
  6712. ac_header_preproc=yes
  6713. else
  6714. echo "$as_me: failed program was:" >&5
  6715. sed 's/^/| /' conftest.$ac_ext >&5
  6716. ac_header_preproc=no
  6717. fi
  6718. rm -f conftest.err conftest.$ac_ext
  6719. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6720. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6721. # So? What about this header?
  6722. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6723. yes:no: )
  6724. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6725. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6726. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6727. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6728. ac_header_preproc=yes
  6729. ;;
  6730. no:yes:* )
  6731. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6732. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6733. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6734. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6735. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6736. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6737. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6738. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6739. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6740. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6741. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6742. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6743. ;;
  6744. esac
  6745. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6746. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6747. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6748. echo $ECHO_N "(cached) $ECHO_C" >&6
  6749. else
  6750. eval "$as_ac_Header=\$ac_header_preproc"
  6751. fi
  6752. ac_res=`eval echo '${'$as_ac_Header'}'`
  6753. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6754. echo "${ECHO_T}$ac_res" >&6; }
  6755. fi
  6756. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6757. cat >>confdefs.h <<_ACEOF
  6758. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6759. _ACEOF
  6760. else
  6761. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6762. echo "$as_me: error: required C header missing!" >&2;}
  6763. { (exit 1); exit 1; }; }
  6764. fi
  6765. done
  6766. fi
  6767. # use zlib compression?
  6768. x_zlib_on=no
  6769. # Check whether --with-zlib was given.
  6770. if test "${with_zlib+set}" = set; then
  6771. withval=$with_zlib; if test "$withval" != "no"; then
  6772. if test "$withval" != "yes"; then
  6773. CFLAGS="-I$withval/include $CFLAGS"
  6774. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6775. LDFLAGS="-L$withval/lib $LDFLAGS"
  6776. fi
  6777. { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6778. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
  6779. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6780. echo $ECHO_N "(cached) $ECHO_C" >&6
  6781. else
  6782. ac_check_lib_save_LIBS=$LIBS
  6783. LIBS="-lz $LIBS"
  6784. cat >conftest.$ac_ext <<_ACEOF
  6785. /* confdefs.h. */
  6786. _ACEOF
  6787. cat confdefs.h >>conftest.$ac_ext
  6788. cat >>conftest.$ac_ext <<_ACEOF
  6789. /* end confdefs.h. */
  6790. /* Override any GCC internal prototype to avoid an error.
  6791. Use char because int might match the return type of a GCC
  6792. builtin and then its argument prototype would still apply. */
  6793. #ifdef __cplusplus
  6794. extern "C"
  6795. #endif
  6796. char deflate ();
  6797. int
  6798. main ()
  6799. {
  6800. return deflate ();
  6801. ;
  6802. return 0;
  6803. }
  6804. _ACEOF
  6805. rm -f conftest.$ac_objext conftest$ac_exeext
  6806. if { (ac_try="$ac_link"
  6807. case "(($ac_try" in
  6808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6809. *) ac_try_echo=$ac_try;;
  6810. esac
  6811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6812. (eval "$ac_link") 2>conftest.er1
  6813. ac_status=$?
  6814. grep -v '^ *+' conftest.er1 >conftest.err
  6815. rm -f conftest.er1
  6816. cat conftest.err >&5
  6817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6818. (exit $ac_status); } && {
  6819. test -z "$ac_c_werror_flag" ||
  6820. test ! -s conftest.err
  6821. } && test -s conftest$ac_exeext &&
  6822. $as_test_x conftest$ac_exeext; then
  6823. ac_cv_lib_z_deflate=yes
  6824. else
  6825. echo "$as_me: failed program was:" >&5
  6826. sed 's/^/| /' conftest.$ac_ext >&5
  6827. ac_cv_lib_z_deflate=no
  6828. fi
  6829. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6830. conftest$ac_exeext conftest.$ac_ext
  6831. LIBS=$ac_check_lib_save_LIBS
  6832. fi
  6833. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6834. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
  6835. if test $ac_cv_lib_z_deflate = yes; then
  6836. cat >>confdefs.h <<_ACEOF
  6837. #define HAVE_LIBZ 1
  6838. _ACEOF
  6839. LIBS="-lz $LIBS"
  6840. fi
  6841. for ac_func in deflate
  6842. do
  6843. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6844. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6845. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6846. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6847. echo $ECHO_N "(cached) $ECHO_C" >&6
  6848. else
  6849. cat >conftest.$ac_ext <<_ACEOF
  6850. /* confdefs.h. */
  6851. _ACEOF
  6852. cat confdefs.h >>conftest.$ac_ext
  6853. cat >>conftest.$ac_ext <<_ACEOF
  6854. /* end confdefs.h. */
  6855. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6856. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6857. #define $ac_func innocuous_$ac_func
  6858. /* System header to define __stub macros and hopefully few prototypes,
  6859. which can conflict with char $ac_func (); below.
  6860. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6861. <limits.h> exists even on freestanding compilers. */
  6862. #ifdef __STDC__
  6863. # include <limits.h>
  6864. #else
  6865. # include <assert.h>
  6866. #endif
  6867. #undef $ac_func
  6868. /* Override any GCC internal prototype to avoid an error.
  6869. Use char because int might match the return type of a GCC
  6870. builtin and then its argument prototype would still apply. */
  6871. #ifdef __cplusplus
  6872. extern "C"
  6873. #endif
  6874. char $ac_func ();
  6875. /* The GNU C library defines this for functions which it implements
  6876. to always fail with ENOSYS. Some functions are actually named
  6877. something starting with __ and the normal name is an alias. */
  6878. #if defined __stub_$ac_func || defined __stub___$ac_func
  6879. choke me
  6880. #endif
  6881. int
  6882. main ()
  6883. {
  6884. return $ac_func ();
  6885. ;
  6886. return 0;
  6887. }
  6888. _ACEOF
  6889. rm -f conftest.$ac_objext conftest$ac_exeext
  6890. if { (ac_try="$ac_link"
  6891. case "(($ac_try" in
  6892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6893. *) ac_try_echo=$ac_try;;
  6894. esac
  6895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6896. (eval "$ac_link") 2>conftest.er1
  6897. ac_status=$?
  6898. grep -v '^ *+' conftest.er1 >conftest.err
  6899. rm -f conftest.er1
  6900. cat conftest.err >&5
  6901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6902. (exit $ac_status); } && {
  6903. test -z "$ac_c_werror_flag" ||
  6904. test ! -s conftest.err
  6905. } && test -s conftest$ac_exeext &&
  6906. $as_test_x conftest$ac_exeext; then
  6907. eval "$as_ac_var=yes"
  6908. else
  6909. echo "$as_me: failed program was:" >&5
  6910. sed 's/^/| /' conftest.$ac_ext >&5
  6911. eval "$as_ac_var=no"
  6912. fi
  6913. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6914. conftest$ac_exeext conftest.$ac_ext
  6915. fi
  6916. ac_res=`eval echo '${'$as_ac_var'}'`
  6917. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6918. echo "${ECHO_T}$ac_res" >&6; }
  6919. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6920. cat >>confdefs.h <<_ACEOF
  6921. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6922. _ACEOF
  6923. x_zlib_on=yes
  6924. else
  6925. { { echo "$as_me:$LINENO: error: Can't enable zlib!" >&5
  6926. echo "$as_me: error: Can't enable zlib!" >&2;}
  6927. { (exit 1); exit 1; }; }
  6928. fi
  6929. done
  6930. fi
  6931. else
  6932. { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6933. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
  6934. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6935. echo $ECHO_N "(cached) $ECHO_C" >&6
  6936. else
  6937. ac_check_lib_save_LIBS=$LIBS
  6938. LIBS="-lz $LIBS"
  6939. cat >conftest.$ac_ext <<_ACEOF
  6940. /* confdefs.h. */
  6941. _ACEOF
  6942. cat confdefs.h >>conftest.$ac_ext
  6943. cat >>conftest.$ac_ext <<_ACEOF
  6944. /* end confdefs.h. */
  6945. /* Override any GCC internal prototype to avoid an error.
  6946. Use char because int might match the return type of a GCC
  6947. builtin and then its argument prototype would still apply. */
  6948. #ifdef __cplusplus
  6949. extern "C"
  6950. #endif
  6951. char deflate ();
  6952. int
  6953. main ()
  6954. {
  6955. return deflate ();
  6956. ;
  6957. return 0;
  6958. }
  6959. _ACEOF
  6960. rm -f conftest.$ac_objext conftest$ac_exeext
  6961. if { (ac_try="$ac_link"
  6962. case "(($ac_try" in
  6963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6964. *) ac_try_echo=$ac_try;;
  6965. esac
  6966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6967. (eval "$ac_link") 2>conftest.er1
  6968. ac_status=$?
  6969. grep -v '^ *+' conftest.er1 >conftest.err
  6970. rm -f conftest.er1
  6971. cat conftest.err >&5
  6972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6973. (exit $ac_status); } && {
  6974. test -z "$ac_c_werror_flag" ||
  6975. test ! -s conftest.err
  6976. } && test -s conftest$ac_exeext &&
  6977. $as_test_x conftest$ac_exeext; then
  6978. ac_cv_lib_z_deflate=yes
  6979. else
  6980. echo "$as_me: failed program was:" >&5
  6981. sed 's/^/| /' conftest.$ac_ext >&5
  6982. ac_cv_lib_z_deflate=no
  6983. fi
  6984. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6985. conftest$ac_exeext conftest.$ac_ext
  6986. LIBS=$ac_check_lib_save_LIBS
  6987. fi
  6988. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6989. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
  6990. if test $ac_cv_lib_z_deflate = yes; then
  6991. cat >>confdefs.h <<_ACEOF
  6992. #define HAVE_LIBZ 1
  6993. _ACEOF
  6994. LIBS="-lz $LIBS"
  6995. fi
  6996. for ac_func in deflate
  6997. do
  6998. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6999. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7000. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7001. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7002. echo $ECHO_N "(cached) $ECHO_C" >&6
  7003. else
  7004. cat >conftest.$ac_ext <<_ACEOF
  7005. /* confdefs.h. */
  7006. _ACEOF
  7007. cat confdefs.h >>conftest.$ac_ext
  7008. cat >>conftest.$ac_ext <<_ACEOF
  7009. /* end confdefs.h. */
  7010. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7011. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7012. #define $ac_func innocuous_$ac_func
  7013. /* System header to define __stub macros and hopefully few prototypes,
  7014. which can conflict with char $ac_func (); below.
  7015. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7016. <limits.h> exists even on freestanding compilers. */
  7017. #ifdef __STDC__
  7018. # include <limits.h>
  7019. #else
  7020. # include <assert.h>
  7021. #endif
  7022. #undef $ac_func
  7023. /* Override any GCC internal prototype to avoid an error.
  7024. Use char because int might match the return type of a GCC
  7025. builtin and then its argument prototype would still apply. */
  7026. #ifdef __cplusplus
  7027. extern "C"
  7028. #endif
  7029. char $ac_func ();
  7030. /* The GNU C library defines this for functions which it implements
  7031. to always fail with ENOSYS. Some functions are actually named
  7032. something starting with __ and the normal name is an alias. */
  7033. #if defined __stub_$ac_func || defined __stub___$ac_func
  7034. choke me
  7035. #endif
  7036. int
  7037. main ()
  7038. {
  7039. return $ac_func ();
  7040. ;
  7041. return 0;
  7042. }
  7043. _ACEOF
  7044. rm -f conftest.$ac_objext conftest$ac_exeext
  7045. if { (ac_try="$ac_link"
  7046. case "(($ac_try" in
  7047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7048. *) ac_try_echo=$ac_try;;
  7049. esac
  7050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7051. (eval "$ac_link") 2>conftest.er1
  7052. ac_status=$?
  7053. grep -v '^ *+' conftest.er1 >conftest.err
  7054. rm -f conftest.er1
  7055. cat conftest.err >&5
  7056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7057. (exit $ac_status); } && {
  7058. test -z "$ac_c_werror_flag" ||
  7059. test ! -s conftest.err
  7060. } && test -s conftest$ac_exeext &&
  7061. $as_test_x conftest$ac_exeext; then
  7062. eval "$as_ac_var=yes"
  7063. else
  7064. echo "$as_me: failed program was:" >&5
  7065. sed 's/^/| /' conftest.$ac_ext >&5
  7066. eval "$as_ac_var=no"
  7067. fi
  7068. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7069. conftest$ac_exeext conftest.$ac_ext
  7070. fi
  7071. ac_res=`eval echo '${'$as_ac_var'}'`
  7072. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7073. echo "${ECHO_T}$ac_res" >&6; }
  7074. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7075. cat >>confdefs.h <<_ACEOF
  7076. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7077. _ACEOF
  7078. x_zlib_on=yes
  7079. fi
  7080. done
  7081. fi
  7082. if test "$x_zlib_on" = "yes"; then
  7083. cat >>confdefs.h <<\_ACEOF
  7084. #define ZLIB 1
  7085. _ACEOF
  7086. for ac_header in zlib.h
  7087. do
  7088. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7089. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7090. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7091. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7092. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7093. echo $ECHO_N "(cached) $ECHO_C" >&6
  7094. fi
  7095. ac_res=`eval echo '${'$as_ac_Header'}'`
  7096. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7097. echo "${ECHO_T}$ac_res" >&6; }
  7098. else
  7099. # Is the header compilable?
  7100. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7101. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7102. cat >conftest.$ac_ext <<_ACEOF
  7103. /* confdefs.h. */
  7104. _ACEOF
  7105. cat confdefs.h >>conftest.$ac_ext
  7106. cat >>conftest.$ac_ext <<_ACEOF
  7107. /* end confdefs.h. */
  7108. $ac_includes_default
  7109. #include <$ac_header>
  7110. _ACEOF
  7111. rm -f conftest.$ac_objext
  7112. if { (ac_try="$ac_compile"
  7113. case "(($ac_try" in
  7114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7115. *) ac_try_echo=$ac_try;;
  7116. esac
  7117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7118. (eval "$ac_compile") 2>conftest.er1
  7119. ac_status=$?
  7120. grep -v '^ *+' conftest.er1 >conftest.err
  7121. rm -f conftest.er1
  7122. cat conftest.err >&5
  7123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7124. (exit $ac_status); } && {
  7125. test -z "$ac_c_werror_flag" ||
  7126. test ! -s conftest.err
  7127. } && test -s conftest.$ac_objext; then
  7128. ac_header_compiler=yes
  7129. else
  7130. echo "$as_me: failed program was:" >&5
  7131. sed 's/^/| /' conftest.$ac_ext >&5
  7132. ac_header_compiler=no
  7133. fi
  7134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7135. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7136. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7137. # Is the header present?
  7138. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7139. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7140. cat >conftest.$ac_ext <<_ACEOF
  7141. /* confdefs.h. */
  7142. _ACEOF
  7143. cat confdefs.h >>conftest.$ac_ext
  7144. cat >>conftest.$ac_ext <<_ACEOF
  7145. /* end confdefs.h. */
  7146. #include <$ac_header>
  7147. _ACEOF
  7148. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7149. case "(($ac_try" in
  7150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7151. *) ac_try_echo=$ac_try;;
  7152. esac
  7153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7154. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7155. ac_status=$?
  7156. grep -v '^ *+' conftest.er1 >conftest.err
  7157. rm -f conftest.er1
  7158. cat conftest.err >&5
  7159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7160. (exit $ac_status); } >/dev/null && {
  7161. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7162. test ! -s conftest.err
  7163. }; then
  7164. ac_header_preproc=yes
  7165. else
  7166. echo "$as_me: failed program was:" >&5
  7167. sed 's/^/| /' conftest.$ac_ext >&5
  7168. ac_header_preproc=no
  7169. fi
  7170. rm -f conftest.err conftest.$ac_ext
  7171. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7172. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7173. # So? What about this header?
  7174. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7175. yes:no: )
  7176. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7177. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7178. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7179. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7180. ac_header_preproc=yes
  7181. ;;
  7182. no:yes:* )
  7183. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7184. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7185. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7186. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7187. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7188. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7189. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7190. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7191. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7192. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7193. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7194. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7195. ;;
  7196. esac
  7197. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7198. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7199. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7200. echo $ECHO_N "(cached) $ECHO_C" >&6
  7201. else
  7202. eval "$as_ac_Header=\$ac_header_preproc"
  7203. fi
  7204. ac_res=`eval echo '${'$as_ac_Header'}'`
  7205. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7206. echo "${ECHO_T}$ac_res" >&6; }
  7207. fi
  7208. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7209. cat >>confdefs.h <<_ACEOF
  7210. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7211. _ACEOF
  7212. else
  7213. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7214. echo "$as_me: error: required C header missing!" >&2;}
  7215. { (exit 1); exit 1; }; }
  7216. fi
  7217. done
  7218. fi
  7219. # detect which IO API to use:
  7220. x_io_backend=none
  7221. # Check whether --with-select was given.
  7222. if test "${with_select+set}" = set; then
  7223. withval=$with_select; if test "$withval" != "no"; then
  7224. if test "$withval" != "yes"; then
  7225. CFLAGS="-I$withval/include $CFLAGS"
  7226. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7227. LDFLAGS="-L$withval/lib $LDFLAGS"
  7228. fi
  7229. for ac_func in select
  7230. do
  7231. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7232. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7233. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7234. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7235. echo $ECHO_N "(cached) $ECHO_C" >&6
  7236. else
  7237. cat >conftest.$ac_ext <<_ACEOF
  7238. /* confdefs.h. */
  7239. _ACEOF
  7240. cat confdefs.h >>conftest.$ac_ext
  7241. cat >>conftest.$ac_ext <<_ACEOF
  7242. /* end confdefs.h. */
  7243. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7244. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7245. #define $ac_func innocuous_$ac_func
  7246. /* System header to define __stub macros and hopefully few prototypes,
  7247. which can conflict with char $ac_func (); below.
  7248. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7249. <limits.h> exists even on freestanding compilers. */
  7250. #ifdef __STDC__
  7251. # include <limits.h>
  7252. #else
  7253. # include <assert.h>
  7254. #endif
  7255. #undef $ac_func
  7256. /* Override any GCC internal prototype to avoid an error.
  7257. Use char because int might match the return type of a GCC
  7258. builtin and then its argument prototype would still apply. */
  7259. #ifdef __cplusplus
  7260. extern "C"
  7261. #endif
  7262. char $ac_func ();
  7263. /* The GNU C library defines this for functions which it implements
  7264. to always fail with ENOSYS. Some functions are actually named
  7265. something starting with __ and the normal name is an alias. */
  7266. #if defined __stub_$ac_func || defined __stub___$ac_func
  7267. choke me
  7268. #endif
  7269. int
  7270. main ()
  7271. {
  7272. return $ac_func ();
  7273. ;
  7274. return 0;
  7275. }
  7276. _ACEOF
  7277. rm -f conftest.$ac_objext conftest$ac_exeext
  7278. if { (ac_try="$ac_link"
  7279. case "(($ac_try" in
  7280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7281. *) ac_try_echo=$ac_try;;
  7282. esac
  7283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7284. (eval "$ac_link") 2>conftest.er1
  7285. ac_status=$?
  7286. grep -v '^ *+' conftest.er1 >conftest.err
  7287. rm -f conftest.er1
  7288. cat conftest.err >&5
  7289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7290. (exit $ac_status); } && {
  7291. test -z "$ac_c_werror_flag" ||
  7292. test ! -s conftest.err
  7293. } && test -s conftest$ac_exeext &&
  7294. $as_test_x conftest$ac_exeext; then
  7295. eval "$as_ac_var=yes"
  7296. else
  7297. echo "$as_me: failed program was:" >&5
  7298. sed 's/^/| /' conftest.$ac_ext >&5
  7299. eval "$as_ac_var=no"
  7300. fi
  7301. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7302. conftest$ac_exeext conftest.$ac_ext
  7303. fi
  7304. ac_res=`eval echo '${'$as_ac_var'}'`
  7305. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7306. echo "${ECHO_T}$ac_res" >&6; }
  7307. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7308. cat >>confdefs.h <<_ACEOF
  7309. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7310. _ACEOF
  7311. x_io_select=yes
  7312. else
  7313. { { echo "$as_me:$LINENO: error: Can't enable select IO support!" >&5
  7314. echo "$as_me: error: Can't enable select IO support!" >&2;}
  7315. { (exit 1); exit 1; }; }
  7316. fi
  7317. done
  7318. fi
  7319. else
  7320. for ac_func in select
  7321. do
  7322. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7323. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7324. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7325. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7326. echo $ECHO_N "(cached) $ECHO_C" >&6
  7327. else
  7328. cat >conftest.$ac_ext <<_ACEOF
  7329. /* confdefs.h. */
  7330. _ACEOF
  7331. cat confdefs.h >>conftest.$ac_ext
  7332. cat >>conftest.$ac_ext <<_ACEOF
  7333. /* end confdefs.h. */
  7334. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7335. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7336. #define $ac_func innocuous_$ac_func
  7337. /* System header to define __stub macros and hopefully few prototypes,
  7338. which can conflict with char $ac_func (); below.
  7339. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7340. <limits.h> exists even on freestanding compilers. */
  7341. #ifdef __STDC__
  7342. # include <limits.h>
  7343. #else
  7344. # include <assert.h>
  7345. #endif
  7346. #undef $ac_func
  7347. /* Override any GCC internal prototype to avoid an error.
  7348. Use char because int might match the return type of a GCC
  7349. builtin and then its argument prototype would still apply. */
  7350. #ifdef __cplusplus
  7351. extern "C"
  7352. #endif
  7353. char $ac_func ();
  7354. /* The GNU C library defines this for functions which it implements
  7355. to always fail with ENOSYS. Some functions are actually named
  7356. something starting with __ and the normal name is an alias. */
  7357. #if defined __stub_$ac_func || defined __stub___$ac_func
  7358. choke me
  7359. #endif
  7360. int
  7361. main ()
  7362. {
  7363. return $ac_func ();
  7364. ;
  7365. return 0;
  7366. }
  7367. _ACEOF
  7368. rm -f conftest.$ac_objext conftest$ac_exeext
  7369. if { (ac_try="$ac_link"
  7370. case "(($ac_try" in
  7371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7372. *) ac_try_echo=$ac_try;;
  7373. esac
  7374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7375. (eval "$ac_link") 2>conftest.er1
  7376. ac_status=$?
  7377. grep -v '^ *+' conftest.er1 >conftest.err
  7378. rm -f conftest.er1
  7379. cat conftest.err >&5
  7380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7381. (exit $ac_status); } && {
  7382. test -z "$ac_c_werror_flag" ||
  7383. test ! -s conftest.err
  7384. } && test -s conftest$ac_exeext &&
  7385. $as_test_x conftest$ac_exeext; then
  7386. eval "$as_ac_var=yes"
  7387. else
  7388. echo "$as_me: failed program was:" >&5
  7389. sed 's/^/| /' conftest.$ac_ext >&5
  7390. eval "$as_ac_var=no"
  7391. fi
  7392. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7393. conftest$ac_exeext conftest.$ac_ext
  7394. fi
  7395. ac_res=`eval echo '${'$as_ac_var'}'`
  7396. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7397. echo "${ECHO_T}$ac_res" >&6; }
  7398. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7399. cat >>confdefs.h <<_ACEOF
  7400. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7401. _ACEOF
  7402. x_io_select=yes
  7403. fi
  7404. done
  7405. fi
  7406. # Check whether --with-poll was given.
  7407. if test "${with_poll+set}" = set; then
  7408. withval=$with_poll; if test "$withval" != "no"; then
  7409. if test "$withval" != "yes"; then
  7410. CFLAGS="-I$withval/include $CFLAGS"
  7411. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7412. LDFLAGS="-L$withval/lib $LDFLAGS"
  7413. fi
  7414. for ac_func in poll
  7415. do
  7416. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7417. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7418. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7419. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7420. echo $ECHO_N "(cached) $ECHO_C" >&6
  7421. else
  7422. cat >conftest.$ac_ext <<_ACEOF
  7423. /* confdefs.h. */
  7424. _ACEOF
  7425. cat confdefs.h >>conftest.$ac_ext
  7426. cat >>conftest.$ac_ext <<_ACEOF
  7427. /* end confdefs.h. */
  7428. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7429. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7430. #define $ac_func innocuous_$ac_func
  7431. /* System header to define __stub macros and hopefully few prototypes,
  7432. which can conflict with char $ac_func (); below.
  7433. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7434. <limits.h> exists even on freestanding compilers. */
  7435. #ifdef __STDC__
  7436. # include <limits.h>
  7437. #else
  7438. # include <assert.h>
  7439. #endif
  7440. #undef $ac_func
  7441. /* Override any GCC internal prototype to avoid an error.
  7442. Use char because int might match the return type of a GCC
  7443. builtin and then its argument prototype would still apply. */
  7444. #ifdef __cplusplus
  7445. extern "C"
  7446. #endif
  7447. char $ac_func ();
  7448. /* The GNU C library defines this for functions which it implements
  7449. to always fail with ENOSYS. Some functions are actually named
  7450. something starting with __ and the normal name is an alias. */
  7451. #if defined __stub_$ac_func || defined __stub___$ac_func
  7452. choke me
  7453. #endif
  7454. int
  7455. main ()
  7456. {
  7457. return $ac_func ();
  7458. ;
  7459. return 0;
  7460. }
  7461. _ACEOF
  7462. rm -f conftest.$ac_objext conftest$ac_exeext
  7463. if { (ac_try="$ac_link"
  7464. case "(($ac_try" in
  7465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7466. *) ac_try_echo=$ac_try;;
  7467. esac
  7468. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7469. (eval "$ac_link") 2>conftest.er1
  7470. ac_status=$?
  7471. grep -v '^ *+' conftest.er1 >conftest.err
  7472. rm -f conftest.er1
  7473. cat conftest.err >&5
  7474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7475. (exit $ac_status); } && {
  7476. test -z "$ac_c_werror_flag" ||
  7477. test ! -s conftest.err
  7478. } && test -s conftest$ac_exeext &&
  7479. $as_test_x conftest$ac_exeext; then
  7480. eval "$as_ac_var=yes"
  7481. else
  7482. echo "$as_me: failed program was:" >&5
  7483. sed 's/^/| /' conftest.$ac_ext >&5
  7484. eval "$as_ac_var=no"
  7485. fi
  7486. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7487. conftest$ac_exeext conftest.$ac_ext
  7488. fi
  7489. ac_res=`eval echo '${'$as_ac_var'}'`
  7490. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7491. echo "${ECHO_T}$ac_res" >&6; }
  7492. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7493. cat >>confdefs.h <<_ACEOF
  7494. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7495. _ACEOF
  7496. x_io_backend=poll\(\)
  7497. else
  7498. { { echo "$as_me:$LINENO: error: Can't enable poll IO support!" >&5
  7499. echo "$as_me: error: Can't enable poll IO support!" >&2;}
  7500. { (exit 1); exit 1; }; }
  7501. fi
  7502. done
  7503. fi
  7504. else
  7505. for ac_func in poll
  7506. do
  7507. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7508. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7509. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7510. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7511. echo $ECHO_N "(cached) $ECHO_C" >&6
  7512. else
  7513. cat >conftest.$ac_ext <<_ACEOF
  7514. /* confdefs.h. */
  7515. _ACEOF
  7516. cat confdefs.h >>conftest.$ac_ext
  7517. cat >>conftest.$ac_ext <<_ACEOF
  7518. /* end confdefs.h. */
  7519. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7520. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7521. #define $ac_func innocuous_$ac_func
  7522. /* System header to define __stub macros and hopefully few prototypes,
  7523. which can conflict with char $ac_func (); below.
  7524. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7525. <limits.h> exists even on freestanding compilers. */
  7526. #ifdef __STDC__
  7527. # include <limits.h>
  7528. #else
  7529. # include <assert.h>
  7530. #endif
  7531. #undef $ac_func
  7532. /* Override any GCC internal prototype to avoid an error.
  7533. Use char because int might match the return type of a GCC
  7534. builtin and then its argument prototype would still apply. */
  7535. #ifdef __cplusplus
  7536. extern "C"
  7537. #endif
  7538. char $ac_func ();
  7539. /* The GNU C library defines this for functions which it implements
  7540. to always fail with ENOSYS. Some functions are actually named
  7541. something starting with __ and the normal name is an alias. */
  7542. #if defined __stub_$ac_func || defined __stub___$ac_func
  7543. choke me
  7544. #endif
  7545. int
  7546. main ()
  7547. {
  7548. return $ac_func ();
  7549. ;
  7550. return 0;
  7551. }
  7552. _ACEOF
  7553. rm -f conftest.$ac_objext conftest$ac_exeext
  7554. if { (ac_try="$ac_link"
  7555. case "(($ac_try" in
  7556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7557. *) ac_try_echo=$ac_try;;
  7558. esac
  7559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7560. (eval "$ac_link") 2>conftest.er1
  7561. ac_status=$?
  7562. grep -v '^ *+' conftest.er1 >conftest.err
  7563. rm -f conftest.er1
  7564. cat conftest.err >&5
  7565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7566. (exit $ac_status); } && {
  7567. test -z "$ac_c_werror_flag" ||
  7568. test ! -s conftest.err
  7569. } && test -s conftest$ac_exeext &&
  7570. $as_test_x conftest$ac_exeext; then
  7571. eval "$as_ac_var=yes"
  7572. else
  7573. echo "$as_me: failed program was:" >&5
  7574. sed 's/^/| /' conftest.$ac_ext >&5
  7575. eval "$as_ac_var=no"
  7576. fi
  7577. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7578. conftest$ac_exeext conftest.$ac_ext
  7579. fi
  7580. ac_res=`eval echo '${'$as_ac_var'}'`
  7581. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7582. echo "${ECHO_T}$ac_res" >&6; }
  7583. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7584. cat >>confdefs.h <<_ACEOF
  7585. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7586. _ACEOF
  7587. x_io_backend=poll\(\)
  7588. fi
  7589. done
  7590. fi
  7591. # Check whether --with-devpoll was given.
  7592. if test "${with_devpoll+set}" = set; then
  7593. withval=$with_devpoll; if test "$withval" != "no"; then
  7594. if test "$withval" != "yes"; then
  7595. CFLAGS="-I$withval/include $CFLAGS"
  7596. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7597. LDFLAGS="-L$withval/lib $LDFLAGS"
  7598. fi
  7599. for ac_header in sys/devpoll.h
  7600. do
  7601. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7602. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7603. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7604. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7605. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7606. echo $ECHO_N "(cached) $ECHO_C" >&6
  7607. fi
  7608. ac_res=`eval echo '${'$as_ac_Header'}'`
  7609. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7610. echo "${ECHO_T}$ac_res" >&6; }
  7611. else
  7612. # Is the header compilable?
  7613. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7614. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7615. cat >conftest.$ac_ext <<_ACEOF
  7616. /* confdefs.h. */
  7617. _ACEOF
  7618. cat confdefs.h >>conftest.$ac_ext
  7619. cat >>conftest.$ac_ext <<_ACEOF
  7620. /* end confdefs.h. */
  7621. $ac_includes_default
  7622. #include <$ac_header>
  7623. _ACEOF
  7624. rm -f conftest.$ac_objext
  7625. if { (ac_try="$ac_compile"
  7626. case "(($ac_try" in
  7627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7628. *) ac_try_echo=$ac_try;;
  7629. esac
  7630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7631. (eval "$ac_compile") 2>conftest.er1
  7632. ac_status=$?
  7633. grep -v '^ *+' conftest.er1 >conftest.err
  7634. rm -f conftest.er1
  7635. cat conftest.err >&5
  7636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7637. (exit $ac_status); } && {
  7638. test -z "$ac_c_werror_flag" ||
  7639. test ! -s conftest.err
  7640. } && test -s conftest.$ac_objext; then
  7641. ac_header_compiler=yes
  7642. else
  7643. echo "$as_me: failed program was:" >&5
  7644. sed 's/^/| /' conftest.$ac_ext >&5
  7645. ac_header_compiler=no
  7646. fi
  7647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7648. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7649. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7650. # Is the header present?
  7651. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7652. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7653. cat >conftest.$ac_ext <<_ACEOF
  7654. /* confdefs.h. */
  7655. _ACEOF
  7656. cat confdefs.h >>conftest.$ac_ext
  7657. cat >>conftest.$ac_ext <<_ACEOF
  7658. /* end confdefs.h. */
  7659. #include <$ac_header>
  7660. _ACEOF
  7661. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7662. case "(($ac_try" in
  7663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7664. *) ac_try_echo=$ac_try;;
  7665. esac
  7666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7667. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7668. ac_status=$?
  7669. grep -v '^ *+' conftest.er1 >conftest.err
  7670. rm -f conftest.er1
  7671. cat conftest.err >&5
  7672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7673. (exit $ac_status); } >/dev/null && {
  7674. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7675. test ! -s conftest.err
  7676. }; then
  7677. ac_header_preproc=yes
  7678. else
  7679. echo "$as_me: failed program was:" >&5
  7680. sed 's/^/| /' conftest.$ac_ext >&5
  7681. ac_header_preproc=no
  7682. fi
  7683. rm -f conftest.err conftest.$ac_ext
  7684. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7685. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7686. # So? What about this header?
  7687. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7688. yes:no: )
  7689. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7690. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7691. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7692. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7693. ac_header_preproc=yes
  7694. ;;
  7695. no:yes:* )
  7696. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7697. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7698. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7699. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7700. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7701. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7702. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7703. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7704. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7705. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7706. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7707. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7708. ;;
  7709. esac
  7710. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7711. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7712. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7713. echo $ECHO_N "(cached) $ECHO_C" >&6
  7714. else
  7715. eval "$as_ac_Header=\$ac_header_preproc"
  7716. fi
  7717. ac_res=`eval echo '${'$as_ac_Header'}'`
  7718. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7719. echo "${ECHO_T}$ac_res" >&6; }
  7720. fi
  7721. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7722. cat >>confdefs.h <<_ACEOF
  7723. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7724. _ACEOF
  7725. else
  7726. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7727. echo "$as_me: error: required C header missing!" >&2;}
  7728. { (exit 1); exit 1; }; }
  7729. fi
  7730. done
  7731. fi
  7732. else
  7733. for ac_header in sys/devpoll.h
  7734. do
  7735. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7736. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7737. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7738. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7739. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7740. echo $ECHO_N "(cached) $ECHO_C" >&6
  7741. fi
  7742. ac_res=`eval echo '${'$as_ac_Header'}'`
  7743. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7744. echo "${ECHO_T}$ac_res" >&6; }
  7745. else
  7746. # Is the header compilable?
  7747. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7748. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7749. cat >conftest.$ac_ext <<_ACEOF
  7750. /* confdefs.h. */
  7751. _ACEOF
  7752. cat confdefs.h >>conftest.$ac_ext
  7753. cat >>conftest.$ac_ext <<_ACEOF
  7754. /* end confdefs.h. */
  7755. $ac_includes_default
  7756. #include <$ac_header>
  7757. _ACEOF
  7758. rm -f conftest.$ac_objext
  7759. if { (ac_try="$ac_compile"
  7760. case "(($ac_try" in
  7761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7762. *) ac_try_echo=$ac_try;;
  7763. esac
  7764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7765. (eval "$ac_compile") 2>conftest.er1
  7766. ac_status=$?
  7767. grep -v '^ *+' conftest.er1 >conftest.err
  7768. rm -f conftest.er1
  7769. cat conftest.err >&5
  7770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7771. (exit $ac_status); } && {
  7772. test -z "$ac_c_werror_flag" ||
  7773. test ! -s conftest.err
  7774. } && test -s conftest.$ac_objext; then
  7775. ac_header_compiler=yes
  7776. else
  7777. echo "$as_me: failed program was:" >&5
  7778. sed 's/^/| /' conftest.$ac_ext >&5
  7779. ac_header_compiler=no
  7780. fi
  7781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7782. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7783. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7784. # Is the header present?
  7785. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7786. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7787. cat >conftest.$ac_ext <<_ACEOF
  7788. /* confdefs.h. */
  7789. _ACEOF
  7790. cat confdefs.h >>conftest.$ac_ext
  7791. cat >>conftest.$ac_ext <<_ACEOF
  7792. /* end confdefs.h. */
  7793. #include <$ac_header>
  7794. _ACEOF
  7795. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7796. case "(($ac_try" in
  7797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7798. *) ac_try_echo=$ac_try;;
  7799. esac
  7800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7801. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7802. ac_status=$?
  7803. grep -v '^ *+' conftest.er1 >conftest.err
  7804. rm -f conftest.er1
  7805. cat conftest.err >&5
  7806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. (exit $ac_status); } >/dev/null && {
  7808. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7809. test ! -s conftest.err
  7810. }; then
  7811. ac_header_preproc=yes
  7812. else
  7813. echo "$as_me: failed program was:" >&5
  7814. sed 's/^/| /' conftest.$ac_ext >&5
  7815. ac_header_preproc=no
  7816. fi
  7817. rm -f conftest.err conftest.$ac_ext
  7818. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7819. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7820. # So? What about this header?
  7821. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7822. yes:no: )
  7823. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7824. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7825. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7826. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7827. ac_header_preproc=yes
  7828. ;;
  7829. no:yes:* )
  7830. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7831. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7832. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7833. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7834. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7835. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7836. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7837. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7838. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7839. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7840. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7841. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7842. ;;
  7843. esac
  7844. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7845. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7846. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7847. echo $ECHO_N "(cached) $ECHO_C" >&6
  7848. else
  7849. eval "$as_ac_Header=\$ac_header_preproc"
  7850. fi
  7851. ac_res=`eval echo '${'$as_ac_Header'}'`
  7852. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7853. echo "${ECHO_T}$ac_res" >&6; }
  7854. fi
  7855. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7856. cat >>confdefs.h <<_ACEOF
  7857. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7858. _ACEOF
  7859. x_io_backend=/dev/poll
  7860. fi
  7861. done
  7862. fi
  7863. # Check whether --with-epoll was given.
  7864. if test "${with_epoll+set}" = set; then
  7865. withval=$with_epoll; if test "$withval" != "no"; then
  7866. if test "$withval" != "yes"; then
  7867. CFLAGS="-I$withval/include $CFLAGS"
  7868. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7869. LDFLAGS="-L$withval/lib $LDFLAGS"
  7870. fi
  7871. for ac_func in epoll_create
  7872. do
  7873. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7874. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7875. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7876. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7877. echo $ECHO_N "(cached) $ECHO_C" >&6
  7878. else
  7879. cat >conftest.$ac_ext <<_ACEOF
  7880. /* confdefs.h. */
  7881. _ACEOF
  7882. cat confdefs.h >>conftest.$ac_ext
  7883. cat >>conftest.$ac_ext <<_ACEOF
  7884. /* end confdefs.h. */
  7885. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7886. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7887. #define $ac_func innocuous_$ac_func
  7888. /* System header to define __stub macros and hopefully few prototypes,
  7889. which can conflict with char $ac_func (); below.
  7890. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7891. <limits.h> exists even on freestanding compilers. */
  7892. #ifdef __STDC__
  7893. # include <limits.h>
  7894. #else
  7895. # include <assert.h>
  7896. #endif
  7897. #undef $ac_func
  7898. /* Override any GCC internal prototype to avoid an error.
  7899. Use char because int might match the return type of a GCC
  7900. builtin and then its argument prototype would still apply. */
  7901. #ifdef __cplusplus
  7902. extern "C"
  7903. #endif
  7904. char $ac_func ();
  7905. /* The GNU C library defines this for functions which it implements
  7906. to always fail with ENOSYS. Some functions are actually named
  7907. something starting with __ and the normal name is an alias. */
  7908. #if defined __stub_$ac_func || defined __stub___$ac_func
  7909. choke me
  7910. #endif
  7911. int
  7912. main ()
  7913. {
  7914. return $ac_func ();
  7915. ;
  7916. return 0;
  7917. }
  7918. _ACEOF
  7919. rm -f conftest.$ac_objext conftest$ac_exeext
  7920. if { (ac_try="$ac_link"
  7921. case "(($ac_try" in
  7922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7923. *) ac_try_echo=$ac_try;;
  7924. esac
  7925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7926. (eval "$ac_link") 2>conftest.er1
  7927. ac_status=$?
  7928. grep -v '^ *+' conftest.er1 >conftest.err
  7929. rm -f conftest.er1
  7930. cat conftest.err >&5
  7931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7932. (exit $ac_status); } && {
  7933. test -z "$ac_c_werror_flag" ||
  7934. test ! -s conftest.err
  7935. } && test -s conftest$ac_exeext &&
  7936. $as_test_x conftest$ac_exeext; then
  7937. eval "$as_ac_var=yes"
  7938. else
  7939. echo "$as_me: failed program was:" >&5
  7940. sed 's/^/| /' conftest.$ac_ext >&5
  7941. eval "$as_ac_var=no"
  7942. fi
  7943. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7944. conftest$ac_exeext conftest.$ac_ext
  7945. fi
  7946. ac_res=`eval echo '${'$as_ac_var'}'`
  7947. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7948. echo "${ECHO_T}$ac_res" >&6; }
  7949. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7950. cat >>confdefs.h <<_ACEOF
  7951. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7952. _ACEOF
  7953. x_io_epoll=yes
  7954. else
  7955. { { echo "$as_me:$LINENO: error: Can't enable epoll IO support!" >&5
  7956. echo "$as_me: error: Can't enable epoll IO support!" >&2;}
  7957. { (exit 1); exit 1; }; }
  7958. fi
  7959. done
  7960. fi
  7961. else
  7962. for ac_func in epoll_create
  7963. do
  7964. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7965. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7966. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7967. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7968. echo $ECHO_N "(cached) $ECHO_C" >&6
  7969. else
  7970. cat >conftest.$ac_ext <<_ACEOF
  7971. /* confdefs.h. */
  7972. _ACEOF
  7973. cat confdefs.h >>conftest.$ac_ext
  7974. cat >>conftest.$ac_ext <<_ACEOF
  7975. /* end confdefs.h. */
  7976. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7977. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7978. #define $ac_func innocuous_$ac_func
  7979. /* System header to define __stub macros and hopefully few prototypes,
  7980. which can conflict with char $ac_func (); below.
  7981. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7982. <limits.h> exists even on freestanding compilers. */
  7983. #ifdef __STDC__
  7984. # include <limits.h>
  7985. #else
  7986. # include <assert.h>
  7987. #endif
  7988. #undef $ac_func
  7989. /* Override any GCC internal prototype to avoid an error.
  7990. Use char because int might match the return type of a GCC
  7991. builtin and then its argument prototype would still apply. */
  7992. #ifdef __cplusplus
  7993. extern "C"
  7994. #endif
  7995. char $ac_func ();
  7996. /* The GNU C library defines this for functions which it implements
  7997. to always fail with ENOSYS. Some functions are actually named
  7998. something starting with __ and the normal name is an alias. */
  7999. #if defined __stub_$ac_func || defined __stub___$ac_func
  8000. choke me
  8001. #endif
  8002. int
  8003. main ()
  8004. {
  8005. return $ac_func ();
  8006. ;
  8007. return 0;
  8008. }
  8009. _ACEOF
  8010. rm -f conftest.$ac_objext conftest$ac_exeext
  8011. if { (ac_try="$ac_link"
  8012. case "(($ac_try" in
  8013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8014. *) ac_try_echo=$ac_try;;
  8015. esac
  8016. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8017. (eval "$ac_link") 2>conftest.er1
  8018. ac_status=$?
  8019. grep -v '^ *+' conftest.er1 >conftest.err
  8020. rm -f conftest.er1
  8021. cat conftest.err >&5
  8022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8023. (exit $ac_status); } && {
  8024. test -z "$ac_c_werror_flag" ||
  8025. test ! -s conftest.err
  8026. } && test -s conftest$ac_exeext &&
  8027. $as_test_x conftest$ac_exeext; then
  8028. eval "$as_ac_var=yes"
  8029. else
  8030. echo "$as_me: failed program was:" >&5
  8031. sed 's/^/| /' conftest.$ac_ext >&5
  8032. eval "$as_ac_var=no"
  8033. fi
  8034. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8035. conftest$ac_exeext conftest.$ac_ext
  8036. fi
  8037. ac_res=`eval echo '${'$as_ac_var'}'`
  8038. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8039. echo "${ECHO_T}$ac_res" >&6; }
  8040. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8041. cat >>confdefs.h <<_ACEOF
  8042. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8043. _ACEOF
  8044. x_io_epoll=yes
  8045. fi
  8046. done
  8047. fi
  8048. # Check whether --with-kqueue was given.
  8049. if test "${with_kqueue+set}" = set; then
  8050. withval=$with_kqueue; if test "$withval" != "no"; then
  8051. if test "$withval" != "yes"; then
  8052. CFLAGS="-I$withval/include $CFLAGS"
  8053. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8054. LDFLAGS="-L$withval/lib $LDFLAGS"
  8055. fi
  8056. for ac_func in kqueue
  8057. do
  8058. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8059. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8060. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8061. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8062. echo $ECHO_N "(cached) $ECHO_C" >&6
  8063. else
  8064. cat >conftest.$ac_ext <<_ACEOF
  8065. /* confdefs.h. */
  8066. _ACEOF
  8067. cat confdefs.h >>conftest.$ac_ext
  8068. cat >>conftest.$ac_ext <<_ACEOF
  8069. /* end confdefs.h. */
  8070. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8071. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8072. #define $ac_func innocuous_$ac_func
  8073. /* System header to define __stub macros and hopefully few prototypes,
  8074. which can conflict with char $ac_func (); below.
  8075. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8076. <limits.h> exists even on freestanding compilers. */
  8077. #ifdef __STDC__
  8078. # include <limits.h>
  8079. #else
  8080. # include <assert.h>
  8081. #endif
  8082. #undef $ac_func
  8083. /* Override any GCC internal prototype to avoid an error.
  8084. Use char because int might match the return type of a GCC
  8085. builtin and then its argument prototype would still apply. */
  8086. #ifdef __cplusplus
  8087. extern "C"
  8088. #endif
  8089. char $ac_func ();
  8090. /* The GNU C library defines this for functions which it implements
  8091. to always fail with ENOSYS. Some functions are actually named
  8092. something starting with __ and the normal name is an alias. */
  8093. #if defined __stub_$ac_func || defined __stub___$ac_func
  8094. choke me
  8095. #endif
  8096. int
  8097. main ()
  8098. {
  8099. return $ac_func ();
  8100. ;
  8101. return 0;
  8102. }
  8103. _ACEOF
  8104. rm -f conftest.$ac_objext conftest$ac_exeext
  8105. if { (ac_try="$ac_link"
  8106. case "(($ac_try" in
  8107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8108. *) ac_try_echo=$ac_try;;
  8109. esac
  8110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8111. (eval "$ac_link") 2>conftest.er1
  8112. ac_status=$?
  8113. grep -v '^ *+' conftest.er1 >conftest.err
  8114. rm -f conftest.er1
  8115. cat conftest.err >&5
  8116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8117. (exit $ac_status); } && {
  8118. test -z "$ac_c_werror_flag" ||
  8119. test ! -s conftest.err
  8120. } && test -s conftest$ac_exeext &&
  8121. $as_test_x conftest$ac_exeext; then
  8122. eval "$as_ac_var=yes"
  8123. else
  8124. echo "$as_me: failed program was:" >&5
  8125. sed 's/^/| /' conftest.$ac_ext >&5
  8126. eval "$as_ac_var=no"
  8127. fi
  8128. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8129. conftest$ac_exeext conftest.$ac_ext
  8130. fi
  8131. ac_res=`eval echo '${'$as_ac_var'}'`
  8132. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8133. echo "${ECHO_T}$ac_res" >&6; }
  8134. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8135. cat >>confdefs.h <<_ACEOF
  8136. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8137. _ACEOF
  8138. x_io_backend=kqueue\(\)
  8139. else
  8140. { { echo "$as_me:$LINENO: error: Can't enable kqueue IO support!" >&5
  8141. echo "$as_me: error: Can't enable kqueue IO support!" >&2;}
  8142. { (exit 1); exit 1; }; }
  8143. fi
  8144. done
  8145. fi
  8146. else
  8147. for ac_func in kqueue
  8148. do
  8149. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8150. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8151. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8152. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8153. echo $ECHO_N "(cached) $ECHO_C" >&6
  8154. else
  8155. cat >conftest.$ac_ext <<_ACEOF
  8156. /* confdefs.h. */
  8157. _ACEOF
  8158. cat confdefs.h >>conftest.$ac_ext
  8159. cat >>conftest.$ac_ext <<_ACEOF
  8160. /* end confdefs.h. */
  8161. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8162. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8163. #define $ac_func innocuous_$ac_func
  8164. /* System header to define __stub macros and hopefully few prototypes,
  8165. which can conflict with char $ac_func (); below.
  8166. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8167. <limits.h> exists even on freestanding compilers. */
  8168. #ifdef __STDC__
  8169. # include <limits.h>
  8170. #else
  8171. # include <assert.h>
  8172. #endif
  8173. #undef $ac_func
  8174. /* Override any GCC internal prototype to avoid an error.
  8175. Use char because int might match the return type of a GCC
  8176. builtin and then its argument prototype would still apply. */
  8177. #ifdef __cplusplus
  8178. extern "C"
  8179. #endif
  8180. char $ac_func ();
  8181. /* The GNU C library defines this for functions which it implements
  8182. to always fail with ENOSYS. Some functions are actually named
  8183. something starting with __ and the normal name is an alias. */
  8184. #if defined __stub_$ac_func || defined __stub___$ac_func
  8185. choke me
  8186. #endif
  8187. int
  8188. main ()
  8189. {
  8190. return $ac_func ();
  8191. ;
  8192. return 0;
  8193. }
  8194. _ACEOF
  8195. rm -f conftest.$ac_objext conftest$ac_exeext
  8196. if { (ac_try="$ac_link"
  8197. case "(($ac_try" in
  8198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8199. *) ac_try_echo=$ac_try;;
  8200. esac
  8201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8202. (eval "$ac_link") 2>conftest.er1
  8203. ac_status=$?
  8204. grep -v '^ *+' conftest.er1 >conftest.err
  8205. rm -f conftest.er1
  8206. cat conftest.err >&5
  8207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. (exit $ac_status); } && {
  8209. test -z "$ac_c_werror_flag" ||
  8210. test ! -s conftest.err
  8211. } && test -s conftest$ac_exeext &&
  8212. $as_test_x conftest$ac_exeext; then
  8213. eval "$as_ac_var=yes"
  8214. else
  8215. echo "$as_me: failed program was:" >&5
  8216. sed 's/^/| /' conftest.$ac_ext >&5
  8217. eval "$as_ac_var=no"
  8218. fi
  8219. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8220. conftest$ac_exeext conftest.$ac_ext
  8221. fi
  8222. ac_res=`eval echo '${'$as_ac_var'}'`
  8223. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8224. echo "${ECHO_T}$ac_res" >&6; }
  8225. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8226. cat >>confdefs.h <<_ACEOF
  8227. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8228. _ACEOF
  8229. x_io_backend=kqueue\(\)
  8230. fi
  8231. done
  8232. fi
  8233. if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
  8234. # when epoll() and select() are available, we'll use both!
  8235. x_io_backend="epoll(), select()"
  8236. else
  8237. if test "$x_io_epoll" = "yes"; then
  8238. # we prefere epoll() if it is available
  8239. x_io_backend="epoll()"
  8240. else
  8241. if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
  8242. # we'll use select, when available and no "better"
  8243. # interface has been detected ...
  8244. x_io_backend="select()"
  8245. fi
  8246. fi
  8247. fi
  8248. if test "$x_io_backend" = "none"; then
  8249. { { echo "$as_me:$LINENO: error: No useabe IO API activated/found!?" >&5
  8250. echo "$as_me: error: No useabe IO API activated/found!?" >&2;}
  8251. { (exit 1); exit 1; }; }
  8252. fi
  8253. # use SSL?
  8254. # Check whether --with-openssl was given.
  8255. if test "${with_openssl+set}" = set; then
  8256. withval=$with_openssl; if test "$withval" != "no"; then
  8257. if test "$withval" != "yes"; then
  8258. CFLAGS="-I$withval/include $CFLAGS"
  8259. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8260. LDFLAGS="-L$withval/lib $LDFLAGS"
  8261. fi
  8262. { echo "$as_me:$LINENO: checking for BIO_s_mem in -lcrypto" >&5
  8263. echo $ECHO_N "checking for BIO_s_mem in -lcrypto... $ECHO_C" >&6; }
  8264. if test "${ac_cv_lib_crypto_BIO_s_mem+set}" = set; then
  8265. echo $ECHO_N "(cached) $ECHO_C" >&6
  8266. else
  8267. ac_check_lib_save_LIBS=$LIBS
  8268. LIBS="-lcrypto $LIBS"
  8269. cat >conftest.$ac_ext <<_ACEOF
  8270. /* confdefs.h. */
  8271. _ACEOF
  8272. cat confdefs.h >>conftest.$ac_ext
  8273. cat >>conftest.$ac_ext <<_ACEOF
  8274. /* end confdefs.h. */
  8275. /* Override any GCC internal prototype to avoid an error.
  8276. Use char because int might match the return type of a GCC
  8277. builtin and then its argument prototype would still apply. */
  8278. #ifdef __cplusplus
  8279. extern "C"
  8280. #endif
  8281. char BIO_s_mem ();
  8282. int
  8283. main ()
  8284. {
  8285. return BIO_s_mem ();
  8286. ;
  8287. return 0;
  8288. }
  8289. _ACEOF
  8290. rm -f conftest.$ac_objext conftest$ac_exeext
  8291. if { (ac_try="$ac_link"
  8292. case "(($ac_try" in
  8293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8294. *) ac_try_echo=$ac_try;;
  8295. esac
  8296. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8297. (eval "$ac_link") 2>conftest.er1
  8298. ac_status=$?
  8299. grep -v '^ *+' conftest.er1 >conftest.err
  8300. rm -f conftest.er1
  8301. cat conftest.err >&5
  8302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8303. (exit $ac_status); } && {
  8304. test -z "$ac_c_werror_flag" ||
  8305. test ! -s conftest.err
  8306. } && test -s conftest$ac_exeext &&
  8307. $as_test_x conftest$ac_exeext; then
  8308. ac_cv_lib_crypto_BIO_s_mem=yes
  8309. else
  8310. echo "$as_me: failed program was:" >&5
  8311. sed 's/^/| /' conftest.$ac_ext >&5
  8312. ac_cv_lib_crypto_BIO_s_mem=no
  8313. fi
  8314. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8315. conftest$ac_exeext conftest.$ac_ext
  8316. LIBS=$ac_check_lib_save_LIBS
  8317. fi
  8318. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_BIO_s_mem" >&5
  8319. echo "${ECHO_T}$ac_cv_lib_crypto_BIO_s_mem" >&6; }
  8320. if test $ac_cv_lib_crypto_BIO_s_mem = yes; then
  8321. cat >>confdefs.h <<_ACEOF
  8322. #define HAVE_LIBCRYPTO 1
  8323. _ACEOF
  8324. LIBS="-lcrypto $LIBS"
  8325. fi
  8326. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  8327. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  8328. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  8329. echo $ECHO_N "(cached) $ECHO_C" >&6
  8330. else
  8331. ac_check_lib_save_LIBS=$LIBS
  8332. LIBS="-lssl $LIBS"
  8333. cat >conftest.$ac_ext <<_ACEOF
  8334. /* confdefs.h. */
  8335. _ACEOF
  8336. cat confdefs.h >>conftest.$ac_ext
  8337. cat >>conftest.$ac_ext <<_ACEOF
  8338. /* end confdefs.h. */
  8339. /* Override any GCC internal prototype to avoid an error.
  8340. Use char because int might match the return type of a GCC
  8341. builtin and then its argument prototype would still apply. */
  8342. #ifdef __cplusplus
  8343. extern "C"
  8344. #endif
  8345. char SSL_library_init ();
  8346. int
  8347. main ()
  8348. {
  8349. return SSL_library_init ();
  8350. ;
  8351. return 0;
  8352. }
  8353. _ACEOF
  8354. rm -f conftest.$ac_objext conftest$ac_exeext
  8355. if { (ac_try="$ac_link"
  8356. case "(($ac_try" in
  8357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8358. *) ac_try_echo=$ac_try;;
  8359. esac
  8360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8361. (eval "$ac_link") 2>conftest.er1
  8362. ac_status=$?
  8363. grep -v '^ *+' conftest.er1 >conftest.err
  8364. rm -f conftest.er1
  8365. cat conftest.err >&5
  8366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8367. (exit $ac_status); } && {
  8368. test -z "$ac_c_werror_flag" ||
  8369. test ! -s conftest.err
  8370. } && test -s conftest$ac_exeext &&
  8371. $as_test_x conftest$ac_exeext; then
  8372. ac_cv_lib_ssl_SSL_library_init=yes
  8373. else
  8374. echo "$as_me: failed program was:" >&5
  8375. sed 's/^/| /' conftest.$ac_ext >&5
  8376. ac_cv_lib_ssl_SSL_library_init=no
  8377. fi
  8378. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8379. conftest$ac_exeext conftest.$ac_ext
  8380. LIBS=$ac_check_lib_save_LIBS
  8381. fi
  8382. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  8383. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  8384. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  8385. cat >>confdefs.h <<_ACEOF
  8386. #define HAVE_LIBSSL 1
  8387. _ACEOF
  8388. LIBS="-lssl $LIBS"
  8389. fi
  8390. for ac_func in SSL_library_init
  8391. do
  8392. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8393. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8394. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8395. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8396. echo $ECHO_N "(cached) $ECHO_C" >&6
  8397. else
  8398. cat >conftest.$ac_ext <<_ACEOF
  8399. /* confdefs.h. */
  8400. _ACEOF
  8401. cat confdefs.h >>conftest.$ac_ext
  8402. cat >>conftest.$ac_ext <<_ACEOF
  8403. /* end confdefs.h. */
  8404. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8405. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8406. #define $ac_func innocuous_$ac_func
  8407. /* System header to define __stub macros and hopefully few prototypes,
  8408. which can conflict with char $ac_func (); below.
  8409. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8410. <limits.h> exists even on freestanding compilers. */
  8411. #ifdef __STDC__
  8412. # include <limits.h>
  8413. #else
  8414. # include <assert.h>
  8415. #endif
  8416. #undef $ac_func
  8417. /* Override any GCC internal prototype to avoid an error.
  8418. Use char because int might match the return type of a GCC
  8419. builtin and then its argument prototype would still apply. */
  8420. #ifdef __cplusplus
  8421. extern "C"
  8422. #endif
  8423. char $ac_func ();
  8424. /* The GNU C library defines this for functions which it implements
  8425. to always fail with ENOSYS. Some functions are actually named
  8426. something starting with __ and the normal name is an alias. */
  8427. #if defined __stub_$ac_func || defined __stub___$ac_func
  8428. choke me
  8429. #endif
  8430. int
  8431. main ()
  8432. {
  8433. return $ac_func ();
  8434. ;
  8435. return 0;
  8436. }
  8437. _ACEOF
  8438. rm -f conftest.$ac_objext conftest$ac_exeext
  8439. if { (ac_try="$ac_link"
  8440. case "(($ac_try" in
  8441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8442. *) ac_try_echo=$ac_try;;
  8443. esac
  8444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8445. (eval "$ac_link") 2>conftest.er1
  8446. ac_status=$?
  8447. grep -v '^ *+' conftest.er1 >conftest.err
  8448. rm -f conftest.er1
  8449. cat conftest.err >&5
  8450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8451. (exit $ac_status); } && {
  8452. test -z "$ac_c_werror_flag" ||
  8453. test ! -s conftest.err
  8454. } && test -s conftest$ac_exeext &&
  8455. $as_test_x conftest$ac_exeext; then
  8456. eval "$as_ac_var=yes"
  8457. else
  8458. echo "$as_me: failed program was:" >&5
  8459. sed 's/^/| /' conftest.$ac_ext >&5
  8460. eval "$as_ac_var=no"
  8461. fi
  8462. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8463. conftest$ac_exeext conftest.$ac_ext
  8464. fi
  8465. ac_res=`eval echo '${'$as_ac_var'}'`
  8466. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8467. echo "${ECHO_T}$ac_res" >&6; }
  8468. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8469. cat >>confdefs.h <<_ACEOF
  8470. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8471. _ACEOF
  8472. x_ssl_openssl=yes
  8473. else
  8474. { { echo "$as_me:$LINENO: error: Can't enable openssl" >&5
  8475. echo "$as_me: error: Can't enable openssl" >&2;}
  8476. { (exit 1); exit 1; }; }
  8477. fi
  8478. done
  8479. fi
  8480. fi
  8481. # Check whether --with-gnutls was given.
  8482. if test "${with_gnutls+set}" = set; then
  8483. withval=$with_gnutls; if test "$withval" != "no"; then
  8484. if test "$withval" != "yes"; then
  8485. CFLAGS="-I$withval/include $CFLAGS"
  8486. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8487. LDFLAGS="-L$withval/lib $LDFLAGS"
  8488. fi
  8489. { echo "$as_me:$LINENO: checking for gnutls_global_init in -lgnutls" >&5
  8490. echo $ECHO_N "checking for gnutls_global_init in -lgnutls... $ECHO_C" >&6; }
  8491. if test "${ac_cv_lib_gnutls_gnutls_global_init+set}" = set; then
  8492. echo $ECHO_N "(cached) $ECHO_C" >&6
  8493. else
  8494. ac_check_lib_save_LIBS=$LIBS
  8495. LIBS="-lgnutls $LIBS"
  8496. cat >conftest.$ac_ext <<_ACEOF
  8497. /* confdefs.h. */
  8498. _ACEOF
  8499. cat confdefs.h >>conftest.$ac_ext
  8500. cat >>conftest.$ac_ext <<_ACEOF
  8501. /* end confdefs.h. */
  8502. /* Override any GCC internal prototype to avoid an error.
  8503. Use char because int might match the return type of a GCC
  8504. builtin and then its argument prototype would still apply. */
  8505. #ifdef __cplusplus
  8506. extern "C"
  8507. #endif
  8508. char gnutls_global_init ();
  8509. int
  8510. main ()
  8511. {
  8512. return gnutls_global_init ();
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. rm -f conftest.$ac_objext conftest$ac_exeext
  8518. if { (ac_try="$ac_link"
  8519. case "(($ac_try" in
  8520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8521. *) ac_try_echo=$ac_try;;
  8522. esac
  8523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8524. (eval "$ac_link") 2>conftest.er1
  8525. ac_status=$?
  8526. grep -v '^ *+' conftest.er1 >conftest.err
  8527. rm -f conftest.er1
  8528. cat conftest.err >&5
  8529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8530. (exit $ac_status); } && {
  8531. test -z "$ac_c_werror_flag" ||
  8532. test ! -s conftest.err
  8533. } && test -s conftest$ac_exeext &&
  8534. $as_test_x conftest$ac_exeext; then
  8535. ac_cv_lib_gnutls_gnutls_global_init=yes
  8536. else
  8537. echo "$as_me: failed program was:" >&5
  8538. sed 's/^/| /' conftest.$ac_ext >&5
  8539. ac_cv_lib_gnutls_gnutls_global_init=no
  8540. fi
  8541. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8542. conftest$ac_exeext conftest.$ac_ext
  8543. LIBS=$ac_check_lib_save_LIBS
  8544. fi
  8545. { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
  8546. echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
  8547. if test $ac_cv_lib_gnutls_gnutls_global_init = yes; then
  8548. cat >>confdefs.h <<_ACEOF
  8549. #define HAVE_LIBGNUTLS 1
  8550. _ACEOF
  8551. LIBS="-lgnutls $LIBS"
  8552. fi
  8553. for ac_func in gnutls_global_init
  8554. do
  8555. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8556. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8557. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8558. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8559. echo $ECHO_N "(cached) $ECHO_C" >&6
  8560. else
  8561. cat >conftest.$ac_ext <<_ACEOF
  8562. /* confdefs.h. */
  8563. _ACEOF
  8564. cat confdefs.h >>conftest.$ac_ext
  8565. cat >>conftest.$ac_ext <<_ACEOF
  8566. /* end confdefs.h. */
  8567. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8568. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8569. #define $ac_func innocuous_$ac_func
  8570. /* System header to define __stub macros and hopefully few prototypes,
  8571. which can conflict with char $ac_func (); below.
  8572. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8573. <limits.h> exists even on freestanding compilers. */
  8574. #ifdef __STDC__
  8575. # include <limits.h>
  8576. #else
  8577. # include <assert.h>
  8578. #endif
  8579. #undef $ac_func
  8580. /* Override any GCC internal prototype to avoid an error.
  8581. Use char because int might match the return type of a GCC
  8582. builtin and then its argument prototype would still apply. */
  8583. #ifdef __cplusplus
  8584. extern "C"
  8585. #endif
  8586. char $ac_func ();
  8587. /* The GNU C library defines this for functions which it implements
  8588. to always fail with ENOSYS. Some functions are actually named
  8589. something starting with __ and the normal name is an alias. */
  8590. #if defined __stub_$ac_func || defined __stub___$ac_func
  8591. choke me
  8592. #endif
  8593. int
  8594. main ()
  8595. {
  8596. return $ac_func ();
  8597. ;
  8598. return 0;
  8599. }
  8600. _ACEOF
  8601. rm -f conftest.$ac_objext conftest$ac_exeext
  8602. if { (ac_try="$ac_link"
  8603. case "(($ac_try" in
  8604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8605. *) ac_try_echo=$ac_try;;
  8606. esac
  8607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8608. (eval "$ac_link") 2>conftest.er1
  8609. ac_status=$?
  8610. grep -v '^ *+' conftest.er1 >conftest.err
  8611. rm -f conftest.er1
  8612. cat conftest.err >&5
  8613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8614. (exit $ac_status); } && {
  8615. test -z "$ac_c_werror_flag" ||
  8616. test ! -s conftest.err
  8617. } && test -s conftest$ac_exeext &&
  8618. $as_test_x conftest$ac_exeext; then
  8619. eval "$as_ac_var=yes"
  8620. else
  8621. echo "$as_me: failed program was:" >&5
  8622. sed 's/^/| /' conftest.$ac_ext >&5
  8623. eval "$as_ac_var=no"
  8624. fi
  8625. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8626. conftest$ac_exeext conftest.$ac_ext
  8627. fi
  8628. ac_res=`eval echo '${'$as_ac_var'}'`
  8629. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8630. echo "${ECHO_T}$ac_res" >&6; }
  8631. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8632. cat >>confdefs.h <<_ACEOF
  8633. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8634. _ACEOF
  8635. x_ssl_gnutls=yes
  8636. else
  8637. { { echo "$as_me:$LINENO: error: Can't enable gnutls" >&5
  8638. echo "$as_me: error: Can't enable gnutls" >&2;}
  8639. { (exit 1); exit 1; }; }
  8640. fi
  8641. done
  8642. fi
  8643. fi
  8644. x_ssl_lib="no"
  8645. if test "$x_ssl_gnutls" = "yes"; then
  8646. if test "$x_ssl_openssl" = "yes";then
  8647. { { echo "$as_me:$LINENO: error: Cannot enable both gnutls and openssl" >&5
  8648. echo "$as_me: error: Cannot enable both gnutls and openssl" >&2;}
  8649. { (exit 1); exit 1; }; }
  8650. fi
  8651. x_ssl_lib=gnutls
  8652. fi
  8653. if test "$x_ssl_openssl" = "yes"; then
  8654. x_ssl_lib=openssl
  8655. fi
  8656. # use TCP wrappers?
  8657. x_tcpwrap_on=no
  8658. # Check whether --with-tcp-wrappers was given.
  8659. if test "${with_tcp_wrappers+set}" = set; then
  8660. withval=$with_tcp_wrappers; if test "$withval" != "no"; then
  8661. if test "$withval" != "yes"; then
  8662. CFLAGS="-I$withval/include $CFLAGS"
  8663. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8664. LDFLAGS="-L$withval/lib $LDFLAGS"
  8665. fi
  8666. { echo "$as_me:$LINENO: checking for hosts_access" >&5
  8667. echo $ECHO_N "checking for hosts_access... $ECHO_C" >&6; }
  8668. LIBS="-lwrap $LIBS"
  8669. cat >conftest.$ac_ext <<_ACEOF
  8670. /* confdefs.h. */
  8671. _ACEOF
  8672. cat confdefs.h >>conftest.$ac_ext
  8673. cat >>conftest.$ac_ext <<_ACEOF
  8674. /* end confdefs.h. */
  8675. #include <tcpd.h>
  8676. int allow_severity = 0;
  8677. int deny_severity = 0;
  8678. int
  8679. main ()
  8680. {
  8681. tcpd_warn("link test");
  8682. ;
  8683. return 0;
  8684. }
  8685. _ACEOF
  8686. rm -f conftest.$ac_objext conftest$ac_exeext
  8687. if { (ac_try="$ac_link"
  8688. case "(($ac_try" in
  8689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8690. *) ac_try_echo=$ac_try;;
  8691. esac
  8692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8693. (eval "$ac_link") 2>conftest.er1
  8694. ac_status=$?
  8695. grep -v '^ *+' conftest.er1 >conftest.err
  8696. rm -f conftest.er1
  8697. cat conftest.err >&5
  8698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8699. (exit $ac_status); } && {
  8700. test -z "$ac_c_werror_flag" ||
  8701. test ! -s conftest.err
  8702. } && test -s conftest$ac_exeext &&
  8703. $as_test_x conftest$ac_exeext; then
  8704. { echo "$as_me:$LINENO: result: yes" >&5
  8705. echo "${ECHO_T}yes" >&6; }
  8706. cat >>confdefs.h <<\_ACEOF
  8707. #define TCPWRAP 1
  8708. _ACEOF
  8709. x_tcpwrap_on=yes
  8710. else
  8711. echo "$as_me: failed program was:" >&5
  8712. sed 's/^/| /' conftest.$ac_ext >&5
  8713. { echo "$as_me:$LINENO: result: no" >&5
  8714. echo "${ECHO_T}no" >&6; }
  8715. { { echo "$as_me:$LINENO: error: Can't enable TCP wrappers!" >&5
  8716. echo "$as_me: error: Can't enable TCP wrappers!" >&2;}
  8717. { (exit 1); exit 1; }; }
  8718. fi
  8719. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8720. conftest$ac_exeext conftest.$ac_ext
  8721. fi
  8722. fi
  8723. # include support for "zeroconf"?
  8724. x_zeroconf_on=no
  8725. # Check whether --with-zeroconf was given.
  8726. if test "${with_zeroconf+set}" = set; then
  8727. withval=$with_zeroconf; if test "$withval" != "no"; then
  8728. if test "$withval" != "yes"; then
  8729. CFLAGS="-I$withval/include $CFLAGS"
  8730. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8731. LDFLAGS="-L$withval/lib $LDFLAGS"
  8732. fi
  8733. for ac_func in DNSServiceRegistrationCreate
  8734. do
  8735. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8736. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8737. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8738. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8739. echo $ECHO_N "(cached) $ECHO_C" >&6
  8740. else
  8741. cat >conftest.$ac_ext <<_ACEOF
  8742. /* confdefs.h. */
  8743. _ACEOF
  8744. cat confdefs.h >>conftest.$ac_ext
  8745. cat >>conftest.$ac_ext <<_ACEOF
  8746. /* end confdefs.h. */
  8747. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8748. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8749. #define $ac_func innocuous_$ac_func
  8750. /* System header to define __stub macros and hopefully few prototypes,
  8751. which can conflict with char $ac_func (); below.
  8752. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8753. <limits.h> exists even on freestanding compilers. */
  8754. #ifdef __STDC__
  8755. # include <limits.h>
  8756. #else
  8757. # include <assert.h>
  8758. #endif
  8759. #undef $ac_func
  8760. /* Override any GCC internal prototype to avoid an error.
  8761. Use char because int might match the return type of a GCC
  8762. builtin and then its argument prototype would still apply. */
  8763. #ifdef __cplusplus
  8764. extern "C"
  8765. #endif
  8766. char $ac_func ();
  8767. /* The GNU C library defines this for functions which it implements
  8768. to always fail with ENOSYS. Some functions are actually named
  8769. something starting with __ and the normal name is an alias. */
  8770. #if defined __stub_$ac_func || defined __stub___$ac_func
  8771. choke me
  8772. #endif
  8773. int
  8774. main ()
  8775. {
  8776. return $ac_func ();
  8777. ;
  8778. return 0;
  8779. }
  8780. _ACEOF
  8781. rm -f conftest.$ac_objext conftest$ac_exeext
  8782. if { (ac_try="$ac_link"
  8783. case "(($ac_try" in
  8784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8785. *) ac_try_echo=$ac_try;;
  8786. esac
  8787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8788. (eval "$ac_link") 2>conftest.er1
  8789. ac_status=$?
  8790. grep -v '^ *+' conftest.er1 >conftest.err
  8791. rm -f conftest.er1
  8792. cat conftest.err >&5
  8793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8794. (exit $ac_status); } && {
  8795. test -z "$ac_c_werror_flag" ||
  8796. test ! -s conftest.err
  8797. } && test -s conftest$ac_exeext &&
  8798. $as_test_x conftest$ac_exeext; then
  8799. eval "$as_ac_var=yes"
  8800. else
  8801. echo "$as_me: failed program was:" >&5
  8802. sed 's/^/| /' conftest.$ac_ext >&5
  8803. eval "$as_ac_var=no"
  8804. fi
  8805. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8806. conftest$ac_exeext conftest.$ac_ext
  8807. fi
  8808. ac_res=`eval echo '${'$as_ac_var'}'`
  8809. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8810. echo "${ECHO_T}$ac_res" >&6; }
  8811. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8812. cat >>confdefs.h <<_ACEOF
  8813. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8814. _ACEOF
  8815. x_zeroconf_on=osx
  8816. else
  8817. { echo "$as_me:$LINENO: checking for pthread_mutexattr_init in -lpthread" >&5
  8818. echo $ECHO_N "checking for pthread_mutexattr_init in -lpthread... $ECHO_C" >&6; }
  8819. if test "${ac_cv_lib_pthread_pthread_mutexattr_init+set}" = set; then
  8820. echo $ECHO_N "(cached) $ECHO_C" >&6
  8821. else
  8822. ac_check_lib_save_LIBS=$LIBS
  8823. LIBS="-lpthread $LIBS"
  8824. cat >conftest.$ac_ext <<_ACEOF
  8825. /* confdefs.h. */
  8826. _ACEOF
  8827. cat confdefs.h >>conftest.$ac_ext
  8828. cat >>conftest.$ac_ext <<_ACEOF
  8829. /* end confdefs.h. */
  8830. /* Override any GCC internal prototype to avoid an error.
  8831. Use char because int might match the return type of a GCC
  8832. builtin and then its argument prototype would still apply. */
  8833. #ifdef __cplusplus
  8834. extern "C"
  8835. #endif
  8836. char pthread_mutexattr_init ();
  8837. int
  8838. main ()
  8839. {
  8840. return pthread_mutexattr_init ();
  8841. ;
  8842. return 0;
  8843. }
  8844. _ACEOF
  8845. rm -f conftest.$ac_objext conftest$ac_exeext
  8846. if { (ac_try="$ac_link"
  8847. case "(($ac_try" in
  8848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8849. *) ac_try_echo=$ac_try;;
  8850. esac
  8851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8852. (eval "$ac_link") 2>conftest.er1
  8853. ac_status=$?
  8854. grep -v '^ *+' conftest.er1 >conftest.err
  8855. rm -f conftest.er1
  8856. cat conftest.err >&5
  8857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8858. (exit $ac_status); } && {
  8859. test -z "$ac_c_werror_flag" ||
  8860. test ! -s conftest.err
  8861. } && test -s conftest$ac_exeext &&
  8862. $as_test_x conftest$ac_exeext; then
  8863. ac_cv_lib_pthread_pthread_mutexattr_init=yes
  8864. else
  8865. echo "$as_me: failed program was:" >&5
  8866. sed 's/^/| /' conftest.$ac_ext >&5
  8867. ac_cv_lib_pthread_pthread_mutexattr_init=no
  8868. fi
  8869. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8870. conftest$ac_exeext conftest.$ac_ext
  8871. LIBS=$ac_check_lib_save_LIBS
  8872. fi
  8873. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_init" >&5
  8874. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_init" >&6; }
  8875. if test $ac_cv_lib_pthread_pthread_mutexattr_init = yes; then
  8876. cat >>confdefs.h <<_ACEOF
  8877. #define HAVE_LIBPTHREAD 1
  8878. _ACEOF
  8879. LIBS="-lpthread $LIBS"
  8880. fi
  8881. { echo "$as_me:$LINENO: checking for sw_discovery_init in -lhowl" >&5
  8882. echo $ECHO_N "checking for sw_discovery_init in -lhowl... $ECHO_C" >&6; }
  8883. if test "${ac_cv_lib_howl_sw_discovery_init+set}" = set; then
  8884. echo $ECHO_N "(cached) $ECHO_C" >&6
  8885. else
  8886. ac_check_lib_save_LIBS=$LIBS
  8887. LIBS="-lhowl $LIBS"
  8888. cat >conftest.$ac_ext <<_ACEOF
  8889. /* confdefs.h. */
  8890. _ACEOF
  8891. cat confdefs.h >>conftest.$ac_ext
  8892. cat >>conftest.$ac_ext <<_ACEOF
  8893. /* end confdefs.h. */
  8894. /* Override any GCC internal prototype to avoid an error.
  8895. Use char because int might match the return type of a GCC
  8896. builtin and then its argument prototype would still apply. */
  8897. #ifdef __cplusplus
  8898. extern "C"
  8899. #endif
  8900. char sw_discovery_init ();
  8901. int
  8902. main ()
  8903. {
  8904. return sw_discovery_init ();
  8905. ;
  8906. return 0;
  8907. }
  8908. _ACEOF
  8909. rm -f conftest.$ac_objext conftest$ac_exeext
  8910. if { (ac_try="$ac_link"
  8911. case "(($ac_try" in
  8912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8913. *) ac_try_echo=$ac_try;;
  8914. esac
  8915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8916. (eval "$ac_link") 2>conftest.er1
  8917. ac_status=$?
  8918. grep -v '^ *+' conftest.er1 >conftest.err
  8919. rm -f conftest.er1
  8920. cat conftest.err >&5
  8921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8922. (exit $ac_status); } && {
  8923. test -z "$ac_c_werror_flag" ||
  8924. test ! -s conftest.err
  8925. } && test -s conftest$ac_exeext &&
  8926. $as_test_x conftest$ac_exeext; then
  8927. ac_cv_lib_howl_sw_discovery_init=yes
  8928. else
  8929. echo "$as_me: failed program was:" >&5
  8930. sed 's/^/| /' conftest.$ac_ext >&5
  8931. ac_cv_lib_howl_sw_discovery_init=no
  8932. fi
  8933. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8934. conftest$ac_exeext conftest.$ac_ext
  8935. LIBS=$ac_check_lib_save_LIBS
  8936. fi
  8937. { echo "$as_me:$LINENO: result: $ac_cv_lib_howl_sw_discovery_init" >&5
  8938. echo "${ECHO_T}$ac_cv_lib_howl_sw_discovery_init" >&6; }
  8939. if test $ac_cv_lib_howl_sw_discovery_init = yes; then
  8940. cat >>confdefs.h <<_ACEOF
  8941. #define HAVE_LIBHOWL 1
  8942. _ACEOF
  8943. LIBS="-lhowl $LIBS"
  8944. fi
  8945. for ac_func in sw_discovery_init
  8946. do
  8947. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8948. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8949. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8950. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8951. echo $ECHO_N "(cached) $ECHO_C" >&6
  8952. else
  8953. cat >conftest.$ac_ext <<_ACEOF
  8954. /* confdefs.h. */
  8955. _ACEOF
  8956. cat confdefs.h >>conftest.$ac_ext
  8957. cat >>conftest.$ac_ext <<_ACEOF
  8958. /* end confdefs.h. */
  8959. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8960. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8961. #define $ac_func innocuous_$ac_func
  8962. /* System header to define __stub macros and hopefully few prototypes,
  8963. which can conflict with char $ac_func (); below.
  8964. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8965. <limits.h> exists even on freestanding compilers. */
  8966. #ifdef __STDC__
  8967. # include <limits.h>
  8968. #else
  8969. # include <assert.h>
  8970. #endif
  8971. #undef $ac_func
  8972. /* Override any GCC internal prototype to avoid an error.
  8973. Use char because int might match the return type of a GCC
  8974. builtin and then its argument prototype would still apply. */
  8975. #ifdef __cplusplus
  8976. extern "C"
  8977. #endif
  8978. char $ac_func ();
  8979. /* The GNU C library defines this for functions which it implements
  8980. to always fail with ENOSYS. Some functions are actually named
  8981. something starting with __ and the normal name is an alias. */
  8982. #if defined __stub_$ac_func || defined __stub___$ac_func
  8983. choke me
  8984. #endif
  8985. int
  8986. main ()
  8987. {
  8988. return $ac_func ();
  8989. ;
  8990. return 0;
  8991. }
  8992. _ACEOF
  8993. rm -f conftest.$ac_objext conftest$ac_exeext
  8994. if { (ac_try="$ac_link"
  8995. case "(($ac_try" in
  8996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8997. *) ac_try_echo=$ac_try;;
  8998. esac
  8999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9000. (eval "$ac_link") 2>conftest.er1
  9001. ac_status=$?
  9002. grep -v '^ *+' conftest.er1 >conftest.err
  9003. rm -f conftest.er1
  9004. cat conftest.err >&5
  9005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9006. (exit $ac_status); } && {
  9007. test -z "$ac_c_werror_flag" ||
  9008. test ! -s conftest.err
  9009. } && test -s conftest$ac_exeext &&
  9010. $as_test_x conftest$ac_exeext; then
  9011. eval "$as_ac_var=yes"
  9012. else
  9013. echo "$as_me: failed program was:" >&5
  9014. sed 's/^/| /' conftest.$ac_ext >&5
  9015. eval "$as_ac_var=no"
  9016. fi
  9017. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9018. conftest$ac_exeext conftest.$ac_ext
  9019. fi
  9020. ac_res=`eval echo '${'$as_ac_var'}'`
  9021. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9022. echo "${ECHO_T}$ac_res" >&6; }
  9023. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9024. cat >>confdefs.h <<_ACEOF
  9025. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9026. _ACEOF
  9027. \
  9028. x_zeroconf_on=howl
  9029. else
  9030. \
  9031. { { echo "$as_me:$LINENO: error: Can't enable Zeroconf!" >&5
  9032. echo "$as_me: error: Can't enable Zeroconf!" >&2;}
  9033. { (exit 1); exit 1; }; }
  9034. fi
  9035. done
  9036. fi
  9037. done
  9038. fi
  9039. fi
  9040. if test "$x_zeroconf_on" = "osx"; then
  9041. for ac_header in DNSServiceDiscovery/DNSServiceDiscovery.h \
  9042. mach/port.h
  9043. do
  9044. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9045. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9046. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9047. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9048. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9049. echo $ECHO_N "(cached) $ECHO_C" >&6
  9050. fi
  9051. ac_res=`eval echo '${'$as_ac_Header'}'`
  9052. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9053. echo "${ECHO_T}$ac_res" >&6; }
  9054. else
  9055. # Is the header compilable?
  9056. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9057. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9058. cat >conftest.$ac_ext <<_ACEOF
  9059. /* confdefs.h. */
  9060. _ACEOF
  9061. cat confdefs.h >>conftest.$ac_ext
  9062. cat >>conftest.$ac_ext <<_ACEOF
  9063. /* end confdefs.h. */
  9064. $ac_includes_default
  9065. #include <$ac_header>
  9066. _ACEOF
  9067. rm -f conftest.$ac_objext
  9068. if { (ac_try="$ac_compile"
  9069. case "(($ac_try" in
  9070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9071. *) ac_try_echo=$ac_try;;
  9072. esac
  9073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9074. (eval "$ac_compile") 2>conftest.er1
  9075. ac_status=$?
  9076. grep -v '^ *+' conftest.er1 >conftest.err
  9077. rm -f conftest.er1
  9078. cat conftest.err >&5
  9079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9080. (exit $ac_status); } && {
  9081. test -z "$ac_c_werror_flag" ||
  9082. test ! -s conftest.err
  9083. } && test -s conftest.$ac_objext; then
  9084. ac_header_compiler=yes
  9085. else
  9086. echo "$as_me: failed program was:" >&5
  9087. sed 's/^/| /' conftest.$ac_ext >&5
  9088. ac_header_compiler=no
  9089. fi
  9090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9091. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9092. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9093. # Is the header present?
  9094. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9095. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9096. cat >conftest.$ac_ext <<_ACEOF
  9097. /* confdefs.h. */
  9098. _ACEOF
  9099. cat confdefs.h >>conftest.$ac_ext
  9100. cat >>conftest.$ac_ext <<_ACEOF
  9101. /* end confdefs.h. */
  9102. #include <$ac_header>
  9103. _ACEOF
  9104. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9105. case "(($ac_try" in
  9106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9107. *) ac_try_echo=$ac_try;;
  9108. esac
  9109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9110. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9111. ac_status=$?
  9112. grep -v '^ *+' conftest.er1 >conftest.err
  9113. rm -f conftest.er1
  9114. cat conftest.err >&5
  9115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9116. (exit $ac_status); } >/dev/null && {
  9117. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9118. test ! -s conftest.err
  9119. }; then
  9120. ac_header_preproc=yes
  9121. else
  9122. echo "$as_me: failed program was:" >&5
  9123. sed 's/^/| /' conftest.$ac_ext >&5
  9124. ac_header_preproc=no
  9125. fi
  9126. rm -f conftest.err conftest.$ac_ext
  9127. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9128. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9129. # So? What about this header?
  9130. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9131. yes:no: )
  9132. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9133. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9134. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9135. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9136. ac_header_preproc=yes
  9137. ;;
  9138. no:yes:* )
  9139. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9140. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9141. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9142. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9143. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9144. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9145. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9146. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9147. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9148. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9149. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9150. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9151. ;;
  9152. esac
  9153. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9154. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9155. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9156. echo $ECHO_N "(cached) $ECHO_C" >&6
  9157. else
  9158. eval "$as_ac_Header=\$ac_header_preproc"
  9159. fi
  9160. ac_res=`eval echo '${'$as_ac_Header'}'`
  9161. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9162. echo "${ECHO_T}$ac_res" >&6; }
  9163. fi
  9164. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9165. cat >>confdefs.h <<_ACEOF
  9166. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9167. _ACEOF
  9168. else
  9169. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  9170. echo "$as_me: error: required C header missing!" >&2;}
  9171. { (exit 1); exit 1; }; }
  9172. fi
  9173. done
  9174. cat >>confdefs.h <<\_ACEOF
  9175. #define ZEROCONF 1
  9176. _ACEOF
  9177. fi
  9178. if test "$x_zeroconf_on" = "howl"; then
  9179. for dir in /usr/local/include /usr/local/include/howl* \
  9180. /usr/include /usr/include/howl* \
  9181. /usr/local/include/avahi* /usr/include/avahi*; do
  9182. test -d "$dir" || continue
  9183. { echo "$as_me:$LINENO: checking for Howl headers in $dir" >&5
  9184. echo $ECHO_N "checking for Howl headers in $dir... $ECHO_C" >&6; }
  9185. if test -f "$dir/rendezvous/rendezvous.h"; then
  9186. if test "$dir" != "/usr/local/include" -a \
  9187. "$dir" != "/usr/include"; then
  9188. CFLAGS="-I$dir $CFLAGS"
  9189. CPPFLAGS="-I$dir $CPPFLAGS"
  9190. fi
  9191. { echo "$as_me:$LINENO: result: yes" >&5
  9192. echo "${ECHO_T}yes" >&6; }
  9193. break
  9194. else
  9195. { echo "$as_me:$LINENO: result: no" >&5
  9196. echo "${ECHO_T}no" >&6; }
  9197. fi
  9198. done
  9199. for ac_header in rendezvous/rendezvous.h
  9200. do
  9201. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9202. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9203. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9204. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9205. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9206. echo $ECHO_N "(cached) $ECHO_C" >&6
  9207. fi
  9208. ac_res=`eval echo '${'$as_ac_Header'}'`
  9209. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9210. echo "${ECHO_T}$ac_res" >&6; }
  9211. else
  9212. # Is the header compilable?
  9213. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9214. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9215. cat >conftest.$ac_ext <<_ACEOF
  9216. /* confdefs.h. */
  9217. _ACEOF
  9218. cat confdefs.h >>conftest.$ac_ext
  9219. cat >>conftest.$ac_ext <<_ACEOF
  9220. /* end confdefs.h. */
  9221. $ac_includes_default
  9222. #include <$ac_header>
  9223. _ACEOF
  9224. rm -f conftest.$ac_objext
  9225. if { (ac_try="$ac_compile"
  9226. case "(($ac_try" in
  9227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9228. *) ac_try_echo=$ac_try;;
  9229. esac
  9230. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9231. (eval "$ac_compile") 2>conftest.er1
  9232. ac_status=$?
  9233. grep -v '^ *+' conftest.er1 >conftest.err
  9234. rm -f conftest.er1
  9235. cat conftest.err >&5
  9236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9237. (exit $ac_status); } && {
  9238. test -z "$ac_c_werror_flag" ||
  9239. test ! -s conftest.err
  9240. } && test -s conftest.$ac_objext; then
  9241. ac_header_compiler=yes
  9242. else
  9243. echo "$as_me: failed program was:" >&5
  9244. sed 's/^/| /' conftest.$ac_ext >&5
  9245. ac_header_compiler=no
  9246. fi
  9247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9248. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9249. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9250. # Is the header present?
  9251. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9252. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9253. cat >conftest.$ac_ext <<_ACEOF
  9254. /* confdefs.h. */
  9255. _ACEOF
  9256. cat confdefs.h >>conftest.$ac_ext
  9257. cat >>conftest.$ac_ext <<_ACEOF
  9258. /* end confdefs.h. */
  9259. #include <$ac_header>
  9260. _ACEOF
  9261. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9262. case "(($ac_try" in
  9263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9264. *) ac_try_echo=$ac_try;;
  9265. esac
  9266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9267. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9268. ac_status=$?
  9269. grep -v '^ *+' conftest.er1 >conftest.err
  9270. rm -f conftest.er1
  9271. cat conftest.err >&5
  9272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9273. (exit $ac_status); } >/dev/null && {
  9274. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9275. test ! -s conftest.err
  9276. }; then
  9277. ac_header_preproc=yes
  9278. else
  9279. echo "$as_me: failed program was:" >&5
  9280. sed 's/^/| /' conftest.$ac_ext >&5
  9281. ac_header_preproc=no
  9282. fi
  9283. rm -f conftest.err conftest.$ac_ext
  9284. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9285. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9286. # So? What about this header?
  9287. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9288. yes:no: )
  9289. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9290. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9291. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9292. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9293. ac_header_preproc=yes
  9294. ;;
  9295. no:yes:* )
  9296. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9297. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9298. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9299. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9300. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9301. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9302. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9303. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9304. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9305. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9306. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9307. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9308. ;;
  9309. esac
  9310. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9311. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9312. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9313. echo $ECHO_N "(cached) $ECHO_C" >&6
  9314. else
  9315. eval "$as_ac_Header=\$ac_header_preproc"
  9316. fi
  9317. ac_res=`eval echo '${'$as_ac_Header'}'`
  9318. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9319. echo "${ECHO_T}$ac_res" >&6; }
  9320. fi
  9321. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9322. cat >>confdefs.h <<_ACEOF
  9323. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9324. _ACEOF
  9325. else
  9326. \
  9327. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  9328. echo "$as_me: error: required C header missing!" >&2;}
  9329. { (exit 1); exit 1; }; }
  9330. fi
  9331. done
  9332. cat >>confdefs.h <<\_ACEOF
  9333. #define ZEROCONF 1
  9334. _ACEOF
  9335. fi
  9336. # do IDENT requests using libident?
  9337. x_identauth_on=no
  9338. # Check whether --with-ident was given.
  9339. if test "${with_ident+set}" = set; then
  9340. withval=$with_ident; if test "$withval" != "no"; then
  9341. if test "$withval" != "yes"; then
  9342. CFLAGS="-I$withval/include $CFLAGS"
  9343. CPPFLAGS="-I$withval/include $CPPFLAGS"
  9344. LDFLAGS="-L$withval/lib $LDFLAGS"
  9345. fi
  9346. { echo "$as_me:$LINENO: checking for ident_id in -lident" >&5
  9347. echo $ECHO_N "checking for ident_id in -lident... $ECHO_C" >&6; }
  9348. if test "${ac_cv_lib_ident_ident_id+set}" = set; then
  9349. echo $ECHO_N "(cached) $ECHO_C" >&6
  9350. else
  9351. ac_check_lib_save_LIBS=$LIBS
  9352. LIBS="-lident $LIBS"
  9353. cat >conftest.$ac_ext <<_ACEOF
  9354. /* confdefs.h. */
  9355. _ACEOF
  9356. cat confdefs.h >>conftest.$ac_ext
  9357. cat >>conftest.$ac_ext <<_ACEOF
  9358. /* end confdefs.h. */
  9359. /* Override any GCC internal prototype to avoid an error.
  9360. Use char because int might match the return type of a GCC
  9361. builtin and then its argument prototype would still apply. */
  9362. #ifdef __cplusplus
  9363. extern "C"
  9364. #endif
  9365. char ident_id ();
  9366. int
  9367. main ()
  9368. {
  9369. return ident_id ();
  9370. ;
  9371. return 0;
  9372. }
  9373. _ACEOF
  9374. rm -f conftest.$ac_objext conftest$ac_exeext
  9375. if { (ac_try="$ac_link"
  9376. case "(($ac_try" in
  9377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9378. *) ac_try_echo=$ac_try;;
  9379. esac
  9380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9381. (eval "$ac_link") 2>conftest.er1
  9382. ac_status=$?
  9383. grep -v '^ *+' conftest.er1 >conftest.err
  9384. rm -f conftest.er1
  9385. cat conftest.err >&5
  9386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9387. (exit $ac_status); } && {
  9388. test -z "$ac_c_werror_flag" ||
  9389. test ! -s conftest.err
  9390. } && test -s conftest$ac_exeext &&
  9391. $as_test_x conftest$ac_exeext; then
  9392. ac_cv_lib_ident_ident_id=yes
  9393. else
  9394. echo "$as_me: failed program was:" >&5
  9395. sed 's/^/| /' conftest.$ac_ext >&5
  9396. ac_cv_lib_ident_ident_id=no
  9397. fi
  9398. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9399. conftest$ac_exeext conftest.$ac_ext
  9400. LIBS=$ac_check_lib_save_LIBS
  9401. fi
  9402. { echo "$as_me:$LINENO: result: $ac_cv_lib_ident_ident_id" >&5
  9403. echo "${ECHO_T}$ac_cv_lib_ident_ident_id" >&6; }
  9404. if test $ac_cv_lib_ident_ident_id = yes; then
  9405. cat >>confdefs.h <<_ACEOF
  9406. #define HAVE_LIBIDENT 1
  9407. _ACEOF
  9408. LIBS="-lident $LIBS"
  9409. fi
  9410. for ac_func in ident_id
  9411. do
  9412. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9413. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9414. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9415. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9416. echo $ECHO_N "(cached) $ECHO_C" >&6
  9417. else
  9418. cat >conftest.$ac_ext <<_ACEOF
  9419. /* confdefs.h. */
  9420. _ACEOF
  9421. cat confdefs.h >>conftest.$ac_ext
  9422. cat >>conftest.$ac_ext <<_ACEOF
  9423. /* end confdefs.h. */
  9424. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9425. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9426. #define $ac_func innocuous_$ac_func
  9427. /* System header to define __stub macros and hopefully few prototypes,
  9428. which can conflict with char $ac_func (); below.
  9429. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9430. <limits.h> exists even on freestanding compilers. */
  9431. #ifdef __STDC__
  9432. # include <limits.h>
  9433. #else
  9434. # include <assert.h>
  9435. #endif
  9436. #undef $ac_func
  9437. /* Override any GCC internal prototype to avoid an error.
  9438. Use char because int might match the return type of a GCC
  9439. builtin and then its argument prototype would still apply. */
  9440. #ifdef __cplusplus
  9441. extern "C"
  9442. #endif
  9443. char $ac_func ();
  9444. /* The GNU C library defines this for functions which it implements
  9445. to always fail with ENOSYS. Some functions are actually named
  9446. something starting with __ and the normal name is an alias. */
  9447. #if defined __stub_$ac_func || defined __stub___$ac_func
  9448. choke me
  9449. #endif
  9450. int
  9451. main ()
  9452. {
  9453. return $ac_func ();
  9454. ;
  9455. return 0;
  9456. }
  9457. _ACEOF
  9458. rm -f conftest.$ac_objext conftest$ac_exeext
  9459. if { (ac_try="$ac_link"
  9460. case "(($ac_try" in
  9461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9462. *) ac_try_echo=$ac_try;;
  9463. esac
  9464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9465. (eval "$ac_link") 2>conftest.er1
  9466. ac_status=$?
  9467. grep -v '^ *+' conftest.er1 >conftest.err
  9468. rm -f conftest.er1
  9469. cat conftest.err >&5
  9470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9471. (exit $ac_status); } && {
  9472. test -z "$ac_c_werror_flag" ||
  9473. test ! -s conftest.err
  9474. } && test -s conftest$ac_exeext &&
  9475. $as_test_x conftest$ac_exeext; then
  9476. eval "$as_ac_var=yes"
  9477. else
  9478. echo "$as_me: failed program was:" >&5
  9479. sed 's/^/| /' conftest.$ac_ext >&5
  9480. eval "$as_ac_var=no"
  9481. fi
  9482. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9483. conftest$ac_exeext conftest.$ac_ext
  9484. fi
  9485. ac_res=`eval echo '${'$as_ac_var'}'`
  9486. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9487. echo "${ECHO_T}$ac_res" >&6; }
  9488. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9489. cat >>confdefs.h <<_ACEOF
  9490. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9491. _ACEOF
  9492. x_identauth_on=yes
  9493. else
  9494. { { echo "$as_me:$LINENO: error: Can't enable IDENT support!" >&5
  9495. echo "$as_me: error: Can't enable IDENT support!" >&2;}
  9496. { (exit 1); exit 1; }; }
  9497. fi
  9498. done
  9499. fi
  9500. fi
  9501. if test "$x_identauth_on" = "yes"; then
  9502. cat >>confdefs.h <<\_ACEOF
  9503. #define IDENTAUTH 1
  9504. _ACEOF
  9505. for ac_header in ident.h
  9506. do
  9507. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9508. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9509. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9510. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9511. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9512. echo $ECHO_N "(cached) $ECHO_C" >&6
  9513. fi
  9514. ac_res=`eval echo '${'$as_ac_Header'}'`
  9515. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9516. echo "${ECHO_T}$ac_res" >&6; }
  9517. else
  9518. # Is the header compilable?
  9519. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9520. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9521. cat >conftest.$ac_ext <<_ACEOF
  9522. /* confdefs.h. */
  9523. _ACEOF
  9524. cat confdefs.h >>conftest.$ac_ext
  9525. cat >>conftest.$ac_ext <<_ACEOF
  9526. /* end confdefs.h. */
  9527. $ac_includes_default
  9528. #include <$ac_header>
  9529. _ACEOF
  9530. rm -f conftest.$ac_objext
  9531. if { (ac_try="$ac_compile"
  9532. case "(($ac_try" in
  9533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9534. *) ac_try_echo=$ac_try;;
  9535. esac
  9536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9537. (eval "$ac_compile") 2>conftest.er1
  9538. ac_status=$?
  9539. grep -v '^ *+' conftest.er1 >conftest.err
  9540. rm -f conftest.er1
  9541. cat conftest.err >&5
  9542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9543. (exit $ac_status); } && {
  9544. test -z "$ac_c_werror_flag" ||
  9545. test ! -s conftest.err
  9546. } && test -s conftest.$ac_objext; then
  9547. ac_header_compiler=yes
  9548. else
  9549. echo "$as_me: failed program was:" >&5
  9550. sed 's/^/| /' conftest.$ac_ext >&5
  9551. ac_header_compiler=no
  9552. fi
  9553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9554. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9555. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9556. # Is the header present?
  9557. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9558. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9559. cat >conftest.$ac_ext <<_ACEOF
  9560. /* confdefs.h. */
  9561. _ACEOF
  9562. cat confdefs.h >>conftest.$ac_ext
  9563. cat >>conftest.$ac_ext <<_ACEOF
  9564. /* end confdefs.h. */
  9565. #include <$ac_header>
  9566. _ACEOF
  9567. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9568. case "(($ac_try" in
  9569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9570. *) ac_try_echo=$ac_try;;
  9571. esac
  9572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9573. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9574. ac_status=$?
  9575. grep -v '^ *+' conftest.er1 >conftest.err
  9576. rm -f conftest.er1
  9577. cat conftest.err >&5
  9578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9579. (exit $ac_status); } >/dev/null && {
  9580. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9581. test ! -s conftest.err
  9582. }; then
  9583. ac_header_preproc=yes
  9584. else
  9585. echo "$as_me: failed program was:" >&5
  9586. sed 's/^/| /' conftest.$ac_ext >&5
  9587. ac_header_preproc=no
  9588. fi
  9589. rm -f conftest.err conftest.$ac_ext
  9590. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9591. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9592. # So? What about this header?
  9593. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9594. yes:no: )
  9595. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9596. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9597. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9598. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9599. ac_header_preproc=yes
  9600. ;;
  9601. no:yes:* )
  9602. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9603. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9604. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9605. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9606. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9607. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9608. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9609. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9610. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9611. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9612. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9613. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9614. ;;
  9615. esac
  9616. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9617. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9618. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9619. echo $ECHO_N "(cached) $ECHO_C" >&6
  9620. else
  9621. eval "$as_ac_Header=\$ac_header_preproc"
  9622. fi
  9623. ac_res=`eval echo '${'$as_ac_Header'}'`
  9624. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9625. echo "${ECHO_T}$ac_res" >&6; }
  9626. fi
  9627. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9628. cat >>confdefs.h <<_ACEOF
  9629. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9630. _ACEOF
  9631. else
  9632. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  9633. echo "$as_me: error: required C header missing!" >&2;}
  9634. { (exit 1); exit 1; }; }
  9635. fi
  9636. done
  9637. fi
  9638. # compile in PAM support?
  9639. x_pam_on=no
  9640. # Check whether --with-pam was given.
  9641. if test "${with_pam+set}" = set; then
  9642. withval=$with_pam; if test "$withval" != "no"; then
  9643. if test "$withval" != "yes"; then
  9644. CFLAGS="-I$withval/include $CFLAGS"
  9645. CPPFLAGS="-I$withval/include $CPPFLAGS"
  9646. LDFLAGS="-L$withval/lib $LDFLAGS"
  9647. fi
  9648. { echo "$as_me:$LINENO: checking for pam_authenticate in -lpam" >&5
  9649. echo $ECHO_N "checking for pam_authenticate in -lpam... $ECHO_C" >&6; }
  9650. if test "${ac_cv_lib_pam_pam_authenticate+set}" = set; then
  9651. echo $ECHO_N "(cached) $ECHO_C" >&6
  9652. else
  9653. ac_check_lib_save_LIBS=$LIBS
  9654. LIBS="-lpam $LIBS"
  9655. cat >conftest.$ac_ext <<_ACEOF
  9656. /* confdefs.h. */
  9657. _ACEOF
  9658. cat confdefs.h >>conftest.$ac_ext
  9659. cat >>conftest.$ac_ext <<_ACEOF
  9660. /* end confdefs.h. */
  9661. /* Override any GCC internal prototype to avoid an error.
  9662. Use char because int might match the return type of a GCC
  9663. builtin and then its argument prototype would still apply. */
  9664. #ifdef __cplusplus
  9665. extern "C"
  9666. #endif
  9667. char pam_authenticate ();
  9668. int
  9669. main ()
  9670. {
  9671. return pam_authenticate ();
  9672. ;
  9673. return 0;
  9674. }
  9675. _ACEOF
  9676. rm -f conftest.$ac_objext conftest$ac_exeext
  9677. if { (ac_try="$ac_link"
  9678. case "(($ac_try" in
  9679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9680. *) ac_try_echo=$ac_try;;
  9681. esac
  9682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9683. (eval "$ac_link") 2>conftest.er1
  9684. ac_status=$?
  9685. grep -v '^ *+' conftest.er1 >conftest.err
  9686. rm -f conftest.er1
  9687. cat conftest.err >&5
  9688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9689. (exit $ac_status); } && {
  9690. test -z "$ac_c_werror_flag" ||
  9691. test ! -s conftest.err
  9692. } && test -s conftest$ac_exeext &&
  9693. $as_test_x conftest$ac_exeext; then
  9694. ac_cv_lib_pam_pam_authenticate=yes
  9695. else
  9696. echo "$as_me: failed program was:" >&5
  9697. sed 's/^/| /' conftest.$ac_ext >&5
  9698. ac_cv_lib_pam_pam_authenticate=no
  9699. fi
  9700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9701. conftest$ac_exeext conftest.$ac_ext
  9702. LIBS=$ac_check_lib_save_LIBS
  9703. fi
  9704. { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_authenticate" >&5
  9705. echo "${ECHO_T}$ac_cv_lib_pam_pam_authenticate" >&6; }
  9706. if test $ac_cv_lib_pam_pam_authenticate = yes; then
  9707. cat >>confdefs.h <<_ACEOF
  9708. #define HAVE_LIBPAM 1
  9709. _ACEOF
  9710. LIBS="-lpam $LIBS"
  9711. fi
  9712. for ac_func in pam_authenticate
  9713. do
  9714. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9715. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9716. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9717. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9718. echo $ECHO_N "(cached) $ECHO_C" >&6
  9719. else
  9720. cat >conftest.$ac_ext <<_ACEOF
  9721. /* confdefs.h. */
  9722. _ACEOF
  9723. cat confdefs.h >>conftest.$ac_ext
  9724. cat >>conftest.$ac_ext <<_ACEOF
  9725. /* end confdefs.h. */
  9726. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9727. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9728. #define $ac_func innocuous_$ac_func
  9729. /* System header to define __stub macros and hopefully few prototypes,
  9730. which can conflict with char $ac_func (); below.
  9731. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9732. <limits.h> exists even on freestanding compilers. */
  9733. #ifdef __STDC__
  9734. # include <limits.h>
  9735. #else
  9736. # include <assert.h>
  9737. #endif
  9738. #undef $ac_func
  9739. /* Override any GCC internal prototype to avoid an error.
  9740. Use char because int might match the return type of a GCC
  9741. builtin and then its argument prototype would still apply. */
  9742. #ifdef __cplusplus
  9743. extern "C"
  9744. #endif
  9745. char $ac_func ();
  9746. /* The GNU C library defines this for functions which it implements
  9747. to always fail with ENOSYS. Some functions are actually named
  9748. something starting with __ and the normal name is an alias. */
  9749. #if defined __stub_$ac_func || defined __stub___$ac_func
  9750. choke me
  9751. #endif
  9752. int
  9753. main ()
  9754. {
  9755. return $ac_func ();
  9756. ;
  9757. return 0;
  9758. }
  9759. _ACEOF
  9760. rm -f conftest.$ac_objext conftest$ac_exeext
  9761. if { (ac_try="$ac_link"
  9762. case "(($ac_try" in
  9763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9764. *) ac_try_echo=$ac_try;;
  9765. esac
  9766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9767. (eval "$ac_link") 2>conftest.er1
  9768. ac_status=$?
  9769. grep -v '^ *+' conftest.er1 >conftest.err
  9770. rm -f conftest.er1
  9771. cat conftest.err >&5
  9772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9773. (exit $ac_status); } && {
  9774. test -z "$ac_c_werror_flag" ||
  9775. test ! -s conftest.err
  9776. } && test -s conftest$ac_exeext &&
  9777. $as_test_x conftest$ac_exeext; then
  9778. eval "$as_ac_var=yes"
  9779. else
  9780. echo "$as_me: failed program was:" >&5
  9781. sed 's/^/| /' conftest.$ac_ext >&5
  9782. eval "$as_ac_var=no"
  9783. fi
  9784. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9785. conftest$ac_exeext conftest.$ac_ext
  9786. fi
  9787. ac_res=`eval echo '${'$as_ac_var'}'`
  9788. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9789. echo "${ECHO_T}$ac_res" >&6; }
  9790. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9791. cat >>confdefs.h <<_ACEOF
  9792. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9793. _ACEOF
  9794. x_pam_on=yes
  9795. else
  9796. { { echo "$as_me:$LINENO: error: Can't enable PAM support!" >&5
  9797. echo "$as_me: error: Can't enable PAM support!" >&2;}
  9798. { (exit 1); exit 1; }; }
  9799. fi
  9800. done
  9801. fi
  9802. fi
  9803. if test "$x_pam_on" = "yes"; then
  9804. cat >>confdefs.h <<\_ACEOF
  9805. #define PAM 1
  9806. _ACEOF
  9807. for ac_header in security/pam_appl.h
  9808. do
  9809. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9810. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9811. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9812. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9813. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9814. echo $ECHO_N "(cached) $ECHO_C" >&6
  9815. fi
  9816. ac_res=`eval echo '${'$as_ac_Header'}'`
  9817. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9818. echo "${ECHO_T}$ac_res" >&6; }
  9819. else
  9820. # Is the header compilable?
  9821. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9822. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9823. cat >conftest.$ac_ext <<_ACEOF
  9824. /* confdefs.h. */
  9825. _ACEOF
  9826. cat confdefs.h >>conftest.$ac_ext
  9827. cat >>conftest.$ac_ext <<_ACEOF
  9828. /* end confdefs.h. */
  9829. $ac_includes_default
  9830. #include <$ac_header>
  9831. _ACEOF
  9832. rm -f conftest.$ac_objext
  9833. if { (ac_try="$ac_compile"
  9834. case "(($ac_try" in
  9835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9836. *) ac_try_echo=$ac_try;;
  9837. esac
  9838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9839. (eval "$ac_compile") 2>conftest.er1
  9840. ac_status=$?
  9841. grep -v '^ *+' conftest.er1 >conftest.err
  9842. rm -f conftest.er1
  9843. cat conftest.err >&5
  9844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9845. (exit $ac_status); } && {
  9846. test -z "$ac_c_werror_flag" ||
  9847. test ! -s conftest.err
  9848. } && test -s conftest.$ac_objext; then
  9849. ac_header_compiler=yes
  9850. else
  9851. echo "$as_me: failed program was:" >&5
  9852. sed 's/^/| /' conftest.$ac_ext >&5
  9853. ac_header_compiler=no
  9854. fi
  9855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9856. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9857. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9858. # Is the header present?
  9859. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9860. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9861. cat >conftest.$ac_ext <<_ACEOF
  9862. /* confdefs.h. */
  9863. _ACEOF
  9864. cat confdefs.h >>conftest.$ac_ext
  9865. cat >>conftest.$ac_ext <<_ACEOF
  9866. /* end confdefs.h. */
  9867. #include <$ac_header>
  9868. _ACEOF
  9869. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9870. case "(($ac_try" in
  9871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9872. *) ac_try_echo=$ac_try;;
  9873. esac
  9874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9875. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9876. ac_status=$?
  9877. grep -v '^ *+' conftest.er1 >conftest.err
  9878. rm -f conftest.er1
  9879. cat conftest.err >&5
  9880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9881. (exit $ac_status); } >/dev/null && {
  9882. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9883. test ! -s conftest.err
  9884. }; then
  9885. ac_header_preproc=yes
  9886. else
  9887. echo "$as_me: failed program was:" >&5
  9888. sed 's/^/| /' conftest.$ac_ext >&5
  9889. ac_header_preproc=no
  9890. fi
  9891. rm -f conftest.err conftest.$ac_ext
  9892. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9893. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9894. # So? What about this header?
  9895. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9896. yes:no: )
  9897. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9898. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9899. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9900. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9901. ac_header_preproc=yes
  9902. ;;
  9903. no:yes:* )
  9904. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9905. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9906. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9907. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9908. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9909. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9910. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9911. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9912. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9913. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9914. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9915. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9916. ;;
  9917. esac
  9918. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9919. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9920. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9921. echo $ECHO_N "(cached) $ECHO_C" >&6
  9922. else
  9923. eval "$as_ac_Header=\$ac_header_preproc"
  9924. fi
  9925. ac_res=`eval echo '${'$as_ac_Header'}'`
  9926. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9927. echo "${ECHO_T}$ac_res" >&6; }
  9928. fi
  9929. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9930. cat >>confdefs.h <<_ACEOF
  9931. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9932. _ACEOF
  9933. pam_ok=yes
  9934. fi
  9935. done
  9936. if test "$pam_ok" != "yes"; then
  9937. for ac_header in pam/pam_appl.h
  9938. do
  9939. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9940. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9941. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9942. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9943. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9944. echo $ECHO_N "(cached) $ECHO_C" >&6
  9945. fi
  9946. ac_res=`eval echo '${'$as_ac_Header'}'`
  9947. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9948. echo "${ECHO_T}$ac_res" >&6; }
  9949. else
  9950. # Is the header compilable?
  9951. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9952. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9953. cat >conftest.$ac_ext <<_ACEOF
  9954. /* confdefs.h. */
  9955. _ACEOF
  9956. cat confdefs.h >>conftest.$ac_ext
  9957. cat >>conftest.$ac_ext <<_ACEOF
  9958. /* end confdefs.h. */
  9959. $ac_includes_default
  9960. #include <$ac_header>
  9961. _ACEOF
  9962. rm -f conftest.$ac_objext
  9963. if { (ac_try="$ac_compile"
  9964. case "(($ac_try" in
  9965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9966. *) ac_try_echo=$ac_try;;
  9967. esac
  9968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9969. (eval "$ac_compile") 2>conftest.er1
  9970. ac_status=$?
  9971. grep -v '^ *+' conftest.er1 >conftest.err
  9972. rm -f conftest.er1
  9973. cat conftest.err >&5
  9974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9975. (exit $ac_status); } && {
  9976. test -z "$ac_c_werror_flag" ||
  9977. test ! -s conftest.err
  9978. } && test -s conftest.$ac_objext; then
  9979. ac_header_compiler=yes
  9980. else
  9981. echo "$as_me: failed program was:" >&5
  9982. sed 's/^/| /' conftest.$ac_ext >&5
  9983. ac_header_compiler=no
  9984. fi
  9985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9986. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9987. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9988. # Is the header present?
  9989. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9990. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9991. cat >conftest.$ac_ext <<_ACEOF
  9992. /* confdefs.h. */
  9993. _ACEOF
  9994. cat confdefs.h >>conftest.$ac_ext
  9995. cat >>conftest.$ac_ext <<_ACEOF
  9996. /* end confdefs.h. */
  9997. #include <$ac_header>
  9998. _ACEOF
  9999. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10000. case "(($ac_try" in
  10001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10002. *) ac_try_echo=$ac_try;;
  10003. esac
  10004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10005. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10006. ac_status=$?
  10007. grep -v '^ *+' conftest.er1 >conftest.err
  10008. rm -f conftest.er1
  10009. cat conftest.err >&5
  10010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10011. (exit $ac_status); } >/dev/null && {
  10012. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10013. test ! -s conftest.err
  10014. }; then
  10015. ac_header_preproc=yes
  10016. else
  10017. echo "$as_me: failed program was:" >&5
  10018. sed 's/^/| /' conftest.$ac_ext >&5
  10019. ac_header_preproc=no
  10020. fi
  10021. rm -f conftest.err conftest.$ac_ext
  10022. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10023. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10024. # So? What about this header?
  10025. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10026. yes:no: )
  10027. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10028. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10029. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10030. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10031. ac_header_preproc=yes
  10032. ;;
  10033. no:yes:* )
  10034. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10035. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10036. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10037. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10038. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10039. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10040. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10041. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10042. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10043. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10044. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10045. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10046. ;;
  10047. esac
  10048. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10049. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10050. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10051. echo $ECHO_N "(cached) $ECHO_C" >&6
  10052. else
  10053. eval "$as_ac_Header=\$ac_header_preproc"
  10054. fi
  10055. ac_res=`eval echo '${'$as_ac_Header'}'`
  10056. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10057. echo "${ECHO_T}$ac_res" >&6; }
  10058. fi
  10059. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10060. cat >>confdefs.h <<_ACEOF
  10061. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10062. _ACEOF
  10063. pam_ok=yes
  10064. else
  10065. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  10066. echo "$as_me: error: required C header missing!" >&2;}
  10067. { (exit 1); exit 1; }; }
  10068. fi
  10069. done
  10070. fi
  10071. fi
  10072. # compile in IRC+ protocol support?
  10073. x_ircplus_on=yes
  10074. # Check whether --enable-ircplus was given.
  10075. if test "${enable_ircplus+set}" = set; then
  10076. enableval=$enable_ircplus; if test "$enableval" = "no"; then x_ircplus_on=no; fi
  10077. fi
  10078. if test "$x_ircplus_on" = "yes"; then
  10079. cat >>confdefs.h <<\_ACEOF
  10080. #define IRCPLUS 1
  10081. _ACEOF
  10082. fi
  10083. # enable support for IPv6?
  10084. x_ipv6_on=no
  10085. # Check whether --enable-ipv6 was given.
  10086. if test "${enable_ipv6+set}" = set; then
  10087. enableval=$enable_ipv6; if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
  10088. fi
  10089. if test "$x_ipv6_on" = "yes"; then
  10090. # getaddrinfo() and getnameinfo() are optional when not compiling
  10091. # with IPv6 support, but are required for IPv6 to work!
  10092. for ac_func in \
  10093. getaddrinfo getnameinfo \
  10094. do
  10095. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10096. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10097. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10098. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10099. echo $ECHO_N "(cached) $ECHO_C" >&6
  10100. else
  10101. cat >conftest.$ac_ext <<_ACEOF
  10102. /* confdefs.h. */
  10103. _ACEOF
  10104. cat confdefs.h >>conftest.$ac_ext
  10105. cat >>conftest.$ac_ext <<_ACEOF
  10106. /* end confdefs.h. */
  10107. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10108. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10109. #define $ac_func innocuous_$ac_func
  10110. /* System header to define __stub macros and hopefully few prototypes,
  10111. which can conflict with char $ac_func (); below.
  10112. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10113. <limits.h> exists even on freestanding compilers. */
  10114. #ifdef __STDC__
  10115. # include <limits.h>
  10116. #else
  10117. # include <assert.h>
  10118. #endif
  10119. #undef $ac_func
  10120. /* Override any GCC internal prototype to avoid an error.
  10121. Use char because int might match the return type of a GCC
  10122. builtin and then its argument prototype would still apply. */
  10123. #ifdef __cplusplus
  10124. extern "C"
  10125. #endif
  10126. char $ac_func ();
  10127. /* The GNU C library defines this for functions which it implements
  10128. to always fail with ENOSYS. Some functions are actually named
  10129. something starting with __ and the normal name is an alias. */
  10130. #if defined __stub_$ac_func || defined __stub___$ac_func
  10131. choke me
  10132. #endif
  10133. int
  10134. main ()
  10135. {
  10136. return $ac_func ();
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. rm -f conftest.$ac_objext conftest$ac_exeext
  10142. if { (ac_try="$ac_link"
  10143. case "(($ac_try" in
  10144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10145. *) ac_try_echo=$ac_try;;
  10146. esac
  10147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10148. (eval "$ac_link") 2>conftest.er1
  10149. ac_status=$?
  10150. grep -v '^ *+' conftest.er1 >conftest.err
  10151. rm -f conftest.er1
  10152. cat conftest.err >&5
  10153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10154. (exit $ac_status); } && {
  10155. test -z "$ac_c_werror_flag" ||
  10156. test ! -s conftest.err
  10157. } && test -s conftest$ac_exeext &&
  10158. $as_test_x conftest$ac_exeext; then
  10159. eval "$as_ac_var=yes"
  10160. else
  10161. echo "$as_me: failed program was:" >&5
  10162. sed 's/^/| /' conftest.$ac_ext >&5
  10163. eval "$as_ac_var=no"
  10164. fi
  10165. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10166. conftest$ac_exeext conftest.$ac_ext
  10167. fi
  10168. ac_res=`eval echo '${'$as_ac_var'}'`
  10169. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10170. echo "${ECHO_T}$ac_res" >&6; }
  10171. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10172. cat >>confdefs.h <<_ACEOF
  10173. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10174. _ACEOF
  10175. else
  10176. { { echo "$as_me:$LINENO: error: required function missing for IPv6 support!" >&5
  10177. echo "$as_me: error: required function missing for IPv6 support!" >&2;}
  10178. { (exit 1); exit 1; }; }
  10179. fi
  10180. done
  10181. cat >>confdefs.h <<\_ACEOF
  10182. #define WANT_IPV6 1
  10183. _ACEOF
  10184. fi
  10185. # compile in IRC "sniffer"?
  10186. x_sniffer_on=no; x_debug_on=no
  10187. # Check whether --enable-sniffer was given.
  10188. if test "${enable_sniffer+set}" = set; then
  10189. enableval=$enable_sniffer; if test "$enableval" = "yes"; then
  10190. cat >>confdefs.h <<\_ACEOF
  10191. #define SNIFFER 1
  10192. _ACEOF
  10193. x_sniffer_on=yes; x_debug_on=yes
  10194. fi
  10195. fi
  10196. # enable additional debugging code?
  10197. # Check whether --enable-debug was given.
  10198. if test "${enable_debug+set}" = set; then
  10199. enableval=$enable_debug; if test "$enableval" = "yes"; then x_debug_on=yes; fi
  10200. fi
  10201. if test "$x_debug_on" = "yes"; then
  10202. cat >>confdefs.h <<\_ACEOF
  10203. #define DEBUG 1
  10204. _ACEOF
  10205. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  10206. for ac_func in mtrace
  10207. do
  10208. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10209. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10210. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10211. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10212. echo $ECHO_N "(cached) $ECHO_C" >&6
  10213. else
  10214. cat >conftest.$ac_ext <<_ACEOF
  10215. /* confdefs.h. */
  10216. _ACEOF
  10217. cat confdefs.h >>conftest.$ac_ext
  10218. cat >>conftest.$ac_ext <<_ACEOF
  10219. /* end confdefs.h. */
  10220. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10221. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10222. #define $ac_func innocuous_$ac_func
  10223. /* System header to define __stub macros and hopefully few prototypes,
  10224. which can conflict with char $ac_func (); below.
  10225. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10226. <limits.h> exists even on freestanding compilers. */
  10227. #ifdef __STDC__
  10228. # include <limits.h>
  10229. #else
  10230. # include <assert.h>
  10231. #endif
  10232. #undef $ac_func
  10233. /* Override any GCC internal prototype to avoid an error.
  10234. Use char because int might match the return type of a GCC
  10235. builtin and then its argument prototype would still apply. */
  10236. #ifdef __cplusplus
  10237. extern "C"
  10238. #endif
  10239. char $ac_func ();
  10240. /* The GNU C library defines this for functions which it implements
  10241. to always fail with ENOSYS. Some functions are actually named
  10242. something starting with __ and the normal name is an alias. */
  10243. #if defined __stub_$ac_func || defined __stub___$ac_func
  10244. choke me
  10245. #endif
  10246. int
  10247. main ()
  10248. {
  10249. return $ac_func ();
  10250. ;
  10251. return 0;
  10252. }
  10253. _ACEOF
  10254. rm -f conftest.$ac_objext conftest$ac_exeext
  10255. if { (ac_try="$ac_link"
  10256. case "(($ac_try" in
  10257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10258. *) ac_try_echo=$ac_try;;
  10259. esac
  10260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10261. (eval "$ac_link") 2>conftest.er1
  10262. ac_status=$?
  10263. grep -v '^ *+' conftest.er1 >conftest.err
  10264. rm -f conftest.er1
  10265. cat conftest.err >&5
  10266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10267. (exit $ac_status); } && {
  10268. test -z "$ac_c_werror_flag" ||
  10269. test ! -s conftest.err
  10270. } && test -s conftest$ac_exeext &&
  10271. $as_test_x conftest$ac_exeext; then
  10272. eval "$as_ac_var=yes"
  10273. else
  10274. echo "$as_me: failed program was:" >&5
  10275. sed 's/^/| /' conftest.$ac_ext >&5
  10276. eval "$as_ac_var=no"
  10277. fi
  10278. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10279. conftest$ac_exeext conftest.$ac_ext
  10280. fi
  10281. ac_res=`eval echo '${'$as_ac_var'}'`
  10282. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10283. echo "${ECHO_T}$ac_res" >&6; }
  10284. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10285. cat >>confdefs.h <<_ACEOF
  10286. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10287. _ACEOF
  10288. fi
  10289. done
  10290. fi
  10291. # enable "strict RFC rules"?
  10292. x_strict_rfc_on=no
  10293. # Check whether --enable-strict-rfc was given.
  10294. if test "${enable_strict_rfc+set}" = set; then
  10295. enableval=$enable_strict_rfc; if test "$enableval" = "yes"; then
  10296. cat >>confdefs.h <<\_ACEOF
  10297. #define STRICT_RFC 1
  10298. _ACEOF
  10299. x_strict_rfc_on=yes
  10300. fi
  10301. fi
  10302. # -- Definitions --
  10303. cat >>confdefs.h <<_ACEOF
  10304. #define TARGET_CPU "$target_cpu"
  10305. _ACEOF
  10306. cat >>confdefs.h <<_ACEOF
  10307. #define TARGET_VENDOR "$target_vendor"
  10308. _ACEOF
  10309. cat >>confdefs.h <<_ACEOF
  10310. #define TARGET_OS "$target_os"
  10311. _ACEOF
  10312. # Add additional CFLAGS, eventually specified on the command line, but after
  10313. # running this configure script. Useful for "-Werror" for example.
  10314. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  10315. # -- Generate files --
  10316. ac_config_files="$ac_config_files Makefile doc/Makefile doc/src/Makefile src/Makefile src/portab/Makefile src/ipaddr/Makefile src/tool/Makefile src/ngircd/Makefile src/testsuite/Makefile man/Makefile contrib/Makefile contrib/Debian/Makefile contrib/MacOSX/Makefile contrib/MacOSX/ngIRCd.xcodeproj/Makefile contrib/MacOSX/ngIRCd.pmdoc/Makefile"
  10317. cat >confcache <<\_ACEOF
  10318. # This file is a shell script that caches the results of configure
  10319. # tests run on this system so they can be shared between configure
  10320. # scripts and configure runs, see configure's option --config-cache.
  10321. # It is not useful on other systems. If it contains results you don't
  10322. # want to keep, you may remove or edit it.
  10323. #
  10324. # config.status only pays attention to the cache file if you give it
  10325. # the --recheck option to rerun configure.
  10326. #
  10327. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10328. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10329. # following values.
  10330. _ACEOF
  10331. # The following way of writing the cache mishandles newlines in values,
  10332. # but we know of no workaround that is simple, portable, and efficient.
  10333. # So, we kill variables containing newlines.
  10334. # Ultrix sh set writes to stderr and can't be redirected directly,
  10335. # and sets the high bit in the cache file unless we assign to the vars.
  10336. (
  10337. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10338. eval ac_val=\$$ac_var
  10339. case $ac_val in #(
  10340. *${as_nl}*)
  10341. case $ac_var in #(
  10342. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10343. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10344. esac
  10345. case $ac_var in #(
  10346. _ | IFS | as_nl) ;; #(
  10347. *) $as_unset $ac_var ;;
  10348. esac ;;
  10349. esac
  10350. done
  10351. (set) 2>&1 |
  10352. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10353. *${as_nl}ac_space=\ *)
  10354. # `set' does not quote correctly, so add quotes (double-quote
  10355. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10356. sed -n \
  10357. "s/'/'\\\\''/g;
  10358. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10359. ;; #(
  10360. *)
  10361. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10362. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10363. ;;
  10364. esac |
  10365. sort
  10366. ) |
  10367. sed '
  10368. /^ac_cv_env_/b end
  10369. t clear
  10370. :clear
  10371. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10372. t end
  10373. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10374. :end' >>confcache
  10375. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10376. if test -w "$cache_file"; then
  10377. test "x$cache_file" != "x/dev/null" &&
  10378. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10379. echo "$as_me: updating cache $cache_file" >&6;}
  10380. cat confcache >$cache_file
  10381. else
  10382. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10383. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10384. fi
  10385. fi
  10386. rm -f confcache
  10387. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10388. # Let make expand exec_prefix.
  10389. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10390. DEFS=-DHAVE_CONFIG_H
  10391. ac_libobjs=
  10392. ac_ltlibobjs=
  10393. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10394. # 1. Remove the extension, and $U if already installed.
  10395. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10396. ac_i=`echo "$ac_i" | sed "$ac_script"`
  10397. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10398. # will be set to the directory where LIBOBJS objects are built.
  10399. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10400. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  10401. done
  10402. LIBOBJS=$ac_libobjs
  10403. LTLIBOBJS=$ac_ltlibobjs
  10404. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10405. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10406. Usually this means the macro was only invoked conditionally." >&5
  10407. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10408. Usually this means the macro was only invoked conditionally." >&2;}
  10409. { (exit 1); exit 1; }; }
  10410. fi
  10411. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10412. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10413. Usually this means the macro was only invoked conditionally." >&5
  10414. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10415. Usually this means the macro was only invoked conditionally." >&2;}
  10416. { (exit 1); exit 1; }; }
  10417. fi
  10418. : ${CONFIG_STATUS=./config.status}
  10419. ac_clean_files_save=$ac_clean_files
  10420. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10421. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10422. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10423. cat >$CONFIG_STATUS <<_ACEOF
  10424. #! $SHELL
  10425. # Generated by $as_me.
  10426. # Run this file to recreate the current configuration.
  10427. # Compiler output produced by configure, useful for debugging
  10428. # configure, is in config.log if it exists.
  10429. debug=false
  10430. ac_cs_recheck=false
  10431. ac_cs_silent=false
  10432. SHELL=\${CONFIG_SHELL-$SHELL}
  10433. _ACEOF
  10434. cat >>$CONFIG_STATUS <<\_ACEOF
  10435. ## --------------------- ##
  10436. ## M4sh Initialization. ##
  10437. ## --------------------- ##
  10438. # Be more Bourne compatible
  10439. DUALCASE=1; export DUALCASE # for MKS sh
  10440. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10441. emulate sh
  10442. NULLCMD=:
  10443. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10444. # is contrary to our usage. Disable this feature.
  10445. alias -g '${1+"$@"}'='"$@"'
  10446. setopt NO_GLOB_SUBST
  10447. else
  10448. case `(set -o) 2>/dev/null` in
  10449. *posix*) set -o posix ;;
  10450. esac
  10451. fi
  10452. # PATH needs CR
  10453. # Avoid depending upon Character Ranges.
  10454. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10455. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10456. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10457. as_cr_digits='0123456789'
  10458. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10459. # The user is always right.
  10460. if test "${PATH_SEPARATOR+set}" != set; then
  10461. echo "#! /bin/sh" >conf$$.sh
  10462. echo "exit 0" >>conf$$.sh
  10463. chmod +x conf$$.sh
  10464. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10465. PATH_SEPARATOR=';'
  10466. else
  10467. PATH_SEPARATOR=:
  10468. fi
  10469. rm -f conf$$.sh
  10470. fi
  10471. # Support unset when possible.
  10472. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10473. as_unset=unset
  10474. else
  10475. as_unset=false
  10476. fi
  10477. # IFS
  10478. # We need space, tab and new line, in precisely that order. Quoting is
  10479. # there to prevent editors from complaining about space-tab.
  10480. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10481. # splitting by setting IFS to empty value.)
  10482. as_nl='
  10483. '
  10484. IFS=" "" $as_nl"
  10485. # Find who we are. Look in the path if we contain no directory separator.
  10486. case $0 in
  10487. *[\\/]* ) as_myself=$0 ;;
  10488. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10489. for as_dir in $PATH
  10490. do
  10491. IFS=$as_save_IFS
  10492. test -z "$as_dir" && as_dir=.
  10493. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10494. done
  10495. IFS=$as_save_IFS
  10496. ;;
  10497. esac
  10498. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10499. # in which case we are not to be found in the path.
  10500. if test "x$as_myself" = x; then
  10501. as_myself=$0
  10502. fi
  10503. if test ! -f "$as_myself"; then
  10504. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10505. { (exit 1); exit 1; }
  10506. fi
  10507. # Work around bugs in pre-3.0 UWIN ksh.
  10508. for as_var in ENV MAIL MAILPATH
  10509. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10510. done
  10511. PS1='$ '
  10512. PS2='> '
  10513. PS4='+ '
  10514. # NLS nuisances.
  10515. for as_var in \
  10516. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10517. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10518. LC_TELEPHONE LC_TIME
  10519. do
  10520. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10521. eval $as_var=C; export $as_var
  10522. else
  10523. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10524. fi
  10525. done
  10526. # Required to use basename.
  10527. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10528. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10529. as_expr=expr
  10530. else
  10531. as_expr=false
  10532. fi
  10533. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10534. as_basename=basename
  10535. else
  10536. as_basename=false
  10537. fi
  10538. # Name of the executable.
  10539. as_me=`$as_basename -- "$0" ||
  10540. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10541. X"$0" : 'X\(//\)$' \| \
  10542. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10543. echo X/"$0" |
  10544. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10545. s//\1/
  10546. q
  10547. }
  10548. /^X\/\(\/\/\)$/{
  10549. s//\1/
  10550. q
  10551. }
  10552. /^X\/\(\/\).*/{
  10553. s//\1/
  10554. q
  10555. }
  10556. s/.*/./; q'`
  10557. # CDPATH.
  10558. $as_unset CDPATH
  10559. as_lineno_1=$LINENO
  10560. as_lineno_2=$LINENO
  10561. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10562. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  10563. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10564. # uniformly replaced by the line number. The first 'sed' inserts a
  10565. # line-number line after each line using $LINENO; the second 'sed'
  10566. # does the real work. The second script uses 'N' to pair each
  10567. # line-number line with the line containing $LINENO, and appends
  10568. # trailing '-' during substitution so that $LINENO is not a special
  10569. # case at line end.
  10570. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10571. # scripts with optimization help from Paolo Bonzini. Blame Lee
  10572. # E. McMahon (1931-1989) for sed's syntax. :-)
  10573. sed -n '
  10574. p
  10575. /[$]LINENO/=
  10576. ' <$as_myself |
  10577. sed '
  10578. s/[$]LINENO.*/&-/
  10579. t lineno
  10580. b
  10581. :lineno
  10582. N
  10583. :loop
  10584. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  10585. t loop
  10586. s/-\n.*//
  10587. ' >$as_me.lineno &&
  10588. chmod +x "$as_me.lineno" ||
  10589. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  10590. { (exit 1); exit 1; }; }
  10591. # Don't try to exec as it changes $[0], causing all sort of problems
  10592. # (the dirname of $[0] is not the place where we might find the
  10593. # original and so on. Autoconf is especially sensitive to this).
  10594. . "./$as_me.lineno"
  10595. # Exit status is that of the last command.
  10596. exit
  10597. }
  10598. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10599. as_dirname=dirname
  10600. else
  10601. as_dirname=false
  10602. fi
  10603. ECHO_C= ECHO_N= ECHO_T=
  10604. case `echo -n x` in
  10605. -n*)
  10606. case `echo 'x\c'` in
  10607. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10608. *) ECHO_C='\c';;
  10609. esac;;
  10610. *)
  10611. ECHO_N='-n';;
  10612. esac
  10613. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10614. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10615. as_expr=expr
  10616. else
  10617. as_expr=false
  10618. fi
  10619. rm -f conf$$ conf$$.exe conf$$.file
  10620. if test -d conf$$.dir; then
  10621. rm -f conf$$.dir/conf$$.file
  10622. else
  10623. rm -f conf$$.dir
  10624. mkdir conf$$.dir
  10625. fi
  10626. echo >conf$$.file
  10627. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10628. as_ln_s='ln -s'
  10629. # ... but there are two gotchas:
  10630. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10631. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10632. # In both cases, we have to default to `cp -p'.
  10633. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10634. as_ln_s='cp -p'
  10635. elif ln conf$$.file conf$$ 2>/dev/null; then
  10636. as_ln_s=ln
  10637. else
  10638. as_ln_s='cp -p'
  10639. fi
  10640. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10641. rmdir conf$$.dir 2>/dev/null
  10642. if mkdir -p . 2>/dev/null; then
  10643. as_mkdir_p=:
  10644. else
  10645. test -d ./-p && rmdir ./-p
  10646. as_mkdir_p=false
  10647. fi
  10648. if test -x / >/dev/null 2>&1; then
  10649. as_test_x='test -x'
  10650. else
  10651. if ls -dL / >/dev/null 2>&1; then
  10652. as_ls_L_option=L
  10653. else
  10654. as_ls_L_option=
  10655. fi
  10656. as_test_x='
  10657. eval sh -c '\''
  10658. if test -d "$1"; then
  10659. test -d "$1/.";
  10660. else
  10661. case $1 in
  10662. -*)set "./$1";;
  10663. esac;
  10664. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  10665. ???[sx]*):;;*)false;;esac;fi
  10666. '\'' sh
  10667. '
  10668. fi
  10669. as_executable_p=$as_test_x
  10670. # Sed expression to map a string onto a valid CPP name.
  10671. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10672. # Sed expression to map a string onto a valid variable name.
  10673. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10674. exec 6>&1
  10675. # Save the log message, to keep $[0] and so on meaningful, and to
  10676. # report actual input values of CONFIG_FILES etc. instead of their
  10677. # values after options handling.
  10678. ac_log="
  10679. This file was extended by ngircd $as_me 17.1, which was
  10680. generated by GNU Autoconf 2.61. Invocation command line was
  10681. CONFIG_FILES = $CONFIG_FILES
  10682. CONFIG_HEADERS = $CONFIG_HEADERS
  10683. CONFIG_LINKS = $CONFIG_LINKS
  10684. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10685. $ $0 $@
  10686. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10687. "
  10688. _ACEOF
  10689. cat >>$CONFIG_STATUS <<_ACEOF
  10690. # Files that config.status was made for.
  10691. config_files="$ac_config_files"
  10692. config_headers="$ac_config_headers"
  10693. config_commands="$ac_config_commands"
  10694. _ACEOF
  10695. cat >>$CONFIG_STATUS <<\_ACEOF
  10696. ac_cs_usage="\
  10697. \`$as_me' instantiates files from templates according to the
  10698. current configuration.
  10699. Usage: $0 [OPTIONS] [FILE]...
  10700. -h, --help print this help, then exit
  10701. -V, --version print version number and configuration settings, then exit
  10702. -q, --quiet do not print progress messages
  10703. -d, --debug don't remove temporary files
  10704. --recheck update $as_me by reconfiguring in the same conditions
  10705. --file=FILE[:TEMPLATE]
  10706. instantiate the configuration file FILE
  10707. --header=FILE[:TEMPLATE]
  10708. instantiate the configuration header FILE
  10709. Configuration files:
  10710. $config_files
  10711. Configuration headers:
  10712. $config_headers
  10713. Configuration commands:
  10714. $config_commands
  10715. Report bugs to <bug-autoconf@gnu.org>."
  10716. _ACEOF
  10717. cat >>$CONFIG_STATUS <<_ACEOF
  10718. ac_cs_version="\\
  10719. ngircd config.status 17.1
  10720. configured by $0, generated by GNU Autoconf 2.61,
  10721. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10722. Copyright (C) 2006 Free Software Foundation, Inc.
  10723. This config.status script is free software; the Free Software Foundation
  10724. gives unlimited permission to copy, distribute and modify it."
  10725. ac_pwd='$ac_pwd'
  10726. srcdir='$srcdir'
  10727. INSTALL='$INSTALL'
  10728. MKDIR_P='$MKDIR_P'
  10729. _ACEOF
  10730. cat >>$CONFIG_STATUS <<\_ACEOF
  10731. # If no file are specified by the user, then we need to provide default
  10732. # value. By we need to know if files were specified by the user.
  10733. ac_need_defaults=:
  10734. while test $# != 0
  10735. do
  10736. case $1 in
  10737. --*=*)
  10738. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10739. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10740. ac_shift=:
  10741. ;;
  10742. *)
  10743. ac_option=$1
  10744. ac_optarg=$2
  10745. ac_shift=shift
  10746. ;;
  10747. esac
  10748. case $ac_option in
  10749. # Handling of the options.
  10750. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10751. ac_cs_recheck=: ;;
  10752. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10753. echo "$ac_cs_version"; exit ;;
  10754. --debug | --debu | --deb | --de | --d | -d )
  10755. debug=: ;;
  10756. --file | --fil | --fi | --f )
  10757. $ac_shift
  10758. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10759. ac_need_defaults=false;;
  10760. --header | --heade | --head | --hea )
  10761. $ac_shift
  10762. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10763. ac_need_defaults=false;;
  10764. --he | --h)
  10765. # Conflict between --help and --header
  10766. { echo "$as_me: error: ambiguous option: $1
  10767. Try \`$0 --help' for more information." >&2
  10768. { (exit 1); exit 1; }; };;
  10769. --help | --hel | -h )
  10770. echo "$ac_cs_usage"; exit ;;
  10771. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10772. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10773. ac_cs_silent=: ;;
  10774. # This is an error.
  10775. -*) { echo "$as_me: error: unrecognized option: $1
  10776. Try \`$0 --help' for more information." >&2
  10777. { (exit 1); exit 1; }; } ;;
  10778. *) ac_config_targets="$ac_config_targets $1"
  10779. ac_need_defaults=false ;;
  10780. esac
  10781. shift
  10782. done
  10783. ac_configure_extra_args=
  10784. if $ac_cs_silent; then
  10785. exec 6>/dev/null
  10786. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10787. fi
  10788. _ACEOF
  10789. cat >>$CONFIG_STATUS <<_ACEOF
  10790. if \$ac_cs_recheck; then
  10791. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10792. CONFIG_SHELL=$SHELL
  10793. export CONFIG_SHELL
  10794. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10795. fi
  10796. _ACEOF
  10797. cat >>$CONFIG_STATUS <<\_ACEOF
  10798. exec 5>>config.log
  10799. {
  10800. echo
  10801. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10802. ## Running $as_me. ##
  10803. _ASBOX
  10804. echo "$ac_log"
  10805. } >&5
  10806. _ACEOF
  10807. cat >>$CONFIG_STATUS <<_ACEOF
  10808. #
  10809. # INIT-COMMANDS
  10810. #
  10811. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10812. _ACEOF
  10813. cat >>$CONFIG_STATUS <<\_ACEOF
  10814. # Handling of arguments.
  10815. for ac_config_target in $ac_config_targets
  10816. do
  10817. case $ac_config_target in
  10818. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  10819. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10820. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10821. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  10822. "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  10823. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10824. "src/portab/Makefile") CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  10825. "src/ipaddr/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipaddr/Makefile" ;;
  10826. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  10827. "src/ngircd/Makefile") CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  10828. "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  10829. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  10830. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  10831. "contrib/Debian/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  10832. "contrib/MacOSX/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  10833. "contrib/MacOSX/ngIRCd.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.xcodeproj/Makefile" ;;
  10834. "contrib/MacOSX/ngIRCd.pmdoc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.pmdoc/Makefile" ;;
  10835. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10836. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10837. { (exit 1); exit 1; }; };;
  10838. esac
  10839. done
  10840. # If the user did not use the arguments to specify the items to instantiate,
  10841. # then the envvar interface is used. Set only those that are not.
  10842. # We use the long form for the default assignment because of an extremely
  10843. # bizarre bug on SunOS 4.1.3.
  10844. if $ac_need_defaults; then
  10845. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10846. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10847. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10848. fi
  10849. # Have a temporary directory for convenience. Make it in the build tree
  10850. # simply because there is no reason against having it here, and in addition,
  10851. # creating and moving files from /tmp can sometimes cause problems.
  10852. # Hook for its removal unless debugging.
  10853. # Note that there is a small window in which the directory will not be cleaned:
  10854. # after its creation but before its name has been assigned to `$tmp'.
  10855. $debug ||
  10856. {
  10857. tmp=
  10858. trap 'exit_status=$?
  10859. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10860. ' 0
  10861. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10862. }
  10863. # Create a (secure) tmp directory for tmp files.
  10864. {
  10865. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10866. test -n "$tmp" && test -d "$tmp"
  10867. } ||
  10868. {
  10869. tmp=./conf$$-$RANDOM
  10870. (umask 077 && mkdir "$tmp")
  10871. } ||
  10872. {
  10873. echo "$me: cannot create a temporary directory in ." >&2
  10874. { (exit 1); exit 1; }
  10875. }
  10876. #
  10877. # Set up the sed scripts for CONFIG_FILES section.
  10878. #
  10879. # No need to generate the scripts if there are no CONFIG_FILES.
  10880. # This happens for instance when ./config.status config.h
  10881. if test -n "$CONFIG_FILES"; then
  10882. _ACEOF
  10883. ac_delim='%!_!# '
  10884. for ac_last_try in false false false false false :; do
  10885. cat >conf$$subs.sed <<_ACEOF
  10886. SHELL!$SHELL$ac_delim
  10887. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  10888. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  10889. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  10890. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  10891. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  10892. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  10893. exec_prefix!$exec_prefix$ac_delim
  10894. prefix!$prefix$ac_delim
  10895. program_transform_name!$program_transform_name$ac_delim
  10896. bindir!$bindir$ac_delim
  10897. sbindir!$sbindir$ac_delim
  10898. libexecdir!$libexecdir$ac_delim
  10899. datarootdir!$datarootdir$ac_delim
  10900. datadir!$datadir$ac_delim
  10901. sysconfdir!$sysconfdir$ac_delim
  10902. sharedstatedir!$sharedstatedir$ac_delim
  10903. localstatedir!$localstatedir$ac_delim
  10904. includedir!$includedir$ac_delim
  10905. oldincludedir!$oldincludedir$ac_delim
  10906. docdir!$docdir$ac_delim
  10907. infodir!$infodir$ac_delim
  10908. htmldir!$htmldir$ac_delim
  10909. dvidir!$dvidir$ac_delim
  10910. pdfdir!$pdfdir$ac_delim
  10911. psdir!$psdir$ac_delim
  10912. libdir!$libdir$ac_delim
  10913. localedir!$localedir$ac_delim
  10914. mandir!$mandir$ac_delim
  10915. DEFS!$DEFS$ac_delim
  10916. ECHO_C!$ECHO_C$ac_delim
  10917. ECHO_N!$ECHO_N$ac_delim
  10918. ECHO_T!$ECHO_T$ac_delim
  10919. LIBS!$LIBS$ac_delim
  10920. build_alias!$build_alias$ac_delim
  10921. host_alias!$host_alias$ac_delim
  10922. target_alias!$target_alias$ac_delim
  10923. build!$build$ac_delim
  10924. build_cpu!$build_cpu$ac_delim
  10925. build_vendor!$build_vendor$ac_delim
  10926. build_os!$build_os$ac_delim
  10927. host!$host$ac_delim
  10928. host_cpu!$host_cpu$ac_delim
  10929. host_vendor!$host_vendor$ac_delim
  10930. host_os!$host_os$ac_delim
  10931. target!$target$ac_delim
  10932. target_cpu!$target_cpu$ac_delim
  10933. target_vendor!$target_vendor$ac_delim
  10934. target_os!$target_os$ac_delim
  10935. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  10936. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  10937. INSTALL_DATA!$INSTALL_DATA$ac_delim
  10938. am__isrc!$am__isrc$ac_delim
  10939. CYGPATH_W!$CYGPATH_W$ac_delim
  10940. PACKAGE!$PACKAGE$ac_delim
  10941. VERSION!$VERSION$ac_delim
  10942. ACLOCAL!$ACLOCAL$ac_delim
  10943. AUTOCONF!$AUTOCONF$ac_delim
  10944. AUTOMAKE!$AUTOMAKE$ac_delim
  10945. AUTOHEADER!$AUTOHEADER$ac_delim
  10946. MAKEINFO!$MAKEINFO$ac_delim
  10947. install_sh!$install_sh$ac_delim
  10948. STRIP!$STRIP$ac_delim
  10949. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  10950. mkdir_p!$mkdir_p$ac_delim
  10951. AWK!$AWK$ac_delim
  10952. SET_MAKE!$SET_MAKE$ac_delim
  10953. am__leading_dot!$am__leading_dot$ac_delim
  10954. AMTAR!$AMTAR$ac_delim
  10955. am__tar!$am__tar$ac_delim
  10956. am__untar!$am__untar$ac_delim
  10957. CC!$CC$ac_delim
  10958. CFLAGS!$CFLAGS$ac_delim
  10959. LDFLAGS!$LDFLAGS$ac_delim
  10960. CPPFLAGS!$CPPFLAGS$ac_delim
  10961. ac_ct_CC!$ac_ct_CC$ac_delim
  10962. EXEEXT!$EXEEXT$ac_delim
  10963. OBJEXT!$OBJEXT$ac_delim
  10964. DEPDIR!$DEPDIR$ac_delim
  10965. am__include!$am__include$ac_delim
  10966. am__quote!$am__quote$ac_delim
  10967. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  10968. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  10969. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  10970. CCDEPMODE!$CCDEPMODE$ac_delim
  10971. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  10972. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  10973. LN_S!$LN_S$ac_delim
  10974. RANLIB!$RANLIB$ac_delim
  10975. CPP!$CPP$ac_delim
  10976. GREP!$GREP$ac_delim
  10977. EGREP!$EGREP$ac_delim
  10978. U!$U$ac_delim
  10979. ANSI2KNR!$ANSI2KNR$ac_delim
  10980. LIBOBJS!$LIBOBJS$ac_delim
  10981. LTLIBOBJS!$LTLIBOBJS$ac_delim
  10982. _ACEOF
  10983. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
  10984. break
  10985. elif $ac_last_try; then
  10986. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10987. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10988. { (exit 1); exit 1; }; }
  10989. else
  10990. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10991. fi
  10992. done
  10993. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  10994. if test -n "$ac_eof"; then
  10995. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  10996. ac_eof=`expr $ac_eof + 1`
  10997. fi
  10998. cat >>$CONFIG_STATUS <<_ACEOF
  10999. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  11000. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11001. _ACEOF
  11002. sed '
  11003. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11004. s/^/s,@/; s/!/@,|#_!!_#|/
  11005. :n
  11006. t n
  11007. s/'"$ac_delim"'$/,g/; t
  11008. s/$/\\/; p
  11009. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11010. ' >>$CONFIG_STATUS <conf$$subs.sed
  11011. rm -f conf$$subs.sed
  11012. cat >>$CONFIG_STATUS <<_ACEOF
  11013. CEOF$ac_eof
  11014. _ACEOF
  11015. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11016. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11017. # trailing colons and then remove the whole line if VPATH becomes empty
  11018. # (actually we leave an empty line to preserve line numbers).
  11019. if test "x$srcdir" = x.; then
  11020. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11021. s/:*\$(srcdir):*/:/
  11022. s/:*\${srcdir}:*/:/
  11023. s/:*@srcdir@:*/:/
  11024. s/^\([^=]*=[ ]*\):*/\1/
  11025. s/:*$//
  11026. s/^[^=]*=[ ]*$//
  11027. }'
  11028. fi
  11029. cat >>$CONFIG_STATUS <<\_ACEOF
  11030. fi # test -n "$CONFIG_FILES"
  11031. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  11032. do
  11033. case $ac_tag in
  11034. :[FHLC]) ac_mode=$ac_tag; continue;;
  11035. esac
  11036. case $ac_mode$ac_tag in
  11037. :[FHL]*:*);;
  11038. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  11039. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  11040. { (exit 1); exit 1; }; };;
  11041. :[FH]-) ac_tag=-:-;;
  11042. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11043. esac
  11044. ac_save_IFS=$IFS
  11045. IFS=:
  11046. set x $ac_tag
  11047. IFS=$ac_save_IFS
  11048. shift
  11049. ac_file=$1
  11050. shift
  11051. case $ac_mode in
  11052. :L) ac_source=$1;;
  11053. :[FH])
  11054. ac_file_inputs=
  11055. for ac_f
  11056. do
  11057. case $ac_f in
  11058. -) ac_f="$tmp/stdin";;
  11059. *) # Look for the file first in the build tree, then in the source tree
  11060. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11061. # because $ac_f cannot contain `:'.
  11062. test -f "$ac_f" ||
  11063. case $ac_f in
  11064. [\\/$]*) false;;
  11065. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11066. esac ||
  11067. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  11068. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  11069. { (exit 1); exit 1; }; };;
  11070. esac
  11071. ac_file_inputs="$ac_file_inputs $ac_f"
  11072. done
  11073. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11074. # use $as_me), people would be surprised to read:
  11075. # /* config.h. Generated by config.status. */
  11076. configure_input="Generated from "`IFS=:
  11077. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  11078. if test x"$ac_file" != x-; then
  11079. configure_input="$ac_file. $configure_input"
  11080. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11081. echo "$as_me: creating $ac_file" >&6;}
  11082. fi
  11083. case $ac_tag in
  11084. *:-:* | *:-) cat >"$tmp/stdin";;
  11085. esac
  11086. ;;
  11087. esac
  11088. ac_dir=`$as_dirname -- "$ac_file" ||
  11089. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11090. X"$ac_file" : 'X\(//\)[^/]' \| \
  11091. X"$ac_file" : 'X\(//\)$' \| \
  11092. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11093. echo X"$ac_file" |
  11094. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11095. s//\1/
  11096. q
  11097. }
  11098. /^X\(\/\/\)[^/].*/{
  11099. s//\1/
  11100. q
  11101. }
  11102. /^X\(\/\/\)$/{
  11103. s//\1/
  11104. q
  11105. }
  11106. /^X\(\/\).*/{
  11107. s//\1/
  11108. q
  11109. }
  11110. s/.*/./; q'`
  11111. { as_dir="$ac_dir"
  11112. case $as_dir in #(
  11113. -*) as_dir=./$as_dir;;
  11114. esac
  11115. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11116. as_dirs=
  11117. while :; do
  11118. case $as_dir in #(
  11119. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11120. *) as_qdir=$as_dir;;
  11121. esac
  11122. as_dirs="'$as_qdir' $as_dirs"
  11123. as_dir=`$as_dirname -- "$as_dir" ||
  11124. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11125. X"$as_dir" : 'X\(//\)[^/]' \| \
  11126. X"$as_dir" : 'X\(//\)$' \| \
  11127. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11128. echo X"$as_dir" |
  11129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11130. s//\1/
  11131. q
  11132. }
  11133. /^X\(\/\/\)[^/].*/{
  11134. s//\1/
  11135. q
  11136. }
  11137. /^X\(\/\/\)$/{
  11138. s//\1/
  11139. q
  11140. }
  11141. /^X\(\/\).*/{
  11142. s//\1/
  11143. q
  11144. }
  11145. s/.*/./; q'`
  11146. test -d "$as_dir" && break
  11147. done
  11148. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11149. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11150. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11151. { (exit 1); exit 1; }; }; }
  11152. ac_builddir=.
  11153. case "$ac_dir" in
  11154. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11155. *)
  11156. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11157. # A ".." for each directory in $ac_dir_suffix.
  11158. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  11159. case $ac_top_builddir_sub in
  11160. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11161. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11162. esac ;;
  11163. esac
  11164. ac_abs_top_builddir=$ac_pwd
  11165. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11166. # for backward compatibility:
  11167. ac_top_builddir=$ac_top_build_prefix
  11168. case $srcdir in
  11169. .) # We are building in place.
  11170. ac_srcdir=.
  11171. ac_top_srcdir=$ac_top_builddir_sub
  11172. ac_abs_top_srcdir=$ac_pwd ;;
  11173. [\\/]* | ?:[\\/]* ) # Absolute name.
  11174. ac_srcdir=$srcdir$ac_dir_suffix;
  11175. ac_top_srcdir=$srcdir
  11176. ac_abs_top_srcdir=$srcdir ;;
  11177. *) # Relative name.
  11178. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11179. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11180. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11181. esac
  11182. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11183. case $ac_mode in
  11184. :F)
  11185. #
  11186. # CONFIG_FILE
  11187. #
  11188. case $INSTALL in
  11189. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11190. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11191. esac
  11192. ac_MKDIR_P=$MKDIR_P
  11193. case $MKDIR_P in
  11194. [\\/$]* | ?:[\\/]* ) ;;
  11195. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11196. esac
  11197. _ACEOF
  11198. cat >>$CONFIG_STATUS <<\_ACEOF
  11199. # If the template does not know about datarootdir, expand it.
  11200. # FIXME: This hack should be removed a few years after 2.60.
  11201. ac_datarootdir_hack=; ac_datarootdir_seen=
  11202. case `sed -n '/datarootdir/ {
  11203. p
  11204. q
  11205. }
  11206. /@datadir@/p
  11207. /@docdir@/p
  11208. /@infodir@/p
  11209. /@localedir@/p
  11210. /@mandir@/p
  11211. ' $ac_file_inputs` in
  11212. *datarootdir*) ac_datarootdir_seen=yes;;
  11213. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11214. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11215. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11216. _ACEOF
  11217. cat >>$CONFIG_STATUS <<_ACEOF
  11218. ac_datarootdir_hack='
  11219. s&@datadir@&$datadir&g
  11220. s&@docdir@&$docdir&g
  11221. s&@infodir@&$infodir&g
  11222. s&@localedir@&$localedir&g
  11223. s&@mandir@&$mandir&g
  11224. s&\\\${datarootdir}&$datarootdir&g' ;;
  11225. esac
  11226. _ACEOF
  11227. # Neutralize VPATH when `$srcdir' = `.'.
  11228. # Shell code in configure.ac might set extrasub.
  11229. # FIXME: do we really want to maintain this feature?
  11230. cat >>$CONFIG_STATUS <<_ACEOF
  11231. sed "$ac_vpsub
  11232. $extrasub
  11233. _ACEOF
  11234. cat >>$CONFIG_STATUS <<\_ACEOF
  11235. :t
  11236. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11237. s&@configure_input@&$configure_input&;t t
  11238. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11239. s&@srcdir@&$ac_srcdir&;t t
  11240. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11241. s&@top_srcdir@&$ac_top_srcdir&;t t
  11242. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11243. s&@builddir@&$ac_builddir&;t t
  11244. s&@abs_builddir@&$ac_abs_builddir&;t t
  11245. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11246. s&@INSTALL@&$ac_INSTALL&;t t
  11247. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11248. $ac_datarootdir_hack
  11249. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
  11250. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11251. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11252. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11253. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11254. which seems to be undefined. Please make sure it is defined." >&5
  11255. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11256. which seems to be undefined. Please make sure it is defined." >&2;}
  11257. rm -f "$tmp/stdin"
  11258. case $ac_file in
  11259. -) cat "$tmp/out"; rm -f "$tmp/out";;
  11260. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  11261. esac
  11262. ;;
  11263. :H)
  11264. #
  11265. # CONFIG_HEADER
  11266. #
  11267. _ACEOF
  11268. # Transform confdefs.h into a sed script `conftest.defines', that
  11269. # substitutes the proper values into config.h.in to produce config.h.
  11270. rm -f conftest.defines conftest.tail
  11271. # First, append a space to every undef/define line, to ease matching.
  11272. echo 's/$/ /' >conftest.defines
  11273. # Then, protect against being on the right side of a sed subst, or in
  11274. # an unquoted here document, in config.status. If some macros were
  11275. # called several times there might be several #defines for the same
  11276. # symbol, which is useless. But do not sort them, since the last
  11277. # AC_DEFINE must be honored.
  11278. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11279. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  11280. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  11281. # PARAMS is the parameter list in the macro definition--in most cases, it's
  11282. # just an empty string.
  11283. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  11284. ac_dB='\\)[ (].*,\\1define\\2'
  11285. ac_dC=' '
  11286. ac_dD=' ,'
  11287. uniq confdefs.h |
  11288. sed -n '
  11289. t rset
  11290. :rset
  11291. s/^[ ]*#[ ]*define[ ][ ]*//
  11292. t ok
  11293. d
  11294. :ok
  11295. s/[\\&,]/\\&/g
  11296. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  11297. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  11298. ' >>conftest.defines
  11299. # Remove the space that was appended to ease matching.
  11300. # Then replace #undef with comments. This is necessary, for
  11301. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11302. # on some systems where configure will not decide to define it.
  11303. # (The regexp can be short, since the line contains either #define or #undef.)
  11304. echo 's/ $//
  11305. s,^[ #]*u.*,/* & */,' >>conftest.defines
  11306. # Break up conftest.defines:
  11307. ac_max_sed_lines=50
  11308. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  11309. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  11310. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  11311. # et cetera.
  11312. ac_in='$ac_file_inputs'
  11313. ac_out='"$tmp/out1"'
  11314. ac_nxt='"$tmp/out2"'
  11315. while :
  11316. do
  11317. # Write a here document:
  11318. cat >>$CONFIG_STATUS <<_ACEOF
  11319. # First, check the format of the line:
  11320. cat >"\$tmp/defines.sed" <<\\CEOF
  11321. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  11322. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  11323. b
  11324. :def
  11325. _ACEOF
  11326. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  11327. echo 'CEOF
  11328. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  11329. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  11330. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  11331. grep . conftest.tail >/dev/null || break
  11332. rm -f conftest.defines
  11333. mv conftest.tail conftest.defines
  11334. done
  11335. rm -f conftest.defines conftest.tail
  11336. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  11337. cat >>$CONFIG_STATUS <<\_ACEOF
  11338. if test x"$ac_file" != x-; then
  11339. echo "/* $configure_input */" >"$tmp/config.h"
  11340. cat "$ac_result" >>"$tmp/config.h"
  11341. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  11342. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11343. echo "$as_me: $ac_file is unchanged" >&6;}
  11344. else
  11345. rm -f $ac_file
  11346. mv "$tmp/config.h" $ac_file
  11347. fi
  11348. else
  11349. echo "/* $configure_input */"
  11350. cat "$ac_result"
  11351. fi
  11352. rm -f "$tmp/out12"
  11353. # Compute $ac_file's index in $config_headers.
  11354. _am_arg=$ac_file
  11355. _am_stamp_count=1
  11356. for _am_header in $config_headers :; do
  11357. case $_am_header in
  11358. $_am_arg | $_am_arg:* )
  11359. break ;;
  11360. * )
  11361. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11362. esac
  11363. done
  11364. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11365. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11366. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11367. X"$_am_arg" : 'X\(//\)$' \| \
  11368. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11369. echo X"$_am_arg" |
  11370. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11371. s//\1/
  11372. q
  11373. }
  11374. /^X\(\/\/\)[^/].*/{
  11375. s//\1/
  11376. q
  11377. }
  11378. /^X\(\/\/\)$/{
  11379. s//\1/
  11380. q
  11381. }
  11382. /^X\(\/\).*/{
  11383. s//\1/
  11384. q
  11385. }
  11386. s/.*/./; q'`/stamp-h$_am_stamp_count
  11387. ;;
  11388. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  11389. echo "$as_me: executing $ac_file commands" >&6;}
  11390. ;;
  11391. esac
  11392. case $ac_file$ac_mode in
  11393. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11394. # Strip MF so we end up with the name of the file.
  11395. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11396. # Check whether this is an Automake generated Makefile or not.
  11397. # We used to match only the files named `Makefile.in', but
  11398. # some people rename them; so instead we look at the file content.
  11399. # Grep'ing the first line is not enough: some people post-process
  11400. # each Makefile.in and add a new line on top of each file to say so.
  11401. # Grep'ing the whole file is not good either: AIX grep has a line
  11402. # limit of 2048, but all sed's we know have understand at least 4000.
  11403. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11404. dirpart=`$as_dirname -- "$mf" ||
  11405. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11406. X"$mf" : 'X\(//\)[^/]' \| \
  11407. X"$mf" : 'X\(//\)$' \| \
  11408. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11409. echo X"$mf" |
  11410. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11411. s//\1/
  11412. q
  11413. }
  11414. /^X\(\/\/\)[^/].*/{
  11415. s//\1/
  11416. q
  11417. }
  11418. /^X\(\/\/\)$/{
  11419. s//\1/
  11420. q
  11421. }
  11422. /^X\(\/\).*/{
  11423. s//\1/
  11424. q
  11425. }
  11426. s/.*/./; q'`
  11427. else
  11428. continue
  11429. fi
  11430. # Extract the definition of DEPDIR, am__include, and am__quote
  11431. # from the Makefile without running `make'.
  11432. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11433. test -z "$DEPDIR" && continue
  11434. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11435. test -z "am__include" && continue
  11436. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11437. # When using ansi2knr, U may be empty or an underscore; expand it
  11438. U=`sed -n 's/^U = //p' < "$mf"`
  11439. # Find all dependency output files, they are included files with
  11440. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11441. # simplest approach to changing $(DEPDIR) to its actual value in the
  11442. # expansion.
  11443. for file in `sed -n "
  11444. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11445. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11446. # Make sure the directory exists.
  11447. test -f "$dirpart/$file" && continue
  11448. fdir=`$as_dirname -- "$file" ||
  11449. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11450. X"$file" : 'X\(//\)[^/]' \| \
  11451. X"$file" : 'X\(//\)$' \| \
  11452. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11453. echo X"$file" |
  11454. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11455. s//\1/
  11456. q
  11457. }
  11458. /^X\(\/\/\)[^/].*/{
  11459. s//\1/
  11460. q
  11461. }
  11462. /^X\(\/\/\)$/{
  11463. s//\1/
  11464. q
  11465. }
  11466. /^X\(\/\).*/{
  11467. s//\1/
  11468. q
  11469. }
  11470. s/.*/./; q'`
  11471. { as_dir=$dirpart/$fdir
  11472. case $as_dir in #(
  11473. -*) as_dir=./$as_dir;;
  11474. esac
  11475. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11476. as_dirs=
  11477. while :; do
  11478. case $as_dir in #(
  11479. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11480. *) as_qdir=$as_dir;;
  11481. esac
  11482. as_dirs="'$as_qdir' $as_dirs"
  11483. as_dir=`$as_dirname -- "$as_dir" ||
  11484. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11485. X"$as_dir" : 'X\(//\)[^/]' \| \
  11486. X"$as_dir" : 'X\(//\)$' \| \
  11487. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11488. echo X"$as_dir" |
  11489. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11490. s//\1/
  11491. q
  11492. }
  11493. /^X\(\/\/\)[^/].*/{
  11494. s//\1/
  11495. q
  11496. }
  11497. /^X\(\/\/\)$/{
  11498. s//\1/
  11499. q
  11500. }
  11501. /^X\(\/\).*/{
  11502. s//\1/
  11503. q
  11504. }
  11505. s/.*/./; q'`
  11506. test -d "$as_dir" && break
  11507. done
  11508. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11509. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11510. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11511. { (exit 1); exit 1; }; }; }
  11512. # echo "creating $dirpart/$file"
  11513. echo '# dummy' > "$dirpart/$file"
  11514. done
  11515. done
  11516. ;;
  11517. esac
  11518. done # for ac_tag
  11519. { (exit 0); exit 0; }
  11520. _ACEOF
  11521. chmod +x $CONFIG_STATUS
  11522. ac_clean_files=$ac_clean_files_save
  11523. # configure is writing to config.log, and then calls config.status.
  11524. # config.status does its own redirection, appending to config.log.
  11525. # Unfortunately, on DOS this fails, as config.log is still kept open
  11526. # by configure, so config.status won't be able to write to it; its
  11527. # output is simply discarded. So we exec the FD to /dev/null,
  11528. # effectively closing config.log, so it can be properly (re)opened and
  11529. # appended to by config.status. When coming back to configure, we
  11530. # need to make the FD available again.
  11531. if test "$no_create" != yes; then
  11532. ac_cs_success=:
  11533. ac_config_status_args=
  11534. test "$silent" = yes &&
  11535. ac_config_status_args="$ac_config_status_args --quiet"
  11536. exec 5>/dev/null
  11537. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11538. exec 5>>config.log
  11539. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11540. # would make configure fail if this is the last instruction.
  11541. $ac_cs_success || { (exit 1); exit 1; }
  11542. fi
  11543. type dpkg >/dev/null 2>&1
  11544. if test $? -eq 0; then
  11545. # Generate debian/ link if the dpkg command exists
  11546. # (read: if we are running on a debian compatible system)
  11547. echo "creating Debian-specific links ..."
  11548. test -f debian/rules || ln -s contrib/Debian debian
  11549. fi
  11550. # -- Result --
  11551. echo
  11552. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  11553. echo
  11554. # Someone please show me a better way :) [borrowed by OpenSSH]
  11555. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  11556. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  11557. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  11558. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  11559. D=`eval echo ${docdir}` ; D=`eval echo ${D}`
  11560. echo " Target: ${target}"
  11561. test "$target" != "$host" && echo " Host: ${host}"
  11562. echo " Compiler: ${CC}"
  11563. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  11564. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  11565. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  11566. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  11567. echo
  11568. echo " 'ngircd' binary: $S"
  11569. echo " Configuration file: $C"
  11570. echo " Manual pages: $M"
  11571. echo " Documentation: $D"
  11572. echo
  11573. echo $ECHO_N " Syslog support: $ECHO_C"
  11574. test "$x_syslog_on" = "yes" \
  11575. && echo $ECHO_N "yes $ECHO_C" \
  11576. || echo $ECHO_N "no $ECHO_C"
  11577. echo $ECHO_N " Enable debug code: $ECHO_C"
  11578. test "$x_debug_on" = "yes" \
  11579. && echo "yes" \
  11580. || echo "no"
  11581. echo $ECHO_N " zlib compression: $ECHO_C"
  11582. test "$x_zlib_on" = "yes" \
  11583. && echo $ECHO_N "yes $ECHO_C" \
  11584. || echo $ECHO_N "no $ECHO_C"
  11585. echo $ECHO_N " IRC sniffer: $ECHO_C"
  11586. test "$x_sniffer_on" = "yes" \
  11587. && echo "yes" \
  11588. || echo "no"
  11589. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  11590. test "$x_tcpwrap_on" = "yes" \
  11591. && echo $ECHO_N "yes $ECHO_C" \
  11592. || echo $ECHO_N "no $ECHO_C"
  11593. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  11594. test "$x_strict_rfc_on" = "yes" \
  11595. && echo "yes" \
  11596. || echo "no"
  11597. echo $ECHO_N " Zeroconf support: $ECHO_C"
  11598. case "$x_zeroconf_on" in
  11599. osx)
  11600. echo $ECHO_N "Apple $ECHO_C"
  11601. ;;
  11602. howl)
  11603. echo $ECHO_N "Howl $ECHO_C"
  11604. ;;
  11605. *)
  11606. echo $ECHO_N "no $ECHO_C"
  11607. ;;
  11608. esac
  11609. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  11610. test "$x_ircplus_on" = "yes" \
  11611. && echo "yes" \
  11612. || echo "no"
  11613. echo $ECHO_N " IDENT support: $ECHO_C"
  11614. test "$x_identauth_on" = "yes" \
  11615. && echo $ECHO_N "yes $ECHO_C" \
  11616. || echo $ECHO_N "no $ECHO_C"
  11617. echo $ECHO_N " I/O backend: $ECHO_C"
  11618. echo "\"$x_io_backend\""
  11619. echo $ECHO_N " IPv6 protocol: $ECHO_C"
  11620. test "$x_ipv6_on" = "yes" \
  11621. && echo $ECHO_N "yes $ECHO_C" \
  11622. || echo $ECHO_N "no $ECHO_C"
  11623. echo $ECHO_N " SSL support: $ECHO_C"
  11624. echo "$x_ssl_lib"
  11625. echo $ECHO_N " PAM support: $ECHO_C"
  11626. test "$x_pam_on" = "yes" \
  11627. && echo "yes" \
  11628. || echo "no"
  11629. echo
  11630. # -eof-