configure 361 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.18 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER PACKNAME MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Some influential environment variables:
  741. CC C compiler command
  742. CFLAGS C compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CPP C preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. ac_ext=c
  1152. ac_cpp='$CPP $CPPFLAGS'
  1153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1156. if test -n "$ac_tool_prefix"; then
  1157. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1158. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1159. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1160. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1161. if test "${ac_cv_prog_CC+set}" = set; then
  1162. echo $ECHO_N "(cached) $ECHO_C" >&6
  1163. else
  1164. if test -n "$CC"; then
  1165. ac_cv_prog_CC="$CC" # Let the user override the test.
  1166. else
  1167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1168. for as_dir in $PATH
  1169. do
  1170. IFS=$as_save_IFS
  1171. test -z "$as_dir" && as_dir=.
  1172. for ac_exec_ext in '' $ac_executable_extensions; do
  1173. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1174. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1175. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1176. break 2
  1177. fi
  1178. done
  1179. done
  1180. fi
  1181. fi
  1182. CC=$ac_cv_prog_CC
  1183. if test -n "$CC"; then
  1184. echo "$as_me:$LINENO: result: $CC" >&5
  1185. echo "${ECHO_T}$CC" >&6
  1186. else
  1187. echo "$as_me:$LINENO: result: no" >&5
  1188. echo "${ECHO_T}no" >&6
  1189. fi
  1190. fi
  1191. if test -z "$ac_cv_prog_CC"; then
  1192. ac_ct_CC=$CC
  1193. # Extract the first word of "gcc", so it can be a program name with args.
  1194. set dummy gcc; ac_word=$2
  1195. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1196. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1197. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1198. echo $ECHO_N "(cached) $ECHO_C" >&6
  1199. else
  1200. if test -n "$ac_ct_CC"; then
  1201. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1202. else
  1203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1204. for as_dir in $PATH
  1205. do
  1206. IFS=$as_save_IFS
  1207. test -z "$as_dir" && as_dir=.
  1208. for ac_exec_ext in '' $ac_executable_extensions; do
  1209. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1210. ac_cv_prog_ac_ct_CC="gcc"
  1211. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1212. break 2
  1213. fi
  1214. done
  1215. done
  1216. fi
  1217. fi
  1218. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1219. if test -n "$ac_ct_CC"; then
  1220. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1221. echo "${ECHO_T}$ac_ct_CC" >&6
  1222. else
  1223. echo "$as_me:$LINENO: result: no" >&5
  1224. echo "${ECHO_T}no" >&6
  1225. fi
  1226. CC=$ac_ct_CC
  1227. else
  1228. CC="$ac_cv_prog_CC"
  1229. fi
  1230. if test -z "$CC"; then
  1231. if test -n "$ac_tool_prefix"; then
  1232. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1233. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1234. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1235. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1236. if test "${ac_cv_prog_CC+set}" = set; then
  1237. echo $ECHO_N "(cached) $ECHO_C" >&6
  1238. else
  1239. if test -n "$CC"; then
  1240. ac_cv_prog_CC="$CC" # Let the user override the test.
  1241. else
  1242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1243. for as_dir in $PATH
  1244. do
  1245. IFS=$as_save_IFS
  1246. test -z "$as_dir" && as_dir=.
  1247. for ac_exec_ext in '' $ac_executable_extensions; do
  1248. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1249. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1250. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1251. break 2
  1252. fi
  1253. done
  1254. done
  1255. fi
  1256. fi
  1257. CC=$ac_cv_prog_CC
  1258. if test -n "$CC"; then
  1259. echo "$as_me:$LINENO: result: $CC" >&5
  1260. echo "${ECHO_T}$CC" >&6
  1261. else
  1262. echo "$as_me:$LINENO: result: no" >&5
  1263. echo "${ECHO_T}no" >&6
  1264. fi
  1265. fi
  1266. if test -z "$ac_cv_prog_CC"; then
  1267. ac_ct_CC=$CC
  1268. # Extract the first word of "cc", so it can be a program name with args.
  1269. set dummy cc; ac_word=$2
  1270. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1271. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1272. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1273. echo $ECHO_N "(cached) $ECHO_C" >&6
  1274. else
  1275. if test -n "$ac_ct_CC"; then
  1276. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1277. else
  1278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1279. for as_dir in $PATH
  1280. do
  1281. IFS=$as_save_IFS
  1282. test -z "$as_dir" && as_dir=.
  1283. for ac_exec_ext in '' $ac_executable_extensions; do
  1284. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1285. ac_cv_prog_ac_ct_CC="cc"
  1286. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1287. break 2
  1288. fi
  1289. done
  1290. done
  1291. fi
  1292. fi
  1293. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1294. if test -n "$ac_ct_CC"; then
  1295. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1296. echo "${ECHO_T}$ac_ct_CC" >&6
  1297. else
  1298. echo "$as_me:$LINENO: result: no" >&5
  1299. echo "${ECHO_T}no" >&6
  1300. fi
  1301. CC=$ac_ct_CC
  1302. else
  1303. CC="$ac_cv_prog_CC"
  1304. fi
  1305. fi
  1306. if test -z "$CC"; then
  1307. # Extract the first word of "cc", so it can be a program name with args.
  1308. set dummy cc; ac_word=$2
  1309. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1310. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1311. if test "${ac_cv_prog_CC+set}" = set; then
  1312. echo $ECHO_N "(cached) $ECHO_C" >&6
  1313. else
  1314. if test -n "$CC"; then
  1315. ac_cv_prog_CC="$CC" # Let the user override the test.
  1316. else
  1317. ac_prog_rejected=no
  1318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1319. for as_dir in $PATH
  1320. do
  1321. IFS=$as_save_IFS
  1322. test -z "$as_dir" && as_dir=.
  1323. for ac_exec_ext in '' $ac_executable_extensions; do
  1324. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1325. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1326. ac_prog_rejected=yes
  1327. continue
  1328. fi
  1329. ac_cv_prog_CC="cc"
  1330. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1331. break 2
  1332. fi
  1333. done
  1334. done
  1335. if test $ac_prog_rejected = yes; then
  1336. # We found a bogon in the path, so make sure we never use it.
  1337. set dummy $ac_cv_prog_CC
  1338. shift
  1339. if test $# != 0; then
  1340. # We chose a different compiler from the bogus one.
  1341. # However, it has the same basename, so the bogon will be chosen
  1342. # first if we set CC to just the basename; use the full file name.
  1343. shift
  1344. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1345. fi
  1346. fi
  1347. fi
  1348. fi
  1349. CC=$ac_cv_prog_CC
  1350. if test -n "$CC"; then
  1351. echo "$as_me:$LINENO: result: $CC" >&5
  1352. echo "${ECHO_T}$CC" >&6
  1353. else
  1354. echo "$as_me:$LINENO: result: no" >&5
  1355. echo "${ECHO_T}no" >&6
  1356. fi
  1357. fi
  1358. if test -z "$CC"; then
  1359. if test -n "$ac_tool_prefix"; then
  1360. for ac_prog in cl
  1361. do
  1362. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1363. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1364. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1365. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1366. if test "${ac_cv_prog_CC+set}" = set; then
  1367. echo $ECHO_N "(cached) $ECHO_C" >&6
  1368. else
  1369. if test -n "$CC"; then
  1370. ac_cv_prog_CC="$CC" # Let the user override the test.
  1371. else
  1372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1373. for as_dir in $PATH
  1374. do
  1375. IFS=$as_save_IFS
  1376. test -z "$as_dir" && as_dir=.
  1377. for ac_exec_ext in '' $ac_executable_extensions; do
  1378. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1379. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1380. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1381. break 2
  1382. fi
  1383. done
  1384. done
  1385. fi
  1386. fi
  1387. CC=$ac_cv_prog_CC
  1388. if test -n "$CC"; then
  1389. echo "$as_me:$LINENO: result: $CC" >&5
  1390. echo "${ECHO_T}$CC" >&6
  1391. else
  1392. echo "$as_me:$LINENO: result: no" >&5
  1393. echo "${ECHO_T}no" >&6
  1394. fi
  1395. test -n "$CC" && break
  1396. done
  1397. fi
  1398. if test -z "$CC"; then
  1399. ac_ct_CC=$CC
  1400. for ac_prog in cl
  1401. do
  1402. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1403. set dummy $ac_prog; ac_word=$2
  1404. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1405. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1406. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1407. echo $ECHO_N "(cached) $ECHO_C" >&6
  1408. else
  1409. if test -n "$ac_ct_CC"; then
  1410. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1411. else
  1412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1413. for as_dir in $PATH
  1414. do
  1415. IFS=$as_save_IFS
  1416. test -z "$as_dir" && as_dir=.
  1417. for ac_exec_ext in '' $ac_executable_extensions; do
  1418. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1419. ac_cv_prog_ac_ct_CC="$ac_prog"
  1420. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1421. break 2
  1422. fi
  1423. done
  1424. done
  1425. fi
  1426. fi
  1427. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1428. if test -n "$ac_ct_CC"; then
  1429. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1430. echo "${ECHO_T}$ac_ct_CC" >&6
  1431. else
  1432. echo "$as_me:$LINENO: result: no" >&5
  1433. echo "${ECHO_T}no" >&6
  1434. fi
  1435. test -n "$ac_ct_CC" && break
  1436. done
  1437. CC=$ac_ct_CC
  1438. fi
  1439. fi
  1440. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1441. See \`config.log' for more details." >&5
  1442. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1443. See \`config.log' for more details." >&2;}
  1444. { (exit 1); exit 1; }; }
  1445. # Provide some information about the compiler.
  1446. echo "$as_me:$LINENO:" \
  1447. "checking for C compiler version" >&5
  1448. ac_compiler=`set X $ac_compile; echo $2`
  1449. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1450. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1451. ac_status=$?
  1452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1453. (exit $ac_status); }
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1455. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. cat >conftest.$ac_ext <<_ACEOF
  1465. /* confdefs.h. */
  1466. _ACEOF
  1467. cat confdefs.h >>conftest.$ac_ext
  1468. cat >>conftest.$ac_ext <<_ACEOF
  1469. /* end confdefs.h. */
  1470. int
  1471. main ()
  1472. {
  1473. ;
  1474. return 0;
  1475. }
  1476. _ACEOF
  1477. ac_clean_files_save=$ac_clean_files
  1478. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1479. # Try to create an executable without -o first, disregard a.out.
  1480. # It will help us diagnose broken compilers, and finding out an intuition
  1481. # of exeext.
  1482. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1483. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1484. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1485. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1486. (eval $ac_link_default) 2>&5
  1487. ac_status=$?
  1488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1489. (exit $ac_status); }; then
  1490. # Find the output, starting from the most likely. This scheme is
  1491. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1492. # resort.
  1493. # Be careful to initialize this variable, since it used to be cached.
  1494. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1495. ac_cv_exeext=
  1496. # b.out is created by i960 compilers.
  1497. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1498. do
  1499. test -f "$ac_file" || continue
  1500. case $ac_file in
  1501. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1502. ;;
  1503. conftest.$ac_ext )
  1504. # This is the source file.
  1505. ;;
  1506. [ab].out )
  1507. # We found the default executable, but exeext='' is most
  1508. # certainly right.
  1509. break;;
  1510. *.* )
  1511. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1512. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1513. # but it would be cool to find out if it's true. Does anybody
  1514. # maintain Libtool? --akim.
  1515. export ac_cv_exeext
  1516. break;;
  1517. * )
  1518. break;;
  1519. esac
  1520. done
  1521. else
  1522. echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1525. See \`config.log' for more details." >&5
  1526. echo "$as_me: error: C compiler cannot create executables
  1527. See \`config.log' for more details." >&2;}
  1528. { (exit 77); exit 77; }; }
  1529. fi
  1530. ac_exeext=$ac_cv_exeext
  1531. echo "$as_me:$LINENO: result: $ac_file" >&5
  1532. echo "${ECHO_T}$ac_file" >&6
  1533. # Check the compiler produces executables we can run. If not, either
  1534. # the compiler is broken, or we cross compile.
  1535. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1536. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1537. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1538. # If not cross compiling, check that we can run a simple program.
  1539. if test "$cross_compiling" != yes; then
  1540. if { ac_try='./$ac_file'
  1541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1542. (eval $ac_try) 2>&5
  1543. ac_status=$?
  1544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1545. (exit $ac_status); }; }; then
  1546. cross_compiling=no
  1547. else
  1548. if test "$cross_compiling" = maybe; then
  1549. cross_compiling=yes
  1550. else
  1551. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1552. If you meant to cross compile, use \`--host'.
  1553. See \`config.log' for more details." >&5
  1554. echo "$as_me: error: cannot run C compiled programs.
  1555. If you meant to cross compile, use \`--host'.
  1556. See \`config.log' for more details." >&2;}
  1557. { (exit 1); exit 1; }; }
  1558. fi
  1559. fi
  1560. fi
  1561. echo "$as_me:$LINENO: result: yes" >&5
  1562. echo "${ECHO_T}yes" >&6
  1563. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1564. ac_clean_files=$ac_clean_files_save
  1565. # Check the compiler produces executables we can run. If not, either
  1566. # the compiler is broken, or we cross compile.
  1567. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1568. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1569. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1570. echo "${ECHO_T}$cross_compiling" >&6
  1571. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1572. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1573. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1574. (eval $ac_link) 2>&5
  1575. ac_status=$?
  1576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1577. (exit $ac_status); }; then
  1578. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1579. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1580. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1581. # `rm'.
  1582. for ac_file in conftest.exe conftest conftest.*; do
  1583. test -f "$ac_file" || continue
  1584. case $ac_file in
  1585. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1586. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1587. export ac_cv_exeext
  1588. break;;
  1589. * ) break;;
  1590. esac
  1591. done
  1592. else
  1593. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1594. See \`config.log' for more details." >&5
  1595. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1596. See \`config.log' for more details." >&2;}
  1597. { (exit 1); exit 1; }; }
  1598. fi
  1599. rm -f conftest$ac_cv_exeext
  1600. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1601. echo "${ECHO_T}$ac_cv_exeext" >&6
  1602. rm -f conftest.$ac_ext
  1603. EXEEXT=$ac_cv_exeext
  1604. ac_exeext=$EXEEXT
  1605. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1606. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1607. if test "${ac_cv_objext+set}" = set; then
  1608. echo $ECHO_N "(cached) $ECHO_C" >&6
  1609. else
  1610. cat >conftest.$ac_ext <<_ACEOF
  1611. /* confdefs.h. */
  1612. _ACEOF
  1613. cat confdefs.h >>conftest.$ac_ext
  1614. cat >>conftest.$ac_ext <<_ACEOF
  1615. /* end confdefs.h. */
  1616. int
  1617. main ()
  1618. {
  1619. ;
  1620. return 0;
  1621. }
  1622. _ACEOF
  1623. rm -f conftest.o conftest.obj
  1624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1625. (eval $ac_compile) 2>&5
  1626. ac_status=$?
  1627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1628. (exit $ac_status); }; then
  1629. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1630. case $ac_file in
  1631. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1632. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1633. break;;
  1634. esac
  1635. done
  1636. else
  1637. echo "$as_me: failed program was:" >&5
  1638. sed 's/^/| /' conftest.$ac_ext >&5
  1639. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1640. See \`config.log' for more details." >&5
  1641. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1642. See \`config.log' for more details." >&2;}
  1643. { (exit 1); exit 1; }; }
  1644. fi
  1645. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1646. fi
  1647. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1648. echo "${ECHO_T}$ac_cv_objext" >&6
  1649. OBJEXT=$ac_cv_objext
  1650. ac_objext=$OBJEXT
  1651. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1652. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1653. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1654. echo $ECHO_N "(cached) $ECHO_C" >&6
  1655. else
  1656. cat >conftest.$ac_ext <<_ACEOF
  1657. /* confdefs.h. */
  1658. _ACEOF
  1659. cat confdefs.h >>conftest.$ac_ext
  1660. cat >>conftest.$ac_ext <<_ACEOF
  1661. /* end confdefs.h. */
  1662. int
  1663. main ()
  1664. {
  1665. #ifndef __GNUC__
  1666. choke me
  1667. #endif
  1668. ;
  1669. return 0;
  1670. }
  1671. _ACEOF
  1672. rm -f conftest.$ac_objext
  1673. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1674. (eval $ac_compile) 2>conftest.er1
  1675. ac_status=$?
  1676. grep -v '^ *+' conftest.er1 >conftest.err
  1677. rm -f conftest.er1
  1678. cat conftest.err >&5
  1679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1680. (exit $ac_status); } &&
  1681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1683. (eval $ac_try) 2>&5
  1684. ac_status=$?
  1685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1686. (exit $ac_status); }; } &&
  1687. { ac_try='test -s conftest.$ac_objext'
  1688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1689. (eval $ac_try) 2>&5
  1690. ac_status=$?
  1691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1692. (exit $ac_status); }; }; then
  1693. ac_compiler_gnu=yes
  1694. else
  1695. echo "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. ac_compiler_gnu=no
  1698. fi
  1699. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1700. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1701. fi
  1702. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1703. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1704. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1705. ac_test_CFLAGS=${CFLAGS+set}
  1706. ac_save_CFLAGS=$CFLAGS
  1707. CFLAGS="-g"
  1708. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1709. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1710. if test "${ac_cv_prog_cc_g+set}" = set; then
  1711. echo $ECHO_N "(cached) $ECHO_C" >&6
  1712. else
  1713. cat >conftest.$ac_ext <<_ACEOF
  1714. /* confdefs.h. */
  1715. _ACEOF
  1716. cat confdefs.h >>conftest.$ac_ext
  1717. cat >>conftest.$ac_ext <<_ACEOF
  1718. /* end confdefs.h. */
  1719. int
  1720. main ()
  1721. {
  1722. ;
  1723. return 0;
  1724. }
  1725. _ACEOF
  1726. rm -f conftest.$ac_objext
  1727. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1728. (eval $ac_compile) 2>conftest.er1
  1729. ac_status=$?
  1730. grep -v '^ *+' conftest.er1 >conftest.err
  1731. rm -f conftest.er1
  1732. cat conftest.err >&5
  1733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1734. (exit $ac_status); } &&
  1735. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1737. (eval $ac_try) 2>&5
  1738. ac_status=$?
  1739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1740. (exit $ac_status); }; } &&
  1741. { ac_try='test -s conftest.$ac_objext'
  1742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1743. (eval $ac_try) 2>&5
  1744. ac_status=$?
  1745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1746. (exit $ac_status); }; }; then
  1747. ac_cv_prog_cc_g=yes
  1748. else
  1749. echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_cv_prog_cc_g=no
  1752. fi
  1753. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1754. fi
  1755. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1756. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1757. if test "$ac_test_CFLAGS" = set; then
  1758. CFLAGS=$ac_save_CFLAGS
  1759. elif test $ac_cv_prog_cc_g = yes; then
  1760. if test "$GCC" = yes; then
  1761. CFLAGS="-g -O2"
  1762. else
  1763. CFLAGS="-g"
  1764. fi
  1765. else
  1766. if test "$GCC" = yes; then
  1767. CFLAGS="-O2"
  1768. else
  1769. CFLAGS=
  1770. fi
  1771. fi
  1772. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1773. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1774. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1775. echo $ECHO_N "(cached) $ECHO_C" >&6
  1776. else
  1777. ac_cv_prog_cc_stdc=no
  1778. ac_save_CC=$CC
  1779. cat >conftest.$ac_ext <<_ACEOF
  1780. /* confdefs.h. */
  1781. _ACEOF
  1782. cat confdefs.h >>conftest.$ac_ext
  1783. cat >>conftest.$ac_ext <<_ACEOF
  1784. /* end confdefs.h. */
  1785. #include <stdarg.h>
  1786. #include <stdio.h>
  1787. #include <sys/types.h>
  1788. #include <sys/stat.h>
  1789. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1790. struct buf { int x; };
  1791. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1792. static char *e (p, i)
  1793. char **p;
  1794. int i;
  1795. {
  1796. return p[i];
  1797. }
  1798. static char *f (char * (*g) (char **, int), char **p, ...)
  1799. {
  1800. char *s;
  1801. va_list v;
  1802. va_start (v,p);
  1803. s = g (p, va_arg (v,int));
  1804. va_end (v);
  1805. return s;
  1806. }
  1807. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1808. function prototypes and stuff, but not '\xHH' hex character constants.
  1809. These don't provoke an error unfortunately, instead are silently treated
  1810. as 'x'. The following induces an error, until -std1 is added to get
  1811. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1812. array size at least. It's necessary to write '\x00'==0 to get something
  1813. that's true only with -std1. */
  1814. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1815. int test (int i, double x);
  1816. struct s1 {int (*f) (int a);};
  1817. struct s2 {int (*f) (double a);};
  1818. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1819. int argc;
  1820. char **argv;
  1821. int
  1822. main ()
  1823. {
  1824. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1825. ;
  1826. return 0;
  1827. }
  1828. _ACEOF
  1829. # Don't try gcc -ansi; that turns off useful extensions and
  1830. # breaks some systems' header files.
  1831. # AIX -qlanglvl=ansi
  1832. # Ultrix and OSF/1 -std1
  1833. # HP-UX 10.20 and later -Ae
  1834. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1835. # SVR4 -Xc -D__EXTENSIONS__
  1836. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1837. do
  1838. CC="$ac_save_CC $ac_arg"
  1839. rm -f conftest.$ac_objext
  1840. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1841. (eval $ac_compile) 2>conftest.er1
  1842. ac_status=$?
  1843. grep -v '^ *+' conftest.er1 >conftest.err
  1844. rm -f conftest.er1
  1845. cat conftest.err >&5
  1846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1847. (exit $ac_status); } &&
  1848. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1850. (eval $ac_try) 2>&5
  1851. ac_status=$?
  1852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1853. (exit $ac_status); }; } &&
  1854. { ac_try='test -s conftest.$ac_objext'
  1855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1856. (eval $ac_try) 2>&5
  1857. ac_status=$?
  1858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1859. (exit $ac_status); }; }; then
  1860. ac_cv_prog_cc_stdc=$ac_arg
  1861. break
  1862. else
  1863. echo "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. fi
  1866. rm -f conftest.err conftest.$ac_objext
  1867. done
  1868. rm -f conftest.$ac_ext conftest.$ac_objext
  1869. CC=$ac_save_CC
  1870. fi
  1871. case "x$ac_cv_prog_cc_stdc" in
  1872. x|xno)
  1873. echo "$as_me:$LINENO: result: none needed" >&5
  1874. echo "${ECHO_T}none needed" >&6 ;;
  1875. *)
  1876. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1877. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1878. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1879. esac
  1880. # Some people use a C++ compiler to compile C. Since we use `exit',
  1881. # in C++ we need to declare it. In case someone uses the same compiler
  1882. # for both compiling C and C++ we need to have the C++ compiler decide
  1883. # the declaration of exit, since it's the most demanding environment.
  1884. cat >conftest.$ac_ext <<_ACEOF
  1885. #ifndef __cplusplus
  1886. choke me
  1887. #endif
  1888. _ACEOF
  1889. rm -f conftest.$ac_objext
  1890. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1891. (eval $ac_compile) 2>conftest.er1
  1892. ac_status=$?
  1893. grep -v '^ *+' conftest.er1 >conftest.err
  1894. rm -f conftest.er1
  1895. cat conftest.err >&5
  1896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1897. (exit $ac_status); } &&
  1898. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1900. (eval $ac_try) 2>&5
  1901. ac_status=$?
  1902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); }; } &&
  1904. { ac_try='test -s conftest.$ac_objext'
  1905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1906. (eval $ac_try) 2>&5
  1907. ac_status=$?
  1908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1909. (exit $ac_status); }; }; then
  1910. for ac_declaration in \
  1911. '' \
  1912. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1913. 'extern "C" void std::exit (int); using std::exit;' \
  1914. 'extern "C" void exit (int) throw ();' \
  1915. 'extern "C" void exit (int);' \
  1916. 'void exit (int);'
  1917. do
  1918. cat >conftest.$ac_ext <<_ACEOF
  1919. /* confdefs.h. */
  1920. _ACEOF
  1921. cat confdefs.h >>conftest.$ac_ext
  1922. cat >>conftest.$ac_ext <<_ACEOF
  1923. /* end confdefs.h. */
  1924. $ac_declaration
  1925. #include <stdlib.h>
  1926. int
  1927. main ()
  1928. {
  1929. exit (42);
  1930. ;
  1931. return 0;
  1932. }
  1933. _ACEOF
  1934. rm -f conftest.$ac_objext
  1935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1936. (eval $ac_compile) 2>conftest.er1
  1937. ac_status=$?
  1938. grep -v '^ *+' conftest.er1 >conftest.err
  1939. rm -f conftest.er1
  1940. cat conftest.err >&5
  1941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1942. (exit $ac_status); } &&
  1943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1945. (eval $ac_try) 2>&5
  1946. ac_status=$?
  1947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1948. (exit $ac_status); }; } &&
  1949. { ac_try='test -s conftest.$ac_objext'
  1950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1951. (eval $ac_try) 2>&5
  1952. ac_status=$?
  1953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1954. (exit $ac_status); }; }; then
  1955. :
  1956. else
  1957. echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. continue
  1960. fi
  1961. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1962. cat >conftest.$ac_ext <<_ACEOF
  1963. /* confdefs.h. */
  1964. _ACEOF
  1965. cat confdefs.h >>conftest.$ac_ext
  1966. cat >>conftest.$ac_ext <<_ACEOF
  1967. /* end confdefs.h. */
  1968. $ac_declaration
  1969. int
  1970. main ()
  1971. {
  1972. exit (42);
  1973. ;
  1974. return 0;
  1975. }
  1976. _ACEOF
  1977. rm -f conftest.$ac_objext
  1978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1979. (eval $ac_compile) 2>conftest.er1
  1980. ac_status=$?
  1981. grep -v '^ *+' conftest.er1 >conftest.err
  1982. rm -f conftest.er1
  1983. cat conftest.err >&5
  1984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1985. (exit $ac_status); } &&
  1986. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1988. (eval $ac_try) 2>&5
  1989. ac_status=$?
  1990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1991. (exit $ac_status); }; } &&
  1992. { ac_try='test -s conftest.$ac_objext'
  1993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1994. (eval $ac_try) 2>&5
  1995. ac_status=$?
  1996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1997. (exit $ac_status); }; }; then
  1998. break
  1999. else
  2000. echo "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. fi
  2003. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2004. done
  2005. rm -f conftest*
  2006. if test -n "$ac_declaration"; then
  2007. echo '#ifdef __cplusplus' >>confdefs.h
  2008. echo $ac_declaration >>confdefs.h
  2009. echo '#endif' >>confdefs.h
  2010. fi
  2011. else
  2012. echo "$as_me: failed program was:" >&5
  2013. sed 's/^/| /' conftest.$ac_ext >&5
  2014. fi
  2015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2016. ac_ext=c
  2017. ac_cpp='$CPP $CPPFLAGS'
  2018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2021. if test "${cross_compiling-x}" = "x"
  2022. then
  2023. cat << 'EOF' >&2
  2024. configure: error:
  2025. This system does not appear to have a working C compiler.
  2026. A working C compiler is required to compile Eggdrop.
  2027. EOF
  2028. exit 1
  2029. fi
  2030. # Crazy machines
  2031. ac_ext=c
  2032. ac_cpp='$CPP $CPPFLAGS'
  2033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2036. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2037. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2038. # On Suns, sometimes $CPP names a directory.
  2039. if test -n "$CPP" && test -d "$CPP"; then
  2040. CPP=
  2041. fi
  2042. if test -z "$CPP"; then
  2043. if test "${ac_cv_prog_CPP+set}" = set; then
  2044. echo $ECHO_N "(cached) $ECHO_C" >&6
  2045. else
  2046. # Double quotes because CPP needs to be expanded
  2047. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2048. do
  2049. ac_preproc_ok=false
  2050. for ac_c_preproc_warn_flag in '' yes
  2051. do
  2052. # Use a header file that comes with gcc, so configuring glibc
  2053. # with a fresh cross-compiler works.
  2054. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2055. # <limits.h> exists even on freestanding compilers.
  2056. # On the NeXT, cc -E runs the code through the compiler's parser,
  2057. # not just through cpp. "Syntax error" is here to catch this case.
  2058. cat >conftest.$ac_ext <<_ACEOF
  2059. /* confdefs.h. */
  2060. _ACEOF
  2061. cat confdefs.h >>conftest.$ac_ext
  2062. cat >>conftest.$ac_ext <<_ACEOF
  2063. /* end confdefs.h. */
  2064. #ifdef __STDC__
  2065. # include <limits.h>
  2066. #else
  2067. # include <assert.h>
  2068. #endif
  2069. Syntax error
  2070. _ACEOF
  2071. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2072. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2073. ac_status=$?
  2074. grep -v '^ *+' conftest.er1 >conftest.err
  2075. rm -f conftest.er1
  2076. cat conftest.err >&5
  2077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2078. (exit $ac_status); } >/dev/null; then
  2079. if test -s conftest.err; then
  2080. ac_cpp_err=$ac_c_preproc_warn_flag
  2081. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2082. else
  2083. ac_cpp_err=
  2084. fi
  2085. else
  2086. ac_cpp_err=yes
  2087. fi
  2088. if test -z "$ac_cpp_err"; then
  2089. :
  2090. else
  2091. echo "$as_me: failed program was:" >&5
  2092. sed 's/^/| /' conftest.$ac_ext >&5
  2093. # Broken: fails on valid input.
  2094. continue
  2095. fi
  2096. rm -f conftest.err conftest.$ac_ext
  2097. # OK, works on sane cases. Now check whether non-existent headers
  2098. # can be detected and how.
  2099. cat >conftest.$ac_ext <<_ACEOF
  2100. /* confdefs.h. */
  2101. _ACEOF
  2102. cat confdefs.h >>conftest.$ac_ext
  2103. cat >>conftest.$ac_ext <<_ACEOF
  2104. /* end confdefs.h. */
  2105. #include <ac_nonexistent.h>
  2106. _ACEOF
  2107. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2108. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2109. ac_status=$?
  2110. grep -v '^ *+' conftest.er1 >conftest.err
  2111. rm -f conftest.er1
  2112. cat conftest.err >&5
  2113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2114. (exit $ac_status); } >/dev/null; then
  2115. if test -s conftest.err; then
  2116. ac_cpp_err=$ac_c_preproc_warn_flag
  2117. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2118. else
  2119. ac_cpp_err=
  2120. fi
  2121. else
  2122. ac_cpp_err=yes
  2123. fi
  2124. if test -z "$ac_cpp_err"; then
  2125. # Broken: success on invalid input.
  2126. continue
  2127. else
  2128. echo "$as_me: failed program was:" >&5
  2129. sed 's/^/| /' conftest.$ac_ext >&5
  2130. # Passes both tests.
  2131. ac_preproc_ok=:
  2132. break
  2133. fi
  2134. rm -f conftest.err conftest.$ac_ext
  2135. done
  2136. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2137. rm -f conftest.err conftest.$ac_ext
  2138. if $ac_preproc_ok; then
  2139. break
  2140. fi
  2141. done
  2142. ac_cv_prog_CPP=$CPP
  2143. fi
  2144. CPP=$ac_cv_prog_CPP
  2145. else
  2146. ac_cv_prog_CPP=$CPP
  2147. fi
  2148. echo "$as_me:$LINENO: result: $CPP" >&5
  2149. echo "${ECHO_T}$CPP" >&6
  2150. ac_preproc_ok=false
  2151. for ac_c_preproc_warn_flag in '' yes
  2152. do
  2153. # Use a header file that comes with gcc, so configuring glibc
  2154. # with a fresh cross-compiler works.
  2155. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2156. # <limits.h> exists even on freestanding compilers.
  2157. # On the NeXT, cc -E runs the code through the compiler's parser,
  2158. # not just through cpp. "Syntax error" is here to catch this case.
  2159. cat >conftest.$ac_ext <<_ACEOF
  2160. /* confdefs.h. */
  2161. _ACEOF
  2162. cat confdefs.h >>conftest.$ac_ext
  2163. cat >>conftest.$ac_ext <<_ACEOF
  2164. /* end confdefs.h. */
  2165. #ifdef __STDC__
  2166. # include <limits.h>
  2167. #else
  2168. # include <assert.h>
  2169. #endif
  2170. Syntax error
  2171. _ACEOF
  2172. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2173. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2174. ac_status=$?
  2175. grep -v '^ *+' conftest.er1 >conftest.err
  2176. rm -f conftest.er1
  2177. cat conftest.err >&5
  2178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2179. (exit $ac_status); } >/dev/null; then
  2180. if test -s conftest.err; then
  2181. ac_cpp_err=$ac_c_preproc_warn_flag
  2182. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2183. else
  2184. ac_cpp_err=
  2185. fi
  2186. else
  2187. ac_cpp_err=yes
  2188. fi
  2189. if test -z "$ac_cpp_err"; then
  2190. :
  2191. else
  2192. echo "$as_me: failed program was:" >&5
  2193. sed 's/^/| /' conftest.$ac_ext >&5
  2194. # Broken: fails on valid input.
  2195. continue
  2196. fi
  2197. rm -f conftest.err conftest.$ac_ext
  2198. # OK, works on sane cases. Now check whether non-existent headers
  2199. # can be detected and how.
  2200. cat >conftest.$ac_ext <<_ACEOF
  2201. /* confdefs.h. */
  2202. _ACEOF
  2203. cat confdefs.h >>conftest.$ac_ext
  2204. cat >>conftest.$ac_ext <<_ACEOF
  2205. /* end confdefs.h. */
  2206. #include <ac_nonexistent.h>
  2207. _ACEOF
  2208. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2209. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2210. ac_status=$?
  2211. grep -v '^ *+' conftest.er1 >conftest.err
  2212. rm -f conftest.er1
  2213. cat conftest.err >&5
  2214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2215. (exit $ac_status); } >/dev/null; then
  2216. if test -s conftest.err; then
  2217. ac_cpp_err=$ac_c_preproc_warn_flag
  2218. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2219. else
  2220. ac_cpp_err=
  2221. fi
  2222. else
  2223. ac_cpp_err=yes
  2224. fi
  2225. if test -z "$ac_cpp_err"; then
  2226. # Broken: success on invalid input.
  2227. continue
  2228. else
  2229. echo "$as_me: failed program was:" >&5
  2230. sed 's/^/| /' conftest.$ac_ext >&5
  2231. # Passes both tests.
  2232. ac_preproc_ok=:
  2233. break
  2234. fi
  2235. rm -f conftest.err conftest.$ac_ext
  2236. done
  2237. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2238. rm -f conftest.err conftest.$ac_ext
  2239. if $ac_preproc_ok; then
  2240. :
  2241. else
  2242. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2243. See \`config.log' for more details." >&5
  2244. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2245. See \`config.log' for more details." >&2;}
  2246. { (exit 1); exit 1; }; }
  2247. fi
  2248. ac_ext=c
  2249. ac_cpp='$CPP $CPPFLAGS'
  2250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2253. echo "$as_me:$LINENO: checking for egrep" >&5
  2254. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2255. if test "${ac_cv_prog_egrep+set}" = set; then
  2256. echo $ECHO_N "(cached) $ECHO_C" >&6
  2257. else
  2258. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2259. then ac_cv_prog_egrep='grep -E'
  2260. else ac_cv_prog_egrep='egrep'
  2261. fi
  2262. fi
  2263. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2264. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2265. EGREP=$ac_cv_prog_egrep
  2266. echo "$as_me:$LINENO: checking for AIX" >&5
  2267. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2268. cat >conftest.$ac_ext <<_ACEOF
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. #ifdef _AIX
  2275. yes
  2276. #endif
  2277. _ACEOF
  2278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2279. $EGREP "yes" >/dev/null 2>&1; then
  2280. echo "$as_me:$LINENO: result: yes" >&5
  2281. echo "${ECHO_T}yes" >&6
  2282. cat >>confdefs.h <<\_ACEOF
  2283. #define _ALL_SOURCE 1
  2284. _ACEOF
  2285. else
  2286. echo "$as_me:$LINENO: result: no" >&5
  2287. echo "${ECHO_T}no" >&6
  2288. fi
  2289. rm -f conftest*
  2290. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2291. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2292. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2293. echo $ECHO_N "(cached) $ECHO_C" >&6
  2294. else
  2295. ac_check_lib_save_LIBS=$LIBS
  2296. LIBS="-lcposix $LIBS"
  2297. cat >conftest.$ac_ext <<_ACEOF
  2298. /* confdefs.h. */
  2299. _ACEOF
  2300. cat confdefs.h >>conftest.$ac_ext
  2301. cat >>conftest.$ac_ext <<_ACEOF
  2302. /* end confdefs.h. */
  2303. /* Override any gcc2 internal prototype to avoid an error. */
  2304. #ifdef __cplusplus
  2305. extern "C"
  2306. #endif
  2307. /* We use char because int might match the return type of a gcc2
  2308. builtin and then its argument prototype would still apply. */
  2309. char strerror ();
  2310. int
  2311. main ()
  2312. {
  2313. strerror ();
  2314. ;
  2315. return 0;
  2316. }
  2317. _ACEOF
  2318. rm -f conftest.$ac_objext conftest$ac_exeext
  2319. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2320. (eval $ac_link) 2>conftest.er1
  2321. ac_status=$?
  2322. grep -v '^ *+' conftest.er1 >conftest.err
  2323. rm -f conftest.er1
  2324. cat conftest.err >&5
  2325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2326. (exit $ac_status); } &&
  2327. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2329. (eval $ac_try) 2>&5
  2330. ac_status=$?
  2331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2332. (exit $ac_status); }; } &&
  2333. { ac_try='test -s conftest$ac_exeext'
  2334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2335. (eval $ac_try) 2>&5
  2336. ac_status=$?
  2337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2338. (exit $ac_status); }; }; then
  2339. ac_cv_lib_cposix_strerror=yes
  2340. else
  2341. echo "$as_me: failed program was:" >&5
  2342. sed 's/^/| /' conftest.$ac_ext >&5
  2343. ac_cv_lib_cposix_strerror=no
  2344. fi
  2345. rm -f conftest.err conftest.$ac_objext \
  2346. conftest$ac_exeext conftest.$ac_ext
  2347. LIBS=$ac_check_lib_save_LIBS
  2348. fi
  2349. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2350. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2351. if test $ac_cv_lib_cposix_strerror = yes; then
  2352. LIBS="$LIBS -lcposix"
  2353. fi
  2354. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2355. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2356. if test "${ac_cv_header_stdc+set}" = set; then
  2357. echo $ECHO_N "(cached) $ECHO_C" >&6
  2358. else
  2359. cat >conftest.$ac_ext <<_ACEOF
  2360. /* confdefs.h. */
  2361. _ACEOF
  2362. cat confdefs.h >>conftest.$ac_ext
  2363. cat >>conftest.$ac_ext <<_ACEOF
  2364. /* end confdefs.h. */
  2365. #include <stdlib.h>
  2366. #include <stdarg.h>
  2367. #include <string.h>
  2368. #include <float.h>
  2369. int
  2370. main ()
  2371. {
  2372. ;
  2373. return 0;
  2374. }
  2375. _ACEOF
  2376. rm -f conftest.$ac_objext
  2377. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2378. (eval $ac_compile) 2>conftest.er1
  2379. ac_status=$?
  2380. grep -v '^ *+' conftest.er1 >conftest.err
  2381. rm -f conftest.er1
  2382. cat conftest.err >&5
  2383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2384. (exit $ac_status); } &&
  2385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2387. (eval $ac_try) 2>&5
  2388. ac_status=$?
  2389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2390. (exit $ac_status); }; } &&
  2391. { ac_try='test -s conftest.$ac_objext'
  2392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2393. (eval $ac_try) 2>&5
  2394. ac_status=$?
  2395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2396. (exit $ac_status); }; }; then
  2397. ac_cv_header_stdc=yes
  2398. else
  2399. echo "$as_me: failed program was:" >&5
  2400. sed 's/^/| /' conftest.$ac_ext >&5
  2401. ac_cv_header_stdc=no
  2402. fi
  2403. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2404. if test $ac_cv_header_stdc = yes; then
  2405. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2406. cat >conftest.$ac_ext <<_ACEOF
  2407. /* confdefs.h. */
  2408. _ACEOF
  2409. cat confdefs.h >>conftest.$ac_ext
  2410. cat >>conftest.$ac_ext <<_ACEOF
  2411. /* end confdefs.h. */
  2412. #include <string.h>
  2413. _ACEOF
  2414. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2415. $EGREP "memchr" >/dev/null 2>&1; then
  2416. :
  2417. else
  2418. ac_cv_header_stdc=no
  2419. fi
  2420. rm -f conftest*
  2421. fi
  2422. if test $ac_cv_header_stdc = yes; then
  2423. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2424. cat >conftest.$ac_ext <<_ACEOF
  2425. /* confdefs.h. */
  2426. _ACEOF
  2427. cat confdefs.h >>conftest.$ac_ext
  2428. cat >>conftest.$ac_ext <<_ACEOF
  2429. /* end confdefs.h. */
  2430. #include <stdlib.h>
  2431. _ACEOF
  2432. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2433. $EGREP "free" >/dev/null 2>&1; then
  2434. :
  2435. else
  2436. ac_cv_header_stdc=no
  2437. fi
  2438. rm -f conftest*
  2439. fi
  2440. if test $ac_cv_header_stdc = yes; then
  2441. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2442. if test "$cross_compiling" = yes; then
  2443. :
  2444. else
  2445. cat >conftest.$ac_ext <<_ACEOF
  2446. /* confdefs.h. */
  2447. _ACEOF
  2448. cat confdefs.h >>conftest.$ac_ext
  2449. cat >>conftest.$ac_ext <<_ACEOF
  2450. /* end confdefs.h. */
  2451. #include <ctype.h>
  2452. #if ((' ' & 0x0FF) == 0x020)
  2453. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2454. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2455. #else
  2456. # define ISLOWER(c) \
  2457. (('a' <= (c) && (c) <= 'i') \
  2458. || ('j' <= (c) && (c) <= 'r') \
  2459. || ('s' <= (c) && (c) <= 'z'))
  2460. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2461. #endif
  2462. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2463. int
  2464. main ()
  2465. {
  2466. int i;
  2467. for (i = 0; i < 256; i++)
  2468. if (XOR (islower (i), ISLOWER (i))
  2469. || toupper (i) != TOUPPER (i))
  2470. exit(2);
  2471. exit (0);
  2472. }
  2473. _ACEOF
  2474. rm -f conftest$ac_exeext
  2475. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2476. (eval $ac_link) 2>&5
  2477. ac_status=$?
  2478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2479. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2481. (eval $ac_try) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); }; }; then
  2485. :
  2486. else
  2487. echo "$as_me: program exited with status $ac_status" >&5
  2488. echo "$as_me: failed program was:" >&5
  2489. sed 's/^/| /' conftest.$ac_ext >&5
  2490. ( exit $ac_status )
  2491. ac_cv_header_stdc=no
  2492. fi
  2493. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2494. fi
  2495. fi
  2496. fi
  2497. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2498. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2499. if test $ac_cv_header_stdc = yes; then
  2500. cat >>confdefs.h <<\_ACEOF
  2501. #define STDC_HEADERS 1
  2502. _ACEOF
  2503. fi
  2504. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2505. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2506. inttypes.h stdint.h unistd.h
  2507. do
  2508. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2509. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2510. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2511. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2512. echo $ECHO_N "(cached) $ECHO_C" >&6
  2513. else
  2514. cat >conftest.$ac_ext <<_ACEOF
  2515. /* confdefs.h. */
  2516. _ACEOF
  2517. cat confdefs.h >>conftest.$ac_ext
  2518. cat >>conftest.$ac_ext <<_ACEOF
  2519. /* end confdefs.h. */
  2520. $ac_includes_default
  2521. #include <$ac_header>
  2522. _ACEOF
  2523. rm -f conftest.$ac_objext
  2524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2525. (eval $ac_compile) 2>conftest.er1
  2526. ac_status=$?
  2527. grep -v '^ *+' conftest.er1 >conftest.err
  2528. rm -f conftest.er1
  2529. cat conftest.err >&5
  2530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2531. (exit $ac_status); } &&
  2532. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2534. (eval $ac_try) 2>&5
  2535. ac_status=$?
  2536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2537. (exit $ac_status); }; } &&
  2538. { ac_try='test -s conftest.$ac_objext'
  2539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2540. (eval $ac_try) 2>&5
  2541. ac_status=$?
  2542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }; }; then
  2544. eval "$as_ac_Header=yes"
  2545. else
  2546. echo "$as_me: failed program was:" >&5
  2547. sed 's/^/| /' conftest.$ac_ext >&5
  2548. eval "$as_ac_Header=no"
  2549. fi
  2550. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2551. fi
  2552. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2553. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2554. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2555. cat >>confdefs.h <<_ACEOF
  2556. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2557. _ACEOF
  2558. fi
  2559. done
  2560. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2561. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2562. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2563. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2564. echo $ECHO_N "(cached) $ECHO_C" >&6
  2565. fi
  2566. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2567. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2568. else
  2569. # Is the header compilable?
  2570. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2571. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2572. cat >conftest.$ac_ext <<_ACEOF
  2573. /* confdefs.h. */
  2574. _ACEOF
  2575. cat confdefs.h >>conftest.$ac_ext
  2576. cat >>conftest.$ac_ext <<_ACEOF
  2577. /* end confdefs.h. */
  2578. $ac_includes_default
  2579. #include <minix/config.h>
  2580. _ACEOF
  2581. rm -f conftest.$ac_objext
  2582. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2583. (eval $ac_compile) 2>conftest.er1
  2584. ac_status=$?
  2585. grep -v '^ *+' conftest.er1 >conftest.err
  2586. rm -f conftest.er1
  2587. cat conftest.err >&5
  2588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2589. (exit $ac_status); } &&
  2590. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2592. (eval $ac_try) 2>&5
  2593. ac_status=$?
  2594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2595. (exit $ac_status); }; } &&
  2596. { ac_try='test -s conftest.$ac_objext'
  2597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2598. (eval $ac_try) 2>&5
  2599. ac_status=$?
  2600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2601. (exit $ac_status); }; }; then
  2602. ac_header_compiler=yes
  2603. else
  2604. echo "$as_me: failed program was:" >&5
  2605. sed 's/^/| /' conftest.$ac_ext >&5
  2606. ac_header_compiler=no
  2607. fi
  2608. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2609. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2610. echo "${ECHO_T}$ac_header_compiler" >&6
  2611. # Is the header present?
  2612. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2613. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2614. cat >conftest.$ac_ext <<_ACEOF
  2615. /* confdefs.h. */
  2616. _ACEOF
  2617. cat confdefs.h >>conftest.$ac_ext
  2618. cat >>conftest.$ac_ext <<_ACEOF
  2619. /* end confdefs.h. */
  2620. #include <minix/config.h>
  2621. _ACEOF
  2622. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2623. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2624. ac_status=$?
  2625. grep -v '^ *+' conftest.er1 >conftest.err
  2626. rm -f conftest.er1
  2627. cat conftest.err >&5
  2628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2629. (exit $ac_status); } >/dev/null; then
  2630. if test -s conftest.err; then
  2631. ac_cpp_err=$ac_c_preproc_warn_flag
  2632. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2633. else
  2634. ac_cpp_err=
  2635. fi
  2636. else
  2637. ac_cpp_err=yes
  2638. fi
  2639. if test -z "$ac_cpp_err"; then
  2640. ac_header_preproc=yes
  2641. else
  2642. echo "$as_me: failed program was:" >&5
  2643. sed 's/^/| /' conftest.$ac_ext >&5
  2644. ac_header_preproc=no
  2645. fi
  2646. rm -f conftest.err conftest.$ac_ext
  2647. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2648. echo "${ECHO_T}$ac_header_preproc" >&6
  2649. # So? What about this header?
  2650. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2651. yes:no: )
  2652. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2653. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2654. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2655. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2656. ac_header_preproc=yes
  2657. ;;
  2658. no:yes:* )
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2660. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2661. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2662. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2663. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2664. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2665. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2666. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2667. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2668. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2670. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2671. (
  2672. cat <<\_ASBOX
  2673. ## ------------------------------------------ ##
  2674. ## Report this to the AC_PACKAGE_NAME lists. ##
  2675. ## ------------------------------------------ ##
  2676. _ASBOX
  2677. ) |
  2678. sed "s/^/$as_me: WARNING: /" >&2
  2679. ;;
  2680. esac
  2681. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2682. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2683. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. ac_cv_header_minix_config_h=$ac_header_preproc
  2687. fi
  2688. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2689. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2690. fi
  2691. if test $ac_cv_header_minix_config_h = yes; then
  2692. MINIX=yes
  2693. else
  2694. MINIX=
  2695. fi
  2696. if test "$MINIX" = yes; then
  2697. cat >>confdefs.h <<\_ACEOF
  2698. #define _POSIX_SOURCE 1
  2699. _ACEOF
  2700. cat >>confdefs.h <<\_ACEOF
  2701. #define _POSIX_1_SOURCE 2
  2702. _ACEOF
  2703. cat >>confdefs.h <<\_ACEOF
  2704. #define _MINIX 1
  2705. _ACEOF
  2706. fi
  2707. #checkpoint
  2708. cat >confcache <<\_ACEOF
  2709. # This file is a shell script that caches the results of configure
  2710. # tests run on this system so they can be shared between configure
  2711. # scripts and configure runs, see configure's option --config-cache.
  2712. # It is not useful on other systems. If it contains results you don't
  2713. # want to keep, you may remove or edit it.
  2714. #
  2715. # config.status only pays attention to the cache file if you give it
  2716. # the --recheck option to rerun configure.
  2717. #
  2718. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2719. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2720. # following values.
  2721. _ACEOF
  2722. # The following way of writing the cache mishandles newlines in values,
  2723. # but we know of no workaround that is simple, portable, and efficient.
  2724. # So, don't put newlines in cache variables' values.
  2725. # Ultrix sh set writes to stderr and can't be redirected directly,
  2726. # and sets the high bit in the cache file unless we assign to the vars.
  2727. {
  2728. (set) 2>&1 |
  2729. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2730. *ac_space=\ *)
  2731. # `set' does not quote correctly, so add quotes (double-quote
  2732. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2733. sed -n \
  2734. "s/'/'\\\\''/g;
  2735. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2736. ;;
  2737. *)
  2738. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2739. sed -n \
  2740. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2741. ;;
  2742. esac;
  2743. } |
  2744. sed '
  2745. t clear
  2746. : clear
  2747. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2748. t end
  2749. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2750. : end' >>confcache
  2751. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2752. if test -w $cache_file; then
  2753. test "x$cache_file" != "x/dev/null"
  2754. cat confcache >$cache_file
  2755. else
  2756. echo "not updating unwritable cache $cache_file"
  2757. fi
  2758. fi
  2759. rm -f confcache
  2760. # Speedup compile
  2761. if test -z "$no_pipe"
  2762. then
  2763. if test -n "$GCC"
  2764. then
  2765. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2766. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2767. if test "${egg_cv_var_ccpipe+set}" = set; then
  2768. echo $ECHO_N "(cached) $ECHO_C" >&6
  2769. else
  2770. ac_old_CC="$CC"
  2771. CC="$CC -pipe"
  2772. cat >conftest.$ac_ext <<_ACEOF
  2773. /* confdefs.h. */
  2774. _ACEOF
  2775. cat confdefs.h >>conftest.$ac_ext
  2776. cat >>conftest.$ac_ext <<_ACEOF
  2777. /* end confdefs.h. */
  2778. int
  2779. main ()
  2780. {
  2781. ;
  2782. return 0;
  2783. }
  2784. _ACEOF
  2785. rm -f conftest.$ac_objext
  2786. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2787. (eval $ac_compile) 2>conftest.er1
  2788. ac_status=$?
  2789. grep -v '^ *+' conftest.er1 >conftest.err
  2790. rm -f conftest.er1
  2791. cat conftest.err >&5
  2792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); } &&
  2794. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2796. (eval $ac_try) 2>&5
  2797. ac_status=$?
  2798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); }; } &&
  2800. { ac_try='test -s conftest.$ac_objext'
  2801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2802. (eval $ac_try) 2>&5
  2803. ac_status=$?
  2804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2805. (exit $ac_status); }; }; then
  2806. egg_cv_var_ccpipe="yes"
  2807. else
  2808. echo "$as_me: failed program was:" >&5
  2809. sed 's/^/| /' conftest.$ac_ext >&5
  2810. egg_cv_var_ccpipe="no"
  2811. fi
  2812. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2813. CC="$ac_old_CC"
  2814. fi
  2815. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2816. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2817. if test "$egg_cv_var_ccpipe" = "yes"
  2818. then
  2819. CC="$CC -pipe"
  2820. fi
  2821. fi
  2822. fi
  2823. CCDEPMODE=gcc
  2824. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2825. if test $num = "3"; then
  2826. CCDEPMODE=gcc3
  2827. fi
  2828. # Create static binaries
  2829. if test -z "$no_static"
  2830. then
  2831. if test -n "$GCC"
  2832. then
  2833. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2834. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2835. if test "${egg_cv_var_ccstatic+set}" = set; then
  2836. echo $ECHO_N "(cached) $ECHO_C" >&6
  2837. else
  2838. ac_old_CC="$CC"
  2839. CC="$CC -static"
  2840. cat >conftest.$ac_ext <<_ACEOF
  2841. /* confdefs.h. */
  2842. _ACEOF
  2843. cat confdefs.h >>conftest.$ac_ext
  2844. cat >>conftest.$ac_ext <<_ACEOF
  2845. /* end confdefs.h. */
  2846. int
  2847. main ()
  2848. {
  2849. ;
  2850. return 0;
  2851. }
  2852. _ACEOF
  2853. rm -f conftest.$ac_objext
  2854. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2855. (eval $ac_compile) 2>conftest.er1
  2856. ac_status=$?
  2857. grep -v '^ *+' conftest.er1 >conftest.err
  2858. rm -f conftest.er1
  2859. cat conftest.err >&5
  2860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. (exit $ac_status); } &&
  2862. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2864. (eval $ac_try) 2>&5
  2865. ac_status=$?
  2866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2867. (exit $ac_status); }; } &&
  2868. { ac_try='test -s conftest.$ac_objext'
  2869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2870. (eval $ac_try) 2>&5
  2871. ac_status=$?
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }; }; then
  2874. egg_cv_var_ccstatic="yes"
  2875. else
  2876. echo "$as_me: failed program was:" >&5
  2877. sed 's/^/| /' conftest.$ac_ext >&5
  2878. egg_cv_var_ccstatic="no"
  2879. fi
  2880. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2881. CC="$ac_old_CC"
  2882. fi
  2883. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2884. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2885. if test "$egg_cv_var_ccstatic" = "yes"
  2886. then
  2887. CCDEBUG="$CC"
  2888. CC="$CC -static"
  2889. else
  2890. cat << 'EOF' >&2
  2891. configure: error:
  2892. Your C compiler does not support -static.
  2893. This compile flag is required for the botpack.
  2894. EOF
  2895. exit 1
  2896. fi
  2897. fi
  2898. fi
  2899. # Checks for programs
  2900. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2901. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2902. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2903. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2904. echo $ECHO_N "(cached) $ECHO_C" >&6
  2905. else
  2906. cat >conftest.make <<\_ACEOF
  2907. all:
  2908. @echo 'ac_maketemp="$(MAKE)"'
  2909. _ACEOF
  2910. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2911. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2912. if test -n "$ac_maketemp"; then
  2913. eval ac_cv_prog_make_${ac_make}_set=yes
  2914. else
  2915. eval ac_cv_prog_make_${ac_make}_set=no
  2916. fi
  2917. rm -f conftest.make
  2918. fi
  2919. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2920. echo "$as_me:$LINENO: result: yes" >&5
  2921. echo "${ECHO_T}yes" >&6
  2922. SET_MAKE=
  2923. else
  2924. echo "$as_me:$LINENO: result: no" >&5
  2925. echo "${ECHO_T}no" >&6
  2926. SET_MAKE="MAKE=${MAKE-make}"
  2927. fi
  2928. cat << 'EOF' > conftest.head
  2929. a
  2930. b
  2931. c
  2932. EOF
  2933. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2934. do
  2935. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2936. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2937. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2938. echo $ECHO_N "(cached) $ECHO_C" >&6
  2939. else
  2940. if test -n "$HEAD_1"
  2941. then
  2942. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2943. else
  2944. if test "`cat conftest.head | $ac_prog`" = "a";
  2945. then
  2946. echo "$as_me:$LINENO: result: yes" >&5
  2947. echo "${ECHO_T}yes" >&6
  2948. ac_cv_prog_HEAD_1=$ac_prog
  2949. else
  2950. echo "$as_me:$LINENO: result: no" >&5
  2951. echo "${ECHO_T}no" >&6
  2952. fi
  2953. fi
  2954. fi
  2955. test -n "$ac_cv_prog_HEAD_1" && break
  2956. done
  2957. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2958. then
  2959. cat << 'EOF' >&2
  2960. configure: error:
  2961. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2962. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2963. EOF
  2964. exit 1
  2965. fi
  2966. rm -f conftest.head
  2967. HEAD_1=$ac_cv_prog_HEAD_1
  2968. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2969. for ac_prog in gawk mawk nawk awk
  2970. do
  2971. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2972. set dummy $ac_prog; ac_word=$2
  2973. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2974. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2975. if test "${ac_cv_prog_AWK+set}" = set; then
  2976. echo $ECHO_N "(cached) $ECHO_C" >&6
  2977. else
  2978. if test -n "$AWK"; then
  2979. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2980. else
  2981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2982. for as_dir in $PATH
  2983. do
  2984. IFS=$as_save_IFS
  2985. test -z "$as_dir" && as_dir=.
  2986. for ac_exec_ext in '' $ac_executable_extensions; do
  2987. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2988. ac_cv_prog_AWK="$ac_prog"
  2989. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2990. break 2
  2991. fi
  2992. done
  2993. done
  2994. fi
  2995. fi
  2996. AWK=$ac_cv_prog_AWK
  2997. if test -n "$AWK"; then
  2998. echo "$as_me:$LINENO: result: $AWK" >&5
  2999. echo "${ECHO_T}$AWK" >&6
  3000. else
  3001. echo "$as_me:$LINENO: result: no" >&5
  3002. echo "${ECHO_T}no" >&6
  3003. fi
  3004. test -n "$AWK" && break
  3005. done
  3006. if test "${AWK-x}" = "x"
  3007. then
  3008. cat << 'EOF' >&2
  3009. configure: error:
  3010. This system seems to lack a working 'awk' command.
  3011. A working 'awk' command is required to compile Eggdrop.
  3012. EOF
  3013. exit 1
  3014. fi
  3015. # basename is needed for Tcl library and header checks
  3016. # Extract the first word of "basename", so it can be a program name with args.
  3017. set dummy basename; ac_word=$2
  3018. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3019. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3020. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3021. echo $ECHO_N "(cached) $ECHO_C" >&6
  3022. else
  3023. if test -n "$BASENAME"; then
  3024. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3025. else
  3026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3027. for as_dir in $PATH
  3028. do
  3029. IFS=$as_save_IFS
  3030. test -z "$as_dir" && as_dir=.
  3031. for ac_exec_ext in '' $ac_executable_extensions; do
  3032. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3033. ac_cv_prog_BASENAME="basename"
  3034. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3035. break 2
  3036. fi
  3037. done
  3038. done
  3039. fi
  3040. fi
  3041. BASENAME=$ac_cv_prog_BASENAME
  3042. if test -n "$BASENAME"; then
  3043. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3044. echo "${ECHO_T}$BASENAME" >&6
  3045. else
  3046. echo "$as_me:$LINENO: result: no" >&5
  3047. echo "${ECHO_T}no" >&6
  3048. fi
  3049. if test "${BASENAME-x}" = "x"
  3050. then
  3051. cat << 'EOF' >&2
  3052. configure: error:
  3053. This system seems to lack a working 'basename' command.
  3054. A working 'basename' command is required to compile Eggdrop.
  3055. EOF
  3056. exit 1
  3057. fi
  3058. # Extract the first word of "objcopy", so it can be a program name with args.
  3059. set dummy objcopy; ac_word=$2
  3060. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3061. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3062. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -n "$OBJCOPY"; then
  3066. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3067. else
  3068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3069. for as_dir in $PATH
  3070. do
  3071. IFS=$as_save_IFS
  3072. test -z "$as_dir" && as_dir=.
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3075. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3076. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3077. break 2
  3078. fi
  3079. done
  3080. done
  3081. fi
  3082. fi
  3083. OBJCOPY=$ac_cv_prog_OBJCOPY
  3084. if test -n "$OBJCOPY"; then
  3085. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3086. echo "${ECHO_T}$OBJCOPY" >&6
  3087. else
  3088. echo "$as_me:$LINENO: result: no" >&5
  3089. echo "${ECHO_T}no" >&6
  3090. fi
  3091. # Extract the first word of "strip", so it can be a program name with args.
  3092. set dummy strip; ac_word=$2
  3093. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3094. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3095. if test "${ac_cv_prog_STRIP+set}" = set; then
  3096. echo $ECHO_N "(cached) $ECHO_C" >&6
  3097. else
  3098. if test -n "$STRIP"; then
  3099. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3100. else
  3101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3102. for as_dir in $PATH
  3103. do
  3104. IFS=$as_save_IFS
  3105. test -z "$as_dir" && as_dir=.
  3106. for ac_exec_ext in '' $ac_executable_extensions; do
  3107. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3108. ac_cv_prog_STRIP="strip"
  3109. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3110. break 2
  3111. fi
  3112. done
  3113. done
  3114. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3115. fi
  3116. fi
  3117. STRIP=$ac_cv_prog_STRIP
  3118. if test -n "$STRIP"; then
  3119. echo "$as_me:$LINENO: result: $STRIP" >&5
  3120. echo "${ECHO_T}$STRIP" >&6
  3121. else
  3122. echo "$as_me:$LINENO: result: no" >&5
  3123. echo "${ECHO_T}no" >&6
  3124. fi
  3125. # Extract the first word of "uname", so it can be a program name with args.
  3126. set dummy uname; ac_word=$2
  3127. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3128. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3129. if test "${ac_cv_prog_UNAME+set}" = set; then
  3130. echo $ECHO_N "(cached) $ECHO_C" >&6
  3131. else
  3132. if test -n "$UNAME"; then
  3133. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3134. else
  3135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3136. for as_dir in $PATH
  3137. do
  3138. IFS=$as_save_IFS
  3139. test -z "$as_dir" && as_dir=.
  3140. for ac_exec_ext in '' $ac_executable_extensions; do
  3141. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3142. ac_cv_prog_UNAME="uname"
  3143. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3144. break 2
  3145. fi
  3146. done
  3147. done
  3148. fi
  3149. fi
  3150. UNAME=$ac_cv_prog_UNAME
  3151. if test -n "$UNAME"; then
  3152. echo "$as_me:$LINENO: result: $UNAME" >&5
  3153. echo "${ECHO_T}$UNAME" >&6
  3154. else
  3155. echo "$as_me:$LINENO: result: no" >&5
  3156. echo "${ECHO_T}no" >&6
  3157. fi
  3158. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3159. # Extract the first word of "distcc", so it can be a program name with args.
  3160. set dummy distcc; ac_word=$2
  3161. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3162. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3163. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3164. echo $ECHO_N "(cached) $ECHO_C" >&6
  3165. else
  3166. if test -n "$DISTCC"; then
  3167. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3168. else
  3169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3170. for as_dir in $PATH
  3171. do
  3172. IFS=$as_save_IFS
  3173. test -z "$as_dir" && as_dir=.
  3174. for ac_exec_ext in '' $ac_executable_extensions; do
  3175. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3176. ac_cv_prog_DISTCC="distcc"
  3177. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3178. break 2
  3179. fi
  3180. done
  3181. done
  3182. fi
  3183. fi
  3184. DISTCC=$ac_cv_prog_DISTCC
  3185. if test -n "$DISTCC"; then
  3186. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3187. echo "${ECHO_T}$DISTCC" >&6
  3188. else
  3189. echo "$as_me:$LINENO: result: no" >&5
  3190. echo "${ECHO_T}no" >&6
  3191. fi
  3192. # Test the os and set the module linking settings
  3193. LINUX=no
  3194. IRIX=no
  3195. SUNOS=no
  3196. EGG_CYGWIN=no
  3197. echo "$as_me:$LINENO: checking system type" >&5
  3198. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3199. if test "${egg_cv_var_system_type+set}" = set; then
  3200. echo $ECHO_N "(cached) $ECHO_C" >&6
  3201. else
  3202. egg_cv_var_system_type=`$UNAME -s`
  3203. fi
  3204. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3205. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3206. echo "$as_me:$LINENO: checking system release" >&5
  3207. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3208. if test "${egg_cv_var_system_release+set}" = set; then
  3209. echo $ECHO_N "(cached) $ECHO_C" >&6
  3210. else
  3211. egg_cv_var_system_release=`$UNAME -r`
  3212. fi
  3213. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3214. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3215. case "$egg_cv_var_system_type" in
  3216. BSD/OS)
  3217. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3218. 2)
  3219. ;;
  3220. *)
  3221. CFLAGS="$CFLAGS -Wall"
  3222. ;;
  3223. esac
  3224. ;;
  3225. CYGWI*)
  3226. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3227. 1.*)
  3228. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3229. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3230. WIN32FLAGS=
  3231. cat >conftest.$ac_ext <<_ACEOF
  3232. /* confdefs.h. */
  3233. _ACEOF
  3234. cat confdefs.h >>conftest.$ac_ext
  3235. cat >>conftest.$ac_ext <<_ACEOF
  3236. /* end confdefs.h. */
  3237. int
  3238. main ()
  3239. {
  3240. #ifndef WIN32
  3241. # ifndef _WIN32
  3242. # error WIN32 or _WIN32 not defined
  3243. # endif
  3244. #endif
  3245. ;
  3246. return 0;
  3247. }
  3248. _ACEOF
  3249. rm -f conftest.$ac_objext
  3250. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3251. (eval $ac_compile) 2>conftest.er1
  3252. ac_status=$?
  3253. grep -v '^ *+' conftest.er1 >conftest.err
  3254. rm -f conftest.er1
  3255. cat conftest.err >&5
  3256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3257. (exit $ac_status); } &&
  3258. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3260. (eval $ac_try) 2>&5
  3261. ac_status=$?
  3262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3263. (exit $ac_status); }; } &&
  3264. { ac_try='test -s conftest.$ac_objext'
  3265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3266. (eval $ac_try) 2>&5
  3267. ac_status=$?
  3268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3269. (exit $ac_status); }; }; then
  3270. echo "$as_me:$LINENO: result: present by default" >&5
  3271. echo "${ECHO_T}present by default" >&6
  3272. else
  3273. echo "$as_me: failed program was:" >&5
  3274. sed 's/^/| /' conftest.$ac_ext >&5
  3275. ac_compile_save="$ac_compile"
  3276. save_CC="$CC"
  3277. ac_compile="$ac_compile -mwin32"
  3278. CC="$CC -mwin32"
  3279. cat >conftest.$ac_ext <<_ACEOF
  3280. /* confdefs.h. */
  3281. _ACEOF
  3282. cat confdefs.h >>conftest.$ac_ext
  3283. cat >>conftest.$ac_ext <<_ACEOF
  3284. /* end confdefs.h. */
  3285. int
  3286. main ()
  3287. {
  3288. #ifndef WIN32
  3289. # ifndef _WIN32
  3290. # error WIN32 or _WIN32 not defined
  3291. # endif
  3292. #endif
  3293. ;
  3294. return 0;
  3295. }
  3296. _ACEOF
  3297. rm -f conftest.$ac_objext
  3298. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3299. (eval $ac_compile) 2>conftest.er1
  3300. ac_status=$?
  3301. grep -v '^ *+' conftest.er1 >conftest.err
  3302. rm -f conftest.er1
  3303. cat conftest.err >&5
  3304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3305. (exit $ac_status); } &&
  3306. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3308. (eval $ac_try) 2>&5
  3309. ac_status=$?
  3310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3311. (exit $ac_status); }; } &&
  3312. { ac_try='test -s conftest.$ac_objext'
  3313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3314. (eval $ac_try) 2>&5
  3315. ac_status=$?
  3316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3317. (exit $ac_status); }; }; then
  3318. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3319. echo "${ECHO_T}found via -mwin32" >&6
  3320. ac_compile="$ac_compile_save"
  3321. CC="$save_CC"
  3322. WIN32FLAGS="-mwin32"
  3323. else
  3324. echo "$as_me: failed program was:" >&5
  3325. sed 's/^/| /' conftest.$ac_ext >&5
  3326. ac_compile="$ac_compile_save"
  3327. CC="$save_CC"
  3328. echo "$as_me:$LINENO: result: not found" >&5
  3329. echo "${ECHO_T}not found" >&6
  3330. fi
  3331. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3332. fi
  3333. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3334. CC="$CC $WIN32FLAGS"
  3335. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3336. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3337. if test -r /usr/lib/binmode.o
  3338. then
  3339. echo "$as_me:$LINENO: result: yes" >&5
  3340. echo "${ECHO_T}yes" >&6
  3341. LIBS="$LIBS /usr/lib/binmode.o"
  3342. else
  3343. echo "$as_me:$LINENO: result: no" >&5
  3344. echo "${ECHO_T}no" >&6
  3345. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3346. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3347. fi
  3348. ;;
  3349. *)
  3350. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3351. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3352. ;;
  3353. esac
  3354. EGG_CYGWIN=yes
  3355. cat >>confdefs.h <<\_ACEOF
  3356. #define CYGWIN_HACKS 1
  3357. _ACEOF
  3358. ;;
  3359. IRIX)
  3360. IRIX=yes
  3361. ;;
  3362. Ultrix)
  3363. SHELL=/bin/sh5
  3364. ;;
  3365. SINIX*)
  3366. ;;
  3367. BeOS)
  3368. ;;
  3369. Linux)
  3370. LINUX=yes
  3371. CFLAGS="$CFLAGS -Wall"
  3372. ;;
  3373. Lynx)
  3374. ;;
  3375. QNX)
  3376. ;;
  3377. OSF1)
  3378. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3379. V*)
  3380. # FIXME: we should check this in a separate test
  3381. # Digital OSF uses an ancient version of gawk
  3382. if test "$AWK" = "gawk"
  3383. then
  3384. AWK=awk
  3385. fi
  3386. ;;
  3387. 1.0|1.1|1.2)
  3388. cat >>confdefs.h <<\_ACEOF
  3389. #define OSF1_HACKS 1
  3390. _ACEOF
  3391. ;;
  3392. 1.*)
  3393. cat >>confdefs.h <<\_ACEOF
  3394. #define OSF1_HACKS 1
  3395. _ACEOF
  3396. ;;
  3397. *)
  3398. ;;
  3399. esac
  3400. cat >>confdefs.h <<\_ACEOF
  3401. #define STOP_UAC 1
  3402. _ACEOF
  3403. cat >>confdefs.h <<\_ACEOF
  3404. #define BROKEN_SNPRINTF 1
  3405. _ACEOF
  3406. ;;
  3407. SunOS)
  3408. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3409. then
  3410. # SunOS 4
  3411. SUNOS=yes
  3412. fi
  3413. ;;
  3414. *BSD)
  3415. # FreeBSD/OpenBSD/NetBSD
  3416. ;;
  3417. *)
  3418. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3419. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3420. if test -r /mach
  3421. then
  3422. echo "$as_me:$LINENO: result: yes" >&5
  3423. echo "${ECHO_T}yes" >&6
  3424. cat >>confdefs.h <<\_ACEOF
  3425. #define BORGCUBES 1
  3426. _ACEOF
  3427. else
  3428. echo "$as_me:$LINENO: result: no" >&5
  3429. echo "${ECHO_T}no" >&6
  3430. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3431. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3432. if test -r /cmds
  3433. then
  3434. echo "$as_me:$LINENO: result: yes" >&5
  3435. echo "${ECHO_T}yes" >&6
  3436. else
  3437. echo "$as_me:$LINENO: result: no" >&5
  3438. echo "${ECHO_T}no" >&6
  3439. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3440. echo "${ECHO_T}Something unknown!" >&6
  3441. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3442. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3443. fi
  3444. fi
  3445. ;;
  3446. esac
  3447. dns_reslib_avail="true"
  3448. echo "$as_me:$LINENO: checking for res_init" >&5
  3449. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3450. if test "${ac_cv_func_res_init+set}" = set; then
  3451. echo $ECHO_N "(cached) $ECHO_C" >&6
  3452. else
  3453. cat >conftest.$ac_ext <<_ACEOF
  3454. /* confdefs.h. */
  3455. _ACEOF
  3456. cat confdefs.h >>conftest.$ac_ext
  3457. cat >>conftest.$ac_ext <<_ACEOF
  3458. /* end confdefs.h. */
  3459. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3460. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3461. #define res_init innocuous_res_init
  3462. /* System header to define __stub macros and hopefully few prototypes,
  3463. which can conflict with char res_init (); below.
  3464. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3465. <limits.h> exists even on freestanding compilers. */
  3466. #ifdef __STDC__
  3467. # include <limits.h>
  3468. #else
  3469. # include <assert.h>
  3470. #endif
  3471. #undef res_init
  3472. /* Override any gcc2 internal prototype to avoid an error. */
  3473. #ifdef __cplusplus
  3474. extern "C"
  3475. {
  3476. #endif
  3477. /* We use char because int might match the return type of a gcc2
  3478. builtin and then its argument prototype would still apply. */
  3479. char res_init ();
  3480. /* The GNU C library defines this for functions which it implements
  3481. to always fail with ENOSYS. Some functions are actually named
  3482. something starting with __ and the normal name is an alias. */
  3483. #if defined (__stub_res_init) || defined (__stub___res_init)
  3484. choke me
  3485. #else
  3486. char (*f) () = res_init;
  3487. #endif
  3488. #ifdef __cplusplus
  3489. }
  3490. #endif
  3491. int
  3492. main ()
  3493. {
  3494. return f != res_init;
  3495. ;
  3496. return 0;
  3497. }
  3498. _ACEOF
  3499. rm -f conftest.$ac_objext conftest$ac_exeext
  3500. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3501. (eval $ac_link) 2>conftest.er1
  3502. ac_status=$?
  3503. grep -v '^ *+' conftest.er1 >conftest.err
  3504. rm -f conftest.er1
  3505. cat conftest.err >&5
  3506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3507. (exit $ac_status); } &&
  3508. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3510. (eval $ac_try) 2>&5
  3511. ac_status=$?
  3512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3513. (exit $ac_status); }; } &&
  3514. { ac_try='test -s conftest$ac_exeext'
  3515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3516. (eval $ac_try) 2>&5
  3517. ac_status=$?
  3518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3519. (exit $ac_status); }; }; then
  3520. ac_cv_func_res_init=yes
  3521. else
  3522. echo "$as_me: failed program was:" >&5
  3523. sed 's/^/| /' conftest.$ac_ext >&5
  3524. ac_cv_func_res_init=no
  3525. fi
  3526. rm -f conftest.err conftest.$ac_objext \
  3527. conftest$ac_exeext conftest.$ac_ext
  3528. fi
  3529. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3530. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3531. if test $ac_cv_func_res_init = yes; then
  3532. :
  3533. else
  3534. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3535. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3536. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3537. echo $ECHO_N "(cached) $ECHO_C" >&6
  3538. else
  3539. ac_check_lib_save_LIBS=$LIBS
  3540. LIBS="-lresolv $LIBS"
  3541. cat >conftest.$ac_ext <<_ACEOF
  3542. /* confdefs.h. */
  3543. _ACEOF
  3544. cat confdefs.h >>conftest.$ac_ext
  3545. cat >>conftest.$ac_ext <<_ACEOF
  3546. /* end confdefs.h. */
  3547. /* Override any gcc2 internal prototype to avoid an error. */
  3548. #ifdef __cplusplus
  3549. extern "C"
  3550. #endif
  3551. /* We use char because int might match the return type of a gcc2
  3552. builtin and then its argument prototype would still apply. */
  3553. char res_init ();
  3554. int
  3555. main ()
  3556. {
  3557. res_init ();
  3558. ;
  3559. return 0;
  3560. }
  3561. _ACEOF
  3562. rm -f conftest.$ac_objext conftest$ac_exeext
  3563. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3564. (eval $ac_link) 2>conftest.er1
  3565. ac_status=$?
  3566. grep -v '^ *+' conftest.er1 >conftest.err
  3567. rm -f conftest.er1
  3568. cat conftest.err >&5
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); } &&
  3571. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3573. (eval $ac_try) 2>&5
  3574. ac_status=$?
  3575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3576. (exit $ac_status); }; } &&
  3577. { ac_try='test -s conftest$ac_exeext'
  3578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3579. (eval $ac_try) 2>&5
  3580. ac_status=$?
  3581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3582. (exit $ac_status); }; }; then
  3583. ac_cv_lib_resolv_res_init=yes
  3584. else
  3585. echo "$as_me: failed program was:" >&5
  3586. sed 's/^/| /' conftest.$ac_ext >&5
  3587. ac_cv_lib_resolv_res_init=no
  3588. fi
  3589. rm -f conftest.err conftest.$ac_objext \
  3590. conftest$ac_exeext conftest.$ac_ext
  3591. LIBS=$ac_check_lib_save_LIBS
  3592. fi
  3593. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3594. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3595. if test $ac_cv_lib_resolv_res_init = yes; then
  3596. RESLIB="-lresolv"
  3597. else
  3598. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3599. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3600. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3601. echo $ECHO_N "(cached) $ECHO_C" >&6
  3602. else
  3603. ac_check_lib_save_LIBS=$LIBS
  3604. LIBS="-lbind $LIBS"
  3605. cat >conftest.$ac_ext <<_ACEOF
  3606. /* confdefs.h. */
  3607. _ACEOF
  3608. cat confdefs.h >>conftest.$ac_ext
  3609. cat >>conftest.$ac_ext <<_ACEOF
  3610. /* end confdefs.h. */
  3611. /* Override any gcc2 internal prototype to avoid an error. */
  3612. #ifdef __cplusplus
  3613. extern "C"
  3614. #endif
  3615. /* We use char because int might match the return type of a gcc2
  3616. builtin and then its argument prototype would still apply. */
  3617. char res_init ();
  3618. int
  3619. main ()
  3620. {
  3621. res_init ();
  3622. ;
  3623. return 0;
  3624. }
  3625. _ACEOF
  3626. rm -f conftest.$ac_objext conftest$ac_exeext
  3627. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3628. (eval $ac_link) 2>conftest.er1
  3629. ac_status=$?
  3630. grep -v '^ *+' conftest.er1 >conftest.err
  3631. rm -f conftest.er1
  3632. cat conftest.err >&5
  3633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3634. (exit $ac_status); } &&
  3635. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3637. (eval $ac_try) 2>&5
  3638. ac_status=$?
  3639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3640. (exit $ac_status); }; } &&
  3641. { ac_try='test -s conftest$ac_exeext'
  3642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3643. (eval $ac_try) 2>&5
  3644. ac_status=$?
  3645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3646. (exit $ac_status); }; }; then
  3647. ac_cv_lib_bind_res_init=yes
  3648. else
  3649. echo "$as_me: failed program was:" >&5
  3650. sed 's/^/| /' conftest.$ac_ext >&5
  3651. ac_cv_lib_bind_res_init=no
  3652. fi
  3653. rm -f conftest.err conftest.$ac_objext \
  3654. conftest$ac_exeext conftest.$ac_ext
  3655. LIBS=$ac_check_lib_save_LIBS
  3656. fi
  3657. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3658. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3659. if test $ac_cv_lib_bind_res_init = yes; then
  3660. RESLIB="-lbind"
  3661. else
  3662. dns_reslib_avail="false";
  3663. fi
  3664. fi
  3665. fi
  3666. if test "${dns_reslib_avail}" = false; then
  3667. dns_reslib_avail="true"
  3668. echo "$as_me:$LINENO: checking for __res_init" >&5
  3669. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3670. if test "${ac_cv_func___res_init+set}" = set; then
  3671. echo $ECHO_N "(cached) $ECHO_C" >&6
  3672. else
  3673. cat >conftest.$ac_ext <<_ACEOF
  3674. /* confdefs.h. */
  3675. _ACEOF
  3676. cat confdefs.h >>conftest.$ac_ext
  3677. cat >>conftest.$ac_ext <<_ACEOF
  3678. /* end confdefs.h. */
  3679. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3680. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3681. #define __res_init innocuous___res_init
  3682. /* System header to define __stub macros and hopefully few prototypes,
  3683. which can conflict with char __res_init (); below.
  3684. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3685. <limits.h> exists even on freestanding compilers. */
  3686. #ifdef __STDC__
  3687. # include <limits.h>
  3688. #else
  3689. # include <assert.h>
  3690. #endif
  3691. #undef __res_init
  3692. /* Override any gcc2 internal prototype to avoid an error. */
  3693. #ifdef __cplusplus
  3694. extern "C"
  3695. {
  3696. #endif
  3697. /* We use char because int might match the return type of a gcc2
  3698. builtin and then its argument prototype would still apply. */
  3699. char __res_init ();
  3700. /* The GNU C library defines this for functions which it implements
  3701. to always fail with ENOSYS. Some functions are actually named
  3702. something starting with __ and the normal name is an alias. */
  3703. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3704. choke me
  3705. #else
  3706. char (*f) () = __res_init;
  3707. #endif
  3708. #ifdef __cplusplus
  3709. }
  3710. #endif
  3711. int
  3712. main ()
  3713. {
  3714. return f != __res_init;
  3715. ;
  3716. return 0;
  3717. }
  3718. _ACEOF
  3719. rm -f conftest.$ac_objext conftest$ac_exeext
  3720. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3721. (eval $ac_link) 2>conftest.er1
  3722. ac_status=$?
  3723. grep -v '^ *+' conftest.er1 >conftest.err
  3724. rm -f conftest.er1
  3725. cat conftest.err >&5
  3726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3727. (exit $ac_status); } &&
  3728. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3730. (eval $ac_try) 2>&5
  3731. ac_status=$?
  3732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3733. (exit $ac_status); }; } &&
  3734. { ac_try='test -s conftest$ac_exeext'
  3735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3736. (eval $ac_try) 2>&5
  3737. ac_status=$?
  3738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3739. (exit $ac_status); }; }; then
  3740. ac_cv_func___res_init=yes
  3741. else
  3742. echo "$as_me: failed program was:" >&5
  3743. sed 's/^/| /' conftest.$ac_ext >&5
  3744. ac_cv_func___res_init=no
  3745. fi
  3746. rm -f conftest.err conftest.$ac_objext \
  3747. conftest$ac_exeext conftest.$ac_ext
  3748. fi
  3749. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3750. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3751. if test $ac_cv_func___res_init = yes; then
  3752. :
  3753. else
  3754. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3755. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3756. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3757. echo $ECHO_N "(cached) $ECHO_C" >&6
  3758. else
  3759. ac_check_lib_save_LIBS=$LIBS
  3760. LIBS="-lresolv $LIBS"
  3761. cat >conftest.$ac_ext <<_ACEOF
  3762. /* confdefs.h. */
  3763. _ACEOF
  3764. cat confdefs.h >>conftest.$ac_ext
  3765. cat >>conftest.$ac_ext <<_ACEOF
  3766. /* end confdefs.h. */
  3767. /* Override any gcc2 internal prototype to avoid an error. */
  3768. #ifdef __cplusplus
  3769. extern "C"
  3770. #endif
  3771. /* We use char because int might match the return type of a gcc2
  3772. builtin and then its argument prototype would still apply. */
  3773. char __res_init ();
  3774. int
  3775. main ()
  3776. {
  3777. __res_init ();
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. rm -f conftest.$ac_objext conftest$ac_exeext
  3783. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3784. (eval $ac_link) 2>conftest.er1
  3785. ac_status=$?
  3786. grep -v '^ *+' conftest.er1 >conftest.err
  3787. rm -f conftest.er1
  3788. cat conftest.err >&5
  3789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3790. (exit $ac_status); } &&
  3791. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3793. (eval $ac_try) 2>&5
  3794. ac_status=$?
  3795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3796. (exit $ac_status); }; } &&
  3797. { ac_try='test -s conftest$ac_exeext'
  3798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3799. (eval $ac_try) 2>&5
  3800. ac_status=$?
  3801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3802. (exit $ac_status); }; }; then
  3803. ac_cv_lib_resolv___res_init=yes
  3804. else
  3805. echo "$as_me: failed program was:" >&5
  3806. sed 's/^/| /' conftest.$ac_ext >&5
  3807. ac_cv_lib_resolv___res_init=no
  3808. fi
  3809. rm -f conftest.err conftest.$ac_objext \
  3810. conftest$ac_exeext conftest.$ac_ext
  3811. LIBS=$ac_check_lib_save_LIBS
  3812. fi
  3813. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3814. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3815. if test $ac_cv_lib_resolv___res_init = yes; then
  3816. RESLIB="-lresolv"
  3817. else
  3818. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3819. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3820. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3821. echo $ECHO_N "(cached) $ECHO_C" >&6
  3822. else
  3823. ac_check_lib_save_LIBS=$LIBS
  3824. LIBS="-lbind $LIBS"
  3825. cat >conftest.$ac_ext <<_ACEOF
  3826. /* confdefs.h. */
  3827. _ACEOF
  3828. cat confdefs.h >>conftest.$ac_ext
  3829. cat >>conftest.$ac_ext <<_ACEOF
  3830. /* end confdefs.h. */
  3831. /* Override any gcc2 internal prototype to avoid an error. */
  3832. #ifdef __cplusplus
  3833. extern "C"
  3834. #endif
  3835. /* We use char because int might match the return type of a gcc2
  3836. builtin and then its argument prototype would still apply. */
  3837. char __res_init ();
  3838. int
  3839. main ()
  3840. {
  3841. __res_init ();
  3842. ;
  3843. return 0;
  3844. }
  3845. _ACEOF
  3846. rm -f conftest.$ac_objext conftest$ac_exeext
  3847. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3848. (eval $ac_link) 2>conftest.er1
  3849. ac_status=$?
  3850. grep -v '^ *+' conftest.er1 >conftest.err
  3851. rm -f conftest.er1
  3852. cat conftest.err >&5
  3853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3854. (exit $ac_status); } &&
  3855. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3857. (eval $ac_try) 2>&5
  3858. ac_status=$?
  3859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3860. (exit $ac_status); }; } &&
  3861. { ac_try='test -s conftest$ac_exeext'
  3862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3863. (eval $ac_try) 2>&5
  3864. ac_status=$?
  3865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3866. (exit $ac_status); }; }; then
  3867. ac_cv_lib_bind___res_init=yes
  3868. else
  3869. echo "$as_me: failed program was:" >&5
  3870. sed 's/^/| /' conftest.$ac_ext >&5
  3871. ac_cv_lib_bind___res_init=no
  3872. fi
  3873. rm -f conftest.err conftest.$ac_objext \
  3874. conftest$ac_exeext conftest.$ac_ext
  3875. LIBS=$ac_check_lib_save_LIBS
  3876. fi
  3877. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3878. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3879. if test $ac_cv_lib_bind___res_init = yes; then
  3880. RESLIB="-lbind"
  3881. else
  3882. dns_reslib_avail="false";
  3883. fi
  3884. fi
  3885. fi
  3886. fi
  3887. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3888. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3889. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3890. echo $ECHO_N "(cached) $ECHO_C" >&6
  3891. else
  3892. cat >conftest.$ac_ext <<_ACEOF
  3893. /* confdefs.h. */
  3894. _ACEOF
  3895. cat confdefs.h >>conftest.$ac_ext
  3896. cat >>conftest.$ac_ext <<_ACEOF
  3897. /* end confdefs.h. */
  3898. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3899. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3900. #define res_mkquery innocuous_res_mkquery
  3901. /* System header to define __stub macros and hopefully few prototypes,
  3902. which can conflict with char res_mkquery (); below.
  3903. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3904. <limits.h> exists even on freestanding compilers. */
  3905. #ifdef __STDC__
  3906. # include <limits.h>
  3907. #else
  3908. # include <assert.h>
  3909. #endif
  3910. #undef res_mkquery
  3911. /* Override any gcc2 internal prototype to avoid an error. */
  3912. #ifdef __cplusplus
  3913. extern "C"
  3914. {
  3915. #endif
  3916. /* We use char because int might match the return type of a gcc2
  3917. builtin and then its argument prototype would still apply. */
  3918. char res_mkquery ();
  3919. /* The GNU C library defines this for functions which it implements
  3920. to always fail with ENOSYS. Some functions are actually named
  3921. something starting with __ and the normal name is an alias. */
  3922. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3923. choke me
  3924. #else
  3925. char (*f) () = res_mkquery;
  3926. #endif
  3927. #ifdef __cplusplus
  3928. }
  3929. #endif
  3930. int
  3931. main ()
  3932. {
  3933. return f != res_mkquery;
  3934. ;
  3935. return 0;
  3936. }
  3937. _ACEOF
  3938. rm -f conftest.$ac_objext conftest$ac_exeext
  3939. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3940. (eval $ac_link) 2>conftest.er1
  3941. ac_status=$?
  3942. grep -v '^ *+' conftest.er1 >conftest.err
  3943. rm -f conftest.er1
  3944. cat conftest.err >&5
  3945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3946. (exit $ac_status); } &&
  3947. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3949. (eval $ac_try) 2>&5
  3950. ac_status=$?
  3951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3952. (exit $ac_status); }; } &&
  3953. { ac_try='test -s conftest$ac_exeext'
  3954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3955. (eval $ac_try) 2>&5
  3956. ac_status=$?
  3957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3958. (exit $ac_status); }; }; then
  3959. ac_cv_func_res_mkquery=yes
  3960. else
  3961. echo "$as_me: failed program was:" >&5
  3962. sed 's/^/| /' conftest.$ac_ext >&5
  3963. ac_cv_func_res_mkquery=no
  3964. fi
  3965. rm -f conftest.err conftest.$ac_objext \
  3966. conftest$ac_exeext conftest.$ac_ext
  3967. fi
  3968. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3969. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3970. if test $ac_cv_func_res_mkquery = yes; then
  3971. :
  3972. else
  3973. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3974. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3975. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3976. echo $ECHO_N "(cached) $ECHO_C" >&6
  3977. else
  3978. ac_check_lib_save_LIBS=$LIBS
  3979. LIBS="-lresolv $LIBS"
  3980. cat >conftest.$ac_ext <<_ACEOF
  3981. /* confdefs.h. */
  3982. _ACEOF
  3983. cat confdefs.h >>conftest.$ac_ext
  3984. cat >>conftest.$ac_ext <<_ACEOF
  3985. /* end confdefs.h. */
  3986. /* Override any gcc2 internal prototype to avoid an error. */
  3987. #ifdef __cplusplus
  3988. extern "C"
  3989. #endif
  3990. /* We use char because int might match the return type of a gcc2
  3991. builtin and then its argument prototype would still apply. */
  3992. char res_mkquery ();
  3993. int
  3994. main ()
  3995. {
  3996. res_mkquery ();
  3997. ;
  3998. return 0;
  3999. }
  4000. _ACEOF
  4001. rm -f conftest.$ac_objext conftest$ac_exeext
  4002. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4003. (eval $ac_link) 2>conftest.er1
  4004. ac_status=$?
  4005. grep -v '^ *+' conftest.er1 >conftest.err
  4006. rm -f conftest.er1
  4007. cat conftest.err >&5
  4008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4009. (exit $ac_status); } &&
  4010. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4012. (eval $ac_try) 2>&5
  4013. ac_status=$?
  4014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4015. (exit $ac_status); }; } &&
  4016. { ac_try='test -s conftest$ac_exeext'
  4017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4018. (eval $ac_try) 2>&5
  4019. ac_status=$?
  4020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4021. (exit $ac_status); }; }; then
  4022. ac_cv_lib_resolv_res_mkquery=yes
  4023. else
  4024. echo "$as_me: failed program was:" >&5
  4025. sed 's/^/| /' conftest.$ac_ext >&5
  4026. ac_cv_lib_resolv_res_mkquery=no
  4027. fi
  4028. rm -f conftest.err conftest.$ac_objext \
  4029. conftest$ac_exeext conftest.$ac_ext
  4030. LIBS=$ac_check_lib_save_LIBS
  4031. fi
  4032. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4033. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4034. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4035. if test "x${RESLIB}" != "x-lresolv"; then
  4036. RESLIB="${RESLIB} -lresolv"
  4037. fi
  4038. else
  4039. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4040. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4041. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4042. echo $ECHO_N "(cached) $ECHO_C" >&6
  4043. else
  4044. ac_check_lib_save_LIBS=$LIBS
  4045. LIBS="-lbind $LIBS"
  4046. cat >conftest.$ac_ext <<_ACEOF
  4047. /* confdefs.h. */
  4048. _ACEOF
  4049. cat confdefs.h >>conftest.$ac_ext
  4050. cat >>conftest.$ac_ext <<_ACEOF
  4051. /* end confdefs.h. */
  4052. /* Override any gcc2 internal prototype to avoid an error. */
  4053. #ifdef __cplusplus
  4054. extern "C"
  4055. #endif
  4056. /* We use char because int might match the return type of a gcc2
  4057. builtin and then its argument prototype would still apply. */
  4058. char res_mkquery ();
  4059. int
  4060. main ()
  4061. {
  4062. res_mkquery ();
  4063. ;
  4064. return 0;
  4065. }
  4066. _ACEOF
  4067. rm -f conftest.$ac_objext conftest$ac_exeext
  4068. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4069. (eval $ac_link) 2>conftest.er1
  4070. ac_status=$?
  4071. grep -v '^ *+' conftest.er1 >conftest.err
  4072. rm -f conftest.er1
  4073. cat conftest.err >&5
  4074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4075. (exit $ac_status); } &&
  4076. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4078. (eval $ac_try) 2>&5
  4079. ac_status=$?
  4080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4081. (exit $ac_status); }; } &&
  4082. { ac_try='test -s conftest$ac_exeext'
  4083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4084. (eval $ac_try) 2>&5
  4085. ac_status=$?
  4086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4087. (exit $ac_status); }; }; then
  4088. ac_cv_lib_bind_res_mkquery=yes
  4089. else
  4090. echo "$as_me: failed program was:" >&5
  4091. sed 's/^/| /' conftest.$ac_ext >&5
  4092. ac_cv_lib_bind_res_mkquery=no
  4093. fi
  4094. rm -f conftest.err conftest.$ac_objext \
  4095. conftest$ac_exeext conftest.$ac_ext
  4096. LIBS=$ac_check_lib_save_LIBS
  4097. fi
  4098. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4099. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4100. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4101. if test "x${RESLIB}" != "x-lbind"; then
  4102. RESLIB="${RESLIB} -lbind"
  4103. fi
  4104. else
  4105. dns_reslib_avail="false";
  4106. fi
  4107. fi
  4108. fi
  4109. if test "${dns_reslib_avail}" = false; then
  4110. dns_reslib_avail="true"
  4111. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4112. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4113. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4114. echo $ECHO_N "(cached) $ECHO_C" >&6
  4115. else
  4116. cat >conftest.$ac_ext <<_ACEOF
  4117. /* confdefs.h. */
  4118. _ACEOF
  4119. cat confdefs.h >>conftest.$ac_ext
  4120. cat >>conftest.$ac_ext <<_ACEOF
  4121. /* end confdefs.h. */
  4122. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4123. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4124. #define __res_mkquery innocuous___res_mkquery
  4125. /* System header to define __stub macros and hopefully few prototypes,
  4126. which can conflict with char __res_mkquery (); below.
  4127. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4128. <limits.h> exists even on freestanding compilers. */
  4129. #ifdef __STDC__
  4130. # include <limits.h>
  4131. #else
  4132. # include <assert.h>
  4133. #endif
  4134. #undef __res_mkquery
  4135. /* Override any gcc2 internal prototype to avoid an error. */
  4136. #ifdef __cplusplus
  4137. extern "C"
  4138. {
  4139. #endif
  4140. /* We use char because int might match the return type of a gcc2
  4141. builtin and then its argument prototype would still apply. */
  4142. char __res_mkquery ();
  4143. /* The GNU C library defines this for functions which it implements
  4144. to always fail with ENOSYS. Some functions are actually named
  4145. something starting with __ and the normal name is an alias. */
  4146. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4147. choke me
  4148. #else
  4149. char (*f) () = __res_mkquery;
  4150. #endif
  4151. #ifdef __cplusplus
  4152. }
  4153. #endif
  4154. int
  4155. main ()
  4156. {
  4157. return f != __res_mkquery;
  4158. ;
  4159. return 0;
  4160. }
  4161. _ACEOF
  4162. rm -f conftest.$ac_objext conftest$ac_exeext
  4163. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4164. (eval $ac_link) 2>conftest.er1
  4165. ac_status=$?
  4166. grep -v '^ *+' conftest.er1 >conftest.err
  4167. rm -f conftest.er1
  4168. cat conftest.err >&5
  4169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4170. (exit $ac_status); } &&
  4171. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4173. (eval $ac_try) 2>&5
  4174. ac_status=$?
  4175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4176. (exit $ac_status); }; } &&
  4177. { ac_try='test -s conftest$ac_exeext'
  4178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4179. (eval $ac_try) 2>&5
  4180. ac_status=$?
  4181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4182. (exit $ac_status); }; }; then
  4183. ac_cv_func___res_mkquery=yes
  4184. else
  4185. echo "$as_me: failed program was:" >&5
  4186. sed 's/^/| /' conftest.$ac_ext >&5
  4187. ac_cv_func___res_mkquery=no
  4188. fi
  4189. rm -f conftest.err conftest.$ac_objext \
  4190. conftest$ac_exeext conftest.$ac_ext
  4191. fi
  4192. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4193. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4194. if test $ac_cv_func___res_mkquery = yes; then
  4195. :
  4196. else
  4197. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4198. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4199. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4200. echo $ECHO_N "(cached) $ECHO_C" >&6
  4201. else
  4202. ac_check_lib_save_LIBS=$LIBS
  4203. LIBS="-lresolv $LIBS"
  4204. cat >conftest.$ac_ext <<_ACEOF
  4205. /* confdefs.h. */
  4206. _ACEOF
  4207. cat confdefs.h >>conftest.$ac_ext
  4208. cat >>conftest.$ac_ext <<_ACEOF
  4209. /* end confdefs.h. */
  4210. /* Override any gcc2 internal prototype to avoid an error. */
  4211. #ifdef __cplusplus
  4212. extern "C"
  4213. #endif
  4214. /* We use char because int might match the return type of a gcc2
  4215. builtin and then its argument prototype would still apply. */
  4216. char __res_mkquery ();
  4217. int
  4218. main ()
  4219. {
  4220. __res_mkquery ();
  4221. ;
  4222. return 0;
  4223. }
  4224. _ACEOF
  4225. rm -f conftest.$ac_objext conftest$ac_exeext
  4226. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4227. (eval $ac_link) 2>conftest.er1
  4228. ac_status=$?
  4229. grep -v '^ *+' conftest.er1 >conftest.err
  4230. rm -f conftest.er1
  4231. cat conftest.err >&5
  4232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4233. (exit $ac_status); } &&
  4234. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4236. (eval $ac_try) 2>&5
  4237. ac_status=$?
  4238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4239. (exit $ac_status); }; } &&
  4240. { ac_try='test -s conftest$ac_exeext'
  4241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4242. (eval $ac_try) 2>&5
  4243. ac_status=$?
  4244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4245. (exit $ac_status); }; }; then
  4246. ac_cv_lib_resolv___res_mkquery=yes
  4247. else
  4248. echo "$as_me: failed program was:" >&5
  4249. sed 's/^/| /' conftest.$ac_ext >&5
  4250. ac_cv_lib_resolv___res_mkquery=no
  4251. fi
  4252. rm -f conftest.err conftest.$ac_objext \
  4253. conftest$ac_exeext conftest.$ac_ext
  4254. LIBS=$ac_check_lib_save_LIBS
  4255. fi
  4256. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4257. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4258. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4259. if test "x${RESLIB}" != "x-lresolv"; then
  4260. RESLIB="${RESLIB} -lresolv"
  4261. fi
  4262. else
  4263. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4264. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4265. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4266. echo $ECHO_N "(cached) $ECHO_C" >&6
  4267. else
  4268. ac_check_lib_save_LIBS=$LIBS
  4269. LIBS="-lbind $LIBS"
  4270. cat >conftest.$ac_ext <<_ACEOF
  4271. /* confdefs.h. */
  4272. _ACEOF
  4273. cat confdefs.h >>conftest.$ac_ext
  4274. cat >>conftest.$ac_ext <<_ACEOF
  4275. /* end confdefs.h. */
  4276. /* Override any gcc2 internal prototype to avoid an error. */
  4277. #ifdef __cplusplus
  4278. extern "C"
  4279. #endif
  4280. /* We use char because int might match the return type of a gcc2
  4281. builtin and then its argument prototype would still apply. */
  4282. char __res_mkquery ();
  4283. int
  4284. main ()
  4285. {
  4286. __res_mkquery ();
  4287. ;
  4288. return 0;
  4289. }
  4290. _ACEOF
  4291. rm -f conftest.$ac_objext conftest$ac_exeext
  4292. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4293. (eval $ac_link) 2>conftest.er1
  4294. ac_status=$?
  4295. grep -v '^ *+' conftest.er1 >conftest.err
  4296. rm -f conftest.er1
  4297. cat conftest.err >&5
  4298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4299. (exit $ac_status); } &&
  4300. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4302. (eval $ac_try) 2>&5
  4303. ac_status=$?
  4304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4305. (exit $ac_status); }; } &&
  4306. { ac_try='test -s conftest$ac_exeext'
  4307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4308. (eval $ac_try) 2>&5
  4309. ac_status=$?
  4310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4311. (exit $ac_status); }; }; then
  4312. ac_cv_lib_bind___res_mkquery=yes
  4313. else
  4314. echo "$as_me: failed program was:" >&5
  4315. sed 's/^/| /' conftest.$ac_ext >&5
  4316. ac_cv_lib_bind___res_mkquery=no
  4317. fi
  4318. rm -f conftest.err conftest.$ac_objext \
  4319. conftest$ac_exeext conftest.$ac_ext
  4320. LIBS=$ac_check_lib_save_LIBS
  4321. fi
  4322. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4323. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4324. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4325. if test "x${RESLIB}" != "x-lbind"; then
  4326. RESLIB="${RESLIB} -lbind"
  4327. fi
  4328. else
  4329. dns_reslib_avail="false";
  4330. fi
  4331. fi
  4332. fi
  4333. fi
  4334. if test "${dns_reslib_avail}" = false; then
  4335. if test "$ac_cv_cygwin" = "yes"; then
  4336. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4337. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4338. if test -r /usr/local/bind/lib/libbind.a; then
  4339. echo "$as_me:$LINENO: result: yes" >&5
  4340. echo "${ECHO_T}yes" >&6
  4341. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4342. RESINCLUDE="-I/usr/local/bind/include"
  4343. dns_reslib_avail="true"
  4344. else
  4345. echo "$as_me:$LINENO: result: no" >&5
  4346. echo "${ECHO_T}no" >&6
  4347. fi
  4348. fi
  4349. fi
  4350. if test "${dns_reslib_avail}" = false; then
  4351. cat >&2 <<EOF
  4352. configure: warning:
  4353. Your system provides no functional resolver library.
  4354. One is required for buld.
  4355. EOF
  4356. exit 1
  4357. fi
  4358. #checkpoint
  4359. cat >confcache <<\_ACEOF
  4360. # This file is a shell script that caches the results of configure
  4361. # tests run on this system so they can be shared between configure
  4362. # scripts and configure runs, see configure's option --config-cache.
  4363. # It is not useful on other systems. If it contains results you don't
  4364. # want to keep, you may remove or edit it.
  4365. #
  4366. # config.status only pays attention to the cache file if you give it
  4367. # the --recheck option to rerun configure.
  4368. #
  4369. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4370. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4371. # following values.
  4372. _ACEOF
  4373. # The following way of writing the cache mishandles newlines in values,
  4374. # but we know of no workaround that is simple, portable, and efficient.
  4375. # So, don't put newlines in cache variables' values.
  4376. # Ultrix sh set writes to stderr and can't be redirected directly,
  4377. # and sets the high bit in the cache file unless we assign to the vars.
  4378. {
  4379. (set) 2>&1 |
  4380. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4381. *ac_space=\ *)
  4382. # `set' does not quote correctly, so add quotes (double-quote
  4383. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4384. sed -n \
  4385. "s/'/'\\\\''/g;
  4386. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4387. ;;
  4388. *)
  4389. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4390. sed -n \
  4391. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4392. ;;
  4393. esac;
  4394. } |
  4395. sed '
  4396. t clear
  4397. : clear
  4398. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4399. t end
  4400. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4401. : end' >>confcache
  4402. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4403. if test -w $cache_file; then
  4404. test "x$cache_file" != "x/dev/null"
  4405. cat confcache >$cache_file
  4406. else
  4407. echo "not updating unwritable cache $cache_file"
  4408. fi
  4409. fi
  4410. rm -f confcache
  4411. # Checks for system libraries
  4412. # FIXME: this needs to be fixed so that it works on IRIX
  4413. if test "$IRIX" = "yes"
  4414. then
  4415. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4416. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4417. else
  4418. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4419. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4420. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4421. echo $ECHO_N "(cached) $ECHO_C" >&6
  4422. else
  4423. ac_check_lib_save_LIBS=$LIBS
  4424. LIBS="-lsocket $LIBS"
  4425. cat >conftest.$ac_ext <<_ACEOF
  4426. /* confdefs.h. */
  4427. _ACEOF
  4428. cat confdefs.h >>conftest.$ac_ext
  4429. cat >>conftest.$ac_ext <<_ACEOF
  4430. /* end confdefs.h. */
  4431. /* Override any gcc2 internal prototype to avoid an error. */
  4432. #ifdef __cplusplus
  4433. extern "C"
  4434. #endif
  4435. /* We use char because int might match the return type of a gcc2
  4436. builtin and then its argument prototype would still apply. */
  4437. char socket ();
  4438. int
  4439. main ()
  4440. {
  4441. socket ();
  4442. ;
  4443. return 0;
  4444. }
  4445. _ACEOF
  4446. rm -f conftest.$ac_objext conftest$ac_exeext
  4447. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4448. (eval $ac_link) 2>conftest.er1
  4449. ac_status=$?
  4450. grep -v '^ *+' conftest.er1 >conftest.err
  4451. rm -f conftest.er1
  4452. cat conftest.err >&5
  4453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4454. (exit $ac_status); } &&
  4455. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4457. (eval $ac_try) 2>&5
  4458. ac_status=$?
  4459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4460. (exit $ac_status); }; } &&
  4461. { ac_try='test -s conftest$ac_exeext'
  4462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4463. (eval $ac_try) 2>&5
  4464. ac_status=$?
  4465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4466. (exit $ac_status); }; }; then
  4467. ac_cv_lib_socket_socket=yes
  4468. else
  4469. echo "$as_me: failed program was:" >&5
  4470. sed 's/^/| /' conftest.$ac_ext >&5
  4471. ac_cv_lib_socket_socket=no
  4472. fi
  4473. rm -f conftest.err conftest.$ac_objext \
  4474. conftest$ac_exeext conftest.$ac_ext
  4475. LIBS=$ac_check_lib_save_LIBS
  4476. fi
  4477. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4478. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4479. if test $ac_cv_lib_socket_socket = yes; then
  4480. cat >>confdefs.h <<_ACEOF
  4481. #define HAVE_LIBSOCKET 1
  4482. _ACEOF
  4483. LIBS="-lsocket $LIBS"
  4484. fi
  4485. # AC_CHECK_LIB(nsl, connect)
  4486. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4487. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4488. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4489. echo $ECHO_N "(cached) $ECHO_C" >&6
  4490. else
  4491. ac_check_lib_save_LIBS=$LIBS
  4492. LIBS="-ldns $LIBS"
  4493. cat >conftest.$ac_ext <<_ACEOF
  4494. /* confdefs.h. */
  4495. _ACEOF
  4496. cat confdefs.h >>conftest.$ac_ext
  4497. cat >>conftest.$ac_ext <<_ACEOF
  4498. /* end confdefs.h. */
  4499. /* Override any gcc2 internal prototype to avoid an error. */
  4500. #ifdef __cplusplus
  4501. extern "C"
  4502. #endif
  4503. /* We use char because int might match the return type of a gcc2
  4504. builtin and then its argument prototype would still apply. */
  4505. char gethostbyname ();
  4506. int
  4507. main ()
  4508. {
  4509. gethostbyname ();
  4510. ;
  4511. return 0;
  4512. }
  4513. _ACEOF
  4514. rm -f conftest.$ac_objext conftest$ac_exeext
  4515. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4516. (eval $ac_link) 2>conftest.er1
  4517. ac_status=$?
  4518. grep -v '^ *+' conftest.er1 >conftest.err
  4519. rm -f conftest.er1
  4520. cat conftest.err >&5
  4521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4522. (exit $ac_status); } &&
  4523. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4525. (eval $ac_try) 2>&5
  4526. ac_status=$?
  4527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4528. (exit $ac_status); }; } &&
  4529. { ac_try='test -s conftest$ac_exeext'
  4530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4531. (eval $ac_try) 2>&5
  4532. ac_status=$?
  4533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4534. (exit $ac_status); }; }; then
  4535. ac_cv_lib_dns_gethostbyname=yes
  4536. else
  4537. echo "$as_me: failed program was:" >&5
  4538. sed 's/^/| /' conftest.$ac_ext >&5
  4539. ac_cv_lib_dns_gethostbyname=no
  4540. fi
  4541. rm -f conftest.err conftest.$ac_objext \
  4542. conftest$ac_exeext conftest.$ac_ext
  4543. LIBS=$ac_check_lib_save_LIBS
  4544. fi
  4545. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4546. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4547. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4548. cat >>confdefs.h <<_ACEOF
  4549. #define HAVE_LIBDNS 1
  4550. _ACEOF
  4551. LIBS="-ldns $LIBS"
  4552. fi
  4553. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4554. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4555. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4556. echo $ECHO_N "(cached) $ECHO_C" >&6
  4557. else
  4558. ac_check_lib_save_LIBS=$LIBS
  4559. LIBS="-lz $LIBS"
  4560. cat >conftest.$ac_ext <<_ACEOF
  4561. /* confdefs.h. */
  4562. _ACEOF
  4563. cat confdefs.h >>conftest.$ac_ext
  4564. cat >>conftest.$ac_ext <<_ACEOF
  4565. /* end confdefs.h. */
  4566. /* Override any gcc2 internal prototype to avoid an error. */
  4567. #ifdef __cplusplus
  4568. extern "C"
  4569. #endif
  4570. /* We use char because int might match the return type of a gcc2
  4571. builtin and then its argument prototype would still apply. */
  4572. char gzopen ();
  4573. int
  4574. main ()
  4575. {
  4576. gzopen ();
  4577. ;
  4578. return 0;
  4579. }
  4580. _ACEOF
  4581. rm -f conftest.$ac_objext conftest$ac_exeext
  4582. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4583. (eval $ac_link) 2>conftest.er1
  4584. ac_status=$?
  4585. grep -v '^ *+' conftest.er1 >conftest.err
  4586. rm -f conftest.er1
  4587. cat conftest.err >&5
  4588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4589. (exit $ac_status); } &&
  4590. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4592. (eval $ac_try) 2>&5
  4593. ac_status=$?
  4594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4595. (exit $ac_status); }; } &&
  4596. { ac_try='test -s conftest$ac_exeext'
  4597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4598. (eval $ac_try) 2>&5
  4599. ac_status=$?
  4600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4601. (exit $ac_status); }; }; then
  4602. ac_cv_lib_z_gzopen=yes
  4603. else
  4604. echo "$as_me: failed program was:" >&5
  4605. sed 's/^/| /' conftest.$ac_ext >&5
  4606. ac_cv_lib_z_gzopen=no
  4607. fi
  4608. rm -f conftest.err conftest.$ac_objext \
  4609. conftest$ac_exeext conftest.$ac_ext
  4610. LIBS=$ac_check_lib_save_LIBS
  4611. fi
  4612. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4613. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4614. if test $ac_cv_lib_z_gzopen = yes; then
  4615. ZLIB="-lz"
  4616. fi
  4617. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4618. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4619. # This is needed for Tcl libraries compiled with thread support
  4620. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4621. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4622. # ac_cv_lib_pthread="-lpthread"], [dnl
  4623. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4624. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4625. # ac_cv_lib_pthread="-lpthread"], [dnl
  4626. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4627. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4628. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4629. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4630. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4631. # ac_cv_lib_pthread=""],
  4632. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4633. fi
  4634. # Checks for header files
  4635. ac_header_dirent=no
  4636. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4637. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4638. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4639. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4640. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4641. echo $ECHO_N "(cached) $ECHO_C" >&6
  4642. else
  4643. cat >conftest.$ac_ext <<_ACEOF
  4644. /* confdefs.h. */
  4645. _ACEOF
  4646. cat confdefs.h >>conftest.$ac_ext
  4647. cat >>conftest.$ac_ext <<_ACEOF
  4648. /* end confdefs.h. */
  4649. #include <sys/types.h>
  4650. #include <$ac_hdr>
  4651. int
  4652. main ()
  4653. {
  4654. if ((DIR *) 0)
  4655. return 0;
  4656. ;
  4657. return 0;
  4658. }
  4659. _ACEOF
  4660. rm -f conftest.$ac_objext
  4661. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4662. (eval $ac_compile) 2>conftest.er1
  4663. ac_status=$?
  4664. grep -v '^ *+' conftest.er1 >conftest.err
  4665. rm -f conftest.er1
  4666. cat conftest.err >&5
  4667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4668. (exit $ac_status); } &&
  4669. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4671. (eval $ac_try) 2>&5
  4672. ac_status=$?
  4673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4674. (exit $ac_status); }; } &&
  4675. { ac_try='test -s conftest.$ac_objext'
  4676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4677. (eval $ac_try) 2>&5
  4678. ac_status=$?
  4679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4680. (exit $ac_status); }; }; then
  4681. eval "$as_ac_Header=yes"
  4682. else
  4683. echo "$as_me: failed program was:" >&5
  4684. sed 's/^/| /' conftest.$ac_ext >&5
  4685. eval "$as_ac_Header=no"
  4686. fi
  4687. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4690. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4691. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4692. cat >>confdefs.h <<_ACEOF
  4693. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4694. _ACEOF
  4695. ac_header_dirent=$ac_hdr; break
  4696. fi
  4697. done
  4698. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4699. if test $ac_header_dirent = dirent.h; then
  4700. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4701. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4702. if test "${ac_cv_search_opendir+set}" = set; then
  4703. echo $ECHO_N "(cached) $ECHO_C" >&6
  4704. else
  4705. ac_func_search_save_LIBS=$LIBS
  4706. ac_cv_search_opendir=no
  4707. cat >conftest.$ac_ext <<_ACEOF
  4708. /* confdefs.h. */
  4709. _ACEOF
  4710. cat confdefs.h >>conftest.$ac_ext
  4711. cat >>conftest.$ac_ext <<_ACEOF
  4712. /* end confdefs.h. */
  4713. /* Override any gcc2 internal prototype to avoid an error. */
  4714. #ifdef __cplusplus
  4715. extern "C"
  4716. #endif
  4717. /* We use char because int might match the return type of a gcc2
  4718. builtin and then its argument prototype would still apply. */
  4719. char opendir ();
  4720. int
  4721. main ()
  4722. {
  4723. opendir ();
  4724. ;
  4725. return 0;
  4726. }
  4727. _ACEOF
  4728. rm -f conftest.$ac_objext conftest$ac_exeext
  4729. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4730. (eval $ac_link) 2>conftest.er1
  4731. ac_status=$?
  4732. grep -v '^ *+' conftest.er1 >conftest.err
  4733. rm -f conftest.er1
  4734. cat conftest.err >&5
  4735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4736. (exit $ac_status); } &&
  4737. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4739. (eval $ac_try) 2>&5
  4740. ac_status=$?
  4741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4742. (exit $ac_status); }; } &&
  4743. { ac_try='test -s conftest$ac_exeext'
  4744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4745. (eval $ac_try) 2>&5
  4746. ac_status=$?
  4747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4748. (exit $ac_status); }; }; then
  4749. ac_cv_search_opendir="none required"
  4750. else
  4751. echo "$as_me: failed program was:" >&5
  4752. sed 's/^/| /' conftest.$ac_ext >&5
  4753. fi
  4754. rm -f conftest.err conftest.$ac_objext \
  4755. conftest$ac_exeext conftest.$ac_ext
  4756. if test "$ac_cv_search_opendir" = no; then
  4757. for ac_lib in dir; do
  4758. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4759. cat >conftest.$ac_ext <<_ACEOF
  4760. /* confdefs.h. */
  4761. _ACEOF
  4762. cat confdefs.h >>conftest.$ac_ext
  4763. cat >>conftest.$ac_ext <<_ACEOF
  4764. /* end confdefs.h. */
  4765. /* Override any gcc2 internal prototype to avoid an error. */
  4766. #ifdef __cplusplus
  4767. extern "C"
  4768. #endif
  4769. /* We use char because int might match the return type of a gcc2
  4770. builtin and then its argument prototype would still apply. */
  4771. char opendir ();
  4772. int
  4773. main ()
  4774. {
  4775. opendir ();
  4776. ;
  4777. return 0;
  4778. }
  4779. _ACEOF
  4780. rm -f conftest.$ac_objext conftest$ac_exeext
  4781. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4782. (eval $ac_link) 2>conftest.er1
  4783. ac_status=$?
  4784. grep -v '^ *+' conftest.er1 >conftest.err
  4785. rm -f conftest.er1
  4786. cat conftest.err >&5
  4787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4788. (exit $ac_status); } &&
  4789. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4791. (eval $ac_try) 2>&5
  4792. ac_status=$?
  4793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4794. (exit $ac_status); }; } &&
  4795. { ac_try='test -s conftest$ac_exeext'
  4796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4797. (eval $ac_try) 2>&5
  4798. ac_status=$?
  4799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4800. (exit $ac_status); }; }; then
  4801. ac_cv_search_opendir="-l$ac_lib"
  4802. break
  4803. else
  4804. echo "$as_me: failed program was:" >&5
  4805. sed 's/^/| /' conftest.$ac_ext >&5
  4806. fi
  4807. rm -f conftest.err conftest.$ac_objext \
  4808. conftest$ac_exeext conftest.$ac_ext
  4809. done
  4810. fi
  4811. LIBS=$ac_func_search_save_LIBS
  4812. fi
  4813. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4814. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4815. if test "$ac_cv_search_opendir" != no; then
  4816. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4817. fi
  4818. else
  4819. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4820. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4821. if test "${ac_cv_search_opendir+set}" = set; then
  4822. echo $ECHO_N "(cached) $ECHO_C" >&6
  4823. else
  4824. ac_func_search_save_LIBS=$LIBS
  4825. ac_cv_search_opendir=no
  4826. cat >conftest.$ac_ext <<_ACEOF
  4827. /* confdefs.h. */
  4828. _ACEOF
  4829. cat confdefs.h >>conftest.$ac_ext
  4830. cat >>conftest.$ac_ext <<_ACEOF
  4831. /* end confdefs.h. */
  4832. /* Override any gcc2 internal prototype to avoid an error. */
  4833. #ifdef __cplusplus
  4834. extern "C"
  4835. #endif
  4836. /* We use char because int might match the return type of a gcc2
  4837. builtin and then its argument prototype would still apply. */
  4838. char opendir ();
  4839. int
  4840. main ()
  4841. {
  4842. opendir ();
  4843. ;
  4844. return 0;
  4845. }
  4846. _ACEOF
  4847. rm -f conftest.$ac_objext conftest$ac_exeext
  4848. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4849. (eval $ac_link) 2>conftest.er1
  4850. ac_status=$?
  4851. grep -v '^ *+' conftest.er1 >conftest.err
  4852. rm -f conftest.er1
  4853. cat conftest.err >&5
  4854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4855. (exit $ac_status); } &&
  4856. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4858. (eval $ac_try) 2>&5
  4859. ac_status=$?
  4860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4861. (exit $ac_status); }; } &&
  4862. { ac_try='test -s conftest$ac_exeext'
  4863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4864. (eval $ac_try) 2>&5
  4865. ac_status=$?
  4866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4867. (exit $ac_status); }; }; then
  4868. ac_cv_search_opendir="none required"
  4869. else
  4870. echo "$as_me: failed program was:" >&5
  4871. sed 's/^/| /' conftest.$ac_ext >&5
  4872. fi
  4873. rm -f conftest.err conftest.$ac_objext \
  4874. conftest$ac_exeext conftest.$ac_ext
  4875. if test "$ac_cv_search_opendir" = no; then
  4876. for ac_lib in x; do
  4877. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4878. cat >conftest.$ac_ext <<_ACEOF
  4879. /* confdefs.h. */
  4880. _ACEOF
  4881. cat confdefs.h >>conftest.$ac_ext
  4882. cat >>conftest.$ac_ext <<_ACEOF
  4883. /* end confdefs.h. */
  4884. /* Override any gcc2 internal prototype to avoid an error. */
  4885. #ifdef __cplusplus
  4886. extern "C"
  4887. #endif
  4888. /* We use char because int might match the return type of a gcc2
  4889. builtin and then its argument prototype would still apply. */
  4890. char opendir ();
  4891. int
  4892. main ()
  4893. {
  4894. opendir ();
  4895. ;
  4896. return 0;
  4897. }
  4898. _ACEOF
  4899. rm -f conftest.$ac_objext conftest$ac_exeext
  4900. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4901. (eval $ac_link) 2>conftest.er1
  4902. ac_status=$?
  4903. grep -v '^ *+' conftest.er1 >conftest.err
  4904. rm -f conftest.er1
  4905. cat conftest.err >&5
  4906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4907. (exit $ac_status); } &&
  4908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4910. (eval $ac_try) 2>&5
  4911. ac_status=$?
  4912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913. (exit $ac_status); }; } &&
  4914. { ac_try='test -s conftest$ac_exeext'
  4915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4916. (eval $ac_try) 2>&5
  4917. ac_status=$?
  4918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4919. (exit $ac_status); }; }; then
  4920. ac_cv_search_opendir="-l$ac_lib"
  4921. break
  4922. else
  4923. echo "$as_me: failed program was:" >&5
  4924. sed 's/^/| /' conftest.$ac_ext >&5
  4925. fi
  4926. rm -f conftest.err conftest.$ac_objext \
  4927. conftest$ac_exeext conftest.$ac_ext
  4928. done
  4929. fi
  4930. LIBS=$ac_func_search_save_LIBS
  4931. fi
  4932. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4933. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4934. if test "$ac_cv_search_opendir" != no; then
  4935. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4936. fi
  4937. fi
  4938. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4939. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4940. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4941. echo $ECHO_N "(cached) $ECHO_C" >&6
  4942. else
  4943. cat >conftest.$ac_ext <<_ACEOF
  4944. /* confdefs.h. */
  4945. _ACEOF
  4946. cat confdefs.h >>conftest.$ac_ext
  4947. cat >>conftest.$ac_ext <<_ACEOF
  4948. /* end confdefs.h. */
  4949. #include <sys/types.h>
  4950. #include <sys/wait.h>
  4951. #ifndef WEXITSTATUS
  4952. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4953. #endif
  4954. #ifndef WIFEXITED
  4955. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4956. #endif
  4957. int
  4958. main ()
  4959. {
  4960. int s;
  4961. wait (&s);
  4962. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4963. ;
  4964. return 0;
  4965. }
  4966. _ACEOF
  4967. rm -f conftest.$ac_objext
  4968. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4969. (eval $ac_compile) 2>conftest.er1
  4970. ac_status=$?
  4971. grep -v '^ *+' conftest.er1 >conftest.err
  4972. rm -f conftest.er1
  4973. cat conftest.err >&5
  4974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4975. (exit $ac_status); } &&
  4976. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4978. (eval $ac_try) 2>&5
  4979. ac_status=$?
  4980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4981. (exit $ac_status); }; } &&
  4982. { ac_try='test -s conftest.$ac_objext'
  4983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4984. (eval $ac_try) 2>&5
  4985. ac_status=$?
  4986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4987. (exit $ac_status); }; }; then
  4988. ac_cv_header_sys_wait_h=yes
  4989. else
  4990. echo "$as_me: failed program was:" >&5
  4991. sed 's/^/| /' conftest.$ac_ext >&5
  4992. ac_cv_header_sys_wait_h=no
  4993. fi
  4994. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4995. fi
  4996. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4997. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4998. if test $ac_cv_header_sys_wait_h = yes; then
  4999. cat >>confdefs.h <<\_ACEOF
  5000. #define HAVE_SYS_WAIT_H 1
  5001. _ACEOF
  5002. fi
  5003. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5004. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5005. if test "${ac_cv_header_time+set}" = set; then
  5006. echo $ECHO_N "(cached) $ECHO_C" >&6
  5007. else
  5008. cat >conftest.$ac_ext <<_ACEOF
  5009. /* confdefs.h. */
  5010. _ACEOF
  5011. cat confdefs.h >>conftest.$ac_ext
  5012. cat >>conftest.$ac_ext <<_ACEOF
  5013. /* end confdefs.h. */
  5014. #include <sys/types.h>
  5015. #include <sys/time.h>
  5016. #include <time.h>
  5017. int
  5018. main ()
  5019. {
  5020. if ((struct tm *) 0)
  5021. return 0;
  5022. ;
  5023. return 0;
  5024. }
  5025. _ACEOF
  5026. rm -f conftest.$ac_objext
  5027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5028. (eval $ac_compile) 2>conftest.er1
  5029. ac_status=$?
  5030. grep -v '^ *+' conftest.er1 >conftest.err
  5031. rm -f conftest.er1
  5032. cat conftest.err >&5
  5033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. (exit $ac_status); } &&
  5035. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5037. (eval $ac_try) 2>&5
  5038. ac_status=$?
  5039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5040. (exit $ac_status); }; } &&
  5041. { ac_try='test -s conftest.$ac_objext'
  5042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5043. (eval $ac_try) 2>&5
  5044. ac_status=$?
  5045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5046. (exit $ac_status); }; }; then
  5047. ac_cv_header_time=yes
  5048. else
  5049. echo "$as_me: failed program was:" >&5
  5050. sed 's/^/| /' conftest.$ac_ext >&5
  5051. ac_cv_header_time=no
  5052. fi
  5053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5054. fi
  5055. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5056. echo "${ECHO_T}$ac_cv_header_time" >&6
  5057. if test $ac_cv_header_time = yes; then
  5058. cat >>confdefs.h <<\_ACEOF
  5059. #define TIME_WITH_SYS_TIME 1
  5060. _ACEOF
  5061. fi
  5062. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5063. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5064. if test "${ac_cv_header_stat_broken+set}" = set; then
  5065. echo $ECHO_N "(cached) $ECHO_C" >&6
  5066. else
  5067. cat >conftest.$ac_ext <<_ACEOF
  5068. /* confdefs.h. */
  5069. _ACEOF
  5070. cat confdefs.h >>conftest.$ac_ext
  5071. cat >>conftest.$ac_ext <<_ACEOF
  5072. /* end confdefs.h. */
  5073. #include <sys/types.h>
  5074. #include <sys/stat.h>
  5075. #if defined(S_ISBLK) && defined(S_IFDIR)
  5076. # if S_ISBLK (S_IFDIR)
  5077. You lose.
  5078. # endif
  5079. #endif
  5080. #if defined(S_ISBLK) && defined(S_IFCHR)
  5081. # if S_ISBLK (S_IFCHR)
  5082. You lose.
  5083. # endif
  5084. #endif
  5085. #if defined(S_ISLNK) && defined(S_IFREG)
  5086. # if S_ISLNK (S_IFREG)
  5087. You lose.
  5088. # endif
  5089. #endif
  5090. #if defined(S_ISSOCK) && defined(S_IFREG)
  5091. # if S_ISSOCK (S_IFREG)
  5092. You lose.
  5093. # endif
  5094. #endif
  5095. _ACEOF
  5096. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5097. $EGREP "You lose" >/dev/null 2>&1; then
  5098. ac_cv_header_stat_broken=yes
  5099. else
  5100. ac_cv_header_stat_broken=no
  5101. fi
  5102. rm -f conftest*
  5103. fi
  5104. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5105. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5106. if test $ac_cv_header_stat_broken = yes; then
  5107. cat >>confdefs.h <<\_ACEOF
  5108. #define STAT_MACROS_BROKEN 1
  5109. _ACEOF
  5110. fi
  5111. #checkpoint
  5112. cat >confcache <<\_ACEOF
  5113. # This file is a shell script that caches the results of configure
  5114. # tests run on this system so they can be shared between configure
  5115. # scripts and configure runs, see configure's option --config-cache.
  5116. # It is not useful on other systems. If it contains results you don't
  5117. # want to keep, you may remove or edit it.
  5118. #
  5119. # config.status only pays attention to the cache file if you give it
  5120. # the --recheck option to rerun configure.
  5121. #
  5122. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5123. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5124. # following values.
  5125. _ACEOF
  5126. # The following way of writing the cache mishandles newlines in values,
  5127. # but we know of no workaround that is simple, portable, and efficient.
  5128. # So, don't put newlines in cache variables' values.
  5129. # Ultrix sh set writes to stderr and can't be redirected directly,
  5130. # and sets the high bit in the cache file unless we assign to the vars.
  5131. {
  5132. (set) 2>&1 |
  5133. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5134. *ac_space=\ *)
  5135. # `set' does not quote correctly, so add quotes (double-quote
  5136. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5137. sed -n \
  5138. "s/'/'\\\\''/g;
  5139. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5140. ;;
  5141. *)
  5142. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5143. sed -n \
  5144. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5145. ;;
  5146. esac;
  5147. } |
  5148. sed '
  5149. t clear
  5150. : clear
  5151. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5152. t end
  5153. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5154. : end' >>confcache
  5155. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5156. if test -w $cache_file; then
  5157. test "x$cache_file" != "x/dev/null"
  5158. cat confcache >$cache_file
  5159. else
  5160. echo "not updating unwritable cache $cache_file"
  5161. fi
  5162. fi
  5163. rm -f confcache
  5164. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5165. do
  5166. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5167. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5168. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5169. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5170. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5171. echo $ECHO_N "(cached) $ECHO_C" >&6
  5172. fi
  5173. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5174. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5175. else
  5176. # Is the header compilable?
  5177. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5178. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5179. cat >conftest.$ac_ext <<_ACEOF
  5180. /* confdefs.h. */
  5181. _ACEOF
  5182. cat confdefs.h >>conftest.$ac_ext
  5183. cat >>conftest.$ac_ext <<_ACEOF
  5184. /* end confdefs.h. */
  5185. $ac_includes_default
  5186. #include <$ac_header>
  5187. _ACEOF
  5188. rm -f conftest.$ac_objext
  5189. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5190. (eval $ac_compile) 2>conftest.er1
  5191. ac_status=$?
  5192. grep -v '^ *+' conftest.er1 >conftest.err
  5193. rm -f conftest.er1
  5194. cat conftest.err >&5
  5195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5196. (exit $ac_status); } &&
  5197. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5199. (eval $ac_try) 2>&5
  5200. ac_status=$?
  5201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5202. (exit $ac_status); }; } &&
  5203. { ac_try='test -s conftest.$ac_objext'
  5204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5205. (eval $ac_try) 2>&5
  5206. ac_status=$?
  5207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5208. (exit $ac_status); }; }; then
  5209. ac_header_compiler=yes
  5210. else
  5211. echo "$as_me: failed program was:" >&5
  5212. sed 's/^/| /' conftest.$ac_ext >&5
  5213. ac_header_compiler=no
  5214. fi
  5215. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5216. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5217. echo "${ECHO_T}$ac_header_compiler" >&6
  5218. # Is the header present?
  5219. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5220. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5221. cat >conftest.$ac_ext <<_ACEOF
  5222. /* confdefs.h. */
  5223. _ACEOF
  5224. cat confdefs.h >>conftest.$ac_ext
  5225. cat >>conftest.$ac_ext <<_ACEOF
  5226. /* end confdefs.h. */
  5227. #include <$ac_header>
  5228. _ACEOF
  5229. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5230. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5231. ac_status=$?
  5232. grep -v '^ *+' conftest.er1 >conftest.err
  5233. rm -f conftest.er1
  5234. cat conftest.err >&5
  5235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5236. (exit $ac_status); } >/dev/null; then
  5237. if test -s conftest.err; then
  5238. ac_cpp_err=$ac_c_preproc_warn_flag
  5239. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5240. else
  5241. ac_cpp_err=
  5242. fi
  5243. else
  5244. ac_cpp_err=yes
  5245. fi
  5246. if test -z "$ac_cpp_err"; then
  5247. ac_header_preproc=yes
  5248. else
  5249. echo "$as_me: failed program was:" >&5
  5250. sed 's/^/| /' conftest.$ac_ext >&5
  5251. ac_header_preproc=no
  5252. fi
  5253. rm -f conftest.err conftest.$ac_ext
  5254. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5255. echo "${ECHO_T}$ac_header_preproc" >&6
  5256. # So? What about this header?
  5257. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5258. yes:no: )
  5259. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5260. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5261. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5262. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5263. ac_header_preproc=yes
  5264. ;;
  5265. no:yes:* )
  5266. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5267. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5268. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5269. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5270. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5271. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5272. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5273. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5274. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5275. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5276. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5277. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5278. (
  5279. cat <<\_ASBOX
  5280. ## ------------------------------------------ ##
  5281. ## Report this to the AC_PACKAGE_NAME lists. ##
  5282. ## ------------------------------------------ ##
  5283. _ASBOX
  5284. ) |
  5285. sed "s/^/$as_me: WARNING: /" >&2
  5286. ;;
  5287. esac
  5288. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5289. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5290. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5291. echo $ECHO_N "(cached) $ECHO_C" >&6
  5292. else
  5293. eval "$as_ac_Header=\$ac_header_preproc"
  5294. fi
  5295. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5296. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5297. fi
  5298. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5299. cat >>confdefs.h <<_ACEOF
  5300. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5301. _ACEOF
  5302. fi
  5303. done
  5304. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5305. do
  5306. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5307. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5308. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5309. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5310. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5311. echo $ECHO_N "(cached) $ECHO_C" >&6
  5312. fi
  5313. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5314. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5315. else
  5316. # Is the header compilable?
  5317. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5318. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5319. cat >conftest.$ac_ext <<_ACEOF
  5320. /* confdefs.h. */
  5321. _ACEOF
  5322. cat confdefs.h >>conftest.$ac_ext
  5323. cat >>conftest.$ac_ext <<_ACEOF
  5324. /* end confdefs.h. */
  5325. $ac_includes_default
  5326. #include <$ac_header>
  5327. _ACEOF
  5328. rm -f conftest.$ac_objext
  5329. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5330. (eval $ac_compile) 2>conftest.er1
  5331. ac_status=$?
  5332. grep -v '^ *+' conftest.er1 >conftest.err
  5333. rm -f conftest.er1
  5334. cat conftest.err >&5
  5335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5336. (exit $ac_status); } &&
  5337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5339. (eval $ac_try) 2>&5
  5340. ac_status=$?
  5341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5342. (exit $ac_status); }; } &&
  5343. { ac_try='test -s conftest.$ac_objext'
  5344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5345. (eval $ac_try) 2>&5
  5346. ac_status=$?
  5347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5348. (exit $ac_status); }; }; then
  5349. ac_header_compiler=yes
  5350. else
  5351. echo "$as_me: failed program was:" >&5
  5352. sed 's/^/| /' conftest.$ac_ext >&5
  5353. ac_header_compiler=no
  5354. fi
  5355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5356. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5357. echo "${ECHO_T}$ac_header_compiler" >&6
  5358. # Is the header present?
  5359. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5360. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5361. cat >conftest.$ac_ext <<_ACEOF
  5362. /* confdefs.h. */
  5363. _ACEOF
  5364. cat confdefs.h >>conftest.$ac_ext
  5365. cat >>conftest.$ac_ext <<_ACEOF
  5366. /* end confdefs.h. */
  5367. #include <$ac_header>
  5368. _ACEOF
  5369. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5370. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5371. ac_status=$?
  5372. grep -v '^ *+' conftest.er1 >conftest.err
  5373. rm -f conftest.er1
  5374. cat conftest.err >&5
  5375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5376. (exit $ac_status); } >/dev/null; then
  5377. if test -s conftest.err; then
  5378. ac_cpp_err=$ac_c_preproc_warn_flag
  5379. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5380. else
  5381. ac_cpp_err=
  5382. fi
  5383. else
  5384. ac_cpp_err=yes
  5385. fi
  5386. if test -z "$ac_cpp_err"; then
  5387. ac_header_preproc=yes
  5388. else
  5389. echo "$as_me: failed program was:" >&5
  5390. sed 's/^/| /' conftest.$ac_ext >&5
  5391. ac_header_preproc=no
  5392. fi
  5393. rm -f conftest.err conftest.$ac_ext
  5394. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5395. echo "${ECHO_T}$ac_header_preproc" >&6
  5396. # So? What about this header?
  5397. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5398. yes:no: )
  5399. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5400. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5401. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5402. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5403. ac_header_preproc=yes
  5404. ;;
  5405. no:yes:* )
  5406. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5407. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5408. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5409. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5410. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5411. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5412. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5413. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5414. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5415. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5416. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5417. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5418. (
  5419. cat <<\_ASBOX
  5420. ## ------------------------------------------ ##
  5421. ## Report this to the AC_PACKAGE_NAME lists. ##
  5422. ## ------------------------------------------ ##
  5423. _ASBOX
  5424. ) |
  5425. sed "s/^/$as_me: WARNING: /" >&2
  5426. ;;
  5427. esac
  5428. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5429. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5430. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5431. echo $ECHO_N "(cached) $ECHO_C" >&6
  5432. else
  5433. eval "$as_ac_Header=\$ac_header_preproc"
  5434. fi
  5435. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5436. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5437. fi
  5438. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5439. cat >>confdefs.h <<_ACEOF
  5440. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5441. _ACEOF
  5442. fi
  5443. done
  5444. #checkpoint
  5445. cat >confcache <<\_ACEOF
  5446. # This file is a shell script that caches the results of configure
  5447. # tests run on this system so they can be shared between configure
  5448. # scripts and configure runs, see configure's option --config-cache.
  5449. # It is not useful on other systems. If it contains results you don't
  5450. # want to keep, you may remove or edit it.
  5451. #
  5452. # config.status only pays attention to the cache file if you give it
  5453. # the --recheck option to rerun configure.
  5454. #
  5455. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5456. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5457. # following values.
  5458. _ACEOF
  5459. # The following way of writing the cache mishandles newlines in values,
  5460. # but we know of no workaround that is simple, portable, and efficient.
  5461. # So, don't put newlines in cache variables' values.
  5462. # Ultrix sh set writes to stderr and can't be redirected directly,
  5463. # and sets the high bit in the cache file unless we assign to the vars.
  5464. {
  5465. (set) 2>&1 |
  5466. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5467. *ac_space=\ *)
  5468. # `set' does not quote correctly, so add quotes (double-quote
  5469. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5470. sed -n \
  5471. "s/'/'\\\\''/g;
  5472. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5473. ;;
  5474. *)
  5475. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5476. sed -n \
  5477. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5478. ;;
  5479. esac;
  5480. } |
  5481. sed '
  5482. t clear
  5483. : clear
  5484. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5485. t end
  5486. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5487. : end' >>confcache
  5488. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5489. if test -w $cache_file; then
  5490. test "x$cache_file" != "x/dev/null"
  5491. cat confcache >$cache_file
  5492. else
  5493. echo "not updating unwritable cache $cache_file"
  5494. fi
  5495. fi
  5496. rm -f confcache
  5497. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5498. for ac_header in zlib.h
  5499. do
  5500. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5501. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5502. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5503. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5504. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5505. echo $ECHO_N "(cached) $ECHO_C" >&6
  5506. fi
  5507. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5508. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5509. else
  5510. # Is the header compilable?
  5511. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5512. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5513. cat >conftest.$ac_ext <<_ACEOF
  5514. /* confdefs.h. */
  5515. _ACEOF
  5516. cat confdefs.h >>conftest.$ac_ext
  5517. cat >>conftest.$ac_ext <<_ACEOF
  5518. /* end confdefs.h. */
  5519. $ac_includes_default
  5520. #include <$ac_header>
  5521. _ACEOF
  5522. rm -f conftest.$ac_objext
  5523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5524. (eval $ac_compile) 2>conftest.er1
  5525. ac_status=$?
  5526. grep -v '^ *+' conftest.er1 >conftest.err
  5527. rm -f conftest.er1
  5528. cat conftest.err >&5
  5529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530. (exit $ac_status); } &&
  5531. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5533. (eval $ac_try) 2>&5
  5534. ac_status=$?
  5535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5536. (exit $ac_status); }; } &&
  5537. { ac_try='test -s conftest.$ac_objext'
  5538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5539. (eval $ac_try) 2>&5
  5540. ac_status=$?
  5541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5542. (exit $ac_status); }; }; then
  5543. ac_header_compiler=yes
  5544. else
  5545. echo "$as_me: failed program was:" >&5
  5546. sed 's/^/| /' conftest.$ac_ext >&5
  5547. ac_header_compiler=no
  5548. fi
  5549. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5550. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5551. echo "${ECHO_T}$ac_header_compiler" >&6
  5552. # Is the header present?
  5553. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5554. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5555. cat >conftest.$ac_ext <<_ACEOF
  5556. /* confdefs.h. */
  5557. _ACEOF
  5558. cat confdefs.h >>conftest.$ac_ext
  5559. cat >>conftest.$ac_ext <<_ACEOF
  5560. /* end confdefs.h. */
  5561. #include <$ac_header>
  5562. _ACEOF
  5563. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5564. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5565. ac_status=$?
  5566. grep -v '^ *+' conftest.er1 >conftest.err
  5567. rm -f conftest.er1
  5568. cat conftest.err >&5
  5569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5570. (exit $ac_status); } >/dev/null; then
  5571. if test -s conftest.err; then
  5572. ac_cpp_err=$ac_c_preproc_warn_flag
  5573. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5574. else
  5575. ac_cpp_err=
  5576. fi
  5577. else
  5578. ac_cpp_err=yes
  5579. fi
  5580. if test -z "$ac_cpp_err"; then
  5581. ac_header_preproc=yes
  5582. else
  5583. echo "$as_me: failed program was:" >&5
  5584. sed 's/^/| /' conftest.$ac_ext >&5
  5585. ac_header_preproc=no
  5586. fi
  5587. rm -f conftest.err conftest.$ac_ext
  5588. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5589. echo "${ECHO_T}$ac_header_preproc" >&6
  5590. # So? What about this header?
  5591. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5592. yes:no: )
  5593. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5594. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5595. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5596. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5597. ac_header_preproc=yes
  5598. ;;
  5599. no:yes:* )
  5600. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5601. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5602. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5603. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5604. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5605. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5606. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5607. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5608. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5609. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5610. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5611. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5612. (
  5613. cat <<\_ASBOX
  5614. ## ------------------------------------------ ##
  5615. ## Report this to the AC_PACKAGE_NAME lists. ##
  5616. ## ------------------------------------------ ##
  5617. _ASBOX
  5618. ) |
  5619. sed "s/^/$as_me: WARNING: /" >&2
  5620. ;;
  5621. esac
  5622. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5623. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5624. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5625. echo $ECHO_N "(cached) $ECHO_C" >&6
  5626. else
  5627. eval "$as_ac_Header=\$ac_header_preproc"
  5628. fi
  5629. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5630. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5631. fi
  5632. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5633. cat >>confdefs.h <<_ACEOF
  5634. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5635. _ACEOF
  5636. fi
  5637. done
  5638. if test "x${ZLIB}" = x; then
  5639. cat >&2 <<EOF
  5640. configure: error:
  5641. Your system does not provide a working zlib compression library.
  5642. It is required.
  5643. EOF
  5644. exit 1
  5645. else
  5646. if test "${ac_cv_header_zlib_h}" != yes; then
  5647. cat >&2 <<EOF
  5648. configure: error:
  5649. Your system does not provide the necessary zlib header file.
  5650. It is required.
  5651. EOF
  5652. exit 1
  5653. fi
  5654. fi
  5655. #EGG_CHECK_SSL
  5656. #AC_SUBST(SSL)dnl
  5657. # Checks for typedefs, structures, and compiler characteristics
  5658. echo "$as_me:$LINENO: checking for pid_t" >&5
  5659. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5660. if test "${ac_cv_type_pid_t+set}" = set; then
  5661. echo $ECHO_N "(cached) $ECHO_C" >&6
  5662. else
  5663. cat >conftest.$ac_ext <<_ACEOF
  5664. /* confdefs.h. */
  5665. _ACEOF
  5666. cat confdefs.h >>conftest.$ac_ext
  5667. cat >>conftest.$ac_ext <<_ACEOF
  5668. /* end confdefs.h. */
  5669. $ac_includes_default
  5670. int
  5671. main ()
  5672. {
  5673. if ((pid_t *) 0)
  5674. return 0;
  5675. if (sizeof (pid_t))
  5676. return 0;
  5677. ;
  5678. return 0;
  5679. }
  5680. _ACEOF
  5681. rm -f conftest.$ac_objext
  5682. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5683. (eval $ac_compile) 2>conftest.er1
  5684. ac_status=$?
  5685. grep -v '^ *+' conftest.er1 >conftest.err
  5686. rm -f conftest.er1
  5687. cat conftest.err >&5
  5688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5689. (exit $ac_status); } &&
  5690. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5692. (eval $ac_try) 2>&5
  5693. ac_status=$?
  5694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5695. (exit $ac_status); }; } &&
  5696. { ac_try='test -s conftest.$ac_objext'
  5697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5698. (eval $ac_try) 2>&5
  5699. ac_status=$?
  5700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5701. (exit $ac_status); }; }; then
  5702. ac_cv_type_pid_t=yes
  5703. else
  5704. echo "$as_me: failed program was:" >&5
  5705. sed 's/^/| /' conftest.$ac_ext >&5
  5706. ac_cv_type_pid_t=no
  5707. fi
  5708. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5709. fi
  5710. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5711. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5712. if test $ac_cv_type_pid_t = yes; then
  5713. :
  5714. else
  5715. cat >>confdefs.h <<_ACEOF
  5716. #define pid_t int
  5717. _ACEOF
  5718. fi
  5719. echo "$as_me:$LINENO: checking for size_t" >&5
  5720. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5721. if test "${ac_cv_type_size_t+set}" = set; then
  5722. echo $ECHO_N "(cached) $ECHO_C" >&6
  5723. else
  5724. cat >conftest.$ac_ext <<_ACEOF
  5725. /* confdefs.h. */
  5726. _ACEOF
  5727. cat confdefs.h >>conftest.$ac_ext
  5728. cat >>conftest.$ac_ext <<_ACEOF
  5729. /* end confdefs.h. */
  5730. $ac_includes_default
  5731. int
  5732. main ()
  5733. {
  5734. if ((size_t *) 0)
  5735. return 0;
  5736. if (sizeof (size_t))
  5737. return 0;
  5738. ;
  5739. return 0;
  5740. }
  5741. _ACEOF
  5742. rm -f conftest.$ac_objext
  5743. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5744. (eval $ac_compile) 2>conftest.er1
  5745. ac_status=$?
  5746. grep -v '^ *+' conftest.er1 >conftest.err
  5747. rm -f conftest.er1
  5748. cat conftest.err >&5
  5749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5750. (exit $ac_status); } &&
  5751. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5753. (eval $ac_try) 2>&5
  5754. ac_status=$?
  5755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5756. (exit $ac_status); }; } &&
  5757. { ac_try='test -s conftest.$ac_objext'
  5758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5759. (eval $ac_try) 2>&5
  5760. ac_status=$?
  5761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5762. (exit $ac_status); }; }; then
  5763. ac_cv_type_size_t=yes
  5764. else
  5765. echo "$as_me: failed program was:" >&5
  5766. sed 's/^/| /' conftest.$ac_ext >&5
  5767. ac_cv_type_size_t=no
  5768. fi
  5769. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5770. fi
  5771. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5772. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5773. if test $ac_cv_type_size_t = yes; then
  5774. :
  5775. else
  5776. cat >>confdefs.h <<_ACEOF
  5777. #define size_t unsigned
  5778. _ACEOF
  5779. fi
  5780. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5781. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5782. if test "${ac_cv_type_uid_t+set}" = set; then
  5783. echo $ECHO_N "(cached) $ECHO_C" >&6
  5784. else
  5785. cat >conftest.$ac_ext <<_ACEOF
  5786. /* confdefs.h. */
  5787. _ACEOF
  5788. cat confdefs.h >>conftest.$ac_ext
  5789. cat >>conftest.$ac_ext <<_ACEOF
  5790. /* end confdefs.h. */
  5791. #include <sys/types.h>
  5792. _ACEOF
  5793. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5794. $EGREP "uid_t" >/dev/null 2>&1; then
  5795. ac_cv_type_uid_t=yes
  5796. else
  5797. ac_cv_type_uid_t=no
  5798. fi
  5799. rm -f conftest*
  5800. fi
  5801. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5802. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5803. if test $ac_cv_type_uid_t = no; then
  5804. cat >>confdefs.h <<\_ACEOF
  5805. #define uid_t int
  5806. _ACEOF
  5807. cat >>confdefs.h <<\_ACEOF
  5808. #define gid_t int
  5809. _ACEOF
  5810. fi
  5811. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5812. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5813. if test "${ac_cv_c_const+set}" = set; then
  5814. echo $ECHO_N "(cached) $ECHO_C" >&6
  5815. else
  5816. cat >conftest.$ac_ext <<_ACEOF
  5817. /* confdefs.h. */
  5818. _ACEOF
  5819. cat confdefs.h >>conftest.$ac_ext
  5820. cat >>conftest.$ac_ext <<_ACEOF
  5821. /* end confdefs.h. */
  5822. int
  5823. main ()
  5824. {
  5825. /* FIXME: Include the comments suggested by Paul. */
  5826. #ifndef __cplusplus
  5827. /* Ultrix mips cc rejects this. */
  5828. typedef int charset[2];
  5829. const charset x;
  5830. /* SunOS 4.1.1 cc rejects this. */
  5831. char const *const *ccp;
  5832. char **p;
  5833. /* NEC SVR4.0.2 mips cc rejects this. */
  5834. struct point {int x, y;};
  5835. static struct point const zero = {0,0};
  5836. /* AIX XL C 1.02.0.0 rejects this.
  5837. It does not let you subtract one const X* pointer from another in
  5838. an arm of an if-expression whose if-part is not a constant
  5839. expression */
  5840. const char *g = "string";
  5841. ccp = &g + (g ? g-g : 0);
  5842. /* HPUX 7.0 cc rejects these. */
  5843. ++ccp;
  5844. p = (char**) ccp;
  5845. ccp = (char const *const *) p;
  5846. { /* SCO 3.2v4 cc rejects this. */
  5847. char *t;
  5848. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5849. *t++ = 0;
  5850. }
  5851. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5852. int x[] = {25, 17};
  5853. const int *foo = &x[0];
  5854. ++foo;
  5855. }
  5856. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5857. typedef const int *iptr;
  5858. iptr p = 0;
  5859. ++p;
  5860. }
  5861. { /* AIX XL C 1.02.0.0 rejects this saying
  5862. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5863. struct s { int j; const int *ap[3]; };
  5864. struct s *b; b->j = 5;
  5865. }
  5866. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5867. const int foo = 10;
  5868. }
  5869. #endif
  5870. ;
  5871. return 0;
  5872. }
  5873. _ACEOF
  5874. rm -f conftest.$ac_objext
  5875. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5876. (eval $ac_compile) 2>conftest.er1
  5877. ac_status=$?
  5878. grep -v '^ *+' conftest.er1 >conftest.err
  5879. rm -f conftest.er1
  5880. cat conftest.err >&5
  5881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5882. (exit $ac_status); } &&
  5883. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5885. (eval $ac_try) 2>&5
  5886. ac_status=$?
  5887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5888. (exit $ac_status); }; } &&
  5889. { ac_try='test -s conftest.$ac_objext'
  5890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5891. (eval $ac_try) 2>&5
  5892. ac_status=$?
  5893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5894. (exit $ac_status); }; }; then
  5895. ac_cv_c_const=yes
  5896. else
  5897. echo "$as_me: failed program was:" >&5
  5898. sed 's/^/| /' conftest.$ac_ext >&5
  5899. ac_cv_c_const=no
  5900. fi
  5901. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5902. fi
  5903. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5904. echo "${ECHO_T}$ac_cv_c_const" >&6
  5905. if test $ac_cv_c_const = no; then
  5906. cat >>confdefs.h <<\_ACEOF
  5907. #define const
  5908. _ACEOF
  5909. fi
  5910. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5911. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5912. if test "${ac_cv_c_bigendian+set}" = set; then
  5913. echo $ECHO_N "(cached) $ECHO_C" >&6
  5914. else
  5915. # See if sys/param.h defines the BYTE_ORDER macro.
  5916. cat >conftest.$ac_ext <<_ACEOF
  5917. /* confdefs.h. */
  5918. _ACEOF
  5919. cat confdefs.h >>conftest.$ac_ext
  5920. cat >>conftest.$ac_ext <<_ACEOF
  5921. /* end confdefs.h. */
  5922. #include <sys/types.h>
  5923. #include <sys/param.h>
  5924. int
  5925. main ()
  5926. {
  5927. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5928. bogus endian macros
  5929. #endif
  5930. ;
  5931. return 0;
  5932. }
  5933. _ACEOF
  5934. rm -f conftest.$ac_objext
  5935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5936. (eval $ac_compile) 2>conftest.er1
  5937. ac_status=$?
  5938. grep -v '^ *+' conftest.er1 >conftest.err
  5939. rm -f conftest.er1
  5940. cat conftest.err >&5
  5941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5942. (exit $ac_status); } &&
  5943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5945. (eval $ac_try) 2>&5
  5946. ac_status=$?
  5947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5948. (exit $ac_status); }; } &&
  5949. { ac_try='test -s conftest.$ac_objext'
  5950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5951. (eval $ac_try) 2>&5
  5952. ac_status=$?
  5953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5954. (exit $ac_status); }; }; then
  5955. # It does; now see whether it defined to BIG_ENDIAN or not.
  5956. cat >conftest.$ac_ext <<_ACEOF
  5957. /* confdefs.h. */
  5958. _ACEOF
  5959. cat confdefs.h >>conftest.$ac_ext
  5960. cat >>conftest.$ac_ext <<_ACEOF
  5961. /* end confdefs.h. */
  5962. #include <sys/types.h>
  5963. #include <sys/param.h>
  5964. int
  5965. main ()
  5966. {
  5967. #if BYTE_ORDER != BIG_ENDIAN
  5968. not big endian
  5969. #endif
  5970. ;
  5971. return 0;
  5972. }
  5973. _ACEOF
  5974. rm -f conftest.$ac_objext
  5975. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5976. (eval $ac_compile) 2>conftest.er1
  5977. ac_status=$?
  5978. grep -v '^ *+' conftest.er1 >conftest.err
  5979. rm -f conftest.er1
  5980. cat conftest.err >&5
  5981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5982. (exit $ac_status); } &&
  5983. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5985. (eval $ac_try) 2>&5
  5986. ac_status=$?
  5987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5988. (exit $ac_status); }; } &&
  5989. { ac_try='test -s conftest.$ac_objext'
  5990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5991. (eval $ac_try) 2>&5
  5992. ac_status=$?
  5993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5994. (exit $ac_status); }; }; then
  5995. ac_cv_c_bigendian=yes
  5996. else
  5997. echo "$as_me: failed program was:" >&5
  5998. sed 's/^/| /' conftest.$ac_ext >&5
  5999. ac_cv_c_bigendian=no
  6000. fi
  6001. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6002. else
  6003. echo "$as_me: failed program was:" >&5
  6004. sed 's/^/| /' conftest.$ac_ext >&5
  6005. # It does not; compile a test program.
  6006. if test "$cross_compiling" = yes; then
  6007. # try to guess the endianness by grepping values into an object file
  6008. ac_cv_c_bigendian=unknown
  6009. cat >conftest.$ac_ext <<_ACEOF
  6010. /* confdefs.h. */
  6011. _ACEOF
  6012. cat confdefs.h >>conftest.$ac_ext
  6013. cat >>conftest.$ac_ext <<_ACEOF
  6014. /* end confdefs.h. */
  6015. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6016. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6017. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6018. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6019. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6020. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6021. int
  6022. main ()
  6023. {
  6024. _ascii (); _ebcdic ();
  6025. ;
  6026. return 0;
  6027. }
  6028. _ACEOF
  6029. rm -f conftest.$ac_objext
  6030. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6031. (eval $ac_compile) 2>conftest.er1
  6032. ac_status=$?
  6033. grep -v '^ *+' conftest.er1 >conftest.err
  6034. rm -f conftest.er1
  6035. cat conftest.err >&5
  6036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6037. (exit $ac_status); } &&
  6038. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6040. (eval $ac_try) 2>&5
  6041. ac_status=$?
  6042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6043. (exit $ac_status); }; } &&
  6044. { ac_try='test -s conftest.$ac_objext'
  6045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6046. (eval $ac_try) 2>&5
  6047. ac_status=$?
  6048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6049. (exit $ac_status); }; }; then
  6050. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6051. ac_cv_c_bigendian=yes
  6052. fi
  6053. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6054. if test "$ac_cv_c_bigendian" = unknown; then
  6055. ac_cv_c_bigendian=no
  6056. else
  6057. # finding both strings is unlikely to happen, but who knows?
  6058. ac_cv_c_bigendian=unknown
  6059. fi
  6060. fi
  6061. else
  6062. echo "$as_me: failed program was:" >&5
  6063. sed 's/^/| /' conftest.$ac_ext >&5
  6064. fi
  6065. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6066. else
  6067. cat >conftest.$ac_ext <<_ACEOF
  6068. /* confdefs.h. */
  6069. _ACEOF
  6070. cat confdefs.h >>conftest.$ac_ext
  6071. cat >>conftest.$ac_ext <<_ACEOF
  6072. /* end confdefs.h. */
  6073. int
  6074. main ()
  6075. {
  6076. /* Are we little or big endian? From Harbison&Steele. */
  6077. union
  6078. {
  6079. long l;
  6080. char c[sizeof (long)];
  6081. } u;
  6082. u.l = 1;
  6083. exit (u.c[sizeof (long) - 1] == 1);
  6084. }
  6085. _ACEOF
  6086. rm -f conftest$ac_exeext
  6087. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6088. (eval $ac_link) 2>&5
  6089. ac_status=$?
  6090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6091. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6093. (eval $ac_try) 2>&5
  6094. ac_status=$?
  6095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6096. (exit $ac_status); }; }; then
  6097. ac_cv_c_bigendian=no
  6098. else
  6099. echo "$as_me: program exited with status $ac_status" >&5
  6100. echo "$as_me: failed program was:" >&5
  6101. sed 's/^/| /' conftest.$ac_ext >&5
  6102. ( exit $ac_status )
  6103. ac_cv_c_bigendian=yes
  6104. fi
  6105. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6106. fi
  6107. fi
  6108. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6109. fi
  6110. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6111. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6112. case $ac_cv_c_bigendian in
  6113. yes)
  6114. cat >>confdefs.h <<\_ACEOF
  6115. #define WORDS_BIGENDIAN 1
  6116. _ACEOF
  6117. ;;
  6118. no)
  6119. ;;
  6120. *)
  6121. { { echo "$as_me:$LINENO: error: unknown endianness
  6122. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6123. echo "$as_me: error: unknown endianness
  6124. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6125. { (exit 1); exit 1; }; } ;;
  6126. esac
  6127. echo "$as_me:$LINENO: checking for inline" >&5
  6128. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6129. if test "${ac_cv_c_inline+set}" = set; then
  6130. echo $ECHO_N "(cached) $ECHO_C" >&6
  6131. else
  6132. ac_cv_c_inline=no
  6133. for ac_kw in inline __inline__ __inline; do
  6134. cat >conftest.$ac_ext <<_ACEOF
  6135. /* confdefs.h. */
  6136. _ACEOF
  6137. cat confdefs.h >>conftest.$ac_ext
  6138. cat >>conftest.$ac_ext <<_ACEOF
  6139. /* end confdefs.h. */
  6140. #ifndef __cplusplus
  6141. typedef int foo_t;
  6142. static $ac_kw foo_t static_foo () {return 0; }
  6143. $ac_kw foo_t foo () {return 0; }
  6144. #endif
  6145. _ACEOF
  6146. rm -f conftest.$ac_objext
  6147. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6148. (eval $ac_compile) 2>conftest.er1
  6149. ac_status=$?
  6150. grep -v '^ *+' conftest.er1 >conftest.err
  6151. rm -f conftest.er1
  6152. cat conftest.err >&5
  6153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6154. (exit $ac_status); } &&
  6155. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6157. (eval $ac_try) 2>&5
  6158. ac_status=$?
  6159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6160. (exit $ac_status); }; } &&
  6161. { ac_try='test -s conftest.$ac_objext'
  6162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6163. (eval $ac_try) 2>&5
  6164. ac_status=$?
  6165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6166. (exit $ac_status); }; }; then
  6167. ac_cv_c_inline=$ac_kw; break
  6168. else
  6169. echo "$as_me: failed program was:" >&5
  6170. sed 's/^/| /' conftest.$ac_ext >&5
  6171. fi
  6172. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6173. done
  6174. fi
  6175. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6176. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6177. case $ac_cv_c_inline in
  6178. inline | yes) ;;
  6179. *)
  6180. case $ac_cv_c_inline in
  6181. no) ac_val=;;
  6182. *) ac_val=$ac_cv_c_inline;;
  6183. esac
  6184. cat >>confdefs.h <<_ACEOF
  6185. #ifndef __cplusplus
  6186. #define inline $ac_val
  6187. #endif
  6188. _ACEOF
  6189. ;;
  6190. esac
  6191. echo "$as_me:$LINENO: checking for long" >&5
  6192. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6193. if test "${ac_cv_type_long+set}" = set; then
  6194. echo $ECHO_N "(cached) $ECHO_C" >&6
  6195. else
  6196. cat >conftest.$ac_ext <<_ACEOF
  6197. /* confdefs.h. */
  6198. _ACEOF
  6199. cat confdefs.h >>conftest.$ac_ext
  6200. cat >>conftest.$ac_ext <<_ACEOF
  6201. /* end confdefs.h. */
  6202. $ac_includes_default
  6203. int
  6204. main ()
  6205. {
  6206. if ((long *) 0)
  6207. return 0;
  6208. if (sizeof (long))
  6209. return 0;
  6210. ;
  6211. return 0;
  6212. }
  6213. _ACEOF
  6214. rm -f conftest.$ac_objext
  6215. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6216. (eval $ac_compile) 2>conftest.er1
  6217. ac_status=$?
  6218. grep -v '^ *+' conftest.er1 >conftest.err
  6219. rm -f conftest.er1
  6220. cat conftest.err >&5
  6221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6222. (exit $ac_status); } &&
  6223. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6225. (eval $ac_try) 2>&5
  6226. ac_status=$?
  6227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6228. (exit $ac_status); }; } &&
  6229. { ac_try='test -s conftest.$ac_objext'
  6230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6231. (eval $ac_try) 2>&5
  6232. ac_status=$?
  6233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6234. (exit $ac_status); }; }; then
  6235. ac_cv_type_long=yes
  6236. else
  6237. echo "$as_me: failed program was:" >&5
  6238. sed 's/^/| /' conftest.$ac_ext >&5
  6239. ac_cv_type_long=no
  6240. fi
  6241. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6242. fi
  6243. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6244. echo "${ECHO_T}$ac_cv_type_long" >&6
  6245. echo "$as_me:$LINENO: checking size of long" >&5
  6246. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6247. if test "${ac_cv_sizeof_long+set}" = set; then
  6248. echo $ECHO_N "(cached) $ECHO_C" >&6
  6249. else
  6250. if test "$ac_cv_type_long" = yes; then
  6251. # The cast to unsigned long works around a bug in the HP C Compiler
  6252. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6253. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6254. # This bug is HP SR number 8606223364.
  6255. if test "$cross_compiling" = yes; then
  6256. # Depending upon the size, compute the lo and hi bounds.
  6257. cat >conftest.$ac_ext <<_ACEOF
  6258. /* confdefs.h. */
  6259. _ACEOF
  6260. cat confdefs.h >>conftest.$ac_ext
  6261. cat >>conftest.$ac_ext <<_ACEOF
  6262. /* end confdefs.h. */
  6263. $ac_includes_default
  6264. int
  6265. main ()
  6266. {
  6267. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6268. test_array [0] = 0
  6269. ;
  6270. return 0;
  6271. }
  6272. _ACEOF
  6273. rm -f conftest.$ac_objext
  6274. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6275. (eval $ac_compile) 2>conftest.er1
  6276. ac_status=$?
  6277. grep -v '^ *+' conftest.er1 >conftest.err
  6278. rm -f conftest.er1
  6279. cat conftest.err >&5
  6280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6281. (exit $ac_status); } &&
  6282. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6284. (eval $ac_try) 2>&5
  6285. ac_status=$?
  6286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6287. (exit $ac_status); }; } &&
  6288. { ac_try='test -s conftest.$ac_objext'
  6289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6290. (eval $ac_try) 2>&5
  6291. ac_status=$?
  6292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6293. (exit $ac_status); }; }; then
  6294. ac_lo=0 ac_mid=0
  6295. while :; do
  6296. cat >conftest.$ac_ext <<_ACEOF
  6297. /* confdefs.h. */
  6298. _ACEOF
  6299. cat confdefs.h >>conftest.$ac_ext
  6300. cat >>conftest.$ac_ext <<_ACEOF
  6301. /* end confdefs.h. */
  6302. $ac_includes_default
  6303. int
  6304. main ()
  6305. {
  6306. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6307. test_array [0] = 0
  6308. ;
  6309. return 0;
  6310. }
  6311. _ACEOF
  6312. rm -f conftest.$ac_objext
  6313. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6314. (eval $ac_compile) 2>conftest.er1
  6315. ac_status=$?
  6316. grep -v '^ *+' conftest.er1 >conftest.err
  6317. rm -f conftest.er1
  6318. cat conftest.err >&5
  6319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6320. (exit $ac_status); } &&
  6321. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6323. (eval $ac_try) 2>&5
  6324. ac_status=$?
  6325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6326. (exit $ac_status); }; } &&
  6327. { ac_try='test -s conftest.$ac_objext'
  6328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6329. (eval $ac_try) 2>&5
  6330. ac_status=$?
  6331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6332. (exit $ac_status); }; }; then
  6333. ac_hi=$ac_mid; break
  6334. else
  6335. echo "$as_me: failed program was:" >&5
  6336. sed 's/^/| /' conftest.$ac_ext >&5
  6337. ac_lo=`expr $ac_mid + 1`
  6338. if test $ac_lo -le $ac_mid; then
  6339. ac_lo= ac_hi=
  6340. break
  6341. fi
  6342. ac_mid=`expr 2 '*' $ac_mid + 1`
  6343. fi
  6344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6345. done
  6346. else
  6347. echo "$as_me: failed program was:" >&5
  6348. sed 's/^/| /' conftest.$ac_ext >&5
  6349. cat >conftest.$ac_ext <<_ACEOF
  6350. /* confdefs.h. */
  6351. _ACEOF
  6352. cat confdefs.h >>conftest.$ac_ext
  6353. cat >>conftest.$ac_ext <<_ACEOF
  6354. /* end confdefs.h. */
  6355. $ac_includes_default
  6356. int
  6357. main ()
  6358. {
  6359. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6360. test_array [0] = 0
  6361. ;
  6362. return 0;
  6363. }
  6364. _ACEOF
  6365. rm -f conftest.$ac_objext
  6366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6367. (eval $ac_compile) 2>conftest.er1
  6368. ac_status=$?
  6369. grep -v '^ *+' conftest.er1 >conftest.err
  6370. rm -f conftest.er1
  6371. cat conftest.err >&5
  6372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6373. (exit $ac_status); } &&
  6374. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6376. (eval $ac_try) 2>&5
  6377. ac_status=$?
  6378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6379. (exit $ac_status); }; } &&
  6380. { ac_try='test -s conftest.$ac_objext'
  6381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6382. (eval $ac_try) 2>&5
  6383. ac_status=$?
  6384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6385. (exit $ac_status); }; }; then
  6386. ac_hi=-1 ac_mid=-1
  6387. while :; do
  6388. cat >conftest.$ac_ext <<_ACEOF
  6389. /* confdefs.h. */
  6390. _ACEOF
  6391. cat confdefs.h >>conftest.$ac_ext
  6392. cat >>conftest.$ac_ext <<_ACEOF
  6393. /* end confdefs.h. */
  6394. $ac_includes_default
  6395. int
  6396. main ()
  6397. {
  6398. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6399. test_array [0] = 0
  6400. ;
  6401. return 0;
  6402. }
  6403. _ACEOF
  6404. rm -f conftest.$ac_objext
  6405. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6406. (eval $ac_compile) 2>conftest.er1
  6407. ac_status=$?
  6408. grep -v '^ *+' conftest.er1 >conftest.err
  6409. rm -f conftest.er1
  6410. cat conftest.err >&5
  6411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6412. (exit $ac_status); } &&
  6413. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6415. (eval $ac_try) 2>&5
  6416. ac_status=$?
  6417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6418. (exit $ac_status); }; } &&
  6419. { ac_try='test -s conftest.$ac_objext'
  6420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6421. (eval $ac_try) 2>&5
  6422. ac_status=$?
  6423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6424. (exit $ac_status); }; }; then
  6425. ac_lo=$ac_mid; break
  6426. else
  6427. echo "$as_me: failed program was:" >&5
  6428. sed 's/^/| /' conftest.$ac_ext >&5
  6429. ac_hi=`expr '(' $ac_mid ')' - 1`
  6430. if test $ac_mid -le $ac_hi; then
  6431. ac_lo= ac_hi=
  6432. break
  6433. fi
  6434. ac_mid=`expr 2 '*' $ac_mid`
  6435. fi
  6436. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6437. done
  6438. else
  6439. echo "$as_me: failed program was:" >&5
  6440. sed 's/^/| /' conftest.$ac_ext >&5
  6441. ac_lo= ac_hi=
  6442. fi
  6443. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6444. fi
  6445. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6446. # Binary search between lo and hi bounds.
  6447. while test "x$ac_lo" != "x$ac_hi"; do
  6448. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6449. cat >conftest.$ac_ext <<_ACEOF
  6450. /* confdefs.h. */
  6451. _ACEOF
  6452. cat confdefs.h >>conftest.$ac_ext
  6453. cat >>conftest.$ac_ext <<_ACEOF
  6454. /* end confdefs.h. */
  6455. $ac_includes_default
  6456. int
  6457. main ()
  6458. {
  6459. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6460. test_array [0] = 0
  6461. ;
  6462. return 0;
  6463. }
  6464. _ACEOF
  6465. rm -f conftest.$ac_objext
  6466. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6467. (eval $ac_compile) 2>conftest.er1
  6468. ac_status=$?
  6469. grep -v '^ *+' conftest.er1 >conftest.err
  6470. rm -f conftest.er1
  6471. cat conftest.err >&5
  6472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6473. (exit $ac_status); } &&
  6474. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6476. (eval $ac_try) 2>&5
  6477. ac_status=$?
  6478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6479. (exit $ac_status); }; } &&
  6480. { ac_try='test -s conftest.$ac_objext'
  6481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6482. (eval $ac_try) 2>&5
  6483. ac_status=$?
  6484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6485. (exit $ac_status); }; }; then
  6486. ac_hi=$ac_mid
  6487. else
  6488. echo "$as_me: failed program was:" >&5
  6489. sed 's/^/| /' conftest.$ac_ext >&5
  6490. ac_lo=`expr '(' $ac_mid ')' + 1`
  6491. fi
  6492. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6493. done
  6494. case $ac_lo in
  6495. ?*) ac_cv_sizeof_long=$ac_lo;;
  6496. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6497. See \`config.log' for more details." >&5
  6498. echo "$as_me: error: cannot compute sizeof (long), 77
  6499. See \`config.log' for more details." >&2;}
  6500. { (exit 1); exit 1; }; } ;;
  6501. esac
  6502. else
  6503. if test "$cross_compiling" = yes; then
  6504. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6505. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6506. { (exit 1); exit 1; }; }
  6507. else
  6508. cat >conftest.$ac_ext <<_ACEOF
  6509. /* confdefs.h. */
  6510. _ACEOF
  6511. cat confdefs.h >>conftest.$ac_ext
  6512. cat >>conftest.$ac_ext <<_ACEOF
  6513. /* end confdefs.h. */
  6514. $ac_includes_default
  6515. long longval () { return (long) (sizeof (long)); }
  6516. unsigned long ulongval () { return (long) (sizeof (long)); }
  6517. #include <stdio.h>
  6518. #include <stdlib.h>
  6519. int
  6520. main ()
  6521. {
  6522. FILE *f = fopen ("conftest.val", "w");
  6523. if (! f)
  6524. exit (1);
  6525. if (((long) (sizeof (long))) < 0)
  6526. {
  6527. long i = longval ();
  6528. if (i != ((long) (sizeof (long))))
  6529. exit (1);
  6530. fprintf (f, "%ld\n", i);
  6531. }
  6532. else
  6533. {
  6534. unsigned long i = ulongval ();
  6535. if (i != ((long) (sizeof (long))))
  6536. exit (1);
  6537. fprintf (f, "%lu\n", i);
  6538. }
  6539. exit (ferror (f) || fclose (f) != 0);
  6540. ;
  6541. return 0;
  6542. }
  6543. _ACEOF
  6544. rm -f conftest$ac_exeext
  6545. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6546. (eval $ac_link) 2>&5
  6547. ac_status=$?
  6548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6549. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6551. (eval $ac_try) 2>&5
  6552. ac_status=$?
  6553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6554. (exit $ac_status); }; }; then
  6555. ac_cv_sizeof_long=`cat conftest.val`
  6556. else
  6557. echo "$as_me: program exited with status $ac_status" >&5
  6558. echo "$as_me: failed program was:" >&5
  6559. sed 's/^/| /' conftest.$ac_ext >&5
  6560. ( exit $ac_status )
  6561. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6562. See \`config.log' for more details." >&5
  6563. echo "$as_me: error: cannot compute sizeof (long), 77
  6564. See \`config.log' for more details." >&2;}
  6565. { (exit 1); exit 1; }; }
  6566. fi
  6567. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6568. fi
  6569. fi
  6570. rm -f conftest.val
  6571. else
  6572. ac_cv_sizeof_long=0
  6573. fi
  6574. fi
  6575. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6576. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6577. cat >>confdefs.h <<_ACEOF
  6578. #define SIZEOF_LONG $ac_cv_sizeof_long
  6579. _ACEOF
  6580. echo "$as_me:$LINENO: checking for int" >&5
  6581. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6582. if test "${ac_cv_type_int+set}" = set; then
  6583. echo $ECHO_N "(cached) $ECHO_C" >&6
  6584. else
  6585. cat >conftest.$ac_ext <<_ACEOF
  6586. /* confdefs.h. */
  6587. _ACEOF
  6588. cat confdefs.h >>conftest.$ac_ext
  6589. cat >>conftest.$ac_ext <<_ACEOF
  6590. /* end confdefs.h. */
  6591. $ac_includes_default
  6592. int
  6593. main ()
  6594. {
  6595. if ((int *) 0)
  6596. return 0;
  6597. if (sizeof (int))
  6598. return 0;
  6599. ;
  6600. return 0;
  6601. }
  6602. _ACEOF
  6603. rm -f conftest.$ac_objext
  6604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6605. (eval $ac_compile) 2>conftest.er1
  6606. ac_status=$?
  6607. grep -v '^ *+' conftest.er1 >conftest.err
  6608. rm -f conftest.er1
  6609. cat conftest.err >&5
  6610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6611. (exit $ac_status); } &&
  6612. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6614. (eval $ac_try) 2>&5
  6615. ac_status=$?
  6616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6617. (exit $ac_status); }; } &&
  6618. { ac_try='test -s conftest.$ac_objext'
  6619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6620. (eval $ac_try) 2>&5
  6621. ac_status=$?
  6622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6623. (exit $ac_status); }; }; then
  6624. ac_cv_type_int=yes
  6625. else
  6626. echo "$as_me: failed program was:" >&5
  6627. sed 's/^/| /' conftest.$ac_ext >&5
  6628. ac_cv_type_int=no
  6629. fi
  6630. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6631. fi
  6632. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6633. echo "${ECHO_T}$ac_cv_type_int" >&6
  6634. echo "$as_me:$LINENO: checking size of int" >&5
  6635. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6636. if test "${ac_cv_sizeof_int+set}" = set; then
  6637. echo $ECHO_N "(cached) $ECHO_C" >&6
  6638. else
  6639. if test "$ac_cv_type_int" = yes; then
  6640. # The cast to unsigned long works around a bug in the HP C Compiler
  6641. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6642. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6643. # This bug is HP SR number 8606223364.
  6644. if test "$cross_compiling" = yes; then
  6645. # Depending upon the size, compute the lo and hi bounds.
  6646. cat >conftest.$ac_ext <<_ACEOF
  6647. /* confdefs.h. */
  6648. _ACEOF
  6649. cat confdefs.h >>conftest.$ac_ext
  6650. cat >>conftest.$ac_ext <<_ACEOF
  6651. /* end confdefs.h. */
  6652. $ac_includes_default
  6653. int
  6654. main ()
  6655. {
  6656. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6657. test_array [0] = 0
  6658. ;
  6659. return 0;
  6660. }
  6661. _ACEOF
  6662. rm -f conftest.$ac_objext
  6663. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6664. (eval $ac_compile) 2>conftest.er1
  6665. ac_status=$?
  6666. grep -v '^ *+' conftest.er1 >conftest.err
  6667. rm -f conftest.er1
  6668. cat conftest.err >&5
  6669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6670. (exit $ac_status); } &&
  6671. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6673. (eval $ac_try) 2>&5
  6674. ac_status=$?
  6675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6676. (exit $ac_status); }; } &&
  6677. { ac_try='test -s conftest.$ac_objext'
  6678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6679. (eval $ac_try) 2>&5
  6680. ac_status=$?
  6681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6682. (exit $ac_status); }; }; then
  6683. ac_lo=0 ac_mid=0
  6684. while :; do
  6685. cat >conftest.$ac_ext <<_ACEOF
  6686. /* confdefs.h. */
  6687. _ACEOF
  6688. cat confdefs.h >>conftest.$ac_ext
  6689. cat >>conftest.$ac_ext <<_ACEOF
  6690. /* end confdefs.h. */
  6691. $ac_includes_default
  6692. int
  6693. main ()
  6694. {
  6695. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6696. test_array [0] = 0
  6697. ;
  6698. return 0;
  6699. }
  6700. _ACEOF
  6701. rm -f conftest.$ac_objext
  6702. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6703. (eval $ac_compile) 2>conftest.er1
  6704. ac_status=$?
  6705. grep -v '^ *+' conftest.er1 >conftest.err
  6706. rm -f conftest.er1
  6707. cat conftest.err >&5
  6708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6709. (exit $ac_status); } &&
  6710. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6712. (eval $ac_try) 2>&5
  6713. ac_status=$?
  6714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6715. (exit $ac_status); }; } &&
  6716. { ac_try='test -s conftest.$ac_objext'
  6717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6718. (eval $ac_try) 2>&5
  6719. ac_status=$?
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. (exit $ac_status); }; }; then
  6722. ac_hi=$ac_mid; break
  6723. else
  6724. echo "$as_me: failed program was:" >&5
  6725. sed 's/^/| /' conftest.$ac_ext >&5
  6726. ac_lo=`expr $ac_mid + 1`
  6727. if test $ac_lo -le $ac_mid; then
  6728. ac_lo= ac_hi=
  6729. break
  6730. fi
  6731. ac_mid=`expr 2 '*' $ac_mid + 1`
  6732. fi
  6733. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6734. done
  6735. else
  6736. echo "$as_me: failed program was:" >&5
  6737. sed 's/^/| /' conftest.$ac_ext >&5
  6738. cat >conftest.$ac_ext <<_ACEOF
  6739. /* confdefs.h. */
  6740. _ACEOF
  6741. cat confdefs.h >>conftest.$ac_ext
  6742. cat >>conftest.$ac_ext <<_ACEOF
  6743. /* end confdefs.h. */
  6744. $ac_includes_default
  6745. int
  6746. main ()
  6747. {
  6748. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6749. test_array [0] = 0
  6750. ;
  6751. return 0;
  6752. }
  6753. _ACEOF
  6754. rm -f conftest.$ac_objext
  6755. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6756. (eval $ac_compile) 2>conftest.er1
  6757. ac_status=$?
  6758. grep -v '^ *+' conftest.er1 >conftest.err
  6759. rm -f conftest.er1
  6760. cat conftest.err >&5
  6761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6762. (exit $ac_status); } &&
  6763. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6765. (eval $ac_try) 2>&5
  6766. ac_status=$?
  6767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6768. (exit $ac_status); }; } &&
  6769. { ac_try='test -s conftest.$ac_objext'
  6770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6771. (eval $ac_try) 2>&5
  6772. ac_status=$?
  6773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6774. (exit $ac_status); }; }; then
  6775. ac_hi=-1 ac_mid=-1
  6776. while :; do
  6777. cat >conftest.$ac_ext <<_ACEOF
  6778. /* confdefs.h. */
  6779. _ACEOF
  6780. cat confdefs.h >>conftest.$ac_ext
  6781. cat >>conftest.$ac_ext <<_ACEOF
  6782. /* end confdefs.h. */
  6783. $ac_includes_default
  6784. int
  6785. main ()
  6786. {
  6787. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6788. test_array [0] = 0
  6789. ;
  6790. return 0;
  6791. }
  6792. _ACEOF
  6793. rm -f conftest.$ac_objext
  6794. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6795. (eval $ac_compile) 2>conftest.er1
  6796. ac_status=$?
  6797. grep -v '^ *+' conftest.er1 >conftest.err
  6798. rm -f conftest.er1
  6799. cat conftest.err >&5
  6800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6801. (exit $ac_status); } &&
  6802. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6804. (eval $ac_try) 2>&5
  6805. ac_status=$?
  6806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6807. (exit $ac_status); }; } &&
  6808. { ac_try='test -s conftest.$ac_objext'
  6809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6810. (eval $ac_try) 2>&5
  6811. ac_status=$?
  6812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6813. (exit $ac_status); }; }; then
  6814. ac_lo=$ac_mid; break
  6815. else
  6816. echo "$as_me: failed program was:" >&5
  6817. sed 's/^/| /' conftest.$ac_ext >&5
  6818. ac_hi=`expr '(' $ac_mid ')' - 1`
  6819. if test $ac_mid -le $ac_hi; then
  6820. ac_lo= ac_hi=
  6821. break
  6822. fi
  6823. ac_mid=`expr 2 '*' $ac_mid`
  6824. fi
  6825. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6826. done
  6827. else
  6828. echo "$as_me: failed program was:" >&5
  6829. sed 's/^/| /' conftest.$ac_ext >&5
  6830. ac_lo= ac_hi=
  6831. fi
  6832. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6833. fi
  6834. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6835. # Binary search between lo and hi bounds.
  6836. while test "x$ac_lo" != "x$ac_hi"; do
  6837. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6838. cat >conftest.$ac_ext <<_ACEOF
  6839. /* confdefs.h. */
  6840. _ACEOF
  6841. cat confdefs.h >>conftest.$ac_ext
  6842. cat >>conftest.$ac_ext <<_ACEOF
  6843. /* end confdefs.h. */
  6844. $ac_includes_default
  6845. int
  6846. main ()
  6847. {
  6848. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6849. test_array [0] = 0
  6850. ;
  6851. return 0;
  6852. }
  6853. _ACEOF
  6854. rm -f conftest.$ac_objext
  6855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6856. (eval $ac_compile) 2>conftest.er1
  6857. ac_status=$?
  6858. grep -v '^ *+' conftest.er1 >conftest.err
  6859. rm -f conftest.er1
  6860. cat conftest.err >&5
  6861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6862. (exit $ac_status); } &&
  6863. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6865. (eval $ac_try) 2>&5
  6866. ac_status=$?
  6867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6868. (exit $ac_status); }; } &&
  6869. { ac_try='test -s conftest.$ac_objext'
  6870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6871. (eval $ac_try) 2>&5
  6872. ac_status=$?
  6873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6874. (exit $ac_status); }; }; then
  6875. ac_hi=$ac_mid
  6876. else
  6877. echo "$as_me: failed program was:" >&5
  6878. sed 's/^/| /' conftest.$ac_ext >&5
  6879. ac_lo=`expr '(' $ac_mid ')' + 1`
  6880. fi
  6881. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6882. done
  6883. case $ac_lo in
  6884. ?*) ac_cv_sizeof_int=$ac_lo;;
  6885. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6886. See \`config.log' for more details." >&5
  6887. echo "$as_me: error: cannot compute sizeof (int), 77
  6888. See \`config.log' for more details." >&2;}
  6889. { (exit 1); exit 1; }; } ;;
  6890. esac
  6891. else
  6892. if test "$cross_compiling" = yes; then
  6893. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6894. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6895. { (exit 1); exit 1; }; }
  6896. else
  6897. cat >conftest.$ac_ext <<_ACEOF
  6898. /* confdefs.h. */
  6899. _ACEOF
  6900. cat confdefs.h >>conftest.$ac_ext
  6901. cat >>conftest.$ac_ext <<_ACEOF
  6902. /* end confdefs.h. */
  6903. $ac_includes_default
  6904. long longval () { return (long) (sizeof (int)); }
  6905. unsigned long ulongval () { return (long) (sizeof (int)); }
  6906. #include <stdio.h>
  6907. #include <stdlib.h>
  6908. int
  6909. main ()
  6910. {
  6911. FILE *f = fopen ("conftest.val", "w");
  6912. if (! f)
  6913. exit (1);
  6914. if (((long) (sizeof (int))) < 0)
  6915. {
  6916. long i = longval ();
  6917. if (i != ((long) (sizeof (int))))
  6918. exit (1);
  6919. fprintf (f, "%ld\n", i);
  6920. }
  6921. else
  6922. {
  6923. unsigned long i = ulongval ();
  6924. if (i != ((long) (sizeof (int))))
  6925. exit (1);
  6926. fprintf (f, "%lu\n", i);
  6927. }
  6928. exit (ferror (f) || fclose (f) != 0);
  6929. ;
  6930. return 0;
  6931. }
  6932. _ACEOF
  6933. rm -f conftest$ac_exeext
  6934. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6935. (eval $ac_link) 2>&5
  6936. ac_status=$?
  6937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6938. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6940. (eval $ac_try) 2>&5
  6941. ac_status=$?
  6942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6943. (exit $ac_status); }; }; then
  6944. ac_cv_sizeof_int=`cat conftest.val`
  6945. else
  6946. echo "$as_me: program exited with status $ac_status" >&5
  6947. echo "$as_me: failed program was:" >&5
  6948. sed 's/^/| /' conftest.$ac_ext >&5
  6949. ( exit $ac_status )
  6950. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6951. See \`config.log' for more details." >&5
  6952. echo "$as_me: error: cannot compute sizeof (int), 77
  6953. See \`config.log' for more details." >&2;}
  6954. { (exit 1); exit 1; }; }
  6955. fi
  6956. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6957. fi
  6958. fi
  6959. rm -f conftest.val
  6960. else
  6961. ac_cv_sizeof_int=0
  6962. fi
  6963. fi
  6964. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6965. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6966. cat >>confdefs.h <<_ACEOF
  6967. #define SIZEOF_INT $ac_cv_sizeof_int
  6968. _ACEOF
  6969. #checkpoint
  6970. cat >confcache <<\_ACEOF
  6971. # This file is a shell script that caches the results of configure
  6972. # tests run on this system so they can be shared between configure
  6973. # scripts and configure runs, see configure's option --config-cache.
  6974. # It is not useful on other systems. If it contains results you don't
  6975. # want to keep, you may remove or edit it.
  6976. #
  6977. # config.status only pays attention to the cache file if you give it
  6978. # the --recheck option to rerun configure.
  6979. #
  6980. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6981. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6982. # following values.
  6983. _ACEOF
  6984. # The following way of writing the cache mishandles newlines in values,
  6985. # but we know of no workaround that is simple, portable, and efficient.
  6986. # So, don't put newlines in cache variables' values.
  6987. # Ultrix sh set writes to stderr and can't be redirected directly,
  6988. # and sets the high bit in the cache file unless we assign to the vars.
  6989. {
  6990. (set) 2>&1 |
  6991. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6992. *ac_space=\ *)
  6993. # `set' does not quote correctly, so add quotes (double-quote
  6994. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6995. sed -n \
  6996. "s/'/'\\\\''/g;
  6997. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6998. ;;
  6999. *)
  7000. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7001. sed -n \
  7002. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7003. ;;
  7004. esac;
  7005. } |
  7006. sed '
  7007. t clear
  7008. : clear
  7009. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7010. t end
  7011. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7012. : end' >>confcache
  7013. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7014. if test -w $cache_file; then
  7015. test "x$cache_file" != "x/dev/null"
  7016. cat confcache >$cache_file
  7017. else
  7018. echo "not updating unwritable cache $cache_file"
  7019. fi
  7020. fi
  7021. rm -f confcache
  7022. echo "$as_me:$LINENO: checking for working volatile" >&5
  7023. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7024. if test "${ac_cv_c_volatile+set}" = set; then
  7025. echo $ECHO_N "(cached) $ECHO_C" >&6
  7026. else
  7027. cat >conftest.$ac_ext <<_ACEOF
  7028. /* confdefs.h. */
  7029. _ACEOF
  7030. cat confdefs.h >>conftest.$ac_ext
  7031. cat >>conftest.$ac_ext <<_ACEOF
  7032. /* end confdefs.h. */
  7033. int
  7034. main ()
  7035. {
  7036. volatile int x;
  7037. int * volatile y;
  7038. ;
  7039. return 0;
  7040. }
  7041. _ACEOF
  7042. rm -f conftest.$ac_objext
  7043. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7044. (eval $ac_compile) 2>conftest.er1
  7045. ac_status=$?
  7046. grep -v '^ *+' conftest.er1 >conftest.err
  7047. rm -f conftest.er1
  7048. cat conftest.err >&5
  7049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7050. (exit $ac_status); } &&
  7051. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7053. (eval $ac_try) 2>&5
  7054. ac_status=$?
  7055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7056. (exit $ac_status); }; } &&
  7057. { ac_try='test -s conftest.$ac_objext'
  7058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7059. (eval $ac_try) 2>&5
  7060. ac_status=$?
  7061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7062. (exit $ac_status); }; }; then
  7063. ac_cv_c_volatile=yes
  7064. else
  7065. echo "$as_me: failed program was:" >&5
  7066. sed 's/^/| /' conftest.$ac_ext >&5
  7067. ac_cv_c_volatile=no
  7068. fi
  7069. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7070. fi
  7071. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7072. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7073. if test $ac_cv_c_volatile = no; then
  7074. cat >>confdefs.h <<\_ACEOF
  7075. #define volatile
  7076. _ACEOF
  7077. fi
  7078. if test $ac_cv_c_compiler_gnu = yes; then
  7079. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7080. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7081. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7082. echo $ECHO_N "(cached) $ECHO_C" >&6
  7083. else
  7084. ac_pattern="Autoconf.*'x'"
  7085. cat >conftest.$ac_ext <<_ACEOF
  7086. /* confdefs.h. */
  7087. _ACEOF
  7088. cat confdefs.h >>conftest.$ac_ext
  7089. cat >>conftest.$ac_ext <<_ACEOF
  7090. /* end confdefs.h. */
  7091. #include <sgtty.h>
  7092. Autoconf TIOCGETP
  7093. _ACEOF
  7094. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7095. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7096. ac_cv_prog_gcc_traditional=yes
  7097. else
  7098. ac_cv_prog_gcc_traditional=no
  7099. fi
  7100. rm -f conftest*
  7101. if test $ac_cv_prog_gcc_traditional = no; then
  7102. cat >conftest.$ac_ext <<_ACEOF
  7103. /* confdefs.h. */
  7104. _ACEOF
  7105. cat confdefs.h >>conftest.$ac_ext
  7106. cat >>conftest.$ac_ext <<_ACEOF
  7107. /* end confdefs.h. */
  7108. #include <termio.h>
  7109. Autoconf TCGETA
  7110. _ACEOF
  7111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7112. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7113. ac_cv_prog_gcc_traditional=yes
  7114. fi
  7115. rm -f conftest*
  7116. fi
  7117. fi
  7118. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7119. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7120. if test $ac_cv_prog_gcc_traditional = yes; then
  7121. CC="$CC -traditional"
  7122. fi
  7123. fi
  7124. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7125. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7126. if test "${ac_cv_struct_tm+set}" = set; then
  7127. echo $ECHO_N "(cached) $ECHO_C" >&6
  7128. else
  7129. cat >conftest.$ac_ext <<_ACEOF
  7130. /* confdefs.h. */
  7131. _ACEOF
  7132. cat confdefs.h >>conftest.$ac_ext
  7133. cat >>conftest.$ac_ext <<_ACEOF
  7134. /* end confdefs.h. */
  7135. #include <sys/types.h>
  7136. #include <time.h>
  7137. int
  7138. main ()
  7139. {
  7140. struct tm *tp; tp->tm_sec;
  7141. ;
  7142. return 0;
  7143. }
  7144. _ACEOF
  7145. rm -f conftest.$ac_objext
  7146. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7147. (eval $ac_compile) 2>conftest.er1
  7148. ac_status=$?
  7149. grep -v '^ *+' conftest.er1 >conftest.err
  7150. rm -f conftest.er1
  7151. cat conftest.err >&5
  7152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7153. (exit $ac_status); } &&
  7154. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7156. (eval $ac_try) 2>&5
  7157. ac_status=$?
  7158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7159. (exit $ac_status); }; } &&
  7160. { ac_try='test -s conftest.$ac_objext'
  7161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7162. (eval $ac_try) 2>&5
  7163. ac_status=$?
  7164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7165. (exit $ac_status); }; }; then
  7166. ac_cv_struct_tm=time.h
  7167. else
  7168. echo "$as_me: failed program was:" >&5
  7169. sed 's/^/| /' conftest.$ac_ext >&5
  7170. ac_cv_struct_tm=sys/time.h
  7171. fi
  7172. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7173. fi
  7174. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7175. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7176. if test $ac_cv_struct_tm = sys/time.h; then
  7177. cat >>confdefs.h <<\_ACEOF
  7178. #define TM_IN_SYS_TIME 1
  7179. _ACEOF
  7180. fi
  7181. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7182. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7183. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7184. echo $ECHO_N "(cached) $ECHO_C" >&6
  7185. else
  7186. cat >conftest.$ac_ext <<_ACEOF
  7187. /* confdefs.h. */
  7188. _ACEOF
  7189. cat confdefs.h >>conftest.$ac_ext
  7190. cat >>conftest.$ac_ext <<_ACEOF
  7191. /* end confdefs.h. */
  7192. #include <sys/types.h>
  7193. #include <$ac_cv_struct_tm>
  7194. int
  7195. main ()
  7196. {
  7197. static struct tm ac_aggr;
  7198. if (ac_aggr.tm_zone)
  7199. return 0;
  7200. ;
  7201. return 0;
  7202. }
  7203. _ACEOF
  7204. rm -f conftest.$ac_objext
  7205. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7206. (eval $ac_compile) 2>conftest.er1
  7207. ac_status=$?
  7208. grep -v '^ *+' conftest.er1 >conftest.err
  7209. rm -f conftest.er1
  7210. cat conftest.err >&5
  7211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7212. (exit $ac_status); } &&
  7213. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7215. (eval $ac_try) 2>&5
  7216. ac_status=$?
  7217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7218. (exit $ac_status); }; } &&
  7219. { ac_try='test -s conftest.$ac_objext'
  7220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7221. (eval $ac_try) 2>&5
  7222. ac_status=$?
  7223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7224. (exit $ac_status); }; }; then
  7225. ac_cv_member_struct_tm_tm_zone=yes
  7226. else
  7227. echo "$as_me: failed program was:" >&5
  7228. sed 's/^/| /' conftest.$ac_ext >&5
  7229. cat >conftest.$ac_ext <<_ACEOF
  7230. /* confdefs.h. */
  7231. _ACEOF
  7232. cat confdefs.h >>conftest.$ac_ext
  7233. cat >>conftest.$ac_ext <<_ACEOF
  7234. /* end confdefs.h. */
  7235. #include <sys/types.h>
  7236. #include <$ac_cv_struct_tm>
  7237. int
  7238. main ()
  7239. {
  7240. static struct tm ac_aggr;
  7241. if (sizeof ac_aggr.tm_zone)
  7242. return 0;
  7243. ;
  7244. return 0;
  7245. }
  7246. _ACEOF
  7247. rm -f conftest.$ac_objext
  7248. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7249. (eval $ac_compile) 2>conftest.er1
  7250. ac_status=$?
  7251. grep -v '^ *+' conftest.er1 >conftest.err
  7252. rm -f conftest.er1
  7253. cat conftest.err >&5
  7254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7255. (exit $ac_status); } &&
  7256. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7258. (eval $ac_try) 2>&5
  7259. ac_status=$?
  7260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7261. (exit $ac_status); }; } &&
  7262. { ac_try='test -s conftest.$ac_objext'
  7263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7264. (eval $ac_try) 2>&5
  7265. ac_status=$?
  7266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7267. (exit $ac_status); }; }; then
  7268. ac_cv_member_struct_tm_tm_zone=yes
  7269. else
  7270. echo "$as_me: failed program was:" >&5
  7271. sed 's/^/| /' conftest.$ac_ext >&5
  7272. ac_cv_member_struct_tm_tm_zone=no
  7273. fi
  7274. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7275. fi
  7276. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7277. fi
  7278. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7279. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7280. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7281. cat >>confdefs.h <<_ACEOF
  7282. #define HAVE_STRUCT_TM_TM_ZONE 1
  7283. _ACEOF
  7284. fi
  7285. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7286. cat >>confdefs.h <<\_ACEOF
  7287. #define HAVE_TM_ZONE 1
  7288. _ACEOF
  7289. else
  7290. echo "$as_me:$LINENO: checking for tzname" >&5
  7291. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7292. if test "${ac_cv_var_tzname+set}" = set; then
  7293. echo $ECHO_N "(cached) $ECHO_C" >&6
  7294. else
  7295. cat >conftest.$ac_ext <<_ACEOF
  7296. /* confdefs.h. */
  7297. _ACEOF
  7298. cat confdefs.h >>conftest.$ac_ext
  7299. cat >>conftest.$ac_ext <<_ACEOF
  7300. /* end confdefs.h. */
  7301. #include <time.h>
  7302. #ifndef tzname /* For SGI. */
  7303. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7304. #endif
  7305. int
  7306. main ()
  7307. {
  7308. atoi(*tzname);
  7309. ;
  7310. return 0;
  7311. }
  7312. _ACEOF
  7313. rm -f conftest.$ac_objext conftest$ac_exeext
  7314. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7315. (eval $ac_link) 2>conftest.er1
  7316. ac_status=$?
  7317. grep -v '^ *+' conftest.er1 >conftest.err
  7318. rm -f conftest.er1
  7319. cat conftest.err >&5
  7320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7321. (exit $ac_status); } &&
  7322. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7324. (eval $ac_try) 2>&5
  7325. ac_status=$?
  7326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7327. (exit $ac_status); }; } &&
  7328. { ac_try='test -s conftest$ac_exeext'
  7329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7330. (eval $ac_try) 2>&5
  7331. ac_status=$?
  7332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7333. (exit $ac_status); }; }; then
  7334. ac_cv_var_tzname=yes
  7335. else
  7336. echo "$as_me: failed program was:" >&5
  7337. sed 's/^/| /' conftest.$ac_ext >&5
  7338. ac_cv_var_tzname=no
  7339. fi
  7340. rm -f conftest.err conftest.$ac_objext \
  7341. conftest$ac_exeext conftest.$ac_ext
  7342. fi
  7343. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7344. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7345. if test $ac_cv_var_tzname = yes; then
  7346. cat >>confdefs.h <<\_ACEOF
  7347. #define HAVE_TZNAME 1
  7348. _ACEOF
  7349. fi
  7350. fi
  7351. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7352. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7353. if test "${ac_cv_struct_tm+set}" = set; then
  7354. echo $ECHO_N "(cached) $ECHO_C" >&6
  7355. else
  7356. cat >conftest.$ac_ext <<_ACEOF
  7357. /* confdefs.h. */
  7358. _ACEOF
  7359. cat confdefs.h >>conftest.$ac_ext
  7360. cat >>conftest.$ac_ext <<_ACEOF
  7361. /* end confdefs.h. */
  7362. #include <sys/types.h>
  7363. #include <time.h>
  7364. int
  7365. main ()
  7366. {
  7367. struct tm *tp; tp->tm_sec;
  7368. ;
  7369. return 0;
  7370. }
  7371. _ACEOF
  7372. rm -f conftest.$ac_objext
  7373. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7374. (eval $ac_compile) 2>conftest.er1
  7375. ac_status=$?
  7376. grep -v '^ *+' conftest.er1 >conftest.err
  7377. rm -f conftest.er1
  7378. cat conftest.err >&5
  7379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7380. (exit $ac_status); } &&
  7381. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7383. (eval $ac_try) 2>&5
  7384. ac_status=$?
  7385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7386. (exit $ac_status); }; } &&
  7387. { ac_try='test -s conftest.$ac_objext'
  7388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7389. (eval $ac_try) 2>&5
  7390. ac_status=$?
  7391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7392. (exit $ac_status); }; }; then
  7393. ac_cv_struct_tm=time.h
  7394. else
  7395. echo "$as_me: failed program was:" >&5
  7396. sed 's/^/| /' conftest.$ac_ext >&5
  7397. ac_cv_struct_tm=sys/time.h
  7398. fi
  7399. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7400. fi
  7401. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7402. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7403. if test $ac_cv_struct_tm = sys/time.h; then
  7404. cat >>confdefs.h <<\_ACEOF
  7405. #define TM_IN_SYS_TIME 1
  7406. _ACEOF
  7407. fi
  7408. #checkpoint
  7409. cat >confcache <<\_ACEOF
  7410. # This file is a shell script that caches the results of configure
  7411. # tests run on this system so they can be shared between configure
  7412. # scripts and configure runs, see configure's option --config-cache.
  7413. # It is not useful on other systems. If it contains results you don't
  7414. # want to keep, you may remove or edit it.
  7415. #
  7416. # config.status only pays attention to the cache file if you give it
  7417. # the --recheck option to rerun configure.
  7418. #
  7419. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7420. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7421. # following values.
  7422. _ACEOF
  7423. # The following way of writing the cache mishandles newlines in values,
  7424. # but we know of no workaround that is simple, portable, and efficient.
  7425. # So, don't put newlines in cache variables' values.
  7426. # Ultrix sh set writes to stderr and can't be redirected directly,
  7427. # and sets the high bit in the cache file unless we assign to the vars.
  7428. {
  7429. (set) 2>&1 |
  7430. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7431. *ac_space=\ *)
  7432. # `set' does not quote correctly, so add quotes (double-quote
  7433. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7434. sed -n \
  7435. "s/'/'\\\\''/g;
  7436. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7437. ;;
  7438. *)
  7439. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7440. sed -n \
  7441. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7442. ;;
  7443. esac;
  7444. } |
  7445. sed '
  7446. t clear
  7447. : clear
  7448. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7449. t end
  7450. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7451. : end' >>confcache
  7452. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7453. if test -w $cache_file; then
  7454. test "x$cache_file" != "x/dev/null"
  7455. cat confcache >$cache_file
  7456. else
  7457. echo "not updating unwritable cache $cache_file"
  7458. fi
  7459. fi
  7460. rm -f confcache
  7461. # Check for IPv6 support
  7462. #EGG_IPV6_SUPPORTED
  7463. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7464. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7465. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7466. if test "${enable_ipv6+set}" = set; then
  7467. enableval="$enable_ipv6"
  7468. ac_cv_dipv6="yes"
  7469. echo "$as_me:$LINENO: result: yes" >&5
  7470. echo "${ECHO_T}yes" >&6
  7471. else
  7472. ac_cv_dipv6="no"
  7473. if test "$egg_cv_ipv6_supported" = "no"; then
  7474. ac_cv_dipv6="no"
  7475. fi
  7476. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7477. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7478. fi;
  7479. if test "$ac_cv_dipv6" = "no"; then
  7480. cat >>confdefs.h <<\_ACEOF
  7481. #define USE_IPV6 1
  7482. _ACEOF
  7483. fi
  7484. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7485. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7486. if test "${egg_cv_socklen_t+set}" = set; then
  7487. echo $ECHO_N "(cached) $ECHO_C" >&6
  7488. else
  7489. if test "$cross_compiling" = yes; then
  7490. egg_cv_socklen_t=no
  7491. else
  7492. cat >conftest.$ac_ext <<_ACEOF
  7493. /* confdefs.h. */
  7494. _ACEOF
  7495. cat confdefs.h >>conftest.$ac_ext
  7496. cat >>conftest.$ac_ext <<_ACEOF
  7497. /* end confdefs.h. */
  7498. #include <unistd.h>
  7499. #include <sys/types.h>
  7500. #include <sys/socket.h>
  7501. #include <netinet/in.h>
  7502. #include <arpa/inet.h>
  7503. int main()
  7504. {
  7505. socklen_t test = sizeof(int);
  7506. return 0;
  7507. }
  7508. _ACEOF
  7509. rm -f conftest$ac_exeext
  7510. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7511. (eval $ac_link) 2>&5
  7512. ac_status=$?
  7513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7514. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7516. (eval $ac_try) 2>&5
  7517. ac_status=$?
  7518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7519. (exit $ac_status); }; }; then
  7520. egg_cv_socklen_t=yes
  7521. else
  7522. echo "$as_me: program exited with status $ac_status" >&5
  7523. echo "$as_me: failed program was:" >&5
  7524. sed 's/^/| /' conftest.$ac_ext >&5
  7525. ( exit $ac_status )
  7526. egg_cv_socklen_t=no
  7527. fi
  7528. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7529. fi
  7530. fi
  7531. if test "$egg_cv_socklen_t" = "yes"; then
  7532. cat >>confdefs.h <<\_ACEOF
  7533. #define HAVE_SOCKLEN_T 1
  7534. _ACEOF
  7535. echo "$as_me:$LINENO: result: yes" >&5
  7536. echo "${ECHO_T}yes" >&6
  7537. else
  7538. echo "$as_me:$LINENO: result: no" >&5
  7539. echo "${ECHO_T}no" >&6
  7540. fi
  7541. # Checks for library functions
  7542. #checkpoint
  7543. cat >confcache <<\_ACEOF
  7544. # This file is a shell script that caches the results of configure
  7545. # tests run on this system so they can be shared between configure
  7546. # scripts and configure runs, see configure's option --config-cache.
  7547. # It is not useful on other systems. If it contains results you don't
  7548. # want to keep, you may remove or edit it.
  7549. #
  7550. # config.status only pays attention to the cache file if you give it
  7551. # the --recheck option to rerun configure.
  7552. #
  7553. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7554. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7555. # following values.
  7556. _ACEOF
  7557. # The following way of writing the cache mishandles newlines in values,
  7558. # but we know of no workaround that is simple, portable, and efficient.
  7559. # So, don't put newlines in cache variables' values.
  7560. # Ultrix sh set writes to stderr and can't be redirected directly,
  7561. # and sets the high bit in the cache file unless we assign to the vars.
  7562. {
  7563. (set) 2>&1 |
  7564. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7565. *ac_space=\ *)
  7566. # `set' does not quote correctly, so add quotes (double-quote
  7567. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7568. sed -n \
  7569. "s/'/'\\\\''/g;
  7570. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7571. ;;
  7572. *)
  7573. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7574. sed -n \
  7575. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7576. ;;
  7577. esac;
  7578. } |
  7579. sed '
  7580. t clear
  7581. : clear
  7582. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7583. t end
  7584. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7585. : end' >>confcache
  7586. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7587. if test -w $cache_file; then
  7588. test "x$cache_file" != "x/dev/null"
  7589. cat confcache >$cache_file
  7590. else
  7591. echo "not updating unwritable cache $cache_file"
  7592. fi
  7593. fi
  7594. rm -f confcache
  7595. # Checks for library functions.
  7596. for ac_header in unistd.h vfork.h
  7597. do
  7598. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7599. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7600. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7601. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7602. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7603. echo $ECHO_N "(cached) $ECHO_C" >&6
  7604. fi
  7605. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7606. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7607. else
  7608. # Is the header compilable?
  7609. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7610. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7611. cat >conftest.$ac_ext <<_ACEOF
  7612. /* confdefs.h. */
  7613. _ACEOF
  7614. cat confdefs.h >>conftest.$ac_ext
  7615. cat >>conftest.$ac_ext <<_ACEOF
  7616. /* end confdefs.h. */
  7617. $ac_includes_default
  7618. #include <$ac_header>
  7619. _ACEOF
  7620. rm -f conftest.$ac_objext
  7621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7622. (eval $ac_compile) 2>conftest.er1
  7623. ac_status=$?
  7624. grep -v '^ *+' conftest.er1 >conftest.err
  7625. rm -f conftest.er1
  7626. cat conftest.err >&5
  7627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7628. (exit $ac_status); } &&
  7629. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7631. (eval $ac_try) 2>&5
  7632. ac_status=$?
  7633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7634. (exit $ac_status); }; } &&
  7635. { ac_try='test -s conftest.$ac_objext'
  7636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7637. (eval $ac_try) 2>&5
  7638. ac_status=$?
  7639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7640. (exit $ac_status); }; }; then
  7641. ac_header_compiler=yes
  7642. else
  7643. echo "$as_me: failed program was:" >&5
  7644. sed 's/^/| /' conftest.$ac_ext >&5
  7645. ac_header_compiler=no
  7646. fi
  7647. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7648. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7649. echo "${ECHO_T}$ac_header_compiler" >&6
  7650. # Is the header present?
  7651. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7652. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7653. cat >conftest.$ac_ext <<_ACEOF
  7654. /* confdefs.h. */
  7655. _ACEOF
  7656. cat confdefs.h >>conftest.$ac_ext
  7657. cat >>conftest.$ac_ext <<_ACEOF
  7658. /* end confdefs.h. */
  7659. #include <$ac_header>
  7660. _ACEOF
  7661. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7662. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7663. ac_status=$?
  7664. grep -v '^ *+' conftest.er1 >conftest.err
  7665. rm -f conftest.er1
  7666. cat conftest.err >&5
  7667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7668. (exit $ac_status); } >/dev/null; then
  7669. if test -s conftest.err; then
  7670. ac_cpp_err=$ac_c_preproc_warn_flag
  7671. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7672. else
  7673. ac_cpp_err=
  7674. fi
  7675. else
  7676. ac_cpp_err=yes
  7677. fi
  7678. if test -z "$ac_cpp_err"; then
  7679. ac_header_preproc=yes
  7680. else
  7681. echo "$as_me: failed program was:" >&5
  7682. sed 's/^/| /' conftest.$ac_ext >&5
  7683. ac_header_preproc=no
  7684. fi
  7685. rm -f conftest.err conftest.$ac_ext
  7686. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7687. echo "${ECHO_T}$ac_header_preproc" >&6
  7688. # So? What about this header?
  7689. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7690. yes:no: )
  7691. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7692. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7693. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7694. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7695. ac_header_preproc=yes
  7696. ;;
  7697. no:yes:* )
  7698. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7699. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7700. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7701. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7702. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7703. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7704. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7705. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7706. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7707. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7708. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7709. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7710. (
  7711. cat <<\_ASBOX
  7712. ## ------------------------------------------ ##
  7713. ## Report this to the AC_PACKAGE_NAME lists. ##
  7714. ## ------------------------------------------ ##
  7715. _ASBOX
  7716. ) |
  7717. sed "s/^/$as_me: WARNING: /" >&2
  7718. ;;
  7719. esac
  7720. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7721. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7722. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7723. echo $ECHO_N "(cached) $ECHO_C" >&6
  7724. else
  7725. eval "$as_ac_Header=\$ac_header_preproc"
  7726. fi
  7727. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7728. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7729. fi
  7730. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7731. cat >>confdefs.h <<_ACEOF
  7732. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7733. _ACEOF
  7734. fi
  7735. done
  7736. for ac_func in fork vfork
  7737. do
  7738. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7739. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7740. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7741. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7742. echo $ECHO_N "(cached) $ECHO_C" >&6
  7743. else
  7744. cat >conftest.$ac_ext <<_ACEOF
  7745. /* confdefs.h. */
  7746. _ACEOF
  7747. cat confdefs.h >>conftest.$ac_ext
  7748. cat >>conftest.$ac_ext <<_ACEOF
  7749. /* end confdefs.h. */
  7750. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7751. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7752. #define $ac_func innocuous_$ac_func
  7753. /* System header to define __stub macros and hopefully few prototypes,
  7754. which can conflict with char $ac_func (); below.
  7755. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7756. <limits.h> exists even on freestanding compilers. */
  7757. #ifdef __STDC__
  7758. # include <limits.h>
  7759. #else
  7760. # include <assert.h>
  7761. #endif
  7762. #undef $ac_func
  7763. /* Override any gcc2 internal prototype to avoid an error. */
  7764. #ifdef __cplusplus
  7765. extern "C"
  7766. {
  7767. #endif
  7768. /* We use char because int might match the return type of a gcc2
  7769. builtin and then its argument prototype would still apply. */
  7770. char $ac_func ();
  7771. /* The GNU C library defines this for functions which it implements
  7772. to always fail with ENOSYS. Some functions are actually named
  7773. something starting with __ and the normal name is an alias. */
  7774. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7775. choke me
  7776. #else
  7777. char (*f) () = $ac_func;
  7778. #endif
  7779. #ifdef __cplusplus
  7780. }
  7781. #endif
  7782. int
  7783. main ()
  7784. {
  7785. return f != $ac_func;
  7786. ;
  7787. return 0;
  7788. }
  7789. _ACEOF
  7790. rm -f conftest.$ac_objext conftest$ac_exeext
  7791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7792. (eval $ac_link) 2>conftest.er1
  7793. ac_status=$?
  7794. grep -v '^ *+' conftest.er1 >conftest.err
  7795. rm -f conftest.er1
  7796. cat conftest.err >&5
  7797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7798. (exit $ac_status); } &&
  7799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7801. (eval $ac_try) 2>&5
  7802. ac_status=$?
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); }; } &&
  7805. { ac_try='test -s conftest$ac_exeext'
  7806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7807. (eval $ac_try) 2>&5
  7808. ac_status=$?
  7809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7810. (exit $ac_status); }; }; then
  7811. eval "$as_ac_var=yes"
  7812. else
  7813. echo "$as_me: failed program was:" >&5
  7814. sed 's/^/| /' conftest.$ac_ext >&5
  7815. eval "$as_ac_var=no"
  7816. fi
  7817. rm -f conftest.err conftest.$ac_objext \
  7818. conftest$ac_exeext conftest.$ac_ext
  7819. fi
  7820. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7821. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7822. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7823. cat >>confdefs.h <<_ACEOF
  7824. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7825. _ACEOF
  7826. fi
  7827. done
  7828. if test "x$ac_cv_func_fork" = xyes; then
  7829. echo "$as_me:$LINENO: checking for working fork" >&5
  7830. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7831. if test "${ac_cv_func_fork_works+set}" = set; then
  7832. echo $ECHO_N "(cached) $ECHO_C" >&6
  7833. else
  7834. if test "$cross_compiling" = yes; then
  7835. ac_cv_func_fork_works=cross
  7836. else
  7837. cat >conftest.$ac_ext <<_ACEOF
  7838. /* By Ruediger Kuhlmann. */
  7839. #include <sys/types.h>
  7840. #if HAVE_UNISTD_H
  7841. # include <unistd.h>
  7842. #endif
  7843. /* Some systems only have a dummy stub for fork() */
  7844. int main ()
  7845. {
  7846. if (fork() < 0)
  7847. exit (1);
  7848. exit (0);
  7849. }
  7850. _ACEOF
  7851. rm -f conftest$ac_exeext
  7852. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7853. (eval $ac_link) 2>&5
  7854. ac_status=$?
  7855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7856. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7858. (eval $ac_try) 2>&5
  7859. ac_status=$?
  7860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7861. (exit $ac_status); }; }; then
  7862. ac_cv_func_fork_works=yes
  7863. else
  7864. echo "$as_me: program exited with status $ac_status" >&5
  7865. echo "$as_me: failed program was:" >&5
  7866. sed 's/^/| /' conftest.$ac_ext >&5
  7867. ( exit $ac_status )
  7868. ac_cv_func_fork_works=no
  7869. fi
  7870. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7871. fi
  7872. fi
  7873. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7874. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7875. else
  7876. ac_cv_func_fork_works=$ac_cv_func_fork
  7877. fi
  7878. if test "x$ac_cv_func_fork_works" = xcross; then
  7879. case $host in
  7880. *-*-amigaos* | *-*-msdosdjgpp*)
  7881. # Override, as these systems have only a dummy fork() stub
  7882. ac_cv_func_fork_works=no
  7883. ;;
  7884. *)
  7885. ac_cv_func_fork_works=yes
  7886. ;;
  7887. esac
  7888. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7889. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7890. fi
  7891. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7892. if test "x$ac_cv_func_vfork" = xyes; then
  7893. echo "$as_me:$LINENO: checking for working vfork" >&5
  7894. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7895. if test "${ac_cv_func_vfork_works+set}" = set; then
  7896. echo $ECHO_N "(cached) $ECHO_C" >&6
  7897. else
  7898. if test "$cross_compiling" = yes; then
  7899. ac_cv_func_vfork_works=cross
  7900. else
  7901. cat >conftest.$ac_ext <<_ACEOF
  7902. /* confdefs.h. */
  7903. _ACEOF
  7904. cat confdefs.h >>conftest.$ac_ext
  7905. cat >>conftest.$ac_ext <<_ACEOF
  7906. /* end confdefs.h. */
  7907. /* Thanks to Paul Eggert for this test. */
  7908. #include <stdio.h>
  7909. #include <stdlib.h>
  7910. #include <sys/types.h>
  7911. #include <sys/stat.h>
  7912. #include <sys/wait.h>
  7913. #if HAVE_UNISTD_H
  7914. # include <unistd.h>
  7915. #endif
  7916. #if HAVE_VFORK_H
  7917. # include <vfork.h>
  7918. #endif
  7919. /* On some sparc systems, changes by the child to local and incoming
  7920. argument registers are propagated back to the parent. The compiler
  7921. is told about this with #include <vfork.h>, but some compilers
  7922. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7923. static variable whose address is put into a register that is
  7924. clobbered by the vfork. */
  7925. static void
  7926. #ifdef __cplusplus
  7927. sparc_address_test (int arg)
  7928. # else
  7929. sparc_address_test (arg) int arg;
  7930. #endif
  7931. {
  7932. static pid_t child;
  7933. if (!child) {
  7934. child = vfork ();
  7935. if (child < 0) {
  7936. perror ("vfork");
  7937. _exit(2);
  7938. }
  7939. if (!child) {
  7940. arg = getpid();
  7941. write(-1, "", 0);
  7942. _exit (arg);
  7943. }
  7944. }
  7945. }
  7946. int
  7947. main ()
  7948. {
  7949. pid_t parent = getpid ();
  7950. pid_t child;
  7951. sparc_address_test (0);
  7952. child = vfork ();
  7953. if (child == 0) {
  7954. /* Here is another test for sparc vfork register problems. This
  7955. test uses lots of local variables, at least as many local
  7956. variables as main has allocated so far including compiler
  7957. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7958. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7959. reuse the register of parent for one of the local variables,
  7960. since it will think that parent can't possibly be used any more
  7961. in this routine. Assigning to the local variable will thus
  7962. munge parent in the parent process. */
  7963. pid_t
  7964. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7965. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7966. /* Convince the compiler that p..p7 are live; otherwise, it might
  7967. use the same hardware register for all 8 local variables. */
  7968. if (p != p1 || p != p2 || p != p3 || p != p4
  7969. || p != p5 || p != p6 || p != p7)
  7970. _exit(1);
  7971. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7972. from child file descriptors. If the child closes a descriptor
  7973. before it execs or exits, this munges the parent's descriptor
  7974. as well. Test for this by closing stdout in the child. */
  7975. _exit(close(fileno(stdout)) != 0);
  7976. } else {
  7977. int status;
  7978. struct stat st;
  7979. while (wait(&status) != child)
  7980. ;
  7981. exit(
  7982. /* Was there some problem with vforking? */
  7983. child < 0
  7984. /* Did the child fail? (This shouldn't happen.) */
  7985. || status
  7986. /* Did the vfork/compiler bug occur? */
  7987. || parent != getpid()
  7988. /* Did the file descriptor bug occur? */
  7989. || fstat(fileno(stdout), &st) != 0
  7990. );
  7991. }
  7992. }
  7993. _ACEOF
  7994. rm -f conftest$ac_exeext
  7995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7996. (eval $ac_link) 2>&5
  7997. ac_status=$?
  7998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7999. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8001. (eval $ac_try) 2>&5
  8002. ac_status=$?
  8003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004. (exit $ac_status); }; }; then
  8005. ac_cv_func_vfork_works=yes
  8006. else
  8007. echo "$as_me: program exited with status $ac_status" >&5
  8008. echo "$as_me: failed program was:" >&5
  8009. sed 's/^/| /' conftest.$ac_ext >&5
  8010. ( exit $ac_status )
  8011. ac_cv_func_vfork_works=no
  8012. fi
  8013. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8014. fi
  8015. fi
  8016. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8017. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8018. fi;
  8019. if test "x$ac_cv_func_fork_works" = xcross; then
  8020. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8021. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8022. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8023. fi
  8024. if test "x$ac_cv_func_vfork_works" = xyes; then
  8025. cat >>confdefs.h <<\_ACEOF
  8026. #define HAVE_WORKING_VFORK 1
  8027. _ACEOF
  8028. else
  8029. cat >>confdefs.h <<\_ACEOF
  8030. #define vfork fork
  8031. _ACEOF
  8032. fi
  8033. if test "x$ac_cv_func_fork_works" = xyes; then
  8034. cat >>confdefs.h <<\_ACEOF
  8035. #define HAVE_WORKING_FORK 1
  8036. _ACEOF
  8037. fi
  8038. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8039. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8040. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8041. echo $ECHO_N "(cached) $ECHO_C" >&6
  8042. else
  8043. rm -f conftest.sym conftest.file
  8044. echo >conftest.file
  8045. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8046. if test "$cross_compiling" = yes; then
  8047. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8048. else
  8049. cat >conftest.$ac_ext <<_ACEOF
  8050. /* confdefs.h. */
  8051. _ACEOF
  8052. cat confdefs.h >>conftest.$ac_ext
  8053. cat >>conftest.$ac_ext <<_ACEOF
  8054. /* end confdefs.h. */
  8055. $ac_includes_default
  8056. int
  8057. main ()
  8058. {
  8059. struct stat sbuf;
  8060. /* Linux will dereference the symlink and fail.
  8061. That is better in the sense that it means we will not
  8062. have to compile and use the lstat wrapper. */
  8063. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8064. ;
  8065. return 0;
  8066. }
  8067. _ACEOF
  8068. rm -f conftest$ac_exeext
  8069. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8070. (eval $ac_link) 2>&5
  8071. ac_status=$?
  8072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8073. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8075. (eval $ac_try) 2>&5
  8076. ac_status=$?
  8077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8078. (exit $ac_status); }; }; then
  8079. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8080. else
  8081. echo "$as_me: program exited with status $ac_status" >&5
  8082. echo "$as_me: failed program was:" >&5
  8083. sed 's/^/| /' conftest.$ac_ext >&5
  8084. ( exit $ac_status )
  8085. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8086. fi
  8087. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8088. fi
  8089. else
  8090. # If the `ln -s' command failed, then we probably don't even
  8091. # have an lstat function.
  8092. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8093. fi
  8094. rm -f conftest.sym conftest.file
  8095. fi
  8096. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8097. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8098. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8099. cat >>confdefs.h <<_ACEOF
  8100. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8101. _ACEOF
  8102. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8103. case $LIBOBJS in
  8104. "lstat.$ac_objext" | \
  8105. *" lstat.$ac_objext" | \
  8106. "lstat.$ac_objext "* | \
  8107. *" lstat.$ac_objext "* ) ;;
  8108. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8109. esac
  8110. fi
  8111. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8112. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8113. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8114. echo $ECHO_N "(cached) $ECHO_C" >&6
  8115. else
  8116. if test "$cross_compiling" = yes; then
  8117. ac_cv_func_lstat_empty_string_bug=yes
  8118. else
  8119. cat >conftest.$ac_ext <<_ACEOF
  8120. /* confdefs.h. */
  8121. _ACEOF
  8122. cat confdefs.h >>conftest.$ac_ext
  8123. cat >>conftest.$ac_ext <<_ACEOF
  8124. /* end confdefs.h. */
  8125. $ac_includes_default
  8126. int
  8127. main ()
  8128. {
  8129. struct stat sbuf;
  8130. exit (lstat ("", &sbuf) ? 1 : 0);
  8131. ;
  8132. return 0;
  8133. }
  8134. _ACEOF
  8135. rm -f conftest$ac_exeext
  8136. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8137. (eval $ac_link) 2>&5
  8138. ac_status=$?
  8139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8140. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8142. (eval $ac_try) 2>&5
  8143. ac_status=$?
  8144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8145. (exit $ac_status); }; }; then
  8146. ac_cv_func_lstat_empty_string_bug=yes
  8147. else
  8148. echo "$as_me: program exited with status $ac_status" >&5
  8149. echo "$as_me: failed program was:" >&5
  8150. sed 's/^/| /' conftest.$ac_ext >&5
  8151. ( exit $ac_status )
  8152. ac_cv_func_lstat_empty_string_bug=no
  8153. fi
  8154. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8155. fi
  8156. fi
  8157. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8158. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8159. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8160. case $LIBOBJS in
  8161. "lstat.$ac_objext" | \
  8162. *" lstat.$ac_objext" | \
  8163. "lstat.$ac_objext "* | \
  8164. *" lstat.$ac_objext "* ) ;;
  8165. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8166. esac
  8167. cat >>confdefs.h <<_ACEOF
  8168. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8169. _ACEOF
  8170. fi
  8171. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8172. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8173. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8174. echo $ECHO_N "(cached) $ECHO_C" >&6
  8175. else
  8176. rm -f conftest.sym conftest.file
  8177. echo >conftest.file
  8178. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8179. if test "$cross_compiling" = yes; then
  8180. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8181. else
  8182. cat >conftest.$ac_ext <<_ACEOF
  8183. /* confdefs.h. */
  8184. _ACEOF
  8185. cat confdefs.h >>conftest.$ac_ext
  8186. cat >>conftest.$ac_ext <<_ACEOF
  8187. /* end confdefs.h. */
  8188. $ac_includes_default
  8189. int
  8190. main ()
  8191. {
  8192. struct stat sbuf;
  8193. /* Linux will dereference the symlink and fail.
  8194. That is better in the sense that it means we will not
  8195. have to compile and use the lstat wrapper. */
  8196. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8197. ;
  8198. return 0;
  8199. }
  8200. _ACEOF
  8201. rm -f conftest$ac_exeext
  8202. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8203. (eval $ac_link) 2>&5
  8204. ac_status=$?
  8205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8206. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8208. (eval $ac_try) 2>&5
  8209. ac_status=$?
  8210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8211. (exit $ac_status); }; }; then
  8212. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8213. else
  8214. echo "$as_me: program exited with status $ac_status" >&5
  8215. echo "$as_me: failed program was:" >&5
  8216. sed 's/^/| /' conftest.$ac_ext >&5
  8217. ( exit $ac_status )
  8218. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8219. fi
  8220. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8221. fi
  8222. else
  8223. # If the `ln -s' command failed, then we probably don't even
  8224. # have an lstat function.
  8225. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8226. fi
  8227. rm -f conftest.sym conftest.file
  8228. fi
  8229. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8230. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8231. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8232. cat >>confdefs.h <<_ACEOF
  8233. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8234. _ACEOF
  8235. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8236. case $LIBOBJS in
  8237. "lstat.$ac_objext" | \
  8238. *" lstat.$ac_objext" | \
  8239. "lstat.$ac_objext "* | \
  8240. *" lstat.$ac_objext "* ) ;;
  8241. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8242. esac
  8243. fi
  8244. for ac_header in stdlib.h
  8245. do
  8246. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8247. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8248. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8249. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8250. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8251. echo $ECHO_N "(cached) $ECHO_C" >&6
  8252. fi
  8253. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8254. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8255. else
  8256. # Is the header compilable?
  8257. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8258. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8259. cat >conftest.$ac_ext <<_ACEOF
  8260. /* confdefs.h. */
  8261. _ACEOF
  8262. cat confdefs.h >>conftest.$ac_ext
  8263. cat >>conftest.$ac_ext <<_ACEOF
  8264. /* end confdefs.h. */
  8265. $ac_includes_default
  8266. #include <$ac_header>
  8267. _ACEOF
  8268. rm -f conftest.$ac_objext
  8269. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8270. (eval $ac_compile) 2>conftest.er1
  8271. ac_status=$?
  8272. grep -v '^ *+' conftest.er1 >conftest.err
  8273. rm -f conftest.er1
  8274. cat conftest.err >&5
  8275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8276. (exit $ac_status); } &&
  8277. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8279. (eval $ac_try) 2>&5
  8280. ac_status=$?
  8281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8282. (exit $ac_status); }; } &&
  8283. { ac_try='test -s conftest.$ac_objext'
  8284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8285. (eval $ac_try) 2>&5
  8286. ac_status=$?
  8287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8288. (exit $ac_status); }; }; then
  8289. ac_header_compiler=yes
  8290. else
  8291. echo "$as_me: failed program was:" >&5
  8292. sed 's/^/| /' conftest.$ac_ext >&5
  8293. ac_header_compiler=no
  8294. fi
  8295. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8296. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8297. echo "${ECHO_T}$ac_header_compiler" >&6
  8298. # Is the header present?
  8299. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8300. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8301. cat >conftest.$ac_ext <<_ACEOF
  8302. /* confdefs.h. */
  8303. _ACEOF
  8304. cat confdefs.h >>conftest.$ac_ext
  8305. cat >>conftest.$ac_ext <<_ACEOF
  8306. /* end confdefs.h. */
  8307. #include <$ac_header>
  8308. _ACEOF
  8309. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8310. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8311. ac_status=$?
  8312. grep -v '^ *+' conftest.er1 >conftest.err
  8313. rm -f conftest.er1
  8314. cat conftest.err >&5
  8315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8316. (exit $ac_status); } >/dev/null; then
  8317. if test -s conftest.err; then
  8318. ac_cpp_err=$ac_c_preproc_warn_flag
  8319. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8320. else
  8321. ac_cpp_err=
  8322. fi
  8323. else
  8324. ac_cpp_err=yes
  8325. fi
  8326. if test -z "$ac_cpp_err"; then
  8327. ac_header_preproc=yes
  8328. else
  8329. echo "$as_me: failed program was:" >&5
  8330. sed 's/^/| /' conftest.$ac_ext >&5
  8331. ac_header_preproc=no
  8332. fi
  8333. rm -f conftest.err conftest.$ac_ext
  8334. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8335. echo "${ECHO_T}$ac_header_preproc" >&6
  8336. # So? What about this header?
  8337. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8338. yes:no: )
  8339. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8340. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8341. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8342. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8343. ac_header_preproc=yes
  8344. ;;
  8345. no:yes:* )
  8346. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8347. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8348. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8349. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8350. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8351. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8352. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8353. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8354. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8355. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8356. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8357. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8358. (
  8359. cat <<\_ASBOX
  8360. ## ------------------------------------------ ##
  8361. ## Report this to the AC_PACKAGE_NAME lists. ##
  8362. ## ------------------------------------------ ##
  8363. _ASBOX
  8364. ) |
  8365. sed "s/^/$as_me: WARNING: /" >&2
  8366. ;;
  8367. esac
  8368. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8369. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8370. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8371. echo $ECHO_N "(cached) $ECHO_C" >&6
  8372. else
  8373. eval "$as_ac_Header=\$ac_header_preproc"
  8374. fi
  8375. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8376. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8377. fi
  8378. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8379. cat >>confdefs.h <<_ACEOF
  8380. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8381. _ACEOF
  8382. fi
  8383. done
  8384. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8385. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8386. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8387. echo $ECHO_N "(cached) $ECHO_C" >&6
  8388. else
  8389. if test "$cross_compiling" = yes; then
  8390. ac_cv_func_malloc_0_nonnull=no
  8391. else
  8392. cat >conftest.$ac_ext <<_ACEOF
  8393. /* confdefs.h. */
  8394. _ACEOF
  8395. cat confdefs.h >>conftest.$ac_ext
  8396. cat >>conftest.$ac_ext <<_ACEOF
  8397. /* end confdefs.h. */
  8398. #if STDC_HEADERS || HAVE_STDLIB_H
  8399. # include <stdlib.h>
  8400. #else
  8401. char *malloc ();
  8402. #endif
  8403. int
  8404. main ()
  8405. {
  8406. exit (malloc (0) ? 0 : 1);
  8407. ;
  8408. return 0;
  8409. }
  8410. _ACEOF
  8411. rm -f conftest$ac_exeext
  8412. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8413. (eval $ac_link) 2>&5
  8414. ac_status=$?
  8415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8416. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8418. (eval $ac_try) 2>&5
  8419. ac_status=$?
  8420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8421. (exit $ac_status); }; }; then
  8422. ac_cv_func_malloc_0_nonnull=yes
  8423. else
  8424. echo "$as_me: program exited with status $ac_status" >&5
  8425. echo "$as_me: failed program was:" >&5
  8426. sed 's/^/| /' conftest.$ac_ext >&5
  8427. ( exit $ac_status )
  8428. ac_cv_func_malloc_0_nonnull=no
  8429. fi
  8430. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8431. fi
  8432. fi
  8433. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8434. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8435. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8436. cat >>confdefs.h <<\_ACEOF
  8437. #define HAVE_MALLOC 1
  8438. _ACEOF
  8439. else
  8440. cat >>confdefs.h <<\_ACEOF
  8441. #define HAVE_MALLOC 0
  8442. _ACEOF
  8443. case $LIBOBJS in
  8444. "malloc.$ac_objext" | \
  8445. *" malloc.$ac_objext" | \
  8446. "malloc.$ac_objext "* | \
  8447. *" malloc.$ac_objext "* ) ;;
  8448. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8449. esac
  8450. cat >>confdefs.h <<\_ACEOF
  8451. #define malloc rpl_malloc
  8452. _ACEOF
  8453. fi
  8454. for ac_header in stdlib.h sys/time.h unistd.h
  8455. do
  8456. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8457. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8458. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8459. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8460. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8461. echo $ECHO_N "(cached) $ECHO_C" >&6
  8462. fi
  8463. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8464. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8465. else
  8466. # Is the header compilable?
  8467. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8468. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8469. cat >conftest.$ac_ext <<_ACEOF
  8470. /* confdefs.h. */
  8471. _ACEOF
  8472. cat confdefs.h >>conftest.$ac_ext
  8473. cat >>conftest.$ac_ext <<_ACEOF
  8474. /* end confdefs.h. */
  8475. $ac_includes_default
  8476. #include <$ac_header>
  8477. _ACEOF
  8478. rm -f conftest.$ac_objext
  8479. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8480. (eval $ac_compile) 2>conftest.er1
  8481. ac_status=$?
  8482. grep -v '^ *+' conftest.er1 >conftest.err
  8483. rm -f conftest.er1
  8484. cat conftest.err >&5
  8485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8486. (exit $ac_status); } &&
  8487. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8489. (eval $ac_try) 2>&5
  8490. ac_status=$?
  8491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8492. (exit $ac_status); }; } &&
  8493. { ac_try='test -s conftest.$ac_objext'
  8494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8495. (eval $ac_try) 2>&5
  8496. ac_status=$?
  8497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8498. (exit $ac_status); }; }; then
  8499. ac_header_compiler=yes
  8500. else
  8501. echo "$as_me: failed program was:" >&5
  8502. sed 's/^/| /' conftest.$ac_ext >&5
  8503. ac_header_compiler=no
  8504. fi
  8505. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8506. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8507. echo "${ECHO_T}$ac_header_compiler" >&6
  8508. # Is the header present?
  8509. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8510. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8511. cat >conftest.$ac_ext <<_ACEOF
  8512. /* confdefs.h. */
  8513. _ACEOF
  8514. cat confdefs.h >>conftest.$ac_ext
  8515. cat >>conftest.$ac_ext <<_ACEOF
  8516. /* end confdefs.h. */
  8517. #include <$ac_header>
  8518. _ACEOF
  8519. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8520. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8521. ac_status=$?
  8522. grep -v '^ *+' conftest.er1 >conftest.err
  8523. rm -f conftest.er1
  8524. cat conftest.err >&5
  8525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8526. (exit $ac_status); } >/dev/null; then
  8527. if test -s conftest.err; then
  8528. ac_cpp_err=$ac_c_preproc_warn_flag
  8529. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8530. else
  8531. ac_cpp_err=
  8532. fi
  8533. else
  8534. ac_cpp_err=yes
  8535. fi
  8536. if test -z "$ac_cpp_err"; then
  8537. ac_header_preproc=yes
  8538. else
  8539. echo "$as_me: failed program was:" >&5
  8540. sed 's/^/| /' conftest.$ac_ext >&5
  8541. ac_header_preproc=no
  8542. fi
  8543. rm -f conftest.err conftest.$ac_ext
  8544. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8545. echo "${ECHO_T}$ac_header_preproc" >&6
  8546. # So? What about this header?
  8547. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8548. yes:no: )
  8549. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8550. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8551. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8552. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8553. ac_header_preproc=yes
  8554. ;;
  8555. no:yes:* )
  8556. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8557. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8558. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8559. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8560. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8561. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8562. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8563. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8564. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8565. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8566. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8567. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8568. (
  8569. cat <<\_ASBOX
  8570. ## ------------------------------------------ ##
  8571. ## Report this to the AC_PACKAGE_NAME lists. ##
  8572. ## ------------------------------------------ ##
  8573. _ASBOX
  8574. ) |
  8575. sed "s/^/$as_me: WARNING: /" >&2
  8576. ;;
  8577. esac
  8578. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8579. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8580. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8581. echo $ECHO_N "(cached) $ECHO_C" >&6
  8582. else
  8583. eval "$as_ac_Header=\$ac_header_preproc"
  8584. fi
  8585. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8586. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8587. fi
  8588. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8589. cat >>confdefs.h <<_ACEOF
  8590. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8591. _ACEOF
  8592. fi
  8593. done
  8594. for ac_func in alarm
  8595. do
  8596. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8597. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8598. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8599. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8600. echo $ECHO_N "(cached) $ECHO_C" >&6
  8601. else
  8602. cat >conftest.$ac_ext <<_ACEOF
  8603. /* confdefs.h. */
  8604. _ACEOF
  8605. cat confdefs.h >>conftest.$ac_ext
  8606. cat >>conftest.$ac_ext <<_ACEOF
  8607. /* end confdefs.h. */
  8608. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8609. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8610. #define $ac_func innocuous_$ac_func
  8611. /* System header to define __stub macros and hopefully few prototypes,
  8612. which can conflict with char $ac_func (); below.
  8613. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8614. <limits.h> exists even on freestanding compilers. */
  8615. #ifdef __STDC__
  8616. # include <limits.h>
  8617. #else
  8618. # include <assert.h>
  8619. #endif
  8620. #undef $ac_func
  8621. /* Override any gcc2 internal prototype to avoid an error. */
  8622. #ifdef __cplusplus
  8623. extern "C"
  8624. {
  8625. #endif
  8626. /* We use char because int might match the return type of a gcc2
  8627. builtin and then its argument prototype would still apply. */
  8628. char $ac_func ();
  8629. /* The GNU C library defines this for functions which it implements
  8630. to always fail with ENOSYS. Some functions are actually named
  8631. something starting with __ and the normal name is an alias. */
  8632. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8633. choke me
  8634. #else
  8635. char (*f) () = $ac_func;
  8636. #endif
  8637. #ifdef __cplusplus
  8638. }
  8639. #endif
  8640. int
  8641. main ()
  8642. {
  8643. return f != $ac_func;
  8644. ;
  8645. return 0;
  8646. }
  8647. _ACEOF
  8648. rm -f conftest.$ac_objext conftest$ac_exeext
  8649. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8650. (eval $ac_link) 2>conftest.er1
  8651. ac_status=$?
  8652. grep -v '^ *+' conftest.er1 >conftest.err
  8653. rm -f conftest.er1
  8654. cat conftest.err >&5
  8655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8656. (exit $ac_status); } &&
  8657. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8659. (eval $ac_try) 2>&5
  8660. ac_status=$?
  8661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8662. (exit $ac_status); }; } &&
  8663. { ac_try='test -s conftest$ac_exeext'
  8664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8665. (eval $ac_try) 2>&5
  8666. ac_status=$?
  8667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8668. (exit $ac_status); }; }; then
  8669. eval "$as_ac_var=yes"
  8670. else
  8671. echo "$as_me: failed program was:" >&5
  8672. sed 's/^/| /' conftest.$ac_ext >&5
  8673. eval "$as_ac_var=no"
  8674. fi
  8675. rm -f conftest.err conftest.$ac_objext \
  8676. conftest$ac_exeext conftest.$ac_ext
  8677. fi
  8678. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8679. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8680. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8681. cat >>confdefs.h <<_ACEOF
  8682. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8683. _ACEOF
  8684. fi
  8685. done
  8686. echo "$as_me:$LINENO: checking for working mktime" >&5
  8687. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8688. if test "${ac_cv_func_working_mktime+set}" = set; then
  8689. echo $ECHO_N "(cached) $ECHO_C" >&6
  8690. else
  8691. if test "$cross_compiling" = yes; then
  8692. ac_cv_func_working_mktime=no
  8693. else
  8694. cat >conftest.$ac_ext <<_ACEOF
  8695. /* confdefs.h. */
  8696. _ACEOF
  8697. cat confdefs.h >>conftest.$ac_ext
  8698. cat >>conftest.$ac_ext <<_ACEOF
  8699. /* end confdefs.h. */
  8700. /* Test program from Paul Eggert and Tony Leneis. */
  8701. #if TIME_WITH_SYS_TIME
  8702. # include <sys/time.h>
  8703. # include <time.h>
  8704. #else
  8705. # if HAVE_SYS_TIME_H
  8706. # include <sys/time.h>
  8707. # else
  8708. # include <time.h>
  8709. # endif
  8710. #endif
  8711. #if HAVE_STDLIB_H
  8712. # include <stdlib.h>
  8713. #endif
  8714. #if HAVE_UNISTD_H
  8715. # include <unistd.h>
  8716. #endif
  8717. #if !HAVE_ALARM
  8718. # define alarm(X) /* empty */
  8719. #endif
  8720. /* Work around redefinition to rpl_putenv by other config tests. */
  8721. #undef putenv
  8722. static time_t time_t_max;
  8723. static time_t time_t_min;
  8724. /* Values we'll use to set the TZ environment variable. */
  8725. static char *tz_strings[] = {
  8726. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8727. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8728. };
  8729. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8730. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8731. Based on a problem report from Andreas Jaeger. */
  8732. static void
  8733. spring_forward_gap ()
  8734. {
  8735. /* glibc (up to about 1998-10-07) failed this test. */
  8736. struct tm tm;
  8737. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8738. instead of "TZ=America/Vancouver" in order to detect the bug even
  8739. on systems that don't support the Olson extension, or don't have the
  8740. full zoneinfo tables installed. */
  8741. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8742. tm.tm_year = 98;
  8743. tm.tm_mon = 3;
  8744. tm.tm_mday = 5;
  8745. tm.tm_hour = 2;
  8746. tm.tm_min = 0;
  8747. tm.tm_sec = 0;
  8748. tm.tm_isdst = -1;
  8749. if (mktime (&tm) == (time_t)-1)
  8750. exit (1);
  8751. }
  8752. static void
  8753. mktime_test1 (now)
  8754. time_t now;
  8755. {
  8756. struct tm *lt;
  8757. if ((lt = localtime (&now)) && mktime (lt) != now)
  8758. exit (1);
  8759. }
  8760. static void
  8761. mktime_test (now)
  8762. time_t now;
  8763. {
  8764. mktime_test1 (now);
  8765. mktime_test1 ((time_t) (time_t_max - now));
  8766. mktime_test1 ((time_t) (time_t_min + now));
  8767. }
  8768. static void
  8769. irix_6_4_bug ()
  8770. {
  8771. /* Based on code from Ariel Faigon. */
  8772. struct tm tm;
  8773. tm.tm_year = 96;
  8774. tm.tm_mon = 3;
  8775. tm.tm_mday = 0;
  8776. tm.tm_hour = 0;
  8777. tm.tm_min = 0;
  8778. tm.tm_sec = 0;
  8779. tm.tm_isdst = -1;
  8780. mktime (&tm);
  8781. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8782. exit (1);
  8783. }
  8784. static void
  8785. bigtime_test (j)
  8786. int j;
  8787. {
  8788. struct tm tm;
  8789. time_t now;
  8790. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8791. now = mktime (&tm);
  8792. if (now != (time_t) -1)
  8793. {
  8794. struct tm *lt = localtime (&now);
  8795. if (! (lt
  8796. && lt->tm_year == tm.tm_year
  8797. && lt->tm_mon == tm.tm_mon
  8798. && lt->tm_mday == tm.tm_mday
  8799. && lt->tm_hour == tm.tm_hour
  8800. && lt->tm_min == tm.tm_min
  8801. && lt->tm_sec == tm.tm_sec
  8802. && lt->tm_yday == tm.tm_yday
  8803. && lt->tm_wday == tm.tm_wday
  8804. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8805. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8806. exit (1);
  8807. }
  8808. }
  8809. int
  8810. main ()
  8811. {
  8812. time_t t, delta;
  8813. int i, j;
  8814. /* This test makes some buggy mktime implementations loop.
  8815. Give up after 60 seconds; a mktime slower than that
  8816. isn't worth using anyway. */
  8817. alarm (60);
  8818. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8819. continue;
  8820. time_t_max--;
  8821. if ((time_t) -1 < 0)
  8822. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8823. continue;
  8824. delta = time_t_max / 997; /* a suitable prime number */
  8825. for (i = 0; i < N_STRINGS; i++)
  8826. {
  8827. if (tz_strings[i])
  8828. putenv (tz_strings[i]);
  8829. for (t = 0; t <= time_t_max - delta; t += delta)
  8830. mktime_test (t);
  8831. mktime_test ((time_t) 1);
  8832. mktime_test ((time_t) (60 * 60));
  8833. mktime_test ((time_t) (60 * 60 * 24));
  8834. for (j = 1; 0 < j; j *= 2)
  8835. bigtime_test (j);
  8836. bigtime_test (j - 1);
  8837. }
  8838. irix_6_4_bug ();
  8839. spring_forward_gap ();
  8840. exit (0);
  8841. }
  8842. _ACEOF
  8843. rm -f conftest$ac_exeext
  8844. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8845. (eval $ac_link) 2>&5
  8846. ac_status=$?
  8847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8848. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8850. (eval $ac_try) 2>&5
  8851. ac_status=$?
  8852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8853. (exit $ac_status); }; }; then
  8854. ac_cv_func_working_mktime=yes
  8855. else
  8856. echo "$as_me: program exited with status $ac_status" >&5
  8857. echo "$as_me: failed program was:" >&5
  8858. sed 's/^/| /' conftest.$ac_ext >&5
  8859. ( exit $ac_status )
  8860. ac_cv_func_working_mktime=no
  8861. fi
  8862. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8863. fi
  8864. fi
  8865. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8866. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8867. if test $ac_cv_func_working_mktime = no; then
  8868. case $LIBOBJS in
  8869. "mktime.$ac_objext" | \
  8870. *" mktime.$ac_objext" | \
  8871. "mktime.$ac_objext "* | \
  8872. *" mktime.$ac_objext "* ) ;;
  8873. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8874. esac
  8875. fi
  8876. for ac_header in stdlib.h unistd.h
  8877. do
  8878. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8879. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8880. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8882. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8883. echo $ECHO_N "(cached) $ECHO_C" >&6
  8884. fi
  8885. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8886. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8887. else
  8888. # Is the header compilable?
  8889. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8890. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8891. cat >conftest.$ac_ext <<_ACEOF
  8892. /* confdefs.h. */
  8893. _ACEOF
  8894. cat confdefs.h >>conftest.$ac_ext
  8895. cat >>conftest.$ac_ext <<_ACEOF
  8896. /* end confdefs.h. */
  8897. $ac_includes_default
  8898. #include <$ac_header>
  8899. _ACEOF
  8900. rm -f conftest.$ac_objext
  8901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8902. (eval $ac_compile) 2>conftest.er1
  8903. ac_status=$?
  8904. grep -v '^ *+' conftest.er1 >conftest.err
  8905. rm -f conftest.er1
  8906. cat conftest.err >&5
  8907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8908. (exit $ac_status); } &&
  8909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8911. (eval $ac_try) 2>&5
  8912. ac_status=$?
  8913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8914. (exit $ac_status); }; } &&
  8915. { ac_try='test -s conftest.$ac_objext'
  8916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8917. (eval $ac_try) 2>&5
  8918. ac_status=$?
  8919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8920. (exit $ac_status); }; }; then
  8921. ac_header_compiler=yes
  8922. else
  8923. echo "$as_me: failed program was:" >&5
  8924. sed 's/^/| /' conftest.$ac_ext >&5
  8925. ac_header_compiler=no
  8926. fi
  8927. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8928. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8929. echo "${ECHO_T}$ac_header_compiler" >&6
  8930. # Is the header present?
  8931. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8932. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8933. cat >conftest.$ac_ext <<_ACEOF
  8934. /* confdefs.h. */
  8935. _ACEOF
  8936. cat confdefs.h >>conftest.$ac_ext
  8937. cat >>conftest.$ac_ext <<_ACEOF
  8938. /* end confdefs.h. */
  8939. #include <$ac_header>
  8940. _ACEOF
  8941. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8942. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8943. ac_status=$?
  8944. grep -v '^ *+' conftest.er1 >conftest.err
  8945. rm -f conftest.er1
  8946. cat conftest.err >&5
  8947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. (exit $ac_status); } >/dev/null; then
  8949. if test -s conftest.err; then
  8950. ac_cpp_err=$ac_c_preproc_warn_flag
  8951. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8952. else
  8953. ac_cpp_err=
  8954. fi
  8955. else
  8956. ac_cpp_err=yes
  8957. fi
  8958. if test -z "$ac_cpp_err"; then
  8959. ac_header_preproc=yes
  8960. else
  8961. echo "$as_me: failed program was:" >&5
  8962. sed 's/^/| /' conftest.$ac_ext >&5
  8963. ac_header_preproc=no
  8964. fi
  8965. rm -f conftest.err conftest.$ac_ext
  8966. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8967. echo "${ECHO_T}$ac_header_preproc" >&6
  8968. # So? What about this header?
  8969. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8970. yes:no: )
  8971. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8972. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8973. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8974. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8975. ac_header_preproc=yes
  8976. ;;
  8977. no:yes:* )
  8978. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8979. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8980. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8981. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8982. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8983. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8984. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8985. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8986. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8987. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8988. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8989. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8990. (
  8991. cat <<\_ASBOX
  8992. ## ------------------------------------------ ##
  8993. ## Report this to the AC_PACKAGE_NAME lists. ##
  8994. ## ------------------------------------------ ##
  8995. _ASBOX
  8996. ) |
  8997. sed "s/^/$as_me: WARNING: /" >&2
  8998. ;;
  8999. esac
  9000. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9001. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9002. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9003. echo $ECHO_N "(cached) $ECHO_C" >&6
  9004. else
  9005. eval "$as_ac_Header=\$ac_header_preproc"
  9006. fi
  9007. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9008. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9009. fi
  9010. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9011. cat >>confdefs.h <<_ACEOF
  9012. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9013. _ACEOF
  9014. fi
  9015. done
  9016. for ac_func in getpagesize
  9017. do
  9018. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9019. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9020. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9021. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9022. echo $ECHO_N "(cached) $ECHO_C" >&6
  9023. else
  9024. cat >conftest.$ac_ext <<_ACEOF
  9025. /* confdefs.h. */
  9026. _ACEOF
  9027. cat confdefs.h >>conftest.$ac_ext
  9028. cat >>conftest.$ac_ext <<_ACEOF
  9029. /* end confdefs.h. */
  9030. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9031. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9032. #define $ac_func innocuous_$ac_func
  9033. /* System header to define __stub macros and hopefully few prototypes,
  9034. which can conflict with char $ac_func (); below.
  9035. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9036. <limits.h> exists even on freestanding compilers. */
  9037. #ifdef __STDC__
  9038. # include <limits.h>
  9039. #else
  9040. # include <assert.h>
  9041. #endif
  9042. #undef $ac_func
  9043. /* Override any gcc2 internal prototype to avoid an error. */
  9044. #ifdef __cplusplus
  9045. extern "C"
  9046. {
  9047. #endif
  9048. /* We use char because int might match the return type of a gcc2
  9049. builtin and then its argument prototype would still apply. */
  9050. char $ac_func ();
  9051. /* The GNU C library defines this for functions which it implements
  9052. to always fail with ENOSYS. Some functions are actually named
  9053. something starting with __ and the normal name is an alias. */
  9054. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9055. choke me
  9056. #else
  9057. char (*f) () = $ac_func;
  9058. #endif
  9059. #ifdef __cplusplus
  9060. }
  9061. #endif
  9062. int
  9063. main ()
  9064. {
  9065. return f != $ac_func;
  9066. ;
  9067. return 0;
  9068. }
  9069. _ACEOF
  9070. rm -f conftest.$ac_objext conftest$ac_exeext
  9071. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9072. (eval $ac_link) 2>conftest.er1
  9073. ac_status=$?
  9074. grep -v '^ *+' conftest.er1 >conftest.err
  9075. rm -f conftest.er1
  9076. cat conftest.err >&5
  9077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9078. (exit $ac_status); } &&
  9079. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9081. (eval $ac_try) 2>&5
  9082. ac_status=$?
  9083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9084. (exit $ac_status); }; } &&
  9085. { ac_try='test -s conftest$ac_exeext'
  9086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9087. (eval $ac_try) 2>&5
  9088. ac_status=$?
  9089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9090. (exit $ac_status); }; }; then
  9091. eval "$as_ac_var=yes"
  9092. else
  9093. echo "$as_me: failed program was:" >&5
  9094. sed 's/^/| /' conftest.$ac_ext >&5
  9095. eval "$as_ac_var=no"
  9096. fi
  9097. rm -f conftest.err conftest.$ac_objext \
  9098. conftest$ac_exeext conftest.$ac_ext
  9099. fi
  9100. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9101. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9102. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9103. cat >>confdefs.h <<_ACEOF
  9104. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9105. _ACEOF
  9106. fi
  9107. done
  9108. echo "$as_me:$LINENO: checking for working mmap" >&5
  9109. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9110. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9111. echo $ECHO_N "(cached) $ECHO_C" >&6
  9112. else
  9113. if test "$cross_compiling" = yes; then
  9114. ac_cv_func_mmap_fixed_mapped=no
  9115. else
  9116. cat >conftest.$ac_ext <<_ACEOF
  9117. /* confdefs.h. */
  9118. _ACEOF
  9119. cat confdefs.h >>conftest.$ac_ext
  9120. cat >>conftest.$ac_ext <<_ACEOF
  9121. /* end confdefs.h. */
  9122. $ac_includes_default
  9123. /* malloc might have been renamed as rpl_malloc. */
  9124. #undef malloc
  9125. /* Thanks to Mike Haertel and Jim Avera for this test.
  9126. Here is a matrix of mmap possibilities:
  9127. mmap private not fixed
  9128. mmap private fixed at somewhere currently unmapped
  9129. mmap private fixed at somewhere already mapped
  9130. mmap shared not fixed
  9131. mmap shared fixed at somewhere currently unmapped
  9132. mmap shared fixed at somewhere already mapped
  9133. For private mappings, we should verify that changes cannot be read()
  9134. back from the file, nor mmap's back from the file at a different
  9135. address. (There have been systems where private was not correctly
  9136. implemented like the infamous i386 svr4.0, and systems where the
  9137. VM page cache was not coherent with the file system buffer cache
  9138. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9139. For shared mappings, we should conversely verify that changes get
  9140. propagated back to all the places they're supposed to be.
  9141. Grep wants private fixed already mapped.
  9142. The main things grep needs to know about mmap are:
  9143. * does it exist and is it safe to write into the mmap'd area
  9144. * how to use it (BSD variants) */
  9145. #include <fcntl.h>
  9146. #include <sys/mman.h>
  9147. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9148. char *malloc ();
  9149. #endif
  9150. /* This mess was copied from the GNU getpagesize.h. */
  9151. #if !HAVE_GETPAGESIZE
  9152. /* Assume that all systems that can run configure have sys/param.h. */
  9153. # if !HAVE_SYS_PARAM_H
  9154. # define HAVE_SYS_PARAM_H 1
  9155. # endif
  9156. # ifdef _SC_PAGESIZE
  9157. # define getpagesize() sysconf(_SC_PAGESIZE)
  9158. # else /* no _SC_PAGESIZE */
  9159. # if HAVE_SYS_PARAM_H
  9160. # include <sys/param.h>
  9161. # ifdef EXEC_PAGESIZE
  9162. # define getpagesize() EXEC_PAGESIZE
  9163. # else /* no EXEC_PAGESIZE */
  9164. # ifdef NBPG
  9165. # define getpagesize() NBPG * CLSIZE
  9166. # ifndef CLSIZE
  9167. # define CLSIZE 1
  9168. # endif /* no CLSIZE */
  9169. # else /* no NBPG */
  9170. # ifdef NBPC
  9171. # define getpagesize() NBPC
  9172. # else /* no NBPC */
  9173. # ifdef PAGESIZE
  9174. # define getpagesize() PAGESIZE
  9175. # endif /* PAGESIZE */
  9176. # endif /* no NBPC */
  9177. # endif /* no NBPG */
  9178. # endif /* no EXEC_PAGESIZE */
  9179. # else /* no HAVE_SYS_PARAM_H */
  9180. # define getpagesize() 8192 /* punt totally */
  9181. # endif /* no HAVE_SYS_PARAM_H */
  9182. # endif /* no _SC_PAGESIZE */
  9183. #endif /* no HAVE_GETPAGESIZE */
  9184. int
  9185. main ()
  9186. {
  9187. char *data, *data2, *data3;
  9188. int i, pagesize;
  9189. int fd;
  9190. pagesize = getpagesize ();
  9191. /* First, make a file with some known garbage in it. */
  9192. data = (char *) malloc (pagesize);
  9193. if (!data)
  9194. exit (1);
  9195. for (i = 0; i < pagesize; ++i)
  9196. *(data + i) = rand ();
  9197. umask (0);
  9198. fd = creat ("conftest.mmap", 0600);
  9199. if (fd < 0)
  9200. exit (1);
  9201. if (write (fd, data, pagesize) != pagesize)
  9202. exit (1);
  9203. close (fd);
  9204. /* Next, try to mmap the file at a fixed address which already has
  9205. something else allocated at it. If we can, also make sure that
  9206. we see the same garbage. */
  9207. fd = open ("conftest.mmap", O_RDWR);
  9208. if (fd < 0)
  9209. exit (1);
  9210. data2 = (char *) malloc (2 * pagesize);
  9211. if (!data2)
  9212. exit (1);
  9213. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9214. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9215. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9216. exit (1);
  9217. for (i = 0; i < pagesize; ++i)
  9218. if (*(data + i) != *(data2 + i))
  9219. exit (1);
  9220. /* Finally, make sure that changes to the mapped area do not
  9221. percolate back to the file as seen by read(). (This is a bug on
  9222. some variants of i386 svr4.0.) */
  9223. for (i = 0; i < pagesize; ++i)
  9224. *(data2 + i) = *(data2 + i) + 1;
  9225. data3 = (char *) malloc (pagesize);
  9226. if (!data3)
  9227. exit (1);
  9228. if (read (fd, data3, pagesize) != pagesize)
  9229. exit (1);
  9230. for (i = 0; i < pagesize; ++i)
  9231. if (*(data + i) != *(data3 + i))
  9232. exit (1);
  9233. close (fd);
  9234. exit (0);
  9235. }
  9236. _ACEOF
  9237. rm -f conftest$ac_exeext
  9238. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9239. (eval $ac_link) 2>&5
  9240. ac_status=$?
  9241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9242. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9244. (eval $ac_try) 2>&5
  9245. ac_status=$?
  9246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9247. (exit $ac_status); }; }; then
  9248. ac_cv_func_mmap_fixed_mapped=yes
  9249. else
  9250. echo "$as_me: program exited with status $ac_status" >&5
  9251. echo "$as_me: failed program was:" >&5
  9252. sed 's/^/| /' conftest.$ac_ext >&5
  9253. ( exit $ac_status )
  9254. ac_cv_func_mmap_fixed_mapped=no
  9255. fi
  9256. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9257. fi
  9258. fi
  9259. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9260. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9261. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9262. cat >>confdefs.h <<\_ACEOF
  9263. #define HAVE_MMAP 1
  9264. _ACEOF
  9265. fi
  9266. rm -f conftest.mmap
  9267. for ac_header in stdlib.h
  9268. do
  9269. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9270. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9271. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9272. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9273. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9274. echo $ECHO_N "(cached) $ECHO_C" >&6
  9275. fi
  9276. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9277. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9278. else
  9279. # Is the header compilable?
  9280. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9281. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9282. cat >conftest.$ac_ext <<_ACEOF
  9283. /* confdefs.h. */
  9284. _ACEOF
  9285. cat confdefs.h >>conftest.$ac_ext
  9286. cat >>conftest.$ac_ext <<_ACEOF
  9287. /* end confdefs.h. */
  9288. $ac_includes_default
  9289. #include <$ac_header>
  9290. _ACEOF
  9291. rm -f conftest.$ac_objext
  9292. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9293. (eval $ac_compile) 2>conftest.er1
  9294. ac_status=$?
  9295. grep -v '^ *+' conftest.er1 >conftest.err
  9296. rm -f conftest.er1
  9297. cat conftest.err >&5
  9298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9299. (exit $ac_status); } &&
  9300. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9302. (eval $ac_try) 2>&5
  9303. ac_status=$?
  9304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9305. (exit $ac_status); }; } &&
  9306. { ac_try='test -s conftest.$ac_objext'
  9307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9308. (eval $ac_try) 2>&5
  9309. ac_status=$?
  9310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9311. (exit $ac_status); }; }; then
  9312. ac_header_compiler=yes
  9313. else
  9314. echo "$as_me: failed program was:" >&5
  9315. sed 's/^/| /' conftest.$ac_ext >&5
  9316. ac_header_compiler=no
  9317. fi
  9318. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9319. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9320. echo "${ECHO_T}$ac_header_compiler" >&6
  9321. # Is the header present?
  9322. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9323. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9324. cat >conftest.$ac_ext <<_ACEOF
  9325. /* confdefs.h. */
  9326. _ACEOF
  9327. cat confdefs.h >>conftest.$ac_ext
  9328. cat >>conftest.$ac_ext <<_ACEOF
  9329. /* end confdefs.h. */
  9330. #include <$ac_header>
  9331. _ACEOF
  9332. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9333. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9334. ac_status=$?
  9335. grep -v '^ *+' conftest.er1 >conftest.err
  9336. rm -f conftest.er1
  9337. cat conftest.err >&5
  9338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9339. (exit $ac_status); } >/dev/null; then
  9340. if test -s conftest.err; then
  9341. ac_cpp_err=$ac_c_preproc_warn_flag
  9342. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9343. else
  9344. ac_cpp_err=
  9345. fi
  9346. else
  9347. ac_cpp_err=yes
  9348. fi
  9349. if test -z "$ac_cpp_err"; then
  9350. ac_header_preproc=yes
  9351. else
  9352. echo "$as_me: failed program was:" >&5
  9353. sed 's/^/| /' conftest.$ac_ext >&5
  9354. ac_header_preproc=no
  9355. fi
  9356. rm -f conftest.err conftest.$ac_ext
  9357. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9358. echo "${ECHO_T}$ac_header_preproc" >&6
  9359. # So? What about this header?
  9360. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9361. yes:no: )
  9362. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9363. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9364. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9365. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9366. ac_header_preproc=yes
  9367. ;;
  9368. no:yes:* )
  9369. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9370. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9371. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9372. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9373. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9374. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9375. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9376. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9377. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9378. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9379. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9380. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9381. (
  9382. cat <<\_ASBOX
  9383. ## ------------------------------------------ ##
  9384. ## Report this to the AC_PACKAGE_NAME lists. ##
  9385. ## ------------------------------------------ ##
  9386. _ASBOX
  9387. ) |
  9388. sed "s/^/$as_me: WARNING: /" >&2
  9389. ;;
  9390. esac
  9391. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9392. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9393. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9394. echo $ECHO_N "(cached) $ECHO_C" >&6
  9395. else
  9396. eval "$as_ac_Header=\$ac_header_preproc"
  9397. fi
  9398. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9399. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9400. fi
  9401. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9402. cat >>confdefs.h <<_ACEOF
  9403. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9404. _ACEOF
  9405. fi
  9406. done
  9407. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9408. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9409. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9410. echo $ECHO_N "(cached) $ECHO_C" >&6
  9411. else
  9412. if test "$cross_compiling" = yes; then
  9413. ac_cv_func_realloc_0_nonnull=no
  9414. else
  9415. cat >conftest.$ac_ext <<_ACEOF
  9416. /* confdefs.h. */
  9417. _ACEOF
  9418. cat confdefs.h >>conftest.$ac_ext
  9419. cat >>conftest.$ac_ext <<_ACEOF
  9420. /* end confdefs.h. */
  9421. #if STDC_HEADERS || HAVE_STDLIB_H
  9422. # include <stdlib.h>
  9423. #else
  9424. char *realloc ();
  9425. #endif
  9426. int
  9427. main ()
  9428. {
  9429. exit (realloc (0, 0) ? 0 : 1);
  9430. ;
  9431. return 0;
  9432. }
  9433. _ACEOF
  9434. rm -f conftest$ac_exeext
  9435. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9436. (eval $ac_link) 2>&5
  9437. ac_status=$?
  9438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9439. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9441. (eval $ac_try) 2>&5
  9442. ac_status=$?
  9443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9444. (exit $ac_status); }; }; then
  9445. ac_cv_func_realloc_0_nonnull=yes
  9446. else
  9447. echo "$as_me: program exited with status $ac_status" >&5
  9448. echo "$as_me: failed program was:" >&5
  9449. sed 's/^/| /' conftest.$ac_ext >&5
  9450. ( exit $ac_status )
  9451. ac_cv_func_realloc_0_nonnull=no
  9452. fi
  9453. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9454. fi
  9455. fi
  9456. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9457. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9458. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9459. cat >>confdefs.h <<\_ACEOF
  9460. #define HAVE_REALLOC 1
  9461. _ACEOF
  9462. else
  9463. cat >>confdefs.h <<\_ACEOF
  9464. #define HAVE_REALLOC 0
  9465. _ACEOF
  9466. case $LIBOBJS in
  9467. "realloc.$ac_objext" | \
  9468. *" realloc.$ac_objext" | \
  9469. "realloc.$ac_objext "* | \
  9470. *" realloc.$ac_objext "* ) ;;
  9471. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9472. esac
  9473. cat >>confdefs.h <<\_ACEOF
  9474. #define realloc rpl_realloc
  9475. _ACEOF
  9476. fi
  9477. for ac_header in sys/select.h sys/socket.h
  9478. do
  9479. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9480. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9481. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9482. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9483. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9484. echo $ECHO_N "(cached) $ECHO_C" >&6
  9485. fi
  9486. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9487. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9488. else
  9489. # Is the header compilable?
  9490. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9491. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9492. cat >conftest.$ac_ext <<_ACEOF
  9493. /* confdefs.h. */
  9494. _ACEOF
  9495. cat confdefs.h >>conftest.$ac_ext
  9496. cat >>conftest.$ac_ext <<_ACEOF
  9497. /* end confdefs.h. */
  9498. $ac_includes_default
  9499. #include <$ac_header>
  9500. _ACEOF
  9501. rm -f conftest.$ac_objext
  9502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9503. (eval $ac_compile) 2>conftest.er1
  9504. ac_status=$?
  9505. grep -v '^ *+' conftest.er1 >conftest.err
  9506. rm -f conftest.er1
  9507. cat conftest.err >&5
  9508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9509. (exit $ac_status); } &&
  9510. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9512. (eval $ac_try) 2>&5
  9513. ac_status=$?
  9514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9515. (exit $ac_status); }; } &&
  9516. { ac_try='test -s conftest.$ac_objext'
  9517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9518. (eval $ac_try) 2>&5
  9519. ac_status=$?
  9520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9521. (exit $ac_status); }; }; then
  9522. ac_header_compiler=yes
  9523. else
  9524. echo "$as_me: failed program was:" >&5
  9525. sed 's/^/| /' conftest.$ac_ext >&5
  9526. ac_header_compiler=no
  9527. fi
  9528. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9529. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9530. echo "${ECHO_T}$ac_header_compiler" >&6
  9531. # Is the header present?
  9532. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9533. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9534. cat >conftest.$ac_ext <<_ACEOF
  9535. /* confdefs.h. */
  9536. _ACEOF
  9537. cat confdefs.h >>conftest.$ac_ext
  9538. cat >>conftest.$ac_ext <<_ACEOF
  9539. /* end confdefs.h. */
  9540. #include <$ac_header>
  9541. _ACEOF
  9542. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9543. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9544. ac_status=$?
  9545. grep -v '^ *+' conftest.er1 >conftest.err
  9546. rm -f conftest.er1
  9547. cat conftest.err >&5
  9548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9549. (exit $ac_status); } >/dev/null; then
  9550. if test -s conftest.err; then
  9551. ac_cpp_err=$ac_c_preproc_warn_flag
  9552. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9553. else
  9554. ac_cpp_err=
  9555. fi
  9556. else
  9557. ac_cpp_err=yes
  9558. fi
  9559. if test -z "$ac_cpp_err"; then
  9560. ac_header_preproc=yes
  9561. else
  9562. echo "$as_me: failed program was:" >&5
  9563. sed 's/^/| /' conftest.$ac_ext >&5
  9564. ac_header_preproc=no
  9565. fi
  9566. rm -f conftest.err conftest.$ac_ext
  9567. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9568. echo "${ECHO_T}$ac_header_preproc" >&6
  9569. # So? What about this header?
  9570. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9571. yes:no: )
  9572. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9573. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9574. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9575. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9576. ac_header_preproc=yes
  9577. ;;
  9578. no:yes:* )
  9579. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9580. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9581. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9582. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9583. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9584. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9585. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9586. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9587. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9588. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9589. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9590. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9591. (
  9592. cat <<\_ASBOX
  9593. ## ------------------------------------------ ##
  9594. ## Report this to the AC_PACKAGE_NAME lists. ##
  9595. ## ------------------------------------------ ##
  9596. _ASBOX
  9597. ) |
  9598. sed "s/^/$as_me: WARNING: /" >&2
  9599. ;;
  9600. esac
  9601. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9602. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9603. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9604. echo $ECHO_N "(cached) $ECHO_C" >&6
  9605. else
  9606. eval "$as_ac_Header=\$ac_header_preproc"
  9607. fi
  9608. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9609. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9610. fi
  9611. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9612. cat >>confdefs.h <<_ACEOF
  9613. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9614. _ACEOF
  9615. fi
  9616. done
  9617. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9618. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9619. if test "${ac_cv_func_select_args+set}" = set; then
  9620. echo $ECHO_N "(cached) $ECHO_C" >&6
  9621. else
  9622. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9623. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9624. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9625. cat >conftest.$ac_ext <<_ACEOF
  9626. /* confdefs.h. */
  9627. _ACEOF
  9628. cat confdefs.h >>conftest.$ac_ext
  9629. cat >>conftest.$ac_ext <<_ACEOF
  9630. /* end confdefs.h. */
  9631. $ac_includes_default
  9632. #if HAVE_SYS_SELECT_H
  9633. # include <sys/select.h>
  9634. #endif
  9635. #if HAVE_SYS_SOCKET_H
  9636. # include <sys/socket.h>
  9637. #endif
  9638. int
  9639. main ()
  9640. {
  9641. extern int select ($ac_arg1,
  9642. $ac_arg234, $ac_arg234, $ac_arg234,
  9643. $ac_arg5);
  9644. ;
  9645. return 0;
  9646. }
  9647. _ACEOF
  9648. rm -f conftest.$ac_objext
  9649. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9650. (eval $ac_compile) 2>conftest.er1
  9651. ac_status=$?
  9652. grep -v '^ *+' conftest.er1 >conftest.err
  9653. rm -f conftest.er1
  9654. cat conftest.err >&5
  9655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9656. (exit $ac_status); } &&
  9657. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9659. (eval $ac_try) 2>&5
  9660. ac_status=$?
  9661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9662. (exit $ac_status); }; } &&
  9663. { ac_try='test -s conftest.$ac_objext'
  9664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9665. (eval $ac_try) 2>&5
  9666. ac_status=$?
  9667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9668. (exit $ac_status); }; }; then
  9669. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9670. else
  9671. echo "$as_me: failed program was:" >&5
  9672. sed 's/^/| /' conftest.$ac_ext >&5
  9673. fi
  9674. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9675. done
  9676. done
  9677. done
  9678. # Provide a safe default value.
  9679. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9680. fi
  9681. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9682. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9683. ac_save_IFS=$IFS; IFS=','
  9684. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9685. IFS=$ac_save_IFS
  9686. shift
  9687. cat >>confdefs.h <<_ACEOF
  9688. #define SELECT_TYPE_ARG1 $1
  9689. _ACEOF
  9690. cat >>confdefs.h <<_ACEOF
  9691. #define SELECT_TYPE_ARG234 ($2)
  9692. _ACEOF
  9693. cat >>confdefs.h <<_ACEOF
  9694. #define SELECT_TYPE_ARG5 ($3)
  9695. _ACEOF
  9696. rm -f conftest*
  9697. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9698. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9699. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9700. echo $ECHO_N "(cached) $ECHO_C" >&6
  9701. else
  9702. if test "$cross_compiling" = yes; then
  9703. ac_cv_func_stat_empty_string_bug=yes
  9704. else
  9705. cat >conftest.$ac_ext <<_ACEOF
  9706. /* confdefs.h. */
  9707. _ACEOF
  9708. cat confdefs.h >>conftest.$ac_ext
  9709. cat >>conftest.$ac_ext <<_ACEOF
  9710. /* end confdefs.h. */
  9711. $ac_includes_default
  9712. int
  9713. main ()
  9714. {
  9715. struct stat sbuf;
  9716. exit (stat ("", &sbuf) ? 1 : 0);
  9717. ;
  9718. return 0;
  9719. }
  9720. _ACEOF
  9721. rm -f conftest$ac_exeext
  9722. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9723. (eval $ac_link) 2>&5
  9724. ac_status=$?
  9725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9726. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9728. (eval $ac_try) 2>&5
  9729. ac_status=$?
  9730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9731. (exit $ac_status); }; }; then
  9732. ac_cv_func_stat_empty_string_bug=yes
  9733. else
  9734. echo "$as_me: program exited with status $ac_status" >&5
  9735. echo "$as_me: failed program was:" >&5
  9736. sed 's/^/| /' conftest.$ac_ext >&5
  9737. ( exit $ac_status )
  9738. ac_cv_func_stat_empty_string_bug=no
  9739. fi
  9740. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9741. fi
  9742. fi
  9743. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9744. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9745. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9746. case $LIBOBJS in
  9747. "stat.$ac_objext" | \
  9748. *" stat.$ac_objext" | \
  9749. "stat.$ac_objext "* | \
  9750. *" stat.$ac_objext "* ) ;;
  9751. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9752. esac
  9753. cat >>confdefs.h <<_ACEOF
  9754. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9755. _ACEOF
  9756. fi
  9757. for ac_func in strftime
  9758. do
  9759. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9760. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9761. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9762. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9763. echo $ECHO_N "(cached) $ECHO_C" >&6
  9764. else
  9765. cat >conftest.$ac_ext <<_ACEOF
  9766. /* confdefs.h. */
  9767. _ACEOF
  9768. cat confdefs.h >>conftest.$ac_ext
  9769. cat >>conftest.$ac_ext <<_ACEOF
  9770. /* end confdefs.h. */
  9771. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9772. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9773. #define $ac_func innocuous_$ac_func
  9774. /* System header to define __stub macros and hopefully few prototypes,
  9775. which can conflict with char $ac_func (); below.
  9776. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9777. <limits.h> exists even on freestanding compilers. */
  9778. #ifdef __STDC__
  9779. # include <limits.h>
  9780. #else
  9781. # include <assert.h>
  9782. #endif
  9783. #undef $ac_func
  9784. /* Override any gcc2 internal prototype to avoid an error. */
  9785. #ifdef __cplusplus
  9786. extern "C"
  9787. {
  9788. #endif
  9789. /* We use char because int might match the return type of a gcc2
  9790. builtin and then its argument prototype would still apply. */
  9791. char $ac_func ();
  9792. /* The GNU C library defines this for functions which it implements
  9793. to always fail with ENOSYS. Some functions are actually named
  9794. something starting with __ and the normal name is an alias. */
  9795. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9796. choke me
  9797. #else
  9798. char (*f) () = $ac_func;
  9799. #endif
  9800. #ifdef __cplusplus
  9801. }
  9802. #endif
  9803. int
  9804. main ()
  9805. {
  9806. return f != $ac_func;
  9807. ;
  9808. return 0;
  9809. }
  9810. _ACEOF
  9811. rm -f conftest.$ac_objext conftest$ac_exeext
  9812. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9813. (eval $ac_link) 2>conftest.er1
  9814. ac_status=$?
  9815. grep -v '^ *+' conftest.er1 >conftest.err
  9816. rm -f conftest.er1
  9817. cat conftest.err >&5
  9818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9819. (exit $ac_status); } &&
  9820. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9822. (eval $ac_try) 2>&5
  9823. ac_status=$?
  9824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9825. (exit $ac_status); }; } &&
  9826. { ac_try='test -s conftest$ac_exeext'
  9827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9828. (eval $ac_try) 2>&5
  9829. ac_status=$?
  9830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9831. (exit $ac_status); }; }; then
  9832. eval "$as_ac_var=yes"
  9833. else
  9834. echo "$as_me: failed program was:" >&5
  9835. sed 's/^/| /' conftest.$ac_ext >&5
  9836. eval "$as_ac_var=no"
  9837. fi
  9838. rm -f conftest.err conftest.$ac_objext \
  9839. conftest$ac_exeext conftest.$ac_ext
  9840. fi
  9841. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9842. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9843. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9844. cat >>confdefs.h <<_ACEOF
  9845. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9846. _ACEOF
  9847. else
  9848. # strftime is in -lintl on SCO UNIX.
  9849. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9850. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9851. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9852. echo $ECHO_N "(cached) $ECHO_C" >&6
  9853. else
  9854. ac_check_lib_save_LIBS=$LIBS
  9855. LIBS="-lintl $LIBS"
  9856. cat >conftest.$ac_ext <<_ACEOF
  9857. /* confdefs.h. */
  9858. _ACEOF
  9859. cat confdefs.h >>conftest.$ac_ext
  9860. cat >>conftest.$ac_ext <<_ACEOF
  9861. /* end confdefs.h. */
  9862. /* Override any gcc2 internal prototype to avoid an error. */
  9863. #ifdef __cplusplus
  9864. extern "C"
  9865. #endif
  9866. /* We use char because int might match the return type of a gcc2
  9867. builtin and then its argument prototype would still apply. */
  9868. char strftime ();
  9869. int
  9870. main ()
  9871. {
  9872. strftime ();
  9873. ;
  9874. return 0;
  9875. }
  9876. _ACEOF
  9877. rm -f conftest.$ac_objext conftest$ac_exeext
  9878. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9879. (eval $ac_link) 2>conftest.er1
  9880. ac_status=$?
  9881. grep -v '^ *+' conftest.er1 >conftest.err
  9882. rm -f conftest.er1
  9883. cat conftest.err >&5
  9884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9885. (exit $ac_status); } &&
  9886. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9888. (eval $ac_try) 2>&5
  9889. ac_status=$?
  9890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9891. (exit $ac_status); }; } &&
  9892. { ac_try='test -s conftest$ac_exeext'
  9893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9894. (eval $ac_try) 2>&5
  9895. ac_status=$?
  9896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9897. (exit $ac_status); }; }; then
  9898. ac_cv_lib_intl_strftime=yes
  9899. else
  9900. echo "$as_me: failed program was:" >&5
  9901. sed 's/^/| /' conftest.$ac_ext >&5
  9902. ac_cv_lib_intl_strftime=no
  9903. fi
  9904. rm -f conftest.err conftest.$ac_objext \
  9905. conftest$ac_exeext conftest.$ac_ext
  9906. LIBS=$ac_check_lib_save_LIBS
  9907. fi
  9908. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9909. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9910. if test $ac_cv_lib_intl_strftime = yes; then
  9911. cat >>confdefs.h <<\_ACEOF
  9912. #define HAVE_STRFTIME 1
  9913. _ACEOF
  9914. LIBS="-lintl $LIBS"
  9915. fi
  9916. fi
  9917. done
  9918. #checkpoint
  9919. cat >confcache <<\_ACEOF
  9920. # This file is a shell script that caches the results of configure
  9921. # tests run on this system so they can be shared between configure
  9922. # scripts and configure runs, see configure's option --config-cache.
  9923. # It is not useful on other systems. If it contains results you don't
  9924. # want to keep, you may remove or edit it.
  9925. #
  9926. # config.status only pays attention to the cache file if you give it
  9927. # the --recheck option to rerun configure.
  9928. #
  9929. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9930. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9931. # following values.
  9932. _ACEOF
  9933. # The following way of writing the cache mishandles newlines in values,
  9934. # but we know of no workaround that is simple, portable, and efficient.
  9935. # So, don't put newlines in cache variables' values.
  9936. # Ultrix sh set writes to stderr and can't be redirected directly,
  9937. # and sets the high bit in the cache file unless we assign to the vars.
  9938. {
  9939. (set) 2>&1 |
  9940. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9941. *ac_space=\ *)
  9942. # `set' does not quote correctly, so add quotes (double-quote
  9943. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9944. sed -n \
  9945. "s/'/'\\\\''/g;
  9946. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9947. ;;
  9948. *)
  9949. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9950. sed -n \
  9951. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9952. ;;
  9953. esac;
  9954. } |
  9955. sed '
  9956. t clear
  9957. : clear
  9958. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9959. t end
  9960. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9961. : end' >>confcache
  9962. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9963. if test -w $cache_file; then
  9964. test "x$cache_file" != "x/dev/null"
  9965. cat confcache >$cache_file
  9966. else
  9967. echo "not updating unwritable cache $cache_file"
  9968. fi
  9969. fi
  9970. rm -f confcache
  9971. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  9972. do
  9973. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9974. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9975. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9976. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9977. echo $ECHO_N "(cached) $ECHO_C" >&6
  9978. else
  9979. cat >conftest.$ac_ext <<_ACEOF
  9980. /* confdefs.h. */
  9981. _ACEOF
  9982. cat confdefs.h >>conftest.$ac_ext
  9983. cat >>conftest.$ac_ext <<_ACEOF
  9984. /* end confdefs.h. */
  9985. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9986. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9987. #define $ac_func innocuous_$ac_func
  9988. /* System header to define __stub macros and hopefully few prototypes,
  9989. which can conflict with char $ac_func (); below.
  9990. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9991. <limits.h> exists even on freestanding compilers. */
  9992. #ifdef __STDC__
  9993. # include <limits.h>
  9994. #else
  9995. # include <assert.h>
  9996. #endif
  9997. #undef $ac_func
  9998. /* Override any gcc2 internal prototype to avoid an error. */
  9999. #ifdef __cplusplus
  10000. extern "C"
  10001. {
  10002. #endif
  10003. /* We use char because int might match the return type of a gcc2
  10004. builtin and then its argument prototype would still apply. */
  10005. char $ac_func ();
  10006. /* The GNU C library defines this for functions which it implements
  10007. to always fail with ENOSYS. Some functions are actually named
  10008. something starting with __ and the normal name is an alias. */
  10009. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10010. choke me
  10011. #else
  10012. char (*f) () = $ac_func;
  10013. #endif
  10014. #ifdef __cplusplus
  10015. }
  10016. #endif
  10017. int
  10018. main ()
  10019. {
  10020. return f != $ac_func;
  10021. ;
  10022. return 0;
  10023. }
  10024. _ACEOF
  10025. rm -f conftest.$ac_objext conftest$ac_exeext
  10026. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10027. (eval $ac_link) 2>conftest.er1
  10028. ac_status=$?
  10029. grep -v '^ *+' conftest.er1 >conftest.err
  10030. rm -f conftest.er1
  10031. cat conftest.err >&5
  10032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10033. (exit $ac_status); } &&
  10034. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10036. (eval $ac_try) 2>&5
  10037. ac_status=$?
  10038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10039. (exit $ac_status); }; } &&
  10040. { ac_try='test -s conftest$ac_exeext'
  10041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10042. (eval $ac_try) 2>&5
  10043. ac_status=$?
  10044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10045. (exit $ac_status); }; }; then
  10046. eval "$as_ac_var=yes"
  10047. else
  10048. echo "$as_me: failed program was:" >&5
  10049. sed 's/^/| /' conftest.$ac_ext >&5
  10050. eval "$as_ac_var=no"
  10051. fi
  10052. rm -f conftest.err conftest.$ac_objext \
  10053. conftest$ac_exeext conftest.$ac_ext
  10054. fi
  10055. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10056. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10057. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10058. cat >>confdefs.h <<_ACEOF
  10059. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10060. _ACEOF
  10061. fi
  10062. done
  10063. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10064. do
  10065. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10066. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10067. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10068. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10069. echo $ECHO_N "(cached) $ECHO_C" >&6
  10070. else
  10071. cat >conftest.$ac_ext <<_ACEOF
  10072. /* confdefs.h. */
  10073. _ACEOF
  10074. cat confdefs.h >>conftest.$ac_ext
  10075. cat >>conftest.$ac_ext <<_ACEOF
  10076. /* end confdefs.h. */
  10077. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10078. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10079. #define $ac_func innocuous_$ac_func
  10080. /* System header to define __stub macros and hopefully few prototypes,
  10081. which can conflict with char $ac_func (); below.
  10082. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10083. <limits.h> exists even on freestanding compilers. */
  10084. #ifdef __STDC__
  10085. # include <limits.h>
  10086. #else
  10087. # include <assert.h>
  10088. #endif
  10089. #undef $ac_func
  10090. /* Override any gcc2 internal prototype to avoid an error. */
  10091. #ifdef __cplusplus
  10092. extern "C"
  10093. {
  10094. #endif
  10095. /* We use char because int might match the return type of a gcc2
  10096. builtin and then its argument prototype would still apply. */
  10097. char $ac_func ();
  10098. /* The GNU C library defines this for functions which it implements
  10099. to always fail with ENOSYS. Some functions are actually named
  10100. something starting with __ and the normal name is an alias. */
  10101. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10102. choke me
  10103. #else
  10104. char (*f) () = $ac_func;
  10105. #endif
  10106. #ifdef __cplusplus
  10107. }
  10108. #endif
  10109. int
  10110. main ()
  10111. {
  10112. return f != $ac_func;
  10113. ;
  10114. return 0;
  10115. }
  10116. _ACEOF
  10117. rm -f conftest.$ac_objext conftest$ac_exeext
  10118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10119. (eval $ac_link) 2>conftest.er1
  10120. ac_status=$?
  10121. grep -v '^ *+' conftest.er1 >conftest.err
  10122. rm -f conftest.er1
  10123. cat conftest.err >&5
  10124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10125. (exit $ac_status); } &&
  10126. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10128. (eval $ac_try) 2>&5
  10129. ac_status=$?
  10130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10131. (exit $ac_status); }; } &&
  10132. { ac_try='test -s conftest$ac_exeext'
  10133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10134. (eval $ac_try) 2>&5
  10135. ac_status=$?
  10136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10137. (exit $ac_status); }; }; then
  10138. eval "$as_ac_var=yes"
  10139. else
  10140. echo "$as_me: failed program was:" >&5
  10141. sed 's/^/| /' conftest.$ac_ext >&5
  10142. eval "$as_ac_var=no"
  10143. fi
  10144. rm -f conftest.err conftest.$ac_objext \
  10145. conftest$ac_exeext conftest.$ac_ext
  10146. fi
  10147. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10148. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10149. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10150. cat >>confdefs.h <<_ACEOF
  10151. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10152. _ACEOF
  10153. fi
  10154. done
  10155. #checkpoint
  10156. cat >confcache <<\_ACEOF
  10157. # This file is a shell script that caches the results of configure
  10158. # tests run on this system so they can be shared between configure
  10159. # scripts and configure runs, see configure's option --config-cache.
  10160. # It is not useful on other systems. If it contains results you don't
  10161. # want to keep, you may remove or edit it.
  10162. #
  10163. # config.status only pays attention to the cache file if you give it
  10164. # the --recheck option to rerun configure.
  10165. #
  10166. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10167. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10168. # following values.
  10169. _ACEOF
  10170. # The following way of writing the cache mishandles newlines in values,
  10171. # but we know of no workaround that is simple, portable, and efficient.
  10172. # So, don't put newlines in cache variables' values.
  10173. # Ultrix sh set writes to stderr and can't be redirected directly,
  10174. # and sets the high bit in the cache file unless we assign to the vars.
  10175. {
  10176. (set) 2>&1 |
  10177. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10178. *ac_space=\ *)
  10179. # `set' does not quote correctly, so add quotes (double-quote
  10180. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10181. sed -n \
  10182. "s/'/'\\\\''/g;
  10183. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10184. ;;
  10185. *)
  10186. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10187. sed -n \
  10188. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10189. ;;
  10190. esac;
  10191. } |
  10192. sed '
  10193. t clear
  10194. : clear
  10195. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10196. t end
  10197. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10198. : end' >>confcache
  10199. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10200. if test -w $cache_file; then
  10201. test "x$cache_file" != "x/dev/null"
  10202. cat confcache >$cache_file
  10203. else
  10204. echo "not updating unwritable cache $cache_file"
  10205. fi
  10206. fi
  10207. rm -f confcache
  10208. for ac_func in strcasecmp strncasecmp vsnprintf
  10209. do
  10210. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10211. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10212. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10213. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10214. echo $ECHO_N "(cached) $ECHO_C" >&6
  10215. else
  10216. cat >conftest.$ac_ext <<_ACEOF
  10217. /* confdefs.h. */
  10218. _ACEOF
  10219. cat confdefs.h >>conftest.$ac_ext
  10220. cat >>conftest.$ac_ext <<_ACEOF
  10221. /* end confdefs.h. */
  10222. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10223. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10224. #define $ac_func innocuous_$ac_func
  10225. /* System header to define __stub macros and hopefully few prototypes,
  10226. which can conflict with char $ac_func (); below.
  10227. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10228. <limits.h> exists even on freestanding compilers. */
  10229. #ifdef __STDC__
  10230. # include <limits.h>
  10231. #else
  10232. # include <assert.h>
  10233. #endif
  10234. #undef $ac_func
  10235. /* Override any gcc2 internal prototype to avoid an error. */
  10236. #ifdef __cplusplus
  10237. extern "C"
  10238. {
  10239. #endif
  10240. /* We use char because int might match the return type of a gcc2
  10241. builtin and then its argument prototype would still apply. */
  10242. char $ac_func ();
  10243. /* The GNU C library defines this for functions which it implements
  10244. to always fail with ENOSYS. Some functions are actually named
  10245. something starting with __ and the normal name is an alias. */
  10246. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10247. choke me
  10248. #else
  10249. char (*f) () = $ac_func;
  10250. #endif
  10251. #ifdef __cplusplus
  10252. }
  10253. #endif
  10254. int
  10255. main ()
  10256. {
  10257. return f != $ac_func;
  10258. ;
  10259. return 0;
  10260. }
  10261. _ACEOF
  10262. rm -f conftest.$ac_objext conftest$ac_exeext
  10263. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10264. (eval $ac_link) 2>conftest.er1
  10265. ac_status=$?
  10266. grep -v '^ *+' conftest.er1 >conftest.err
  10267. rm -f conftest.er1
  10268. cat conftest.err >&5
  10269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10270. (exit $ac_status); } &&
  10271. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10273. (eval $ac_try) 2>&5
  10274. ac_status=$?
  10275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10276. (exit $ac_status); }; } &&
  10277. { ac_try='test -s conftest$ac_exeext'
  10278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10279. (eval $ac_try) 2>&5
  10280. ac_status=$?
  10281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10282. (exit $ac_status); }; }; then
  10283. eval "$as_ac_var=yes"
  10284. else
  10285. echo "$as_me: failed program was:" >&5
  10286. sed 's/^/| /' conftest.$ac_ext >&5
  10287. eval "$as_ac_var=no"
  10288. fi
  10289. rm -f conftest.err conftest.$ac_objext \
  10290. conftest$ac_exeext conftest.$ac_ext
  10291. fi
  10292. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10293. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10294. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10295. cat >>confdefs.h <<_ACEOF
  10296. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10297. _ACEOF
  10298. fi
  10299. done
  10300. #autoscan suggested this....
  10301. #These are recommended by autoscan, but no code supports it currently
  10302. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen
  10303. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10304. for ac_func in vsprintf
  10305. do
  10306. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10307. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10308. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10309. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10310. echo $ECHO_N "(cached) $ECHO_C" >&6
  10311. else
  10312. cat >conftest.$ac_ext <<_ACEOF
  10313. /* confdefs.h. */
  10314. _ACEOF
  10315. cat confdefs.h >>conftest.$ac_ext
  10316. cat >>conftest.$ac_ext <<_ACEOF
  10317. /* end confdefs.h. */
  10318. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10319. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10320. #define $ac_func innocuous_$ac_func
  10321. /* System header to define __stub macros and hopefully few prototypes,
  10322. which can conflict with char $ac_func (); below.
  10323. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10324. <limits.h> exists even on freestanding compilers. */
  10325. #ifdef __STDC__
  10326. # include <limits.h>
  10327. #else
  10328. # include <assert.h>
  10329. #endif
  10330. #undef $ac_func
  10331. /* Override any gcc2 internal prototype to avoid an error. */
  10332. #ifdef __cplusplus
  10333. extern "C"
  10334. {
  10335. #endif
  10336. /* We use char because int might match the return type of a gcc2
  10337. builtin and then its argument prototype would still apply. */
  10338. char $ac_func ();
  10339. /* The GNU C library defines this for functions which it implements
  10340. to always fail with ENOSYS. Some functions are actually named
  10341. something starting with __ and the normal name is an alias. */
  10342. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10343. choke me
  10344. #else
  10345. char (*f) () = $ac_func;
  10346. #endif
  10347. #ifdef __cplusplus
  10348. }
  10349. #endif
  10350. int
  10351. main ()
  10352. {
  10353. return f != $ac_func;
  10354. ;
  10355. return 0;
  10356. }
  10357. _ACEOF
  10358. rm -f conftest.$ac_objext conftest$ac_exeext
  10359. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10360. (eval $ac_link) 2>conftest.er1
  10361. ac_status=$?
  10362. grep -v '^ *+' conftest.er1 >conftest.err
  10363. rm -f conftest.er1
  10364. cat conftest.err >&5
  10365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10366. (exit $ac_status); } &&
  10367. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10369. (eval $ac_try) 2>&5
  10370. ac_status=$?
  10371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10372. (exit $ac_status); }; } &&
  10373. { ac_try='test -s conftest$ac_exeext'
  10374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10375. (eval $ac_try) 2>&5
  10376. ac_status=$?
  10377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10378. (exit $ac_status); }; }; then
  10379. eval "$as_ac_var=yes"
  10380. else
  10381. echo "$as_me: failed program was:" >&5
  10382. sed 's/^/| /' conftest.$ac_ext >&5
  10383. eval "$as_ac_var=no"
  10384. fi
  10385. rm -f conftest.err conftest.$ac_objext \
  10386. conftest$ac_exeext conftest.$ac_ext
  10387. fi
  10388. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10389. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10390. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10391. cat >>confdefs.h <<_ACEOF
  10392. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10393. _ACEOF
  10394. fi
  10395. done
  10396. if test "$ac_cv_func_vsprintf" = "no"
  10397. then
  10398. cat << 'EOF' >&2
  10399. configure: error:
  10400. Your system does not have the sprintf/vsprintf libraries.
  10401. These are required to compile almost anything. Sorry.
  10402. EOF
  10403. exit 1
  10404. fi
  10405. for ac_func in uname
  10406. do
  10407. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10408. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10409. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10410. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10411. echo $ECHO_N "(cached) $ECHO_C" >&6
  10412. else
  10413. cat >conftest.$ac_ext <<_ACEOF
  10414. /* confdefs.h. */
  10415. _ACEOF
  10416. cat confdefs.h >>conftest.$ac_ext
  10417. cat >>conftest.$ac_ext <<_ACEOF
  10418. /* end confdefs.h. */
  10419. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10420. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10421. #define $ac_func innocuous_$ac_func
  10422. /* System header to define __stub macros and hopefully few prototypes,
  10423. which can conflict with char $ac_func (); below.
  10424. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10425. <limits.h> exists even on freestanding compilers. */
  10426. #ifdef __STDC__
  10427. # include <limits.h>
  10428. #else
  10429. # include <assert.h>
  10430. #endif
  10431. #undef $ac_func
  10432. /* Override any gcc2 internal prototype to avoid an error. */
  10433. #ifdef __cplusplus
  10434. extern "C"
  10435. {
  10436. #endif
  10437. /* We use char because int might match the return type of a gcc2
  10438. builtin and then its argument prototype would still apply. */
  10439. char $ac_func ();
  10440. /* The GNU C library defines this for functions which it implements
  10441. to always fail with ENOSYS. Some functions are actually named
  10442. something starting with __ and the normal name is an alias. */
  10443. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10444. choke me
  10445. #else
  10446. char (*f) () = $ac_func;
  10447. #endif
  10448. #ifdef __cplusplus
  10449. }
  10450. #endif
  10451. int
  10452. main ()
  10453. {
  10454. return f != $ac_func;
  10455. ;
  10456. return 0;
  10457. }
  10458. _ACEOF
  10459. rm -f conftest.$ac_objext conftest$ac_exeext
  10460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10461. (eval $ac_link) 2>conftest.er1
  10462. ac_status=$?
  10463. grep -v '^ *+' conftest.er1 >conftest.err
  10464. rm -f conftest.er1
  10465. cat conftest.err >&5
  10466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10467. (exit $ac_status); } &&
  10468. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10470. (eval $ac_try) 2>&5
  10471. ac_status=$?
  10472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10473. (exit $ac_status); }; } &&
  10474. { ac_try='test -s conftest$ac_exeext'
  10475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10476. (eval $ac_try) 2>&5
  10477. ac_status=$?
  10478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10479. (exit $ac_status); }; }; then
  10480. eval "$as_ac_var=yes"
  10481. else
  10482. echo "$as_me: failed program was:" >&5
  10483. sed 's/^/| /' conftest.$ac_ext >&5
  10484. eval "$as_ac_var=no"
  10485. fi
  10486. rm -f conftest.err conftest.$ac_objext \
  10487. conftest$ac_exeext conftest.$ac_ext
  10488. fi
  10489. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10490. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10491. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10492. cat >>confdefs.h <<_ACEOF
  10493. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10494. _ACEOF
  10495. fi
  10496. done
  10497. if test "$ac_cv_func_uname" = "no"
  10498. then
  10499. cat << 'EOF' >&2
  10500. configure: error:
  10501. Your system does not have the uname() function.
  10502. This is required for the botpack.
  10503. EOF
  10504. exit 1
  10505. fi
  10506. # Make sure we have stdc headers, since we can't compile without them
  10507. if test "$ac_cv_header_stdc" = "no"
  10508. then
  10509. cat << 'EOF' >&2
  10510. configure: error:
  10511. Your system must support ANSI C Header files.
  10512. These are required for the language support. Sorry.
  10513. EOF
  10514. exit 1
  10515. fi
  10516. #checkpoint
  10517. cat >confcache <<\_ACEOF
  10518. # This file is a shell script that caches the results of configure
  10519. # tests run on this system so they can be shared between configure
  10520. # scripts and configure runs, see configure's option --config-cache.
  10521. # It is not useful on other systems. If it contains results you don't
  10522. # want to keep, you may remove or edit it.
  10523. #
  10524. # config.status only pays attention to the cache file if you give it
  10525. # the --recheck option to rerun configure.
  10526. #
  10527. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10528. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10529. # following values.
  10530. _ACEOF
  10531. # The following way of writing the cache mishandles newlines in values,
  10532. # but we know of no workaround that is simple, portable, and efficient.
  10533. # So, don't put newlines in cache variables' values.
  10534. # Ultrix sh set writes to stderr and can't be redirected directly,
  10535. # and sets the high bit in the cache file unless we assign to the vars.
  10536. {
  10537. (set) 2>&1 |
  10538. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10539. *ac_space=\ *)
  10540. # `set' does not quote correctly, so add quotes (double-quote
  10541. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10542. sed -n \
  10543. "s/'/'\\\\''/g;
  10544. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10545. ;;
  10546. *)
  10547. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10548. sed -n \
  10549. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10550. ;;
  10551. esac;
  10552. } |
  10553. sed '
  10554. t clear
  10555. : clear
  10556. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10557. t end
  10558. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10559. : end' >>confcache
  10560. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10561. if test -w $cache_file; then
  10562. test "x$cache_file" != "x/dev/null"
  10563. cat confcache >$cache_file
  10564. else
  10565. echo "not updating unwritable cache $cache_file"
  10566. fi
  10567. fi
  10568. rm -f confcache
  10569. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10570. if ! test -f $srcdir/pack/pack.cfg; then
  10571. cat << EOF >&2
  10572. configure: error:
  10573. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  10574. EOF
  10575. exit 1
  10576. fi
  10577. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  10578. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10579. cat >>confdefs.h <<_ACEOF
  10580. #define EGG_VERSION $version_num
  10581. _ACEOF
  10582. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  10583. u_define="S_$define"
  10584. cat >>confdefs.h <<_ACEOF
  10585. #define $u_define 1
  10586. _ACEOF
  10587. done
  10588. case "$srcdir" in
  10589. [\\/]* | ?:[\\/]*)
  10590. MOD_UPDIR=""
  10591. ;;
  10592. *)
  10593. MOD_UPDIR="../"
  10594. ;;
  10595. esac
  10596. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  10597. for mf in $files; do
  10598. # Strip MF so we end up with the name of the file.
  10599. # echo "MF: $mf"
  10600. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10601. dirpart=`(dirname "$mf") 2>/dev/null ||
  10602. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10603. X"$mf" : 'X\(//\)[^/]' \| \
  10604. X"$mf" : 'X\(//\)$' \| \
  10605. X"$mf" : 'X\(/\)' \| \
  10606. . : '\(.\)' 2>/dev/null ||
  10607. echo X"$mf" |
  10608. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10609. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10610. /^X\(\/\/\)$/{ s//\1/; q; }
  10611. /^X\(\/\).*/{ s//\1/; q; }
  10612. s/.*/./; q'`
  10613. # echo "dirpart: $dirpart mf: $mf"
  10614. # rm -rf "$dirpart/.deps/"
  10615. rm -f "$dirpart/.deps/includes"
  10616. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10617. for file in `sed -n -e '
  10618. /^OBJS = .*\\\\$/ {
  10619. s/^OBJS = //
  10620. :loop
  10621. s/\\\\$//
  10622. p
  10623. n
  10624. /\\\\$/ b loop
  10625. p
  10626. }
  10627. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10628. do
  10629. base=`basename $file .o`
  10630. test -f "$dirpart/$base.c" || continue
  10631. if ! test -f "$dirpart/.deps/$base.Po"; then
  10632. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10633. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10634. if test -f "$dirpart/$base.o"; then
  10635. rm -f "$dirpart/$base.o"
  10636. fi
  10637. fi
  10638. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10639. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10640. done
  10641. done
  10642. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10643. cat >confcache <<\_ACEOF
  10644. # This file is a shell script that caches the results of configure
  10645. # tests run on this system so they can be shared between configure
  10646. # scripts and configure runs, see configure's option --config-cache.
  10647. # It is not useful on other systems. If it contains results you don't
  10648. # want to keep, you may remove or edit it.
  10649. #
  10650. # config.status only pays attention to the cache file if you give it
  10651. # the --recheck option to rerun configure.
  10652. #
  10653. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10654. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10655. # following values.
  10656. _ACEOF
  10657. # The following way of writing the cache mishandles newlines in values,
  10658. # but we know of no workaround that is simple, portable, and efficient.
  10659. # So, don't put newlines in cache variables' values.
  10660. # Ultrix sh set writes to stderr and can't be redirected directly,
  10661. # and sets the high bit in the cache file unless we assign to the vars.
  10662. {
  10663. (set) 2>&1 |
  10664. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10665. *ac_space=\ *)
  10666. # `set' does not quote correctly, so add quotes (double-quote
  10667. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10668. sed -n \
  10669. "s/'/'\\\\''/g;
  10670. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10671. ;;
  10672. *)
  10673. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10674. sed -n \
  10675. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10676. ;;
  10677. esac;
  10678. } |
  10679. sed '
  10680. t clear
  10681. : clear
  10682. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10683. t end
  10684. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10685. : end' >>confcache
  10686. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10687. if test -w $cache_file; then
  10688. test "x$cache_file" != "x/dev/null"
  10689. cat confcache >$cache_file
  10690. else
  10691. echo "not updating unwritable cache $cache_file"
  10692. fi
  10693. fi
  10694. rm -f confcache
  10695. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10696. # Let make expand exec_prefix.
  10697. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10698. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10699. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10700. # trailing colons and then remove the whole line if VPATH becomes empty
  10701. # (actually we leave an empty line to preserve line numbers).
  10702. if test "x$srcdir" = x.; then
  10703. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10704. s/:*\$(srcdir):*/:/;
  10705. s/:*\${srcdir}:*/:/;
  10706. s/:*@srcdir@:*/:/;
  10707. s/^\([^=]*=[ ]*\):*/\1/;
  10708. s/:*$//;
  10709. s/^[^=]*=[ ]*$//;
  10710. }'
  10711. fi
  10712. DEFS=-DHAVE_CONFIG_H
  10713. ac_libobjs=
  10714. ac_ltlibobjs=
  10715. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10716. # 1. Remove the extension, and $U if already installed.
  10717. ac_i=`echo "$ac_i" |
  10718. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10719. # 2. Add them.
  10720. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10721. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10722. done
  10723. LIBOBJS=$ac_libobjs
  10724. LTLIBOBJS=$ac_ltlibobjs
  10725. : ${CONFIG_STATUS=./config.status}
  10726. ac_clean_files_save=$ac_clean_files
  10727. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10728. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10729. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10730. cat >$CONFIG_STATUS <<_ACEOF
  10731. #! $SHELL
  10732. # Generated by $as_me.
  10733. # Run this file to recreate the current configuration.
  10734. # Compiler output produced by configure, useful for debugging
  10735. # configure, is in config.log if it exists.
  10736. debug=false
  10737. ac_cs_recheck=false
  10738. ac_cs_silent=false
  10739. SHELL=\${CONFIG_SHELL-$SHELL}
  10740. _ACEOF
  10741. cat >>$CONFIG_STATUS <<\_ACEOF
  10742. ## --------------------- ##
  10743. ## M4sh Initialization. ##
  10744. ## --------------------- ##
  10745. # Be Bourne compatible
  10746. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10747. emulate sh
  10748. NULLCMD=:
  10749. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10750. # is contrary to our usage. Disable this feature.
  10751. alias -g '${1+"$@"}'='"$@"'
  10752. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10753. set -o posix
  10754. fi
  10755. DUALCASE=1; export DUALCASE # for MKS sh
  10756. # Support unset when possible.
  10757. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10758. as_unset=unset
  10759. else
  10760. as_unset=false
  10761. fi
  10762. # Work around bugs in pre-3.0 UWIN ksh.
  10763. $as_unset ENV MAIL MAILPATH
  10764. PS1='$ '
  10765. PS2='> '
  10766. PS4='+ '
  10767. # NLS nuisances.
  10768. for as_var in \
  10769. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10770. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10771. LC_TELEPHONE LC_TIME
  10772. do
  10773. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10774. eval $as_var=C; export $as_var
  10775. else
  10776. $as_unset $as_var
  10777. fi
  10778. done
  10779. # Required to use basename.
  10780. if expr a : '\(a\)' >/dev/null 2>&1; then
  10781. as_expr=expr
  10782. else
  10783. as_expr=false
  10784. fi
  10785. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10786. as_basename=basename
  10787. else
  10788. as_basename=false
  10789. fi
  10790. # Name of the executable.
  10791. as_me=`$as_basename "$0" ||
  10792. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10793. X"$0" : 'X\(//\)$' \| \
  10794. X"$0" : 'X\(/\)$' \| \
  10795. . : '\(.\)' 2>/dev/null ||
  10796. echo X/"$0" |
  10797. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10798. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10799. /^X\/\(\/\).*/{ s//\1/; q; }
  10800. s/.*/./; q'`
  10801. # PATH needs CR, and LINENO needs CR and PATH.
  10802. # Avoid depending upon Character Ranges.
  10803. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10804. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10805. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10806. as_cr_digits='0123456789'
  10807. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10808. # The user is always right.
  10809. if test "${PATH_SEPARATOR+set}" != set; then
  10810. echo "#! /bin/sh" >conf$$.sh
  10811. echo "exit 0" >>conf$$.sh
  10812. chmod +x conf$$.sh
  10813. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10814. PATH_SEPARATOR=';'
  10815. else
  10816. PATH_SEPARATOR=:
  10817. fi
  10818. rm -f conf$$.sh
  10819. fi
  10820. as_lineno_1=$LINENO
  10821. as_lineno_2=$LINENO
  10822. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10823. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10824. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10825. # Find who we are. Look in the path if we contain no path at all
  10826. # relative or not.
  10827. case $0 in
  10828. *[\\/]* ) as_myself=$0 ;;
  10829. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10830. for as_dir in $PATH
  10831. do
  10832. IFS=$as_save_IFS
  10833. test -z "$as_dir" && as_dir=.
  10834. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10835. done
  10836. ;;
  10837. esac
  10838. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10839. # in which case we are not to be found in the path.
  10840. if test "x$as_myself" = x; then
  10841. as_myself=$0
  10842. fi
  10843. if test ! -f "$as_myself"; then
  10844. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10845. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10846. { (exit 1); exit 1; }; }
  10847. fi
  10848. case $CONFIG_SHELL in
  10849. '')
  10850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10851. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10852. do
  10853. IFS=$as_save_IFS
  10854. test -z "$as_dir" && as_dir=.
  10855. for as_base in sh bash ksh sh5; do
  10856. case $as_dir in
  10857. /*)
  10858. if ("$as_dir/$as_base" -c '
  10859. as_lineno_1=$LINENO
  10860. as_lineno_2=$LINENO
  10861. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10862. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10863. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10864. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10865. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10866. CONFIG_SHELL=$as_dir/$as_base
  10867. export CONFIG_SHELL
  10868. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10869. fi;;
  10870. esac
  10871. done
  10872. done
  10873. ;;
  10874. esac
  10875. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10876. # uniformly replaced by the line number. The first 'sed' inserts a
  10877. # line-number line before each line; the second 'sed' does the real
  10878. # work. The second script uses 'N' to pair each line-number line
  10879. # with the numbered line, and appends trailing '-' during
  10880. # substitution so that $LINENO is not a special case at line end.
  10881. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10882. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10883. sed '=' <$as_myself |
  10884. sed '
  10885. N
  10886. s,$,-,
  10887. : loop
  10888. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10889. t loop
  10890. s,-$,,
  10891. s,^['$as_cr_digits']*\n,,
  10892. ' >$as_me.lineno &&
  10893. chmod +x $as_me.lineno ||
  10894. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10895. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10896. { (exit 1); exit 1; }; }
  10897. # Don't try to exec as it changes $[0], causing all sort of problems
  10898. # (the dirname of $[0] is not the place where we might find the
  10899. # original and so on. Autoconf is especially sensible to this).
  10900. . ./$as_me.lineno
  10901. # Exit status is that of the last command.
  10902. exit
  10903. }
  10904. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10905. *c*,-n*) ECHO_N= ECHO_C='
  10906. ' ECHO_T=' ' ;;
  10907. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10908. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10909. esac
  10910. if expr a : '\(a\)' >/dev/null 2>&1; then
  10911. as_expr=expr
  10912. else
  10913. as_expr=false
  10914. fi
  10915. rm -f conf$$ conf$$.exe conf$$.file
  10916. echo >conf$$.file
  10917. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10918. # We could just check for DJGPP; but this test a) works b) is more generic
  10919. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10920. if test -f conf$$.exe; then
  10921. # Don't use ln at all; we don't have any links
  10922. as_ln_s='cp -p'
  10923. else
  10924. as_ln_s='ln -s'
  10925. fi
  10926. elif ln conf$$.file conf$$ 2>/dev/null; then
  10927. as_ln_s=ln
  10928. else
  10929. as_ln_s='cp -p'
  10930. fi
  10931. rm -f conf$$ conf$$.exe conf$$.file
  10932. if mkdir -p . 2>/dev/null; then
  10933. as_mkdir_p=:
  10934. else
  10935. test -d ./-p && rmdir ./-p
  10936. as_mkdir_p=false
  10937. fi
  10938. as_executable_p="test -f"
  10939. # Sed expression to map a string onto a valid CPP name.
  10940. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10941. # Sed expression to map a string onto a valid variable name.
  10942. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10943. # IFS
  10944. # We need space, tab and new line, in precisely that order.
  10945. as_nl='
  10946. '
  10947. IFS=" $as_nl"
  10948. # CDPATH.
  10949. $as_unset CDPATH
  10950. exec 6>&1
  10951. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10952. # report actual input values of CONFIG_FILES etc. instead of their
  10953. # values after options handling. Logging --version etc. is OK.
  10954. exec 5>>config.log
  10955. {
  10956. echo
  10957. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10958. ## Running $as_me. ##
  10959. _ASBOX
  10960. } >&5
  10961. cat >&5 <<_CSEOF
  10962. This file was extended by $as_me, which was
  10963. generated by GNU Autoconf 2.59. Invocation command line was
  10964. CONFIG_FILES = $CONFIG_FILES
  10965. CONFIG_HEADERS = $CONFIG_HEADERS
  10966. CONFIG_LINKS = $CONFIG_LINKS
  10967. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10968. $ $0 $@
  10969. _CSEOF
  10970. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10971. echo >&5
  10972. _ACEOF
  10973. # Files that config.status was made for.
  10974. if test -n "$ac_config_files"; then
  10975. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10976. fi
  10977. if test -n "$ac_config_headers"; then
  10978. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10979. fi
  10980. if test -n "$ac_config_links"; then
  10981. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10982. fi
  10983. if test -n "$ac_config_commands"; then
  10984. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10985. fi
  10986. cat >>$CONFIG_STATUS <<\_ACEOF
  10987. ac_cs_usage="\
  10988. \`$as_me' instantiates files from templates according to the
  10989. current configuration.
  10990. Usage: $0 [OPTIONS] [FILE]...
  10991. -h, --help print this help, then exit
  10992. -V, --version print version number, then exit
  10993. -q, --quiet do not print progress messages
  10994. -d, --debug don't remove temporary files
  10995. --recheck update $as_me by reconfiguring in the same conditions
  10996. --file=FILE[:TEMPLATE]
  10997. instantiate the configuration file FILE
  10998. --header=FILE[:TEMPLATE]
  10999. instantiate the configuration header FILE
  11000. Configuration files:
  11001. $config_files
  11002. Configuration headers:
  11003. $config_headers
  11004. Report bugs to <bug-autoconf@gnu.org>."
  11005. _ACEOF
  11006. cat >>$CONFIG_STATUS <<_ACEOF
  11007. ac_cs_version="\\
  11008. config.status
  11009. configured by $0, generated by GNU Autoconf 2.59,
  11010. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11011. Copyright (C) 2003 Free Software Foundation, Inc.
  11012. This config.status script is free software; the Free Software Foundation
  11013. gives unlimited permission to copy, distribute and modify it."
  11014. srcdir=$srcdir
  11015. _ACEOF
  11016. cat >>$CONFIG_STATUS <<\_ACEOF
  11017. # If no file are specified by the user, then we need to provide default
  11018. # value. By we need to know if files were specified by the user.
  11019. ac_need_defaults=:
  11020. while test $# != 0
  11021. do
  11022. case $1 in
  11023. --*=*)
  11024. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11025. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11026. ac_shift=:
  11027. ;;
  11028. -*)
  11029. ac_option=$1
  11030. ac_optarg=$2
  11031. ac_shift=shift
  11032. ;;
  11033. *) # This is not an option, so the user has probably given explicit
  11034. # arguments.
  11035. ac_option=$1
  11036. ac_need_defaults=false;;
  11037. esac
  11038. case $ac_option in
  11039. # Handling of the options.
  11040. _ACEOF
  11041. cat >>$CONFIG_STATUS <<\_ACEOF
  11042. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11043. ac_cs_recheck=: ;;
  11044. --version | --vers* | -V )
  11045. echo "$ac_cs_version"; exit 0 ;;
  11046. --he | --h)
  11047. # Conflict between --help and --header
  11048. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11049. Try \`$0 --help' for more information." >&5
  11050. echo "$as_me: error: ambiguous option: $1
  11051. Try \`$0 --help' for more information." >&2;}
  11052. { (exit 1); exit 1; }; };;
  11053. --help | --hel | -h )
  11054. echo "$ac_cs_usage"; exit 0 ;;
  11055. --debug | --d* | -d )
  11056. debug=: ;;
  11057. --file | --fil | --fi | --f )
  11058. $ac_shift
  11059. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11060. ac_need_defaults=false;;
  11061. --header | --heade | --head | --hea )
  11062. $ac_shift
  11063. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11064. ac_need_defaults=false;;
  11065. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11066. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11067. ac_cs_silent=: ;;
  11068. # This is an error.
  11069. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11070. Try \`$0 --help' for more information." >&5
  11071. echo "$as_me: error: unrecognized option: $1
  11072. Try \`$0 --help' for more information." >&2;}
  11073. { (exit 1); exit 1; }; } ;;
  11074. *) ac_config_targets="$ac_config_targets $1" ;;
  11075. esac
  11076. shift
  11077. done
  11078. ac_configure_extra_args=
  11079. if $ac_cs_silent; then
  11080. exec 6>/dev/null
  11081. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11082. fi
  11083. _ACEOF
  11084. cat >>$CONFIG_STATUS <<_ACEOF
  11085. if \$ac_cs_recheck; then
  11086. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11087. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11088. fi
  11089. _ACEOF
  11090. cat >>$CONFIG_STATUS <<\_ACEOF
  11091. for ac_config_target in $ac_config_targets
  11092. do
  11093. case "$ac_config_target" in
  11094. # Handling of arguments.
  11095. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11096. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11097. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11098. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11099. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11100. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11101. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11102. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11103. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11104. { (exit 1); exit 1; }; };;
  11105. esac
  11106. done
  11107. # If the user did not use the arguments to specify the items to instantiate,
  11108. # then the envvar interface is used. Set only those that are not.
  11109. # We use the long form for the default assignment because of an extremely
  11110. # bizarre bug on SunOS 4.1.3.
  11111. if $ac_need_defaults; then
  11112. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11113. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11114. fi
  11115. # Have a temporary directory for convenience. Make it in the build tree
  11116. # simply because there is no reason to put it here, and in addition,
  11117. # creating and moving files from /tmp can sometimes cause problems.
  11118. # Create a temporary directory, and hook for its removal unless debugging.
  11119. $debug ||
  11120. {
  11121. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11122. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11123. }
  11124. # Create a (secure) tmp directory for tmp files.
  11125. {
  11126. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11127. test -n "$tmp" && test -d "$tmp"
  11128. } ||
  11129. {
  11130. tmp=./confstat$$-$RANDOM
  11131. (umask 077 && mkdir $tmp)
  11132. } ||
  11133. {
  11134. echo "$me: cannot create a temporary directory in ." >&2
  11135. { (exit 1); exit 1; }
  11136. }
  11137. _ACEOF
  11138. cat >>$CONFIG_STATUS <<_ACEOF
  11139. #
  11140. # CONFIG_FILES section.
  11141. #
  11142. # No need to generate the scripts if there are no CONFIG_FILES.
  11143. # This happens for instance when ./config.status config.h
  11144. if test -n "\$CONFIG_FILES"; then
  11145. # Protect against being on the right side of a sed subst in config.status.
  11146. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11147. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11148. s,@SHELL@,$SHELL,;t t
  11149. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11150. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11151. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11152. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11153. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11154. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11155. s,@exec_prefix@,$exec_prefix,;t t
  11156. s,@prefix@,$prefix,;t t
  11157. s,@program_transform_name@,$program_transform_name,;t t
  11158. s,@bindir@,$bindir,;t t
  11159. s,@sbindir@,$sbindir,;t t
  11160. s,@libexecdir@,$libexecdir,;t t
  11161. s,@datadir@,$datadir,;t t
  11162. s,@sysconfdir@,$sysconfdir,;t t
  11163. s,@sharedstatedir@,$sharedstatedir,;t t
  11164. s,@localstatedir@,$localstatedir,;t t
  11165. s,@libdir@,$libdir,;t t
  11166. s,@includedir@,$includedir,;t t
  11167. s,@oldincludedir@,$oldincludedir,;t t
  11168. s,@infodir@,$infodir,;t t
  11169. s,@mandir@,$mandir,;t t
  11170. s,@build_alias@,$build_alias,;t t
  11171. s,@host_alias@,$host_alias,;t t
  11172. s,@target_alias@,$target_alias,;t t
  11173. s,@DEFS@,$DEFS,;t t
  11174. s,@ECHO_C@,$ECHO_C,;t t
  11175. s,@ECHO_N@,$ECHO_N,;t t
  11176. s,@ECHO_T@,$ECHO_T,;t t
  11177. s,@LIBS@,$LIBS,;t t
  11178. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11179. s,@CC@,$CC,;t t
  11180. s,@CFLAGS@,$CFLAGS,;t t
  11181. s,@LDFLAGS@,$LDFLAGS,;t t
  11182. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11183. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11184. s,@EXEEXT@,$EXEEXT,;t t
  11185. s,@OBJEXT@,$OBJEXT,;t t
  11186. s,@CPP@,$CPP,;t t
  11187. s,@EGREP@,$EGREP,;t t
  11188. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11189. s,@CCDEBUG@,$CCDEBUG,;t t
  11190. s,@SET_MAKE@,$SET_MAKE,;t t
  11191. s,@HEAD_1@,$HEAD_1,;t t
  11192. s,@AWK@,$AWK,;t t
  11193. s,@BASENAME@,$BASENAME,;t t
  11194. s,@OBJCOPY@,$OBJCOPY,;t t
  11195. s,@STRIP@,$STRIP,;t t
  11196. s,@UNAME@,$UNAME,;t t
  11197. s,@DISTCC@,$DISTCC,;t t
  11198. s,@RESLIB@,$RESLIB,;t t
  11199. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11200. s,@ZLIB@,$ZLIB,;t t
  11201. s,@LIBOBJS@,$LIBOBJS,;t t
  11202. s,@VERSION@,$VERSION,;t t
  11203. s,@NUMVER@,$NUMVER,;t t
  11204. s,@PACKNAME@,$PACKNAME,;t t
  11205. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11206. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11207. CEOF
  11208. _ACEOF
  11209. cat >>$CONFIG_STATUS <<\_ACEOF
  11210. # Split the substitutions into bite-sized pieces for seds with
  11211. # small command number limits, like on Digital OSF/1 and HP-UX.
  11212. ac_max_sed_lines=48
  11213. ac_sed_frag=1 # Number of current file.
  11214. ac_beg=1 # First line for current file.
  11215. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11216. ac_more_lines=:
  11217. ac_sed_cmds=
  11218. while $ac_more_lines; do
  11219. if test $ac_beg -gt 1; then
  11220. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11221. else
  11222. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11223. fi
  11224. if test ! -s $tmp/subs.frag; then
  11225. ac_more_lines=false
  11226. else
  11227. # The purpose of the label and of the branching condition is to
  11228. # speed up the sed processing (if there are no `@' at all, there
  11229. # is no need to browse any of the substitutions).
  11230. # These are the two extra sed commands mentioned above.
  11231. (echo ':t
  11232. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11233. if test -z "$ac_sed_cmds"; then
  11234. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11235. else
  11236. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11237. fi
  11238. ac_sed_frag=`expr $ac_sed_frag + 1`
  11239. ac_beg=$ac_end
  11240. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11241. fi
  11242. done
  11243. if test -z "$ac_sed_cmds"; then
  11244. ac_sed_cmds=cat
  11245. fi
  11246. fi # test -n "$CONFIG_FILES"
  11247. _ACEOF
  11248. cat >>$CONFIG_STATUS <<\_ACEOF
  11249. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11250. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11251. case $ac_file in
  11252. - | *:- | *:-:* ) # input from stdin
  11253. cat >$tmp/stdin
  11254. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11255. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11256. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11257. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11258. * ) ac_file_in=$ac_file.in ;;
  11259. esac
  11260. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11261. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11262. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11263. X"$ac_file" : 'X\(//\)[^/]' \| \
  11264. X"$ac_file" : 'X\(//\)$' \| \
  11265. X"$ac_file" : 'X\(/\)' \| \
  11266. . : '\(.\)' 2>/dev/null ||
  11267. echo X"$ac_file" |
  11268. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11269. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11270. /^X\(\/\/\)$/{ s//\1/; q; }
  11271. /^X\(\/\).*/{ s//\1/; q; }
  11272. s/.*/./; q'`
  11273. { if $as_mkdir_p; then
  11274. mkdir -p "$ac_dir"
  11275. else
  11276. as_dir="$ac_dir"
  11277. as_dirs=
  11278. while test ! -d "$as_dir"; do
  11279. as_dirs="$as_dir $as_dirs"
  11280. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11281. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11282. X"$as_dir" : 'X\(//\)[^/]' \| \
  11283. X"$as_dir" : 'X\(//\)$' \| \
  11284. X"$as_dir" : 'X\(/\)' \| \
  11285. . : '\(.\)' 2>/dev/null ||
  11286. echo X"$as_dir" |
  11287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11288. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11289. /^X\(\/\/\)$/{ s//\1/; q; }
  11290. /^X\(\/\).*/{ s//\1/; q; }
  11291. s/.*/./; q'`
  11292. done
  11293. test ! -n "$as_dirs" || mkdir $as_dirs
  11294. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11295. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11296. { (exit 1); exit 1; }; }; }
  11297. ac_builddir=.
  11298. if test "$ac_dir" != .; then
  11299. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11300. # A "../" for each directory in $ac_dir_suffix.
  11301. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11302. else
  11303. ac_dir_suffix= ac_top_builddir=
  11304. fi
  11305. case $srcdir in
  11306. .) # No --srcdir option. We are building in place.
  11307. ac_srcdir=.
  11308. if test -z "$ac_top_builddir"; then
  11309. ac_top_srcdir=.
  11310. else
  11311. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11312. fi ;;
  11313. [\\/]* | ?:[\\/]* ) # Absolute path.
  11314. ac_srcdir=$srcdir$ac_dir_suffix;
  11315. ac_top_srcdir=$srcdir ;;
  11316. *) # Relative path.
  11317. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11318. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11319. esac
  11320. # Do not use `cd foo && pwd` to compute absolute paths, because
  11321. # the directories may not exist.
  11322. case `pwd` in
  11323. .) ac_abs_builddir="$ac_dir";;
  11324. *)
  11325. case "$ac_dir" in
  11326. .) ac_abs_builddir=`pwd`;;
  11327. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11328. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11329. esac;;
  11330. esac
  11331. case $ac_abs_builddir in
  11332. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11333. *)
  11334. case ${ac_top_builddir}. in
  11335. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11336. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11337. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11338. esac;;
  11339. esac
  11340. case $ac_abs_builddir in
  11341. .) ac_abs_srcdir=$ac_srcdir;;
  11342. *)
  11343. case $ac_srcdir in
  11344. .) ac_abs_srcdir=$ac_abs_builddir;;
  11345. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11346. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11347. esac;;
  11348. esac
  11349. case $ac_abs_builddir in
  11350. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11351. *)
  11352. case $ac_top_srcdir in
  11353. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11354. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11355. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11356. esac;;
  11357. esac
  11358. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11359. # use $as_me), people would be surprised to read:
  11360. # /* config.h. Generated by config.status. */
  11361. if test x"$ac_file" = x-; then
  11362. configure_input=
  11363. else
  11364. configure_input="$ac_file. "
  11365. fi
  11366. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11367. sed 's,.*/,,'` by configure."
  11368. # First look for the input files in the build tree, otherwise in the
  11369. # src tree.
  11370. ac_file_inputs=`IFS=:
  11371. for f in $ac_file_in; do
  11372. case $f in
  11373. -) echo $tmp/stdin ;;
  11374. [\\/$]*)
  11375. # Absolute (can't be DOS-style, as IFS=:)
  11376. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11377. echo "$as_me: error: cannot find input file: $f" >&2;}
  11378. { (exit 1); exit 1; }; }
  11379. echo "$f";;
  11380. *) # Relative
  11381. if test -f "$f"; then
  11382. # Build tree
  11383. echo "$f"
  11384. elif test -f "$srcdir/$f"; then
  11385. # Source tree
  11386. echo "$srcdir/$f"
  11387. else
  11388. # /dev/null tree
  11389. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11390. echo "$as_me: error: cannot find input file: $f" >&2;}
  11391. { (exit 1); exit 1; }; }
  11392. fi;;
  11393. esac
  11394. done` || { (exit 1); exit 1; }
  11395. if test x"$ac_file" != x-; then
  11396. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11397. echo "$as_me: creating $ac_file" >&6;}
  11398. rm -f "$ac_file"
  11399. fi
  11400. _ACEOF
  11401. cat >>$CONFIG_STATUS <<_ACEOF
  11402. sed "$ac_vpsub
  11403. $extrasub
  11404. _ACEOF
  11405. cat >>$CONFIG_STATUS <<\_ACEOF
  11406. :t
  11407. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11408. s,@configure_input@,$configure_input,;t t
  11409. s,@srcdir@,$ac_srcdir,;t t
  11410. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11411. s,@top_srcdir@,$ac_top_srcdir,;t t
  11412. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11413. s,@builddir@,$ac_builddir,;t t
  11414. s,@abs_builddir@,$ac_abs_builddir,;t t
  11415. s,@top_builddir@,$ac_top_builddir,;t t
  11416. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11417. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11418. rm -f $tmp/stdin
  11419. if test x"$ac_file" != x-; then
  11420. mv $tmp/out $ac_file
  11421. else
  11422. cat $tmp/out
  11423. rm -f $tmp/out
  11424. fi
  11425. done
  11426. _ACEOF
  11427. cat >>$CONFIG_STATUS <<\_ACEOF
  11428. #
  11429. # CONFIG_HEADER section.
  11430. #
  11431. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11432. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11433. #
  11434. # ac_d sets the value in "#define NAME VALUE" lines.
  11435. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11436. ac_dB='[ ].*$,\1#\2'
  11437. ac_dC=' '
  11438. ac_dD=',;t'
  11439. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11440. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11441. ac_uB='$,\1#\2define\3'
  11442. ac_uC=' '
  11443. ac_uD=',;t'
  11444. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11445. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11446. case $ac_file in
  11447. - | *:- | *:-:* ) # input from stdin
  11448. cat >$tmp/stdin
  11449. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11450. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11451. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11452. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11453. * ) ac_file_in=$ac_file.in ;;
  11454. esac
  11455. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11456. echo "$as_me: creating $ac_file" >&6;}
  11457. # First look for the input files in the build tree, otherwise in the
  11458. # src tree.
  11459. ac_file_inputs=`IFS=:
  11460. for f in $ac_file_in; do
  11461. case $f in
  11462. -) echo $tmp/stdin ;;
  11463. [\\/$]*)
  11464. # Absolute (can't be DOS-style, as IFS=:)
  11465. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11466. echo "$as_me: error: cannot find input file: $f" >&2;}
  11467. { (exit 1); exit 1; }; }
  11468. # Do quote $f, to prevent DOS paths from being IFS'd.
  11469. echo "$f";;
  11470. *) # Relative
  11471. if test -f "$f"; then
  11472. # Build tree
  11473. echo "$f"
  11474. elif test -f "$srcdir/$f"; then
  11475. # Source tree
  11476. echo "$srcdir/$f"
  11477. else
  11478. # /dev/null tree
  11479. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11480. echo "$as_me: error: cannot find input file: $f" >&2;}
  11481. { (exit 1); exit 1; }; }
  11482. fi;;
  11483. esac
  11484. done` || { (exit 1); exit 1; }
  11485. # Remove the trailing spaces.
  11486. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11487. _ACEOF
  11488. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11489. # `conftest.undefs', that substitutes the proper values into
  11490. # config.h.in to produce config.h. The first handles `#define'
  11491. # templates, and the second `#undef' templates.
  11492. # And first: Protect against being on the right side of a sed subst in
  11493. # config.status. Protect against being in an unquoted here document
  11494. # in config.status.
  11495. rm -f conftest.defines conftest.undefs
  11496. # Using a here document instead of a string reduces the quoting nightmare.
  11497. # Putting comments in sed scripts is not portable.
  11498. #
  11499. # `end' is used to avoid that the second main sed command (meant for
  11500. # 0-ary CPP macros) applies to n-ary macro definitions.
  11501. # See the Autoconf documentation for `clear'.
  11502. cat >confdef2sed.sed <<\_ACEOF
  11503. s/[\\&,]/\\&/g
  11504. s,[\\$`],\\&,g
  11505. t clear
  11506. : clear
  11507. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11508. t end
  11509. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11510. : end
  11511. _ACEOF
  11512. # If some macros were called several times there might be several times
  11513. # the same #defines, which is useless. Nevertheless, we may not want to
  11514. # sort them, since we want the *last* AC-DEFINE to be honored.
  11515. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11516. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11517. rm -f confdef2sed.sed
  11518. # This sed command replaces #undef with comments. This is necessary, for
  11519. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11520. # on some systems where configure will not decide to define it.
  11521. cat >>conftest.undefs <<\_ACEOF
  11522. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11523. _ACEOF
  11524. # Break up conftest.defines because some shells have a limit on the size
  11525. # of here documents, and old seds have small limits too (100 cmds).
  11526. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11527. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11528. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11529. echo ' :' >>$CONFIG_STATUS
  11530. rm -f conftest.tail
  11531. while grep . conftest.defines >/dev/null
  11532. do
  11533. # Write a limited-size here document to $tmp/defines.sed.
  11534. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11535. # Speed up: don't consider the non `#define' lines.
  11536. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11537. # Work around the forget-to-reset-the-flag bug.
  11538. echo 't clr' >>$CONFIG_STATUS
  11539. echo ': clr' >>$CONFIG_STATUS
  11540. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11541. echo 'CEOF
  11542. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11543. rm -f $tmp/in
  11544. mv $tmp/out $tmp/in
  11545. ' >>$CONFIG_STATUS
  11546. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11547. rm -f conftest.defines
  11548. mv conftest.tail conftest.defines
  11549. done
  11550. rm -f conftest.defines
  11551. echo ' fi # grep' >>$CONFIG_STATUS
  11552. echo >>$CONFIG_STATUS
  11553. # Break up conftest.undefs because some shells have a limit on the size
  11554. # of here documents, and old seds have small limits too (100 cmds).
  11555. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11556. rm -f conftest.tail
  11557. while grep . conftest.undefs >/dev/null
  11558. do
  11559. # Write a limited-size here document to $tmp/undefs.sed.
  11560. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11561. # Speed up: don't consider the non `#undef'
  11562. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11563. # Work around the forget-to-reset-the-flag bug.
  11564. echo 't clr' >>$CONFIG_STATUS
  11565. echo ': clr' >>$CONFIG_STATUS
  11566. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11567. echo 'CEOF
  11568. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11569. rm -f $tmp/in
  11570. mv $tmp/out $tmp/in
  11571. ' >>$CONFIG_STATUS
  11572. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11573. rm -f conftest.undefs
  11574. mv conftest.tail conftest.undefs
  11575. done
  11576. rm -f conftest.undefs
  11577. cat >>$CONFIG_STATUS <<\_ACEOF
  11578. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11579. # use $as_me), people would be surprised to read:
  11580. # /* config.h. Generated by config.status. */
  11581. if test x"$ac_file" = x-; then
  11582. echo "/* Generated by configure. */" >$tmp/config.h
  11583. else
  11584. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11585. fi
  11586. cat $tmp/in >>$tmp/config.h
  11587. rm -f $tmp/in
  11588. if test x"$ac_file" != x-; then
  11589. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11590. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11591. echo "$as_me: $ac_file is unchanged" >&6;}
  11592. else
  11593. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11594. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11595. X"$ac_file" : 'X\(//\)[^/]' \| \
  11596. X"$ac_file" : 'X\(//\)$' \| \
  11597. X"$ac_file" : 'X\(/\)' \| \
  11598. . : '\(.\)' 2>/dev/null ||
  11599. echo X"$ac_file" |
  11600. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11601. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11602. /^X\(\/\/\)$/{ s//\1/; q; }
  11603. /^X\(\/\).*/{ s//\1/; q; }
  11604. s/.*/./; q'`
  11605. { if $as_mkdir_p; then
  11606. mkdir -p "$ac_dir"
  11607. else
  11608. as_dir="$ac_dir"
  11609. as_dirs=
  11610. while test ! -d "$as_dir"; do
  11611. as_dirs="$as_dir $as_dirs"
  11612. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11613. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11614. X"$as_dir" : 'X\(//\)[^/]' \| \
  11615. X"$as_dir" : 'X\(//\)$' \| \
  11616. X"$as_dir" : 'X\(/\)' \| \
  11617. . : '\(.\)' 2>/dev/null ||
  11618. echo X"$as_dir" |
  11619. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11620. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11621. /^X\(\/\/\)$/{ s//\1/; q; }
  11622. /^X\(\/\).*/{ s//\1/; q; }
  11623. s/.*/./; q'`
  11624. done
  11625. test ! -n "$as_dirs" || mkdir $as_dirs
  11626. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11627. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11628. { (exit 1); exit 1; }; }; }
  11629. rm -f $ac_file
  11630. mv $tmp/config.h $ac_file
  11631. fi
  11632. else
  11633. cat $tmp/config.h
  11634. rm -f $tmp/config.h
  11635. fi
  11636. done
  11637. _ACEOF
  11638. cat >>$CONFIG_STATUS <<\_ACEOF
  11639. { (exit 0); exit 0; }
  11640. _ACEOF
  11641. chmod +x $CONFIG_STATUS
  11642. ac_clean_files=$ac_clean_files_save
  11643. # configure is writing to config.log, and then calls config.status.
  11644. # config.status does its own redirection, appending to config.log.
  11645. # Unfortunately, on DOS this fails, as config.log is still kept open
  11646. # by configure, so config.status won't be able to write to it; its
  11647. # output is simply discarded. So we exec the FD to /dev/null,
  11648. # effectively closing config.log, so it can be properly (re)opened and
  11649. # appended to by config.status. When coming back to configure, we
  11650. # need to make the FD available again.
  11651. if test "$no_create" != yes; then
  11652. ac_cs_success=:
  11653. ac_config_status_args=
  11654. test "$silent" = yes &&
  11655. ac_config_status_args="$ac_config_status_args --quiet"
  11656. exec 5>/dev/null
  11657. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11658. exec 5>>config.log
  11659. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11660. # would make configure fail if this is the last instruction.
  11661. $ac_cs_success || { (exit 1); exit 1; }
  11662. fi