configure 367 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.21 .
  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 CFG 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. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-cfg=PATH full path to pack.cfg
  744. Some influential environment variables:
  745. CC C compiler command
  746. CFLAGS C compiler flags
  747. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  748. nonstandard directory <lib dir>
  749. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  750. headers in a nonstandard directory <include dir>
  751. CPP C preprocessor
  752. Use these variables to override the choices made by `configure' or to help
  753. it to find libraries and programs with nonstandard names/locations.
  754. _ACEOF
  755. fi
  756. if test "$ac_init_help" = "recursive"; then
  757. # If there are subdirs, report their specific --help.
  758. ac_popdir=`pwd`
  759. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  760. test -d $ac_dir || continue
  761. ac_builddir=.
  762. if test "$ac_dir" != .; then
  763. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  764. # A "../" for each directory in $ac_dir_suffix.
  765. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  766. else
  767. ac_dir_suffix= ac_top_builddir=
  768. fi
  769. case $srcdir in
  770. .) # No --srcdir option. We are building in place.
  771. ac_srcdir=.
  772. if test -z "$ac_top_builddir"; then
  773. ac_top_srcdir=.
  774. else
  775. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  776. fi ;;
  777. [\\/]* | ?:[\\/]* ) # Absolute path.
  778. ac_srcdir=$srcdir$ac_dir_suffix;
  779. ac_top_srcdir=$srcdir ;;
  780. *) # Relative path.
  781. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  782. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  783. esac
  784. # Do not use `cd foo && pwd` to compute absolute paths, because
  785. # the directories may not exist.
  786. case `pwd` in
  787. .) ac_abs_builddir="$ac_dir";;
  788. *)
  789. case "$ac_dir" in
  790. .) ac_abs_builddir=`pwd`;;
  791. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  792. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  793. esac;;
  794. esac
  795. case $ac_abs_builddir in
  796. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *)
  798. case ${ac_top_builddir}. in
  799. .) ac_abs_top_builddir=$ac_abs_builddir;;
  800. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  801. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  802. esac;;
  803. esac
  804. case $ac_abs_builddir in
  805. .) ac_abs_srcdir=$ac_srcdir;;
  806. *)
  807. case $ac_srcdir in
  808. .) ac_abs_srcdir=$ac_abs_builddir;;
  809. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  810. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  811. esac;;
  812. esac
  813. case $ac_abs_builddir in
  814. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *)
  816. case $ac_top_srcdir in
  817. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  818. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  819. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  820. esac;;
  821. esac
  822. cd $ac_dir
  823. # Check for guested configure; otherwise get Cygnus style configure.
  824. if test -f $ac_srcdir/configure.gnu; then
  825. echo
  826. $SHELL $ac_srcdir/configure.gnu --help=recursive
  827. elif test -f $ac_srcdir/configure; then
  828. echo
  829. $SHELL $ac_srcdir/configure --help=recursive
  830. elif test -f $ac_srcdir/configure.ac ||
  831. test -f $ac_srcdir/configure.in; then
  832. echo
  833. $ac_configure --help
  834. else
  835. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  836. fi
  837. cd "$ac_popdir"
  838. done
  839. fi
  840. test -n "$ac_init_help" && exit 0
  841. if $ac_init_version; then
  842. cat <<\_ACEOF
  843. Copyright (C) 2003 Free Software Foundation, Inc.
  844. This configure script is free software; the Free Software Foundation
  845. gives unlimited permission to copy, distribute and modify it.
  846. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  847. _ACEOF
  848. exit 0
  849. fi
  850. exec 5>config.log
  851. cat >&5 <<_ACEOF
  852. This file contains any messages produced by compilers while
  853. running configure, to aid debugging if configure makes a mistake.
  854. It was created by $as_me, which was
  855. generated by GNU Autoconf 2.59. Invocation command line was
  856. $ $0 $@
  857. _ACEOF
  858. {
  859. cat <<_ASUNAME
  860. ## --------- ##
  861. ## Platform. ##
  862. ## --------- ##
  863. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  864. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  865. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  866. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  867. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  868. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  869. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  870. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  871. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  872. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  873. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  874. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  875. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  876. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  877. _ASUNAME
  878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  879. for as_dir in $PATH
  880. do
  881. IFS=$as_save_IFS
  882. test -z "$as_dir" && as_dir=.
  883. echo "PATH: $as_dir"
  884. done
  885. } >&5
  886. cat >&5 <<_ACEOF
  887. ## ----------- ##
  888. ## Core tests. ##
  889. ## ----------- ##
  890. _ACEOF
  891. # Keep a trace of the command line.
  892. # Strip out --no-create and --no-recursion so they do not pile up.
  893. # Strip out --silent because we don't want to record it for future runs.
  894. # Also quote any args containing shell meta-characters.
  895. # Make two passes to allow for proper duplicate-argument suppression.
  896. ac_configure_args=
  897. ac_configure_args0=
  898. ac_configure_args1=
  899. ac_sep=
  900. ac_must_keep_next=false
  901. for ac_pass in 1 2
  902. do
  903. for ac_arg
  904. do
  905. case $ac_arg in
  906. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  908. | -silent | --silent | --silen | --sile | --sil)
  909. continue ;;
  910. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  911. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  912. esac
  913. case $ac_pass in
  914. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  915. 2)
  916. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  917. if test $ac_must_keep_next = true; then
  918. ac_must_keep_next=false # Got value, back to normal.
  919. else
  920. case $ac_arg in
  921. *=* | --config-cache | -C | -disable-* | --disable-* \
  922. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  923. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  924. | -with-* | --with-* | -without-* | --without-* | --x)
  925. case "$ac_configure_args0 " in
  926. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  927. esac
  928. ;;
  929. -* ) ac_must_keep_next=true ;;
  930. esac
  931. fi
  932. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  933. # Get rid of the leading space.
  934. ac_sep=" "
  935. ;;
  936. esac
  937. done
  938. done
  939. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  940. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  941. # When interrupted or exit'd, cleanup temporary files, and complete
  942. # config.log. We remove comments because anyway the quotes in there
  943. # would cause problems or look ugly.
  944. # WARNING: Be sure not to use single quotes in there, as some shells,
  945. # such as our DU 5.0 friend, will then `close' the trap.
  946. trap 'exit_status=$?
  947. # Save into config.log some information that might help in debugging.
  948. {
  949. echo
  950. cat <<\_ASBOX
  951. ## ---------------- ##
  952. ## Cache variables. ##
  953. ## ---------------- ##
  954. _ASBOX
  955. echo
  956. # The following way of writing the cache mishandles newlines in values,
  957. {
  958. (set) 2>&1 |
  959. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  960. *ac_space=\ *)
  961. sed -n \
  962. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  964. ;;
  965. *)
  966. sed -n \
  967. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  968. ;;
  969. esac;
  970. }
  971. echo
  972. cat <<\_ASBOX
  973. ## ----------------- ##
  974. ## Output variables. ##
  975. ## ----------------- ##
  976. _ASBOX
  977. echo
  978. for ac_var in $ac_subst_vars
  979. do
  980. eval ac_val=$`echo $ac_var`
  981. echo "$ac_var='"'"'$ac_val'"'"'"
  982. done | sort
  983. echo
  984. if test -n "$ac_subst_files"; then
  985. cat <<\_ASBOX
  986. ## ------------- ##
  987. ## Output files. ##
  988. ## ------------- ##
  989. _ASBOX
  990. echo
  991. for ac_var in $ac_subst_files
  992. do
  993. eval ac_val=$`echo $ac_var`
  994. echo "$ac_var='"'"'$ac_val'"'"'"
  995. done | sort
  996. echo
  997. fi
  998. if test -s confdefs.h; then
  999. cat <<\_ASBOX
  1000. ## ----------- ##
  1001. ## confdefs.h. ##
  1002. ## ----------- ##
  1003. _ASBOX
  1004. echo
  1005. sed "/^$/d" confdefs.h | sort
  1006. echo
  1007. fi
  1008. test "$ac_signal" != 0 &&
  1009. echo "$as_me: caught signal $ac_signal"
  1010. echo "$as_me: exit $exit_status"
  1011. } >&5
  1012. rm -f core *.core &&
  1013. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1014. exit $exit_status
  1015. ' 0
  1016. for ac_signal in 1 2 13 15; do
  1017. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1018. done
  1019. ac_signal=0
  1020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1021. rm -rf conftest* confdefs.h
  1022. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1023. echo >confdefs.h
  1024. # Predefined preprocessor variables.
  1025. cat >>confdefs.h <<_ACEOF
  1026. #define PACKAGE_NAME "$PACKAGE_NAME"
  1027. _ACEOF
  1028. cat >>confdefs.h <<_ACEOF
  1029. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1030. _ACEOF
  1031. cat >>confdefs.h <<_ACEOF
  1032. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1033. _ACEOF
  1034. cat >>confdefs.h <<_ACEOF
  1035. #define PACKAGE_STRING "$PACKAGE_STRING"
  1036. _ACEOF
  1037. cat >>confdefs.h <<_ACEOF
  1038. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1039. _ACEOF
  1040. # Let the site file select an alternate cache file if it wants to.
  1041. # Prefer explicitly selected file to automatically selected ones.
  1042. if test -z "$CONFIG_SITE"; then
  1043. if test "x$prefix" != xNONE; then
  1044. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1045. else
  1046. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1047. fi
  1048. fi
  1049. for ac_site_file in $CONFIG_SITE; do
  1050. if test -r "$ac_site_file"; then
  1051. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1052. echo "$as_me: loading site script $ac_site_file" >&6;}
  1053. sed 's/^/| /' "$ac_site_file" >&5
  1054. . "$ac_site_file"
  1055. fi
  1056. done
  1057. if test -r "$cache_file"; then
  1058. # Some versions of bash will fail to source /dev/null (special
  1059. # files actually), so we avoid doing that.
  1060. if test -f "$cache_file"; then
  1061. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1062. echo "$as_me: loading cache $cache_file" >&6;}
  1063. case $cache_file in
  1064. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1065. *) . ./$cache_file;;
  1066. esac
  1067. fi
  1068. else
  1069. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1070. echo "$as_me: creating cache $cache_file" >&6;}
  1071. >$cache_file
  1072. fi
  1073. # Check that the precious variables saved in the cache have kept the same
  1074. # value.
  1075. ac_cache_corrupted=false
  1076. for ac_var in `(set) 2>&1 |
  1077. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1078. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1079. eval ac_new_set=\$ac_env_${ac_var}_set
  1080. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1081. eval ac_new_val="\$ac_env_${ac_var}_value"
  1082. case $ac_old_set,$ac_new_set in
  1083. set,)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,set)
  1088. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1089. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1090. ac_cache_corrupted=: ;;
  1091. ,);;
  1092. *)
  1093. if test "x$ac_old_val" != "x$ac_new_val"; then
  1094. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1095. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1096. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1097. echo "$as_me: former value: $ac_old_val" >&2;}
  1098. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1099. echo "$as_me: current value: $ac_new_val" >&2;}
  1100. ac_cache_corrupted=:
  1101. fi;;
  1102. esac
  1103. # Pass precious variables to config.status.
  1104. if test "$ac_new_set" = set; then
  1105. case $ac_new_val in
  1106. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1107. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1108. *) ac_arg=$ac_var=$ac_new_val ;;
  1109. esac
  1110. case " $ac_configure_args " in
  1111. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1112. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1113. esac
  1114. fi
  1115. done
  1116. if $ac_cache_corrupted; then
  1117. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1118. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1119. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1120. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1121. { (exit 1); exit 1; }; }
  1122. fi
  1123. ac_ext=c
  1124. ac_cpp='$CPP $CPPFLAGS'
  1125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1128. ac_config_headers="$ac_config_headers config.h"
  1129. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1130. egg_ac_parameters=
  1131. ac_prev=
  1132. for ac_arg in $ac_configure_args; do
  1133. if test -n "$ac_prev"; then
  1134. ac_prev=
  1135. continue
  1136. fi
  1137. case $ac_arg in
  1138. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1139. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1140. ac_prev=cache_file ;;
  1141. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1142. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1143. | --c=*)
  1144. ;;
  1145. --config-cache | -C)
  1146. ;;
  1147. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1148. ac_prev=srcdir ;;
  1149. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1150. ;;
  1151. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1152. esac
  1153. done
  1154. cfg="pack/pack.cfg"
  1155. # Check whether --with-cfg or --without-cfg was given.
  1156. if test "${with_cfg+set}" = set; then
  1157. withval="$with_cfg"
  1158. cfg="$withval"
  1159. fi;
  1160. # Setup build environment
  1161. ac_ext=c
  1162. ac_cpp='$CPP $CPPFLAGS'
  1163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1166. if test -n "$ac_tool_prefix"; then
  1167. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1168. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1169. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1170. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1171. if test "${ac_cv_prog_CC+set}" = set; then
  1172. echo $ECHO_N "(cached) $ECHO_C" >&6
  1173. else
  1174. if test -n "$CC"; then
  1175. ac_cv_prog_CC="$CC" # Let the user override the test.
  1176. else
  1177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1178. for as_dir in $PATH
  1179. do
  1180. IFS=$as_save_IFS
  1181. test -z "$as_dir" && as_dir=.
  1182. for ac_exec_ext in '' $ac_executable_extensions; do
  1183. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1184. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1185. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1186. break 2
  1187. fi
  1188. done
  1189. done
  1190. fi
  1191. fi
  1192. CC=$ac_cv_prog_CC
  1193. if test -n "$CC"; then
  1194. echo "$as_me:$LINENO: result: $CC" >&5
  1195. echo "${ECHO_T}$CC" >&6
  1196. else
  1197. echo "$as_me:$LINENO: result: no" >&5
  1198. echo "${ECHO_T}no" >&6
  1199. fi
  1200. fi
  1201. if test -z "$ac_cv_prog_CC"; then
  1202. ac_ct_CC=$CC
  1203. # Extract the first word of "gcc", so it can be a program name with args.
  1204. set dummy gcc; ac_word=$2
  1205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1208. echo $ECHO_N "(cached) $ECHO_C" >&6
  1209. else
  1210. if test -n "$ac_ct_CC"; then
  1211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1212. else
  1213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1214. for as_dir in $PATH
  1215. do
  1216. IFS=$as_save_IFS
  1217. test -z "$as_dir" && as_dir=.
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1220. ac_cv_prog_ac_ct_CC="gcc"
  1221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1222. break 2
  1223. fi
  1224. done
  1225. done
  1226. fi
  1227. fi
  1228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1229. if test -n "$ac_ct_CC"; then
  1230. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1231. echo "${ECHO_T}$ac_ct_CC" >&6
  1232. else
  1233. echo "$as_me:$LINENO: result: no" >&5
  1234. echo "${ECHO_T}no" >&6
  1235. fi
  1236. CC=$ac_ct_CC
  1237. else
  1238. CC="$ac_cv_prog_CC"
  1239. fi
  1240. if test -z "$CC"; then
  1241. if test -n "$ac_tool_prefix"; then
  1242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1246. if test "${ac_cv_prog_CC+set}" = set; then
  1247. echo $ECHO_N "(cached) $ECHO_C" >&6
  1248. else
  1249. if test -n "$CC"; then
  1250. ac_cv_prog_CC="$CC" # Let the user override the test.
  1251. else
  1252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1253. for as_dir in $PATH
  1254. do
  1255. IFS=$as_save_IFS
  1256. test -z "$as_dir" && as_dir=.
  1257. for ac_exec_ext in '' $ac_executable_extensions; do
  1258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1259. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1261. break 2
  1262. fi
  1263. done
  1264. done
  1265. fi
  1266. fi
  1267. CC=$ac_cv_prog_CC
  1268. if test -n "$CC"; then
  1269. echo "$as_me:$LINENO: result: $CC" >&5
  1270. echo "${ECHO_T}$CC" >&6
  1271. else
  1272. echo "$as_me:$LINENO: result: no" >&5
  1273. echo "${ECHO_T}no" >&6
  1274. fi
  1275. fi
  1276. if test -z "$ac_cv_prog_CC"; then
  1277. ac_ct_CC=$CC
  1278. # Extract the first word of "cc", so it can be a program name with args.
  1279. set dummy cc; ac_word=$2
  1280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1282. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1283. echo $ECHO_N "(cached) $ECHO_C" >&6
  1284. else
  1285. if test -n "$ac_ct_CC"; then
  1286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1287. else
  1288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1289. for as_dir in $PATH
  1290. do
  1291. IFS=$as_save_IFS
  1292. test -z "$as_dir" && as_dir=.
  1293. for ac_exec_ext in '' $ac_executable_extensions; do
  1294. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1295. ac_cv_prog_ac_ct_CC="cc"
  1296. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1297. break 2
  1298. fi
  1299. done
  1300. done
  1301. fi
  1302. fi
  1303. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1304. if test -n "$ac_ct_CC"; then
  1305. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1306. echo "${ECHO_T}$ac_ct_CC" >&6
  1307. else
  1308. echo "$as_me:$LINENO: result: no" >&5
  1309. echo "${ECHO_T}no" >&6
  1310. fi
  1311. CC=$ac_ct_CC
  1312. else
  1313. CC="$ac_cv_prog_CC"
  1314. fi
  1315. fi
  1316. if test -z "$CC"; then
  1317. # Extract the first word of "cc", so it can be a program name with args.
  1318. set dummy cc; ac_word=$2
  1319. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1320. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1321. if test "${ac_cv_prog_CC+set}" = set; then
  1322. echo $ECHO_N "(cached) $ECHO_C" >&6
  1323. else
  1324. if test -n "$CC"; then
  1325. ac_cv_prog_CC="$CC" # Let the user override the test.
  1326. else
  1327. ac_prog_rejected=no
  1328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1329. for as_dir in $PATH
  1330. do
  1331. IFS=$as_save_IFS
  1332. test -z "$as_dir" && as_dir=.
  1333. for ac_exec_ext in '' $ac_executable_extensions; do
  1334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1335. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1336. ac_prog_rejected=yes
  1337. continue
  1338. fi
  1339. ac_cv_prog_CC="cc"
  1340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1341. break 2
  1342. fi
  1343. done
  1344. done
  1345. if test $ac_prog_rejected = yes; then
  1346. # We found a bogon in the path, so make sure we never use it.
  1347. set dummy $ac_cv_prog_CC
  1348. shift
  1349. if test $# != 0; then
  1350. # We chose a different compiler from the bogus one.
  1351. # However, it has the same basename, so the bogon will be chosen
  1352. # first if we set CC to just the basename; use the full file name.
  1353. shift
  1354. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1355. fi
  1356. fi
  1357. fi
  1358. fi
  1359. CC=$ac_cv_prog_CC
  1360. if test -n "$CC"; then
  1361. echo "$as_me:$LINENO: result: $CC" >&5
  1362. echo "${ECHO_T}$CC" >&6
  1363. else
  1364. echo "$as_me:$LINENO: result: no" >&5
  1365. echo "${ECHO_T}no" >&6
  1366. fi
  1367. fi
  1368. if test -z "$CC"; then
  1369. if test -n "$ac_tool_prefix"; then
  1370. for ac_prog in cl
  1371. do
  1372. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1373. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_CC+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$CC"; then
  1380. ac_cv_prog_CC="$CC" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. CC=$ac_cv_prog_CC
  1398. if test -n "$CC"; then
  1399. echo "$as_me:$LINENO: result: $CC" >&5
  1400. echo "${ECHO_T}$CC" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. test -n "$CC" && break
  1406. done
  1407. fi
  1408. if test -z "$CC"; then
  1409. ac_ct_CC=$CC
  1410. for ac_prog in cl
  1411. do
  1412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1413. set dummy $ac_prog; ac_word=$2
  1414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1416. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1417. echo $ECHO_N "(cached) $ECHO_C" >&6
  1418. else
  1419. if test -n "$ac_ct_CC"; then
  1420. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1421. else
  1422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425. IFS=$as_save_IFS
  1426. test -z "$as_dir" && as_dir=.
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1429. ac_cv_prog_ac_ct_CC="$ac_prog"
  1430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1431. break 2
  1432. fi
  1433. done
  1434. done
  1435. fi
  1436. fi
  1437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1438. if test -n "$ac_ct_CC"; then
  1439. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1440. echo "${ECHO_T}$ac_ct_CC" >&6
  1441. else
  1442. echo "$as_me:$LINENO: result: no" >&5
  1443. echo "${ECHO_T}no" >&6
  1444. fi
  1445. test -n "$ac_ct_CC" && break
  1446. done
  1447. CC=$ac_ct_CC
  1448. fi
  1449. fi
  1450. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1451. See \`config.log' for more details." >&5
  1452. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1453. See \`config.log' for more details." >&2;}
  1454. { (exit 1); exit 1; }; }
  1455. # Provide some information about the compiler.
  1456. echo "$as_me:$LINENO:" \
  1457. "checking for C compiler version" >&5
  1458. ac_compiler=`set X $ac_compile; echo $2`
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1460. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1470. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1471. ac_status=$?
  1472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1473. (exit $ac_status); }
  1474. cat >conftest.$ac_ext <<_ACEOF
  1475. /* confdefs.h. */
  1476. _ACEOF
  1477. cat confdefs.h >>conftest.$ac_ext
  1478. cat >>conftest.$ac_ext <<_ACEOF
  1479. /* end confdefs.h. */
  1480. int
  1481. main ()
  1482. {
  1483. ;
  1484. return 0;
  1485. }
  1486. _ACEOF
  1487. ac_clean_files_save=$ac_clean_files
  1488. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1489. # Try to create an executable without -o first, disregard a.out.
  1490. # It will help us diagnose broken compilers, and finding out an intuition
  1491. # of exeext.
  1492. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1493. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1494. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1495. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1496. (eval $ac_link_default) 2>&5
  1497. ac_status=$?
  1498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1499. (exit $ac_status); }; then
  1500. # Find the output, starting from the most likely. This scheme is
  1501. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1502. # resort.
  1503. # Be careful to initialize this variable, since it used to be cached.
  1504. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1505. ac_cv_exeext=
  1506. # b.out is created by i960 compilers.
  1507. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1508. do
  1509. test -f "$ac_file" || continue
  1510. case $ac_file in
  1511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1512. ;;
  1513. conftest.$ac_ext )
  1514. # This is the source file.
  1515. ;;
  1516. [ab].out )
  1517. # We found the default executable, but exeext='' is most
  1518. # certainly right.
  1519. break;;
  1520. *.* )
  1521. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1522. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1523. # but it would be cool to find out if it's true. Does anybody
  1524. # maintain Libtool? --akim.
  1525. export ac_cv_exeext
  1526. break;;
  1527. * )
  1528. break;;
  1529. esac
  1530. done
  1531. else
  1532. echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1535. See \`config.log' for more details." >&5
  1536. echo "$as_me: error: C compiler cannot create executables
  1537. See \`config.log' for more details." >&2;}
  1538. { (exit 77); exit 77; }; }
  1539. fi
  1540. ac_exeext=$ac_cv_exeext
  1541. echo "$as_me:$LINENO: result: $ac_file" >&5
  1542. echo "${ECHO_T}$ac_file" >&6
  1543. # Check the compiler produces executables we can run. If not, either
  1544. # the compiler is broken, or we cross compile.
  1545. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1546. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1547. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1548. # If not cross compiling, check that we can run a simple program.
  1549. if test "$cross_compiling" != yes; then
  1550. if { ac_try='./$ac_file'
  1551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1552. (eval $ac_try) 2>&5
  1553. ac_status=$?
  1554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1555. (exit $ac_status); }; }; then
  1556. cross_compiling=no
  1557. else
  1558. if test "$cross_compiling" = maybe; then
  1559. cross_compiling=yes
  1560. else
  1561. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1562. If you meant to cross compile, use \`--host'.
  1563. See \`config.log' for more details." >&5
  1564. echo "$as_me: error: cannot run C compiled programs.
  1565. If you meant to cross compile, use \`--host'.
  1566. See \`config.log' for more details." >&2;}
  1567. { (exit 1); exit 1; }; }
  1568. fi
  1569. fi
  1570. fi
  1571. echo "$as_me:$LINENO: result: yes" >&5
  1572. echo "${ECHO_T}yes" >&6
  1573. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1574. ac_clean_files=$ac_clean_files_save
  1575. # Check the compiler produces executables we can run. If not, either
  1576. # the compiler is broken, or we cross compile.
  1577. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1578. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1579. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1580. echo "${ECHO_T}$cross_compiling" >&6
  1581. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1582. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1584. (eval $ac_link) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1587. (exit $ac_status); }; then
  1588. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1589. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1590. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1591. # `rm'.
  1592. for ac_file in conftest.exe conftest conftest.*; do
  1593. test -f "$ac_file" || continue
  1594. case $ac_file in
  1595. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1596. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1597. export ac_cv_exeext
  1598. break;;
  1599. * ) break;;
  1600. esac
  1601. done
  1602. else
  1603. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1604. See \`config.log' for more details." >&5
  1605. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1606. See \`config.log' for more details." >&2;}
  1607. { (exit 1); exit 1; }; }
  1608. fi
  1609. rm -f conftest$ac_cv_exeext
  1610. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1611. echo "${ECHO_T}$ac_cv_exeext" >&6
  1612. rm -f conftest.$ac_ext
  1613. EXEEXT=$ac_cv_exeext
  1614. ac_exeext=$EXEEXT
  1615. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1616. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1617. if test "${ac_cv_objext+set}" = set; then
  1618. echo $ECHO_N "(cached) $ECHO_C" >&6
  1619. else
  1620. cat >conftest.$ac_ext <<_ACEOF
  1621. /* confdefs.h. */
  1622. _ACEOF
  1623. cat confdefs.h >>conftest.$ac_ext
  1624. cat >>conftest.$ac_ext <<_ACEOF
  1625. /* end confdefs.h. */
  1626. int
  1627. main ()
  1628. {
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. rm -f conftest.o conftest.obj
  1634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1635. (eval $ac_compile) 2>&5
  1636. ac_status=$?
  1637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1638. (exit $ac_status); }; then
  1639. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1640. case $ac_file in
  1641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1643. break;;
  1644. esac
  1645. done
  1646. else
  1647. echo "$as_me: failed program was:" >&5
  1648. sed 's/^/| /' conftest.$ac_ext >&5
  1649. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1650. See \`config.log' for more details." >&5
  1651. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1652. See \`config.log' for more details." >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. fi
  1655. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1656. fi
  1657. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1658. echo "${ECHO_T}$ac_cv_objext" >&6
  1659. OBJEXT=$ac_cv_objext
  1660. ac_objext=$OBJEXT
  1661. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1662. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1663. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1664. echo $ECHO_N "(cached) $ECHO_C" >&6
  1665. else
  1666. cat >conftest.$ac_ext <<_ACEOF
  1667. /* confdefs.h. */
  1668. _ACEOF
  1669. cat confdefs.h >>conftest.$ac_ext
  1670. cat >>conftest.$ac_ext <<_ACEOF
  1671. /* end confdefs.h. */
  1672. int
  1673. main ()
  1674. {
  1675. #ifndef __GNUC__
  1676. choke me
  1677. #endif
  1678. ;
  1679. return 0;
  1680. }
  1681. _ACEOF
  1682. rm -f conftest.$ac_objext
  1683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1684. (eval $ac_compile) 2>conftest.er1
  1685. ac_status=$?
  1686. grep -v '^ *+' conftest.er1 >conftest.err
  1687. rm -f conftest.er1
  1688. cat conftest.err >&5
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); } &&
  1691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1693. (eval $ac_try) 2>&5
  1694. ac_status=$?
  1695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1696. (exit $ac_status); }; } &&
  1697. { ac_try='test -s conftest.$ac_objext'
  1698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1699. (eval $ac_try) 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; }; then
  1703. ac_compiler_gnu=yes
  1704. else
  1705. echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_compiler_gnu=no
  1708. fi
  1709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1710. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1711. fi
  1712. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1713. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1714. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1715. ac_test_CFLAGS=${CFLAGS+set}
  1716. ac_save_CFLAGS=$CFLAGS
  1717. CFLAGS="-g"
  1718. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1719. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1720. if test "${ac_cv_prog_cc_g+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. cat >conftest.$ac_ext <<_ACEOF
  1724. /* confdefs.h. */
  1725. _ACEOF
  1726. cat confdefs.h >>conftest.$ac_ext
  1727. cat >>conftest.$ac_ext <<_ACEOF
  1728. /* end confdefs.h. */
  1729. int
  1730. main ()
  1731. {
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. rm -f conftest.$ac_objext
  1737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1738. (eval $ac_compile) 2>conftest.er1
  1739. ac_status=$?
  1740. grep -v '^ *+' conftest.er1 >conftest.err
  1741. rm -f conftest.er1
  1742. cat conftest.err >&5
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); } &&
  1745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1747. (eval $ac_try) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; } &&
  1751. { ac_try='test -s conftest.$ac_objext'
  1752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1753. (eval $ac_try) 2>&5
  1754. ac_status=$?
  1755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1756. (exit $ac_status); }; }; then
  1757. ac_cv_prog_cc_g=yes
  1758. else
  1759. echo "$as_me: failed program was:" >&5
  1760. sed 's/^/| /' conftest.$ac_ext >&5
  1761. ac_cv_prog_cc_g=no
  1762. fi
  1763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1766. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1767. if test "$ac_test_CFLAGS" = set; then
  1768. CFLAGS=$ac_save_CFLAGS
  1769. elif test $ac_cv_prog_cc_g = yes; then
  1770. if test "$GCC" = yes; then
  1771. CFLAGS="-g -O2"
  1772. else
  1773. CFLAGS="-g"
  1774. fi
  1775. else
  1776. if test "$GCC" = yes; then
  1777. CFLAGS="-O2"
  1778. else
  1779. CFLAGS=
  1780. fi
  1781. fi
  1782. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1783. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1784. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. ac_cv_prog_cc_stdc=no
  1788. ac_save_CC=$CC
  1789. cat >conftest.$ac_ext <<_ACEOF
  1790. /* confdefs.h. */
  1791. _ACEOF
  1792. cat confdefs.h >>conftest.$ac_ext
  1793. cat >>conftest.$ac_ext <<_ACEOF
  1794. /* end confdefs.h. */
  1795. #include <stdarg.h>
  1796. #include <stdio.h>
  1797. #include <sys/types.h>
  1798. #include <sys/stat.h>
  1799. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1800. struct buf { int x; };
  1801. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1802. static char *e (p, i)
  1803. char **p;
  1804. int i;
  1805. {
  1806. return p[i];
  1807. }
  1808. static char *f (char * (*g) (char **, int), char **p, ...)
  1809. {
  1810. char *s;
  1811. va_list v;
  1812. va_start (v,p);
  1813. s = g (p, va_arg (v,int));
  1814. va_end (v);
  1815. return s;
  1816. }
  1817. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1818. function prototypes and stuff, but not '\xHH' hex character constants.
  1819. These don't provoke an error unfortunately, instead are silently treated
  1820. as 'x'. The following induces an error, until -std1 is added to get
  1821. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1822. array size at least. It's necessary to write '\x00'==0 to get something
  1823. that's true only with -std1. */
  1824. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1825. int test (int i, double x);
  1826. struct s1 {int (*f) (int a);};
  1827. struct s2 {int (*f) (double a);};
  1828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1829. int argc;
  1830. char **argv;
  1831. int
  1832. main ()
  1833. {
  1834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1835. ;
  1836. return 0;
  1837. }
  1838. _ACEOF
  1839. # Don't try gcc -ansi; that turns off useful extensions and
  1840. # breaks some systems' header files.
  1841. # AIX -qlanglvl=ansi
  1842. # Ultrix and OSF/1 -std1
  1843. # HP-UX 10.20 and later -Ae
  1844. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1845. # SVR4 -Xc -D__EXTENSIONS__
  1846. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1847. do
  1848. CC="$ac_save_CC $ac_arg"
  1849. rm -f conftest.$ac_objext
  1850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1851. (eval $ac_compile) 2>conftest.er1
  1852. ac_status=$?
  1853. grep -v '^ *+' conftest.er1 >conftest.err
  1854. rm -f conftest.er1
  1855. cat conftest.err >&5
  1856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1857. (exit $ac_status); } &&
  1858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1860. (eval $ac_try) 2>&5
  1861. ac_status=$?
  1862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1863. (exit $ac_status); }; } &&
  1864. { ac_try='test -s conftest.$ac_objext'
  1865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1866. (eval $ac_try) 2>&5
  1867. ac_status=$?
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); }; }; then
  1870. ac_cv_prog_cc_stdc=$ac_arg
  1871. break
  1872. else
  1873. echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. fi
  1876. rm -f conftest.err conftest.$ac_objext
  1877. done
  1878. rm -f conftest.$ac_ext conftest.$ac_objext
  1879. CC=$ac_save_CC
  1880. fi
  1881. case "x$ac_cv_prog_cc_stdc" in
  1882. x|xno)
  1883. echo "$as_me:$LINENO: result: none needed" >&5
  1884. echo "${ECHO_T}none needed" >&6 ;;
  1885. *)
  1886. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1887. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1888. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1889. esac
  1890. # Some people use a C++ compiler to compile C. Since we use `exit',
  1891. # in C++ we need to declare it. In case someone uses the same compiler
  1892. # for both compiling C and C++ we need to have the C++ compiler decide
  1893. # the declaration of exit, since it's the most demanding environment.
  1894. cat >conftest.$ac_ext <<_ACEOF
  1895. #ifndef __cplusplus
  1896. choke me
  1897. #endif
  1898. _ACEOF
  1899. rm -f conftest.$ac_objext
  1900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1901. (eval $ac_compile) 2>conftest.er1
  1902. ac_status=$?
  1903. grep -v '^ *+' conftest.er1 >conftest.err
  1904. rm -f conftest.er1
  1905. cat conftest.err >&5
  1906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1907. (exit $ac_status); } &&
  1908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1910. (eval $ac_try) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); }; } &&
  1914. { ac_try='test -s conftest.$ac_objext'
  1915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1916. (eval $ac_try) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }; }; then
  1920. for ac_declaration in \
  1921. '' \
  1922. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1923. 'extern "C" void std::exit (int); using std::exit;' \
  1924. 'extern "C" void exit (int) throw ();' \
  1925. 'extern "C" void exit (int);' \
  1926. 'void exit (int);'
  1927. do
  1928. cat >conftest.$ac_ext <<_ACEOF
  1929. /* confdefs.h. */
  1930. _ACEOF
  1931. cat confdefs.h >>conftest.$ac_ext
  1932. cat >>conftest.$ac_ext <<_ACEOF
  1933. /* end confdefs.h. */
  1934. $ac_declaration
  1935. #include <stdlib.h>
  1936. int
  1937. main ()
  1938. {
  1939. exit (42);
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. rm -f conftest.$ac_objext
  1945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1946. (eval $ac_compile) 2>conftest.er1
  1947. ac_status=$?
  1948. grep -v '^ *+' conftest.er1 >conftest.err
  1949. rm -f conftest.er1
  1950. cat conftest.err >&5
  1951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1952. (exit $ac_status); } &&
  1953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1955. (eval $ac_try) 2>&5
  1956. ac_status=$?
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); }; } &&
  1959. { ac_try='test -s conftest.$ac_objext'
  1960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1961. (eval $ac_try) 2>&5
  1962. ac_status=$?
  1963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1964. (exit $ac_status); }; }; then
  1965. :
  1966. else
  1967. echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. continue
  1970. fi
  1971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. cat >conftest.$ac_ext <<_ACEOF
  1973. /* confdefs.h. */
  1974. _ACEOF
  1975. cat confdefs.h >>conftest.$ac_ext
  1976. cat >>conftest.$ac_ext <<_ACEOF
  1977. /* end confdefs.h. */
  1978. $ac_declaration
  1979. int
  1980. main ()
  1981. {
  1982. exit (42);
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. rm -f conftest.$ac_objext
  1988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1989. (eval $ac_compile) 2>conftest.er1
  1990. ac_status=$?
  1991. grep -v '^ *+' conftest.er1 >conftest.err
  1992. rm -f conftest.er1
  1993. cat conftest.err >&5
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); } &&
  1996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1998. (eval $ac_try) 2>&5
  1999. ac_status=$?
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); }; } &&
  2002. { ac_try='test -s conftest.$ac_objext'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. break
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. fi
  2013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. done
  2015. rm -f conftest*
  2016. if test -n "$ac_declaration"; then
  2017. echo '#ifdef __cplusplus' >>confdefs.h
  2018. echo $ac_declaration >>confdefs.h
  2019. echo '#endif' >>confdefs.h
  2020. fi
  2021. else
  2022. echo "$as_me: failed program was:" >&5
  2023. sed 's/^/| /' conftest.$ac_ext >&5
  2024. fi
  2025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. ac_ext=c
  2027. ac_cpp='$CPP $CPPFLAGS'
  2028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2031. if test "${cross_compiling-x}" = "x"
  2032. then
  2033. cat << 'EOF' >&2
  2034. configure: error:
  2035. This system does not appear to have a working C compiler.
  2036. A working C compiler is required to compile Eggdrop.
  2037. EOF
  2038. exit 1
  2039. fi
  2040. # Crazy machines
  2041. ac_ext=c
  2042. ac_cpp='$CPP $CPPFLAGS'
  2043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2046. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2047. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2048. # On Suns, sometimes $CPP names a directory.
  2049. if test -n "$CPP" && test -d "$CPP"; then
  2050. CPP=
  2051. fi
  2052. if test -z "$CPP"; then
  2053. if test "${ac_cv_prog_CPP+set}" = set; then
  2054. echo $ECHO_N "(cached) $ECHO_C" >&6
  2055. else
  2056. # Double quotes because CPP needs to be expanded
  2057. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2058. do
  2059. ac_preproc_ok=false
  2060. for ac_c_preproc_warn_flag in '' yes
  2061. do
  2062. # Use a header file that comes with gcc, so configuring glibc
  2063. # with a fresh cross-compiler works.
  2064. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2065. # <limits.h> exists even on freestanding compilers.
  2066. # On the NeXT, cc -E runs the code through the compiler's parser,
  2067. # not just through cpp. "Syntax error" is here to catch this case.
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. #ifdef __STDC__
  2075. # include <limits.h>
  2076. #else
  2077. # include <assert.h>
  2078. #endif
  2079. Syntax error
  2080. _ACEOF
  2081. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2082. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2083. ac_status=$?
  2084. grep -v '^ *+' conftest.er1 >conftest.err
  2085. rm -f conftest.er1
  2086. cat conftest.err >&5
  2087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088. (exit $ac_status); } >/dev/null; then
  2089. if test -s conftest.err; then
  2090. ac_cpp_err=$ac_c_preproc_warn_flag
  2091. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2092. else
  2093. ac_cpp_err=
  2094. fi
  2095. else
  2096. ac_cpp_err=yes
  2097. fi
  2098. if test -z "$ac_cpp_err"; then
  2099. :
  2100. else
  2101. echo "$as_me: failed program was:" >&5
  2102. sed 's/^/| /' conftest.$ac_ext >&5
  2103. # Broken: fails on valid input.
  2104. continue
  2105. fi
  2106. rm -f conftest.err conftest.$ac_ext
  2107. # OK, works on sane cases. Now check whether non-existent headers
  2108. # can be detected and how.
  2109. cat >conftest.$ac_ext <<_ACEOF
  2110. /* confdefs.h. */
  2111. _ACEOF
  2112. cat confdefs.h >>conftest.$ac_ext
  2113. cat >>conftest.$ac_ext <<_ACEOF
  2114. /* end confdefs.h. */
  2115. #include <ac_nonexistent.h>
  2116. _ACEOF
  2117. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2118. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } >/dev/null; then
  2125. if test -s conftest.err; then
  2126. ac_cpp_err=$ac_c_preproc_warn_flag
  2127. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2128. else
  2129. ac_cpp_err=
  2130. fi
  2131. else
  2132. ac_cpp_err=yes
  2133. fi
  2134. if test -z "$ac_cpp_err"; then
  2135. # Broken: success on invalid input.
  2136. continue
  2137. else
  2138. echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. # Passes both tests.
  2141. ac_preproc_ok=:
  2142. break
  2143. fi
  2144. rm -f conftest.err conftest.$ac_ext
  2145. done
  2146. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2147. rm -f conftest.err conftest.$ac_ext
  2148. if $ac_preproc_ok; then
  2149. break
  2150. fi
  2151. done
  2152. ac_cv_prog_CPP=$CPP
  2153. fi
  2154. CPP=$ac_cv_prog_CPP
  2155. else
  2156. ac_cv_prog_CPP=$CPP
  2157. fi
  2158. echo "$as_me:$LINENO: result: $CPP" >&5
  2159. echo "${ECHO_T}$CPP" >&6
  2160. ac_preproc_ok=false
  2161. for ac_c_preproc_warn_flag in '' yes
  2162. do
  2163. # Use a header file that comes with gcc, so configuring glibc
  2164. # with a fresh cross-compiler works.
  2165. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2166. # <limits.h> exists even on freestanding compilers.
  2167. # On the NeXT, cc -E runs the code through the compiler's parser,
  2168. # not just through cpp. "Syntax error" is here to catch this case.
  2169. cat >conftest.$ac_ext <<_ACEOF
  2170. /* confdefs.h. */
  2171. _ACEOF
  2172. cat confdefs.h >>conftest.$ac_ext
  2173. cat >>conftest.$ac_ext <<_ACEOF
  2174. /* end confdefs.h. */
  2175. #ifdef __STDC__
  2176. # include <limits.h>
  2177. #else
  2178. # include <assert.h>
  2179. #endif
  2180. Syntax error
  2181. _ACEOF
  2182. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2183. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2184. ac_status=$?
  2185. grep -v '^ *+' conftest.er1 >conftest.err
  2186. rm -f conftest.er1
  2187. cat conftest.err >&5
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); } >/dev/null; then
  2190. if test -s conftest.err; then
  2191. ac_cpp_err=$ac_c_preproc_warn_flag
  2192. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2193. else
  2194. ac_cpp_err=
  2195. fi
  2196. else
  2197. ac_cpp_err=yes
  2198. fi
  2199. if test -z "$ac_cpp_err"; then
  2200. :
  2201. else
  2202. echo "$as_me: failed program was:" >&5
  2203. sed 's/^/| /' conftest.$ac_ext >&5
  2204. # Broken: fails on valid input.
  2205. continue
  2206. fi
  2207. rm -f conftest.err conftest.$ac_ext
  2208. # OK, works on sane cases. Now check whether non-existent headers
  2209. # can be detected and how.
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #include <ac_nonexistent.h>
  2217. _ACEOF
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2219. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2220. ac_status=$?
  2221. grep -v '^ *+' conftest.er1 >conftest.err
  2222. rm -f conftest.er1
  2223. cat conftest.err >&5
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); } >/dev/null; then
  2226. if test -s conftest.err; then
  2227. ac_cpp_err=$ac_c_preproc_warn_flag
  2228. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2229. else
  2230. ac_cpp_err=
  2231. fi
  2232. else
  2233. ac_cpp_err=yes
  2234. fi
  2235. if test -z "$ac_cpp_err"; then
  2236. # Broken: success on invalid input.
  2237. continue
  2238. else
  2239. echo "$as_me: failed program was:" >&5
  2240. sed 's/^/| /' conftest.$ac_ext >&5
  2241. # Passes both tests.
  2242. ac_preproc_ok=:
  2243. break
  2244. fi
  2245. rm -f conftest.err conftest.$ac_ext
  2246. done
  2247. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2248. rm -f conftest.err conftest.$ac_ext
  2249. if $ac_preproc_ok; then
  2250. :
  2251. else
  2252. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2253. See \`config.log' for more details." >&5
  2254. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2255. See \`config.log' for more details." >&2;}
  2256. { (exit 1); exit 1; }; }
  2257. fi
  2258. ac_ext=c
  2259. ac_cpp='$CPP $CPPFLAGS'
  2260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2263. echo "$as_me:$LINENO: checking for egrep" >&5
  2264. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2265. if test "${ac_cv_prog_egrep+set}" = set; then
  2266. echo $ECHO_N "(cached) $ECHO_C" >&6
  2267. else
  2268. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2269. then ac_cv_prog_egrep='grep -E'
  2270. else ac_cv_prog_egrep='egrep'
  2271. fi
  2272. fi
  2273. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2274. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2275. EGREP=$ac_cv_prog_egrep
  2276. echo "$as_me:$LINENO: checking for AIX" >&5
  2277. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2278. cat >conftest.$ac_ext <<_ACEOF
  2279. /* confdefs.h. */
  2280. _ACEOF
  2281. cat confdefs.h >>conftest.$ac_ext
  2282. cat >>conftest.$ac_ext <<_ACEOF
  2283. /* end confdefs.h. */
  2284. #ifdef _AIX
  2285. yes
  2286. #endif
  2287. _ACEOF
  2288. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2289. $EGREP "yes" >/dev/null 2>&1; then
  2290. echo "$as_me:$LINENO: result: yes" >&5
  2291. echo "${ECHO_T}yes" >&6
  2292. cat >>confdefs.h <<\_ACEOF
  2293. #define _ALL_SOURCE 1
  2294. _ACEOF
  2295. else
  2296. echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6
  2298. fi
  2299. rm -f conftest*
  2300. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2301. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2302. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. ac_check_lib_save_LIBS=$LIBS
  2306. LIBS="-lcposix $LIBS"
  2307. cat >conftest.$ac_ext <<_ACEOF
  2308. /* confdefs.h. */
  2309. _ACEOF
  2310. cat confdefs.h >>conftest.$ac_ext
  2311. cat >>conftest.$ac_ext <<_ACEOF
  2312. /* end confdefs.h. */
  2313. /* Override any gcc2 internal prototype to avoid an error. */
  2314. #ifdef __cplusplus
  2315. extern "C"
  2316. #endif
  2317. /* We use char because int might match the return type of a gcc2
  2318. builtin and then its argument prototype would still apply. */
  2319. char strerror ();
  2320. int
  2321. main ()
  2322. {
  2323. strerror ();
  2324. ;
  2325. return 0;
  2326. }
  2327. _ACEOF
  2328. rm -f conftest.$ac_objext conftest$ac_exeext
  2329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2330. (eval $ac_link) 2>conftest.er1
  2331. ac_status=$?
  2332. grep -v '^ *+' conftest.er1 >conftest.err
  2333. rm -f conftest.er1
  2334. cat conftest.err >&5
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); } &&
  2337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2339. (eval $ac_try) 2>&5
  2340. ac_status=$?
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); }; } &&
  2343. { ac_try='test -s conftest$ac_exeext'
  2344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2345. (eval $ac_try) 2>&5
  2346. ac_status=$?
  2347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2348. (exit $ac_status); }; }; then
  2349. ac_cv_lib_cposix_strerror=yes
  2350. else
  2351. echo "$as_me: failed program was:" >&5
  2352. sed 's/^/| /' conftest.$ac_ext >&5
  2353. ac_cv_lib_cposix_strerror=no
  2354. fi
  2355. rm -f conftest.err conftest.$ac_objext \
  2356. conftest$ac_exeext conftest.$ac_ext
  2357. LIBS=$ac_check_lib_save_LIBS
  2358. fi
  2359. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2360. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2361. if test $ac_cv_lib_cposix_strerror = yes; then
  2362. LIBS="$LIBS -lcposix"
  2363. fi
  2364. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2365. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2366. if test "${ac_cv_header_stdc+set}" = set; then
  2367. echo $ECHO_N "(cached) $ECHO_C" >&6
  2368. else
  2369. cat >conftest.$ac_ext <<_ACEOF
  2370. /* confdefs.h. */
  2371. _ACEOF
  2372. cat confdefs.h >>conftest.$ac_ext
  2373. cat >>conftest.$ac_ext <<_ACEOF
  2374. /* end confdefs.h. */
  2375. #include <stdlib.h>
  2376. #include <stdarg.h>
  2377. #include <string.h>
  2378. #include <float.h>
  2379. int
  2380. main ()
  2381. {
  2382. ;
  2383. return 0;
  2384. }
  2385. _ACEOF
  2386. rm -f conftest.$ac_objext
  2387. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2388. (eval $ac_compile) 2>conftest.er1
  2389. ac_status=$?
  2390. grep -v '^ *+' conftest.er1 >conftest.err
  2391. rm -f conftest.er1
  2392. cat conftest.err >&5
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); } &&
  2395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2397. (eval $ac_try) 2>&5
  2398. ac_status=$?
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); }; } &&
  2401. { ac_try='test -s conftest.$ac_objext'
  2402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2403. (eval $ac_try) 2>&5
  2404. ac_status=$?
  2405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2406. (exit $ac_status); }; }; then
  2407. ac_cv_header_stdc=yes
  2408. else
  2409. echo "$as_me: failed program was:" >&5
  2410. sed 's/^/| /' conftest.$ac_ext >&5
  2411. ac_cv_header_stdc=no
  2412. fi
  2413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2414. if test $ac_cv_header_stdc = yes; then
  2415. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2416. cat >conftest.$ac_ext <<_ACEOF
  2417. /* confdefs.h. */
  2418. _ACEOF
  2419. cat confdefs.h >>conftest.$ac_ext
  2420. cat >>conftest.$ac_ext <<_ACEOF
  2421. /* end confdefs.h. */
  2422. #include <string.h>
  2423. _ACEOF
  2424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2425. $EGREP "memchr" >/dev/null 2>&1; then
  2426. :
  2427. else
  2428. ac_cv_header_stdc=no
  2429. fi
  2430. rm -f conftest*
  2431. fi
  2432. if test $ac_cv_header_stdc = yes; then
  2433. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2434. cat >conftest.$ac_ext <<_ACEOF
  2435. /* confdefs.h. */
  2436. _ACEOF
  2437. cat confdefs.h >>conftest.$ac_ext
  2438. cat >>conftest.$ac_ext <<_ACEOF
  2439. /* end confdefs.h. */
  2440. #include <stdlib.h>
  2441. _ACEOF
  2442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2443. $EGREP "free" >/dev/null 2>&1; then
  2444. :
  2445. else
  2446. ac_cv_header_stdc=no
  2447. fi
  2448. rm -f conftest*
  2449. fi
  2450. if test $ac_cv_header_stdc = yes; then
  2451. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2452. if test "$cross_compiling" = yes; then
  2453. :
  2454. else
  2455. cat >conftest.$ac_ext <<_ACEOF
  2456. /* confdefs.h. */
  2457. _ACEOF
  2458. cat confdefs.h >>conftest.$ac_ext
  2459. cat >>conftest.$ac_ext <<_ACEOF
  2460. /* end confdefs.h. */
  2461. #include <ctype.h>
  2462. #if ((' ' & 0x0FF) == 0x020)
  2463. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2464. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2465. #else
  2466. # define ISLOWER(c) \
  2467. (('a' <= (c) && (c) <= 'i') \
  2468. || ('j' <= (c) && (c) <= 'r') \
  2469. || ('s' <= (c) && (c) <= 'z'))
  2470. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2471. #endif
  2472. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2473. int
  2474. main ()
  2475. {
  2476. int i;
  2477. for (i = 0; i < 256; i++)
  2478. if (XOR (islower (i), ISLOWER (i))
  2479. || toupper (i) != TOUPPER (i))
  2480. exit(2);
  2481. exit (0);
  2482. }
  2483. _ACEOF
  2484. rm -f conftest$ac_exeext
  2485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2486. (eval $ac_link) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2491. (eval $ac_try) 2>&5
  2492. ac_status=$?
  2493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2494. (exit $ac_status); }; }; then
  2495. :
  2496. else
  2497. echo "$as_me: program exited with status $ac_status" >&5
  2498. echo "$as_me: failed program was:" >&5
  2499. sed 's/^/| /' conftest.$ac_ext >&5
  2500. ( exit $ac_status )
  2501. ac_cv_header_stdc=no
  2502. fi
  2503. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2504. fi
  2505. fi
  2506. fi
  2507. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2508. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2509. if test $ac_cv_header_stdc = yes; then
  2510. cat >>confdefs.h <<\_ACEOF
  2511. #define STDC_HEADERS 1
  2512. _ACEOF
  2513. fi
  2514. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2515. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2516. inttypes.h stdint.h unistd.h
  2517. do
  2518. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2522. echo $ECHO_N "(cached) $ECHO_C" >&6
  2523. else
  2524. cat >conftest.$ac_ext <<_ACEOF
  2525. /* confdefs.h. */
  2526. _ACEOF
  2527. cat confdefs.h >>conftest.$ac_ext
  2528. cat >>conftest.$ac_ext <<_ACEOF
  2529. /* end confdefs.h. */
  2530. $ac_includes_default
  2531. #include <$ac_header>
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. eval "$as_ac_Header=yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. eval "$as_ac_Header=no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. fi
  2562. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2563. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2564. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2565. cat >>confdefs.h <<_ACEOF
  2566. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2567. _ACEOF
  2568. fi
  2569. done
  2570. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2571. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2572. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2573. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. fi
  2576. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2577. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2578. else
  2579. # Is the header compilable?
  2580. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2581. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2582. cat >conftest.$ac_ext <<_ACEOF
  2583. /* confdefs.h. */
  2584. _ACEOF
  2585. cat confdefs.h >>conftest.$ac_ext
  2586. cat >>conftest.$ac_ext <<_ACEOF
  2587. /* end confdefs.h. */
  2588. $ac_includes_default
  2589. #include <minix/config.h>
  2590. _ACEOF
  2591. rm -f conftest.$ac_objext
  2592. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2593. (eval $ac_compile) 2>conftest.er1
  2594. ac_status=$?
  2595. grep -v '^ *+' conftest.er1 >conftest.err
  2596. rm -f conftest.er1
  2597. cat conftest.err >&5
  2598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2599. (exit $ac_status); } &&
  2600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2602. (eval $ac_try) 2>&5
  2603. ac_status=$?
  2604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2605. (exit $ac_status); }; } &&
  2606. { ac_try='test -s conftest.$ac_objext'
  2607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2608. (eval $ac_try) 2>&5
  2609. ac_status=$?
  2610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2611. (exit $ac_status); }; }; then
  2612. ac_header_compiler=yes
  2613. else
  2614. echo "$as_me: failed program was:" >&5
  2615. sed 's/^/| /' conftest.$ac_ext >&5
  2616. ac_header_compiler=no
  2617. fi
  2618. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2619. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2620. echo "${ECHO_T}$ac_header_compiler" >&6
  2621. # Is the header present?
  2622. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2623. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2624. cat >conftest.$ac_ext <<_ACEOF
  2625. /* confdefs.h. */
  2626. _ACEOF
  2627. cat confdefs.h >>conftest.$ac_ext
  2628. cat >>conftest.$ac_ext <<_ACEOF
  2629. /* end confdefs.h. */
  2630. #include <minix/config.h>
  2631. _ACEOF
  2632. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2633. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2634. ac_status=$?
  2635. grep -v '^ *+' conftest.er1 >conftest.err
  2636. rm -f conftest.er1
  2637. cat conftest.err >&5
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); } >/dev/null; then
  2640. if test -s conftest.err; then
  2641. ac_cpp_err=$ac_c_preproc_warn_flag
  2642. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2643. else
  2644. ac_cpp_err=
  2645. fi
  2646. else
  2647. ac_cpp_err=yes
  2648. fi
  2649. if test -z "$ac_cpp_err"; then
  2650. ac_header_preproc=yes
  2651. else
  2652. echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654. ac_header_preproc=no
  2655. fi
  2656. rm -f conftest.err conftest.$ac_ext
  2657. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2658. echo "${ECHO_T}$ac_header_preproc" >&6
  2659. # So? What about this header?
  2660. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2661. yes:no: )
  2662. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2663. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2665. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2666. ac_header_preproc=yes
  2667. ;;
  2668. no:yes:* )
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2670. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2671. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2672. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2673. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2674. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2675. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2676. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2677. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2678. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2679. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2680. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2681. (
  2682. cat <<\_ASBOX
  2683. ## ------------------------------------------ ##
  2684. ## Report this to the AC_PACKAGE_NAME lists. ##
  2685. ## ------------------------------------------ ##
  2686. _ASBOX
  2687. ) |
  2688. sed "s/^/$as_me: WARNING: /" >&2
  2689. ;;
  2690. esac
  2691. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2692. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2693. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2694. echo $ECHO_N "(cached) $ECHO_C" >&6
  2695. else
  2696. ac_cv_header_minix_config_h=$ac_header_preproc
  2697. fi
  2698. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2699. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2700. fi
  2701. if test $ac_cv_header_minix_config_h = yes; then
  2702. MINIX=yes
  2703. else
  2704. MINIX=
  2705. fi
  2706. if test "$MINIX" = yes; then
  2707. cat >>confdefs.h <<\_ACEOF
  2708. #define _POSIX_SOURCE 1
  2709. _ACEOF
  2710. cat >>confdefs.h <<\_ACEOF
  2711. #define _POSIX_1_SOURCE 2
  2712. _ACEOF
  2713. cat >>confdefs.h <<\_ACEOF
  2714. #define _MINIX 1
  2715. _ACEOF
  2716. fi
  2717. #checkpoint
  2718. cat >confcache <<\_ACEOF
  2719. # This file is a shell script that caches the results of configure
  2720. # tests run on this system so they can be shared between configure
  2721. # scripts and configure runs, see configure's option --config-cache.
  2722. # It is not useful on other systems. If it contains results you don't
  2723. # want to keep, you may remove or edit it.
  2724. #
  2725. # config.status only pays attention to the cache file if you give it
  2726. # the --recheck option to rerun configure.
  2727. #
  2728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2730. # following values.
  2731. _ACEOF
  2732. # The following way of writing the cache mishandles newlines in values,
  2733. # but we know of no workaround that is simple, portable, and efficient.
  2734. # So, don't put newlines in cache variables' values.
  2735. # Ultrix sh set writes to stderr and can't be redirected directly,
  2736. # and sets the high bit in the cache file unless we assign to the vars.
  2737. {
  2738. (set) 2>&1 |
  2739. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2740. *ac_space=\ *)
  2741. # `set' does not quote correctly, so add quotes (double-quote
  2742. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2743. sed -n \
  2744. "s/'/'\\\\''/g;
  2745. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2746. ;;
  2747. *)
  2748. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2749. sed -n \
  2750. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2751. ;;
  2752. esac;
  2753. } |
  2754. sed '
  2755. t clear
  2756. : clear
  2757. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2758. t end
  2759. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2760. : end' >>confcache
  2761. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2762. if test -w $cache_file; then
  2763. test "x$cache_file" != "x/dev/null"
  2764. cat confcache >$cache_file
  2765. else
  2766. echo "not updating unwritable cache $cache_file"
  2767. fi
  2768. fi
  2769. rm -f confcache
  2770. # Speedup compile
  2771. if test -z "$no_pipe"
  2772. then
  2773. if test -n "$GCC"
  2774. then
  2775. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2776. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2777. if test "${egg_cv_var_ccpipe+set}" = set; then
  2778. echo $ECHO_N "(cached) $ECHO_C" >&6
  2779. else
  2780. ac_old_CC="$CC"
  2781. CC="$CC -pipe"
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. ;
  2792. return 0;
  2793. }
  2794. _ACEOF
  2795. rm -f conftest.$ac_objext
  2796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2797. (eval $ac_compile) 2>conftest.er1
  2798. ac_status=$?
  2799. grep -v '^ *+' conftest.er1 >conftest.err
  2800. rm -f conftest.er1
  2801. cat conftest.err >&5
  2802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803. (exit $ac_status); } &&
  2804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2806. (eval $ac_try) 2>&5
  2807. ac_status=$?
  2808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2809. (exit $ac_status); }; } &&
  2810. { ac_try='test -s conftest.$ac_objext'
  2811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2812. (eval $ac_try) 2>&5
  2813. ac_status=$?
  2814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); }; }; then
  2816. egg_cv_var_ccpipe="yes"
  2817. else
  2818. echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. egg_cv_var_ccpipe="no"
  2821. fi
  2822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2823. CC="$ac_old_CC"
  2824. fi
  2825. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2826. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2827. if test "$egg_cv_var_ccpipe" = "yes"
  2828. then
  2829. CC="$CC -pipe"
  2830. fi
  2831. fi
  2832. fi
  2833. CCDEPMODE=gcc
  2834. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2835. if test $num = "3"; then
  2836. CCDEPMODE=gcc3
  2837. fi
  2838. # Create static binaries
  2839. if test -z "$no_static"
  2840. then
  2841. if test -n "$GCC"
  2842. then
  2843. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2844. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2845. if test "${egg_cv_var_ccstatic+set}" = set; then
  2846. echo $ECHO_N "(cached) $ECHO_C" >&6
  2847. else
  2848. ac_old_CC="$CC"
  2849. CC="$CC -static"
  2850. cat >conftest.$ac_ext <<_ACEOF
  2851. /* confdefs.h. */
  2852. _ACEOF
  2853. cat confdefs.h >>conftest.$ac_ext
  2854. cat >>conftest.$ac_ext <<_ACEOF
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. rm -f conftest.$ac_objext
  2864. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2865. (eval $ac_compile) 2>conftest.er1
  2866. ac_status=$?
  2867. grep -v '^ *+' conftest.er1 >conftest.err
  2868. rm -f conftest.er1
  2869. cat conftest.err >&5
  2870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2871. (exit $ac_status); } &&
  2872. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2874. (eval $ac_try) 2>&5
  2875. ac_status=$?
  2876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2877. (exit $ac_status); }; } &&
  2878. { ac_try='test -s conftest.$ac_objext'
  2879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2880. (eval $ac_try) 2>&5
  2881. ac_status=$?
  2882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2883. (exit $ac_status); }; }; then
  2884. egg_cv_var_ccstatic="yes"
  2885. else
  2886. echo "$as_me: failed program was:" >&5
  2887. sed 's/^/| /' conftest.$ac_ext >&5
  2888. egg_cv_var_ccstatic="no"
  2889. fi
  2890. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2891. CC="$ac_old_CC"
  2892. fi
  2893. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2894. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2895. if test "$egg_cv_var_ccstatic" = "yes"
  2896. then
  2897. CCDEBUG="$CC"
  2898. CC="$CC -static"
  2899. else
  2900. cat << 'EOF' >&2
  2901. configure: error:
  2902. Your C compiler does not support -static.
  2903. This compile flag is required for the botpack.
  2904. EOF
  2905. exit 1
  2906. fi
  2907. fi
  2908. fi
  2909. # Checks for programs
  2910. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2911. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2912. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2913. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2914. echo $ECHO_N "(cached) $ECHO_C" >&6
  2915. else
  2916. cat >conftest.make <<\_ACEOF
  2917. all:
  2918. @echo 'ac_maketemp="$(MAKE)"'
  2919. _ACEOF
  2920. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2921. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2922. if test -n "$ac_maketemp"; then
  2923. eval ac_cv_prog_make_${ac_make}_set=yes
  2924. else
  2925. eval ac_cv_prog_make_${ac_make}_set=no
  2926. fi
  2927. rm -f conftest.make
  2928. fi
  2929. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2930. echo "$as_me:$LINENO: result: yes" >&5
  2931. echo "${ECHO_T}yes" >&6
  2932. SET_MAKE=
  2933. else
  2934. echo "$as_me:$LINENO: result: no" >&5
  2935. echo "${ECHO_T}no" >&6
  2936. SET_MAKE="MAKE=${MAKE-make}"
  2937. fi
  2938. cat << 'EOF' > conftest.head
  2939. a
  2940. b
  2941. c
  2942. EOF
  2943. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2944. do
  2945. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2946. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2947. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2948. echo $ECHO_N "(cached) $ECHO_C" >&6
  2949. else
  2950. if test -n "$HEAD_1"
  2951. then
  2952. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2953. else
  2954. if test "`cat conftest.head | $ac_prog`" = "a";
  2955. then
  2956. echo "$as_me:$LINENO: result: yes" >&5
  2957. echo "${ECHO_T}yes" >&6
  2958. ac_cv_prog_HEAD_1=$ac_prog
  2959. else
  2960. echo "$as_me:$LINENO: result: no" >&5
  2961. echo "${ECHO_T}no" >&6
  2962. fi
  2963. fi
  2964. fi
  2965. test -n "$ac_cv_prog_HEAD_1" && break
  2966. done
  2967. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2968. then
  2969. cat << 'EOF' >&2
  2970. configure: error:
  2971. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2972. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2973. EOF
  2974. exit 1
  2975. fi
  2976. rm -f conftest.head
  2977. HEAD_1=$ac_cv_prog_HEAD_1
  2978. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2979. for ac_prog in gawk mawk nawk awk
  2980. do
  2981. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2982. set dummy $ac_prog; ac_word=$2
  2983. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2984. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2985. if test "${ac_cv_prog_AWK+set}" = set; then
  2986. echo $ECHO_N "(cached) $ECHO_C" >&6
  2987. else
  2988. if test -n "$AWK"; then
  2989. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2990. else
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_exec_ext in '' $ac_executable_extensions; do
  2997. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2998. ac_cv_prog_AWK="$ac_prog"
  2999. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3000. break 2
  3001. fi
  3002. done
  3003. done
  3004. fi
  3005. fi
  3006. AWK=$ac_cv_prog_AWK
  3007. if test -n "$AWK"; then
  3008. echo "$as_me:$LINENO: result: $AWK" >&5
  3009. echo "${ECHO_T}$AWK" >&6
  3010. else
  3011. echo "$as_me:$LINENO: result: no" >&5
  3012. echo "${ECHO_T}no" >&6
  3013. fi
  3014. test -n "$AWK" && break
  3015. done
  3016. if test "${AWK-x}" = "x"
  3017. then
  3018. cat << 'EOF' >&2
  3019. configure: error:
  3020. This system seems to lack a working 'awk' command.
  3021. A working 'awk' command is required to compile Eggdrop.
  3022. EOF
  3023. exit 1
  3024. fi
  3025. # basename is needed for Tcl library and header checks
  3026. # Extract the first word of "basename", so it can be a program name with args.
  3027. set dummy basename; ac_word=$2
  3028. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3029. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3030. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3031. echo $ECHO_N "(cached) $ECHO_C" >&6
  3032. else
  3033. if test -n "$BASENAME"; then
  3034. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3035. else
  3036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3037. for as_dir in $PATH
  3038. do
  3039. IFS=$as_save_IFS
  3040. test -z "$as_dir" && as_dir=.
  3041. for ac_exec_ext in '' $ac_executable_extensions; do
  3042. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3043. ac_cv_prog_BASENAME="basename"
  3044. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3045. break 2
  3046. fi
  3047. done
  3048. done
  3049. fi
  3050. fi
  3051. BASENAME=$ac_cv_prog_BASENAME
  3052. if test -n "$BASENAME"; then
  3053. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3054. echo "${ECHO_T}$BASENAME" >&6
  3055. else
  3056. echo "$as_me:$LINENO: result: no" >&5
  3057. echo "${ECHO_T}no" >&6
  3058. fi
  3059. if test "${BASENAME-x}" = "x"
  3060. then
  3061. cat << 'EOF' >&2
  3062. configure: error:
  3063. This system seems to lack a working 'basename' command.
  3064. A working 'basename' command is required to compile Eggdrop.
  3065. EOF
  3066. exit 1
  3067. fi
  3068. # Extract the first word of "objcopy", so it can be a program name with args.
  3069. set dummy objcopy; ac_word=$2
  3070. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3071. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3072. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3073. echo $ECHO_N "(cached) $ECHO_C" >&6
  3074. else
  3075. if test -n "$OBJCOPY"; then
  3076. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3077. else
  3078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3079. for as_dir in $PATH
  3080. do
  3081. IFS=$as_save_IFS
  3082. test -z "$as_dir" && as_dir=.
  3083. for ac_exec_ext in '' $ac_executable_extensions; do
  3084. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3085. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3086. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3087. break 2
  3088. fi
  3089. done
  3090. done
  3091. fi
  3092. fi
  3093. OBJCOPY=$ac_cv_prog_OBJCOPY
  3094. if test -n "$OBJCOPY"; then
  3095. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3096. echo "${ECHO_T}$OBJCOPY" >&6
  3097. else
  3098. echo "$as_me:$LINENO: result: no" >&5
  3099. echo "${ECHO_T}no" >&6
  3100. fi
  3101. # Extract the first word of "strip", so it can be a program name with args.
  3102. set dummy strip; ac_word=$2
  3103. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3104. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3105. if test "${ac_cv_prog_STRIP+set}" = set; then
  3106. echo $ECHO_N "(cached) $ECHO_C" >&6
  3107. else
  3108. if test -n "$STRIP"; then
  3109. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3110. else
  3111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3112. for as_dir in $PATH
  3113. do
  3114. IFS=$as_save_IFS
  3115. test -z "$as_dir" && as_dir=.
  3116. for ac_exec_ext in '' $ac_executable_extensions; do
  3117. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3118. ac_cv_prog_STRIP="strip"
  3119. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3120. break 2
  3121. fi
  3122. done
  3123. done
  3124. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3125. fi
  3126. fi
  3127. STRIP=$ac_cv_prog_STRIP
  3128. if test -n "$STRIP"; then
  3129. echo "$as_me:$LINENO: result: $STRIP" >&5
  3130. echo "${ECHO_T}$STRIP" >&6
  3131. else
  3132. echo "$as_me:$LINENO: result: no" >&5
  3133. echo "${ECHO_T}no" >&6
  3134. fi
  3135. # Extract the first word of "uname", so it can be a program name with args.
  3136. set dummy uname; ac_word=$2
  3137. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3138. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3139. if test "${ac_cv_prog_UNAME+set}" = set; then
  3140. echo $ECHO_N "(cached) $ECHO_C" >&6
  3141. else
  3142. if test -n "$UNAME"; then
  3143. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3144. else
  3145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146. for as_dir in $PATH
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3152. ac_cv_prog_UNAME="uname"
  3153. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. fi
  3159. fi
  3160. UNAME=$ac_cv_prog_UNAME
  3161. if test -n "$UNAME"; then
  3162. echo "$as_me:$LINENO: result: $UNAME" >&5
  3163. echo "${ECHO_T}$UNAME" >&6
  3164. else
  3165. echo "$as_me:$LINENO: result: no" >&5
  3166. echo "${ECHO_T}no" >&6
  3167. fi
  3168. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3169. # Extract the first word of "distcc", so it can be a program name with args.
  3170. set dummy distcc; ac_word=$2
  3171. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3173. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3174. echo $ECHO_N "(cached) $ECHO_C" >&6
  3175. else
  3176. if test -n "$DISTCC"; then
  3177. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3178. else
  3179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3180. for as_dir in $PATH
  3181. do
  3182. IFS=$as_save_IFS
  3183. test -z "$as_dir" && as_dir=.
  3184. for ac_exec_ext in '' $ac_executable_extensions; do
  3185. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3186. ac_cv_prog_DISTCC="distcc"
  3187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3188. break 2
  3189. fi
  3190. done
  3191. done
  3192. fi
  3193. fi
  3194. DISTCC=$ac_cv_prog_DISTCC
  3195. if test -n "$DISTCC"; then
  3196. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3197. echo "${ECHO_T}$DISTCC" >&6
  3198. else
  3199. echo "$as_me:$LINENO: result: no" >&5
  3200. echo "${ECHO_T}no" >&6
  3201. fi
  3202. # Test the os and set the module linking settings
  3203. LINUX=no
  3204. IRIX=no
  3205. SUNOS=no
  3206. EGG_CYGWIN=no
  3207. echo "$as_me:$LINENO: checking system type" >&5
  3208. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3209. if test "${egg_cv_var_system_type+set}" = set; then
  3210. echo $ECHO_N "(cached) $ECHO_C" >&6
  3211. else
  3212. egg_cv_var_system_type=`$UNAME -s`
  3213. fi
  3214. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3215. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3216. echo "$as_me:$LINENO: checking system release" >&5
  3217. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3218. if test "${egg_cv_var_system_release+set}" = set; then
  3219. echo $ECHO_N "(cached) $ECHO_C" >&6
  3220. else
  3221. egg_cv_var_system_release=`$UNAME -r`
  3222. fi
  3223. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3224. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3225. case "$egg_cv_var_system_type" in
  3226. BSD/OS)
  3227. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3228. 2)
  3229. ;;
  3230. *)
  3231. CFLAGS="$CFLAGS -Wall"
  3232. ;;
  3233. esac
  3234. ;;
  3235. CYGWI*)
  3236. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3237. 1.*)
  3238. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3239. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3240. WIN32FLAGS=
  3241. cat >conftest.$ac_ext <<_ACEOF
  3242. /* confdefs.h. */
  3243. _ACEOF
  3244. cat confdefs.h >>conftest.$ac_ext
  3245. cat >>conftest.$ac_ext <<_ACEOF
  3246. /* end confdefs.h. */
  3247. int
  3248. main ()
  3249. {
  3250. #ifndef WIN32
  3251. # ifndef _WIN32
  3252. # error WIN32 or _WIN32 not defined
  3253. # endif
  3254. #endif
  3255. ;
  3256. return 0;
  3257. }
  3258. _ACEOF
  3259. rm -f conftest.$ac_objext
  3260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3261. (eval $ac_compile) 2>conftest.er1
  3262. ac_status=$?
  3263. grep -v '^ *+' conftest.er1 >conftest.err
  3264. rm -f conftest.er1
  3265. cat conftest.err >&5
  3266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3267. (exit $ac_status); } &&
  3268. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3270. (eval $ac_try) 2>&5
  3271. ac_status=$?
  3272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3273. (exit $ac_status); }; } &&
  3274. { ac_try='test -s conftest.$ac_objext'
  3275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3276. (eval $ac_try) 2>&5
  3277. ac_status=$?
  3278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279. (exit $ac_status); }; }; then
  3280. echo "$as_me:$LINENO: result: present by default" >&5
  3281. echo "${ECHO_T}present by default" >&6
  3282. else
  3283. echo "$as_me: failed program was:" >&5
  3284. sed 's/^/| /' conftest.$ac_ext >&5
  3285. ac_compile_save="$ac_compile"
  3286. save_CC="$CC"
  3287. ac_compile="$ac_compile -mwin32"
  3288. CC="$CC -mwin32"
  3289. cat >conftest.$ac_ext <<_ACEOF
  3290. /* confdefs.h. */
  3291. _ACEOF
  3292. cat confdefs.h >>conftest.$ac_ext
  3293. cat >>conftest.$ac_ext <<_ACEOF
  3294. /* end confdefs.h. */
  3295. int
  3296. main ()
  3297. {
  3298. #ifndef WIN32
  3299. # ifndef _WIN32
  3300. # error WIN32 or _WIN32 not defined
  3301. # endif
  3302. #endif
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. rm -f conftest.$ac_objext
  3308. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3309. (eval $ac_compile) 2>conftest.er1
  3310. ac_status=$?
  3311. grep -v '^ *+' conftest.er1 >conftest.err
  3312. rm -f conftest.er1
  3313. cat conftest.err >&5
  3314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3315. (exit $ac_status); } &&
  3316. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3318. (eval $ac_try) 2>&5
  3319. ac_status=$?
  3320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3321. (exit $ac_status); }; } &&
  3322. { ac_try='test -s conftest.$ac_objext'
  3323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3324. (eval $ac_try) 2>&5
  3325. ac_status=$?
  3326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); }; }; then
  3328. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3329. echo "${ECHO_T}found via -mwin32" >&6
  3330. ac_compile="$ac_compile_save"
  3331. CC="$save_CC"
  3332. WIN32FLAGS="-mwin32"
  3333. else
  3334. echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. ac_compile="$ac_compile_save"
  3337. CC="$save_CC"
  3338. echo "$as_me:$LINENO: result: not found" >&5
  3339. echo "${ECHO_T}not found" >&6
  3340. fi
  3341. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. fi
  3343. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3344. CC="$CC $WIN32FLAGS"
  3345. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3346. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3347. if test -r /usr/lib/binmode.o
  3348. then
  3349. echo "$as_me:$LINENO: result: yes" >&5
  3350. echo "${ECHO_T}yes" >&6
  3351. LIBS="$LIBS /usr/lib/binmode.o"
  3352. else
  3353. echo "$as_me:$LINENO: result: no" >&5
  3354. echo "${ECHO_T}no" >&6
  3355. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3356. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3357. fi
  3358. ;;
  3359. *)
  3360. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3361. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3362. ;;
  3363. esac
  3364. EGG_CYGWIN=yes
  3365. cat >>confdefs.h <<\_ACEOF
  3366. #define CYGWIN_HACKS 1
  3367. _ACEOF
  3368. ;;
  3369. IRIX)
  3370. IRIX=yes
  3371. ;;
  3372. Ultrix)
  3373. SHELL=/bin/sh5
  3374. ;;
  3375. SINIX*)
  3376. ;;
  3377. BeOS)
  3378. ;;
  3379. Linux)
  3380. LINUX=yes
  3381. CFLAGS="$CFLAGS -Wall"
  3382. ;;
  3383. Lynx)
  3384. ;;
  3385. QNX)
  3386. ;;
  3387. OSF1)
  3388. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3389. V*)
  3390. # FIXME: we should check this in a separate test
  3391. # Digital OSF uses an ancient version of gawk
  3392. if test "$AWK" = "gawk"
  3393. then
  3394. AWK=awk
  3395. fi
  3396. ;;
  3397. 1.0|1.1|1.2)
  3398. cat >>confdefs.h <<\_ACEOF
  3399. #define OSF1_HACKS 1
  3400. _ACEOF
  3401. ;;
  3402. 1.*)
  3403. cat >>confdefs.h <<\_ACEOF
  3404. #define OSF1_HACKS 1
  3405. _ACEOF
  3406. ;;
  3407. *)
  3408. ;;
  3409. esac
  3410. cat >>confdefs.h <<\_ACEOF
  3411. #define STOP_UAC 1
  3412. _ACEOF
  3413. cat >>confdefs.h <<\_ACEOF
  3414. #define BROKEN_SNPRINTF 1
  3415. _ACEOF
  3416. ;;
  3417. SunOS)
  3418. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3419. then
  3420. # SunOS 4
  3421. SUNOS=yes
  3422. fi
  3423. ;;
  3424. *BSD)
  3425. # FreeBSD/OpenBSD/NetBSD
  3426. ;;
  3427. *)
  3428. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3429. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3430. if test -r /mach
  3431. then
  3432. echo "$as_me:$LINENO: result: yes" >&5
  3433. echo "${ECHO_T}yes" >&6
  3434. cat >>confdefs.h <<\_ACEOF
  3435. #define BORGCUBES 1
  3436. _ACEOF
  3437. else
  3438. echo "$as_me:$LINENO: result: no" >&5
  3439. echo "${ECHO_T}no" >&6
  3440. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3441. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3442. if test -r /cmds
  3443. then
  3444. echo "$as_me:$LINENO: result: yes" >&5
  3445. echo "${ECHO_T}yes" >&6
  3446. else
  3447. echo "$as_me:$LINENO: result: no" >&5
  3448. echo "${ECHO_T}no" >&6
  3449. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3450. echo "${ECHO_T}Something unknown!" >&6
  3451. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3452. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3453. fi
  3454. fi
  3455. ;;
  3456. esac
  3457. dns_reslib_avail="true"
  3458. echo "$as_me:$LINENO: checking for res_init" >&5
  3459. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3460. if test "${ac_cv_func_res_init+set}" = set; then
  3461. echo $ECHO_N "(cached) $ECHO_C" >&6
  3462. else
  3463. cat >conftest.$ac_ext <<_ACEOF
  3464. /* confdefs.h. */
  3465. _ACEOF
  3466. cat confdefs.h >>conftest.$ac_ext
  3467. cat >>conftest.$ac_ext <<_ACEOF
  3468. /* end confdefs.h. */
  3469. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3470. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3471. #define res_init innocuous_res_init
  3472. /* System header to define __stub macros and hopefully few prototypes,
  3473. which can conflict with char res_init (); below.
  3474. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3475. <limits.h> exists even on freestanding compilers. */
  3476. #ifdef __STDC__
  3477. # include <limits.h>
  3478. #else
  3479. # include <assert.h>
  3480. #endif
  3481. #undef res_init
  3482. /* Override any gcc2 internal prototype to avoid an error. */
  3483. #ifdef __cplusplus
  3484. extern "C"
  3485. {
  3486. #endif
  3487. /* We use char because int might match the return type of a gcc2
  3488. builtin and then its argument prototype would still apply. */
  3489. char res_init ();
  3490. /* The GNU C library defines this for functions which it implements
  3491. to always fail with ENOSYS. Some functions are actually named
  3492. something starting with __ and the normal name is an alias. */
  3493. #if defined (__stub_res_init) || defined (__stub___res_init)
  3494. choke me
  3495. #else
  3496. char (*f) () = res_init;
  3497. #endif
  3498. #ifdef __cplusplus
  3499. }
  3500. #endif
  3501. int
  3502. main ()
  3503. {
  3504. return f != res_init;
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. rm -f conftest.$ac_objext conftest$ac_exeext
  3510. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3511. (eval $ac_link) 2>conftest.er1
  3512. ac_status=$?
  3513. grep -v '^ *+' conftest.er1 >conftest.err
  3514. rm -f conftest.er1
  3515. cat conftest.err >&5
  3516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3517. (exit $ac_status); } &&
  3518. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3520. (eval $ac_try) 2>&5
  3521. ac_status=$?
  3522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3523. (exit $ac_status); }; } &&
  3524. { ac_try='test -s conftest$ac_exeext'
  3525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3526. (eval $ac_try) 2>&5
  3527. ac_status=$?
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); }; }; then
  3530. ac_cv_func_res_init=yes
  3531. else
  3532. echo "$as_me: failed program was:" >&5
  3533. sed 's/^/| /' conftest.$ac_ext >&5
  3534. ac_cv_func_res_init=no
  3535. fi
  3536. rm -f conftest.err conftest.$ac_objext \
  3537. conftest$ac_exeext conftest.$ac_ext
  3538. fi
  3539. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3540. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3541. if test $ac_cv_func_res_init = yes; then
  3542. :
  3543. else
  3544. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3545. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3546. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3547. echo $ECHO_N "(cached) $ECHO_C" >&6
  3548. else
  3549. ac_check_lib_save_LIBS=$LIBS
  3550. LIBS="-lresolv $LIBS"
  3551. cat >conftest.$ac_ext <<_ACEOF
  3552. /* confdefs.h. */
  3553. _ACEOF
  3554. cat confdefs.h >>conftest.$ac_ext
  3555. cat >>conftest.$ac_ext <<_ACEOF
  3556. /* end confdefs.h. */
  3557. /* Override any gcc2 internal prototype to avoid an error. */
  3558. #ifdef __cplusplus
  3559. extern "C"
  3560. #endif
  3561. /* We use char because int might match the return type of a gcc2
  3562. builtin and then its argument prototype would still apply. */
  3563. char res_init ();
  3564. int
  3565. main ()
  3566. {
  3567. res_init ();
  3568. ;
  3569. return 0;
  3570. }
  3571. _ACEOF
  3572. rm -f conftest.$ac_objext conftest$ac_exeext
  3573. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3574. (eval $ac_link) 2>conftest.er1
  3575. ac_status=$?
  3576. grep -v '^ *+' conftest.er1 >conftest.err
  3577. rm -f conftest.er1
  3578. cat conftest.err >&5
  3579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3580. (exit $ac_status); } &&
  3581. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3583. (eval $ac_try) 2>&5
  3584. ac_status=$?
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); }; } &&
  3587. { ac_try='test -s conftest$ac_exeext'
  3588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3589. (eval $ac_try) 2>&5
  3590. ac_status=$?
  3591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3592. (exit $ac_status); }; }; then
  3593. ac_cv_lib_resolv_res_init=yes
  3594. else
  3595. echo "$as_me: failed program was:" >&5
  3596. sed 's/^/| /' conftest.$ac_ext >&5
  3597. ac_cv_lib_resolv_res_init=no
  3598. fi
  3599. rm -f conftest.err conftest.$ac_objext \
  3600. conftest$ac_exeext conftest.$ac_ext
  3601. LIBS=$ac_check_lib_save_LIBS
  3602. fi
  3603. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3604. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3605. if test $ac_cv_lib_resolv_res_init = yes; then
  3606. RESLIB="-lresolv"
  3607. else
  3608. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3609. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3610. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3611. echo $ECHO_N "(cached) $ECHO_C" >&6
  3612. else
  3613. ac_check_lib_save_LIBS=$LIBS
  3614. LIBS="-lbind $LIBS"
  3615. cat >conftest.$ac_ext <<_ACEOF
  3616. /* confdefs.h. */
  3617. _ACEOF
  3618. cat confdefs.h >>conftest.$ac_ext
  3619. cat >>conftest.$ac_ext <<_ACEOF
  3620. /* end confdefs.h. */
  3621. /* Override any gcc2 internal prototype to avoid an error. */
  3622. #ifdef __cplusplus
  3623. extern "C"
  3624. #endif
  3625. /* We use char because int might match the return type of a gcc2
  3626. builtin and then its argument prototype would still apply. */
  3627. char res_init ();
  3628. int
  3629. main ()
  3630. {
  3631. res_init ();
  3632. ;
  3633. return 0;
  3634. }
  3635. _ACEOF
  3636. rm -f conftest.$ac_objext conftest$ac_exeext
  3637. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3638. (eval $ac_link) 2>conftest.er1
  3639. ac_status=$?
  3640. grep -v '^ *+' conftest.er1 >conftest.err
  3641. rm -f conftest.er1
  3642. cat conftest.err >&5
  3643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3644. (exit $ac_status); } &&
  3645. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3647. (eval $ac_try) 2>&5
  3648. ac_status=$?
  3649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3650. (exit $ac_status); }; } &&
  3651. { ac_try='test -s conftest$ac_exeext'
  3652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3653. (eval $ac_try) 2>&5
  3654. ac_status=$?
  3655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3656. (exit $ac_status); }; }; then
  3657. ac_cv_lib_bind_res_init=yes
  3658. else
  3659. echo "$as_me: failed program was:" >&5
  3660. sed 's/^/| /' conftest.$ac_ext >&5
  3661. ac_cv_lib_bind_res_init=no
  3662. fi
  3663. rm -f conftest.err conftest.$ac_objext \
  3664. conftest$ac_exeext conftest.$ac_ext
  3665. LIBS=$ac_check_lib_save_LIBS
  3666. fi
  3667. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3668. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3669. if test $ac_cv_lib_bind_res_init = yes; then
  3670. RESLIB="-lbind"
  3671. else
  3672. dns_reslib_avail="false";
  3673. fi
  3674. fi
  3675. fi
  3676. if test "${dns_reslib_avail}" = false; then
  3677. dns_reslib_avail="true"
  3678. echo "$as_me:$LINENO: checking for __res_init" >&5
  3679. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3680. if test "${ac_cv_func___res_init+set}" = set; then
  3681. echo $ECHO_N "(cached) $ECHO_C" >&6
  3682. else
  3683. cat >conftest.$ac_ext <<_ACEOF
  3684. /* confdefs.h. */
  3685. _ACEOF
  3686. cat confdefs.h >>conftest.$ac_ext
  3687. cat >>conftest.$ac_ext <<_ACEOF
  3688. /* end confdefs.h. */
  3689. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3690. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3691. #define __res_init innocuous___res_init
  3692. /* System header to define __stub macros and hopefully few prototypes,
  3693. which can conflict with char __res_init (); below.
  3694. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3695. <limits.h> exists even on freestanding compilers. */
  3696. #ifdef __STDC__
  3697. # include <limits.h>
  3698. #else
  3699. # include <assert.h>
  3700. #endif
  3701. #undef __res_init
  3702. /* Override any gcc2 internal prototype to avoid an error. */
  3703. #ifdef __cplusplus
  3704. extern "C"
  3705. {
  3706. #endif
  3707. /* We use char because int might match the return type of a gcc2
  3708. builtin and then its argument prototype would still apply. */
  3709. char __res_init ();
  3710. /* The GNU C library defines this for functions which it implements
  3711. to always fail with ENOSYS. Some functions are actually named
  3712. something starting with __ and the normal name is an alias. */
  3713. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3714. choke me
  3715. #else
  3716. char (*f) () = __res_init;
  3717. #endif
  3718. #ifdef __cplusplus
  3719. }
  3720. #endif
  3721. int
  3722. main ()
  3723. {
  3724. return f != __res_init;
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. rm -f conftest.$ac_objext conftest$ac_exeext
  3730. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3731. (eval $ac_link) 2>conftest.er1
  3732. ac_status=$?
  3733. grep -v '^ *+' conftest.er1 >conftest.err
  3734. rm -f conftest.er1
  3735. cat conftest.err >&5
  3736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3737. (exit $ac_status); } &&
  3738. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3740. (eval $ac_try) 2>&5
  3741. ac_status=$?
  3742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3743. (exit $ac_status); }; } &&
  3744. { ac_try='test -s conftest$ac_exeext'
  3745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3746. (eval $ac_try) 2>&5
  3747. ac_status=$?
  3748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3749. (exit $ac_status); }; }; then
  3750. ac_cv_func___res_init=yes
  3751. else
  3752. echo "$as_me: failed program was:" >&5
  3753. sed 's/^/| /' conftest.$ac_ext >&5
  3754. ac_cv_func___res_init=no
  3755. fi
  3756. rm -f conftest.err conftest.$ac_objext \
  3757. conftest$ac_exeext conftest.$ac_ext
  3758. fi
  3759. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3760. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3761. if test $ac_cv_func___res_init = yes; then
  3762. :
  3763. else
  3764. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3765. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3766. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3767. echo $ECHO_N "(cached) $ECHO_C" >&6
  3768. else
  3769. ac_check_lib_save_LIBS=$LIBS
  3770. LIBS="-lresolv $LIBS"
  3771. cat >conftest.$ac_ext <<_ACEOF
  3772. /* confdefs.h. */
  3773. _ACEOF
  3774. cat confdefs.h >>conftest.$ac_ext
  3775. cat >>conftest.$ac_ext <<_ACEOF
  3776. /* end confdefs.h. */
  3777. /* Override any gcc2 internal prototype to avoid an error. */
  3778. #ifdef __cplusplus
  3779. extern "C"
  3780. #endif
  3781. /* We use char because int might match the return type of a gcc2
  3782. builtin and then its argument prototype would still apply. */
  3783. char __res_init ();
  3784. int
  3785. main ()
  3786. {
  3787. __res_init ();
  3788. ;
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. rm -f conftest.$ac_objext conftest$ac_exeext
  3793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3794. (eval $ac_link) 2>conftest.er1
  3795. ac_status=$?
  3796. grep -v '^ *+' conftest.er1 >conftest.err
  3797. rm -f conftest.er1
  3798. cat conftest.err >&5
  3799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3800. (exit $ac_status); } &&
  3801. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3803. (eval $ac_try) 2>&5
  3804. ac_status=$?
  3805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3806. (exit $ac_status); }; } &&
  3807. { ac_try='test -s conftest$ac_exeext'
  3808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3809. (eval $ac_try) 2>&5
  3810. ac_status=$?
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); }; }; then
  3813. ac_cv_lib_resolv___res_init=yes
  3814. else
  3815. echo "$as_me: failed program was:" >&5
  3816. sed 's/^/| /' conftest.$ac_ext >&5
  3817. ac_cv_lib_resolv___res_init=no
  3818. fi
  3819. rm -f conftest.err conftest.$ac_objext \
  3820. conftest$ac_exeext conftest.$ac_ext
  3821. LIBS=$ac_check_lib_save_LIBS
  3822. fi
  3823. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3824. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3825. if test $ac_cv_lib_resolv___res_init = yes; then
  3826. RESLIB="-lresolv"
  3827. else
  3828. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3829. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3830. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3831. echo $ECHO_N "(cached) $ECHO_C" >&6
  3832. else
  3833. ac_check_lib_save_LIBS=$LIBS
  3834. LIBS="-lbind $LIBS"
  3835. cat >conftest.$ac_ext <<_ACEOF
  3836. /* confdefs.h. */
  3837. _ACEOF
  3838. cat confdefs.h >>conftest.$ac_ext
  3839. cat >>conftest.$ac_ext <<_ACEOF
  3840. /* end confdefs.h. */
  3841. /* Override any gcc2 internal prototype to avoid an error. */
  3842. #ifdef __cplusplus
  3843. extern "C"
  3844. #endif
  3845. /* We use char because int might match the return type of a gcc2
  3846. builtin and then its argument prototype would still apply. */
  3847. char __res_init ();
  3848. int
  3849. main ()
  3850. {
  3851. __res_init ();
  3852. ;
  3853. return 0;
  3854. }
  3855. _ACEOF
  3856. rm -f conftest.$ac_objext conftest$ac_exeext
  3857. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3858. (eval $ac_link) 2>conftest.er1
  3859. ac_status=$?
  3860. grep -v '^ *+' conftest.er1 >conftest.err
  3861. rm -f conftest.er1
  3862. cat conftest.err >&5
  3863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3864. (exit $ac_status); } &&
  3865. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3867. (eval $ac_try) 2>&5
  3868. ac_status=$?
  3869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3870. (exit $ac_status); }; } &&
  3871. { ac_try='test -s conftest$ac_exeext'
  3872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3873. (eval $ac_try) 2>&5
  3874. ac_status=$?
  3875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); }; }; then
  3877. ac_cv_lib_bind___res_init=yes
  3878. else
  3879. echo "$as_me: failed program was:" >&5
  3880. sed 's/^/| /' conftest.$ac_ext >&5
  3881. ac_cv_lib_bind___res_init=no
  3882. fi
  3883. rm -f conftest.err conftest.$ac_objext \
  3884. conftest$ac_exeext conftest.$ac_ext
  3885. LIBS=$ac_check_lib_save_LIBS
  3886. fi
  3887. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3888. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3889. if test $ac_cv_lib_bind___res_init = yes; then
  3890. RESLIB="-lbind"
  3891. else
  3892. dns_reslib_avail="false";
  3893. fi
  3894. fi
  3895. fi
  3896. fi
  3897. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3898. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3899. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3900. echo $ECHO_N "(cached) $ECHO_C" >&6
  3901. else
  3902. cat >conftest.$ac_ext <<_ACEOF
  3903. /* confdefs.h. */
  3904. _ACEOF
  3905. cat confdefs.h >>conftest.$ac_ext
  3906. cat >>conftest.$ac_ext <<_ACEOF
  3907. /* end confdefs.h. */
  3908. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3909. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3910. #define res_mkquery innocuous_res_mkquery
  3911. /* System header to define __stub macros and hopefully few prototypes,
  3912. which can conflict with char res_mkquery (); below.
  3913. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3914. <limits.h> exists even on freestanding compilers. */
  3915. #ifdef __STDC__
  3916. # include <limits.h>
  3917. #else
  3918. # include <assert.h>
  3919. #endif
  3920. #undef res_mkquery
  3921. /* Override any gcc2 internal prototype to avoid an error. */
  3922. #ifdef __cplusplus
  3923. extern "C"
  3924. {
  3925. #endif
  3926. /* We use char because int might match the return type of a gcc2
  3927. builtin and then its argument prototype would still apply. */
  3928. char res_mkquery ();
  3929. /* The GNU C library defines this for functions which it implements
  3930. to always fail with ENOSYS. Some functions are actually named
  3931. something starting with __ and the normal name is an alias. */
  3932. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3933. choke me
  3934. #else
  3935. char (*f) () = res_mkquery;
  3936. #endif
  3937. #ifdef __cplusplus
  3938. }
  3939. #endif
  3940. int
  3941. main ()
  3942. {
  3943. return f != res_mkquery;
  3944. ;
  3945. return 0;
  3946. }
  3947. _ACEOF
  3948. rm -f conftest.$ac_objext conftest$ac_exeext
  3949. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3950. (eval $ac_link) 2>conftest.er1
  3951. ac_status=$?
  3952. grep -v '^ *+' conftest.er1 >conftest.err
  3953. rm -f conftest.er1
  3954. cat conftest.err >&5
  3955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3956. (exit $ac_status); } &&
  3957. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3959. (eval $ac_try) 2>&5
  3960. ac_status=$?
  3961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3962. (exit $ac_status); }; } &&
  3963. { ac_try='test -s conftest$ac_exeext'
  3964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3965. (eval $ac_try) 2>&5
  3966. ac_status=$?
  3967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3968. (exit $ac_status); }; }; then
  3969. ac_cv_func_res_mkquery=yes
  3970. else
  3971. echo "$as_me: failed program was:" >&5
  3972. sed 's/^/| /' conftest.$ac_ext >&5
  3973. ac_cv_func_res_mkquery=no
  3974. fi
  3975. rm -f conftest.err conftest.$ac_objext \
  3976. conftest$ac_exeext conftest.$ac_ext
  3977. fi
  3978. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3979. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3980. if test $ac_cv_func_res_mkquery = yes; then
  3981. :
  3982. else
  3983. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3984. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3985. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3986. echo $ECHO_N "(cached) $ECHO_C" >&6
  3987. else
  3988. ac_check_lib_save_LIBS=$LIBS
  3989. LIBS="-lresolv $LIBS"
  3990. cat >conftest.$ac_ext <<_ACEOF
  3991. /* confdefs.h. */
  3992. _ACEOF
  3993. cat confdefs.h >>conftest.$ac_ext
  3994. cat >>conftest.$ac_ext <<_ACEOF
  3995. /* end confdefs.h. */
  3996. /* Override any gcc2 internal prototype to avoid an error. */
  3997. #ifdef __cplusplus
  3998. extern "C"
  3999. #endif
  4000. /* We use char because int might match the return type of a gcc2
  4001. builtin and then its argument prototype would still apply. */
  4002. char res_mkquery ();
  4003. int
  4004. main ()
  4005. {
  4006. res_mkquery ();
  4007. ;
  4008. return 0;
  4009. }
  4010. _ACEOF
  4011. rm -f conftest.$ac_objext conftest$ac_exeext
  4012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4013. (eval $ac_link) 2>conftest.er1
  4014. ac_status=$?
  4015. grep -v '^ *+' conftest.er1 >conftest.err
  4016. rm -f conftest.er1
  4017. cat conftest.err >&5
  4018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4019. (exit $ac_status); } &&
  4020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4022. (eval $ac_try) 2>&5
  4023. ac_status=$?
  4024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4025. (exit $ac_status); }; } &&
  4026. { ac_try='test -s conftest$ac_exeext'
  4027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4028. (eval $ac_try) 2>&5
  4029. ac_status=$?
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); }; }; then
  4032. ac_cv_lib_resolv_res_mkquery=yes
  4033. else
  4034. echo "$as_me: failed program was:" >&5
  4035. sed 's/^/| /' conftest.$ac_ext >&5
  4036. ac_cv_lib_resolv_res_mkquery=no
  4037. fi
  4038. rm -f conftest.err conftest.$ac_objext \
  4039. conftest$ac_exeext conftest.$ac_ext
  4040. LIBS=$ac_check_lib_save_LIBS
  4041. fi
  4042. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4043. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4044. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4045. if test "x${RESLIB}" != "x-lresolv"; then
  4046. RESLIB="${RESLIB} -lresolv"
  4047. fi
  4048. else
  4049. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4050. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4051. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4052. echo $ECHO_N "(cached) $ECHO_C" >&6
  4053. else
  4054. ac_check_lib_save_LIBS=$LIBS
  4055. LIBS="-lbind $LIBS"
  4056. cat >conftest.$ac_ext <<_ACEOF
  4057. /* confdefs.h. */
  4058. _ACEOF
  4059. cat confdefs.h >>conftest.$ac_ext
  4060. cat >>conftest.$ac_ext <<_ACEOF
  4061. /* end confdefs.h. */
  4062. /* Override any gcc2 internal prototype to avoid an error. */
  4063. #ifdef __cplusplus
  4064. extern "C"
  4065. #endif
  4066. /* We use char because int might match the return type of a gcc2
  4067. builtin and then its argument prototype would still apply. */
  4068. char res_mkquery ();
  4069. int
  4070. main ()
  4071. {
  4072. res_mkquery ();
  4073. ;
  4074. return 0;
  4075. }
  4076. _ACEOF
  4077. rm -f conftest.$ac_objext conftest$ac_exeext
  4078. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4079. (eval $ac_link) 2>conftest.er1
  4080. ac_status=$?
  4081. grep -v '^ *+' conftest.er1 >conftest.err
  4082. rm -f conftest.er1
  4083. cat conftest.err >&5
  4084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4085. (exit $ac_status); } &&
  4086. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4088. (eval $ac_try) 2>&5
  4089. ac_status=$?
  4090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4091. (exit $ac_status); }; } &&
  4092. { ac_try='test -s conftest$ac_exeext'
  4093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4094. (eval $ac_try) 2>&5
  4095. ac_status=$?
  4096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4097. (exit $ac_status); }; }; then
  4098. ac_cv_lib_bind_res_mkquery=yes
  4099. else
  4100. echo "$as_me: failed program was:" >&5
  4101. sed 's/^/| /' conftest.$ac_ext >&5
  4102. ac_cv_lib_bind_res_mkquery=no
  4103. fi
  4104. rm -f conftest.err conftest.$ac_objext \
  4105. conftest$ac_exeext conftest.$ac_ext
  4106. LIBS=$ac_check_lib_save_LIBS
  4107. fi
  4108. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4109. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4110. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4111. if test "x${RESLIB}" != "x-lbind"; then
  4112. RESLIB="${RESLIB} -lbind"
  4113. fi
  4114. else
  4115. dns_reslib_avail="false";
  4116. fi
  4117. fi
  4118. fi
  4119. if test "${dns_reslib_avail}" = false; then
  4120. dns_reslib_avail="true"
  4121. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4122. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4123. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4124. echo $ECHO_N "(cached) $ECHO_C" >&6
  4125. else
  4126. cat >conftest.$ac_ext <<_ACEOF
  4127. /* confdefs.h. */
  4128. _ACEOF
  4129. cat confdefs.h >>conftest.$ac_ext
  4130. cat >>conftest.$ac_ext <<_ACEOF
  4131. /* end confdefs.h. */
  4132. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4133. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4134. #define __res_mkquery innocuous___res_mkquery
  4135. /* System header to define __stub macros and hopefully few prototypes,
  4136. which can conflict with char __res_mkquery (); below.
  4137. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4138. <limits.h> exists even on freestanding compilers. */
  4139. #ifdef __STDC__
  4140. # include <limits.h>
  4141. #else
  4142. # include <assert.h>
  4143. #endif
  4144. #undef __res_mkquery
  4145. /* Override any gcc2 internal prototype to avoid an error. */
  4146. #ifdef __cplusplus
  4147. extern "C"
  4148. {
  4149. #endif
  4150. /* We use char because int might match the return type of a gcc2
  4151. builtin and then its argument prototype would still apply. */
  4152. char __res_mkquery ();
  4153. /* The GNU C library defines this for functions which it implements
  4154. to always fail with ENOSYS. Some functions are actually named
  4155. something starting with __ and the normal name is an alias. */
  4156. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4157. choke me
  4158. #else
  4159. char (*f) () = __res_mkquery;
  4160. #endif
  4161. #ifdef __cplusplus
  4162. }
  4163. #endif
  4164. int
  4165. main ()
  4166. {
  4167. return f != __res_mkquery;
  4168. ;
  4169. return 0;
  4170. }
  4171. _ACEOF
  4172. rm -f conftest.$ac_objext conftest$ac_exeext
  4173. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4174. (eval $ac_link) 2>conftest.er1
  4175. ac_status=$?
  4176. grep -v '^ *+' conftest.er1 >conftest.err
  4177. rm -f conftest.er1
  4178. cat conftest.err >&5
  4179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4180. (exit $ac_status); } &&
  4181. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4183. (eval $ac_try) 2>&5
  4184. ac_status=$?
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); }; } &&
  4187. { ac_try='test -s conftest$ac_exeext'
  4188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4189. (eval $ac_try) 2>&5
  4190. ac_status=$?
  4191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4192. (exit $ac_status); }; }; then
  4193. ac_cv_func___res_mkquery=yes
  4194. else
  4195. echo "$as_me: failed program was:" >&5
  4196. sed 's/^/| /' conftest.$ac_ext >&5
  4197. ac_cv_func___res_mkquery=no
  4198. fi
  4199. rm -f conftest.err conftest.$ac_objext \
  4200. conftest$ac_exeext conftest.$ac_ext
  4201. fi
  4202. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4203. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4204. if test $ac_cv_func___res_mkquery = yes; then
  4205. :
  4206. else
  4207. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4208. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4209. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4210. echo $ECHO_N "(cached) $ECHO_C" >&6
  4211. else
  4212. ac_check_lib_save_LIBS=$LIBS
  4213. LIBS="-lresolv $LIBS"
  4214. cat >conftest.$ac_ext <<_ACEOF
  4215. /* confdefs.h. */
  4216. _ACEOF
  4217. cat confdefs.h >>conftest.$ac_ext
  4218. cat >>conftest.$ac_ext <<_ACEOF
  4219. /* end confdefs.h. */
  4220. /* Override any gcc2 internal prototype to avoid an error. */
  4221. #ifdef __cplusplus
  4222. extern "C"
  4223. #endif
  4224. /* We use char because int might match the return type of a gcc2
  4225. builtin and then its argument prototype would still apply. */
  4226. char __res_mkquery ();
  4227. int
  4228. main ()
  4229. {
  4230. __res_mkquery ();
  4231. ;
  4232. return 0;
  4233. }
  4234. _ACEOF
  4235. rm -f conftest.$ac_objext conftest$ac_exeext
  4236. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4237. (eval $ac_link) 2>conftest.er1
  4238. ac_status=$?
  4239. grep -v '^ *+' conftest.er1 >conftest.err
  4240. rm -f conftest.er1
  4241. cat conftest.err >&5
  4242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4243. (exit $ac_status); } &&
  4244. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4246. (eval $ac_try) 2>&5
  4247. ac_status=$?
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); }; } &&
  4250. { ac_try='test -s conftest$ac_exeext'
  4251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4252. (eval $ac_try) 2>&5
  4253. ac_status=$?
  4254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4255. (exit $ac_status); }; }; then
  4256. ac_cv_lib_resolv___res_mkquery=yes
  4257. else
  4258. echo "$as_me: failed program was:" >&5
  4259. sed 's/^/| /' conftest.$ac_ext >&5
  4260. ac_cv_lib_resolv___res_mkquery=no
  4261. fi
  4262. rm -f conftest.err conftest.$ac_objext \
  4263. conftest$ac_exeext conftest.$ac_ext
  4264. LIBS=$ac_check_lib_save_LIBS
  4265. fi
  4266. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4267. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4268. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4269. if test "x${RESLIB}" != "x-lresolv"; then
  4270. RESLIB="${RESLIB} -lresolv"
  4271. fi
  4272. else
  4273. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4274. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4275. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4276. echo $ECHO_N "(cached) $ECHO_C" >&6
  4277. else
  4278. ac_check_lib_save_LIBS=$LIBS
  4279. LIBS="-lbind $LIBS"
  4280. cat >conftest.$ac_ext <<_ACEOF
  4281. /* confdefs.h. */
  4282. _ACEOF
  4283. cat confdefs.h >>conftest.$ac_ext
  4284. cat >>conftest.$ac_ext <<_ACEOF
  4285. /* end confdefs.h. */
  4286. /* Override any gcc2 internal prototype to avoid an error. */
  4287. #ifdef __cplusplus
  4288. extern "C"
  4289. #endif
  4290. /* We use char because int might match the return type of a gcc2
  4291. builtin and then its argument prototype would still apply. */
  4292. char __res_mkquery ();
  4293. int
  4294. main ()
  4295. {
  4296. __res_mkquery ();
  4297. ;
  4298. return 0;
  4299. }
  4300. _ACEOF
  4301. rm -f conftest.$ac_objext conftest$ac_exeext
  4302. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4303. (eval $ac_link) 2>conftest.er1
  4304. ac_status=$?
  4305. grep -v '^ *+' conftest.er1 >conftest.err
  4306. rm -f conftest.er1
  4307. cat conftest.err >&5
  4308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4309. (exit $ac_status); } &&
  4310. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4312. (eval $ac_try) 2>&5
  4313. ac_status=$?
  4314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4315. (exit $ac_status); }; } &&
  4316. { ac_try='test -s conftest$ac_exeext'
  4317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4318. (eval $ac_try) 2>&5
  4319. ac_status=$?
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); }; }; then
  4322. ac_cv_lib_bind___res_mkquery=yes
  4323. else
  4324. echo "$as_me: failed program was:" >&5
  4325. sed 's/^/| /' conftest.$ac_ext >&5
  4326. ac_cv_lib_bind___res_mkquery=no
  4327. fi
  4328. rm -f conftest.err conftest.$ac_objext \
  4329. conftest$ac_exeext conftest.$ac_ext
  4330. LIBS=$ac_check_lib_save_LIBS
  4331. fi
  4332. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4333. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4334. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4335. if test "x${RESLIB}" != "x-lbind"; then
  4336. RESLIB="${RESLIB} -lbind"
  4337. fi
  4338. else
  4339. dns_reslib_avail="false";
  4340. fi
  4341. fi
  4342. fi
  4343. fi
  4344. if test "${dns_reslib_avail}" = false; then
  4345. if test "$ac_cv_cygwin" = "yes"; then
  4346. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4347. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4348. if test -r /usr/local/bind/lib/libbind.a; then
  4349. echo "$as_me:$LINENO: result: yes" >&5
  4350. echo "${ECHO_T}yes" >&6
  4351. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4352. RESINCLUDE="-I/usr/local/bind/include"
  4353. dns_reslib_avail="true"
  4354. else
  4355. echo "$as_me:$LINENO: result: no" >&5
  4356. echo "${ECHO_T}no" >&6
  4357. fi
  4358. fi
  4359. fi
  4360. if test "${dns_reslib_avail}" = false; then
  4361. cat >&2 <<EOF
  4362. configure: warning:
  4363. Your system provides no functional resolver library.
  4364. One is required for buld.
  4365. EOF
  4366. exit 1
  4367. fi
  4368. #checkpoint
  4369. cat >confcache <<\_ACEOF
  4370. # This file is a shell script that caches the results of configure
  4371. # tests run on this system so they can be shared between configure
  4372. # scripts and configure runs, see configure's option --config-cache.
  4373. # It is not useful on other systems. If it contains results you don't
  4374. # want to keep, you may remove or edit it.
  4375. #
  4376. # config.status only pays attention to the cache file if you give it
  4377. # the --recheck option to rerun configure.
  4378. #
  4379. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4380. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4381. # following values.
  4382. _ACEOF
  4383. # The following way of writing the cache mishandles newlines in values,
  4384. # but we know of no workaround that is simple, portable, and efficient.
  4385. # So, don't put newlines in cache variables' values.
  4386. # Ultrix sh set writes to stderr and can't be redirected directly,
  4387. # and sets the high bit in the cache file unless we assign to the vars.
  4388. {
  4389. (set) 2>&1 |
  4390. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4391. *ac_space=\ *)
  4392. # `set' does not quote correctly, so add quotes (double-quote
  4393. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4394. sed -n \
  4395. "s/'/'\\\\''/g;
  4396. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4397. ;;
  4398. *)
  4399. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4400. sed -n \
  4401. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4402. ;;
  4403. esac;
  4404. } |
  4405. sed '
  4406. t clear
  4407. : clear
  4408. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4409. t end
  4410. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4411. : end' >>confcache
  4412. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4413. if test -w $cache_file; then
  4414. test "x$cache_file" != "x/dev/null"
  4415. cat confcache >$cache_file
  4416. else
  4417. echo "not updating unwritable cache $cache_file"
  4418. fi
  4419. fi
  4420. rm -f confcache
  4421. # Checks for system libraries
  4422. # FIXME: this needs to be fixed so that it works on IRIX
  4423. if test "$IRIX" = "yes"
  4424. then
  4425. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4426. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4427. else
  4428. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4429. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4430. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4431. echo $ECHO_N "(cached) $ECHO_C" >&6
  4432. else
  4433. ac_check_lib_save_LIBS=$LIBS
  4434. LIBS="-lsocket $LIBS"
  4435. cat >conftest.$ac_ext <<_ACEOF
  4436. /* confdefs.h. */
  4437. _ACEOF
  4438. cat confdefs.h >>conftest.$ac_ext
  4439. cat >>conftest.$ac_ext <<_ACEOF
  4440. /* end confdefs.h. */
  4441. /* Override any gcc2 internal prototype to avoid an error. */
  4442. #ifdef __cplusplus
  4443. extern "C"
  4444. #endif
  4445. /* We use char because int might match the return type of a gcc2
  4446. builtin and then its argument prototype would still apply. */
  4447. char socket ();
  4448. int
  4449. main ()
  4450. {
  4451. socket ();
  4452. ;
  4453. return 0;
  4454. }
  4455. _ACEOF
  4456. rm -f conftest.$ac_objext conftest$ac_exeext
  4457. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4458. (eval $ac_link) 2>conftest.er1
  4459. ac_status=$?
  4460. grep -v '^ *+' conftest.er1 >conftest.err
  4461. rm -f conftest.er1
  4462. cat conftest.err >&5
  4463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4464. (exit $ac_status); } &&
  4465. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4467. (eval $ac_try) 2>&5
  4468. ac_status=$?
  4469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4470. (exit $ac_status); }; } &&
  4471. { ac_try='test -s conftest$ac_exeext'
  4472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4473. (eval $ac_try) 2>&5
  4474. ac_status=$?
  4475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4476. (exit $ac_status); }; }; then
  4477. ac_cv_lib_socket_socket=yes
  4478. else
  4479. echo "$as_me: failed program was:" >&5
  4480. sed 's/^/| /' conftest.$ac_ext >&5
  4481. ac_cv_lib_socket_socket=no
  4482. fi
  4483. rm -f conftest.err conftest.$ac_objext \
  4484. conftest$ac_exeext conftest.$ac_ext
  4485. LIBS=$ac_check_lib_save_LIBS
  4486. fi
  4487. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4488. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4489. if test $ac_cv_lib_socket_socket = yes; then
  4490. cat >>confdefs.h <<_ACEOF
  4491. #define HAVE_LIBSOCKET 1
  4492. _ACEOF
  4493. LIBS="-lsocket $LIBS"
  4494. fi
  4495. # AC_CHECK_LIB(nsl, connect)
  4496. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4497. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4498. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4499. echo $ECHO_N "(cached) $ECHO_C" >&6
  4500. else
  4501. ac_check_lib_save_LIBS=$LIBS
  4502. LIBS="-ldns $LIBS"
  4503. cat >conftest.$ac_ext <<_ACEOF
  4504. /* confdefs.h. */
  4505. _ACEOF
  4506. cat confdefs.h >>conftest.$ac_ext
  4507. cat >>conftest.$ac_ext <<_ACEOF
  4508. /* end confdefs.h. */
  4509. /* Override any gcc2 internal prototype to avoid an error. */
  4510. #ifdef __cplusplus
  4511. extern "C"
  4512. #endif
  4513. /* We use char because int might match the return type of a gcc2
  4514. builtin and then its argument prototype would still apply. */
  4515. char gethostbyname ();
  4516. int
  4517. main ()
  4518. {
  4519. gethostbyname ();
  4520. ;
  4521. return 0;
  4522. }
  4523. _ACEOF
  4524. rm -f conftest.$ac_objext conftest$ac_exeext
  4525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4526. (eval $ac_link) 2>conftest.er1
  4527. ac_status=$?
  4528. grep -v '^ *+' conftest.er1 >conftest.err
  4529. rm -f conftest.er1
  4530. cat conftest.err >&5
  4531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4532. (exit $ac_status); } &&
  4533. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4535. (eval $ac_try) 2>&5
  4536. ac_status=$?
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); }; } &&
  4539. { ac_try='test -s conftest$ac_exeext'
  4540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; }; then
  4545. ac_cv_lib_dns_gethostbyname=yes
  4546. else
  4547. echo "$as_me: failed program was:" >&5
  4548. sed 's/^/| /' conftest.$ac_ext >&5
  4549. ac_cv_lib_dns_gethostbyname=no
  4550. fi
  4551. rm -f conftest.err conftest.$ac_objext \
  4552. conftest$ac_exeext conftest.$ac_ext
  4553. LIBS=$ac_check_lib_save_LIBS
  4554. fi
  4555. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4556. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4557. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4558. cat >>confdefs.h <<_ACEOF
  4559. #define HAVE_LIBDNS 1
  4560. _ACEOF
  4561. LIBS="-ldns $LIBS"
  4562. fi
  4563. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4564. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4565. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4566. echo $ECHO_N "(cached) $ECHO_C" >&6
  4567. else
  4568. ac_check_lib_save_LIBS=$LIBS
  4569. LIBS="-lz $LIBS"
  4570. cat >conftest.$ac_ext <<_ACEOF
  4571. /* confdefs.h. */
  4572. _ACEOF
  4573. cat confdefs.h >>conftest.$ac_ext
  4574. cat >>conftest.$ac_ext <<_ACEOF
  4575. /* end confdefs.h. */
  4576. /* Override any gcc2 internal prototype to avoid an error. */
  4577. #ifdef __cplusplus
  4578. extern "C"
  4579. #endif
  4580. /* We use char because int might match the return type of a gcc2
  4581. builtin and then its argument prototype would still apply. */
  4582. char gzopen ();
  4583. int
  4584. main ()
  4585. {
  4586. gzopen ();
  4587. ;
  4588. return 0;
  4589. }
  4590. _ACEOF
  4591. rm -f conftest.$ac_objext conftest$ac_exeext
  4592. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4593. (eval $ac_link) 2>conftest.er1
  4594. ac_status=$?
  4595. grep -v '^ *+' conftest.er1 >conftest.err
  4596. rm -f conftest.er1
  4597. cat conftest.err >&5
  4598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4599. (exit $ac_status); } &&
  4600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4602. (eval $ac_try) 2>&5
  4603. ac_status=$?
  4604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4605. (exit $ac_status); }; } &&
  4606. { ac_try='test -s conftest$ac_exeext'
  4607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4608. (eval $ac_try) 2>&5
  4609. ac_status=$?
  4610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4611. (exit $ac_status); }; }; then
  4612. ac_cv_lib_z_gzopen=yes
  4613. else
  4614. echo "$as_me: failed program was:" >&5
  4615. sed 's/^/| /' conftest.$ac_ext >&5
  4616. ac_cv_lib_z_gzopen=no
  4617. fi
  4618. rm -f conftest.err conftest.$ac_objext \
  4619. conftest$ac_exeext conftest.$ac_ext
  4620. LIBS=$ac_check_lib_save_LIBS
  4621. fi
  4622. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4623. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4624. if test $ac_cv_lib_z_gzopen = yes; then
  4625. ZLIB="-lz"
  4626. fi
  4627. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4628. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4629. # This is needed for Tcl libraries compiled with thread support
  4630. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4631. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4632. # ac_cv_lib_pthread="-lpthread"], [dnl
  4633. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4634. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4635. # ac_cv_lib_pthread="-lpthread"], [dnl
  4636. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4637. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4638. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4639. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4640. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4641. # ac_cv_lib_pthread=""],
  4642. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4643. fi
  4644. # Checks for header files
  4645. ac_header_dirent=no
  4646. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4647. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4648. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4649. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4650. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4651. echo $ECHO_N "(cached) $ECHO_C" >&6
  4652. else
  4653. cat >conftest.$ac_ext <<_ACEOF
  4654. /* confdefs.h. */
  4655. _ACEOF
  4656. cat confdefs.h >>conftest.$ac_ext
  4657. cat >>conftest.$ac_ext <<_ACEOF
  4658. /* end confdefs.h. */
  4659. #include <sys/types.h>
  4660. #include <$ac_hdr>
  4661. int
  4662. main ()
  4663. {
  4664. if ((DIR *) 0)
  4665. return 0;
  4666. ;
  4667. return 0;
  4668. }
  4669. _ACEOF
  4670. rm -f conftest.$ac_objext
  4671. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4672. (eval $ac_compile) 2>conftest.er1
  4673. ac_status=$?
  4674. grep -v '^ *+' conftest.er1 >conftest.err
  4675. rm -f conftest.er1
  4676. cat conftest.err >&5
  4677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4678. (exit $ac_status); } &&
  4679. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4681. (eval $ac_try) 2>&5
  4682. ac_status=$?
  4683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4684. (exit $ac_status); }; } &&
  4685. { ac_try='test -s conftest.$ac_objext'
  4686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4687. (eval $ac_try) 2>&5
  4688. ac_status=$?
  4689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4690. (exit $ac_status); }; }; then
  4691. eval "$as_ac_Header=yes"
  4692. else
  4693. echo "$as_me: failed program was:" >&5
  4694. sed 's/^/| /' conftest.$ac_ext >&5
  4695. eval "$as_ac_Header=no"
  4696. fi
  4697. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4698. fi
  4699. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4700. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4701. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4702. cat >>confdefs.h <<_ACEOF
  4703. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4704. _ACEOF
  4705. ac_header_dirent=$ac_hdr; break
  4706. fi
  4707. done
  4708. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4709. if test $ac_header_dirent = dirent.h; then
  4710. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4711. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4712. if test "${ac_cv_search_opendir+set}" = set; then
  4713. echo $ECHO_N "(cached) $ECHO_C" >&6
  4714. else
  4715. ac_func_search_save_LIBS=$LIBS
  4716. ac_cv_search_opendir=no
  4717. cat >conftest.$ac_ext <<_ACEOF
  4718. /* confdefs.h. */
  4719. _ACEOF
  4720. cat confdefs.h >>conftest.$ac_ext
  4721. cat >>conftest.$ac_ext <<_ACEOF
  4722. /* end confdefs.h. */
  4723. /* Override any gcc2 internal prototype to avoid an error. */
  4724. #ifdef __cplusplus
  4725. extern "C"
  4726. #endif
  4727. /* We use char because int might match the return type of a gcc2
  4728. builtin and then its argument prototype would still apply. */
  4729. char opendir ();
  4730. int
  4731. main ()
  4732. {
  4733. opendir ();
  4734. ;
  4735. return 0;
  4736. }
  4737. _ACEOF
  4738. rm -f conftest.$ac_objext conftest$ac_exeext
  4739. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4740. (eval $ac_link) 2>conftest.er1
  4741. ac_status=$?
  4742. grep -v '^ *+' conftest.er1 >conftest.err
  4743. rm -f conftest.er1
  4744. cat conftest.err >&5
  4745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4746. (exit $ac_status); } &&
  4747. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4749. (eval $ac_try) 2>&5
  4750. ac_status=$?
  4751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752. (exit $ac_status); }; } &&
  4753. { ac_try='test -s conftest$ac_exeext'
  4754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4755. (eval $ac_try) 2>&5
  4756. ac_status=$?
  4757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4758. (exit $ac_status); }; }; then
  4759. ac_cv_search_opendir="none required"
  4760. else
  4761. echo "$as_me: failed program was:" >&5
  4762. sed 's/^/| /' conftest.$ac_ext >&5
  4763. fi
  4764. rm -f conftest.err conftest.$ac_objext \
  4765. conftest$ac_exeext conftest.$ac_ext
  4766. if test "$ac_cv_search_opendir" = no; then
  4767. for ac_lib in dir; do
  4768. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4769. cat >conftest.$ac_ext <<_ACEOF
  4770. /* confdefs.h. */
  4771. _ACEOF
  4772. cat confdefs.h >>conftest.$ac_ext
  4773. cat >>conftest.$ac_ext <<_ACEOF
  4774. /* end confdefs.h. */
  4775. /* Override any gcc2 internal prototype to avoid an error. */
  4776. #ifdef __cplusplus
  4777. extern "C"
  4778. #endif
  4779. /* We use char because int might match the return type of a gcc2
  4780. builtin and then its argument prototype would still apply. */
  4781. char opendir ();
  4782. int
  4783. main ()
  4784. {
  4785. opendir ();
  4786. ;
  4787. return 0;
  4788. }
  4789. _ACEOF
  4790. rm -f conftest.$ac_objext conftest$ac_exeext
  4791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4792. (eval $ac_link) 2>conftest.er1
  4793. ac_status=$?
  4794. grep -v '^ *+' conftest.er1 >conftest.err
  4795. rm -f conftest.er1
  4796. cat conftest.err >&5
  4797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4798. (exit $ac_status); } &&
  4799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4801. (eval $ac_try) 2>&5
  4802. ac_status=$?
  4803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4804. (exit $ac_status); }; } &&
  4805. { ac_try='test -s conftest$ac_exeext'
  4806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4807. (eval $ac_try) 2>&5
  4808. ac_status=$?
  4809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4810. (exit $ac_status); }; }; then
  4811. ac_cv_search_opendir="-l$ac_lib"
  4812. break
  4813. else
  4814. echo "$as_me: failed program was:" >&5
  4815. sed 's/^/| /' conftest.$ac_ext >&5
  4816. fi
  4817. rm -f conftest.err conftest.$ac_objext \
  4818. conftest$ac_exeext conftest.$ac_ext
  4819. done
  4820. fi
  4821. LIBS=$ac_func_search_save_LIBS
  4822. fi
  4823. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4824. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4825. if test "$ac_cv_search_opendir" != no; then
  4826. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4827. fi
  4828. else
  4829. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4830. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4831. if test "${ac_cv_search_opendir+set}" = set; then
  4832. echo $ECHO_N "(cached) $ECHO_C" >&6
  4833. else
  4834. ac_func_search_save_LIBS=$LIBS
  4835. ac_cv_search_opendir=no
  4836. cat >conftest.$ac_ext <<_ACEOF
  4837. /* confdefs.h. */
  4838. _ACEOF
  4839. cat confdefs.h >>conftest.$ac_ext
  4840. cat >>conftest.$ac_ext <<_ACEOF
  4841. /* end confdefs.h. */
  4842. /* Override any gcc2 internal prototype to avoid an error. */
  4843. #ifdef __cplusplus
  4844. extern "C"
  4845. #endif
  4846. /* We use char because int might match the return type of a gcc2
  4847. builtin and then its argument prototype would still apply. */
  4848. char opendir ();
  4849. int
  4850. main ()
  4851. {
  4852. opendir ();
  4853. ;
  4854. return 0;
  4855. }
  4856. _ACEOF
  4857. rm -f conftest.$ac_objext conftest$ac_exeext
  4858. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4859. (eval $ac_link) 2>conftest.er1
  4860. ac_status=$?
  4861. grep -v '^ *+' conftest.er1 >conftest.err
  4862. rm -f conftest.er1
  4863. cat conftest.err >&5
  4864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4865. (exit $ac_status); } &&
  4866. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4868. (eval $ac_try) 2>&5
  4869. ac_status=$?
  4870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4871. (exit $ac_status); }; } &&
  4872. { ac_try='test -s conftest$ac_exeext'
  4873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4874. (eval $ac_try) 2>&5
  4875. ac_status=$?
  4876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4877. (exit $ac_status); }; }; then
  4878. ac_cv_search_opendir="none required"
  4879. else
  4880. echo "$as_me: failed program was:" >&5
  4881. sed 's/^/| /' conftest.$ac_ext >&5
  4882. fi
  4883. rm -f conftest.err conftest.$ac_objext \
  4884. conftest$ac_exeext conftest.$ac_ext
  4885. if test "$ac_cv_search_opendir" = no; then
  4886. for ac_lib in x; do
  4887. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4888. cat >conftest.$ac_ext <<_ACEOF
  4889. /* confdefs.h. */
  4890. _ACEOF
  4891. cat confdefs.h >>conftest.$ac_ext
  4892. cat >>conftest.$ac_ext <<_ACEOF
  4893. /* end confdefs.h. */
  4894. /* Override any gcc2 internal prototype to avoid an error. */
  4895. #ifdef __cplusplus
  4896. extern "C"
  4897. #endif
  4898. /* We use char because int might match the return type of a gcc2
  4899. builtin and then its argument prototype would still apply. */
  4900. char opendir ();
  4901. int
  4902. main ()
  4903. {
  4904. opendir ();
  4905. ;
  4906. return 0;
  4907. }
  4908. _ACEOF
  4909. rm -f conftest.$ac_objext conftest$ac_exeext
  4910. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4911. (eval $ac_link) 2>conftest.er1
  4912. ac_status=$?
  4913. grep -v '^ *+' conftest.er1 >conftest.err
  4914. rm -f conftest.er1
  4915. cat conftest.err >&5
  4916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4917. (exit $ac_status); } &&
  4918. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4920. (eval $ac_try) 2>&5
  4921. ac_status=$?
  4922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4923. (exit $ac_status); }; } &&
  4924. { ac_try='test -s conftest$ac_exeext'
  4925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4926. (eval $ac_try) 2>&5
  4927. ac_status=$?
  4928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4929. (exit $ac_status); }; }; then
  4930. ac_cv_search_opendir="-l$ac_lib"
  4931. break
  4932. else
  4933. echo "$as_me: failed program was:" >&5
  4934. sed 's/^/| /' conftest.$ac_ext >&5
  4935. fi
  4936. rm -f conftest.err conftest.$ac_objext \
  4937. conftest$ac_exeext conftest.$ac_ext
  4938. done
  4939. fi
  4940. LIBS=$ac_func_search_save_LIBS
  4941. fi
  4942. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4943. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4944. if test "$ac_cv_search_opendir" != no; then
  4945. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4946. fi
  4947. fi
  4948. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4949. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4950. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4951. echo $ECHO_N "(cached) $ECHO_C" >&6
  4952. else
  4953. cat >conftest.$ac_ext <<_ACEOF
  4954. /* confdefs.h. */
  4955. _ACEOF
  4956. cat confdefs.h >>conftest.$ac_ext
  4957. cat >>conftest.$ac_ext <<_ACEOF
  4958. /* end confdefs.h. */
  4959. #include <sys/types.h>
  4960. #include <sys/wait.h>
  4961. #ifndef WEXITSTATUS
  4962. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4963. #endif
  4964. #ifndef WIFEXITED
  4965. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4966. #endif
  4967. int
  4968. main ()
  4969. {
  4970. int s;
  4971. wait (&s);
  4972. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4973. ;
  4974. return 0;
  4975. }
  4976. _ACEOF
  4977. rm -f conftest.$ac_objext
  4978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4979. (eval $ac_compile) 2>conftest.er1
  4980. ac_status=$?
  4981. grep -v '^ *+' conftest.er1 >conftest.err
  4982. rm -f conftest.er1
  4983. cat conftest.err >&5
  4984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4985. (exit $ac_status); } &&
  4986. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4988. (eval $ac_try) 2>&5
  4989. ac_status=$?
  4990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4991. (exit $ac_status); }; } &&
  4992. { ac_try='test -s conftest.$ac_objext'
  4993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4994. (eval $ac_try) 2>&5
  4995. ac_status=$?
  4996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4997. (exit $ac_status); }; }; then
  4998. ac_cv_header_sys_wait_h=yes
  4999. else
  5000. echo "$as_me: failed program was:" >&5
  5001. sed 's/^/| /' conftest.$ac_ext >&5
  5002. ac_cv_header_sys_wait_h=no
  5003. fi
  5004. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5005. fi
  5006. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5007. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5008. if test $ac_cv_header_sys_wait_h = yes; then
  5009. cat >>confdefs.h <<\_ACEOF
  5010. #define HAVE_SYS_WAIT_H 1
  5011. _ACEOF
  5012. fi
  5013. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5014. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5015. if test "${ac_cv_header_time+set}" = set; then
  5016. echo $ECHO_N "(cached) $ECHO_C" >&6
  5017. else
  5018. cat >conftest.$ac_ext <<_ACEOF
  5019. /* confdefs.h. */
  5020. _ACEOF
  5021. cat confdefs.h >>conftest.$ac_ext
  5022. cat >>conftest.$ac_ext <<_ACEOF
  5023. /* end confdefs.h. */
  5024. #include <sys/types.h>
  5025. #include <sys/time.h>
  5026. #include <time.h>
  5027. int
  5028. main ()
  5029. {
  5030. if ((struct tm *) 0)
  5031. return 0;
  5032. ;
  5033. return 0;
  5034. }
  5035. _ACEOF
  5036. rm -f conftest.$ac_objext
  5037. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5038. (eval $ac_compile) 2>conftest.er1
  5039. ac_status=$?
  5040. grep -v '^ *+' conftest.er1 >conftest.err
  5041. rm -f conftest.er1
  5042. cat conftest.err >&5
  5043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5044. (exit $ac_status); } &&
  5045. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5047. (eval $ac_try) 2>&5
  5048. ac_status=$?
  5049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. (exit $ac_status); }; } &&
  5051. { ac_try='test -s conftest.$ac_objext'
  5052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5053. (eval $ac_try) 2>&5
  5054. ac_status=$?
  5055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5056. (exit $ac_status); }; }; then
  5057. ac_cv_header_time=yes
  5058. else
  5059. echo "$as_me: failed program was:" >&5
  5060. sed 's/^/| /' conftest.$ac_ext >&5
  5061. ac_cv_header_time=no
  5062. fi
  5063. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5064. fi
  5065. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5066. echo "${ECHO_T}$ac_cv_header_time" >&6
  5067. if test $ac_cv_header_time = yes; then
  5068. cat >>confdefs.h <<\_ACEOF
  5069. #define TIME_WITH_SYS_TIME 1
  5070. _ACEOF
  5071. fi
  5072. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5073. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5074. if test "${ac_cv_header_stat_broken+set}" = set; then
  5075. echo $ECHO_N "(cached) $ECHO_C" >&6
  5076. else
  5077. cat >conftest.$ac_ext <<_ACEOF
  5078. /* confdefs.h. */
  5079. _ACEOF
  5080. cat confdefs.h >>conftest.$ac_ext
  5081. cat >>conftest.$ac_ext <<_ACEOF
  5082. /* end confdefs.h. */
  5083. #include <sys/types.h>
  5084. #include <sys/stat.h>
  5085. #if defined(S_ISBLK) && defined(S_IFDIR)
  5086. # if S_ISBLK (S_IFDIR)
  5087. You lose.
  5088. # endif
  5089. #endif
  5090. #if defined(S_ISBLK) && defined(S_IFCHR)
  5091. # if S_ISBLK (S_IFCHR)
  5092. You lose.
  5093. # endif
  5094. #endif
  5095. #if defined(S_ISLNK) && defined(S_IFREG)
  5096. # if S_ISLNK (S_IFREG)
  5097. You lose.
  5098. # endif
  5099. #endif
  5100. #if defined(S_ISSOCK) && defined(S_IFREG)
  5101. # if S_ISSOCK (S_IFREG)
  5102. You lose.
  5103. # endif
  5104. #endif
  5105. _ACEOF
  5106. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5107. $EGREP "You lose" >/dev/null 2>&1; then
  5108. ac_cv_header_stat_broken=yes
  5109. else
  5110. ac_cv_header_stat_broken=no
  5111. fi
  5112. rm -f conftest*
  5113. fi
  5114. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5115. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5116. if test $ac_cv_header_stat_broken = yes; then
  5117. cat >>confdefs.h <<\_ACEOF
  5118. #define STAT_MACROS_BROKEN 1
  5119. _ACEOF
  5120. fi
  5121. #checkpoint
  5122. cat >confcache <<\_ACEOF
  5123. # This file is a shell script that caches the results of configure
  5124. # tests run on this system so they can be shared between configure
  5125. # scripts and configure runs, see configure's option --config-cache.
  5126. # It is not useful on other systems. If it contains results you don't
  5127. # want to keep, you may remove or edit it.
  5128. #
  5129. # config.status only pays attention to the cache file if you give it
  5130. # the --recheck option to rerun configure.
  5131. #
  5132. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5133. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5134. # following values.
  5135. _ACEOF
  5136. # The following way of writing the cache mishandles newlines in values,
  5137. # but we know of no workaround that is simple, portable, and efficient.
  5138. # So, don't put newlines in cache variables' values.
  5139. # Ultrix sh set writes to stderr and can't be redirected directly,
  5140. # and sets the high bit in the cache file unless we assign to the vars.
  5141. {
  5142. (set) 2>&1 |
  5143. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5144. *ac_space=\ *)
  5145. # `set' does not quote correctly, so add quotes (double-quote
  5146. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5147. sed -n \
  5148. "s/'/'\\\\''/g;
  5149. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5150. ;;
  5151. *)
  5152. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5153. sed -n \
  5154. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5155. ;;
  5156. esac;
  5157. } |
  5158. sed '
  5159. t clear
  5160. : clear
  5161. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5162. t end
  5163. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5164. : end' >>confcache
  5165. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5166. if test -w $cache_file; then
  5167. test "x$cache_file" != "x/dev/null"
  5168. cat confcache >$cache_file
  5169. else
  5170. echo "not updating unwritable cache $cache_file"
  5171. fi
  5172. fi
  5173. rm -f confcache
  5174. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5175. do
  5176. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5177. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5178. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5179. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5180. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5181. echo $ECHO_N "(cached) $ECHO_C" >&6
  5182. fi
  5183. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5184. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5185. else
  5186. # Is the header compilable?
  5187. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5188. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5189. cat >conftest.$ac_ext <<_ACEOF
  5190. /* confdefs.h. */
  5191. _ACEOF
  5192. cat confdefs.h >>conftest.$ac_ext
  5193. cat >>conftest.$ac_ext <<_ACEOF
  5194. /* end confdefs.h. */
  5195. $ac_includes_default
  5196. #include <$ac_header>
  5197. _ACEOF
  5198. rm -f conftest.$ac_objext
  5199. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5200. (eval $ac_compile) 2>conftest.er1
  5201. ac_status=$?
  5202. grep -v '^ *+' conftest.er1 >conftest.err
  5203. rm -f conftest.er1
  5204. cat conftest.err >&5
  5205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5206. (exit $ac_status); } &&
  5207. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5209. (eval $ac_try) 2>&5
  5210. ac_status=$?
  5211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5212. (exit $ac_status); }; } &&
  5213. { ac_try='test -s conftest.$ac_objext'
  5214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5215. (eval $ac_try) 2>&5
  5216. ac_status=$?
  5217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5218. (exit $ac_status); }; }; then
  5219. ac_header_compiler=yes
  5220. else
  5221. echo "$as_me: failed program was:" >&5
  5222. sed 's/^/| /' conftest.$ac_ext >&5
  5223. ac_header_compiler=no
  5224. fi
  5225. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5226. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5227. echo "${ECHO_T}$ac_header_compiler" >&6
  5228. # Is the header present?
  5229. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5230. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5231. cat >conftest.$ac_ext <<_ACEOF
  5232. /* confdefs.h. */
  5233. _ACEOF
  5234. cat confdefs.h >>conftest.$ac_ext
  5235. cat >>conftest.$ac_ext <<_ACEOF
  5236. /* end confdefs.h. */
  5237. #include <$ac_header>
  5238. _ACEOF
  5239. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5240. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5241. ac_status=$?
  5242. grep -v '^ *+' conftest.er1 >conftest.err
  5243. rm -f conftest.er1
  5244. cat conftest.err >&5
  5245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5246. (exit $ac_status); } >/dev/null; then
  5247. if test -s conftest.err; then
  5248. ac_cpp_err=$ac_c_preproc_warn_flag
  5249. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5250. else
  5251. ac_cpp_err=
  5252. fi
  5253. else
  5254. ac_cpp_err=yes
  5255. fi
  5256. if test -z "$ac_cpp_err"; then
  5257. ac_header_preproc=yes
  5258. else
  5259. echo "$as_me: failed program was:" >&5
  5260. sed 's/^/| /' conftest.$ac_ext >&5
  5261. ac_header_preproc=no
  5262. fi
  5263. rm -f conftest.err conftest.$ac_ext
  5264. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5265. echo "${ECHO_T}$ac_header_preproc" >&6
  5266. # So? What about this header?
  5267. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5268. yes:no: )
  5269. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5270. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5271. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5272. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5273. ac_header_preproc=yes
  5274. ;;
  5275. no:yes:* )
  5276. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5277. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5278. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5279. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5280. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5281. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5282. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5283. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5284. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5285. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5286. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5287. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5288. (
  5289. cat <<\_ASBOX
  5290. ## ------------------------------------------ ##
  5291. ## Report this to the AC_PACKAGE_NAME lists. ##
  5292. ## ------------------------------------------ ##
  5293. _ASBOX
  5294. ) |
  5295. sed "s/^/$as_me: WARNING: /" >&2
  5296. ;;
  5297. esac
  5298. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5300. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5301. echo $ECHO_N "(cached) $ECHO_C" >&6
  5302. else
  5303. eval "$as_ac_Header=\$ac_header_preproc"
  5304. fi
  5305. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5306. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5307. fi
  5308. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5309. cat >>confdefs.h <<_ACEOF
  5310. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5311. _ACEOF
  5312. fi
  5313. done
  5314. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5315. do
  5316. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5317. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5318. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5319. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5320. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5321. echo $ECHO_N "(cached) $ECHO_C" >&6
  5322. fi
  5323. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5324. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5325. else
  5326. # Is the header compilable?
  5327. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5328. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5329. cat >conftest.$ac_ext <<_ACEOF
  5330. /* confdefs.h. */
  5331. _ACEOF
  5332. cat confdefs.h >>conftest.$ac_ext
  5333. cat >>conftest.$ac_ext <<_ACEOF
  5334. /* end confdefs.h. */
  5335. $ac_includes_default
  5336. #include <$ac_header>
  5337. _ACEOF
  5338. rm -f conftest.$ac_objext
  5339. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5340. (eval $ac_compile) 2>conftest.er1
  5341. ac_status=$?
  5342. grep -v '^ *+' conftest.er1 >conftest.err
  5343. rm -f conftest.er1
  5344. cat conftest.err >&5
  5345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346. (exit $ac_status); } &&
  5347. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5349. (eval $ac_try) 2>&5
  5350. ac_status=$?
  5351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5352. (exit $ac_status); }; } &&
  5353. { ac_try='test -s conftest.$ac_objext'
  5354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5355. (eval $ac_try) 2>&5
  5356. ac_status=$?
  5357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5358. (exit $ac_status); }; }; then
  5359. ac_header_compiler=yes
  5360. else
  5361. echo "$as_me: failed program was:" >&5
  5362. sed 's/^/| /' conftest.$ac_ext >&5
  5363. ac_header_compiler=no
  5364. fi
  5365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5366. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5367. echo "${ECHO_T}$ac_header_compiler" >&6
  5368. # Is the header present?
  5369. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5370. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5371. cat >conftest.$ac_ext <<_ACEOF
  5372. /* confdefs.h. */
  5373. _ACEOF
  5374. cat confdefs.h >>conftest.$ac_ext
  5375. cat >>conftest.$ac_ext <<_ACEOF
  5376. /* end confdefs.h. */
  5377. #include <$ac_header>
  5378. _ACEOF
  5379. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5380. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5381. ac_status=$?
  5382. grep -v '^ *+' conftest.er1 >conftest.err
  5383. rm -f conftest.er1
  5384. cat conftest.err >&5
  5385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5386. (exit $ac_status); } >/dev/null; then
  5387. if test -s conftest.err; then
  5388. ac_cpp_err=$ac_c_preproc_warn_flag
  5389. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5390. else
  5391. ac_cpp_err=
  5392. fi
  5393. else
  5394. ac_cpp_err=yes
  5395. fi
  5396. if test -z "$ac_cpp_err"; then
  5397. ac_header_preproc=yes
  5398. else
  5399. echo "$as_me: failed program was:" >&5
  5400. sed 's/^/| /' conftest.$ac_ext >&5
  5401. ac_header_preproc=no
  5402. fi
  5403. rm -f conftest.err conftest.$ac_ext
  5404. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5405. echo "${ECHO_T}$ac_header_preproc" >&6
  5406. # So? What about this header?
  5407. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5408. yes:no: )
  5409. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5410. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5411. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5412. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5413. ac_header_preproc=yes
  5414. ;;
  5415. no:yes:* )
  5416. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5417. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5418. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5419. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5420. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5421. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5422. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5423. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5424. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5425. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5426. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5427. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5428. (
  5429. cat <<\_ASBOX
  5430. ## ------------------------------------------ ##
  5431. ## Report this to the AC_PACKAGE_NAME lists. ##
  5432. ## ------------------------------------------ ##
  5433. _ASBOX
  5434. ) |
  5435. sed "s/^/$as_me: WARNING: /" >&2
  5436. ;;
  5437. esac
  5438. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5439. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5440. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5441. echo $ECHO_N "(cached) $ECHO_C" >&6
  5442. else
  5443. eval "$as_ac_Header=\$ac_header_preproc"
  5444. fi
  5445. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5446. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5447. fi
  5448. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5449. cat >>confdefs.h <<_ACEOF
  5450. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5451. _ACEOF
  5452. fi
  5453. done
  5454. #checkpoint
  5455. cat >confcache <<\_ACEOF
  5456. # This file is a shell script that caches the results of configure
  5457. # tests run on this system so they can be shared between configure
  5458. # scripts and configure runs, see configure's option --config-cache.
  5459. # It is not useful on other systems. If it contains results you don't
  5460. # want to keep, you may remove or edit it.
  5461. #
  5462. # config.status only pays attention to the cache file if you give it
  5463. # the --recheck option to rerun configure.
  5464. #
  5465. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5466. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5467. # following values.
  5468. _ACEOF
  5469. # The following way of writing the cache mishandles newlines in values,
  5470. # but we know of no workaround that is simple, portable, and efficient.
  5471. # So, don't put newlines in cache variables' values.
  5472. # Ultrix sh set writes to stderr and can't be redirected directly,
  5473. # and sets the high bit in the cache file unless we assign to the vars.
  5474. {
  5475. (set) 2>&1 |
  5476. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5477. *ac_space=\ *)
  5478. # `set' does not quote correctly, so add quotes (double-quote
  5479. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5480. sed -n \
  5481. "s/'/'\\\\''/g;
  5482. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5483. ;;
  5484. *)
  5485. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5486. sed -n \
  5487. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5488. ;;
  5489. esac;
  5490. } |
  5491. sed '
  5492. t clear
  5493. : clear
  5494. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5495. t end
  5496. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5497. : end' >>confcache
  5498. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5499. if test -w $cache_file; then
  5500. test "x$cache_file" != "x/dev/null"
  5501. cat confcache >$cache_file
  5502. else
  5503. echo "not updating unwritable cache $cache_file"
  5504. fi
  5505. fi
  5506. rm -f confcache
  5507. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5508. #AC_CHECK_HEADERS(zlib.h)
  5509. #EGG_CHECK_ZLIB
  5510. #EGG_CHECK_SSL
  5511. #AC_SUBST(SSL)dnl
  5512. # Checks for typedefs, structures, and compiler characteristics
  5513. echo "$as_me:$LINENO: checking for pid_t" >&5
  5514. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5515. if test "${ac_cv_type_pid_t+set}" = set; then
  5516. echo $ECHO_N "(cached) $ECHO_C" >&6
  5517. else
  5518. cat >conftest.$ac_ext <<_ACEOF
  5519. /* confdefs.h. */
  5520. _ACEOF
  5521. cat confdefs.h >>conftest.$ac_ext
  5522. cat >>conftest.$ac_ext <<_ACEOF
  5523. /* end confdefs.h. */
  5524. $ac_includes_default
  5525. int
  5526. main ()
  5527. {
  5528. if ((pid_t *) 0)
  5529. return 0;
  5530. if (sizeof (pid_t))
  5531. return 0;
  5532. ;
  5533. return 0;
  5534. }
  5535. _ACEOF
  5536. rm -f conftest.$ac_objext
  5537. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5538. (eval $ac_compile) 2>conftest.er1
  5539. ac_status=$?
  5540. grep -v '^ *+' conftest.er1 >conftest.err
  5541. rm -f conftest.er1
  5542. cat conftest.err >&5
  5543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5544. (exit $ac_status); } &&
  5545. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5547. (eval $ac_try) 2>&5
  5548. ac_status=$?
  5549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5550. (exit $ac_status); }; } &&
  5551. { ac_try='test -s conftest.$ac_objext'
  5552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5553. (eval $ac_try) 2>&5
  5554. ac_status=$?
  5555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5556. (exit $ac_status); }; }; then
  5557. ac_cv_type_pid_t=yes
  5558. else
  5559. echo "$as_me: failed program was:" >&5
  5560. sed 's/^/| /' conftest.$ac_ext >&5
  5561. ac_cv_type_pid_t=no
  5562. fi
  5563. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5564. fi
  5565. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5566. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5567. if test $ac_cv_type_pid_t = yes; then
  5568. :
  5569. else
  5570. cat >>confdefs.h <<_ACEOF
  5571. #define pid_t int
  5572. _ACEOF
  5573. fi
  5574. echo "$as_me:$LINENO: checking for size_t" >&5
  5575. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5576. if test "${ac_cv_type_size_t+set}" = set; then
  5577. echo $ECHO_N "(cached) $ECHO_C" >&6
  5578. else
  5579. cat >conftest.$ac_ext <<_ACEOF
  5580. /* confdefs.h. */
  5581. _ACEOF
  5582. cat confdefs.h >>conftest.$ac_ext
  5583. cat >>conftest.$ac_ext <<_ACEOF
  5584. /* end confdefs.h. */
  5585. $ac_includes_default
  5586. int
  5587. main ()
  5588. {
  5589. if ((size_t *) 0)
  5590. return 0;
  5591. if (sizeof (size_t))
  5592. return 0;
  5593. ;
  5594. return 0;
  5595. }
  5596. _ACEOF
  5597. rm -f conftest.$ac_objext
  5598. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5599. (eval $ac_compile) 2>conftest.er1
  5600. ac_status=$?
  5601. grep -v '^ *+' conftest.er1 >conftest.err
  5602. rm -f conftest.er1
  5603. cat conftest.err >&5
  5604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5605. (exit $ac_status); } &&
  5606. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5608. (eval $ac_try) 2>&5
  5609. ac_status=$?
  5610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5611. (exit $ac_status); }; } &&
  5612. { ac_try='test -s conftest.$ac_objext'
  5613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5614. (eval $ac_try) 2>&5
  5615. ac_status=$?
  5616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5617. (exit $ac_status); }; }; then
  5618. ac_cv_type_size_t=yes
  5619. else
  5620. echo "$as_me: failed program was:" >&5
  5621. sed 's/^/| /' conftest.$ac_ext >&5
  5622. ac_cv_type_size_t=no
  5623. fi
  5624. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5625. fi
  5626. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5627. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5628. if test $ac_cv_type_size_t = yes; then
  5629. :
  5630. else
  5631. cat >>confdefs.h <<_ACEOF
  5632. #define size_t unsigned
  5633. _ACEOF
  5634. fi
  5635. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5636. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5637. if test "${ac_cv_type_uid_t+set}" = set; then
  5638. echo $ECHO_N "(cached) $ECHO_C" >&6
  5639. else
  5640. cat >conftest.$ac_ext <<_ACEOF
  5641. /* confdefs.h. */
  5642. _ACEOF
  5643. cat confdefs.h >>conftest.$ac_ext
  5644. cat >>conftest.$ac_ext <<_ACEOF
  5645. /* end confdefs.h. */
  5646. #include <sys/types.h>
  5647. _ACEOF
  5648. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5649. $EGREP "uid_t" >/dev/null 2>&1; then
  5650. ac_cv_type_uid_t=yes
  5651. else
  5652. ac_cv_type_uid_t=no
  5653. fi
  5654. rm -f conftest*
  5655. fi
  5656. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5657. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5658. if test $ac_cv_type_uid_t = no; then
  5659. cat >>confdefs.h <<\_ACEOF
  5660. #define uid_t int
  5661. _ACEOF
  5662. cat >>confdefs.h <<\_ACEOF
  5663. #define gid_t int
  5664. _ACEOF
  5665. fi
  5666. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5667. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5668. if test "${ac_cv_c_const+set}" = set; then
  5669. echo $ECHO_N "(cached) $ECHO_C" >&6
  5670. else
  5671. cat >conftest.$ac_ext <<_ACEOF
  5672. /* confdefs.h. */
  5673. _ACEOF
  5674. cat confdefs.h >>conftest.$ac_ext
  5675. cat >>conftest.$ac_ext <<_ACEOF
  5676. /* end confdefs.h. */
  5677. int
  5678. main ()
  5679. {
  5680. /* FIXME: Include the comments suggested by Paul. */
  5681. #ifndef __cplusplus
  5682. /* Ultrix mips cc rejects this. */
  5683. typedef int charset[2];
  5684. const charset x;
  5685. /* SunOS 4.1.1 cc rejects this. */
  5686. char const *const *ccp;
  5687. char **p;
  5688. /* NEC SVR4.0.2 mips cc rejects this. */
  5689. struct point {int x, y;};
  5690. static struct point const zero = {0,0};
  5691. /* AIX XL C 1.02.0.0 rejects this.
  5692. It does not let you subtract one const X* pointer from another in
  5693. an arm of an if-expression whose if-part is not a constant
  5694. expression */
  5695. const char *g = "string";
  5696. ccp = &g + (g ? g-g : 0);
  5697. /* HPUX 7.0 cc rejects these. */
  5698. ++ccp;
  5699. p = (char**) ccp;
  5700. ccp = (char const *const *) p;
  5701. { /* SCO 3.2v4 cc rejects this. */
  5702. char *t;
  5703. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5704. *t++ = 0;
  5705. }
  5706. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5707. int x[] = {25, 17};
  5708. const int *foo = &x[0];
  5709. ++foo;
  5710. }
  5711. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5712. typedef const int *iptr;
  5713. iptr p = 0;
  5714. ++p;
  5715. }
  5716. { /* AIX XL C 1.02.0.0 rejects this saying
  5717. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5718. struct s { int j; const int *ap[3]; };
  5719. struct s *b; b->j = 5;
  5720. }
  5721. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5722. const int foo = 10;
  5723. }
  5724. #endif
  5725. ;
  5726. return 0;
  5727. }
  5728. _ACEOF
  5729. rm -f conftest.$ac_objext
  5730. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5731. (eval $ac_compile) 2>conftest.er1
  5732. ac_status=$?
  5733. grep -v '^ *+' conftest.er1 >conftest.err
  5734. rm -f conftest.er1
  5735. cat conftest.err >&5
  5736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5737. (exit $ac_status); } &&
  5738. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5740. (eval $ac_try) 2>&5
  5741. ac_status=$?
  5742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5743. (exit $ac_status); }; } &&
  5744. { ac_try='test -s conftest.$ac_objext'
  5745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5746. (eval $ac_try) 2>&5
  5747. ac_status=$?
  5748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5749. (exit $ac_status); }; }; then
  5750. ac_cv_c_const=yes
  5751. else
  5752. echo "$as_me: failed program was:" >&5
  5753. sed 's/^/| /' conftest.$ac_ext >&5
  5754. ac_cv_c_const=no
  5755. fi
  5756. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5757. fi
  5758. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5759. echo "${ECHO_T}$ac_cv_c_const" >&6
  5760. if test $ac_cv_c_const = no; then
  5761. cat >>confdefs.h <<\_ACEOF
  5762. #define const
  5763. _ACEOF
  5764. fi
  5765. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5766. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5767. if test "${ac_cv_c_bigendian+set}" = set; then
  5768. echo $ECHO_N "(cached) $ECHO_C" >&6
  5769. else
  5770. # See if sys/param.h defines the BYTE_ORDER macro.
  5771. cat >conftest.$ac_ext <<_ACEOF
  5772. /* confdefs.h. */
  5773. _ACEOF
  5774. cat confdefs.h >>conftest.$ac_ext
  5775. cat >>conftest.$ac_ext <<_ACEOF
  5776. /* end confdefs.h. */
  5777. #include <sys/types.h>
  5778. #include <sys/param.h>
  5779. int
  5780. main ()
  5781. {
  5782. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5783. bogus endian macros
  5784. #endif
  5785. ;
  5786. return 0;
  5787. }
  5788. _ACEOF
  5789. rm -f conftest.$ac_objext
  5790. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5791. (eval $ac_compile) 2>conftest.er1
  5792. ac_status=$?
  5793. grep -v '^ *+' conftest.er1 >conftest.err
  5794. rm -f conftest.er1
  5795. cat conftest.err >&5
  5796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5797. (exit $ac_status); } &&
  5798. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5800. (eval $ac_try) 2>&5
  5801. ac_status=$?
  5802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. (exit $ac_status); }; } &&
  5804. { ac_try='test -s conftest.$ac_objext'
  5805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5806. (eval $ac_try) 2>&5
  5807. ac_status=$?
  5808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5809. (exit $ac_status); }; }; then
  5810. # It does; now see whether it defined to BIG_ENDIAN or not.
  5811. cat >conftest.$ac_ext <<_ACEOF
  5812. /* confdefs.h. */
  5813. _ACEOF
  5814. cat confdefs.h >>conftest.$ac_ext
  5815. cat >>conftest.$ac_ext <<_ACEOF
  5816. /* end confdefs.h. */
  5817. #include <sys/types.h>
  5818. #include <sys/param.h>
  5819. int
  5820. main ()
  5821. {
  5822. #if BYTE_ORDER != BIG_ENDIAN
  5823. not big endian
  5824. #endif
  5825. ;
  5826. return 0;
  5827. }
  5828. _ACEOF
  5829. rm -f conftest.$ac_objext
  5830. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5831. (eval $ac_compile) 2>conftest.er1
  5832. ac_status=$?
  5833. grep -v '^ *+' conftest.er1 >conftest.err
  5834. rm -f conftest.er1
  5835. cat conftest.err >&5
  5836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5837. (exit $ac_status); } &&
  5838. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5840. (eval $ac_try) 2>&5
  5841. ac_status=$?
  5842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5843. (exit $ac_status); }; } &&
  5844. { ac_try='test -s conftest.$ac_objext'
  5845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5846. (eval $ac_try) 2>&5
  5847. ac_status=$?
  5848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5849. (exit $ac_status); }; }; then
  5850. ac_cv_c_bigendian=yes
  5851. else
  5852. echo "$as_me: failed program was:" >&5
  5853. sed 's/^/| /' conftest.$ac_ext >&5
  5854. ac_cv_c_bigendian=no
  5855. fi
  5856. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5857. else
  5858. echo "$as_me: failed program was:" >&5
  5859. sed 's/^/| /' conftest.$ac_ext >&5
  5860. # It does not; compile a test program.
  5861. if test "$cross_compiling" = yes; then
  5862. # try to guess the endianness by grepping values into an object file
  5863. ac_cv_c_bigendian=unknown
  5864. cat >conftest.$ac_ext <<_ACEOF
  5865. /* confdefs.h. */
  5866. _ACEOF
  5867. cat confdefs.h >>conftest.$ac_ext
  5868. cat >>conftest.$ac_ext <<_ACEOF
  5869. /* end confdefs.h. */
  5870. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5871. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5872. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5873. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5874. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5875. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5876. int
  5877. main ()
  5878. {
  5879. _ascii (); _ebcdic ();
  5880. ;
  5881. return 0;
  5882. }
  5883. _ACEOF
  5884. rm -f conftest.$ac_objext
  5885. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5886. (eval $ac_compile) 2>conftest.er1
  5887. ac_status=$?
  5888. grep -v '^ *+' conftest.er1 >conftest.err
  5889. rm -f conftest.er1
  5890. cat conftest.err >&5
  5891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5892. (exit $ac_status); } &&
  5893. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5895. (eval $ac_try) 2>&5
  5896. ac_status=$?
  5897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5898. (exit $ac_status); }; } &&
  5899. { ac_try='test -s conftest.$ac_objext'
  5900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5901. (eval $ac_try) 2>&5
  5902. ac_status=$?
  5903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. (exit $ac_status); }; }; then
  5905. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5906. ac_cv_c_bigendian=yes
  5907. fi
  5908. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5909. if test "$ac_cv_c_bigendian" = unknown; then
  5910. ac_cv_c_bigendian=no
  5911. else
  5912. # finding both strings is unlikely to happen, but who knows?
  5913. ac_cv_c_bigendian=unknown
  5914. fi
  5915. fi
  5916. else
  5917. echo "$as_me: failed program was:" >&5
  5918. sed 's/^/| /' conftest.$ac_ext >&5
  5919. fi
  5920. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5921. else
  5922. cat >conftest.$ac_ext <<_ACEOF
  5923. /* confdefs.h. */
  5924. _ACEOF
  5925. cat confdefs.h >>conftest.$ac_ext
  5926. cat >>conftest.$ac_ext <<_ACEOF
  5927. /* end confdefs.h. */
  5928. int
  5929. main ()
  5930. {
  5931. /* Are we little or big endian? From Harbison&Steele. */
  5932. union
  5933. {
  5934. long l;
  5935. char c[sizeof (long)];
  5936. } u;
  5937. u.l = 1;
  5938. exit (u.c[sizeof (long) - 1] == 1);
  5939. }
  5940. _ACEOF
  5941. rm -f conftest$ac_exeext
  5942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5943. (eval $ac_link) 2>&5
  5944. ac_status=$?
  5945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5946. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5948. (eval $ac_try) 2>&5
  5949. ac_status=$?
  5950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5951. (exit $ac_status); }; }; then
  5952. ac_cv_c_bigendian=no
  5953. else
  5954. echo "$as_me: program exited with status $ac_status" >&5
  5955. echo "$as_me: failed program was:" >&5
  5956. sed 's/^/| /' conftest.$ac_ext >&5
  5957. ( exit $ac_status )
  5958. ac_cv_c_bigendian=yes
  5959. fi
  5960. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5961. fi
  5962. fi
  5963. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5964. fi
  5965. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5966. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5967. case $ac_cv_c_bigendian in
  5968. yes)
  5969. cat >>confdefs.h <<\_ACEOF
  5970. #define WORDS_BIGENDIAN 1
  5971. _ACEOF
  5972. ;;
  5973. no)
  5974. ;;
  5975. *)
  5976. { { echo "$as_me:$LINENO: error: unknown endianness
  5977. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5978. echo "$as_me: error: unknown endianness
  5979. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5980. { (exit 1); exit 1; }; } ;;
  5981. esac
  5982. echo "$as_me:$LINENO: checking for inline" >&5
  5983. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5984. if test "${ac_cv_c_inline+set}" = set; then
  5985. echo $ECHO_N "(cached) $ECHO_C" >&6
  5986. else
  5987. ac_cv_c_inline=no
  5988. for ac_kw in inline __inline__ __inline; do
  5989. cat >conftest.$ac_ext <<_ACEOF
  5990. /* confdefs.h. */
  5991. _ACEOF
  5992. cat confdefs.h >>conftest.$ac_ext
  5993. cat >>conftest.$ac_ext <<_ACEOF
  5994. /* end confdefs.h. */
  5995. #ifndef __cplusplus
  5996. typedef int foo_t;
  5997. static $ac_kw foo_t static_foo () {return 0; }
  5998. $ac_kw foo_t foo () {return 0; }
  5999. #endif
  6000. _ACEOF
  6001. rm -f conftest.$ac_objext
  6002. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6003. (eval $ac_compile) 2>conftest.er1
  6004. ac_status=$?
  6005. grep -v '^ *+' conftest.er1 >conftest.err
  6006. rm -f conftest.er1
  6007. cat conftest.err >&5
  6008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6009. (exit $ac_status); } &&
  6010. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6012. (eval $ac_try) 2>&5
  6013. ac_status=$?
  6014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6015. (exit $ac_status); }; } &&
  6016. { ac_try='test -s conftest.$ac_objext'
  6017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6018. (eval $ac_try) 2>&5
  6019. ac_status=$?
  6020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6021. (exit $ac_status); }; }; then
  6022. ac_cv_c_inline=$ac_kw; break
  6023. else
  6024. echo "$as_me: failed program was:" >&5
  6025. sed 's/^/| /' conftest.$ac_ext >&5
  6026. fi
  6027. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6028. done
  6029. fi
  6030. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6031. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6032. case $ac_cv_c_inline in
  6033. inline | yes) ;;
  6034. *)
  6035. case $ac_cv_c_inline in
  6036. no) ac_val=;;
  6037. *) ac_val=$ac_cv_c_inline;;
  6038. esac
  6039. cat >>confdefs.h <<_ACEOF
  6040. #ifndef __cplusplus
  6041. #define inline $ac_val
  6042. #endif
  6043. _ACEOF
  6044. ;;
  6045. esac
  6046. echo "$as_me:$LINENO: checking for long" >&5
  6047. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6048. if test "${ac_cv_type_long+set}" = set; then
  6049. echo $ECHO_N "(cached) $ECHO_C" >&6
  6050. else
  6051. cat >conftest.$ac_ext <<_ACEOF
  6052. /* confdefs.h. */
  6053. _ACEOF
  6054. cat confdefs.h >>conftest.$ac_ext
  6055. cat >>conftest.$ac_ext <<_ACEOF
  6056. /* end confdefs.h. */
  6057. $ac_includes_default
  6058. int
  6059. main ()
  6060. {
  6061. if ((long *) 0)
  6062. return 0;
  6063. if (sizeof (long))
  6064. return 0;
  6065. ;
  6066. return 0;
  6067. }
  6068. _ACEOF
  6069. rm -f conftest.$ac_objext
  6070. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6071. (eval $ac_compile) 2>conftest.er1
  6072. ac_status=$?
  6073. grep -v '^ *+' conftest.er1 >conftest.err
  6074. rm -f conftest.er1
  6075. cat conftest.err >&5
  6076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6077. (exit $ac_status); } &&
  6078. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6080. (eval $ac_try) 2>&5
  6081. ac_status=$?
  6082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6083. (exit $ac_status); }; } &&
  6084. { ac_try='test -s conftest.$ac_objext'
  6085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6086. (eval $ac_try) 2>&5
  6087. ac_status=$?
  6088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6089. (exit $ac_status); }; }; then
  6090. ac_cv_type_long=yes
  6091. else
  6092. echo "$as_me: failed program was:" >&5
  6093. sed 's/^/| /' conftest.$ac_ext >&5
  6094. ac_cv_type_long=no
  6095. fi
  6096. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6097. fi
  6098. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6099. echo "${ECHO_T}$ac_cv_type_long" >&6
  6100. echo "$as_me:$LINENO: checking size of long" >&5
  6101. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6102. if test "${ac_cv_sizeof_long+set}" = set; then
  6103. echo $ECHO_N "(cached) $ECHO_C" >&6
  6104. else
  6105. if test "$ac_cv_type_long" = yes; then
  6106. # The cast to unsigned long works around a bug in the HP C Compiler
  6107. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6108. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6109. # This bug is HP SR number 8606223364.
  6110. if test "$cross_compiling" = yes; then
  6111. # Depending upon the size, compute the lo and hi bounds.
  6112. cat >conftest.$ac_ext <<_ACEOF
  6113. /* confdefs.h. */
  6114. _ACEOF
  6115. cat confdefs.h >>conftest.$ac_ext
  6116. cat >>conftest.$ac_ext <<_ACEOF
  6117. /* end confdefs.h. */
  6118. $ac_includes_default
  6119. int
  6120. main ()
  6121. {
  6122. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6123. test_array [0] = 0
  6124. ;
  6125. return 0;
  6126. }
  6127. _ACEOF
  6128. rm -f conftest.$ac_objext
  6129. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6130. (eval $ac_compile) 2>conftest.er1
  6131. ac_status=$?
  6132. grep -v '^ *+' conftest.er1 >conftest.err
  6133. rm -f conftest.er1
  6134. cat conftest.err >&5
  6135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6136. (exit $ac_status); } &&
  6137. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6139. (eval $ac_try) 2>&5
  6140. ac_status=$?
  6141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6142. (exit $ac_status); }; } &&
  6143. { ac_try='test -s conftest.$ac_objext'
  6144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6145. (eval $ac_try) 2>&5
  6146. ac_status=$?
  6147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6148. (exit $ac_status); }; }; then
  6149. ac_lo=0 ac_mid=0
  6150. while :; do
  6151. cat >conftest.$ac_ext <<_ACEOF
  6152. /* confdefs.h. */
  6153. _ACEOF
  6154. cat confdefs.h >>conftest.$ac_ext
  6155. cat >>conftest.$ac_ext <<_ACEOF
  6156. /* end confdefs.h. */
  6157. $ac_includes_default
  6158. int
  6159. main ()
  6160. {
  6161. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6162. test_array [0] = 0
  6163. ;
  6164. return 0;
  6165. }
  6166. _ACEOF
  6167. rm -f conftest.$ac_objext
  6168. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6169. (eval $ac_compile) 2>conftest.er1
  6170. ac_status=$?
  6171. grep -v '^ *+' conftest.er1 >conftest.err
  6172. rm -f conftest.er1
  6173. cat conftest.err >&5
  6174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6175. (exit $ac_status); } &&
  6176. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6178. (eval $ac_try) 2>&5
  6179. ac_status=$?
  6180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6181. (exit $ac_status); }; } &&
  6182. { ac_try='test -s conftest.$ac_objext'
  6183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6184. (eval $ac_try) 2>&5
  6185. ac_status=$?
  6186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6187. (exit $ac_status); }; }; then
  6188. ac_hi=$ac_mid; break
  6189. else
  6190. echo "$as_me: failed program was:" >&5
  6191. sed 's/^/| /' conftest.$ac_ext >&5
  6192. ac_lo=`expr $ac_mid + 1`
  6193. if test $ac_lo -le $ac_mid; then
  6194. ac_lo= ac_hi=
  6195. break
  6196. fi
  6197. ac_mid=`expr 2 '*' $ac_mid + 1`
  6198. fi
  6199. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6200. done
  6201. else
  6202. echo "$as_me: failed program was:" >&5
  6203. sed 's/^/| /' conftest.$ac_ext >&5
  6204. cat >conftest.$ac_ext <<_ACEOF
  6205. /* confdefs.h. */
  6206. _ACEOF
  6207. cat confdefs.h >>conftest.$ac_ext
  6208. cat >>conftest.$ac_ext <<_ACEOF
  6209. /* end confdefs.h. */
  6210. $ac_includes_default
  6211. int
  6212. main ()
  6213. {
  6214. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6215. test_array [0] = 0
  6216. ;
  6217. return 0;
  6218. }
  6219. _ACEOF
  6220. rm -f conftest.$ac_objext
  6221. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6222. (eval $ac_compile) 2>conftest.er1
  6223. ac_status=$?
  6224. grep -v '^ *+' conftest.er1 >conftest.err
  6225. rm -f conftest.er1
  6226. cat conftest.err >&5
  6227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6228. (exit $ac_status); } &&
  6229. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  6235. { ac_try='test -s conftest.$ac_objext'
  6236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6237. (eval $ac_try) 2>&5
  6238. ac_status=$?
  6239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6240. (exit $ac_status); }; }; then
  6241. ac_hi=-1 ac_mid=-1
  6242. while :; do
  6243. cat >conftest.$ac_ext <<_ACEOF
  6244. /* confdefs.h. */
  6245. _ACEOF
  6246. cat confdefs.h >>conftest.$ac_ext
  6247. cat >>conftest.$ac_ext <<_ACEOF
  6248. /* end confdefs.h. */
  6249. $ac_includes_default
  6250. int
  6251. main ()
  6252. {
  6253. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6254. test_array [0] = 0
  6255. ;
  6256. return 0;
  6257. }
  6258. _ACEOF
  6259. rm -f conftest.$ac_objext
  6260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6261. (eval $ac_compile) 2>conftest.er1
  6262. ac_status=$?
  6263. grep -v '^ *+' conftest.er1 >conftest.err
  6264. rm -f conftest.er1
  6265. cat conftest.err >&5
  6266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6267. (exit $ac_status); } &&
  6268. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6270. (eval $ac_try) 2>&5
  6271. ac_status=$?
  6272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6273. (exit $ac_status); }; } &&
  6274. { ac_try='test -s conftest.$ac_objext'
  6275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6276. (eval $ac_try) 2>&5
  6277. ac_status=$?
  6278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6279. (exit $ac_status); }; }; then
  6280. ac_lo=$ac_mid; break
  6281. else
  6282. echo "$as_me: failed program was:" >&5
  6283. sed 's/^/| /' conftest.$ac_ext >&5
  6284. ac_hi=`expr '(' $ac_mid ')' - 1`
  6285. if test $ac_mid -le $ac_hi; then
  6286. ac_lo= ac_hi=
  6287. break
  6288. fi
  6289. ac_mid=`expr 2 '*' $ac_mid`
  6290. fi
  6291. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6292. done
  6293. else
  6294. echo "$as_me: failed program was:" >&5
  6295. sed 's/^/| /' conftest.$ac_ext >&5
  6296. ac_lo= ac_hi=
  6297. fi
  6298. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6299. fi
  6300. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6301. # Binary search between lo and hi bounds.
  6302. while test "x$ac_lo" != "x$ac_hi"; do
  6303. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6304. cat >conftest.$ac_ext <<_ACEOF
  6305. /* confdefs.h. */
  6306. _ACEOF
  6307. cat confdefs.h >>conftest.$ac_ext
  6308. cat >>conftest.$ac_ext <<_ACEOF
  6309. /* end confdefs.h. */
  6310. $ac_includes_default
  6311. int
  6312. main ()
  6313. {
  6314. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6315. test_array [0] = 0
  6316. ;
  6317. return 0;
  6318. }
  6319. _ACEOF
  6320. rm -f conftest.$ac_objext
  6321. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6322. (eval $ac_compile) 2>conftest.er1
  6323. ac_status=$?
  6324. grep -v '^ *+' conftest.er1 >conftest.err
  6325. rm -f conftest.er1
  6326. cat conftest.err >&5
  6327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6328. (exit $ac_status); } &&
  6329. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6331. (eval $ac_try) 2>&5
  6332. ac_status=$?
  6333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6334. (exit $ac_status); }; } &&
  6335. { ac_try='test -s conftest.$ac_objext'
  6336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6337. (eval $ac_try) 2>&5
  6338. ac_status=$?
  6339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6340. (exit $ac_status); }; }; then
  6341. ac_hi=$ac_mid
  6342. else
  6343. echo "$as_me: failed program was:" >&5
  6344. sed 's/^/| /' conftest.$ac_ext >&5
  6345. ac_lo=`expr '(' $ac_mid ')' + 1`
  6346. fi
  6347. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6348. done
  6349. case $ac_lo in
  6350. ?*) ac_cv_sizeof_long=$ac_lo;;
  6351. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6352. See \`config.log' for more details." >&5
  6353. echo "$as_me: error: cannot compute sizeof (long), 77
  6354. See \`config.log' for more details." >&2;}
  6355. { (exit 1); exit 1; }; } ;;
  6356. esac
  6357. else
  6358. if test "$cross_compiling" = yes; then
  6359. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6360. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6361. { (exit 1); exit 1; }; }
  6362. else
  6363. cat >conftest.$ac_ext <<_ACEOF
  6364. /* confdefs.h. */
  6365. _ACEOF
  6366. cat confdefs.h >>conftest.$ac_ext
  6367. cat >>conftest.$ac_ext <<_ACEOF
  6368. /* end confdefs.h. */
  6369. $ac_includes_default
  6370. long longval () { return (long) (sizeof (long)); }
  6371. unsigned long ulongval () { return (long) (sizeof (long)); }
  6372. #include <stdio.h>
  6373. #include <stdlib.h>
  6374. int
  6375. main ()
  6376. {
  6377. FILE *f = fopen ("conftest.val", "w");
  6378. if (! f)
  6379. exit (1);
  6380. if (((long) (sizeof (long))) < 0)
  6381. {
  6382. long i = longval ();
  6383. if (i != ((long) (sizeof (long))))
  6384. exit (1);
  6385. fprintf (f, "%ld\n", i);
  6386. }
  6387. else
  6388. {
  6389. unsigned long i = ulongval ();
  6390. if (i != ((long) (sizeof (long))))
  6391. exit (1);
  6392. fprintf (f, "%lu\n", i);
  6393. }
  6394. exit (ferror (f) || fclose (f) != 0);
  6395. ;
  6396. return 0;
  6397. }
  6398. _ACEOF
  6399. rm -f conftest$ac_exeext
  6400. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6401. (eval $ac_link) 2>&5
  6402. ac_status=$?
  6403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6404. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6406. (eval $ac_try) 2>&5
  6407. ac_status=$?
  6408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6409. (exit $ac_status); }; }; then
  6410. ac_cv_sizeof_long=`cat conftest.val`
  6411. else
  6412. echo "$as_me: program exited with status $ac_status" >&5
  6413. echo "$as_me: failed program was:" >&5
  6414. sed 's/^/| /' conftest.$ac_ext >&5
  6415. ( exit $ac_status )
  6416. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6417. See \`config.log' for more details." >&5
  6418. echo "$as_me: error: cannot compute sizeof (long), 77
  6419. See \`config.log' for more details." >&2;}
  6420. { (exit 1); exit 1; }; }
  6421. fi
  6422. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6423. fi
  6424. fi
  6425. rm -f conftest.val
  6426. else
  6427. ac_cv_sizeof_long=0
  6428. fi
  6429. fi
  6430. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6431. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6432. cat >>confdefs.h <<_ACEOF
  6433. #define SIZEOF_LONG $ac_cv_sizeof_long
  6434. _ACEOF
  6435. echo "$as_me:$LINENO: checking for int" >&5
  6436. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6437. if test "${ac_cv_type_int+set}" = set; then
  6438. echo $ECHO_N "(cached) $ECHO_C" >&6
  6439. else
  6440. cat >conftest.$ac_ext <<_ACEOF
  6441. /* confdefs.h. */
  6442. _ACEOF
  6443. cat confdefs.h >>conftest.$ac_ext
  6444. cat >>conftest.$ac_ext <<_ACEOF
  6445. /* end confdefs.h. */
  6446. $ac_includes_default
  6447. int
  6448. main ()
  6449. {
  6450. if ((int *) 0)
  6451. return 0;
  6452. if (sizeof (int))
  6453. return 0;
  6454. ;
  6455. return 0;
  6456. }
  6457. _ACEOF
  6458. rm -f conftest.$ac_objext
  6459. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6460. (eval $ac_compile) 2>conftest.er1
  6461. ac_status=$?
  6462. grep -v '^ *+' conftest.er1 >conftest.err
  6463. rm -f conftest.er1
  6464. cat conftest.err >&5
  6465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6466. (exit $ac_status); } &&
  6467. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6469. (eval $ac_try) 2>&5
  6470. ac_status=$?
  6471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6472. (exit $ac_status); }; } &&
  6473. { ac_try='test -s conftest.$ac_objext'
  6474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6475. (eval $ac_try) 2>&5
  6476. ac_status=$?
  6477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); }; }; then
  6479. ac_cv_type_int=yes
  6480. else
  6481. echo "$as_me: failed program was:" >&5
  6482. sed 's/^/| /' conftest.$ac_ext >&5
  6483. ac_cv_type_int=no
  6484. fi
  6485. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6486. fi
  6487. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6488. echo "${ECHO_T}$ac_cv_type_int" >&6
  6489. echo "$as_me:$LINENO: checking size of int" >&5
  6490. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6491. if test "${ac_cv_sizeof_int+set}" = set; then
  6492. echo $ECHO_N "(cached) $ECHO_C" >&6
  6493. else
  6494. if test "$ac_cv_type_int" = yes; then
  6495. # The cast to unsigned long works around a bug in the HP C Compiler
  6496. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6497. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6498. # This bug is HP SR number 8606223364.
  6499. if test "$cross_compiling" = yes; then
  6500. # Depending upon the size, compute the lo and hi bounds.
  6501. cat >conftest.$ac_ext <<_ACEOF
  6502. /* confdefs.h. */
  6503. _ACEOF
  6504. cat confdefs.h >>conftest.$ac_ext
  6505. cat >>conftest.$ac_ext <<_ACEOF
  6506. /* end confdefs.h. */
  6507. $ac_includes_default
  6508. int
  6509. main ()
  6510. {
  6511. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6512. test_array [0] = 0
  6513. ;
  6514. return 0;
  6515. }
  6516. _ACEOF
  6517. rm -f conftest.$ac_objext
  6518. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6519. (eval $ac_compile) 2>conftest.er1
  6520. ac_status=$?
  6521. grep -v '^ *+' conftest.er1 >conftest.err
  6522. rm -f conftest.er1
  6523. cat conftest.err >&5
  6524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6525. (exit $ac_status); } &&
  6526. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6528. (eval $ac_try) 2>&5
  6529. ac_status=$?
  6530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6531. (exit $ac_status); }; } &&
  6532. { ac_try='test -s conftest.$ac_objext'
  6533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6534. (eval $ac_try) 2>&5
  6535. ac_status=$?
  6536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6537. (exit $ac_status); }; }; then
  6538. ac_lo=0 ac_mid=0
  6539. while :; do
  6540. cat >conftest.$ac_ext <<_ACEOF
  6541. /* confdefs.h. */
  6542. _ACEOF
  6543. cat confdefs.h >>conftest.$ac_ext
  6544. cat >>conftest.$ac_ext <<_ACEOF
  6545. /* end confdefs.h. */
  6546. $ac_includes_default
  6547. int
  6548. main ()
  6549. {
  6550. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6551. test_array [0] = 0
  6552. ;
  6553. return 0;
  6554. }
  6555. _ACEOF
  6556. rm -f conftest.$ac_objext
  6557. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6558. (eval $ac_compile) 2>conftest.er1
  6559. ac_status=$?
  6560. grep -v '^ *+' conftest.er1 >conftest.err
  6561. rm -f conftest.er1
  6562. cat conftest.err >&5
  6563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); } &&
  6565. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6567. (eval $ac_try) 2>&5
  6568. ac_status=$?
  6569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6570. (exit $ac_status); }; } &&
  6571. { ac_try='test -s conftest.$ac_objext'
  6572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6573. (eval $ac_try) 2>&5
  6574. ac_status=$?
  6575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6576. (exit $ac_status); }; }; then
  6577. ac_hi=$ac_mid; break
  6578. else
  6579. echo "$as_me: failed program was:" >&5
  6580. sed 's/^/| /' conftest.$ac_ext >&5
  6581. ac_lo=`expr $ac_mid + 1`
  6582. if test $ac_lo -le $ac_mid; then
  6583. ac_lo= ac_hi=
  6584. break
  6585. fi
  6586. ac_mid=`expr 2 '*' $ac_mid + 1`
  6587. fi
  6588. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6589. done
  6590. else
  6591. echo "$as_me: failed program was:" >&5
  6592. sed 's/^/| /' conftest.$ac_ext >&5
  6593. cat >conftest.$ac_ext <<_ACEOF
  6594. /* confdefs.h. */
  6595. _ACEOF
  6596. cat confdefs.h >>conftest.$ac_ext
  6597. cat >>conftest.$ac_ext <<_ACEOF
  6598. /* end confdefs.h. */
  6599. $ac_includes_default
  6600. int
  6601. main ()
  6602. {
  6603. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6604. test_array [0] = 0
  6605. ;
  6606. return 0;
  6607. }
  6608. _ACEOF
  6609. rm -f conftest.$ac_objext
  6610. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6611. (eval $ac_compile) 2>conftest.er1
  6612. ac_status=$?
  6613. grep -v '^ *+' conftest.er1 >conftest.err
  6614. rm -f conftest.er1
  6615. cat conftest.err >&5
  6616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6617. (exit $ac_status); } &&
  6618. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  6624. { ac_try='test -s conftest.$ac_objext'
  6625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6626. (eval $ac_try) 2>&5
  6627. ac_status=$?
  6628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6629. (exit $ac_status); }; }; then
  6630. ac_hi=-1 ac_mid=-1
  6631. while :; do
  6632. cat >conftest.$ac_ext <<_ACEOF
  6633. /* confdefs.h. */
  6634. _ACEOF
  6635. cat confdefs.h >>conftest.$ac_ext
  6636. cat >>conftest.$ac_ext <<_ACEOF
  6637. /* end confdefs.h. */
  6638. $ac_includes_default
  6639. int
  6640. main ()
  6641. {
  6642. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6643. test_array [0] = 0
  6644. ;
  6645. return 0;
  6646. }
  6647. _ACEOF
  6648. rm -f conftest.$ac_objext
  6649. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6650. (eval $ac_compile) 2>conftest.er1
  6651. ac_status=$?
  6652. grep -v '^ *+' conftest.er1 >conftest.err
  6653. rm -f conftest.er1
  6654. cat conftest.err >&5
  6655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6656. (exit $ac_status); } &&
  6657. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6659. (eval $ac_try) 2>&5
  6660. ac_status=$?
  6661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6662. (exit $ac_status); }; } &&
  6663. { ac_try='test -s conftest.$ac_objext'
  6664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6665. (eval $ac_try) 2>&5
  6666. ac_status=$?
  6667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6668. (exit $ac_status); }; }; then
  6669. ac_lo=$ac_mid; break
  6670. else
  6671. echo "$as_me: failed program was:" >&5
  6672. sed 's/^/| /' conftest.$ac_ext >&5
  6673. ac_hi=`expr '(' $ac_mid ')' - 1`
  6674. if test $ac_mid -le $ac_hi; then
  6675. ac_lo= ac_hi=
  6676. break
  6677. fi
  6678. ac_mid=`expr 2 '*' $ac_mid`
  6679. fi
  6680. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6681. done
  6682. else
  6683. echo "$as_me: failed program was:" >&5
  6684. sed 's/^/| /' conftest.$ac_ext >&5
  6685. ac_lo= ac_hi=
  6686. fi
  6687. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6688. fi
  6689. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6690. # Binary search between lo and hi bounds.
  6691. while test "x$ac_lo" != "x$ac_hi"; do
  6692. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6693. cat >conftest.$ac_ext <<_ACEOF
  6694. /* confdefs.h. */
  6695. _ACEOF
  6696. cat confdefs.h >>conftest.$ac_ext
  6697. cat >>conftest.$ac_ext <<_ACEOF
  6698. /* end confdefs.h. */
  6699. $ac_includes_default
  6700. int
  6701. main ()
  6702. {
  6703. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6704. test_array [0] = 0
  6705. ;
  6706. return 0;
  6707. }
  6708. _ACEOF
  6709. rm -f conftest.$ac_objext
  6710. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6711. (eval $ac_compile) 2>conftest.er1
  6712. ac_status=$?
  6713. grep -v '^ *+' conftest.er1 >conftest.err
  6714. rm -f conftest.er1
  6715. cat conftest.err >&5
  6716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6717. (exit $ac_status); } &&
  6718. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6720. (eval $ac_try) 2>&5
  6721. ac_status=$?
  6722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6723. (exit $ac_status); }; } &&
  6724. { ac_try='test -s conftest.$ac_objext'
  6725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6726. (eval $ac_try) 2>&5
  6727. ac_status=$?
  6728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6729. (exit $ac_status); }; }; then
  6730. ac_hi=$ac_mid
  6731. else
  6732. echo "$as_me: failed program was:" >&5
  6733. sed 's/^/| /' conftest.$ac_ext >&5
  6734. ac_lo=`expr '(' $ac_mid ')' + 1`
  6735. fi
  6736. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6737. done
  6738. case $ac_lo in
  6739. ?*) ac_cv_sizeof_int=$ac_lo;;
  6740. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6741. See \`config.log' for more details." >&5
  6742. echo "$as_me: error: cannot compute sizeof (int), 77
  6743. See \`config.log' for more details." >&2;}
  6744. { (exit 1); exit 1; }; } ;;
  6745. esac
  6746. else
  6747. if test "$cross_compiling" = yes; then
  6748. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6749. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6750. { (exit 1); exit 1; }; }
  6751. else
  6752. cat >conftest.$ac_ext <<_ACEOF
  6753. /* confdefs.h. */
  6754. _ACEOF
  6755. cat confdefs.h >>conftest.$ac_ext
  6756. cat >>conftest.$ac_ext <<_ACEOF
  6757. /* end confdefs.h. */
  6758. $ac_includes_default
  6759. long longval () { return (long) (sizeof (int)); }
  6760. unsigned long ulongval () { return (long) (sizeof (int)); }
  6761. #include <stdio.h>
  6762. #include <stdlib.h>
  6763. int
  6764. main ()
  6765. {
  6766. FILE *f = fopen ("conftest.val", "w");
  6767. if (! f)
  6768. exit (1);
  6769. if (((long) (sizeof (int))) < 0)
  6770. {
  6771. long i = longval ();
  6772. if (i != ((long) (sizeof (int))))
  6773. exit (1);
  6774. fprintf (f, "%ld\n", i);
  6775. }
  6776. else
  6777. {
  6778. unsigned long i = ulongval ();
  6779. if (i != ((long) (sizeof (int))))
  6780. exit (1);
  6781. fprintf (f, "%lu\n", i);
  6782. }
  6783. exit (ferror (f) || fclose (f) != 0);
  6784. ;
  6785. return 0;
  6786. }
  6787. _ACEOF
  6788. rm -f conftest$ac_exeext
  6789. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6790. (eval $ac_link) 2>&5
  6791. ac_status=$?
  6792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6793. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6795. (eval $ac_try) 2>&5
  6796. ac_status=$?
  6797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6798. (exit $ac_status); }; }; then
  6799. ac_cv_sizeof_int=`cat conftest.val`
  6800. else
  6801. echo "$as_me: program exited with status $ac_status" >&5
  6802. echo "$as_me: failed program was:" >&5
  6803. sed 's/^/| /' conftest.$ac_ext >&5
  6804. ( exit $ac_status )
  6805. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6806. See \`config.log' for more details." >&5
  6807. echo "$as_me: error: cannot compute sizeof (int), 77
  6808. See \`config.log' for more details." >&2;}
  6809. { (exit 1); exit 1; }; }
  6810. fi
  6811. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6812. fi
  6813. fi
  6814. rm -f conftest.val
  6815. else
  6816. ac_cv_sizeof_int=0
  6817. fi
  6818. fi
  6819. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6820. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6821. cat >>confdefs.h <<_ACEOF
  6822. #define SIZEOF_INT $ac_cv_sizeof_int
  6823. _ACEOF
  6824. echo "$as_me:$LINENO: checking for short" >&5
  6825. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6826. if test "${ac_cv_type_short+set}" = set; then
  6827. echo $ECHO_N "(cached) $ECHO_C" >&6
  6828. else
  6829. cat >conftest.$ac_ext <<_ACEOF
  6830. /* confdefs.h. */
  6831. _ACEOF
  6832. cat confdefs.h >>conftest.$ac_ext
  6833. cat >>conftest.$ac_ext <<_ACEOF
  6834. /* end confdefs.h. */
  6835. $ac_includes_default
  6836. int
  6837. main ()
  6838. {
  6839. if ((short *) 0)
  6840. return 0;
  6841. if (sizeof (short))
  6842. return 0;
  6843. ;
  6844. return 0;
  6845. }
  6846. _ACEOF
  6847. rm -f conftest.$ac_objext
  6848. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6849. (eval $ac_compile) 2>conftest.er1
  6850. ac_status=$?
  6851. grep -v '^ *+' conftest.er1 >conftest.err
  6852. rm -f conftest.er1
  6853. cat conftest.err >&5
  6854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6855. (exit $ac_status); } &&
  6856. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6858. (eval $ac_try) 2>&5
  6859. ac_status=$?
  6860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6861. (exit $ac_status); }; } &&
  6862. { ac_try='test -s conftest.$ac_objext'
  6863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6864. (eval $ac_try) 2>&5
  6865. ac_status=$?
  6866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6867. (exit $ac_status); }; }; then
  6868. ac_cv_type_short=yes
  6869. else
  6870. echo "$as_me: failed program was:" >&5
  6871. sed 's/^/| /' conftest.$ac_ext >&5
  6872. ac_cv_type_short=no
  6873. fi
  6874. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6875. fi
  6876. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6877. echo "${ECHO_T}$ac_cv_type_short" >&6
  6878. echo "$as_me:$LINENO: checking size of short" >&5
  6879. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6880. if test "${ac_cv_sizeof_short+set}" = set; then
  6881. echo $ECHO_N "(cached) $ECHO_C" >&6
  6882. else
  6883. if test "$ac_cv_type_short" = yes; then
  6884. # The cast to unsigned long works around a bug in the HP C Compiler
  6885. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6886. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6887. # This bug is HP SR number 8606223364.
  6888. if test "$cross_compiling" = yes; then
  6889. # Depending upon the size, compute the lo and hi bounds.
  6890. cat >conftest.$ac_ext <<_ACEOF
  6891. /* confdefs.h. */
  6892. _ACEOF
  6893. cat confdefs.h >>conftest.$ac_ext
  6894. cat >>conftest.$ac_ext <<_ACEOF
  6895. /* end confdefs.h. */
  6896. $ac_includes_default
  6897. int
  6898. main ()
  6899. {
  6900. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6901. test_array [0] = 0
  6902. ;
  6903. return 0;
  6904. }
  6905. _ACEOF
  6906. rm -f conftest.$ac_objext
  6907. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6908. (eval $ac_compile) 2>conftest.er1
  6909. ac_status=$?
  6910. grep -v '^ *+' conftest.er1 >conftest.err
  6911. rm -f conftest.er1
  6912. cat conftest.err >&5
  6913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6914. (exit $ac_status); } &&
  6915. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6917. (eval $ac_try) 2>&5
  6918. ac_status=$?
  6919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6920. (exit $ac_status); }; } &&
  6921. { ac_try='test -s conftest.$ac_objext'
  6922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6923. (eval $ac_try) 2>&5
  6924. ac_status=$?
  6925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6926. (exit $ac_status); }; }; then
  6927. ac_lo=0 ac_mid=0
  6928. while :; do
  6929. cat >conftest.$ac_ext <<_ACEOF
  6930. /* confdefs.h. */
  6931. _ACEOF
  6932. cat confdefs.h >>conftest.$ac_ext
  6933. cat >>conftest.$ac_ext <<_ACEOF
  6934. /* end confdefs.h. */
  6935. $ac_includes_default
  6936. int
  6937. main ()
  6938. {
  6939. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6940. test_array [0] = 0
  6941. ;
  6942. return 0;
  6943. }
  6944. _ACEOF
  6945. rm -f conftest.$ac_objext
  6946. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6947. (eval $ac_compile) 2>conftest.er1
  6948. ac_status=$?
  6949. grep -v '^ *+' conftest.er1 >conftest.err
  6950. rm -f conftest.er1
  6951. cat conftest.err >&5
  6952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6953. (exit $ac_status); } &&
  6954. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6956. (eval $ac_try) 2>&5
  6957. ac_status=$?
  6958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6959. (exit $ac_status); }; } &&
  6960. { ac_try='test -s conftest.$ac_objext'
  6961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6962. (eval $ac_try) 2>&5
  6963. ac_status=$?
  6964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6965. (exit $ac_status); }; }; then
  6966. ac_hi=$ac_mid; break
  6967. else
  6968. echo "$as_me: failed program was:" >&5
  6969. sed 's/^/| /' conftest.$ac_ext >&5
  6970. ac_lo=`expr $ac_mid + 1`
  6971. if test $ac_lo -le $ac_mid; then
  6972. ac_lo= ac_hi=
  6973. break
  6974. fi
  6975. ac_mid=`expr 2 '*' $ac_mid + 1`
  6976. fi
  6977. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6978. done
  6979. else
  6980. echo "$as_me: failed program was:" >&5
  6981. sed 's/^/| /' conftest.$ac_ext >&5
  6982. cat >conftest.$ac_ext <<_ACEOF
  6983. /* confdefs.h. */
  6984. _ACEOF
  6985. cat confdefs.h >>conftest.$ac_ext
  6986. cat >>conftest.$ac_ext <<_ACEOF
  6987. /* end confdefs.h. */
  6988. $ac_includes_default
  6989. int
  6990. main ()
  6991. {
  6992. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6993. test_array [0] = 0
  6994. ;
  6995. return 0;
  6996. }
  6997. _ACEOF
  6998. rm -f conftest.$ac_objext
  6999. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7000. (eval $ac_compile) 2>conftest.er1
  7001. ac_status=$?
  7002. grep -v '^ *+' conftest.er1 >conftest.err
  7003. rm -f conftest.er1
  7004. cat conftest.err >&5
  7005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7006. (exit $ac_status); } &&
  7007. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7009. (eval $ac_try) 2>&5
  7010. ac_status=$?
  7011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7012. (exit $ac_status); }; } &&
  7013. { ac_try='test -s conftest.$ac_objext'
  7014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7015. (eval $ac_try) 2>&5
  7016. ac_status=$?
  7017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7018. (exit $ac_status); }; }; then
  7019. ac_hi=-1 ac_mid=-1
  7020. while :; do
  7021. cat >conftest.$ac_ext <<_ACEOF
  7022. /* confdefs.h. */
  7023. _ACEOF
  7024. cat confdefs.h >>conftest.$ac_ext
  7025. cat >>conftest.$ac_ext <<_ACEOF
  7026. /* end confdefs.h. */
  7027. $ac_includes_default
  7028. int
  7029. main ()
  7030. {
  7031. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  7032. test_array [0] = 0
  7033. ;
  7034. return 0;
  7035. }
  7036. _ACEOF
  7037. rm -f conftest.$ac_objext
  7038. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7039. (eval $ac_compile) 2>conftest.er1
  7040. ac_status=$?
  7041. grep -v '^ *+' conftest.er1 >conftest.err
  7042. rm -f conftest.er1
  7043. cat conftest.err >&5
  7044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7045. (exit $ac_status); } &&
  7046. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7048. (eval $ac_try) 2>&5
  7049. ac_status=$?
  7050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7051. (exit $ac_status); }; } &&
  7052. { ac_try='test -s conftest.$ac_objext'
  7053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7054. (eval $ac_try) 2>&5
  7055. ac_status=$?
  7056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7057. (exit $ac_status); }; }; then
  7058. ac_lo=$ac_mid; break
  7059. else
  7060. echo "$as_me: failed program was:" >&5
  7061. sed 's/^/| /' conftest.$ac_ext >&5
  7062. ac_hi=`expr '(' $ac_mid ')' - 1`
  7063. if test $ac_mid -le $ac_hi; then
  7064. ac_lo= ac_hi=
  7065. break
  7066. fi
  7067. ac_mid=`expr 2 '*' $ac_mid`
  7068. fi
  7069. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7070. done
  7071. else
  7072. echo "$as_me: failed program was:" >&5
  7073. sed 's/^/| /' conftest.$ac_ext >&5
  7074. ac_lo= ac_hi=
  7075. fi
  7076. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7077. fi
  7078. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7079. # Binary search between lo and hi bounds.
  7080. while test "x$ac_lo" != "x$ac_hi"; do
  7081. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7082. cat >conftest.$ac_ext <<_ACEOF
  7083. /* confdefs.h. */
  7084. _ACEOF
  7085. cat confdefs.h >>conftest.$ac_ext
  7086. cat >>conftest.$ac_ext <<_ACEOF
  7087. /* end confdefs.h. */
  7088. $ac_includes_default
  7089. int
  7090. main ()
  7091. {
  7092. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  7093. test_array [0] = 0
  7094. ;
  7095. return 0;
  7096. }
  7097. _ACEOF
  7098. rm -f conftest.$ac_objext
  7099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7100. (eval $ac_compile) 2>conftest.er1
  7101. ac_status=$?
  7102. grep -v '^ *+' conftest.er1 >conftest.err
  7103. rm -f conftest.er1
  7104. cat conftest.err >&5
  7105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7106. (exit $ac_status); } &&
  7107. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7109. (eval $ac_try) 2>&5
  7110. ac_status=$?
  7111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7112. (exit $ac_status); }; } &&
  7113. { ac_try='test -s conftest.$ac_objext'
  7114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7115. (eval $ac_try) 2>&5
  7116. ac_status=$?
  7117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7118. (exit $ac_status); }; }; then
  7119. ac_hi=$ac_mid
  7120. else
  7121. echo "$as_me: failed program was:" >&5
  7122. sed 's/^/| /' conftest.$ac_ext >&5
  7123. ac_lo=`expr '(' $ac_mid ')' + 1`
  7124. fi
  7125. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7126. done
  7127. case $ac_lo in
  7128. ?*) ac_cv_sizeof_short=$ac_lo;;
  7129. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7130. See \`config.log' for more details." >&5
  7131. echo "$as_me: error: cannot compute sizeof (short), 77
  7132. See \`config.log' for more details." >&2;}
  7133. { (exit 1); exit 1; }; } ;;
  7134. esac
  7135. else
  7136. if test "$cross_compiling" = yes; then
  7137. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7138. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7139. { (exit 1); exit 1; }; }
  7140. else
  7141. cat >conftest.$ac_ext <<_ACEOF
  7142. /* confdefs.h. */
  7143. _ACEOF
  7144. cat confdefs.h >>conftest.$ac_ext
  7145. cat >>conftest.$ac_ext <<_ACEOF
  7146. /* end confdefs.h. */
  7147. $ac_includes_default
  7148. long longval () { return (long) (sizeof (short)); }
  7149. unsigned long ulongval () { return (long) (sizeof (short)); }
  7150. #include <stdio.h>
  7151. #include <stdlib.h>
  7152. int
  7153. main ()
  7154. {
  7155. FILE *f = fopen ("conftest.val", "w");
  7156. if (! f)
  7157. exit (1);
  7158. if (((long) (sizeof (short))) < 0)
  7159. {
  7160. long i = longval ();
  7161. if (i != ((long) (sizeof (short))))
  7162. exit (1);
  7163. fprintf (f, "%ld\n", i);
  7164. }
  7165. else
  7166. {
  7167. unsigned long i = ulongval ();
  7168. if (i != ((long) (sizeof (short))))
  7169. exit (1);
  7170. fprintf (f, "%lu\n", i);
  7171. }
  7172. exit (ferror (f) || fclose (f) != 0);
  7173. ;
  7174. return 0;
  7175. }
  7176. _ACEOF
  7177. rm -f conftest$ac_exeext
  7178. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7179. (eval $ac_link) 2>&5
  7180. ac_status=$?
  7181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7182. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7184. (eval $ac_try) 2>&5
  7185. ac_status=$?
  7186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7187. (exit $ac_status); }; }; then
  7188. ac_cv_sizeof_short=`cat conftest.val`
  7189. else
  7190. echo "$as_me: program exited with status $ac_status" >&5
  7191. echo "$as_me: failed program was:" >&5
  7192. sed 's/^/| /' conftest.$ac_ext >&5
  7193. ( exit $ac_status )
  7194. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7195. See \`config.log' for more details." >&5
  7196. echo "$as_me: error: cannot compute sizeof (short), 77
  7197. See \`config.log' for more details." >&2;}
  7198. { (exit 1); exit 1; }; }
  7199. fi
  7200. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7201. fi
  7202. fi
  7203. rm -f conftest.val
  7204. else
  7205. ac_cv_sizeof_short=0
  7206. fi
  7207. fi
  7208. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7209. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7210. cat >>confdefs.h <<_ACEOF
  7211. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7212. _ACEOF
  7213. #checkpoint
  7214. cat >confcache <<\_ACEOF
  7215. # This file is a shell script that caches the results of configure
  7216. # tests run on this system so they can be shared between configure
  7217. # scripts and configure runs, see configure's option --config-cache.
  7218. # It is not useful on other systems. If it contains results you don't
  7219. # want to keep, you may remove or edit it.
  7220. #
  7221. # config.status only pays attention to the cache file if you give it
  7222. # the --recheck option to rerun configure.
  7223. #
  7224. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7225. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7226. # following values.
  7227. _ACEOF
  7228. # The following way of writing the cache mishandles newlines in values,
  7229. # but we know of no workaround that is simple, portable, and efficient.
  7230. # So, don't put newlines in cache variables' values.
  7231. # Ultrix sh set writes to stderr and can't be redirected directly,
  7232. # and sets the high bit in the cache file unless we assign to the vars.
  7233. {
  7234. (set) 2>&1 |
  7235. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7236. *ac_space=\ *)
  7237. # `set' does not quote correctly, so add quotes (double-quote
  7238. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7239. sed -n \
  7240. "s/'/'\\\\''/g;
  7241. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7242. ;;
  7243. *)
  7244. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7245. sed -n \
  7246. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7247. ;;
  7248. esac;
  7249. } |
  7250. sed '
  7251. t clear
  7252. : clear
  7253. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7254. t end
  7255. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7256. : end' >>confcache
  7257. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7258. if test -w $cache_file; then
  7259. test "x$cache_file" != "x/dev/null"
  7260. cat confcache >$cache_file
  7261. else
  7262. echo "not updating unwritable cache $cache_file"
  7263. fi
  7264. fi
  7265. rm -f confcache
  7266. echo "$as_me:$LINENO: checking for working volatile" >&5
  7267. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7268. if test "${ac_cv_c_volatile+set}" = set; then
  7269. echo $ECHO_N "(cached) $ECHO_C" >&6
  7270. else
  7271. cat >conftest.$ac_ext <<_ACEOF
  7272. /* confdefs.h. */
  7273. _ACEOF
  7274. cat confdefs.h >>conftest.$ac_ext
  7275. cat >>conftest.$ac_ext <<_ACEOF
  7276. /* end confdefs.h. */
  7277. int
  7278. main ()
  7279. {
  7280. volatile int x;
  7281. int * volatile y;
  7282. ;
  7283. return 0;
  7284. }
  7285. _ACEOF
  7286. rm -f conftest.$ac_objext
  7287. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7288. (eval $ac_compile) 2>conftest.er1
  7289. ac_status=$?
  7290. grep -v '^ *+' conftest.er1 >conftest.err
  7291. rm -f conftest.er1
  7292. cat conftest.err >&5
  7293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7294. (exit $ac_status); } &&
  7295. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7297. (eval $ac_try) 2>&5
  7298. ac_status=$?
  7299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7300. (exit $ac_status); }; } &&
  7301. { ac_try='test -s conftest.$ac_objext'
  7302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7303. (eval $ac_try) 2>&5
  7304. ac_status=$?
  7305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7306. (exit $ac_status); }; }; then
  7307. ac_cv_c_volatile=yes
  7308. else
  7309. echo "$as_me: failed program was:" >&5
  7310. sed 's/^/| /' conftest.$ac_ext >&5
  7311. ac_cv_c_volatile=no
  7312. fi
  7313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7314. fi
  7315. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7316. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7317. if test $ac_cv_c_volatile = no; then
  7318. cat >>confdefs.h <<\_ACEOF
  7319. #define volatile
  7320. _ACEOF
  7321. fi
  7322. if test $ac_cv_c_compiler_gnu = yes; then
  7323. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7324. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7325. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7326. echo $ECHO_N "(cached) $ECHO_C" >&6
  7327. else
  7328. ac_pattern="Autoconf.*'x'"
  7329. cat >conftest.$ac_ext <<_ACEOF
  7330. /* confdefs.h. */
  7331. _ACEOF
  7332. cat confdefs.h >>conftest.$ac_ext
  7333. cat >>conftest.$ac_ext <<_ACEOF
  7334. /* end confdefs.h. */
  7335. #include <sgtty.h>
  7336. Autoconf TIOCGETP
  7337. _ACEOF
  7338. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7339. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7340. ac_cv_prog_gcc_traditional=yes
  7341. else
  7342. ac_cv_prog_gcc_traditional=no
  7343. fi
  7344. rm -f conftest*
  7345. if test $ac_cv_prog_gcc_traditional = no; then
  7346. cat >conftest.$ac_ext <<_ACEOF
  7347. /* confdefs.h. */
  7348. _ACEOF
  7349. cat confdefs.h >>conftest.$ac_ext
  7350. cat >>conftest.$ac_ext <<_ACEOF
  7351. /* end confdefs.h. */
  7352. #include <termio.h>
  7353. Autoconf TCGETA
  7354. _ACEOF
  7355. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7356. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7357. ac_cv_prog_gcc_traditional=yes
  7358. fi
  7359. rm -f conftest*
  7360. fi
  7361. fi
  7362. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7363. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7364. if test $ac_cv_prog_gcc_traditional = yes; then
  7365. CC="$CC -traditional"
  7366. fi
  7367. fi
  7368. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7369. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7370. if test "${ac_cv_struct_tm+set}" = set; then
  7371. echo $ECHO_N "(cached) $ECHO_C" >&6
  7372. else
  7373. cat >conftest.$ac_ext <<_ACEOF
  7374. /* confdefs.h. */
  7375. _ACEOF
  7376. cat confdefs.h >>conftest.$ac_ext
  7377. cat >>conftest.$ac_ext <<_ACEOF
  7378. /* end confdefs.h. */
  7379. #include <sys/types.h>
  7380. #include <time.h>
  7381. int
  7382. main ()
  7383. {
  7384. struct tm *tp; tp->tm_sec;
  7385. ;
  7386. return 0;
  7387. }
  7388. _ACEOF
  7389. rm -f conftest.$ac_objext
  7390. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7391. (eval $ac_compile) 2>conftest.er1
  7392. ac_status=$?
  7393. grep -v '^ *+' conftest.er1 >conftest.err
  7394. rm -f conftest.er1
  7395. cat conftest.err >&5
  7396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7397. (exit $ac_status); } &&
  7398. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7400. (eval $ac_try) 2>&5
  7401. ac_status=$?
  7402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7403. (exit $ac_status); }; } &&
  7404. { ac_try='test -s conftest.$ac_objext'
  7405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7406. (eval $ac_try) 2>&5
  7407. ac_status=$?
  7408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7409. (exit $ac_status); }; }; then
  7410. ac_cv_struct_tm=time.h
  7411. else
  7412. echo "$as_me: failed program was:" >&5
  7413. sed 's/^/| /' conftest.$ac_ext >&5
  7414. ac_cv_struct_tm=sys/time.h
  7415. fi
  7416. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7417. fi
  7418. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7419. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7420. if test $ac_cv_struct_tm = sys/time.h; then
  7421. cat >>confdefs.h <<\_ACEOF
  7422. #define TM_IN_SYS_TIME 1
  7423. _ACEOF
  7424. fi
  7425. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7426. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7427. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7428. echo $ECHO_N "(cached) $ECHO_C" >&6
  7429. else
  7430. cat >conftest.$ac_ext <<_ACEOF
  7431. /* confdefs.h. */
  7432. _ACEOF
  7433. cat confdefs.h >>conftest.$ac_ext
  7434. cat >>conftest.$ac_ext <<_ACEOF
  7435. /* end confdefs.h. */
  7436. #include <sys/types.h>
  7437. #include <$ac_cv_struct_tm>
  7438. int
  7439. main ()
  7440. {
  7441. static struct tm ac_aggr;
  7442. if (ac_aggr.tm_zone)
  7443. return 0;
  7444. ;
  7445. return 0;
  7446. }
  7447. _ACEOF
  7448. rm -f conftest.$ac_objext
  7449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7450. (eval $ac_compile) 2>conftest.er1
  7451. ac_status=$?
  7452. grep -v '^ *+' conftest.er1 >conftest.err
  7453. rm -f conftest.er1
  7454. cat conftest.err >&5
  7455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7456. (exit $ac_status); } &&
  7457. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7459. (eval $ac_try) 2>&5
  7460. ac_status=$?
  7461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7462. (exit $ac_status); }; } &&
  7463. { ac_try='test -s conftest.$ac_objext'
  7464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7465. (eval $ac_try) 2>&5
  7466. ac_status=$?
  7467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7468. (exit $ac_status); }; }; then
  7469. ac_cv_member_struct_tm_tm_zone=yes
  7470. else
  7471. echo "$as_me: failed program was:" >&5
  7472. sed 's/^/| /' conftest.$ac_ext >&5
  7473. cat >conftest.$ac_ext <<_ACEOF
  7474. /* confdefs.h. */
  7475. _ACEOF
  7476. cat confdefs.h >>conftest.$ac_ext
  7477. cat >>conftest.$ac_ext <<_ACEOF
  7478. /* end confdefs.h. */
  7479. #include <sys/types.h>
  7480. #include <$ac_cv_struct_tm>
  7481. int
  7482. main ()
  7483. {
  7484. static struct tm ac_aggr;
  7485. if (sizeof ac_aggr.tm_zone)
  7486. return 0;
  7487. ;
  7488. return 0;
  7489. }
  7490. _ACEOF
  7491. rm -f conftest.$ac_objext
  7492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7493. (eval $ac_compile) 2>conftest.er1
  7494. ac_status=$?
  7495. grep -v '^ *+' conftest.er1 >conftest.err
  7496. rm -f conftest.er1
  7497. cat conftest.err >&5
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. (exit $ac_status); } &&
  7500. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7502. (eval $ac_try) 2>&5
  7503. ac_status=$?
  7504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7505. (exit $ac_status); }; } &&
  7506. { ac_try='test -s conftest.$ac_objext'
  7507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7508. (eval $ac_try) 2>&5
  7509. ac_status=$?
  7510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7511. (exit $ac_status); }; }; then
  7512. ac_cv_member_struct_tm_tm_zone=yes
  7513. else
  7514. echo "$as_me: failed program was:" >&5
  7515. sed 's/^/| /' conftest.$ac_ext >&5
  7516. ac_cv_member_struct_tm_tm_zone=no
  7517. fi
  7518. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7519. fi
  7520. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7521. fi
  7522. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7523. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7524. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7525. cat >>confdefs.h <<_ACEOF
  7526. #define HAVE_STRUCT_TM_TM_ZONE 1
  7527. _ACEOF
  7528. fi
  7529. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7530. cat >>confdefs.h <<\_ACEOF
  7531. #define HAVE_TM_ZONE 1
  7532. _ACEOF
  7533. else
  7534. echo "$as_me:$LINENO: checking for tzname" >&5
  7535. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7536. if test "${ac_cv_var_tzname+set}" = set; then
  7537. echo $ECHO_N "(cached) $ECHO_C" >&6
  7538. else
  7539. cat >conftest.$ac_ext <<_ACEOF
  7540. /* confdefs.h. */
  7541. _ACEOF
  7542. cat confdefs.h >>conftest.$ac_ext
  7543. cat >>conftest.$ac_ext <<_ACEOF
  7544. /* end confdefs.h. */
  7545. #include <time.h>
  7546. #ifndef tzname /* For SGI. */
  7547. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7548. #endif
  7549. int
  7550. main ()
  7551. {
  7552. atoi(*tzname);
  7553. ;
  7554. return 0;
  7555. }
  7556. _ACEOF
  7557. rm -f conftest.$ac_objext conftest$ac_exeext
  7558. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7559. (eval $ac_link) 2>conftest.er1
  7560. ac_status=$?
  7561. grep -v '^ *+' conftest.er1 >conftest.err
  7562. rm -f conftest.er1
  7563. cat conftest.err >&5
  7564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7565. (exit $ac_status); } &&
  7566. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7568. (eval $ac_try) 2>&5
  7569. ac_status=$?
  7570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7571. (exit $ac_status); }; } &&
  7572. { ac_try='test -s conftest$ac_exeext'
  7573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7574. (eval $ac_try) 2>&5
  7575. ac_status=$?
  7576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7577. (exit $ac_status); }; }; then
  7578. ac_cv_var_tzname=yes
  7579. else
  7580. echo "$as_me: failed program was:" >&5
  7581. sed 's/^/| /' conftest.$ac_ext >&5
  7582. ac_cv_var_tzname=no
  7583. fi
  7584. rm -f conftest.err conftest.$ac_objext \
  7585. conftest$ac_exeext conftest.$ac_ext
  7586. fi
  7587. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7588. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7589. if test $ac_cv_var_tzname = yes; then
  7590. cat >>confdefs.h <<\_ACEOF
  7591. #define HAVE_TZNAME 1
  7592. _ACEOF
  7593. fi
  7594. fi
  7595. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7596. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7597. if test "${ac_cv_struct_tm+set}" = set; then
  7598. echo $ECHO_N "(cached) $ECHO_C" >&6
  7599. else
  7600. cat >conftest.$ac_ext <<_ACEOF
  7601. /* confdefs.h. */
  7602. _ACEOF
  7603. cat confdefs.h >>conftest.$ac_ext
  7604. cat >>conftest.$ac_ext <<_ACEOF
  7605. /* end confdefs.h. */
  7606. #include <sys/types.h>
  7607. #include <time.h>
  7608. int
  7609. main ()
  7610. {
  7611. struct tm *tp; tp->tm_sec;
  7612. ;
  7613. return 0;
  7614. }
  7615. _ACEOF
  7616. rm -f conftest.$ac_objext
  7617. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7618. (eval $ac_compile) 2>conftest.er1
  7619. ac_status=$?
  7620. grep -v '^ *+' conftest.er1 >conftest.err
  7621. rm -f conftest.er1
  7622. cat conftest.err >&5
  7623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7624. (exit $ac_status); } &&
  7625. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7626. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7627. (eval $ac_try) 2>&5
  7628. ac_status=$?
  7629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. (exit $ac_status); }; } &&
  7631. { ac_try='test -s conftest.$ac_objext'
  7632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7633. (eval $ac_try) 2>&5
  7634. ac_status=$?
  7635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7636. (exit $ac_status); }; }; then
  7637. ac_cv_struct_tm=time.h
  7638. else
  7639. echo "$as_me: failed program was:" >&5
  7640. sed 's/^/| /' conftest.$ac_ext >&5
  7641. ac_cv_struct_tm=sys/time.h
  7642. fi
  7643. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7644. fi
  7645. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7646. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7647. if test $ac_cv_struct_tm = sys/time.h; then
  7648. cat >>confdefs.h <<\_ACEOF
  7649. #define TM_IN_SYS_TIME 1
  7650. _ACEOF
  7651. fi
  7652. #checkpoint
  7653. cat >confcache <<\_ACEOF
  7654. # This file is a shell script that caches the results of configure
  7655. # tests run on this system so they can be shared between configure
  7656. # scripts and configure runs, see configure's option --config-cache.
  7657. # It is not useful on other systems. If it contains results you don't
  7658. # want to keep, you may remove or edit it.
  7659. #
  7660. # config.status only pays attention to the cache file if you give it
  7661. # the --recheck option to rerun configure.
  7662. #
  7663. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7664. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7665. # following values.
  7666. _ACEOF
  7667. # The following way of writing the cache mishandles newlines in values,
  7668. # but we know of no workaround that is simple, portable, and efficient.
  7669. # So, don't put newlines in cache variables' values.
  7670. # Ultrix sh set writes to stderr and can't be redirected directly,
  7671. # and sets the high bit in the cache file unless we assign to the vars.
  7672. {
  7673. (set) 2>&1 |
  7674. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7675. *ac_space=\ *)
  7676. # `set' does not quote correctly, so add quotes (double-quote
  7677. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7678. sed -n \
  7679. "s/'/'\\\\''/g;
  7680. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7681. ;;
  7682. *)
  7683. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7684. sed -n \
  7685. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7686. ;;
  7687. esac;
  7688. } |
  7689. sed '
  7690. t clear
  7691. : clear
  7692. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7693. t end
  7694. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7695. : end' >>confcache
  7696. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7697. if test -w $cache_file; then
  7698. test "x$cache_file" != "x/dev/null"
  7699. cat confcache >$cache_file
  7700. else
  7701. echo "not updating unwritable cache $cache_file"
  7702. fi
  7703. fi
  7704. rm -f confcache
  7705. # Check for IPv6 support
  7706. #EGG_IPV6_SUPPORTED
  7707. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7708. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7709. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7710. if test "${enable_ipv6+set}" = set; then
  7711. enableval="$enable_ipv6"
  7712. ac_cv_dipv6="yes"
  7713. echo "$as_me:$LINENO: result: yes" >&5
  7714. echo "${ECHO_T}yes" >&6
  7715. else
  7716. ac_cv_dipv6="no"
  7717. if test "$egg_cv_ipv6_supported" = "no"; then
  7718. ac_cv_dipv6="no"
  7719. fi
  7720. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7721. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7722. fi;
  7723. if test "$ac_cv_dipv6" = "no"; then
  7724. cat >>confdefs.h <<\_ACEOF
  7725. #define USE_IPV6 1
  7726. _ACEOF
  7727. fi
  7728. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7729. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7730. if test "${egg_cv_socklen_t+set}" = set; then
  7731. echo $ECHO_N "(cached) $ECHO_C" >&6
  7732. else
  7733. if test "$cross_compiling" = yes; then
  7734. egg_cv_socklen_t=no
  7735. else
  7736. cat >conftest.$ac_ext <<_ACEOF
  7737. /* confdefs.h. */
  7738. _ACEOF
  7739. cat confdefs.h >>conftest.$ac_ext
  7740. cat >>conftest.$ac_ext <<_ACEOF
  7741. /* end confdefs.h. */
  7742. #include <unistd.h>
  7743. #include <sys/types.h>
  7744. #include <sys/socket.h>
  7745. #include <netinet/in.h>
  7746. #include <arpa/inet.h>
  7747. int main()
  7748. {
  7749. socklen_t test = sizeof(int);
  7750. return 0;
  7751. }
  7752. _ACEOF
  7753. rm -f conftest$ac_exeext
  7754. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7755. (eval $ac_link) 2>&5
  7756. ac_status=$?
  7757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7758. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7760. (eval $ac_try) 2>&5
  7761. ac_status=$?
  7762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7763. (exit $ac_status); }; }; then
  7764. egg_cv_socklen_t=yes
  7765. else
  7766. echo "$as_me: program exited with status $ac_status" >&5
  7767. echo "$as_me: failed program was:" >&5
  7768. sed 's/^/| /' conftest.$ac_ext >&5
  7769. ( exit $ac_status )
  7770. egg_cv_socklen_t=no
  7771. fi
  7772. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7773. fi
  7774. fi
  7775. if test "$egg_cv_socklen_t" = "yes"; then
  7776. cat >>confdefs.h <<\_ACEOF
  7777. #define HAVE_SOCKLEN_T 1
  7778. _ACEOF
  7779. echo "$as_me:$LINENO: result: yes" >&5
  7780. echo "${ECHO_T}yes" >&6
  7781. else
  7782. echo "$as_me:$LINENO: result: no" >&5
  7783. echo "${ECHO_T}no" >&6
  7784. fi
  7785. # Checks for library functions
  7786. #checkpoint
  7787. cat >confcache <<\_ACEOF
  7788. # This file is a shell script that caches the results of configure
  7789. # tests run on this system so they can be shared between configure
  7790. # scripts and configure runs, see configure's option --config-cache.
  7791. # It is not useful on other systems. If it contains results you don't
  7792. # want to keep, you may remove or edit it.
  7793. #
  7794. # config.status only pays attention to the cache file if you give it
  7795. # the --recheck option to rerun configure.
  7796. #
  7797. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7798. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7799. # following values.
  7800. _ACEOF
  7801. # The following way of writing the cache mishandles newlines in values,
  7802. # but we know of no workaround that is simple, portable, and efficient.
  7803. # So, don't put newlines in cache variables' values.
  7804. # Ultrix sh set writes to stderr and can't be redirected directly,
  7805. # and sets the high bit in the cache file unless we assign to the vars.
  7806. {
  7807. (set) 2>&1 |
  7808. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7809. *ac_space=\ *)
  7810. # `set' does not quote correctly, so add quotes (double-quote
  7811. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7812. sed -n \
  7813. "s/'/'\\\\''/g;
  7814. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7815. ;;
  7816. *)
  7817. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7818. sed -n \
  7819. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7820. ;;
  7821. esac;
  7822. } |
  7823. sed '
  7824. t clear
  7825. : clear
  7826. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7827. t end
  7828. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7829. : end' >>confcache
  7830. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7831. if test -w $cache_file; then
  7832. test "x$cache_file" != "x/dev/null"
  7833. cat confcache >$cache_file
  7834. else
  7835. echo "not updating unwritable cache $cache_file"
  7836. fi
  7837. fi
  7838. rm -f confcache
  7839. # Checks for library functions.
  7840. for ac_header in unistd.h vfork.h
  7841. do
  7842. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7843. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7844. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7845. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7846. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7847. echo $ECHO_N "(cached) $ECHO_C" >&6
  7848. fi
  7849. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7850. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7851. else
  7852. # Is the header compilable?
  7853. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7854. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7855. cat >conftest.$ac_ext <<_ACEOF
  7856. /* confdefs.h. */
  7857. _ACEOF
  7858. cat confdefs.h >>conftest.$ac_ext
  7859. cat >>conftest.$ac_ext <<_ACEOF
  7860. /* end confdefs.h. */
  7861. $ac_includes_default
  7862. #include <$ac_header>
  7863. _ACEOF
  7864. rm -f conftest.$ac_objext
  7865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7866. (eval $ac_compile) 2>conftest.er1
  7867. ac_status=$?
  7868. grep -v '^ *+' conftest.er1 >conftest.err
  7869. rm -f conftest.er1
  7870. cat conftest.err >&5
  7871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7872. (exit $ac_status); } &&
  7873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7875. (eval $ac_try) 2>&5
  7876. ac_status=$?
  7877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7878. (exit $ac_status); }; } &&
  7879. { ac_try='test -s conftest.$ac_objext'
  7880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7881. (eval $ac_try) 2>&5
  7882. ac_status=$?
  7883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7884. (exit $ac_status); }; }; then
  7885. ac_header_compiler=yes
  7886. else
  7887. echo "$as_me: failed program was:" >&5
  7888. sed 's/^/| /' conftest.$ac_ext >&5
  7889. ac_header_compiler=no
  7890. fi
  7891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7892. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7893. echo "${ECHO_T}$ac_header_compiler" >&6
  7894. # Is the header present?
  7895. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7896. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7897. cat >conftest.$ac_ext <<_ACEOF
  7898. /* confdefs.h. */
  7899. _ACEOF
  7900. cat confdefs.h >>conftest.$ac_ext
  7901. cat >>conftest.$ac_ext <<_ACEOF
  7902. /* end confdefs.h. */
  7903. #include <$ac_header>
  7904. _ACEOF
  7905. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7906. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7907. ac_status=$?
  7908. grep -v '^ *+' conftest.er1 >conftest.err
  7909. rm -f conftest.er1
  7910. cat conftest.err >&5
  7911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7912. (exit $ac_status); } >/dev/null; then
  7913. if test -s conftest.err; then
  7914. ac_cpp_err=$ac_c_preproc_warn_flag
  7915. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7916. else
  7917. ac_cpp_err=
  7918. fi
  7919. else
  7920. ac_cpp_err=yes
  7921. fi
  7922. if test -z "$ac_cpp_err"; then
  7923. ac_header_preproc=yes
  7924. else
  7925. echo "$as_me: failed program was:" >&5
  7926. sed 's/^/| /' conftest.$ac_ext >&5
  7927. ac_header_preproc=no
  7928. fi
  7929. rm -f conftest.err conftest.$ac_ext
  7930. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7931. echo "${ECHO_T}$ac_header_preproc" >&6
  7932. # So? What about this header?
  7933. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7934. yes:no: )
  7935. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7936. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7937. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7938. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7939. ac_header_preproc=yes
  7940. ;;
  7941. no:yes:* )
  7942. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7943. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7944. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7945. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7946. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7947. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7948. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7949. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7950. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7951. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7952. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7953. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7954. (
  7955. cat <<\_ASBOX
  7956. ## ------------------------------------------ ##
  7957. ## Report this to the AC_PACKAGE_NAME lists. ##
  7958. ## ------------------------------------------ ##
  7959. _ASBOX
  7960. ) |
  7961. sed "s/^/$as_me: WARNING: /" >&2
  7962. ;;
  7963. esac
  7964. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7965. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7966. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7967. echo $ECHO_N "(cached) $ECHO_C" >&6
  7968. else
  7969. eval "$as_ac_Header=\$ac_header_preproc"
  7970. fi
  7971. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7972. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7973. fi
  7974. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7975. cat >>confdefs.h <<_ACEOF
  7976. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7977. _ACEOF
  7978. fi
  7979. done
  7980. for ac_func in fork vfork
  7981. do
  7982. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7983. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7984. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7985. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7986. echo $ECHO_N "(cached) $ECHO_C" >&6
  7987. else
  7988. cat >conftest.$ac_ext <<_ACEOF
  7989. /* confdefs.h. */
  7990. _ACEOF
  7991. cat confdefs.h >>conftest.$ac_ext
  7992. cat >>conftest.$ac_ext <<_ACEOF
  7993. /* end confdefs.h. */
  7994. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7995. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7996. #define $ac_func innocuous_$ac_func
  7997. /* System header to define __stub macros and hopefully few prototypes,
  7998. which can conflict with char $ac_func (); below.
  7999. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8000. <limits.h> exists even on freestanding compilers. */
  8001. #ifdef __STDC__
  8002. # include <limits.h>
  8003. #else
  8004. # include <assert.h>
  8005. #endif
  8006. #undef $ac_func
  8007. /* Override any gcc2 internal prototype to avoid an error. */
  8008. #ifdef __cplusplus
  8009. extern "C"
  8010. {
  8011. #endif
  8012. /* We use char because int might match the return type of a gcc2
  8013. builtin and then its argument prototype would still apply. */
  8014. char $ac_func ();
  8015. /* The GNU C library defines this for functions which it implements
  8016. to always fail with ENOSYS. Some functions are actually named
  8017. something starting with __ and the normal name is an alias. */
  8018. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8019. choke me
  8020. #else
  8021. char (*f) () = $ac_func;
  8022. #endif
  8023. #ifdef __cplusplus
  8024. }
  8025. #endif
  8026. int
  8027. main ()
  8028. {
  8029. return f != $ac_func;
  8030. ;
  8031. return 0;
  8032. }
  8033. _ACEOF
  8034. rm -f conftest.$ac_objext conftest$ac_exeext
  8035. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8036. (eval $ac_link) 2>conftest.er1
  8037. ac_status=$?
  8038. grep -v '^ *+' conftest.er1 >conftest.err
  8039. rm -f conftest.er1
  8040. cat conftest.err >&5
  8041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8042. (exit $ac_status); } &&
  8043. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8045. (eval $ac_try) 2>&5
  8046. ac_status=$?
  8047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048. (exit $ac_status); }; } &&
  8049. { ac_try='test -s conftest$ac_exeext'
  8050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8051. (eval $ac_try) 2>&5
  8052. ac_status=$?
  8053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8054. (exit $ac_status); }; }; then
  8055. eval "$as_ac_var=yes"
  8056. else
  8057. echo "$as_me: failed program was:" >&5
  8058. sed 's/^/| /' conftest.$ac_ext >&5
  8059. eval "$as_ac_var=no"
  8060. fi
  8061. rm -f conftest.err conftest.$ac_objext \
  8062. conftest$ac_exeext conftest.$ac_ext
  8063. fi
  8064. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8065. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8066. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8067. cat >>confdefs.h <<_ACEOF
  8068. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8069. _ACEOF
  8070. fi
  8071. done
  8072. if test "x$ac_cv_func_fork" = xyes; then
  8073. echo "$as_me:$LINENO: checking for working fork" >&5
  8074. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8075. if test "${ac_cv_func_fork_works+set}" = set; then
  8076. echo $ECHO_N "(cached) $ECHO_C" >&6
  8077. else
  8078. if test "$cross_compiling" = yes; then
  8079. ac_cv_func_fork_works=cross
  8080. else
  8081. cat >conftest.$ac_ext <<_ACEOF
  8082. /* By Ruediger Kuhlmann. */
  8083. #include <sys/types.h>
  8084. #if HAVE_UNISTD_H
  8085. # include <unistd.h>
  8086. #endif
  8087. /* Some systems only have a dummy stub for fork() */
  8088. int main ()
  8089. {
  8090. if (fork() < 0)
  8091. exit (1);
  8092. exit (0);
  8093. }
  8094. _ACEOF
  8095. rm -f conftest$ac_exeext
  8096. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8097. (eval $ac_link) 2>&5
  8098. ac_status=$?
  8099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8100. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8102. (eval $ac_try) 2>&5
  8103. ac_status=$?
  8104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8105. (exit $ac_status); }; }; then
  8106. ac_cv_func_fork_works=yes
  8107. else
  8108. echo "$as_me: program exited with status $ac_status" >&5
  8109. echo "$as_me: failed program was:" >&5
  8110. sed 's/^/| /' conftest.$ac_ext >&5
  8111. ( exit $ac_status )
  8112. ac_cv_func_fork_works=no
  8113. fi
  8114. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8115. fi
  8116. fi
  8117. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8118. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8119. else
  8120. ac_cv_func_fork_works=$ac_cv_func_fork
  8121. fi
  8122. if test "x$ac_cv_func_fork_works" = xcross; then
  8123. case $host in
  8124. *-*-amigaos* | *-*-msdosdjgpp*)
  8125. # Override, as these systems have only a dummy fork() stub
  8126. ac_cv_func_fork_works=no
  8127. ;;
  8128. *)
  8129. ac_cv_func_fork_works=yes
  8130. ;;
  8131. esac
  8132. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8133. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8134. fi
  8135. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8136. if test "x$ac_cv_func_vfork" = xyes; then
  8137. echo "$as_me:$LINENO: checking for working vfork" >&5
  8138. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8139. if test "${ac_cv_func_vfork_works+set}" = set; then
  8140. echo $ECHO_N "(cached) $ECHO_C" >&6
  8141. else
  8142. if test "$cross_compiling" = yes; then
  8143. ac_cv_func_vfork_works=cross
  8144. else
  8145. cat >conftest.$ac_ext <<_ACEOF
  8146. /* confdefs.h. */
  8147. _ACEOF
  8148. cat confdefs.h >>conftest.$ac_ext
  8149. cat >>conftest.$ac_ext <<_ACEOF
  8150. /* end confdefs.h. */
  8151. /* Thanks to Paul Eggert for this test. */
  8152. #include <stdio.h>
  8153. #include <stdlib.h>
  8154. #include <sys/types.h>
  8155. #include <sys/stat.h>
  8156. #include <sys/wait.h>
  8157. #if HAVE_UNISTD_H
  8158. # include <unistd.h>
  8159. #endif
  8160. #if HAVE_VFORK_H
  8161. # include <vfork.h>
  8162. #endif
  8163. /* On some sparc systems, changes by the child to local and incoming
  8164. argument registers are propagated back to the parent. The compiler
  8165. is told about this with #include <vfork.h>, but some compilers
  8166. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8167. static variable whose address is put into a register that is
  8168. clobbered by the vfork. */
  8169. static void
  8170. #ifdef __cplusplus
  8171. sparc_address_test (int arg)
  8172. # else
  8173. sparc_address_test (arg) int arg;
  8174. #endif
  8175. {
  8176. static pid_t child;
  8177. if (!child) {
  8178. child = vfork ();
  8179. if (child < 0) {
  8180. perror ("vfork");
  8181. _exit(2);
  8182. }
  8183. if (!child) {
  8184. arg = getpid();
  8185. write(-1, "", 0);
  8186. _exit (arg);
  8187. }
  8188. }
  8189. }
  8190. int
  8191. main ()
  8192. {
  8193. pid_t parent = getpid ();
  8194. pid_t child;
  8195. sparc_address_test (0);
  8196. child = vfork ();
  8197. if (child == 0) {
  8198. /* Here is another test for sparc vfork register problems. This
  8199. test uses lots of local variables, at least as many local
  8200. variables as main has allocated so far including compiler
  8201. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8202. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8203. reuse the register of parent for one of the local variables,
  8204. since it will think that parent can't possibly be used any more
  8205. in this routine. Assigning to the local variable will thus
  8206. munge parent in the parent process. */
  8207. pid_t
  8208. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8209. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8210. /* Convince the compiler that p..p7 are live; otherwise, it might
  8211. use the same hardware register for all 8 local variables. */
  8212. if (p != p1 || p != p2 || p != p3 || p != p4
  8213. || p != p5 || p != p6 || p != p7)
  8214. _exit(1);
  8215. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8216. from child file descriptors. If the child closes a descriptor
  8217. before it execs or exits, this munges the parent's descriptor
  8218. as well. Test for this by closing stdout in the child. */
  8219. _exit(close(fileno(stdout)) != 0);
  8220. } else {
  8221. int status;
  8222. struct stat st;
  8223. while (wait(&status) != child)
  8224. ;
  8225. exit(
  8226. /* Was there some problem with vforking? */
  8227. child < 0
  8228. /* Did the child fail? (This shouldn't happen.) */
  8229. || status
  8230. /* Did the vfork/compiler bug occur? */
  8231. || parent != getpid()
  8232. /* Did the file descriptor bug occur? */
  8233. || fstat(fileno(stdout), &st) != 0
  8234. );
  8235. }
  8236. }
  8237. _ACEOF
  8238. rm -f conftest$ac_exeext
  8239. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8240. (eval $ac_link) 2>&5
  8241. ac_status=$?
  8242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8243. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8245. (eval $ac_try) 2>&5
  8246. ac_status=$?
  8247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8248. (exit $ac_status); }; }; then
  8249. ac_cv_func_vfork_works=yes
  8250. else
  8251. echo "$as_me: program exited with status $ac_status" >&5
  8252. echo "$as_me: failed program was:" >&5
  8253. sed 's/^/| /' conftest.$ac_ext >&5
  8254. ( exit $ac_status )
  8255. ac_cv_func_vfork_works=no
  8256. fi
  8257. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8258. fi
  8259. fi
  8260. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8261. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8262. fi;
  8263. if test "x$ac_cv_func_fork_works" = xcross; then
  8264. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8265. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8266. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8267. fi
  8268. if test "x$ac_cv_func_vfork_works" = xyes; then
  8269. cat >>confdefs.h <<\_ACEOF
  8270. #define HAVE_WORKING_VFORK 1
  8271. _ACEOF
  8272. else
  8273. cat >>confdefs.h <<\_ACEOF
  8274. #define vfork fork
  8275. _ACEOF
  8276. fi
  8277. if test "x$ac_cv_func_fork_works" = xyes; then
  8278. cat >>confdefs.h <<\_ACEOF
  8279. #define HAVE_WORKING_FORK 1
  8280. _ACEOF
  8281. fi
  8282. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8283. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8284. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8285. echo $ECHO_N "(cached) $ECHO_C" >&6
  8286. else
  8287. rm -f conftest.sym conftest.file
  8288. echo >conftest.file
  8289. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8290. if test "$cross_compiling" = yes; then
  8291. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8292. else
  8293. cat >conftest.$ac_ext <<_ACEOF
  8294. /* confdefs.h. */
  8295. _ACEOF
  8296. cat confdefs.h >>conftest.$ac_ext
  8297. cat >>conftest.$ac_ext <<_ACEOF
  8298. /* end confdefs.h. */
  8299. $ac_includes_default
  8300. int
  8301. main ()
  8302. {
  8303. struct stat sbuf;
  8304. /* Linux will dereference the symlink and fail.
  8305. That is better in the sense that it means we will not
  8306. have to compile and use the lstat wrapper. */
  8307. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8308. ;
  8309. return 0;
  8310. }
  8311. _ACEOF
  8312. rm -f conftest$ac_exeext
  8313. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8314. (eval $ac_link) 2>&5
  8315. ac_status=$?
  8316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8317. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8319. (eval $ac_try) 2>&5
  8320. ac_status=$?
  8321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8322. (exit $ac_status); }; }; then
  8323. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8324. else
  8325. echo "$as_me: program exited with status $ac_status" >&5
  8326. echo "$as_me: failed program was:" >&5
  8327. sed 's/^/| /' conftest.$ac_ext >&5
  8328. ( exit $ac_status )
  8329. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8330. fi
  8331. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8332. fi
  8333. else
  8334. # If the `ln -s' command failed, then we probably don't even
  8335. # have an lstat function.
  8336. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8337. fi
  8338. rm -f conftest.sym conftest.file
  8339. fi
  8340. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8341. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8342. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8343. cat >>confdefs.h <<_ACEOF
  8344. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8345. _ACEOF
  8346. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8347. case $LIBOBJS in
  8348. "lstat.$ac_objext" | \
  8349. *" lstat.$ac_objext" | \
  8350. "lstat.$ac_objext "* | \
  8351. *" lstat.$ac_objext "* ) ;;
  8352. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8353. esac
  8354. fi
  8355. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8356. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8357. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8358. echo $ECHO_N "(cached) $ECHO_C" >&6
  8359. else
  8360. if test "$cross_compiling" = yes; then
  8361. ac_cv_func_lstat_empty_string_bug=yes
  8362. else
  8363. cat >conftest.$ac_ext <<_ACEOF
  8364. /* confdefs.h. */
  8365. _ACEOF
  8366. cat confdefs.h >>conftest.$ac_ext
  8367. cat >>conftest.$ac_ext <<_ACEOF
  8368. /* end confdefs.h. */
  8369. $ac_includes_default
  8370. int
  8371. main ()
  8372. {
  8373. struct stat sbuf;
  8374. exit (lstat ("", &sbuf) ? 1 : 0);
  8375. ;
  8376. return 0;
  8377. }
  8378. _ACEOF
  8379. rm -f conftest$ac_exeext
  8380. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8381. (eval $ac_link) 2>&5
  8382. ac_status=$?
  8383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8384. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8386. (eval $ac_try) 2>&5
  8387. ac_status=$?
  8388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8389. (exit $ac_status); }; }; then
  8390. ac_cv_func_lstat_empty_string_bug=yes
  8391. else
  8392. echo "$as_me: program exited with status $ac_status" >&5
  8393. echo "$as_me: failed program was:" >&5
  8394. sed 's/^/| /' conftest.$ac_ext >&5
  8395. ( exit $ac_status )
  8396. ac_cv_func_lstat_empty_string_bug=no
  8397. fi
  8398. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8399. fi
  8400. fi
  8401. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8402. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8403. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8404. case $LIBOBJS in
  8405. "lstat.$ac_objext" | \
  8406. *" lstat.$ac_objext" | \
  8407. "lstat.$ac_objext "* | \
  8408. *" lstat.$ac_objext "* ) ;;
  8409. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8410. esac
  8411. cat >>confdefs.h <<_ACEOF
  8412. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8413. _ACEOF
  8414. fi
  8415. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8416. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8417. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8418. echo $ECHO_N "(cached) $ECHO_C" >&6
  8419. else
  8420. rm -f conftest.sym conftest.file
  8421. echo >conftest.file
  8422. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8423. if test "$cross_compiling" = yes; then
  8424. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8425. else
  8426. cat >conftest.$ac_ext <<_ACEOF
  8427. /* confdefs.h. */
  8428. _ACEOF
  8429. cat confdefs.h >>conftest.$ac_ext
  8430. cat >>conftest.$ac_ext <<_ACEOF
  8431. /* end confdefs.h. */
  8432. $ac_includes_default
  8433. int
  8434. main ()
  8435. {
  8436. struct stat sbuf;
  8437. /* Linux will dereference the symlink and fail.
  8438. That is better in the sense that it means we will not
  8439. have to compile and use the lstat wrapper. */
  8440. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8441. ;
  8442. return 0;
  8443. }
  8444. _ACEOF
  8445. rm -f conftest$ac_exeext
  8446. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8447. (eval $ac_link) 2>&5
  8448. ac_status=$?
  8449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8450. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8452. (eval $ac_try) 2>&5
  8453. ac_status=$?
  8454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8455. (exit $ac_status); }; }; then
  8456. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8457. else
  8458. echo "$as_me: program exited with status $ac_status" >&5
  8459. echo "$as_me: failed program was:" >&5
  8460. sed 's/^/| /' conftest.$ac_ext >&5
  8461. ( exit $ac_status )
  8462. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8463. fi
  8464. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8465. fi
  8466. else
  8467. # If the `ln -s' command failed, then we probably don't even
  8468. # have an lstat function.
  8469. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8470. fi
  8471. rm -f conftest.sym conftest.file
  8472. fi
  8473. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8474. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8475. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8476. cat >>confdefs.h <<_ACEOF
  8477. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8478. _ACEOF
  8479. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8480. case $LIBOBJS in
  8481. "lstat.$ac_objext" | \
  8482. *" lstat.$ac_objext" | \
  8483. "lstat.$ac_objext "* | \
  8484. *" lstat.$ac_objext "* ) ;;
  8485. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8486. esac
  8487. fi
  8488. for ac_header in stdlib.h
  8489. do
  8490. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8491. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8492. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8493. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8494. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8495. echo $ECHO_N "(cached) $ECHO_C" >&6
  8496. fi
  8497. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8498. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8499. else
  8500. # Is the header compilable?
  8501. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8502. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8503. cat >conftest.$ac_ext <<_ACEOF
  8504. /* confdefs.h. */
  8505. _ACEOF
  8506. cat confdefs.h >>conftest.$ac_ext
  8507. cat >>conftest.$ac_ext <<_ACEOF
  8508. /* end confdefs.h. */
  8509. $ac_includes_default
  8510. #include <$ac_header>
  8511. _ACEOF
  8512. rm -f conftest.$ac_objext
  8513. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8514. (eval $ac_compile) 2>conftest.er1
  8515. ac_status=$?
  8516. grep -v '^ *+' conftest.er1 >conftest.err
  8517. rm -f conftest.er1
  8518. cat conftest.err >&5
  8519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8520. (exit $ac_status); } &&
  8521. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8523. (eval $ac_try) 2>&5
  8524. ac_status=$?
  8525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8526. (exit $ac_status); }; } &&
  8527. { ac_try='test -s conftest.$ac_objext'
  8528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8529. (eval $ac_try) 2>&5
  8530. ac_status=$?
  8531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8532. (exit $ac_status); }; }; then
  8533. ac_header_compiler=yes
  8534. else
  8535. echo "$as_me: failed program was:" >&5
  8536. sed 's/^/| /' conftest.$ac_ext >&5
  8537. ac_header_compiler=no
  8538. fi
  8539. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8540. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8541. echo "${ECHO_T}$ac_header_compiler" >&6
  8542. # Is the header present?
  8543. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8544. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8545. cat >conftest.$ac_ext <<_ACEOF
  8546. /* confdefs.h. */
  8547. _ACEOF
  8548. cat confdefs.h >>conftest.$ac_ext
  8549. cat >>conftest.$ac_ext <<_ACEOF
  8550. /* end confdefs.h. */
  8551. #include <$ac_header>
  8552. _ACEOF
  8553. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8554. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8555. ac_status=$?
  8556. grep -v '^ *+' conftest.er1 >conftest.err
  8557. rm -f conftest.er1
  8558. cat conftest.err >&5
  8559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8560. (exit $ac_status); } >/dev/null; then
  8561. if test -s conftest.err; then
  8562. ac_cpp_err=$ac_c_preproc_warn_flag
  8563. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8564. else
  8565. ac_cpp_err=
  8566. fi
  8567. else
  8568. ac_cpp_err=yes
  8569. fi
  8570. if test -z "$ac_cpp_err"; then
  8571. ac_header_preproc=yes
  8572. else
  8573. echo "$as_me: failed program was:" >&5
  8574. sed 's/^/| /' conftest.$ac_ext >&5
  8575. ac_header_preproc=no
  8576. fi
  8577. rm -f conftest.err conftest.$ac_ext
  8578. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8579. echo "${ECHO_T}$ac_header_preproc" >&6
  8580. # So? What about this header?
  8581. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8582. yes:no: )
  8583. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8584. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8585. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8586. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8587. ac_header_preproc=yes
  8588. ;;
  8589. no:yes:* )
  8590. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8591. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8592. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8593. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8594. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8595. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8596. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8597. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8598. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8599. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8600. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8601. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8602. (
  8603. cat <<\_ASBOX
  8604. ## ------------------------------------------ ##
  8605. ## Report this to the AC_PACKAGE_NAME lists. ##
  8606. ## ------------------------------------------ ##
  8607. _ASBOX
  8608. ) |
  8609. sed "s/^/$as_me: WARNING: /" >&2
  8610. ;;
  8611. esac
  8612. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8613. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8614. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8615. echo $ECHO_N "(cached) $ECHO_C" >&6
  8616. else
  8617. eval "$as_ac_Header=\$ac_header_preproc"
  8618. fi
  8619. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8620. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8621. fi
  8622. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8623. cat >>confdefs.h <<_ACEOF
  8624. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8625. _ACEOF
  8626. fi
  8627. done
  8628. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8629. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8630. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8631. echo $ECHO_N "(cached) $ECHO_C" >&6
  8632. else
  8633. if test "$cross_compiling" = yes; then
  8634. ac_cv_func_malloc_0_nonnull=no
  8635. else
  8636. cat >conftest.$ac_ext <<_ACEOF
  8637. /* confdefs.h. */
  8638. _ACEOF
  8639. cat confdefs.h >>conftest.$ac_ext
  8640. cat >>conftest.$ac_ext <<_ACEOF
  8641. /* end confdefs.h. */
  8642. #if STDC_HEADERS || HAVE_STDLIB_H
  8643. # include <stdlib.h>
  8644. #else
  8645. char *malloc ();
  8646. #endif
  8647. int
  8648. main ()
  8649. {
  8650. exit (malloc (0) ? 0 : 1);
  8651. ;
  8652. return 0;
  8653. }
  8654. _ACEOF
  8655. rm -f conftest$ac_exeext
  8656. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8657. (eval $ac_link) 2>&5
  8658. ac_status=$?
  8659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8660. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8662. (eval $ac_try) 2>&5
  8663. ac_status=$?
  8664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8665. (exit $ac_status); }; }; then
  8666. ac_cv_func_malloc_0_nonnull=yes
  8667. else
  8668. echo "$as_me: program exited with status $ac_status" >&5
  8669. echo "$as_me: failed program was:" >&5
  8670. sed 's/^/| /' conftest.$ac_ext >&5
  8671. ( exit $ac_status )
  8672. ac_cv_func_malloc_0_nonnull=no
  8673. fi
  8674. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8675. fi
  8676. fi
  8677. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8678. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8679. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8680. cat >>confdefs.h <<\_ACEOF
  8681. #define HAVE_MALLOC 1
  8682. _ACEOF
  8683. else
  8684. cat >>confdefs.h <<\_ACEOF
  8685. #define HAVE_MALLOC 0
  8686. _ACEOF
  8687. case $LIBOBJS in
  8688. "malloc.$ac_objext" | \
  8689. *" malloc.$ac_objext" | \
  8690. "malloc.$ac_objext "* | \
  8691. *" malloc.$ac_objext "* ) ;;
  8692. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8693. esac
  8694. cat >>confdefs.h <<\_ACEOF
  8695. #define malloc rpl_malloc
  8696. _ACEOF
  8697. fi
  8698. for ac_header in stdlib.h sys/time.h unistd.h
  8699. do
  8700. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8701. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8702. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8703. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8704. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8705. echo $ECHO_N "(cached) $ECHO_C" >&6
  8706. fi
  8707. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8708. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8709. else
  8710. # Is the header compilable?
  8711. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8712. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8713. cat >conftest.$ac_ext <<_ACEOF
  8714. /* confdefs.h. */
  8715. _ACEOF
  8716. cat confdefs.h >>conftest.$ac_ext
  8717. cat >>conftest.$ac_ext <<_ACEOF
  8718. /* end confdefs.h. */
  8719. $ac_includes_default
  8720. #include <$ac_header>
  8721. _ACEOF
  8722. rm -f conftest.$ac_objext
  8723. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8724. (eval $ac_compile) 2>conftest.er1
  8725. ac_status=$?
  8726. grep -v '^ *+' conftest.er1 >conftest.err
  8727. rm -f conftest.er1
  8728. cat conftest.err >&5
  8729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8730. (exit $ac_status); } &&
  8731. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8733. (eval $ac_try) 2>&5
  8734. ac_status=$?
  8735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8736. (exit $ac_status); }; } &&
  8737. { ac_try='test -s conftest.$ac_objext'
  8738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8739. (eval $ac_try) 2>&5
  8740. ac_status=$?
  8741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8742. (exit $ac_status); }; }; then
  8743. ac_header_compiler=yes
  8744. else
  8745. echo "$as_me: failed program was:" >&5
  8746. sed 's/^/| /' conftest.$ac_ext >&5
  8747. ac_header_compiler=no
  8748. fi
  8749. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8750. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8751. echo "${ECHO_T}$ac_header_compiler" >&6
  8752. # Is the header present?
  8753. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8754. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8755. cat >conftest.$ac_ext <<_ACEOF
  8756. /* confdefs.h. */
  8757. _ACEOF
  8758. cat confdefs.h >>conftest.$ac_ext
  8759. cat >>conftest.$ac_ext <<_ACEOF
  8760. /* end confdefs.h. */
  8761. #include <$ac_header>
  8762. _ACEOF
  8763. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8764. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8765. ac_status=$?
  8766. grep -v '^ *+' conftest.er1 >conftest.err
  8767. rm -f conftest.er1
  8768. cat conftest.err >&5
  8769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8770. (exit $ac_status); } >/dev/null; then
  8771. if test -s conftest.err; then
  8772. ac_cpp_err=$ac_c_preproc_warn_flag
  8773. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8774. else
  8775. ac_cpp_err=
  8776. fi
  8777. else
  8778. ac_cpp_err=yes
  8779. fi
  8780. if test -z "$ac_cpp_err"; then
  8781. ac_header_preproc=yes
  8782. else
  8783. echo "$as_me: failed program was:" >&5
  8784. sed 's/^/| /' conftest.$ac_ext >&5
  8785. ac_header_preproc=no
  8786. fi
  8787. rm -f conftest.err conftest.$ac_ext
  8788. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8789. echo "${ECHO_T}$ac_header_preproc" >&6
  8790. # So? What about this header?
  8791. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8792. yes:no: )
  8793. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8794. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8795. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8796. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8797. ac_header_preproc=yes
  8798. ;;
  8799. no:yes:* )
  8800. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8801. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8802. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8803. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8804. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8805. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8806. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8807. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8808. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8809. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8810. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8811. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8812. (
  8813. cat <<\_ASBOX
  8814. ## ------------------------------------------ ##
  8815. ## Report this to the AC_PACKAGE_NAME lists. ##
  8816. ## ------------------------------------------ ##
  8817. _ASBOX
  8818. ) |
  8819. sed "s/^/$as_me: WARNING: /" >&2
  8820. ;;
  8821. esac
  8822. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8823. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8824. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8825. echo $ECHO_N "(cached) $ECHO_C" >&6
  8826. else
  8827. eval "$as_ac_Header=\$ac_header_preproc"
  8828. fi
  8829. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8830. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8831. fi
  8832. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8833. cat >>confdefs.h <<_ACEOF
  8834. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8835. _ACEOF
  8836. fi
  8837. done
  8838. for ac_func in alarm
  8839. do
  8840. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8841. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8842. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8843. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8844. echo $ECHO_N "(cached) $ECHO_C" >&6
  8845. else
  8846. cat >conftest.$ac_ext <<_ACEOF
  8847. /* confdefs.h. */
  8848. _ACEOF
  8849. cat confdefs.h >>conftest.$ac_ext
  8850. cat >>conftest.$ac_ext <<_ACEOF
  8851. /* end confdefs.h. */
  8852. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8853. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8854. #define $ac_func innocuous_$ac_func
  8855. /* System header to define __stub macros and hopefully few prototypes,
  8856. which can conflict with char $ac_func (); below.
  8857. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8858. <limits.h> exists even on freestanding compilers. */
  8859. #ifdef __STDC__
  8860. # include <limits.h>
  8861. #else
  8862. # include <assert.h>
  8863. #endif
  8864. #undef $ac_func
  8865. /* Override any gcc2 internal prototype to avoid an error. */
  8866. #ifdef __cplusplus
  8867. extern "C"
  8868. {
  8869. #endif
  8870. /* We use char because int might match the return type of a gcc2
  8871. builtin and then its argument prototype would still apply. */
  8872. char $ac_func ();
  8873. /* The GNU C library defines this for functions which it implements
  8874. to always fail with ENOSYS. Some functions are actually named
  8875. something starting with __ and the normal name is an alias. */
  8876. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8877. choke me
  8878. #else
  8879. char (*f) () = $ac_func;
  8880. #endif
  8881. #ifdef __cplusplus
  8882. }
  8883. #endif
  8884. int
  8885. main ()
  8886. {
  8887. return f != $ac_func;
  8888. ;
  8889. return 0;
  8890. }
  8891. _ACEOF
  8892. rm -f conftest.$ac_objext conftest$ac_exeext
  8893. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8894. (eval $ac_link) 2>conftest.er1
  8895. ac_status=$?
  8896. grep -v '^ *+' conftest.er1 >conftest.err
  8897. rm -f conftest.er1
  8898. cat conftest.err >&5
  8899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8900. (exit $ac_status); } &&
  8901. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8903. (eval $ac_try) 2>&5
  8904. ac_status=$?
  8905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8906. (exit $ac_status); }; } &&
  8907. { ac_try='test -s conftest$ac_exeext'
  8908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8909. (eval $ac_try) 2>&5
  8910. ac_status=$?
  8911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8912. (exit $ac_status); }; }; then
  8913. eval "$as_ac_var=yes"
  8914. else
  8915. echo "$as_me: failed program was:" >&5
  8916. sed 's/^/| /' conftest.$ac_ext >&5
  8917. eval "$as_ac_var=no"
  8918. fi
  8919. rm -f conftest.err conftest.$ac_objext \
  8920. conftest$ac_exeext conftest.$ac_ext
  8921. fi
  8922. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8923. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8924. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8925. cat >>confdefs.h <<_ACEOF
  8926. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8927. _ACEOF
  8928. fi
  8929. done
  8930. echo "$as_me:$LINENO: checking for working mktime" >&5
  8931. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8932. if test "${ac_cv_func_working_mktime+set}" = set; then
  8933. echo $ECHO_N "(cached) $ECHO_C" >&6
  8934. else
  8935. if test "$cross_compiling" = yes; then
  8936. ac_cv_func_working_mktime=no
  8937. else
  8938. cat >conftest.$ac_ext <<_ACEOF
  8939. /* confdefs.h. */
  8940. _ACEOF
  8941. cat confdefs.h >>conftest.$ac_ext
  8942. cat >>conftest.$ac_ext <<_ACEOF
  8943. /* end confdefs.h. */
  8944. /* Test program from Paul Eggert and Tony Leneis. */
  8945. #if TIME_WITH_SYS_TIME
  8946. # include <sys/time.h>
  8947. # include <time.h>
  8948. #else
  8949. # if HAVE_SYS_TIME_H
  8950. # include <sys/time.h>
  8951. # else
  8952. # include <time.h>
  8953. # endif
  8954. #endif
  8955. #if HAVE_STDLIB_H
  8956. # include <stdlib.h>
  8957. #endif
  8958. #if HAVE_UNISTD_H
  8959. # include <unistd.h>
  8960. #endif
  8961. #if !HAVE_ALARM
  8962. # define alarm(X) /* empty */
  8963. #endif
  8964. /* Work around redefinition to rpl_putenv by other config tests. */
  8965. #undef putenv
  8966. static time_t time_t_max;
  8967. static time_t time_t_min;
  8968. /* Values we'll use to set the TZ environment variable. */
  8969. static char *tz_strings[] = {
  8970. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8971. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8972. };
  8973. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8974. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8975. Based on a problem report from Andreas Jaeger. */
  8976. static void
  8977. spring_forward_gap ()
  8978. {
  8979. /* glibc (up to about 1998-10-07) failed this test. */
  8980. struct tm tm;
  8981. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8982. instead of "TZ=America/Vancouver" in order to detect the bug even
  8983. on systems that don't support the Olson extension, or don't have the
  8984. full zoneinfo tables installed. */
  8985. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8986. tm.tm_year = 98;
  8987. tm.tm_mon = 3;
  8988. tm.tm_mday = 5;
  8989. tm.tm_hour = 2;
  8990. tm.tm_min = 0;
  8991. tm.tm_sec = 0;
  8992. tm.tm_isdst = -1;
  8993. if (mktime (&tm) == (time_t)-1)
  8994. exit (1);
  8995. }
  8996. static void
  8997. mktime_test1 (now)
  8998. time_t now;
  8999. {
  9000. struct tm *lt;
  9001. if ((lt = localtime (&now)) && mktime (lt) != now)
  9002. exit (1);
  9003. }
  9004. static void
  9005. mktime_test (now)
  9006. time_t now;
  9007. {
  9008. mktime_test1 (now);
  9009. mktime_test1 ((time_t) (time_t_max - now));
  9010. mktime_test1 ((time_t) (time_t_min + now));
  9011. }
  9012. static void
  9013. irix_6_4_bug ()
  9014. {
  9015. /* Based on code from Ariel Faigon. */
  9016. struct tm tm;
  9017. tm.tm_year = 96;
  9018. tm.tm_mon = 3;
  9019. tm.tm_mday = 0;
  9020. tm.tm_hour = 0;
  9021. tm.tm_min = 0;
  9022. tm.tm_sec = 0;
  9023. tm.tm_isdst = -1;
  9024. mktime (&tm);
  9025. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9026. exit (1);
  9027. }
  9028. static void
  9029. bigtime_test (j)
  9030. int j;
  9031. {
  9032. struct tm tm;
  9033. time_t now;
  9034. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9035. now = mktime (&tm);
  9036. if (now != (time_t) -1)
  9037. {
  9038. struct tm *lt = localtime (&now);
  9039. if (! (lt
  9040. && lt->tm_year == tm.tm_year
  9041. && lt->tm_mon == tm.tm_mon
  9042. && lt->tm_mday == tm.tm_mday
  9043. && lt->tm_hour == tm.tm_hour
  9044. && lt->tm_min == tm.tm_min
  9045. && lt->tm_sec == tm.tm_sec
  9046. && lt->tm_yday == tm.tm_yday
  9047. && lt->tm_wday == tm.tm_wday
  9048. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9049. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9050. exit (1);
  9051. }
  9052. }
  9053. int
  9054. main ()
  9055. {
  9056. time_t t, delta;
  9057. int i, j;
  9058. /* This test makes some buggy mktime implementations loop.
  9059. Give up after 60 seconds; a mktime slower than that
  9060. isn't worth using anyway. */
  9061. alarm (60);
  9062. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9063. continue;
  9064. time_t_max--;
  9065. if ((time_t) -1 < 0)
  9066. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9067. continue;
  9068. delta = time_t_max / 997; /* a suitable prime number */
  9069. for (i = 0; i < N_STRINGS; i++)
  9070. {
  9071. if (tz_strings[i])
  9072. putenv (tz_strings[i]);
  9073. for (t = 0; t <= time_t_max - delta; t += delta)
  9074. mktime_test (t);
  9075. mktime_test ((time_t) 1);
  9076. mktime_test ((time_t) (60 * 60));
  9077. mktime_test ((time_t) (60 * 60 * 24));
  9078. for (j = 1; 0 < j; j *= 2)
  9079. bigtime_test (j);
  9080. bigtime_test (j - 1);
  9081. }
  9082. irix_6_4_bug ();
  9083. spring_forward_gap ();
  9084. exit (0);
  9085. }
  9086. _ACEOF
  9087. rm -f conftest$ac_exeext
  9088. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9089. (eval $ac_link) 2>&5
  9090. ac_status=$?
  9091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9092. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9094. (eval $ac_try) 2>&5
  9095. ac_status=$?
  9096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9097. (exit $ac_status); }; }; then
  9098. ac_cv_func_working_mktime=yes
  9099. else
  9100. echo "$as_me: program exited with status $ac_status" >&5
  9101. echo "$as_me: failed program was:" >&5
  9102. sed 's/^/| /' conftest.$ac_ext >&5
  9103. ( exit $ac_status )
  9104. ac_cv_func_working_mktime=no
  9105. fi
  9106. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9107. fi
  9108. fi
  9109. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9110. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9111. if test $ac_cv_func_working_mktime = no; then
  9112. case $LIBOBJS in
  9113. "mktime.$ac_objext" | \
  9114. *" mktime.$ac_objext" | \
  9115. "mktime.$ac_objext "* | \
  9116. *" mktime.$ac_objext "* ) ;;
  9117. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9118. esac
  9119. fi
  9120. for ac_header in stdlib.h unistd.h
  9121. do
  9122. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9123. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9124. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9125. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9126. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9127. echo $ECHO_N "(cached) $ECHO_C" >&6
  9128. fi
  9129. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9130. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9131. else
  9132. # Is the header compilable?
  9133. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9134. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9135. cat >conftest.$ac_ext <<_ACEOF
  9136. /* confdefs.h. */
  9137. _ACEOF
  9138. cat confdefs.h >>conftest.$ac_ext
  9139. cat >>conftest.$ac_ext <<_ACEOF
  9140. /* end confdefs.h. */
  9141. $ac_includes_default
  9142. #include <$ac_header>
  9143. _ACEOF
  9144. rm -f conftest.$ac_objext
  9145. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9146. (eval $ac_compile) 2>conftest.er1
  9147. ac_status=$?
  9148. grep -v '^ *+' conftest.er1 >conftest.err
  9149. rm -f conftest.er1
  9150. cat conftest.err >&5
  9151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9152. (exit $ac_status); } &&
  9153. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9155. (eval $ac_try) 2>&5
  9156. ac_status=$?
  9157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9158. (exit $ac_status); }; } &&
  9159. { ac_try='test -s conftest.$ac_objext'
  9160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9161. (eval $ac_try) 2>&5
  9162. ac_status=$?
  9163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9164. (exit $ac_status); }; }; then
  9165. ac_header_compiler=yes
  9166. else
  9167. echo "$as_me: failed program was:" >&5
  9168. sed 's/^/| /' conftest.$ac_ext >&5
  9169. ac_header_compiler=no
  9170. fi
  9171. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9172. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9173. echo "${ECHO_T}$ac_header_compiler" >&6
  9174. # Is the header present?
  9175. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9176. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9177. cat >conftest.$ac_ext <<_ACEOF
  9178. /* confdefs.h. */
  9179. _ACEOF
  9180. cat confdefs.h >>conftest.$ac_ext
  9181. cat >>conftest.$ac_ext <<_ACEOF
  9182. /* end confdefs.h. */
  9183. #include <$ac_header>
  9184. _ACEOF
  9185. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9186. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9187. ac_status=$?
  9188. grep -v '^ *+' conftest.er1 >conftest.err
  9189. rm -f conftest.er1
  9190. cat conftest.err >&5
  9191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9192. (exit $ac_status); } >/dev/null; then
  9193. if test -s conftest.err; then
  9194. ac_cpp_err=$ac_c_preproc_warn_flag
  9195. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9196. else
  9197. ac_cpp_err=
  9198. fi
  9199. else
  9200. ac_cpp_err=yes
  9201. fi
  9202. if test -z "$ac_cpp_err"; then
  9203. ac_header_preproc=yes
  9204. else
  9205. echo "$as_me: failed program was:" >&5
  9206. sed 's/^/| /' conftest.$ac_ext >&5
  9207. ac_header_preproc=no
  9208. fi
  9209. rm -f conftest.err conftest.$ac_ext
  9210. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9211. echo "${ECHO_T}$ac_header_preproc" >&6
  9212. # So? What about this header?
  9213. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9214. yes:no: )
  9215. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9216. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9217. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9218. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9219. ac_header_preproc=yes
  9220. ;;
  9221. no:yes:* )
  9222. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9223. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9224. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9225. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9226. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9227. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9228. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9229. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9230. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9231. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9232. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9233. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9234. (
  9235. cat <<\_ASBOX
  9236. ## ------------------------------------------ ##
  9237. ## Report this to the AC_PACKAGE_NAME lists. ##
  9238. ## ------------------------------------------ ##
  9239. _ASBOX
  9240. ) |
  9241. sed "s/^/$as_me: WARNING: /" >&2
  9242. ;;
  9243. esac
  9244. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9245. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9246. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9247. echo $ECHO_N "(cached) $ECHO_C" >&6
  9248. else
  9249. eval "$as_ac_Header=\$ac_header_preproc"
  9250. fi
  9251. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9252. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9253. fi
  9254. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9255. cat >>confdefs.h <<_ACEOF
  9256. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9257. _ACEOF
  9258. fi
  9259. done
  9260. for ac_func in getpagesize
  9261. do
  9262. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9263. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9264. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9265. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9266. echo $ECHO_N "(cached) $ECHO_C" >&6
  9267. else
  9268. cat >conftest.$ac_ext <<_ACEOF
  9269. /* confdefs.h. */
  9270. _ACEOF
  9271. cat confdefs.h >>conftest.$ac_ext
  9272. cat >>conftest.$ac_ext <<_ACEOF
  9273. /* end confdefs.h. */
  9274. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9275. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9276. #define $ac_func innocuous_$ac_func
  9277. /* System header to define __stub macros and hopefully few prototypes,
  9278. which can conflict with char $ac_func (); below.
  9279. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9280. <limits.h> exists even on freestanding compilers. */
  9281. #ifdef __STDC__
  9282. # include <limits.h>
  9283. #else
  9284. # include <assert.h>
  9285. #endif
  9286. #undef $ac_func
  9287. /* Override any gcc2 internal prototype to avoid an error. */
  9288. #ifdef __cplusplus
  9289. extern "C"
  9290. {
  9291. #endif
  9292. /* We use char because int might match the return type of a gcc2
  9293. builtin and then its argument prototype would still apply. */
  9294. char $ac_func ();
  9295. /* The GNU C library defines this for functions which it implements
  9296. to always fail with ENOSYS. Some functions are actually named
  9297. something starting with __ and the normal name is an alias. */
  9298. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9299. choke me
  9300. #else
  9301. char (*f) () = $ac_func;
  9302. #endif
  9303. #ifdef __cplusplus
  9304. }
  9305. #endif
  9306. int
  9307. main ()
  9308. {
  9309. return f != $ac_func;
  9310. ;
  9311. return 0;
  9312. }
  9313. _ACEOF
  9314. rm -f conftest.$ac_objext conftest$ac_exeext
  9315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9316. (eval $ac_link) 2>conftest.er1
  9317. ac_status=$?
  9318. grep -v '^ *+' conftest.er1 >conftest.err
  9319. rm -f conftest.er1
  9320. cat conftest.err >&5
  9321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9322. (exit $ac_status); } &&
  9323. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9325. (eval $ac_try) 2>&5
  9326. ac_status=$?
  9327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9328. (exit $ac_status); }; } &&
  9329. { ac_try='test -s conftest$ac_exeext'
  9330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9331. (eval $ac_try) 2>&5
  9332. ac_status=$?
  9333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9334. (exit $ac_status); }; }; then
  9335. eval "$as_ac_var=yes"
  9336. else
  9337. echo "$as_me: failed program was:" >&5
  9338. sed 's/^/| /' conftest.$ac_ext >&5
  9339. eval "$as_ac_var=no"
  9340. fi
  9341. rm -f conftest.err conftest.$ac_objext \
  9342. conftest$ac_exeext conftest.$ac_ext
  9343. fi
  9344. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9345. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9346. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9347. cat >>confdefs.h <<_ACEOF
  9348. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9349. _ACEOF
  9350. fi
  9351. done
  9352. echo "$as_me:$LINENO: checking for working mmap" >&5
  9353. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9354. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9355. echo $ECHO_N "(cached) $ECHO_C" >&6
  9356. else
  9357. if test "$cross_compiling" = yes; then
  9358. ac_cv_func_mmap_fixed_mapped=no
  9359. else
  9360. cat >conftest.$ac_ext <<_ACEOF
  9361. /* confdefs.h. */
  9362. _ACEOF
  9363. cat confdefs.h >>conftest.$ac_ext
  9364. cat >>conftest.$ac_ext <<_ACEOF
  9365. /* end confdefs.h. */
  9366. $ac_includes_default
  9367. /* malloc might have been renamed as rpl_malloc. */
  9368. #undef malloc
  9369. /* Thanks to Mike Haertel and Jim Avera for this test.
  9370. Here is a matrix of mmap possibilities:
  9371. mmap private not fixed
  9372. mmap private fixed at somewhere currently unmapped
  9373. mmap private fixed at somewhere already mapped
  9374. mmap shared not fixed
  9375. mmap shared fixed at somewhere currently unmapped
  9376. mmap shared fixed at somewhere already mapped
  9377. For private mappings, we should verify that changes cannot be read()
  9378. back from the file, nor mmap's back from the file at a different
  9379. address. (There have been systems where private was not correctly
  9380. implemented like the infamous i386 svr4.0, and systems where the
  9381. VM page cache was not coherent with the file system buffer cache
  9382. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9383. For shared mappings, we should conversely verify that changes get
  9384. propagated back to all the places they're supposed to be.
  9385. Grep wants private fixed already mapped.
  9386. The main things grep needs to know about mmap are:
  9387. * does it exist and is it safe to write into the mmap'd area
  9388. * how to use it (BSD variants) */
  9389. #include <fcntl.h>
  9390. #include <sys/mman.h>
  9391. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9392. char *malloc ();
  9393. #endif
  9394. /* This mess was copied from the GNU getpagesize.h. */
  9395. #if !HAVE_GETPAGESIZE
  9396. /* Assume that all systems that can run configure have sys/param.h. */
  9397. # if !HAVE_SYS_PARAM_H
  9398. # define HAVE_SYS_PARAM_H 1
  9399. # endif
  9400. # ifdef _SC_PAGESIZE
  9401. # define getpagesize() sysconf(_SC_PAGESIZE)
  9402. # else /* no _SC_PAGESIZE */
  9403. # if HAVE_SYS_PARAM_H
  9404. # include <sys/param.h>
  9405. # ifdef EXEC_PAGESIZE
  9406. # define getpagesize() EXEC_PAGESIZE
  9407. # else /* no EXEC_PAGESIZE */
  9408. # ifdef NBPG
  9409. # define getpagesize() NBPG * CLSIZE
  9410. # ifndef CLSIZE
  9411. # define CLSIZE 1
  9412. # endif /* no CLSIZE */
  9413. # else /* no NBPG */
  9414. # ifdef NBPC
  9415. # define getpagesize() NBPC
  9416. # else /* no NBPC */
  9417. # ifdef PAGESIZE
  9418. # define getpagesize() PAGESIZE
  9419. # endif /* PAGESIZE */
  9420. # endif /* no NBPC */
  9421. # endif /* no NBPG */
  9422. # endif /* no EXEC_PAGESIZE */
  9423. # else /* no HAVE_SYS_PARAM_H */
  9424. # define getpagesize() 8192 /* punt totally */
  9425. # endif /* no HAVE_SYS_PARAM_H */
  9426. # endif /* no _SC_PAGESIZE */
  9427. #endif /* no HAVE_GETPAGESIZE */
  9428. int
  9429. main ()
  9430. {
  9431. char *data, *data2, *data3;
  9432. int i, pagesize;
  9433. int fd;
  9434. pagesize = getpagesize ();
  9435. /* First, make a file with some known garbage in it. */
  9436. data = (char *) malloc (pagesize);
  9437. if (!data)
  9438. exit (1);
  9439. for (i = 0; i < pagesize; ++i)
  9440. *(data + i) = rand ();
  9441. umask (0);
  9442. fd = creat ("conftest.mmap", 0600);
  9443. if (fd < 0)
  9444. exit (1);
  9445. if (write (fd, data, pagesize) != pagesize)
  9446. exit (1);
  9447. close (fd);
  9448. /* Next, try to mmap the file at a fixed address which already has
  9449. something else allocated at it. If we can, also make sure that
  9450. we see the same garbage. */
  9451. fd = open ("conftest.mmap", O_RDWR);
  9452. if (fd < 0)
  9453. exit (1);
  9454. data2 = (char *) malloc (2 * pagesize);
  9455. if (!data2)
  9456. exit (1);
  9457. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9458. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9459. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9460. exit (1);
  9461. for (i = 0; i < pagesize; ++i)
  9462. if (*(data + i) != *(data2 + i))
  9463. exit (1);
  9464. /* Finally, make sure that changes to the mapped area do not
  9465. percolate back to the file as seen by read(). (This is a bug on
  9466. some variants of i386 svr4.0.) */
  9467. for (i = 0; i < pagesize; ++i)
  9468. *(data2 + i) = *(data2 + i) + 1;
  9469. data3 = (char *) malloc (pagesize);
  9470. if (!data3)
  9471. exit (1);
  9472. if (read (fd, data3, pagesize) != pagesize)
  9473. exit (1);
  9474. for (i = 0; i < pagesize; ++i)
  9475. if (*(data + i) != *(data3 + i))
  9476. exit (1);
  9477. close (fd);
  9478. exit (0);
  9479. }
  9480. _ACEOF
  9481. rm -f conftest$ac_exeext
  9482. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9483. (eval $ac_link) 2>&5
  9484. ac_status=$?
  9485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9486. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9488. (eval $ac_try) 2>&5
  9489. ac_status=$?
  9490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9491. (exit $ac_status); }; }; then
  9492. ac_cv_func_mmap_fixed_mapped=yes
  9493. else
  9494. echo "$as_me: program exited with status $ac_status" >&5
  9495. echo "$as_me: failed program was:" >&5
  9496. sed 's/^/| /' conftest.$ac_ext >&5
  9497. ( exit $ac_status )
  9498. ac_cv_func_mmap_fixed_mapped=no
  9499. fi
  9500. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9501. fi
  9502. fi
  9503. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9504. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9505. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9506. cat >>confdefs.h <<\_ACEOF
  9507. #define HAVE_MMAP 1
  9508. _ACEOF
  9509. fi
  9510. rm -f conftest.mmap
  9511. for ac_header in stdlib.h
  9512. do
  9513. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9514. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9515. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9516. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9517. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9518. echo $ECHO_N "(cached) $ECHO_C" >&6
  9519. fi
  9520. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9521. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9522. else
  9523. # Is the header compilable?
  9524. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9525. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9526. cat >conftest.$ac_ext <<_ACEOF
  9527. /* confdefs.h. */
  9528. _ACEOF
  9529. cat confdefs.h >>conftest.$ac_ext
  9530. cat >>conftest.$ac_ext <<_ACEOF
  9531. /* end confdefs.h. */
  9532. $ac_includes_default
  9533. #include <$ac_header>
  9534. _ACEOF
  9535. rm -f conftest.$ac_objext
  9536. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9537. (eval $ac_compile) 2>conftest.er1
  9538. ac_status=$?
  9539. grep -v '^ *+' conftest.er1 >conftest.err
  9540. rm -f conftest.er1
  9541. cat conftest.err >&5
  9542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9543. (exit $ac_status); } &&
  9544. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9546. (eval $ac_try) 2>&5
  9547. ac_status=$?
  9548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9549. (exit $ac_status); }; } &&
  9550. { ac_try='test -s conftest.$ac_objext'
  9551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9552. (eval $ac_try) 2>&5
  9553. ac_status=$?
  9554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9555. (exit $ac_status); }; }; then
  9556. ac_header_compiler=yes
  9557. else
  9558. echo "$as_me: failed program was:" >&5
  9559. sed 's/^/| /' conftest.$ac_ext >&5
  9560. ac_header_compiler=no
  9561. fi
  9562. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9563. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9564. echo "${ECHO_T}$ac_header_compiler" >&6
  9565. # Is the header present?
  9566. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9567. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9568. cat >conftest.$ac_ext <<_ACEOF
  9569. /* confdefs.h. */
  9570. _ACEOF
  9571. cat confdefs.h >>conftest.$ac_ext
  9572. cat >>conftest.$ac_ext <<_ACEOF
  9573. /* end confdefs.h. */
  9574. #include <$ac_header>
  9575. _ACEOF
  9576. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9577. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9578. ac_status=$?
  9579. grep -v '^ *+' conftest.er1 >conftest.err
  9580. rm -f conftest.er1
  9581. cat conftest.err >&5
  9582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9583. (exit $ac_status); } >/dev/null; then
  9584. if test -s conftest.err; then
  9585. ac_cpp_err=$ac_c_preproc_warn_flag
  9586. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9587. else
  9588. ac_cpp_err=
  9589. fi
  9590. else
  9591. ac_cpp_err=yes
  9592. fi
  9593. if test -z "$ac_cpp_err"; then
  9594. ac_header_preproc=yes
  9595. else
  9596. echo "$as_me: failed program was:" >&5
  9597. sed 's/^/| /' conftest.$ac_ext >&5
  9598. ac_header_preproc=no
  9599. fi
  9600. rm -f conftest.err conftest.$ac_ext
  9601. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9602. echo "${ECHO_T}$ac_header_preproc" >&6
  9603. # So? What about this header?
  9604. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9605. yes:no: )
  9606. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9607. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9608. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9609. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9610. ac_header_preproc=yes
  9611. ;;
  9612. no:yes:* )
  9613. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9614. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9615. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9616. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9617. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9618. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9619. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9620. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9621. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9622. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9623. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9624. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9625. (
  9626. cat <<\_ASBOX
  9627. ## ------------------------------------------ ##
  9628. ## Report this to the AC_PACKAGE_NAME lists. ##
  9629. ## ------------------------------------------ ##
  9630. _ASBOX
  9631. ) |
  9632. sed "s/^/$as_me: WARNING: /" >&2
  9633. ;;
  9634. esac
  9635. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9636. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9637. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9638. echo $ECHO_N "(cached) $ECHO_C" >&6
  9639. else
  9640. eval "$as_ac_Header=\$ac_header_preproc"
  9641. fi
  9642. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9643. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9644. fi
  9645. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9646. cat >>confdefs.h <<_ACEOF
  9647. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9648. _ACEOF
  9649. fi
  9650. done
  9651. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9652. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9653. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9654. echo $ECHO_N "(cached) $ECHO_C" >&6
  9655. else
  9656. if test "$cross_compiling" = yes; then
  9657. ac_cv_func_realloc_0_nonnull=no
  9658. else
  9659. cat >conftest.$ac_ext <<_ACEOF
  9660. /* confdefs.h. */
  9661. _ACEOF
  9662. cat confdefs.h >>conftest.$ac_ext
  9663. cat >>conftest.$ac_ext <<_ACEOF
  9664. /* end confdefs.h. */
  9665. #if STDC_HEADERS || HAVE_STDLIB_H
  9666. # include <stdlib.h>
  9667. #else
  9668. char *realloc ();
  9669. #endif
  9670. int
  9671. main ()
  9672. {
  9673. exit (realloc (0, 0) ? 0 : 1);
  9674. ;
  9675. return 0;
  9676. }
  9677. _ACEOF
  9678. rm -f conftest$ac_exeext
  9679. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9680. (eval $ac_link) 2>&5
  9681. ac_status=$?
  9682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9683. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9685. (eval $ac_try) 2>&5
  9686. ac_status=$?
  9687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9688. (exit $ac_status); }; }; then
  9689. ac_cv_func_realloc_0_nonnull=yes
  9690. else
  9691. echo "$as_me: program exited with status $ac_status" >&5
  9692. echo "$as_me: failed program was:" >&5
  9693. sed 's/^/| /' conftest.$ac_ext >&5
  9694. ( exit $ac_status )
  9695. ac_cv_func_realloc_0_nonnull=no
  9696. fi
  9697. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9698. fi
  9699. fi
  9700. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9701. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9702. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9703. cat >>confdefs.h <<\_ACEOF
  9704. #define HAVE_REALLOC 1
  9705. _ACEOF
  9706. else
  9707. cat >>confdefs.h <<\_ACEOF
  9708. #define HAVE_REALLOC 0
  9709. _ACEOF
  9710. case $LIBOBJS in
  9711. "realloc.$ac_objext" | \
  9712. *" realloc.$ac_objext" | \
  9713. "realloc.$ac_objext "* | \
  9714. *" realloc.$ac_objext "* ) ;;
  9715. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9716. esac
  9717. cat >>confdefs.h <<\_ACEOF
  9718. #define realloc rpl_realloc
  9719. _ACEOF
  9720. fi
  9721. for ac_header in sys/select.h sys/socket.h
  9722. do
  9723. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9724. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9725. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9726. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9727. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9728. echo $ECHO_N "(cached) $ECHO_C" >&6
  9729. fi
  9730. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9731. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9732. else
  9733. # Is the header compilable?
  9734. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9735. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9736. cat >conftest.$ac_ext <<_ACEOF
  9737. /* confdefs.h. */
  9738. _ACEOF
  9739. cat confdefs.h >>conftest.$ac_ext
  9740. cat >>conftest.$ac_ext <<_ACEOF
  9741. /* end confdefs.h. */
  9742. $ac_includes_default
  9743. #include <$ac_header>
  9744. _ACEOF
  9745. rm -f conftest.$ac_objext
  9746. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9747. (eval $ac_compile) 2>conftest.er1
  9748. ac_status=$?
  9749. grep -v '^ *+' conftest.er1 >conftest.err
  9750. rm -f conftest.er1
  9751. cat conftest.err >&5
  9752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9753. (exit $ac_status); } &&
  9754. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9756. (eval $ac_try) 2>&5
  9757. ac_status=$?
  9758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9759. (exit $ac_status); }; } &&
  9760. { ac_try='test -s conftest.$ac_objext'
  9761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9762. (eval $ac_try) 2>&5
  9763. ac_status=$?
  9764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9765. (exit $ac_status); }; }; then
  9766. ac_header_compiler=yes
  9767. else
  9768. echo "$as_me: failed program was:" >&5
  9769. sed 's/^/| /' conftest.$ac_ext >&5
  9770. ac_header_compiler=no
  9771. fi
  9772. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9773. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9774. echo "${ECHO_T}$ac_header_compiler" >&6
  9775. # Is the header present?
  9776. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9777. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9778. cat >conftest.$ac_ext <<_ACEOF
  9779. /* confdefs.h. */
  9780. _ACEOF
  9781. cat confdefs.h >>conftest.$ac_ext
  9782. cat >>conftest.$ac_ext <<_ACEOF
  9783. /* end confdefs.h. */
  9784. #include <$ac_header>
  9785. _ACEOF
  9786. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9787. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9788. ac_status=$?
  9789. grep -v '^ *+' conftest.er1 >conftest.err
  9790. rm -f conftest.er1
  9791. cat conftest.err >&5
  9792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9793. (exit $ac_status); } >/dev/null; then
  9794. if test -s conftest.err; then
  9795. ac_cpp_err=$ac_c_preproc_warn_flag
  9796. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9797. else
  9798. ac_cpp_err=
  9799. fi
  9800. else
  9801. ac_cpp_err=yes
  9802. fi
  9803. if test -z "$ac_cpp_err"; then
  9804. ac_header_preproc=yes
  9805. else
  9806. echo "$as_me: failed program was:" >&5
  9807. sed 's/^/| /' conftest.$ac_ext >&5
  9808. ac_header_preproc=no
  9809. fi
  9810. rm -f conftest.err conftest.$ac_ext
  9811. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9812. echo "${ECHO_T}$ac_header_preproc" >&6
  9813. # So? What about this header?
  9814. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9815. yes:no: )
  9816. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9817. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9818. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9819. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9820. ac_header_preproc=yes
  9821. ;;
  9822. no:yes:* )
  9823. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9824. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9825. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9826. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9827. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9828. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9829. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9830. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9831. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9832. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9833. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9834. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9835. (
  9836. cat <<\_ASBOX
  9837. ## ------------------------------------------ ##
  9838. ## Report this to the AC_PACKAGE_NAME lists. ##
  9839. ## ------------------------------------------ ##
  9840. _ASBOX
  9841. ) |
  9842. sed "s/^/$as_me: WARNING: /" >&2
  9843. ;;
  9844. esac
  9845. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9846. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9847. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9848. echo $ECHO_N "(cached) $ECHO_C" >&6
  9849. else
  9850. eval "$as_ac_Header=\$ac_header_preproc"
  9851. fi
  9852. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9853. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9854. fi
  9855. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9856. cat >>confdefs.h <<_ACEOF
  9857. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9858. _ACEOF
  9859. fi
  9860. done
  9861. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9862. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9863. if test "${ac_cv_func_select_args+set}" = set; then
  9864. echo $ECHO_N "(cached) $ECHO_C" >&6
  9865. else
  9866. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9867. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9868. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9869. cat >conftest.$ac_ext <<_ACEOF
  9870. /* confdefs.h. */
  9871. _ACEOF
  9872. cat confdefs.h >>conftest.$ac_ext
  9873. cat >>conftest.$ac_ext <<_ACEOF
  9874. /* end confdefs.h. */
  9875. $ac_includes_default
  9876. #if HAVE_SYS_SELECT_H
  9877. # include <sys/select.h>
  9878. #endif
  9879. #if HAVE_SYS_SOCKET_H
  9880. # include <sys/socket.h>
  9881. #endif
  9882. int
  9883. main ()
  9884. {
  9885. extern int select ($ac_arg1,
  9886. $ac_arg234, $ac_arg234, $ac_arg234,
  9887. $ac_arg5);
  9888. ;
  9889. return 0;
  9890. }
  9891. _ACEOF
  9892. rm -f conftest.$ac_objext
  9893. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9894. (eval $ac_compile) 2>conftest.er1
  9895. ac_status=$?
  9896. grep -v '^ *+' conftest.er1 >conftest.err
  9897. rm -f conftest.er1
  9898. cat conftest.err >&5
  9899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9900. (exit $ac_status); } &&
  9901. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9903. (eval $ac_try) 2>&5
  9904. ac_status=$?
  9905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9906. (exit $ac_status); }; } &&
  9907. { ac_try='test -s conftest.$ac_objext'
  9908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9909. (eval $ac_try) 2>&5
  9910. ac_status=$?
  9911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9912. (exit $ac_status); }; }; then
  9913. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9914. else
  9915. echo "$as_me: failed program was:" >&5
  9916. sed 's/^/| /' conftest.$ac_ext >&5
  9917. fi
  9918. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9919. done
  9920. done
  9921. done
  9922. # Provide a safe default value.
  9923. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9924. fi
  9925. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9926. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9927. ac_save_IFS=$IFS; IFS=','
  9928. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9929. IFS=$ac_save_IFS
  9930. shift
  9931. cat >>confdefs.h <<_ACEOF
  9932. #define SELECT_TYPE_ARG1 $1
  9933. _ACEOF
  9934. cat >>confdefs.h <<_ACEOF
  9935. #define SELECT_TYPE_ARG234 ($2)
  9936. _ACEOF
  9937. cat >>confdefs.h <<_ACEOF
  9938. #define SELECT_TYPE_ARG5 ($3)
  9939. _ACEOF
  9940. rm -f conftest*
  9941. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9942. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9943. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9944. echo $ECHO_N "(cached) $ECHO_C" >&6
  9945. else
  9946. if test "$cross_compiling" = yes; then
  9947. ac_cv_func_stat_empty_string_bug=yes
  9948. else
  9949. cat >conftest.$ac_ext <<_ACEOF
  9950. /* confdefs.h. */
  9951. _ACEOF
  9952. cat confdefs.h >>conftest.$ac_ext
  9953. cat >>conftest.$ac_ext <<_ACEOF
  9954. /* end confdefs.h. */
  9955. $ac_includes_default
  9956. int
  9957. main ()
  9958. {
  9959. struct stat sbuf;
  9960. exit (stat ("", &sbuf) ? 1 : 0);
  9961. ;
  9962. return 0;
  9963. }
  9964. _ACEOF
  9965. rm -f conftest$ac_exeext
  9966. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9967. (eval $ac_link) 2>&5
  9968. ac_status=$?
  9969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9970. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9972. (eval $ac_try) 2>&5
  9973. ac_status=$?
  9974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9975. (exit $ac_status); }; }; then
  9976. ac_cv_func_stat_empty_string_bug=yes
  9977. else
  9978. echo "$as_me: program exited with status $ac_status" >&5
  9979. echo "$as_me: failed program was:" >&5
  9980. sed 's/^/| /' conftest.$ac_ext >&5
  9981. ( exit $ac_status )
  9982. ac_cv_func_stat_empty_string_bug=no
  9983. fi
  9984. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9985. fi
  9986. fi
  9987. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9988. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9989. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9990. case $LIBOBJS in
  9991. "stat.$ac_objext" | \
  9992. *" stat.$ac_objext" | \
  9993. "stat.$ac_objext "* | \
  9994. *" stat.$ac_objext "* ) ;;
  9995. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9996. esac
  9997. cat >>confdefs.h <<_ACEOF
  9998. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9999. _ACEOF
  10000. fi
  10001. for ac_func in strftime
  10002. do
  10003. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10004. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10005. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10006. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10007. echo $ECHO_N "(cached) $ECHO_C" >&6
  10008. else
  10009. cat >conftest.$ac_ext <<_ACEOF
  10010. /* confdefs.h. */
  10011. _ACEOF
  10012. cat confdefs.h >>conftest.$ac_ext
  10013. cat >>conftest.$ac_ext <<_ACEOF
  10014. /* end confdefs.h. */
  10015. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10016. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10017. #define $ac_func innocuous_$ac_func
  10018. /* System header to define __stub macros and hopefully few prototypes,
  10019. which can conflict with char $ac_func (); below.
  10020. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10021. <limits.h> exists even on freestanding compilers. */
  10022. #ifdef __STDC__
  10023. # include <limits.h>
  10024. #else
  10025. # include <assert.h>
  10026. #endif
  10027. #undef $ac_func
  10028. /* Override any gcc2 internal prototype to avoid an error. */
  10029. #ifdef __cplusplus
  10030. extern "C"
  10031. {
  10032. #endif
  10033. /* We use char because int might match the return type of a gcc2
  10034. builtin and then its argument prototype would still apply. */
  10035. char $ac_func ();
  10036. /* The GNU C library defines this for functions which it implements
  10037. to always fail with ENOSYS. Some functions are actually named
  10038. something starting with __ and the normal name is an alias. */
  10039. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10040. choke me
  10041. #else
  10042. char (*f) () = $ac_func;
  10043. #endif
  10044. #ifdef __cplusplus
  10045. }
  10046. #endif
  10047. int
  10048. main ()
  10049. {
  10050. return f != $ac_func;
  10051. ;
  10052. return 0;
  10053. }
  10054. _ACEOF
  10055. rm -f conftest.$ac_objext conftest$ac_exeext
  10056. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10057. (eval $ac_link) 2>conftest.er1
  10058. ac_status=$?
  10059. grep -v '^ *+' conftest.er1 >conftest.err
  10060. rm -f conftest.er1
  10061. cat conftest.err >&5
  10062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10063. (exit $ac_status); } &&
  10064. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10066. (eval $ac_try) 2>&5
  10067. ac_status=$?
  10068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10069. (exit $ac_status); }; } &&
  10070. { ac_try='test -s conftest$ac_exeext'
  10071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10072. (eval $ac_try) 2>&5
  10073. ac_status=$?
  10074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10075. (exit $ac_status); }; }; then
  10076. eval "$as_ac_var=yes"
  10077. else
  10078. echo "$as_me: failed program was:" >&5
  10079. sed 's/^/| /' conftest.$ac_ext >&5
  10080. eval "$as_ac_var=no"
  10081. fi
  10082. rm -f conftest.err conftest.$ac_objext \
  10083. conftest$ac_exeext conftest.$ac_ext
  10084. fi
  10085. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10086. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10087. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10088. cat >>confdefs.h <<_ACEOF
  10089. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10090. _ACEOF
  10091. else
  10092. # strftime is in -lintl on SCO UNIX.
  10093. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10094. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10095. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10096. echo $ECHO_N "(cached) $ECHO_C" >&6
  10097. else
  10098. ac_check_lib_save_LIBS=$LIBS
  10099. LIBS="-lintl $LIBS"
  10100. cat >conftest.$ac_ext <<_ACEOF
  10101. /* confdefs.h. */
  10102. _ACEOF
  10103. cat confdefs.h >>conftest.$ac_ext
  10104. cat >>conftest.$ac_ext <<_ACEOF
  10105. /* end confdefs.h. */
  10106. /* Override any gcc2 internal prototype to avoid an error. */
  10107. #ifdef __cplusplus
  10108. extern "C"
  10109. #endif
  10110. /* We use char because int might match the return type of a gcc2
  10111. builtin and then its argument prototype would still apply. */
  10112. char strftime ();
  10113. int
  10114. main ()
  10115. {
  10116. strftime ();
  10117. ;
  10118. return 0;
  10119. }
  10120. _ACEOF
  10121. rm -f conftest.$ac_objext conftest$ac_exeext
  10122. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10123. (eval $ac_link) 2>conftest.er1
  10124. ac_status=$?
  10125. grep -v '^ *+' conftest.er1 >conftest.err
  10126. rm -f conftest.er1
  10127. cat conftest.err >&5
  10128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10129. (exit $ac_status); } &&
  10130. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10132. (eval $ac_try) 2>&5
  10133. ac_status=$?
  10134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10135. (exit $ac_status); }; } &&
  10136. { ac_try='test -s conftest$ac_exeext'
  10137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10138. (eval $ac_try) 2>&5
  10139. ac_status=$?
  10140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10141. (exit $ac_status); }; }; then
  10142. ac_cv_lib_intl_strftime=yes
  10143. else
  10144. echo "$as_me: failed program was:" >&5
  10145. sed 's/^/| /' conftest.$ac_ext >&5
  10146. ac_cv_lib_intl_strftime=no
  10147. fi
  10148. rm -f conftest.err conftest.$ac_objext \
  10149. conftest$ac_exeext conftest.$ac_ext
  10150. LIBS=$ac_check_lib_save_LIBS
  10151. fi
  10152. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10153. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10154. if test $ac_cv_lib_intl_strftime = yes; then
  10155. cat >>confdefs.h <<\_ACEOF
  10156. #define HAVE_STRFTIME 1
  10157. _ACEOF
  10158. LIBS="-lintl $LIBS"
  10159. fi
  10160. fi
  10161. done
  10162. #checkpoint
  10163. cat >confcache <<\_ACEOF
  10164. # This file is a shell script that caches the results of configure
  10165. # tests run on this system so they can be shared between configure
  10166. # scripts and configure runs, see configure's option --config-cache.
  10167. # It is not useful on other systems. If it contains results you don't
  10168. # want to keep, you may remove or edit it.
  10169. #
  10170. # config.status only pays attention to the cache file if you give it
  10171. # the --recheck option to rerun configure.
  10172. #
  10173. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10174. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10175. # following values.
  10176. _ACEOF
  10177. # The following way of writing the cache mishandles newlines in values,
  10178. # but we know of no workaround that is simple, portable, and efficient.
  10179. # So, don't put newlines in cache variables' values.
  10180. # Ultrix sh set writes to stderr and can't be redirected directly,
  10181. # and sets the high bit in the cache file unless we assign to the vars.
  10182. {
  10183. (set) 2>&1 |
  10184. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10185. *ac_space=\ *)
  10186. # `set' does not quote correctly, so add quotes (double-quote
  10187. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10188. sed -n \
  10189. "s/'/'\\\\''/g;
  10190. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10191. ;;
  10192. *)
  10193. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10194. sed -n \
  10195. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10196. ;;
  10197. esac;
  10198. } |
  10199. sed '
  10200. t clear
  10201. : clear
  10202. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10203. t end
  10204. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10205. : end' >>confcache
  10206. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10207. if test -w $cache_file; then
  10208. test "x$cache_file" != "x/dev/null"
  10209. cat confcache >$cache_file
  10210. else
  10211. echo "not updating unwritable cache $cache_file"
  10212. fi
  10213. fi
  10214. rm -f confcache
  10215. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10216. do
  10217. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10218. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10219. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10220. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10221. echo $ECHO_N "(cached) $ECHO_C" >&6
  10222. else
  10223. cat >conftest.$ac_ext <<_ACEOF
  10224. /* confdefs.h. */
  10225. _ACEOF
  10226. cat confdefs.h >>conftest.$ac_ext
  10227. cat >>conftest.$ac_ext <<_ACEOF
  10228. /* end confdefs.h. */
  10229. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10230. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10231. #define $ac_func innocuous_$ac_func
  10232. /* System header to define __stub macros and hopefully few prototypes,
  10233. which can conflict with char $ac_func (); below.
  10234. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10235. <limits.h> exists even on freestanding compilers. */
  10236. #ifdef __STDC__
  10237. # include <limits.h>
  10238. #else
  10239. # include <assert.h>
  10240. #endif
  10241. #undef $ac_func
  10242. /* Override any gcc2 internal prototype to avoid an error. */
  10243. #ifdef __cplusplus
  10244. extern "C"
  10245. {
  10246. #endif
  10247. /* We use char because int might match the return type of a gcc2
  10248. builtin and then its argument prototype would still apply. */
  10249. char $ac_func ();
  10250. /* The GNU C library defines this for functions which it implements
  10251. to always fail with ENOSYS. Some functions are actually named
  10252. something starting with __ and the normal name is an alias. */
  10253. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10254. choke me
  10255. #else
  10256. char (*f) () = $ac_func;
  10257. #endif
  10258. #ifdef __cplusplus
  10259. }
  10260. #endif
  10261. int
  10262. main ()
  10263. {
  10264. return f != $ac_func;
  10265. ;
  10266. return 0;
  10267. }
  10268. _ACEOF
  10269. rm -f conftest.$ac_objext conftest$ac_exeext
  10270. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10271. (eval $ac_link) 2>conftest.er1
  10272. ac_status=$?
  10273. grep -v '^ *+' conftest.er1 >conftest.err
  10274. rm -f conftest.er1
  10275. cat conftest.err >&5
  10276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10277. (exit $ac_status); } &&
  10278. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10280. (eval $ac_try) 2>&5
  10281. ac_status=$?
  10282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10283. (exit $ac_status); }; } &&
  10284. { ac_try='test -s conftest$ac_exeext'
  10285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10286. (eval $ac_try) 2>&5
  10287. ac_status=$?
  10288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10289. (exit $ac_status); }; }; then
  10290. eval "$as_ac_var=yes"
  10291. else
  10292. echo "$as_me: failed program was:" >&5
  10293. sed 's/^/| /' conftest.$ac_ext >&5
  10294. eval "$as_ac_var=no"
  10295. fi
  10296. rm -f conftest.err conftest.$ac_objext \
  10297. conftest$ac_exeext conftest.$ac_ext
  10298. fi
  10299. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10300. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10301. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10302. cat >>confdefs.h <<_ACEOF
  10303. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10304. _ACEOF
  10305. fi
  10306. done
  10307. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10308. do
  10309. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10310. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10311. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10312. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10313. echo $ECHO_N "(cached) $ECHO_C" >&6
  10314. else
  10315. cat >conftest.$ac_ext <<_ACEOF
  10316. /* confdefs.h. */
  10317. _ACEOF
  10318. cat confdefs.h >>conftest.$ac_ext
  10319. cat >>conftest.$ac_ext <<_ACEOF
  10320. /* end confdefs.h. */
  10321. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10322. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10323. #define $ac_func innocuous_$ac_func
  10324. /* System header to define __stub macros and hopefully few prototypes,
  10325. which can conflict with char $ac_func (); below.
  10326. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10327. <limits.h> exists even on freestanding compilers. */
  10328. #ifdef __STDC__
  10329. # include <limits.h>
  10330. #else
  10331. # include <assert.h>
  10332. #endif
  10333. #undef $ac_func
  10334. /* Override any gcc2 internal prototype to avoid an error. */
  10335. #ifdef __cplusplus
  10336. extern "C"
  10337. {
  10338. #endif
  10339. /* We use char because int might match the return type of a gcc2
  10340. builtin and then its argument prototype would still apply. */
  10341. char $ac_func ();
  10342. /* The GNU C library defines this for functions which it implements
  10343. to always fail with ENOSYS. Some functions are actually named
  10344. something starting with __ and the normal name is an alias. */
  10345. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10346. choke me
  10347. #else
  10348. char (*f) () = $ac_func;
  10349. #endif
  10350. #ifdef __cplusplus
  10351. }
  10352. #endif
  10353. int
  10354. main ()
  10355. {
  10356. return f != $ac_func;
  10357. ;
  10358. return 0;
  10359. }
  10360. _ACEOF
  10361. rm -f conftest.$ac_objext conftest$ac_exeext
  10362. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10363. (eval $ac_link) 2>conftest.er1
  10364. ac_status=$?
  10365. grep -v '^ *+' conftest.er1 >conftest.err
  10366. rm -f conftest.er1
  10367. cat conftest.err >&5
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); } &&
  10370. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10371. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10372. (eval $ac_try) 2>&5
  10373. ac_status=$?
  10374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10375. (exit $ac_status); }; } &&
  10376. { ac_try='test -s conftest$ac_exeext'
  10377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10378. (eval $ac_try) 2>&5
  10379. ac_status=$?
  10380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10381. (exit $ac_status); }; }; then
  10382. eval "$as_ac_var=yes"
  10383. else
  10384. echo "$as_me: failed program was:" >&5
  10385. sed 's/^/| /' conftest.$ac_ext >&5
  10386. eval "$as_ac_var=no"
  10387. fi
  10388. rm -f conftest.err conftest.$ac_objext \
  10389. conftest$ac_exeext conftest.$ac_ext
  10390. fi
  10391. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10392. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10393. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10394. cat >>confdefs.h <<_ACEOF
  10395. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10396. _ACEOF
  10397. fi
  10398. done
  10399. #checkpoint
  10400. cat >confcache <<\_ACEOF
  10401. # This file is a shell script that caches the results of configure
  10402. # tests run on this system so they can be shared between configure
  10403. # scripts and configure runs, see configure's option --config-cache.
  10404. # It is not useful on other systems. If it contains results you don't
  10405. # want to keep, you may remove or edit it.
  10406. #
  10407. # config.status only pays attention to the cache file if you give it
  10408. # the --recheck option to rerun configure.
  10409. #
  10410. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10411. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10412. # following values.
  10413. _ACEOF
  10414. # The following way of writing the cache mishandles newlines in values,
  10415. # but we know of no workaround that is simple, portable, and efficient.
  10416. # So, don't put newlines in cache variables' values.
  10417. # Ultrix sh set writes to stderr and can't be redirected directly,
  10418. # and sets the high bit in the cache file unless we assign to the vars.
  10419. {
  10420. (set) 2>&1 |
  10421. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10422. *ac_space=\ *)
  10423. # `set' does not quote correctly, so add quotes (double-quote
  10424. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10425. sed -n \
  10426. "s/'/'\\\\''/g;
  10427. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10428. ;;
  10429. *)
  10430. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10431. sed -n \
  10432. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10433. ;;
  10434. esac;
  10435. } |
  10436. sed '
  10437. t clear
  10438. : clear
  10439. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10440. t end
  10441. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10442. : end' >>confcache
  10443. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10444. if test -w $cache_file; then
  10445. test "x$cache_file" != "x/dev/null"
  10446. cat confcache >$cache_file
  10447. else
  10448. echo "not updating unwritable cache $cache_file"
  10449. fi
  10450. fi
  10451. rm -f confcache
  10452. for ac_func in strcasecmp strncasecmp vsnprintf
  10453. do
  10454. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10455. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10456. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10457. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10458. echo $ECHO_N "(cached) $ECHO_C" >&6
  10459. else
  10460. cat >conftest.$ac_ext <<_ACEOF
  10461. /* confdefs.h. */
  10462. _ACEOF
  10463. cat confdefs.h >>conftest.$ac_ext
  10464. cat >>conftest.$ac_ext <<_ACEOF
  10465. /* end confdefs.h. */
  10466. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10467. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10468. #define $ac_func innocuous_$ac_func
  10469. /* System header to define __stub macros and hopefully few prototypes,
  10470. which can conflict with char $ac_func (); below.
  10471. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10472. <limits.h> exists even on freestanding compilers. */
  10473. #ifdef __STDC__
  10474. # include <limits.h>
  10475. #else
  10476. # include <assert.h>
  10477. #endif
  10478. #undef $ac_func
  10479. /* Override any gcc2 internal prototype to avoid an error. */
  10480. #ifdef __cplusplus
  10481. extern "C"
  10482. {
  10483. #endif
  10484. /* We use char because int might match the return type of a gcc2
  10485. builtin and then its argument prototype would still apply. */
  10486. char $ac_func ();
  10487. /* The GNU C library defines this for functions which it implements
  10488. to always fail with ENOSYS. Some functions are actually named
  10489. something starting with __ and the normal name is an alias. */
  10490. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10491. choke me
  10492. #else
  10493. char (*f) () = $ac_func;
  10494. #endif
  10495. #ifdef __cplusplus
  10496. }
  10497. #endif
  10498. int
  10499. main ()
  10500. {
  10501. return f != $ac_func;
  10502. ;
  10503. return 0;
  10504. }
  10505. _ACEOF
  10506. rm -f conftest.$ac_objext conftest$ac_exeext
  10507. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10508. (eval $ac_link) 2>conftest.er1
  10509. ac_status=$?
  10510. grep -v '^ *+' conftest.er1 >conftest.err
  10511. rm -f conftest.er1
  10512. cat conftest.err >&5
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); } &&
  10515. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10517. (eval $ac_try) 2>&5
  10518. ac_status=$?
  10519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. (exit $ac_status); }; } &&
  10521. { ac_try='test -s conftest$ac_exeext'
  10522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10523. (eval $ac_try) 2>&5
  10524. ac_status=$?
  10525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10526. (exit $ac_status); }; }; then
  10527. eval "$as_ac_var=yes"
  10528. else
  10529. echo "$as_me: failed program was:" >&5
  10530. sed 's/^/| /' conftest.$ac_ext >&5
  10531. eval "$as_ac_var=no"
  10532. fi
  10533. rm -f conftest.err conftest.$ac_objext \
  10534. conftest$ac_exeext conftest.$ac_ext
  10535. fi
  10536. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10537. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10538. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10539. cat >>confdefs.h <<_ACEOF
  10540. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10541. _ACEOF
  10542. fi
  10543. done
  10544. #autoscan suggested this....
  10545. #These are recommended by autoscan, but no code supports it currently
  10546. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen
  10547. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10548. for ac_func in vsprintf
  10549. do
  10550. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10551. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10552. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10553. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10554. echo $ECHO_N "(cached) $ECHO_C" >&6
  10555. else
  10556. cat >conftest.$ac_ext <<_ACEOF
  10557. /* confdefs.h. */
  10558. _ACEOF
  10559. cat confdefs.h >>conftest.$ac_ext
  10560. cat >>conftest.$ac_ext <<_ACEOF
  10561. /* end confdefs.h. */
  10562. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10563. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10564. #define $ac_func innocuous_$ac_func
  10565. /* System header to define __stub macros and hopefully few prototypes,
  10566. which can conflict with char $ac_func (); below.
  10567. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10568. <limits.h> exists even on freestanding compilers. */
  10569. #ifdef __STDC__
  10570. # include <limits.h>
  10571. #else
  10572. # include <assert.h>
  10573. #endif
  10574. #undef $ac_func
  10575. /* Override any gcc2 internal prototype to avoid an error. */
  10576. #ifdef __cplusplus
  10577. extern "C"
  10578. {
  10579. #endif
  10580. /* We use char because int might match the return type of a gcc2
  10581. builtin and then its argument prototype would still apply. */
  10582. char $ac_func ();
  10583. /* The GNU C library defines this for functions which it implements
  10584. to always fail with ENOSYS. Some functions are actually named
  10585. something starting with __ and the normal name is an alias. */
  10586. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10587. choke me
  10588. #else
  10589. char (*f) () = $ac_func;
  10590. #endif
  10591. #ifdef __cplusplus
  10592. }
  10593. #endif
  10594. int
  10595. main ()
  10596. {
  10597. return f != $ac_func;
  10598. ;
  10599. return 0;
  10600. }
  10601. _ACEOF
  10602. rm -f conftest.$ac_objext conftest$ac_exeext
  10603. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10604. (eval $ac_link) 2>conftest.er1
  10605. ac_status=$?
  10606. grep -v '^ *+' conftest.er1 >conftest.err
  10607. rm -f conftest.er1
  10608. cat conftest.err >&5
  10609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10610. (exit $ac_status); } &&
  10611. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10613. (eval $ac_try) 2>&5
  10614. ac_status=$?
  10615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10616. (exit $ac_status); }; } &&
  10617. { ac_try='test -s conftest$ac_exeext'
  10618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10619. (eval $ac_try) 2>&5
  10620. ac_status=$?
  10621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10622. (exit $ac_status); }; }; then
  10623. eval "$as_ac_var=yes"
  10624. else
  10625. echo "$as_me: failed program was:" >&5
  10626. sed 's/^/| /' conftest.$ac_ext >&5
  10627. eval "$as_ac_var=no"
  10628. fi
  10629. rm -f conftest.err conftest.$ac_objext \
  10630. conftest$ac_exeext conftest.$ac_ext
  10631. fi
  10632. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10633. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10634. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10635. cat >>confdefs.h <<_ACEOF
  10636. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10637. _ACEOF
  10638. fi
  10639. done
  10640. if test "$ac_cv_func_vsprintf" = "no"
  10641. then
  10642. cat << 'EOF' >&2
  10643. configure: error:
  10644. Your system does not have the sprintf/vsprintf libraries.
  10645. These are required to compile almost anything. Sorry.
  10646. EOF
  10647. exit 1
  10648. fi
  10649. for ac_func in uname
  10650. do
  10651. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10652. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10653. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10654. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10655. echo $ECHO_N "(cached) $ECHO_C" >&6
  10656. else
  10657. cat >conftest.$ac_ext <<_ACEOF
  10658. /* confdefs.h. */
  10659. _ACEOF
  10660. cat confdefs.h >>conftest.$ac_ext
  10661. cat >>conftest.$ac_ext <<_ACEOF
  10662. /* end confdefs.h. */
  10663. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10664. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10665. #define $ac_func innocuous_$ac_func
  10666. /* System header to define __stub macros and hopefully few prototypes,
  10667. which can conflict with char $ac_func (); below.
  10668. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10669. <limits.h> exists even on freestanding compilers. */
  10670. #ifdef __STDC__
  10671. # include <limits.h>
  10672. #else
  10673. # include <assert.h>
  10674. #endif
  10675. #undef $ac_func
  10676. /* Override any gcc2 internal prototype to avoid an error. */
  10677. #ifdef __cplusplus
  10678. extern "C"
  10679. {
  10680. #endif
  10681. /* We use char because int might match the return type of a gcc2
  10682. builtin and then its argument prototype would still apply. */
  10683. char $ac_func ();
  10684. /* The GNU C library defines this for functions which it implements
  10685. to always fail with ENOSYS. Some functions are actually named
  10686. something starting with __ and the normal name is an alias. */
  10687. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10688. choke me
  10689. #else
  10690. char (*f) () = $ac_func;
  10691. #endif
  10692. #ifdef __cplusplus
  10693. }
  10694. #endif
  10695. int
  10696. main ()
  10697. {
  10698. return f != $ac_func;
  10699. ;
  10700. return 0;
  10701. }
  10702. _ACEOF
  10703. rm -f conftest.$ac_objext conftest$ac_exeext
  10704. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10705. (eval $ac_link) 2>conftest.er1
  10706. ac_status=$?
  10707. grep -v '^ *+' conftest.er1 >conftest.err
  10708. rm -f conftest.er1
  10709. cat conftest.err >&5
  10710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10711. (exit $ac_status); } &&
  10712. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10714. (eval $ac_try) 2>&5
  10715. ac_status=$?
  10716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10717. (exit $ac_status); }; } &&
  10718. { ac_try='test -s conftest$ac_exeext'
  10719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10720. (eval $ac_try) 2>&5
  10721. ac_status=$?
  10722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10723. (exit $ac_status); }; }; then
  10724. eval "$as_ac_var=yes"
  10725. else
  10726. echo "$as_me: failed program was:" >&5
  10727. sed 's/^/| /' conftest.$ac_ext >&5
  10728. eval "$as_ac_var=no"
  10729. fi
  10730. rm -f conftest.err conftest.$ac_objext \
  10731. conftest$ac_exeext conftest.$ac_ext
  10732. fi
  10733. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10734. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10735. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10736. cat >>confdefs.h <<_ACEOF
  10737. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10738. _ACEOF
  10739. fi
  10740. done
  10741. if test "$ac_cv_func_uname" = "no"
  10742. then
  10743. cat << 'EOF' >&2
  10744. configure: error:
  10745. Your system does not have the uname() function.
  10746. This is required for the botpack.
  10747. EOF
  10748. exit 1
  10749. fi
  10750. # Make sure we have stdc headers, since we can't compile without them
  10751. if test "$ac_cv_header_stdc" = "no"
  10752. then
  10753. cat << 'EOF' >&2
  10754. configure: error:
  10755. Your system must support ANSI C Header files.
  10756. These are required for the language support. Sorry.
  10757. EOF
  10758. exit 1
  10759. fi
  10760. #checkpoint
  10761. cat >confcache <<\_ACEOF
  10762. # This file is a shell script that caches the results of configure
  10763. # tests run on this system so they can be shared between configure
  10764. # scripts and configure runs, see configure's option --config-cache.
  10765. # It is not useful on other systems. If it contains results you don't
  10766. # want to keep, you may remove or edit it.
  10767. #
  10768. # config.status only pays attention to the cache file if you give it
  10769. # the --recheck option to rerun configure.
  10770. #
  10771. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10772. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10773. # following values.
  10774. _ACEOF
  10775. # The following way of writing the cache mishandles newlines in values,
  10776. # but we know of no workaround that is simple, portable, and efficient.
  10777. # So, don't put newlines in cache variables' values.
  10778. # Ultrix sh set writes to stderr and can't be redirected directly,
  10779. # and sets the high bit in the cache file unless we assign to the vars.
  10780. {
  10781. (set) 2>&1 |
  10782. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10783. *ac_space=\ *)
  10784. # `set' does not quote correctly, so add quotes (double-quote
  10785. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10786. sed -n \
  10787. "s/'/'\\\\''/g;
  10788. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10789. ;;
  10790. *)
  10791. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10792. sed -n \
  10793. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10794. ;;
  10795. esac;
  10796. } |
  10797. sed '
  10798. t clear
  10799. : clear
  10800. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10801. t end
  10802. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10803. : end' >>confcache
  10804. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10805. if test -w $cache_file; then
  10806. test "x$cache_file" != "x/dev/null"
  10807. cat confcache >$cache_file
  10808. else
  10809. echo "not updating unwritable cache $cache_file"
  10810. fi
  10811. fi
  10812. rm -f confcache
  10813. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10814. if ! test -f $cfg; then
  10815. cat << EOF >&2
  10816. configure: error:
  10817. Your pack cfg is missing, please copy it to $srcdir/$cfg
  10818. Or specify the path to it with: --with-cfg=
  10819. EOF
  10820. exit 1
  10821. fi
  10822. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  10823. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10824. cat >>confdefs.h <<_ACEOF
  10825. #define EGG_VERSION $version_num
  10826. _ACEOF
  10827. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  10828. u_define="S_$define"
  10829. cat >>confdefs.h <<_ACEOF
  10830. #define $u_define 1
  10831. _ACEOF
  10832. CFG="$cfg"
  10833. done
  10834. case "$srcdir" in
  10835. [\\/]* | ?:[\\/]*)
  10836. MOD_UPDIR=""
  10837. ;;
  10838. *)
  10839. MOD_UPDIR="../"
  10840. ;;
  10841. esac
  10842. 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"
  10843. for mf in $files; do
  10844. # Strip MF so we end up with the name of the file.
  10845. # echo "MF: $mf"
  10846. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10847. dirpart=`(dirname "$mf") 2>/dev/null ||
  10848. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10849. X"$mf" : 'X\(//\)[^/]' \| \
  10850. X"$mf" : 'X\(//\)$' \| \
  10851. X"$mf" : 'X\(/\)' \| \
  10852. . : '\(.\)' 2>/dev/null ||
  10853. echo X"$mf" |
  10854. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10855. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10856. /^X\(\/\/\)$/{ s//\1/; q; }
  10857. /^X\(\/\).*/{ s//\1/; q; }
  10858. s/.*/./; q'`
  10859. # echo "dirpart: $dirpart mf: $mf"
  10860. # rm -rf "$dirpart/.deps/"
  10861. rm -f "$dirpart/.deps/includes"
  10862. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10863. for file in `sed -n -e '
  10864. /^OBJS = .*\\\\$/ {
  10865. s/^OBJS = //
  10866. :loop
  10867. s/\\\\$//
  10868. p
  10869. n
  10870. /\\\\$/ b loop
  10871. p
  10872. }
  10873. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10874. do
  10875. base=`basename $file .o`
  10876. test -f "$dirpart/$base.c" || continue
  10877. if ! test -f "$dirpart/.deps/$base.Po"; then
  10878. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10879. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10880. if test -f "$dirpart/$base.o"; then
  10881. rm -f "$dirpart/$base.o"
  10882. fi
  10883. fi
  10884. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10885. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10886. done
  10887. done
  10888. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10889. cat >confcache <<\_ACEOF
  10890. # This file is a shell script that caches the results of configure
  10891. # tests run on this system so they can be shared between configure
  10892. # scripts and configure runs, see configure's option --config-cache.
  10893. # It is not useful on other systems. If it contains results you don't
  10894. # want to keep, you may remove or edit it.
  10895. #
  10896. # config.status only pays attention to the cache file if you give it
  10897. # the --recheck option to rerun configure.
  10898. #
  10899. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10900. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10901. # following values.
  10902. _ACEOF
  10903. # The following way of writing the cache mishandles newlines in values,
  10904. # but we know of no workaround that is simple, portable, and efficient.
  10905. # So, don't put newlines in cache variables' values.
  10906. # Ultrix sh set writes to stderr and can't be redirected directly,
  10907. # and sets the high bit in the cache file unless we assign to the vars.
  10908. {
  10909. (set) 2>&1 |
  10910. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10911. *ac_space=\ *)
  10912. # `set' does not quote correctly, so add quotes (double-quote
  10913. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10914. sed -n \
  10915. "s/'/'\\\\''/g;
  10916. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10917. ;;
  10918. *)
  10919. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10920. sed -n \
  10921. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10922. ;;
  10923. esac;
  10924. } |
  10925. sed '
  10926. t clear
  10927. : clear
  10928. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10929. t end
  10930. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10931. : end' >>confcache
  10932. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10933. if test -w $cache_file; then
  10934. test "x$cache_file" != "x/dev/null"
  10935. cat confcache >$cache_file
  10936. else
  10937. echo "not updating unwritable cache $cache_file"
  10938. fi
  10939. fi
  10940. rm -f confcache
  10941. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10942. # Let make expand exec_prefix.
  10943. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10944. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10945. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10946. # trailing colons and then remove the whole line if VPATH becomes empty
  10947. # (actually we leave an empty line to preserve line numbers).
  10948. if test "x$srcdir" = x.; then
  10949. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10950. s/:*\$(srcdir):*/:/;
  10951. s/:*\${srcdir}:*/:/;
  10952. s/:*@srcdir@:*/:/;
  10953. s/^\([^=]*=[ ]*\):*/\1/;
  10954. s/:*$//;
  10955. s/^[^=]*=[ ]*$//;
  10956. }'
  10957. fi
  10958. DEFS=-DHAVE_CONFIG_H
  10959. ac_libobjs=
  10960. ac_ltlibobjs=
  10961. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10962. # 1. Remove the extension, and $U if already installed.
  10963. ac_i=`echo "$ac_i" |
  10964. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10965. # 2. Add them.
  10966. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10967. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10968. done
  10969. LIBOBJS=$ac_libobjs
  10970. LTLIBOBJS=$ac_ltlibobjs
  10971. : ${CONFIG_STATUS=./config.status}
  10972. ac_clean_files_save=$ac_clean_files
  10973. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10974. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10975. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10976. cat >$CONFIG_STATUS <<_ACEOF
  10977. #! $SHELL
  10978. # Generated by $as_me.
  10979. # Run this file to recreate the current configuration.
  10980. # Compiler output produced by configure, useful for debugging
  10981. # configure, is in config.log if it exists.
  10982. debug=false
  10983. ac_cs_recheck=false
  10984. ac_cs_silent=false
  10985. SHELL=\${CONFIG_SHELL-$SHELL}
  10986. _ACEOF
  10987. cat >>$CONFIG_STATUS <<\_ACEOF
  10988. ## --------------------- ##
  10989. ## M4sh Initialization. ##
  10990. ## --------------------- ##
  10991. # Be Bourne compatible
  10992. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10993. emulate sh
  10994. NULLCMD=:
  10995. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10996. # is contrary to our usage. Disable this feature.
  10997. alias -g '${1+"$@"}'='"$@"'
  10998. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10999. set -o posix
  11000. fi
  11001. DUALCASE=1; export DUALCASE # for MKS sh
  11002. # Support unset when possible.
  11003. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11004. as_unset=unset
  11005. else
  11006. as_unset=false
  11007. fi
  11008. # Work around bugs in pre-3.0 UWIN ksh.
  11009. $as_unset ENV MAIL MAILPATH
  11010. PS1='$ '
  11011. PS2='> '
  11012. PS4='+ '
  11013. # NLS nuisances.
  11014. for as_var in \
  11015. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11016. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11017. LC_TELEPHONE LC_TIME
  11018. do
  11019. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11020. eval $as_var=C; export $as_var
  11021. else
  11022. $as_unset $as_var
  11023. fi
  11024. done
  11025. # Required to use basename.
  11026. if expr a : '\(a\)' >/dev/null 2>&1; then
  11027. as_expr=expr
  11028. else
  11029. as_expr=false
  11030. fi
  11031. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11032. as_basename=basename
  11033. else
  11034. as_basename=false
  11035. fi
  11036. # Name of the executable.
  11037. as_me=`$as_basename "$0" ||
  11038. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11039. X"$0" : 'X\(//\)$' \| \
  11040. X"$0" : 'X\(/\)$' \| \
  11041. . : '\(.\)' 2>/dev/null ||
  11042. echo X/"$0" |
  11043. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11044. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11045. /^X\/\(\/\).*/{ s//\1/; q; }
  11046. s/.*/./; q'`
  11047. # PATH needs CR, and LINENO needs CR and PATH.
  11048. # Avoid depending upon Character Ranges.
  11049. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11050. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11051. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11052. as_cr_digits='0123456789'
  11053. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11054. # The user is always right.
  11055. if test "${PATH_SEPARATOR+set}" != set; then
  11056. echo "#! /bin/sh" >conf$$.sh
  11057. echo "exit 0" >>conf$$.sh
  11058. chmod +x conf$$.sh
  11059. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11060. PATH_SEPARATOR=';'
  11061. else
  11062. PATH_SEPARATOR=:
  11063. fi
  11064. rm -f conf$$.sh
  11065. fi
  11066. as_lineno_1=$LINENO
  11067. as_lineno_2=$LINENO
  11068. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11069. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11070. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11071. # Find who we are. Look in the path if we contain no path at all
  11072. # relative or not.
  11073. case $0 in
  11074. *[\\/]* ) as_myself=$0 ;;
  11075. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11076. for as_dir in $PATH
  11077. do
  11078. IFS=$as_save_IFS
  11079. test -z "$as_dir" && as_dir=.
  11080. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11081. done
  11082. ;;
  11083. esac
  11084. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11085. # in which case we are not to be found in the path.
  11086. if test "x$as_myself" = x; then
  11087. as_myself=$0
  11088. fi
  11089. if test ! -f "$as_myself"; then
  11090. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11091. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11092. { (exit 1); exit 1; }; }
  11093. fi
  11094. case $CONFIG_SHELL in
  11095. '')
  11096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11097. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11098. do
  11099. IFS=$as_save_IFS
  11100. test -z "$as_dir" && as_dir=.
  11101. for as_base in sh bash ksh sh5; do
  11102. case $as_dir in
  11103. /*)
  11104. if ("$as_dir/$as_base" -c '
  11105. as_lineno_1=$LINENO
  11106. as_lineno_2=$LINENO
  11107. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11108. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11109. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11110. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11111. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11112. CONFIG_SHELL=$as_dir/$as_base
  11113. export CONFIG_SHELL
  11114. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11115. fi;;
  11116. esac
  11117. done
  11118. done
  11119. ;;
  11120. esac
  11121. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11122. # uniformly replaced by the line number. The first 'sed' inserts a
  11123. # line-number line before each line; the second 'sed' does the real
  11124. # work. The second script uses 'N' to pair each line-number line
  11125. # with the numbered line, and appends trailing '-' during
  11126. # substitution so that $LINENO is not a special case at line end.
  11127. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11128. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11129. sed '=' <$as_myself |
  11130. sed '
  11131. N
  11132. s,$,-,
  11133. : loop
  11134. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11135. t loop
  11136. s,-$,,
  11137. s,^['$as_cr_digits']*\n,,
  11138. ' >$as_me.lineno &&
  11139. chmod +x $as_me.lineno ||
  11140. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11141. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11142. { (exit 1); exit 1; }; }
  11143. # Don't try to exec as it changes $[0], causing all sort of problems
  11144. # (the dirname of $[0] is not the place where we might find the
  11145. # original and so on. Autoconf is especially sensible to this).
  11146. . ./$as_me.lineno
  11147. # Exit status is that of the last command.
  11148. exit
  11149. }
  11150. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11151. *c*,-n*) ECHO_N= ECHO_C='
  11152. ' ECHO_T=' ' ;;
  11153. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11154. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11155. esac
  11156. if expr a : '\(a\)' >/dev/null 2>&1; then
  11157. as_expr=expr
  11158. else
  11159. as_expr=false
  11160. fi
  11161. rm -f conf$$ conf$$.exe conf$$.file
  11162. echo >conf$$.file
  11163. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11164. # We could just check for DJGPP; but this test a) works b) is more generic
  11165. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11166. if test -f conf$$.exe; then
  11167. # Don't use ln at all; we don't have any links
  11168. as_ln_s='cp -p'
  11169. else
  11170. as_ln_s='ln -s'
  11171. fi
  11172. elif ln conf$$.file conf$$ 2>/dev/null; then
  11173. as_ln_s=ln
  11174. else
  11175. as_ln_s='cp -p'
  11176. fi
  11177. rm -f conf$$ conf$$.exe conf$$.file
  11178. if mkdir -p . 2>/dev/null; then
  11179. as_mkdir_p=:
  11180. else
  11181. test -d ./-p && rmdir ./-p
  11182. as_mkdir_p=false
  11183. fi
  11184. as_executable_p="test -f"
  11185. # Sed expression to map a string onto a valid CPP name.
  11186. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11187. # Sed expression to map a string onto a valid variable name.
  11188. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11189. # IFS
  11190. # We need space, tab and new line, in precisely that order.
  11191. as_nl='
  11192. '
  11193. IFS=" $as_nl"
  11194. # CDPATH.
  11195. $as_unset CDPATH
  11196. exec 6>&1
  11197. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11198. # report actual input values of CONFIG_FILES etc. instead of their
  11199. # values after options handling. Logging --version etc. is OK.
  11200. exec 5>>config.log
  11201. {
  11202. echo
  11203. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11204. ## Running $as_me. ##
  11205. _ASBOX
  11206. } >&5
  11207. cat >&5 <<_CSEOF
  11208. This file was extended by $as_me, which was
  11209. generated by GNU Autoconf 2.59. Invocation command line was
  11210. CONFIG_FILES = $CONFIG_FILES
  11211. CONFIG_HEADERS = $CONFIG_HEADERS
  11212. CONFIG_LINKS = $CONFIG_LINKS
  11213. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11214. $ $0 $@
  11215. _CSEOF
  11216. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11217. echo >&5
  11218. _ACEOF
  11219. # Files that config.status was made for.
  11220. if test -n "$ac_config_files"; then
  11221. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11222. fi
  11223. if test -n "$ac_config_headers"; then
  11224. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11225. fi
  11226. if test -n "$ac_config_links"; then
  11227. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11228. fi
  11229. if test -n "$ac_config_commands"; then
  11230. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11231. fi
  11232. cat >>$CONFIG_STATUS <<\_ACEOF
  11233. ac_cs_usage="\
  11234. \`$as_me' instantiates files from templates according to the
  11235. current configuration.
  11236. Usage: $0 [OPTIONS] [FILE]...
  11237. -h, --help print this help, then exit
  11238. -V, --version print version number, then exit
  11239. -q, --quiet do not print progress messages
  11240. -d, --debug don't remove temporary files
  11241. --recheck update $as_me by reconfiguring in the same conditions
  11242. --file=FILE[:TEMPLATE]
  11243. instantiate the configuration file FILE
  11244. --header=FILE[:TEMPLATE]
  11245. instantiate the configuration header FILE
  11246. Configuration files:
  11247. $config_files
  11248. Configuration headers:
  11249. $config_headers
  11250. Report bugs to <bug-autoconf@gnu.org>."
  11251. _ACEOF
  11252. cat >>$CONFIG_STATUS <<_ACEOF
  11253. ac_cs_version="\\
  11254. config.status
  11255. configured by $0, generated by GNU Autoconf 2.59,
  11256. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11257. Copyright (C) 2003 Free Software Foundation, Inc.
  11258. This config.status script is free software; the Free Software Foundation
  11259. gives unlimited permission to copy, distribute and modify it."
  11260. srcdir=$srcdir
  11261. _ACEOF
  11262. cat >>$CONFIG_STATUS <<\_ACEOF
  11263. # If no file are specified by the user, then we need to provide default
  11264. # value. By we need to know if files were specified by the user.
  11265. ac_need_defaults=:
  11266. while test $# != 0
  11267. do
  11268. case $1 in
  11269. --*=*)
  11270. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11271. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11272. ac_shift=:
  11273. ;;
  11274. -*)
  11275. ac_option=$1
  11276. ac_optarg=$2
  11277. ac_shift=shift
  11278. ;;
  11279. *) # This is not an option, so the user has probably given explicit
  11280. # arguments.
  11281. ac_option=$1
  11282. ac_need_defaults=false;;
  11283. esac
  11284. case $ac_option in
  11285. # Handling of the options.
  11286. _ACEOF
  11287. cat >>$CONFIG_STATUS <<\_ACEOF
  11288. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11289. ac_cs_recheck=: ;;
  11290. --version | --vers* | -V )
  11291. echo "$ac_cs_version"; exit 0 ;;
  11292. --he | --h)
  11293. # Conflict between --help and --header
  11294. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11295. Try \`$0 --help' for more information." >&5
  11296. echo "$as_me: error: ambiguous option: $1
  11297. Try \`$0 --help' for more information." >&2;}
  11298. { (exit 1); exit 1; }; };;
  11299. --help | --hel | -h )
  11300. echo "$ac_cs_usage"; exit 0 ;;
  11301. --debug | --d* | -d )
  11302. debug=: ;;
  11303. --file | --fil | --fi | --f )
  11304. $ac_shift
  11305. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11306. ac_need_defaults=false;;
  11307. --header | --heade | --head | --hea )
  11308. $ac_shift
  11309. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11310. ac_need_defaults=false;;
  11311. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11312. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11313. ac_cs_silent=: ;;
  11314. # This is an error.
  11315. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11316. Try \`$0 --help' for more information." >&5
  11317. echo "$as_me: error: unrecognized option: $1
  11318. Try \`$0 --help' for more information." >&2;}
  11319. { (exit 1); exit 1; }; } ;;
  11320. *) ac_config_targets="$ac_config_targets $1" ;;
  11321. esac
  11322. shift
  11323. done
  11324. ac_configure_extra_args=
  11325. if $ac_cs_silent; then
  11326. exec 6>/dev/null
  11327. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11328. fi
  11329. _ACEOF
  11330. cat >>$CONFIG_STATUS <<_ACEOF
  11331. if \$ac_cs_recheck; then
  11332. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11333. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11334. fi
  11335. _ACEOF
  11336. cat >>$CONFIG_STATUS <<\_ACEOF
  11337. for ac_config_target in $ac_config_targets
  11338. do
  11339. case "$ac_config_target" in
  11340. # Handling of arguments.
  11341. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11342. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11343. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11344. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11345. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11346. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11347. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11348. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11349. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11350. { (exit 1); exit 1; }; };;
  11351. esac
  11352. done
  11353. # If the user did not use the arguments to specify the items to instantiate,
  11354. # then the envvar interface is used. Set only those that are not.
  11355. # We use the long form for the default assignment because of an extremely
  11356. # bizarre bug on SunOS 4.1.3.
  11357. if $ac_need_defaults; then
  11358. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11359. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11360. fi
  11361. # Have a temporary directory for convenience. Make it in the build tree
  11362. # simply because there is no reason to put it here, and in addition,
  11363. # creating and moving files from /tmp can sometimes cause problems.
  11364. # Create a temporary directory, and hook for its removal unless debugging.
  11365. $debug ||
  11366. {
  11367. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11368. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11369. }
  11370. # Create a (secure) tmp directory for tmp files.
  11371. {
  11372. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11373. test -n "$tmp" && test -d "$tmp"
  11374. } ||
  11375. {
  11376. tmp=./confstat$$-$RANDOM
  11377. (umask 077 && mkdir $tmp)
  11378. } ||
  11379. {
  11380. echo "$me: cannot create a temporary directory in ." >&2
  11381. { (exit 1); exit 1; }
  11382. }
  11383. _ACEOF
  11384. cat >>$CONFIG_STATUS <<_ACEOF
  11385. #
  11386. # CONFIG_FILES section.
  11387. #
  11388. # No need to generate the scripts if there are no CONFIG_FILES.
  11389. # This happens for instance when ./config.status config.h
  11390. if test -n "\$CONFIG_FILES"; then
  11391. # Protect against being on the right side of a sed subst in config.status.
  11392. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11393. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11394. s,@SHELL@,$SHELL,;t t
  11395. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11396. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11397. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11398. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11399. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11400. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11401. s,@exec_prefix@,$exec_prefix,;t t
  11402. s,@prefix@,$prefix,;t t
  11403. s,@program_transform_name@,$program_transform_name,;t t
  11404. s,@bindir@,$bindir,;t t
  11405. s,@sbindir@,$sbindir,;t t
  11406. s,@libexecdir@,$libexecdir,;t t
  11407. s,@datadir@,$datadir,;t t
  11408. s,@sysconfdir@,$sysconfdir,;t t
  11409. s,@sharedstatedir@,$sharedstatedir,;t t
  11410. s,@localstatedir@,$localstatedir,;t t
  11411. s,@libdir@,$libdir,;t t
  11412. s,@includedir@,$includedir,;t t
  11413. s,@oldincludedir@,$oldincludedir,;t t
  11414. s,@infodir@,$infodir,;t t
  11415. s,@mandir@,$mandir,;t t
  11416. s,@build_alias@,$build_alias,;t t
  11417. s,@host_alias@,$host_alias,;t t
  11418. s,@target_alias@,$target_alias,;t t
  11419. s,@DEFS@,$DEFS,;t t
  11420. s,@ECHO_C@,$ECHO_C,;t t
  11421. s,@ECHO_N@,$ECHO_N,;t t
  11422. s,@ECHO_T@,$ECHO_T,;t t
  11423. s,@LIBS@,$LIBS,;t t
  11424. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11425. s,@CC@,$CC,;t t
  11426. s,@CFLAGS@,$CFLAGS,;t t
  11427. s,@LDFLAGS@,$LDFLAGS,;t t
  11428. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11429. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11430. s,@EXEEXT@,$EXEEXT,;t t
  11431. s,@OBJEXT@,$OBJEXT,;t t
  11432. s,@CPP@,$CPP,;t t
  11433. s,@EGREP@,$EGREP,;t t
  11434. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11435. s,@CCDEBUG@,$CCDEBUG,;t t
  11436. s,@SET_MAKE@,$SET_MAKE,;t t
  11437. s,@HEAD_1@,$HEAD_1,;t t
  11438. s,@AWK@,$AWK,;t t
  11439. s,@BASENAME@,$BASENAME,;t t
  11440. s,@OBJCOPY@,$OBJCOPY,;t t
  11441. s,@STRIP@,$STRIP,;t t
  11442. s,@UNAME@,$UNAME,;t t
  11443. s,@DISTCC@,$DISTCC,;t t
  11444. s,@RESLIB@,$RESLIB,;t t
  11445. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11446. s,@ZLIB@,$ZLIB,;t t
  11447. s,@LIBOBJS@,$LIBOBJS,;t t
  11448. s,@VERSION@,$VERSION,;t t
  11449. s,@NUMVER@,$NUMVER,;t t
  11450. s,@PACKNAME@,$PACKNAME,;t t
  11451. s,@CFG@,$CFG,;t t
  11452. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11453. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11454. CEOF
  11455. _ACEOF
  11456. cat >>$CONFIG_STATUS <<\_ACEOF
  11457. # Split the substitutions into bite-sized pieces for seds with
  11458. # small command number limits, like on Digital OSF/1 and HP-UX.
  11459. ac_max_sed_lines=48
  11460. ac_sed_frag=1 # Number of current file.
  11461. ac_beg=1 # First line for current file.
  11462. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11463. ac_more_lines=:
  11464. ac_sed_cmds=
  11465. while $ac_more_lines; do
  11466. if test $ac_beg -gt 1; then
  11467. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11468. else
  11469. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11470. fi
  11471. if test ! -s $tmp/subs.frag; then
  11472. ac_more_lines=false
  11473. else
  11474. # The purpose of the label and of the branching condition is to
  11475. # speed up the sed processing (if there are no `@' at all, there
  11476. # is no need to browse any of the substitutions).
  11477. # These are the two extra sed commands mentioned above.
  11478. (echo ':t
  11479. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11480. if test -z "$ac_sed_cmds"; then
  11481. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11482. else
  11483. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11484. fi
  11485. ac_sed_frag=`expr $ac_sed_frag + 1`
  11486. ac_beg=$ac_end
  11487. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11488. fi
  11489. done
  11490. if test -z "$ac_sed_cmds"; then
  11491. ac_sed_cmds=cat
  11492. fi
  11493. fi # test -n "$CONFIG_FILES"
  11494. _ACEOF
  11495. cat >>$CONFIG_STATUS <<\_ACEOF
  11496. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11497. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11498. case $ac_file in
  11499. - | *:- | *:-:* ) # input from stdin
  11500. cat >$tmp/stdin
  11501. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11502. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11503. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11504. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11505. * ) ac_file_in=$ac_file.in ;;
  11506. esac
  11507. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11508. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11509. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11510. X"$ac_file" : 'X\(//\)[^/]' \| \
  11511. X"$ac_file" : 'X\(//\)$' \| \
  11512. X"$ac_file" : 'X\(/\)' \| \
  11513. . : '\(.\)' 2>/dev/null ||
  11514. echo X"$ac_file" |
  11515. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11516. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11517. /^X\(\/\/\)$/{ s//\1/; q; }
  11518. /^X\(\/\).*/{ s//\1/; q; }
  11519. s/.*/./; q'`
  11520. { if $as_mkdir_p; then
  11521. mkdir -p "$ac_dir"
  11522. else
  11523. as_dir="$ac_dir"
  11524. as_dirs=
  11525. while test ! -d "$as_dir"; do
  11526. as_dirs="$as_dir $as_dirs"
  11527. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11528. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11529. X"$as_dir" : 'X\(//\)[^/]' \| \
  11530. X"$as_dir" : 'X\(//\)$' \| \
  11531. X"$as_dir" : 'X\(/\)' \| \
  11532. . : '\(.\)' 2>/dev/null ||
  11533. echo X"$as_dir" |
  11534. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11535. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11536. /^X\(\/\/\)$/{ s//\1/; q; }
  11537. /^X\(\/\).*/{ s//\1/; q; }
  11538. s/.*/./; q'`
  11539. done
  11540. test ! -n "$as_dirs" || mkdir $as_dirs
  11541. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11542. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11543. { (exit 1); exit 1; }; }; }
  11544. ac_builddir=.
  11545. if test "$ac_dir" != .; then
  11546. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11547. # A "../" for each directory in $ac_dir_suffix.
  11548. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11549. else
  11550. ac_dir_suffix= ac_top_builddir=
  11551. fi
  11552. case $srcdir in
  11553. .) # No --srcdir option. We are building in place.
  11554. ac_srcdir=.
  11555. if test -z "$ac_top_builddir"; then
  11556. ac_top_srcdir=.
  11557. else
  11558. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11559. fi ;;
  11560. [\\/]* | ?:[\\/]* ) # Absolute path.
  11561. ac_srcdir=$srcdir$ac_dir_suffix;
  11562. ac_top_srcdir=$srcdir ;;
  11563. *) # Relative path.
  11564. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11565. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11566. esac
  11567. # Do not use `cd foo && pwd` to compute absolute paths, because
  11568. # the directories may not exist.
  11569. case `pwd` in
  11570. .) ac_abs_builddir="$ac_dir";;
  11571. *)
  11572. case "$ac_dir" in
  11573. .) ac_abs_builddir=`pwd`;;
  11574. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11575. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11576. esac;;
  11577. esac
  11578. case $ac_abs_builddir in
  11579. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11580. *)
  11581. case ${ac_top_builddir}. in
  11582. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11583. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11584. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11585. esac;;
  11586. esac
  11587. case $ac_abs_builddir in
  11588. .) ac_abs_srcdir=$ac_srcdir;;
  11589. *)
  11590. case $ac_srcdir in
  11591. .) ac_abs_srcdir=$ac_abs_builddir;;
  11592. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11593. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11594. esac;;
  11595. esac
  11596. case $ac_abs_builddir in
  11597. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11598. *)
  11599. case $ac_top_srcdir in
  11600. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11601. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11602. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11603. esac;;
  11604. esac
  11605. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11606. # use $as_me), people would be surprised to read:
  11607. # /* config.h. Generated by config.status. */
  11608. if test x"$ac_file" = x-; then
  11609. configure_input=
  11610. else
  11611. configure_input="$ac_file. "
  11612. fi
  11613. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11614. sed 's,.*/,,'` by configure."
  11615. # First look for the input files in the build tree, otherwise in the
  11616. # src tree.
  11617. ac_file_inputs=`IFS=:
  11618. for f in $ac_file_in; do
  11619. case $f in
  11620. -) echo $tmp/stdin ;;
  11621. [\\/$]*)
  11622. # Absolute (can't be DOS-style, as IFS=:)
  11623. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11624. echo "$as_me: error: cannot find input file: $f" >&2;}
  11625. { (exit 1); exit 1; }; }
  11626. echo "$f";;
  11627. *) # Relative
  11628. if test -f "$f"; then
  11629. # Build tree
  11630. echo "$f"
  11631. elif test -f "$srcdir/$f"; then
  11632. # Source tree
  11633. echo "$srcdir/$f"
  11634. else
  11635. # /dev/null tree
  11636. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11637. echo "$as_me: error: cannot find input file: $f" >&2;}
  11638. { (exit 1); exit 1; }; }
  11639. fi;;
  11640. esac
  11641. done` || { (exit 1); exit 1; }
  11642. if test x"$ac_file" != x-; then
  11643. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11644. echo "$as_me: creating $ac_file" >&6;}
  11645. rm -f "$ac_file"
  11646. fi
  11647. _ACEOF
  11648. cat >>$CONFIG_STATUS <<_ACEOF
  11649. sed "$ac_vpsub
  11650. $extrasub
  11651. _ACEOF
  11652. cat >>$CONFIG_STATUS <<\_ACEOF
  11653. :t
  11654. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11655. s,@configure_input@,$configure_input,;t t
  11656. s,@srcdir@,$ac_srcdir,;t t
  11657. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11658. s,@top_srcdir@,$ac_top_srcdir,;t t
  11659. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11660. s,@builddir@,$ac_builddir,;t t
  11661. s,@abs_builddir@,$ac_abs_builddir,;t t
  11662. s,@top_builddir@,$ac_top_builddir,;t t
  11663. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11664. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11665. rm -f $tmp/stdin
  11666. if test x"$ac_file" != x-; then
  11667. mv $tmp/out $ac_file
  11668. else
  11669. cat $tmp/out
  11670. rm -f $tmp/out
  11671. fi
  11672. done
  11673. _ACEOF
  11674. cat >>$CONFIG_STATUS <<\_ACEOF
  11675. #
  11676. # CONFIG_HEADER section.
  11677. #
  11678. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11679. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11680. #
  11681. # ac_d sets the value in "#define NAME VALUE" lines.
  11682. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11683. ac_dB='[ ].*$,\1#\2'
  11684. ac_dC=' '
  11685. ac_dD=',;t'
  11686. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11687. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11688. ac_uB='$,\1#\2define\3'
  11689. ac_uC=' '
  11690. ac_uD=',;t'
  11691. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11692. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11693. case $ac_file in
  11694. - | *:- | *:-:* ) # input from stdin
  11695. cat >$tmp/stdin
  11696. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11697. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11698. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11699. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11700. * ) ac_file_in=$ac_file.in ;;
  11701. esac
  11702. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11703. echo "$as_me: creating $ac_file" >&6;}
  11704. # First look for the input files in the build tree, otherwise in the
  11705. # src tree.
  11706. ac_file_inputs=`IFS=:
  11707. for f in $ac_file_in; do
  11708. case $f in
  11709. -) echo $tmp/stdin ;;
  11710. [\\/$]*)
  11711. # Absolute (can't be DOS-style, as IFS=:)
  11712. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11713. echo "$as_me: error: cannot find input file: $f" >&2;}
  11714. { (exit 1); exit 1; }; }
  11715. # Do quote $f, to prevent DOS paths from being IFS'd.
  11716. echo "$f";;
  11717. *) # Relative
  11718. if test -f "$f"; then
  11719. # Build tree
  11720. echo "$f"
  11721. elif test -f "$srcdir/$f"; then
  11722. # Source tree
  11723. echo "$srcdir/$f"
  11724. else
  11725. # /dev/null tree
  11726. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11727. echo "$as_me: error: cannot find input file: $f" >&2;}
  11728. { (exit 1); exit 1; }; }
  11729. fi;;
  11730. esac
  11731. done` || { (exit 1); exit 1; }
  11732. # Remove the trailing spaces.
  11733. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11734. _ACEOF
  11735. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11736. # `conftest.undefs', that substitutes the proper values into
  11737. # config.h.in to produce config.h. The first handles `#define'
  11738. # templates, and the second `#undef' templates.
  11739. # And first: Protect against being on the right side of a sed subst in
  11740. # config.status. Protect against being in an unquoted here document
  11741. # in config.status.
  11742. rm -f conftest.defines conftest.undefs
  11743. # Using a here document instead of a string reduces the quoting nightmare.
  11744. # Putting comments in sed scripts is not portable.
  11745. #
  11746. # `end' is used to avoid that the second main sed command (meant for
  11747. # 0-ary CPP macros) applies to n-ary macro definitions.
  11748. # See the Autoconf documentation for `clear'.
  11749. cat >confdef2sed.sed <<\_ACEOF
  11750. s/[\\&,]/\\&/g
  11751. s,[\\$`],\\&,g
  11752. t clear
  11753. : clear
  11754. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11755. t end
  11756. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11757. : end
  11758. _ACEOF
  11759. # If some macros were called several times there might be several times
  11760. # the same #defines, which is useless. Nevertheless, we may not want to
  11761. # sort them, since we want the *last* AC-DEFINE to be honored.
  11762. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11763. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11764. rm -f confdef2sed.sed
  11765. # This sed command replaces #undef with comments. This is necessary, for
  11766. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11767. # on some systems where configure will not decide to define it.
  11768. cat >>conftest.undefs <<\_ACEOF
  11769. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11770. _ACEOF
  11771. # Break up conftest.defines because some shells have a limit on the size
  11772. # of here documents, and old seds have small limits too (100 cmds).
  11773. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11774. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11775. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11776. echo ' :' >>$CONFIG_STATUS
  11777. rm -f conftest.tail
  11778. while grep . conftest.defines >/dev/null
  11779. do
  11780. # Write a limited-size here document to $tmp/defines.sed.
  11781. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11782. # Speed up: don't consider the non `#define' lines.
  11783. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11784. # Work around the forget-to-reset-the-flag bug.
  11785. echo 't clr' >>$CONFIG_STATUS
  11786. echo ': clr' >>$CONFIG_STATUS
  11787. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11788. echo 'CEOF
  11789. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11790. rm -f $tmp/in
  11791. mv $tmp/out $tmp/in
  11792. ' >>$CONFIG_STATUS
  11793. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11794. rm -f conftest.defines
  11795. mv conftest.tail conftest.defines
  11796. done
  11797. rm -f conftest.defines
  11798. echo ' fi # grep' >>$CONFIG_STATUS
  11799. echo >>$CONFIG_STATUS
  11800. # Break up conftest.undefs because some shells have a limit on the size
  11801. # of here documents, and old seds have small limits too (100 cmds).
  11802. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11803. rm -f conftest.tail
  11804. while grep . conftest.undefs >/dev/null
  11805. do
  11806. # Write a limited-size here document to $tmp/undefs.sed.
  11807. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11808. # Speed up: don't consider the non `#undef'
  11809. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11810. # Work around the forget-to-reset-the-flag bug.
  11811. echo 't clr' >>$CONFIG_STATUS
  11812. echo ': clr' >>$CONFIG_STATUS
  11813. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11814. echo 'CEOF
  11815. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11816. rm -f $tmp/in
  11817. mv $tmp/out $tmp/in
  11818. ' >>$CONFIG_STATUS
  11819. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11820. rm -f conftest.undefs
  11821. mv conftest.tail conftest.undefs
  11822. done
  11823. rm -f conftest.undefs
  11824. cat >>$CONFIG_STATUS <<\_ACEOF
  11825. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11826. # use $as_me), people would be surprised to read:
  11827. # /* config.h. Generated by config.status. */
  11828. if test x"$ac_file" = x-; then
  11829. echo "/* Generated by configure. */" >$tmp/config.h
  11830. else
  11831. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11832. fi
  11833. cat $tmp/in >>$tmp/config.h
  11834. rm -f $tmp/in
  11835. if test x"$ac_file" != x-; then
  11836. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11837. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11838. echo "$as_me: $ac_file is unchanged" >&6;}
  11839. else
  11840. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11841. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11842. X"$ac_file" : 'X\(//\)[^/]' \| \
  11843. X"$ac_file" : 'X\(//\)$' \| \
  11844. X"$ac_file" : 'X\(/\)' \| \
  11845. . : '\(.\)' 2>/dev/null ||
  11846. echo X"$ac_file" |
  11847. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11848. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11849. /^X\(\/\/\)$/{ s//\1/; q; }
  11850. /^X\(\/\).*/{ s//\1/; q; }
  11851. s/.*/./; q'`
  11852. { if $as_mkdir_p; then
  11853. mkdir -p "$ac_dir"
  11854. else
  11855. as_dir="$ac_dir"
  11856. as_dirs=
  11857. while test ! -d "$as_dir"; do
  11858. as_dirs="$as_dir $as_dirs"
  11859. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11860. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11861. X"$as_dir" : 'X\(//\)[^/]' \| \
  11862. X"$as_dir" : 'X\(//\)$' \| \
  11863. X"$as_dir" : 'X\(/\)' \| \
  11864. . : '\(.\)' 2>/dev/null ||
  11865. echo X"$as_dir" |
  11866. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11867. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11868. /^X\(\/\/\)$/{ s//\1/; q; }
  11869. /^X\(\/\).*/{ s//\1/; q; }
  11870. s/.*/./; q'`
  11871. done
  11872. test ! -n "$as_dirs" || mkdir $as_dirs
  11873. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11874. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11875. { (exit 1); exit 1; }; }; }
  11876. rm -f $ac_file
  11877. mv $tmp/config.h $ac_file
  11878. fi
  11879. else
  11880. cat $tmp/config.h
  11881. rm -f $tmp/config.h
  11882. fi
  11883. done
  11884. _ACEOF
  11885. cat >>$CONFIG_STATUS <<\_ACEOF
  11886. { (exit 0); exit 0; }
  11887. _ACEOF
  11888. chmod +x $CONFIG_STATUS
  11889. ac_clean_files=$ac_clean_files_save
  11890. # configure is writing to config.log, and then calls config.status.
  11891. # config.status does its own redirection, appending to config.log.
  11892. # Unfortunately, on DOS this fails, as config.log is still kept open
  11893. # by configure, so config.status won't be able to write to it; its
  11894. # output is simply discarded. So we exec the FD to /dev/null,
  11895. # effectively closing config.log, so it can be properly (re)opened and
  11896. # appended to by config.status. When coming back to configure, we
  11897. # need to make the FD available again.
  11898. if test "$no_create" != yes; then
  11899. ac_cs_success=:
  11900. ac_config_status_args=
  11901. test "$silent" = yes &&
  11902. ac_config_status_args="$ac_config_status_args --quiet"
  11903. exec 5>/dev/null
  11904. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11905. exec 5>>config.log
  11906. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11907. # would make configure fail if this is the last instruction.
  11908. $ac_cs_success || { (exit 1); exit 1; }
  11909. fi