configure 255 KB

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