configure 246 KB

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