configure 365 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.23 .
  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. if test "$AWK" = "gawk"
  3391. then
  3392. AWK=awk
  3393. fi
  3394. ;;
  3395. 1.0|1.1|1.2)
  3396. cat >>confdefs.h <<\_ACEOF
  3397. #define OSF1_HACKS 1
  3398. _ACEOF
  3399. ;;
  3400. 1.*)
  3401. cat >>confdefs.h <<\_ACEOF
  3402. #define OSF1_HACKS 1
  3403. _ACEOF
  3404. ;;
  3405. *)
  3406. ;;
  3407. esac
  3408. cat >>confdefs.h <<\_ACEOF
  3409. #define STOP_UAC 1
  3410. _ACEOF
  3411. cat >>confdefs.h <<\_ACEOF
  3412. #define BROKEN_SNPRINTF 1
  3413. _ACEOF
  3414. ;;
  3415. SunOS)
  3416. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3417. then
  3418. # SunOS 4
  3419. SUNOS=yes
  3420. fi
  3421. ;;
  3422. *BSD)
  3423. # FreeBSD/OpenBSD/NetBSD
  3424. ;;
  3425. *)
  3426. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3427. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3428. if test -r /mach
  3429. then
  3430. echo "$as_me:$LINENO: result: yes" >&5
  3431. echo "${ECHO_T}yes" >&6
  3432. cat >>confdefs.h <<\_ACEOF
  3433. #define BORGCUBES 1
  3434. _ACEOF
  3435. else
  3436. echo "$as_me:$LINENO: result: no" >&5
  3437. echo "${ECHO_T}no" >&6
  3438. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3439. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3440. if test -r /cmds
  3441. then
  3442. echo "$as_me:$LINENO: result: yes" >&5
  3443. echo "${ECHO_T}yes" >&6
  3444. else
  3445. echo "$as_me:$LINENO: result: no" >&5
  3446. echo "${ECHO_T}no" >&6
  3447. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3448. echo "${ECHO_T}Something unknown!" >&6
  3449. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3450. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3451. fi
  3452. fi
  3453. ;;
  3454. esac
  3455. dns_reslib_avail="true"
  3456. echo "$as_me:$LINENO: checking for res_init" >&5
  3457. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3458. if test "${ac_cv_func_res_init+set}" = set; then
  3459. echo $ECHO_N "(cached) $ECHO_C" >&6
  3460. else
  3461. cat >conftest.$ac_ext <<_ACEOF
  3462. /* confdefs.h. */
  3463. _ACEOF
  3464. cat confdefs.h >>conftest.$ac_ext
  3465. cat >>conftest.$ac_ext <<_ACEOF
  3466. /* end confdefs.h. */
  3467. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3468. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3469. #define res_init innocuous_res_init
  3470. /* System header to define __stub macros and hopefully few prototypes,
  3471. which can conflict with char res_init (); below.
  3472. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3473. <limits.h> exists even on freestanding compilers. */
  3474. #ifdef __STDC__
  3475. # include <limits.h>
  3476. #else
  3477. # include <assert.h>
  3478. #endif
  3479. #undef res_init
  3480. /* Override any gcc2 internal prototype to avoid an error. */
  3481. #ifdef __cplusplus
  3482. extern "C"
  3483. {
  3484. #endif
  3485. /* We use char because int might match the return type of a gcc2
  3486. builtin and then its argument prototype would still apply. */
  3487. char res_init ();
  3488. /* The GNU C library defines this for functions which it implements
  3489. to always fail with ENOSYS. Some functions are actually named
  3490. something starting with __ and the normal name is an alias. */
  3491. #if defined (__stub_res_init) || defined (__stub___res_init)
  3492. choke me
  3493. #else
  3494. char (*f) () = res_init;
  3495. #endif
  3496. #ifdef __cplusplus
  3497. }
  3498. #endif
  3499. int
  3500. main ()
  3501. {
  3502. return f != res_init;
  3503. ;
  3504. return 0;
  3505. }
  3506. _ACEOF
  3507. rm -f conftest.$ac_objext conftest$ac_exeext
  3508. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3509. (eval $ac_link) 2>conftest.er1
  3510. ac_status=$?
  3511. grep -v '^ *+' conftest.er1 >conftest.err
  3512. rm -f conftest.er1
  3513. cat conftest.err >&5
  3514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3515. (exit $ac_status); } &&
  3516. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3518. (eval $ac_try) 2>&5
  3519. ac_status=$?
  3520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3521. (exit $ac_status); }; } &&
  3522. { ac_try='test -s conftest$ac_exeext'
  3523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3524. (eval $ac_try) 2>&5
  3525. ac_status=$?
  3526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3527. (exit $ac_status); }; }; then
  3528. ac_cv_func_res_init=yes
  3529. else
  3530. echo "$as_me: failed program was:" >&5
  3531. sed 's/^/| /' conftest.$ac_ext >&5
  3532. ac_cv_func_res_init=no
  3533. fi
  3534. rm -f conftest.err conftest.$ac_objext \
  3535. conftest$ac_exeext conftest.$ac_ext
  3536. fi
  3537. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3538. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3539. if test $ac_cv_func_res_init = yes; then
  3540. :
  3541. else
  3542. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3543. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3544. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3545. echo $ECHO_N "(cached) $ECHO_C" >&6
  3546. else
  3547. ac_check_lib_save_LIBS=$LIBS
  3548. LIBS="-lresolv $LIBS"
  3549. cat >conftest.$ac_ext <<_ACEOF
  3550. /* confdefs.h. */
  3551. _ACEOF
  3552. cat confdefs.h >>conftest.$ac_ext
  3553. cat >>conftest.$ac_ext <<_ACEOF
  3554. /* end confdefs.h. */
  3555. /* Override any gcc2 internal prototype to avoid an error. */
  3556. #ifdef __cplusplus
  3557. extern "C"
  3558. #endif
  3559. /* We use char because int might match the return type of a gcc2
  3560. builtin and then its argument prototype would still apply. */
  3561. char res_init ();
  3562. int
  3563. main ()
  3564. {
  3565. res_init ();
  3566. ;
  3567. return 0;
  3568. }
  3569. _ACEOF
  3570. rm -f conftest.$ac_objext conftest$ac_exeext
  3571. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3572. (eval $ac_link) 2>conftest.er1
  3573. ac_status=$?
  3574. grep -v '^ *+' conftest.er1 >conftest.err
  3575. rm -f conftest.er1
  3576. cat conftest.err >&5
  3577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3578. (exit $ac_status); } &&
  3579. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3581. (eval $ac_try) 2>&5
  3582. ac_status=$?
  3583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3584. (exit $ac_status); }; } &&
  3585. { ac_try='test -s conftest$ac_exeext'
  3586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3587. (eval $ac_try) 2>&5
  3588. ac_status=$?
  3589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3590. (exit $ac_status); }; }; then
  3591. ac_cv_lib_resolv_res_init=yes
  3592. else
  3593. echo "$as_me: failed program was:" >&5
  3594. sed 's/^/| /' conftest.$ac_ext >&5
  3595. ac_cv_lib_resolv_res_init=no
  3596. fi
  3597. rm -f conftest.err conftest.$ac_objext \
  3598. conftest$ac_exeext conftest.$ac_ext
  3599. LIBS=$ac_check_lib_save_LIBS
  3600. fi
  3601. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3602. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3603. if test $ac_cv_lib_resolv_res_init = yes; then
  3604. RESLIB="-lresolv"
  3605. else
  3606. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3607. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3608. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3609. echo $ECHO_N "(cached) $ECHO_C" >&6
  3610. else
  3611. ac_check_lib_save_LIBS=$LIBS
  3612. LIBS="-lbind $LIBS"
  3613. cat >conftest.$ac_ext <<_ACEOF
  3614. /* confdefs.h. */
  3615. _ACEOF
  3616. cat confdefs.h >>conftest.$ac_ext
  3617. cat >>conftest.$ac_ext <<_ACEOF
  3618. /* end confdefs.h. */
  3619. /* Override any gcc2 internal prototype to avoid an error. */
  3620. #ifdef __cplusplus
  3621. extern "C"
  3622. #endif
  3623. /* We use char because int might match the return type of a gcc2
  3624. builtin and then its argument prototype would still apply. */
  3625. char res_init ();
  3626. int
  3627. main ()
  3628. {
  3629. res_init ();
  3630. ;
  3631. return 0;
  3632. }
  3633. _ACEOF
  3634. rm -f conftest.$ac_objext conftest$ac_exeext
  3635. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3636. (eval $ac_link) 2>conftest.er1
  3637. ac_status=$?
  3638. grep -v '^ *+' conftest.er1 >conftest.err
  3639. rm -f conftest.er1
  3640. cat conftest.err >&5
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); } &&
  3643. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3645. (eval $ac_try) 2>&5
  3646. ac_status=$?
  3647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3648. (exit $ac_status); }; } &&
  3649. { ac_try='test -s conftest$ac_exeext'
  3650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3651. (eval $ac_try) 2>&5
  3652. ac_status=$?
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); }; }; then
  3655. ac_cv_lib_bind_res_init=yes
  3656. else
  3657. echo "$as_me: failed program was:" >&5
  3658. sed 's/^/| /' conftest.$ac_ext >&5
  3659. ac_cv_lib_bind_res_init=no
  3660. fi
  3661. rm -f conftest.err conftest.$ac_objext \
  3662. conftest$ac_exeext conftest.$ac_ext
  3663. LIBS=$ac_check_lib_save_LIBS
  3664. fi
  3665. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3666. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3667. if test $ac_cv_lib_bind_res_init = yes; then
  3668. RESLIB="-lbind"
  3669. else
  3670. dns_reslib_avail="false";
  3671. fi
  3672. fi
  3673. fi
  3674. if test "${dns_reslib_avail}" = false; then
  3675. dns_reslib_avail="true"
  3676. echo "$as_me:$LINENO: checking for __res_init" >&5
  3677. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3678. if test "${ac_cv_func___res_init+set}" = set; then
  3679. echo $ECHO_N "(cached) $ECHO_C" >&6
  3680. else
  3681. cat >conftest.$ac_ext <<_ACEOF
  3682. /* confdefs.h. */
  3683. _ACEOF
  3684. cat confdefs.h >>conftest.$ac_ext
  3685. cat >>conftest.$ac_ext <<_ACEOF
  3686. /* end confdefs.h. */
  3687. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3688. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3689. #define __res_init innocuous___res_init
  3690. /* System header to define __stub macros and hopefully few prototypes,
  3691. which can conflict with char __res_init (); below.
  3692. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3693. <limits.h> exists even on freestanding compilers. */
  3694. #ifdef __STDC__
  3695. # include <limits.h>
  3696. #else
  3697. # include <assert.h>
  3698. #endif
  3699. #undef __res_init
  3700. /* Override any gcc2 internal prototype to avoid an error. */
  3701. #ifdef __cplusplus
  3702. extern "C"
  3703. {
  3704. #endif
  3705. /* We use char because int might match the return type of a gcc2
  3706. builtin and then its argument prototype would still apply. */
  3707. char __res_init ();
  3708. /* The GNU C library defines this for functions which it implements
  3709. to always fail with ENOSYS. Some functions are actually named
  3710. something starting with __ and the normal name is an alias. */
  3711. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3712. choke me
  3713. #else
  3714. char (*f) () = __res_init;
  3715. #endif
  3716. #ifdef __cplusplus
  3717. }
  3718. #endif
  3719. int
  3720. main ()
  3721. {
  3722. return f != __res_init;
  3723. ;
  3724. return 0;
  3725. }
  3726. _ACEOF
  3727. rm -f conftest.$ac_objext conftest$ac_exeext
  3728. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3729. (eval $ac_link) 2>conftest.er1
  3730. ac_status=$?
  3731. grep -v '^ *+' conftest.er1 >conftest.err
  3732. rm -f conftest.er1
  3733. cat conftest.err >&5
  3734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3735. (exit $ac_status); } &&
  3736. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3738. (eval $ac_try) 2>&5
  3739. ac_status=$?
  3740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3741. (exit $ac_status); }; } &&
  3742. { ac_try='test -s conftest$ac_exeext'
  3743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3744. (eval $ac_try) 2>&5
  3745. ac_status=$?
  3746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3747. (exit $ac_status); }; }; then
  3748. ac_cv_func___res_init=yes
  3749. else
  3750. echo "$as_me: failed program was:" >&5
  3751. sed 's/^/| /' conftest.$ac_ext >&5
  3752. ac_cv_func___res_init=no
  3753. fi
  3754. rm -f conftest.err conftest.$ac_objext \
  3755. conftest$ac_exeext conftest.$ac_ext
  3756. fi
  3757. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3758. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3759. if test $ac_cv_func___res_init = yes; then
  3760. :
  3761. else
  3762. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3763. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3764. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3765. echo $ECHO_N "(cached) $ECHO_C" >&6
  3766. else
  3767. ac_check_lib_save_LIBS=$LIBS
  3768. LIBS="-lresolv $LIBS"
  3769. cat >conftest.$ac_ext <<_ACEOF
  3770. /* confdefs.h. */
  3771. _ACEOF
  3772. cat confdefs.h >>conftest.$ac_ext
  3773. cat >>conftest.$ac_ext <<_ACEOF
  3774. /* end confdefs.h. */
  3775. /* Override any gcc2 internal prototype to avoid an error. */
  3776. #ifdef __cplusplus
  3777. extern "C"
  3778. #endif
  3779. /* We use char because int might match the return type of a gcc2
  3780. builtin and then its argument prototype would still apply. */
  3781. char __res_init ();
  3782. int
  3783. main ()
  3784. {
  3785. __res_init ();
  3786. ;
  3787. return 0;
  3788. }
  3789. _ACEOF
  3790. rm -f conftest.$ac_objext conftest$ac_exeext
  3791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3792. (eval $ac_link) 2>conftest.er1
  3793. ac_status=$?
  3794. grep -v '^ *+' conftest.er1 >conftest.err
  3795. rm -f conftest.er1
  3796. cat conftest.err >&5
  3797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3798. (exit $ac_status); } &&
  3799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3801. (eval $ac_try) 2>&5
  3802. ac_status=$?
  3803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3804. (exit $ac_status); }; } &&
  3805. { ac_try='test -s conftest$ac_exeext'
  3806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3807. (eval $ac_try) 2>&5
  3808. ac_status=$?
  3809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3810. (exit $ac_status); }; }; then
  3811. ac_cv_lib_resolv___res_init=yes
  3812. else
  3813. echo "$as_me: failed program was:" >&5
  3814. sed 's/^/| /' conftest.$ac_ext >&5
  3815. ac_cv_lib_resolv___res_init=no
  3816. fi
  3817. rm -f conftest.err conftest.$ac_objext \
  3818. conftest$ac_exeext conftest.$ac_ext
  3819. LIBS=$ac_check_lib_save_LIBS
  3820. fi
  3821. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3822. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3823. if test $ac_cv_lib_resolv___res_init = yes; then
  3824. RESLIB="-lresolv"
  3825. else
  3826. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3827. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3828. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3829. echo $ECHO_N "(cached) $ECHO_C" >&6
  3830. else
  3831. ac_check_lib_save_LIBS=$LIBS
  3832. LIBS="-lbind $LIBS"
  3833. cat >conftest.$ac_ext <<_ACEOF
  3834. /* confdefs.h. */
  3835. _ACEOF
  3836. cat confdefs.h >>conftest.$ac_ext
  3837. cat >>conftest.$ac_ext <<_ACEOF
  3838. /* end confdefs.h. */
  3839. /* Override any gcc2 internal prototype to avoid an error. */
  3840. #ifdef __cplusplus
  3841. extern "C"
  3842. #endif
  3843. /* We use char because int might match the return type of a gcc2
  3844. builtin and then its argument prototype would still apply. */
  3845. char __res_init ();
  3846. int
  3847. main ()
  3848. {
  3849. __res_init ();
  3850. ;
  3851. return 0;
  3852. }
  3853. _ACEOF
  3854. rm -f conftest.$ac_objext conftest$ac_exeext
  3855. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3856. (eval $ac_link) 2>conftest.er1
  3857. ac_status=$?
  3858. grep -v '^ *+' conftest.er1 >conftest.err
  3859. rm -f conftest.er1
  3860. cat conftest.err >&5
  3861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862. (exit $ac_status); } &&
  3863. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3865. (eval $ac_try) 2>&5
  3866. ac_status=$?
  3867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3868. (exit $ac_status); }; } &&
  3869. { ac_try='test -s conftest$ac_exeext'
  3870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3871. (eval $ac_try) 2>&5
  3872. ac_status=$?
  3873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3874. (exit $ac_status); }; }; then
  3875. ac_cv_lib_bind___res_init=yes
  3876. else
  3877. echo "$as_me: failed program was:" >&5
  3878. sed 's/^/| /' conftest.$ac_ext >&5
  3879. ac_cv_lib_bind___res_init=no
  3880. fi
  3881. rm -f conftest.err conftest.$ac_objext \
  3882. conftest$ac_exeext conftest.$ac_ext
  3883. LIBS=$ac_check_lib_save_LIBS
  3884. fi
  3885. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3886. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3887. if test $ac_cv_lib_bind___res_init = yes; then
  3888. RESLIB="-lbind"
  3889. else
  3890. dns_reslib_avail="false";
  3891. fi
  3892. fi
  3893. fi
  3894. fi
  3895. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3896. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3897. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3898. echo $ECHO_N "(cached) $ECHO_C" >&6
  3899. else
  3900. cat >conftest.$ac_ext <<_ACEOF
  3901. /* confdefs.h. */
  3902. _ACEOF
  3903. cat confdefs.h >>conftest.$ac_ext
  3904. cat >>conftest.$ac_ext <<_ACEOF
  3905. /* end confdefs.h. */
  3906. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3907. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3908. #define res_mkquery innocuous_res_mkquery
  3909. /* System header to define __stub macros and hopefully few prototypes,
  3910. which can conflict with char res_mkquery (); below.
  3911. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3912. <limits.h> exists even on freestanding compilers. */
  3913. #ifdef __STDC__
  3914. # include <limits.h>
  3915. #else
  3916. # include <assert.h>
  3917. #endif
  3918. #undef res_mkquery
  3919. /* Override any gcc2 internal prototype to avoid an error. */
  3920. #ifdef __cplusplus
  3921. extern "C"
  3922. {
  3923. #endif
  3924. /* We use char because int might match the return type of a gcc2
  3925. builtin and then its argument prototype would still apply. */
  3926. char res_mkquery ();
  3927. /* The GNU C library defines this for functions which it implements
  3928. to always fail with ENOSYS. Some functions are actually named
  3929. something starting with __ and the normal name is an alias. */
  3930. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3931. choke me
  3932. #else
  3933. char (*f) () = res_mkquery;
  3934. #endif
  3935. #ifdef __cplusplus
  3936. }
  3937. #endif
  3938. int
  3939. main ()
  3940. {
  3941. return f != res_mkquery;
  3942. ;
  3943. return 0;
  3944. }
  3945. _ACEOF
  3946. rm -f conftest.$ac_objext conftest$ac_exeext
  3947. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3948. (eval $ac_link) 2>conftest.er1
  3949. ac_status=$?
  3950. grep -v '^ *+' conftest.er1 >conftest.err
  3951. rm -f conftest.er1
  3952. cat conftest.err >&5
  3953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3954. (exit $ac_status); } &&
  3955. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3957. (eval $ac_try) 2>&5
  3958. ac_status=$?
  3959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3960. (exit $ac_status); }; } &&
  3961. { ac_try='test -s conftest$ac_exeext'
  3962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3963. (eval $ac_try) 2>&5
  3964. ac_status=$?
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); }; }; then
  3967. ac_cv_func_res_mkquery=yes
  3968. else
  3969. echo "$as_me: failed program was:" >&5
  3970. sed 's/^/| /' conftest.$ac_ext >&5
  3971. ac_cv_func_res_mkquery=no
  3972. fi
  3973. rm -f conftest.err conftest.$ac_objext \
  3974. conftest$ac_exeext conftest.$ac_ext
  3975. fi
  3976. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3977. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3978. if test $ac_cv_func_res_mkquery = yes; then
  3979. :
  3980. else
  3981. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3982. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3983. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3984. echo $ECHO_N "(cached) $ECHO_C" >&6
  3985. else
  3986. ac_check_lib_save_LIBS=$LIBS
  3987. LIBS="-lresolv $LIBS"
  3988. cat >conftest.$ac_ext <<_ACEOF
  3989. /* confdefs.h. */
  3990. _ACEOF
  3991. cat confdefs.h >>conftest.$ac_ext
  3992. cat >>conftest.$ac_ext <<_ACEOF
  3993. /* end confdefs.h. */
  3994. /* Override any gcc2 internal prototype to avoid an error. */
  3995. #ifdef __cplusplus
  3996. extern "C"
  3997. #endif
  3998. /* We use char because int might match the return type of a gcc2
  3999. builtin and then its argument prototype would still apply. */
  4000. char res_mkquery ();
  4001. int
  4002. main ()
  4003. {
  4004. res_mkquery ();
  4005. ;
  4006. return 0;
  4007. }
  4008. _ACEOF
  4009. rm -f conftest.$ac_objext conftest$ac_exeext
  4010. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4011. (eval $ac_link) 2>conftest.er1
  4012. ac_status=$?
  4013. grep -v '^ *+' conftest.er1 >conftest.err
  4014. rm -f conftest.er1
  4015. cat conftest.err >&5
  4016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4017. (exit $ac_status); } &&
  4018. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4020. (eval $ac_try) 2>&5
  4021. ac_status=$?
  4022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4023. (exit $ac_status); }; } &&
  4024. { ac_try='test -s conftest$ac_exeext'
  4025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4026. (eval $ac_try) 2>&5
  4027. ac_status=$?
  4028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4029. (exit $ac_status); }; }; then
  4030. ac_cv_lib_resolv_res_mkquery=yes
  4031. else
  4032. echo "$as_me: failed program was:" >&5
  4033. sed 's/^/| /' conftest.$ac_ext >&5
  4034. ac_cv_lib_resolv_res_mkquery=no
  4035. fi
  4036. rm -f conftest.err conftest.$ac_objext \
  4037. conftest$ac_exeext conftest.$ac_ext
  4038. LIBS=$ac_check_lib_save_LIBS
  4039. fi
  4040. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4041. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4042. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4043. if test "x${RESLIB}" != "x-lresolv"; then
  4044. RESLIB="${RESLIB} -lresolv"
  4045. fi
  4046. else
  4047. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4048. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4049. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4050. echo $ECHO_N "(cached) $ECHO_C" >&6
  4051. else
  4052. ac_check_lib_save_LIBS=$LIBS
  4053. LIBS="-lbind $LIBS"
  4054. cat >conftest.$ac_ext <<_ACEOF
  4055. /* confdefs.h. */
  4056. _ACEOF
  4057. cat confdefs.h >>conftest.$ac_ext
  4058. cat >>conftest.$ac_ext <<_ACEOF
  4059. /* end confdefs.h. */
  4060. /* Override any gcc2 internal prototype to avoid an error. */
  4061. #ifdef __cplusplus
  4062. extern "C"
  4063. #endif
  4064. /* We use char because int might match the return type of a gcc2
  4065. builtin and then its argument prototype would still apply. */
  4066. char res_mkquery ();
  4067. int
  4068. main ()
  4069. {
  4070. res_mkquery ();
  4071. ;
  4072. return 0;
  4073. }
  4074. _ACEOF
  4075. rm -f conftest.$ac_objext conftest$ac_exeext
  4076. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4077. (eval $ac_link) 2>conftest.er1
  4078. ac_status=$?
  4079. grep -v '^ *+' conftest.er1 >conftest.err
  4080. rm -f conftest.er1
  4081. cat conftest.err >&5
  4082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); } &&
  4084. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4086. (eval $ac_try) 2>&5
  4087. ac_status=$?
  4088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4089. (exit $ac_status); }; } &&
  4090. { ac_try='test -s conftest$ac_exeext'
  4091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4092. (eval $ac_try) 2>&5
  4093. ac_status=$?
  4094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4095. (exit $ac_status); }; }; then
  4096. ac_cv_lib_bind_res_mkquery=yes
  4097. else
  4098. echo "$as_me: failed program was:" >&5
  4099. sed 's/^/| /' conftest.$ac_ext >&5
  4100. ac_cv_lib_bind_res_mkquery=no
  4101. fi
  4102. rm -f conftest.err conftest.$ac_objext \
  4103. conftest$ac_exeext conftest.$ac_ext
  4104. LIBS=$ac_check_lib_save_LIBS
  4105. fi
  4106. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4107. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4108. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4109. if test "x${RESLIB}" != "x-lbind"; then
  4110. RESLIB="${RESLIB} -lbind"
  4111. fi
  4112. else
  4113. dns_reslib_avail="false";
  4114. fi
  4115. fi
  4116. fi
  4117. if test "${dns_reslib_avail}" = false; then
  4118. dns_reslib_avail="true"
  4119. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4120. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4121. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4122. echo $ECHO_N "(cached) $ECHO_C" >&6
  4123. else
  4124. cat >conftest.$ac_ext <<_ACEOF
  4125. /* confdefs.h. */
  4126. _ACEOF
  4127. cat confdefs.h >>conftest.$ac_ext
  4128. cat >>conftest.$ac_ext <<_ACEOF
  4129. /* end confdefs.h. */
  4130. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4131. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4132. #define __res_mkquery innocuous___res_mkquery
  4133. /* System header to define __stub macros and hopefully few prototypes,
  4134. which can conflict with char __res_mkquery (); below.
  4135. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4136. <limits.h> exists even on freestanding compilers. */
  4137. #ifdef __STDC__
  4138. # include <limits.h>
  4139. #else
  4140. # include <assert.h>
  4141. #endif
  4142. #undef __res_mkquery
  4143. /* Override any gcc2 internal prototype to avoid an error. */
  4144. #ifdef __cplusplus
  4145. extern "C"
  4146. {
  4147. #endif
  4148. /* We use char because int might match the return type of a gcc2
  4149. builtin and then its argument prototype would still apply. */
  4150. char __res_mkquery ();
  4151. /* The GNU C library defines this for functions which it implements
  4152. to always fail with ENOSYS. Some functions are actually named
  4153. something starting with __ and the normal name is an alias. */
  4154. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4155. choke me
  4156. #else
  4157. char (*f) () = __res_mkquery;
  4158. #endif
  4159. #ifdef __cplusplus
  4160. }
  4161. #endif
  4162. int
  4163. main ()
  4164. {
  4165. return f != __res_mkquery;
  4166. ;
  4167. return 0;
  4168. }
  4169. _ACEOF
  4170. rm -f conftest.$ac_objext conftest$ac_exeext
  4171. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4172. (eval $ac_link) 2>conftest.er1
  4173. ac_status=$?
  4174. grep -v '^ *+' conftest.er1 >conftest.err
  4175. rm -f conftest.er1
  4176. cat conftest.err >&5
  4177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4178. (exit $ac_status); } &&
  4179. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4181. (eval $ac_try) 2>&5
  4182. ac_status=$?
  4183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4184. (exit $ac_status); }; } &&
  4185. { ac_try='test -s conftest$ac_exeext'
  4186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4187. (eval $ac_try) 2>&5
  4188. ac_status=$?
  4189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4190. (exit $ac_status); }; }; then
  4191. ac_cv_func___res_mkquery=yes
  4192. else
  4193. echo "$as_me: failed program was:" >&5
  4194. sed 's/^/| /' conftest.$ac_ext >&5
  4195. ac_cv_func___res_mkquery=no
  4196. fi
  4197. rm -f conftest.err conftest.$ac_objext \
  4198. conftest$ac_exeext conftest.$ac_ext
  4199. fi
  4200. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4201. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4202. if test $ac_cv_func___res_mkquery = yes; then
  4203. :
  4204. else
  4205. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4206. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4207. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4208. echo $ECHO_N "(cached) $ECHO_C" >&6
  4209. else
  4210. ac_check_lib_save_LIBS=$LIBS
  4211. LIBS="-lresolv $LIBS"
  4212. cat >conftest.$ac_ext <<_ACEOF
  4213. /* confdefs.h. */
  4214. _ACEOF
  4215. cat confdefs.h >>conftest.$ac_ext
  4216. cat >>conftest.$ac_ext <<_ACEOF
  4217. /* end confdefs.h. */
  4218. /* Override any gcc2 internal prototype to avoid an error. */
  4219. #ifdef __cplusplus
  4220. extern "C"
  4221. #endif
  4222. /* We use char because int might match the return type of a gcc2
  4223. builtin and then its argument prototype would still apply. */
  4224. char __res_mkquery ();
  4225. int
  4226. main ()
  4227. {
  4228. __res_mkquery ();
  4229. ;
  4230. return 0;
  4231. }
  4232. _ACEOF
  4233. rm -f conftest.$ac_objext conftest$ac_exeext
  4234. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4235. (eval $ac_link) 2>conftest.er1
  4236. ac_status=$?
  4237. grep -v '^ *+' conftest.er1 >conftest.err
  4238. rm -f conftest.er1
  4239. cat conftest.err >&5
  4240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4241. (exit $ac_status); } &&
  4242. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4244. (eval $ac_try) 2>&5
  4245. ac_status=$?
  4246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4247. (exit $ac_status); }; } &&
  4248. { ac_try='test -s conftest$ac_exeext'
  4249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4250. (eval $ac_try) 2>&5
  4251. ac_status=$?
  4252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4253. (exit $ac_status); }; }; then
  4254. ac_cv_lib_resolv___res_mkquery=yes
  4255. else
  4256. echo "$as_me: failed program was:" >&5
  4257. sed 's/^/| /' conftest.$ac_ext >&5
  4258. ac_cv_lib_resolv___res_mkquery=no
  4259. fi
  4260. rm -f conftest.err conftest.$ac_objext \
  4261. conftest$ac_exeext conftest.$ac_ext
  4262. LIBS=$ac_check_lib_save_LIBS
  4263. fi
  4264. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4265. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4266. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4267. if test "x${RESLIB}" != "x-lresolv"; then
  4268. RESLIB="${RESLIB} -lresolv"
  4269. fi
  4270. else
  4271. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4272. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4273. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4274. echo $ECHO_N "(cached) $ECHO_C" >&6
  4275. else
  4276. ac_check_lib_save_LIBS=$LIBS
  4277. LIBS="-lbind $LIBS"
  4278. cat >conftest.$ac_ext <<_ACEOF
  4279. /* confdefs.h. */
  4280. _ACEOF
  4281. cat confdefs.h >>conftest.$ac_ext
  4282. cat >>conftest.$ac_ext <<_ACEOF
  4283. /* end confdefs.h. */
  4284. /* Override any gcc2 internal prototype to avoid an error. */
  4285. #ifdef __cplusplus
  4286. extern "C"
  4287. #endif
  4288. /* We use char because int might match the return type of a gcc2
  4289. builtin and then its argument prototype would still apply. */
  4290. char __res_mkquery ();
  4291. int
  4292. main ()
  4293. {
  4294. __res_mkquery ();
  4295. ;
  4296. return 0;
  4297. }
  4298. _ACEOF
  4299. rm -f conftest.$ac_objext conftest$ac_exeext
  4300. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4301. (eval $ac_link) 2>conftest.er1
  4302. ac_status=$?
  4303. grep -v '^ *+' conftest.er1 >conftest.err
  4304. rm -f conftest.er1
  4305. cat conftest.err >&5
  4306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4307. (exit $ac_status); } &&
  4308. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4310. (eval $ac_try) 2>&5
  4311. ac_status=$?
  4312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4313. (exit $ac_status); }; } &&
  4314. { ac_try='test -s conftest$ac_exeext'
  4315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4316. (eval $ac_try) 2>&5
  4317. ac_status=$?
  4318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4319. (exit $ac_status); }; }; then
  4320. ac_cv_lib_bind___res_mkquery=yes
  4321. else
  4322. echo "$as_me: failed program was:" >&5
  4323. sed 's/^/| /' conftest.$ac_ext >&5
  4324. ac_cv_lib_bind___res_mkquery=no
  4325. fi
  4326. rm -f conftest.err conftest.$ac_objext \
  4327. conftest$ac_exeext conftest.$ac_ext
  4328. LIBS=$ac_check_lib_save_LIBS
  4329. fi
  4330. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4331. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4332. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4333. if test "x${RESLIB}" != "x-lbind"; then
  4334. RESLIB="${RESLIB} -lbind"
  4335. fi
  4336. else
  4337. dns_reslib_avail="false";
  4338. fi
  4339. fi
  4340. fi
  4341. fi
  4342. if test "${dns_reslib_avail}" = false; then
  4343. if test "$ac_cv_cygwin" = "yes"; then
  4344. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4345. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4346. if test -r /usr/local/bind/lib/libbind.a; then
  4347. echo "$as_me:$LINENO: result: yes" >&5
  4348. echo "${ECHO_T}yes" >&6
  4349. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4350. RESINCLUDE="-I/usr/local/bind/include"
  4351. dns_reslib_avail="true"
  4352. else
  4353. echo "$as_me:$LINENO: result: no" >&5
  4354. echo "${ECHO_T}no" >&6
  4355. fi
  4356. fi
  4357. fi
  4358. if test "${dns_reslib_avail}" = false; then
  4359. cat >&2 <<EOF
  4360. configure: warning:
  4361. Your system provides no functional resolver library.
  4362. One is required for buld.
  4363. EOF
  4364. exit 1
  4365. fi
  4366. #checkpoint
  4367. cat >confcache <<\_ACEOF
  4368. # This file is a shell script that caches the results of configure
  4369. # tests run on this system so they can be shared between configure
  4370. # scripts and configure runs, see configure's option --config-cache.
  4371. # It is not useful on other systems. If it contains results you don't
  4372. # want to keep, you may remove or edit it.
  4373. #
  4374. # config.status only pays attention to the cache file if you give it
  4375. # the --recheck option to rerun configure.
  4376. #
  4377. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4378. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4379. # following values.
  4380. _ACEOF
  4381. # The following way of writing the cache mishandles newlines in values,
  4382. # but we know of no workaround that is simple, portable, and efficient.
  4383. # So, don't put newlines in cache variables' values.
  4384. # Ultrix sh set writes to stderr and can't be redirected directly,
  4385. # and sets the high bit in the cache file unless we assign to the vars.
  4386. {
  4387. (set) 2>&1 |
  4388. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4389. *ac_space=\ *)
  4390. # `set' does not quote correctly, so add quotes (double-quote
  4391. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4392. sed -n \
  4393. "s/'/'\\\\''/g;
  4394. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4395. ;;
  4396. *)
  4397. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4398. sed -n \
  4399. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4400. ;;
  4401. esac;
  4402. } |
  4403. sed '
  4404. t clear
  4405. : clear
  4406. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4407. t end
  4408. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4409. : end' >>confcache
  4410. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4411. if test -w $cache_file; then
  4412. test "x$cache_file" != "x/dev/null"
  4413. cat confcache >$cache_file
  4414. else
  4415. echo "not updating unwritable cache $cache_file"
  4416. fi
  4417. fi
  4418. rm -f confcache
  4419. # Checks for system libraries
  4420. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4421. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4422. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4423. echo $ECHO_N "(cached) $ECHO_C" >&6
  4424. else
  4425. ac_check_lib_save_LIBS=$LIBS
  4426. LIBS="-lsocket $LIBS"
  4427. cat >conftest.$ac_ext <<_ACEOF
  4428. /* confdefs.h. */
  4429. _ACEOF
  4430. cat confdefs.h >>conftest.$ac_ext
  4431. cat >>conftest.$ac_ext <<_ACEOF
  4432. /* end confdefs.h. */
  4433. /* Override any gcc2 internal prototype to avoid an error. */
  4434. #ifdef __cplusplus
  4435. extern "C"
  4436. #endif
  4437. /* We use char because int might match the return type of a gcc2
  4438. builtin and then its argument prototype would still apply. */
  4439. char socket ();
  4440. int
  4441. main ()
  4442. {
  4443. socket ();
  4444. ;
  4445. return 0;
  4446. }
  4447. _ACEOF
  4448. rm -f conftest.$ac_objext conftest$ac_exeext
  4449. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4450. (eval $ac_link) 2>conftest.er1
  4451. ac_status=$?
  4452. grep -v '^ *+' conftest.er1 >conftest.err
  4453. rm -f conftest.er1
  4454. cat conftest.err >&5
  4455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4456. (exit $ac_status); } &&
  4457. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4459. (eval $ac_try) 2>&5
  4460. ac_status=$?
  4461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4462. (exit $ac_status); }; } &&
  4463. { ac_try='test -s conftest$ac_exeext'
  4464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4465. (eval $ac_try) 2>&5
  4466. ac_status=$?
  4467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4468. (exit $ac_status); }; }; then
  4469. ac_cv_lib_socket_socket=yes
  4470. else
  4471. echo "$as_me: failed program was:" >&5
  4472. sed 's/^/| /' conftest.$ac_ext >&5
  4473. ac_cv_lib_socket_socket=no
  4474. fi
  4475. rm -f conftest.err conftest.$ac_objext \
  4476. conftest$ac_exeext conftest.$ac_ext
  4477. LIBS=$ac_check_lib_save_LIBS
  4478. fi
  4479. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4480. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4481. if test $ac_cv_lib_socket_socket = yes; then
  4482. cat >>confdefs.h <<_ACEOF
  4483. #define HAVE_LIBSOCKET 1
  4484. _ACEOF
  4485. LIBS="-lsocket $LIBS"
  4486. fi
  4487. # AC_CHECK_LIB(nsl, connect)
  4488. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4489. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4490. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4491. echo $ECHO_N "(cached) $ECHO_C" >&6
  4492. else
  4493. ac_check_lib_save_LIBS=$LIBS
  4494. LIBS="-ldns $LIBS"
  4495. cat >conftest.$ac_ext <<_ACEOF
  4496. /* confdefs.h. */
  4497. _ACEOF
  4498. cat confdefs.h >>conftest.$ac_ext
  4499. cat >>conftest.$ac_ext <<_ACEOF
  4500. /* end confdefs.h. */
  4501. /* Override any gcc2 internal prototype to avoid an error. */
  4502. #ifdef __cplusplus
  4503. extern "C"
  4504. #endif
  4505. /* We use char because int might match the return type of a gcc2
  4506. builtin and then its argument prototype would still apply. */
  4507. char gethostbyname ();
  4508. int
  4509. main ()
  4510. {
  4511. gethostbyname ();
  4512. ;
  4513. return 0;
  4514. }
  4515. _ACEOF
  4516. rm -f conftest.$ac_objext conftest$ac_exeext
  4517. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4518. (eval $ac_link) 2>conftest.er1
  4519. ac_status=$?
  4520. grep -v '^ *+' conftest.er1 >conftest.err
  4521. rm -f conftest.er1
  4522. cat conftest.err >&5
  4523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); } &&
  4525. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4527. (eval $ac_try) 2>&5
  4528. ac_status=$?
  4529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4530. (exit $ac_status); }; } &&
  4531. { ac_try='test -s conftest$ac_exeext'
  4532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4533. (eval $ac_try) 2>&5
  4534. ac_status=$?
  4535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4536. (exit $ac_status); }; }; then
  4537. ac_cv_lib_dns_gethostbyname=yes
  4538. else
  4539. echo "$as_me: failed program was:" >&5
  4540. sed 's/^/| /' conftest.$ac_ext >&5
  4541. ac_cv_lib_dns_gethostbyname=no
  4542. fi
  4543. rm -f conftest.err conftest.$ac_objext \
  4544. conftest$ac_exeext conftest.$ac_ext
  4545. LIBS=$ac_check_lib_save_LIBS
  4546. fi
  4547. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4548. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4549. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4550. cat >>confdefs.h <<_ACEOF
  4551. #define HAVE_LIBDNS 1
  4552. _ACEOF
  4553. LIBS="-ldns $LIBS"
  4554. fi
  4555. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4556. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4557. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4558. # This is needed for Tcl libraries compiled with thread support
  4559. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4560. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4561. # ac_cv_lib_pthread="-lpthread"], [dnl
  4562. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4563. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4564. # ac_cv_lib_pthread="-lpthread"], [dnl
  4565. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4566. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4567. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4568. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4569. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4570. # ac_cv_lib_pthread=""],
  4571. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4572. # Checks for header files
  4573. ac_header_dirent=no
  4574. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4575. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4576. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4577. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4578. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4579. echo $ECHO_N "(cached) $ECHO_C" >&6
  4580. else
  4581. cat >conftest.$ac_ext <<_ACEOF
  4582. /* confdefs.h. */
  4583. _ACEOF
  4584. cat confdefs.h >>conftest.$ac_ext
  4585. cat >>conftest.$ac_ext <<_ACEOF
  4586. /* end confdefs.h. */
  4587. #include <sys/types.h>
  4588. #include <$ac_hdr>
  4589. int
  4590. main ()
  4591. {
  4592. if ((DIR *) 0)
  4593. return 0;
  4594. ;
  4595. return 0;
  4596. }
  4597. _ACEOF
  4598. rm -f conftest.$ac_objext
  4599. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4600. (eval $ac_compile) 2>conftest.er1
  4601. ac_status=$?
  4602. grep -v '^ *+' conftest.er1 >conftest.err
  4603. rm -f conftest.er1
  4604. cat conftest.err >&5
  4605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4606. (exit $ac_status); } &&
  4607. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4609. (eval $ac_try) 2>&5
  4610. ac_status=$?
  4611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4612. (exit $ac_status); }; } &&
  4613. { ac_try='test -s conftest.$ac_objext'
  4614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4615. (eval $ac_try) 2>&5
  4616. ac_status=$?
  4617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618. (exit $ac_status); }; }; then
  4619. eval "$as_ac_Header=yes"
  4620. else
  4621. echo "$as_me: failed program was:" >&5
  4622. sed 's/^/| /' conftest.$ac_ext >&5
  4623. eval "$as_ac_Header=no"
  4624. fi
  4625. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4626. fi
  4627. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4628. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4629. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4630. cat >>confdefs.h <<_ACEOF
  4631. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4632. _ACEOF
  4633. ac_header_dirent=$ac_hdr; break
  4634. fi
  4635. done
  4636. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4637. if test $ac_header_dirent = dirent.h; then
  4638. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4639. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4640. if test "${ac_cv_search_opendir+set}" = set; then
  4641. echo $ECHO_N "(cached) $ECHO_C" >&6
  4642. else
  4643. ac_func_search_save_LIBS=$LIBS
  4644. ac_cv_search_opendir=no
  4645. cat >conftest.$ac_ext <<_ACEOF
  4646. /* confdefs.h. */
  4647. _ACEOF
  4648. cat confdefs.h >>conftest.$ac_ext
  4649. cat >>conftest.$ac_ext <<_ACEOF
  4650. /* end confdefs.h. */
  4651. /* Override any gcc2 internal prototype to avoid an error. */
  4652. #ifdef __cplusplus
  4653. extern "C"
  4654. #endif
  4655. /* We use char because int might match the return type of a gcc2
  4656. builtin and then its argument prototype would still apply. */
  4657. char opendir ();
  4658. int
  4659. main ()
  4660. {
  4661. opendir ();
  4662. ;
  4663. return 0;
  4664. }
  4665. _ACEOF
  4666. rm -f conftest.$ac_objext conftest$ac_exeext
  4667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4668. (eval $ac_link) 2>conftest.er1
  4669. ac_status=$?
  4670. grep -v '^ *+' conftest.er1 >conftest.err
  4671. rm -f conftest.er1
  4672. cat conftest.err >&5
  4673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4674. (exit $ac_status); } &&
  4675. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4677. (eval $ac_try) 2>&5
  4678. ac_status=$?
  4679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4680. (exit $ac_status); }; } &&
  4681. { ac_try='test -s conftest$ac_exeext'
  4682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4683. (eval $ac_try) 2>&5
  4684. ac_status=$?
  4685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4686. (exit $ac_status); }; }; then
  4687. ac_cv_search_opendir="none required"
  4688. else
  4689. echo "$as_me: failed program was:" >&5
  4690. sed 's/^/| /' conftest.$ac_ext >&5
  4691. fi
  4692. rm -f conftest.err conftest.$ac_objext \
  4693. conftest$ac_exeext conftest.$ac_ext
  4694. if test "$ac_cv_search_opendir" = no; then
  4695. for ac_lib in dir; do
  4696. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4697. cat >conftest.$ac_ext <<_ACEOF
  4698. /* confdefs.h. */
  4699. _ACEOF
  4700. cat confdefs.h >>conftest.$ac_ext
  4701. cat >>conftest.$ac_ext <<_ACEOF
  4702. /* end confdefs.h. */
  4703. /* Override any gcc2 internal prototype to avoid an error. */
  4704. #ifdef __cplusplus
  4705. extern "C"
  4706. #endif
  4707. /* We use char because int might match the return type of a gcc2
  4708. builtin and then its argument prototype would still apply. */
  4709. char opendir ();
  4710. int
  4711. main ()
  4712. {
  4713. opendir ();
  4714. ;
  4715. return 0;
  4716. }
  4717. _ACEOF
  4718. rm -f conftest.$ac_objext conftest$ac_exeext
  4719. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4720. (eval $ac_link) 2>conftest.er1
  4721. ac_status=$?
  4722. grep -v '^ *+' conftest.er1 >conftest.err
  4723. rm -f conftest.er1
  4724. cat conftest.err >&5
  4725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4726. (exit $ac_status); } &&
  4727. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4729. (eval $ac_try) 2>&5
  4730. ac_status=$?
  4731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732. (exit $ac_status); }; } &&
  4733. { ac_try='test -s conftest$ac_exeext'
  4734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4735. (eval $ac_try) 2>&5
  4736. ac_status=$?
  4737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4738. (exit $ac_status); }; }; then
  4739. ac_cv_search_opendir="-l$ac_lib"
  4740. break
  4741. else
  4742. echo "$as_me: failed program was:" >&5
  4743. sed 's/^/| /' conftest.$ac_ext >&5
  4744. fi
  4745. rm -f conftest.err conftest.$ac_objext \
  4746. conftest$ac_exeext conftest.$ac_ext
  4747. done
  4748. fi
  4749. LIBS=$ac_func_search_save_LIBS
  4750. fi
  4751. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4752. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4753. if test "$ac_cv_search_opendir" != no; then
  4754. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4755. fi
  4756. else
  4757. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4758. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4759. if test "${ac_cv_search_opendir+set}" = set; then
  4760. echo $ECHO_N "(cached) $ECHO_C" >&6
  4761. else
  4762. ac_func_search_save_LIBS=$LIBS
  4763. ac_cv_search_opendir=no
  4764. cat >conftest.$ac_ext <<_ACEOF
  4765. /* confdefs.h. */
  4766. _ACEOF
  4767. cat confdefs.h >>conftest.$ac_ext
  4768. cat >>conftest.$ac_ext <<_ACEOF
  4769. /* end confdefs.h. */
  4770. /* Override any gcc2 internal prototype to avoid an error. */
  4771. #ifdef __cplusplus
  4772. extern "C"
  4773. #endif
  4774. /* We use char because int might match the return type of a gcc2
  4775. builtin and then its argument prototype would still apply. */
  4776. char opendir ();
  4777. int
  4778. main ()
  4779. {
  4780. opendir ();
  4781. ;
  4782. return 0;
  4783. }
  4784. _ACEOF
  4785. rm -f conftest.$ac_objext conftest$ac_exeext
  4786. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4787. (eval $ac_link) 2>conftest.er1
  4788. ac_status=$?
  4789. grep -v '^ *+' conftest.er1 >conftest.err
  4790. rm -f conftest.er1
  4791. cat conftest.err >&5
  4792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4793. (exit $ac_status); } &&
  4794. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4796. (eval $ac_try) 2>&5
  4797. ac_status=$?
  4798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4799. (exit $ac_status); }; } &&
  4800. { ac_try='test -s conftest$ac_exeext'
  4801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4802. (eval $ac_try) 2>&5
  4803. ac_status=$?
  4804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4805. (exit $ac_status); }; }; then
  4806. ac_cv_search_opendir="none required"
  4807. else
  4808. echo "$as_me: failed program was:" >&5
  4809. sed 's/^/| /' conftest.$ac_ext >&5
  4810. fi
  4811. rm -f conftest.err conftest.$ac_objext \
  4812. conftest$ac_exeext conftest.$ac_ext
  4813. if test "$ac_cv_search_opendir" = no; then
  4814. for ac_lib in x; do
  4815. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4816. cat >conftest.$ac_ext <<_ACEOF
  4817. /* confdefs.h. */
  4818. _ACEOF
  4819. cat confdefs.h >>conftest.$ac_ext
  4820. cat >>conftest.$ac_ext <<_ACEOF
  4821. /* end confdefs.h. */
  4822. /* Override any gcc2 internal prototype to avoid an error. */
  4823. #ifdef __cplusplus
  4824. extern "C"
  4825. #endif
  4826. /* We use char because int might match the return type of a gcc2
  4827. builtin and then its argument prototype would still apply. */
  4828. char opendir ();
  4829. int
  4830. main ()
  4831. {
  4832. opendir ();
  4833. ;
  4834. return 0;
  4835. }
  4836. _ACEOF
  4837. rm -f conftest.$ac_objext conftest$ac_exeext
  4838. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4839. (eval $ac_link) 2>conftest.er1
  4840. ac_status=$?
  4841. grep -v '^ *+' conftest.er1 >conftest.err
  4842. rm -f conftest.er1
  4843. cat conftest.err >&5
  4844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4845. (exit $ac_status); } &&
  4846. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4848. (eval $ac_try) 2>&5
  4849. ac_status=$?
  4850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4851. (exit $ac_status); }; } &&
  4852. { ac_try='test -s conftest$ac_exeext'
  4853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4854. (eval $ac_try) 2>&5
  4855. ac_status=$?
  4856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4857. (exit $ac_status); }; }; then
  4858. ac_cv_search_opendir="-l$ac_lib"
  4859. break
  4860. else
  4861. echo "$as_me: failed program was:" >&5
  4862. sed 's/^/| /' conftest.$ac_ext >&5
  4863. fi
  4864. rm -f conftest.err conftest.$ac_objext \
  4865. conftest$ac_exeext conftest.$ac_ext
  4866. done
  4867. fi
  4868. LIBS=$ac_func_search_save_LIBS
  4869. fi
  4870. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4871. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4872. if test "$ac_cv_search_opendir" != no; then
  4873. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4874. fi
  4875. fi
  4876. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4877. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4878. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4879. echo $ECHO_N "(cached) $ECHO_C" >&6
  4880. else
  4881. cat >conftest.$ac_ext <<_ACEOF
  4882. /* confdefs.h. */
  4883. _ACEOF
  4884. cat confdefs.h >>conftest.$ac_ext
  4885. cat >>conftest.$ac_ext <<_ACEOF
  4886. /* end confdefs.h. */
  4887. #include <sys/types.h>
  4888. #include <sys/wait.h>
  4889. #ifndef WEXITSTATUS
  4890. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4891. #endif
  4892. #ifndef WIFEXITED
  4893. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4894. #endif
  4895. int
  4896. main ()
  4897. {
  4898. int s;
  4899. wait (&s);
  4900. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4901. ;
  4902. return 0;
  4903. }
  4904. _ACEOF
  4905. rm -f conftest.$ac_objext
  4906. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4907. (eval $ac_compile) 2>conftest.er1
  4908. ac_status=$?
  4909. grep -v '^ *+' conftest.er1 >conftest.err
  4910. rm -f conftest.er1
  4911. cat conftest.err >&5
  4912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913. (exit $ac_status); } &&
  4914. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4916. (eval $ac_try) 2>&5
  4917. ac_status=$?
  4918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4919. (exit $ac_status); }; } &&
  4920. { ac_try='test -s conftest.$ac_objext'
  4921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4922. (eval $ac_try) 2>&5
  4923. ac_status=$?
  4924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4925. (exit $ac_status); }; }; then
  4926. ac_cv_header_sys_wait_h=yes
  4927. else
  4928. echo "$as_me: failed program was:" >&5
  4929. sed 's/^/| /' conftest.$ac_ext >&5
  4930. ac_cv_header_sys_wait_h=no
  4931. fi
  4932. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4933. fi
  4934. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4935. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4936. if test $ac_cv_header_sys_wait_h = yes; then
  4937. cat >>confdefs.h <<\_ACEOF
  4938. #define HAVE_SYS_WAIT_H 1
  4939. _ACEOF
  4940. fi
  4941. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4942. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4943. if test "${ac_cv_header_time+set}" = set; then
  4944. echo $ECHO_N "(cached) $ECHO_C" >&6
  4945. else
  4946. cat >conftest.$ac_ext <<_ACEOF
  4947. /* confdefs.h. */
  4948. _ACEOF
  4949. cat confdefs.h >>conftest.$ac_ext
  4950. cat >>conftest.$ac_ext <<_ACEOF
  4951. /* end confdefs.h. */
  4952. #include <sys/types.h>
  4953. #include <sys/time.h>
  4954. #include <time.h>
  4955. int
  4956. main ()
  4957. {
  4958. if ((struct tm *) 0)
  4959. return 0;
  4960. ;
  4961. return 0;
  4962. }
  4963. _ACEOF
  4964. rm -f conftest.$ac_objext
  4965. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4966. (eval $ac_compile) 2>conftest.er1
  4967. ac_status=$?
  4968. grep -v '^ *+' conftest.er1 >conftest.err
  4969. rm -f conftest.er1
  4970. cat conftest.err >&5
  4971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4972. (exit $ac_status); } &&
  4973. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4975. (eval $ac_try) 2>&5
  4976. ac_status=$?
  4977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4978. (exit $ac_status); }; } &&
  4979. { ac_try='test -s conftest.$ac_objext'
  4980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4981. (eval $ac_try) 2>&5
  4982. ac_status=$?
  4983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4984. (exit $ac_status); }; }; then
  4985. ac_cv_header_time=yes
  4986. else
  4987. echo "$as_me: failed program was:" >&5
  4988. sed 's/^/| /' conftest.$ac_ext >&5
  4989. ac_cv_header_time=no
  4990. fi
  4991. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4992. fi
  4993. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4994. echo "${ECHO_T}$ac_cv_header_time" >&6
  4995. if test $ac_cv_header_time = yes; then
  4996. cat >>confdefs.h <<\_ACEOF
  4997. #define TIME_WITH_SYS_TIME 1
  4998. _ACEOF
  4999. fi
  5000. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5001. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5002. if test "${ac_cv_header_stat_broken+set}" = set; then
  5003. echo $ECHO_N "(cached) $ECHO_C" >&6
  5004. else
  5005. cat >conftest.$ac_ext <<_ACEOF
  5006. /* confdefs.h. */
  5007. _ACEOF
  5008. cat confdefs.h >>conftest.$ac_ext
  5009. cat >>conftest.$ac_ext <<_ACEOF
  5010. /* end confdefs.h. */
  5011. #include <sys/types.h>
  5012. #include <sys/stat.h>
  5013. #if defined(S_ISBLK) && defined(S_IFDIR)
  5014. # if S_ISBLK (S_IFDIR)
  5015. You lose.
  5016. # endif
  5017. #endif
  5018. #if defined(S_ISBLK) && defined(S_IFCHR)
  5019. # if S_ISBLK (S_IFCHR)
  5020. You lose.
  5021. # endif
  5022. #endif
  5023. #if defined(S_ISLNK) && defined(S_IFREG)
  5024. # if S_ISLNK (S_IFREG)
  5025. You lose.
  5026. # endif
  5027. #endif
  5028. #if defined(S_ISSOCK) && defined(S_IFREG)
  5029. # if S_ISSOCK (S_IFREG)
  5030. You lose.
  5031. # endif
  5032. #endif
  5033. _ACEOF
  5034. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5035. $EGREP "You lose" >/dev/null 2>&1; then
  5036. ac_cv_header_stat_broken=yes
  5037. else
  5038. ac_cv_header_stat_broken=no
  5039. fi
  5040. rm -f conftest*
  5041. fi
  5042. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5043. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5044. if test $ac_cv_header_stat_broken = yes; then
  5045. cat >>confdefs.h <<\_ACEOF
  5046. #define STAT_MACROS_BROKEN 1
  5047. _ACEOF
  5048. fi
  5049. #checkpoint
  5050. cat >confcache <<\_ACEOF
  5051. # This file is a shell script that caches the results of configure
  5052. # tests run on this system so they can be shared between configure
  5053. # scripts and configure runs, see configure's option --config-cache.
  5054. # It is not useful on other systems. If it contains results you don't
  5055. # want to keep, you may remove or edit it.
  5056. #
  5057. # config.status only pays attention to the cache file if you give it
  5058. # the --recheck option to rerun configure.
  5059. #
  5060. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5061. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5062. # following values.
  5063. _ACEOF
  5064. # The following way of writing the cache mishandles newlines in values,
  5065. # but we know of no workaround that is simple, portable, and efficient.
  5066. # So, don't put newlines in cache variables' values.
  5067. # Ultrix sh set writes to stderr and can't be redirected directly,
  5068. # and sets the high bit in the cache file unless we assign to the vars.
  5069. {
  5070. (set) 2>&1 |
  5071. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5072. *ac_space=\ *)
  5073. # `set' does not quote correctly, so add quotes (double-quote
  5074. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5075. sed -n \
  5076. "s/'/'\\\\''/g;
  5077. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5078. ;;
  5079. *)
  5080. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5081. sed -n \
  5082. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5083. ;;
  5084. esac;
  5085. } |
  5086. sed '
  5087. t clear
  5088. : clear
  5089. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5090. t end
  5091. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5092. : end' >>confcache
  5093. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5094. if test -w $cache_file; then
  5095. test "x$cache_file" != "x/dev/null"
  5096. cat confcache >$cache_file
  5097. else
  5098. echo "not updating unwritable cache $cache_file"
  5099. fi
  5100. fi
  5101. rm -f confcache
  5102. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5103. do
  5104. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5105. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5106. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5107. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5108. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5109. echo $ECHO_N "(cached) $ECHO_C" >&6
  5110. fi
  5111. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5112. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5113. else
  5114. # Is the header compilable?
  5115. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5116. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5117. cat >conftest.$ac_ext <<_ACEOF
  5118. /* confdefs.h. */
  5119. _ACEOF
  5120. cat confdefs.h >>conftest.$ac_ext
  5121. cat >>conftest.$ac_ext <<_ACEOF
  5122. /* end confdefs.h. */
  5123. $ac_includes_default
  5124. #include <$ac_header>
  5125. _ACEOF
  5126. rm -f conftest.$ac_objext
  5127. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5128. (eval $ac_compile) 2>conftest.er1
  5129. ac_status=$?
  5130. grep -v '^ *+' conftest.er1 >conftest.err
  5131. rm -f conftest.er1
  5132. cat conftest.err >&5
  5133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5134. (exit $ac_status); } &&
  5135. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5137. (eval $ac_try) 2>&5
  5138. ac_status=$?
  5139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5140. (exit $ac_status); }; } &&
  5141. { ac_try='test -s conftest.$ac_objext'
  5142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5143. (eval $ac_try) 2>&5
  5144. ac_status=$?
  5145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5146. (exit $ac_status); }; }; then
  5147. ac_header_compiler=yes
  5148. else
  5149. echo "$as_me: failed program was:" >&5
  5150. sed 's/^/| /' conftest.$ac_ext >&5
  5151. ac_header_compiler=no
  5152. fi
  5153. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5154. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5155. echo "${ECHO_T}$ac_header_compiler" >&6
  5156. # Is the header present?
  5157. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5158. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5159. cat >conftest.$ac_ext <<_ACEOF
  5160. /* confdefs.h. */
  5161. _ACEOF
  5162. cat confdefs.h >>conftest.$ac_ext
  5163. cat >>conftest.$ac_ext <<_ACEOF
  5164. /* end confdefs.h. */
  5165. #include <$ac_header>
  5166. _ACEOF
  5167. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5168. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5169. ac_status=$?
  5170. grep -v '^ *+' conftest.er1 >conftest.err
  5171. rm -f conftest.er1
  5172. cat conftest.err >&5
  5173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5174. (exit $ac_status); } >/dev/null; then
  5175. if test -s conftest.err; then
  5176. ac_cpp_err=$ac_c_preproc_warn_flag
  5177. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5178. else
  5179. ac_cpp_err=
  5180. fi
  5181. else
  5182. ac_cpp_err=yes
  5183. fi
  5184. if test -z "$ac_cpp_err"; then
  5185. ac_header_preproc=yes
  5186. else
  5187. echo "$as_me: failed program was:" >&5
  5188. sed 's/^/| /' conftest.$ac_ext >&5
  5189. ac_header_preproc=no
  5190. fi
  5191. rm -f conftest.err conftest.$ac_ext
  5192. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5193. echo "${ECHO_T}$ac_header_preproc" >&6
  5194. # So? What about this header?
  5195. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5196. yes:no: )
  5197. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5198. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5199. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5200. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5201. ac_header_preproc=yes
  5202. ;;
  5203. no:yes:* )
  5204. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5205. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5206. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5207. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5208. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5209. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5210. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5211. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5212. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5213. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5214. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5215. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5216. (
  5217. cat <<\_ASBOX
  5218. ## ------------------------------------------ ##
  5219. ## Report this to the AC_PACKAGE_NAME lists. ##
  5220. ## ------------------------------------------ ##
  5221. _ASBOX
  5222. ) |
  5223. sed "s/^/$as_me: WARNING: /" >&2
  5224. ;;
  5225. esac
  5226. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5227. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5228. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5229. echo $ECHO_N "(cached) $ECHO_C" >&6
  5230. else
  5231. eval "$as_ac_Header=\$ac_header_preproc"
  5232. fi
  5233. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5234. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5235. fi
  5236. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5237. cat >>confdefs.h <<_ACEOF
  5238. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5239. _ACEOF
  5240. fi
  5241. done
  5242. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5243. do
  5244. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5245. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5246. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5247. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5248. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5249. echo $ECHO_N "(cached) $ECHO_C" >&6
  5250. fi
  5251. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5252. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5253. else
  5254. # Is the header compilable?
  5255. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5256. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5257. cat >conftest.$ac_ext <<_ACEOF
  5258. /* confdefs.h. */
  5259. _ACEOF
  5260. cat confdefs.h >>conftest.$ac_ext
  5261. cat >>conftest.$ac_ext <<_ACEOF
  5262. /* end confdefs.h. */
  5263. $ac_includes_default
  5264. #include <$ac_header>
  5265. _ACEOF
  5266. rm -f conftest.$ac_objext
  5267. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5268. (eval $ac_compile) 2>conftest.er1
  5269. ac_status=$?
  5270. grep -v '^ *+' conftest.er1 >conftest.err
  5271. rm -f conftest.er1
  5272. cat conftest.err >&5
  5273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5274. (exit $ac_status); } &&
  5275. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5277. (eval $ac_try) 2>&5
  5278. ac_status=$?
  5279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5280. (exit $ac_status); }; } &&
  5281. { ac_try='test -s conftest.$ac_objext'
  5282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5283. (eval $ac_try) 2>&5
  5284. ac_status=$?
  5285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5286. (exit $ac_status); }; }; then
  5287. ac_header_compiler=yes
  5288. else
  5289. echo "$as_me: failed program was:" >&5
  5290. sed 's/^/| /' conftest.$ac_ext >&5
  5291. ac_header_compiler=no
  5292. fi
  5293. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5294. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5295. echo "${ECHO_T}$ac_header_compiler" >&6
  5296. # Is the header present?
  5297. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5298. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5299. cat >conftest.$ac_ext <<_ACEOF
  5300. /* confdefs.h. */
  5301. _ACEOF
  5302. cat confdefs.h >>conftest.$ac_ext
  5303. cat >>conftest.$ac_ext <<_ACEOF
  5304. /* end confdefs.h. */
  5305. #include <$ac_header>
  5306. _ACEOF
  5307. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5308. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5309. ac_status=$?
  5310. grep -v '^ *+' conftest.er1 >conftest.err
  5311. rm -f conftest.er1
  5312. cat conftest.err >&5
  5313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5314. (exit $ac_status); } >/dev/null; then
  5315. if test -s conftest.err; then
  5316. ac_cpp_err=$ac_c_preproc_warn_flag
  5317. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5318. else
  5319. ac_cpp_err=
  5320. fi
  5321. else
  5322. ac_cpp_err=yes
  5323. fi
  5324. if test -z "$ac_cpp_err"; then
  5325. ac_header_preproc=yes
  5326. else
  5327. echo "$as_me: failed program was:" >&5
  5328. sed 's/^/| /' conftest.$ac_ext >&5
  5329. ac_header_preproc=no
  5330. fi
  5331. rm -f conftest.err conftest.$ac_ext
  5332. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5333. echo "${ECHO_T}$ac_header_preproc" >&6
  5334. # So? What about this header?
  5335. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5336. yes:no: )
  5337. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5338. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5339. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5340. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5341. ac_header_preproc=yes
  5342. ;;
  5343. no:yes:* )
  5344. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5345. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5346. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5347. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5348. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5349. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5350. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5351. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5352. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5353. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5354. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5355. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5356. (
  5357. cat <<\_ASBOX
  5358. ## ------------------------------------------ ##
  5359. ## Report this to the AC_PACKAGE_NAME lists. ##
  5360. ## ------------------------------------------ ##
  5361. _ASBOX
  5362. ) |
  5363. sed "s/^/$as_me: WARNING: /" >&2
  5364. ;;
  5365. esac
  5366. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5367. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5368. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5369. echo $ECHO_N "(cached) $ECHO_C" >&6
  5370. else
  5371. eval "$as_ac_Header=\$ac_header_preproc"
  5372. fi
  5373. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5374. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5375. fi
  5376. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5377. cat >>confdefs.h <<_ACEOF
  5378. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5379. _ACEOF
  5380. fi
  5381. done
  5382. #checkpoint
  5383. cat >confcache <<\_ACEOF
  5384. # This file is a shell script that caches the results of configure
  5385. # tests run on this system so they can be shared between configure
  5386. # scripts and configure runs, see configure's option --config-cache.
  5387. # It is not useful on other systems. If it contains results you don't
  5388. # want to keep, you may remove or edit it.
  5389. #
  5390. # config.status only pays attention to the cache file if you give it
  5391. # the --recheck option to rerun configure.
  5392. #
  5393. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5394. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5395. # following values.
  5396. _ACEOF
  5397. # The following way of writing the cache mishandles newlines in values,
  5398. # but we know of no workaround that is simple, portable, and efficient.
  5399. # So, don't put newlines in cache variables' values.
  5400. # Ultrix sh set writes to stderr and can't be redirected directly,
  5401. # and sets the high bit in the cache file unless we assign to the vars.
  5402. {
  5403. (set) 2>&1 |
  5404. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5405. *ac_space=\ *)
  5406. # `set' does not quote correctly, so add quotes (double-quote
  5407. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5408. sed -n \
  5409. "s/'/'\\\\''/g;
  5410. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5411. ;;
  5412. *)
  5413. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5414. sed -n \
  5415. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5416. ;;
  5417. esac;
  5418. } |
  5419. sed '
  5420. t clear
  5421. : clear
  5422. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5423. t end
  5424. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5425. : end' >>confcache
  5426. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5427. if test -w $cache_file; then
  5428. test "x$cache_file" != "x/dev/null"
  5429. cat confcache >$cache_file
  5430. else
  5431. echo "not updating unwritable cache $cache_file"
  5432. fi
  5433. fi
  5434. rm -f confcache
  5435. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5436. #AC_CHECK_HEADERS(zlib.h)
  5437. #EGG_CHECK_ZLIB
  5438. #EGG_CHECK_SSL
  5439. #AC_SUBST(SSL)dnl
  5440. # Checks for typedefs, structures, and compiler characteristics
  5441. echo "$as_me:$LINENO: checking for pid_t" >&5
  5442. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5443. if test "${ac_cv_type_pid_t+set}" = set; then
  5444. echo $ECHO_N "(cached) $ECHO_C" >&6
  5445. else
  5446. cat >conftest.$ac_ext <<_ACEOF
  5447. /* confdefs.h. */
  5448. _ACEOF
  5449. cat confdefs.h >>conftest.$ac_ext
  5450. cat >>conftest.$ac_ext <<_ACEOF
  5451. /* end confdefs.h. */
  5452. $ac_includes_default
  5453. int
  5454. main ()
  5455. {
  5456. if ((pid_t *) 0)
  5457. return 0;
  5458. if (sizeof (pid_t))
  5459. return 0;
  5460. ;
  5461. return 0;
  5462. }
  5463. _ACEOF
  5464. rm -f conftest.$ac_objext
  5465. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5466. (eval $ac_compile) 2>conftest.er1
  5467. ac_status=$?
  5468. grep -v '^ *+' conftest.er1 >conftest.err
  5469. rm -f conftest.er1
  5470. cat conftest.err >&5
  5471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5472. (exit $ac_status); } &&
  5473. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5475. (eval $ac_try) 2>&5
  5476. ac_status=$?
  5477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5478. (exit $ac_status); }; } &&
  5479. { ac_try='test -s conftest.$ac_objext'
  5480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5481. (eval $ac_try) 2>&5
  5482. ac_status=$?
  5483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5484. (exit $ac_status); }; }; then
  5485. ac_cv_type_pid_t=yes
  5486. else
  5487. echo "$as_me: failed program was:" >&5
  5488. sed 's/^/| /' conftest.$ac_ext >&5
  5489. ac_cv_type_pid_t=no
  5490. fi
  5491. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5492. fi
  5493. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5494. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5495. if test $ac_cv_type_pid_t = yes; then
  5496. :
  5497. else
  5498. cat >>confdefs.h <<_ACEOF
  5499. #define pid_t int
  5500. _ACEOF
  5501. fi
  5502. echo "$as_me:$LINENO: checking for size_t" >&5
  5503. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5504. if test "${ac_cv_type_size_t+set}" = set; then
  5505. echo $ECHO_N "(cached) $ECHO_C" >&6
  5506. else
  5507. cat >conftest.$ac_ext <<_ACEOF
  5508. /* confdefs.h. */
  5509. _ACEOF
  5510. cat confdefs.h >>conftest.$ac_ext
  5511. cat >>conftest.$ac_ext <<_ACEOF
  5512. /* end confdefs.h. */
  5513. $ac_includes_default
  5514. int
  5515. main ()
  5516. {
  5517. if ((size_t *) 0)
  5518. return 0;
  5519. if (sizeof (size_t))
  5520. return 0;
  5521. ;
  5522. return 0;
  5523. }
  5524. _ACEOF
  5525. rm -f conftest.$ac_objext
  5526. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5527. (eval $ac_compile) 2>conftest.er1
  5528. ac_status=$?
  5529. grep -v '^ *+' conftest.er1 >conftest.err
  5530. rm -f conftest.er1
  5531. cat conftest.err >&5
  5532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5533. (exit $ac_status); } &&
  5534. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5536. (eval $ac_try) 2>&5
  5537. ac_status=$?
  5538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5539. (exit $ac_status); }; } &&
  5540. { ac_try='test -s conftest.$ac_objext'
  5541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5542. (eval $ac_try) 2>&5
  5543. ac_status=$?
  5544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5545. (exit $ac_status); }; }; then
  5546. ac_cv_type_size_t=yes
  5547. else
  5548. echo "$as_me: failed program was:" >&5
  5549. sed 's/^/| /' conftest.$ac_ext >&5
  5550. ac_cv_type_size_t=no
  5551. fi
  5552. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5553. fi
  5554. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5555. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5556. if test $ac_cv_type_size_t = yes; then
  5557. :
  5558. else
  5559. cat >>confdefs.h <<_ACEOF
  5560. #define size_t unsigned
  5561. _ACEOF
  5562. fi
  5563. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5564. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5565. if test "${ac_cv_type_uid_t+set}" = set; then
  5566. echo $ECHO_N "(cached) $ECHO_C" >&6
  5567. else
  5568. cat >conftest.$ac_ext <<_ACEOF
  5569. /* confdefs.h. */
  5570. _ACEOF
  5571. cat confdefs.h >>conftest.$ac_ext
  5572. cat >>conftest.$ac_ext <<_ACEOF
  5573. /* end confdefs.h. */
  5574. #include <sys/types.h>
  5575. _ACEOF
  5576. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5577. $EGREP "uid_t" >/dev/null 2>&1; then
  5578. ac_cv_type_uid_t=yes
  5579. else
  5580. ac_cv_type_uid_t=no
  5581. fi
  5582. rm -f conftest*
  5583. fi
  5584. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5585. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5586. if test $ac_cv_type_uid_t = no; then
  5587. cat >>confdefs.h <<\_ACEOF
  5588. #define uid_t int
  5589. _ACEOF
  5590. cat >>confdefs.h <<\_ACEOF
  5591. #define gid_t int
  5592. _ACEOF
  5593. fi
  5594. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5595. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5596. if test "${ac_cv_c_const+set}" = set; then
  5597. echo $ECHO_N "(cached) $ECHO_C" >&6
  5598. else
  5599. cat >conftest.$ac_ext <<_ACEOF
  5600. /* confdefs.h. */
  5601. _ACEOF
  5602. cat confdefs.h >>conftest.$ac_ext
  5603. cat >>conftest.$ac_ext <<_ACEOF
  5604. /* end confdefs.h. */
  5605. int
  5606. main ()
  5607. {
  5608. /* FIXME: Include the comments suggested by Paul. */
  5609. #ifndef __cplusplus
  5610. /* Ultrix mips cc rejects this. */
  5611. typedef int charset[2];
  5612. const charset x;
  5613. /* SunOS 4.1.1 cc rejects this. */
  5614. char const *const *ccp;
  5615. char **p;
  5616. /* NEC SVR4.0.2 mips cc rejects this. */
  5617. struct point {int x, y;};
  5618. static struct point const zero = {0,0};
  5619. /* AIX XL C 1.02.0.0 rejects this.
  5620. It does not let you subtract one const X* pointer from another in
  5621. an arm of an if-expression whose if-part is not a constant
  5622. expression */
  5623. const char *g = "string";
  5624. ccp = &g + (g ? g-g : 0);
  5625. /* HPUX 7.0 cc rejects these. */
  5626. ++ccp;
  5627. p = (char**) ccp;
  5628. ccp = (char const *const *) p;
  5629. { /* SCO 3.2v4 cc rejects this. */
  5630. char *t;
  5631. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5632. *t++ = 0;
  5633. }
  5634. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5635. int x[] = {25, 17};
  5636. const int *foo = &x[0];
  5637. ++foo;
  5638. }
  5639. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5640. typedef const int *iptr;
  5641. iptr p = 0;
  5642. ++p;
  5643. }
  5644. { /* AIX XL C 1.02.0.0 rejects this saying
  5645. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5646. struct s { int j; const int *ap[3]; };
  5647. struct s *b; b->j = 5;
  5648. }
  5649. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5650. const int foo = 10;
  5651. }
  5652. #endif
  5653. ;
  5654. return 0;
  5655. }
  5656. _ACEOF
  5657. rm -f conftest.$ac_objext
  5658. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5659. (eval $ac_compile) 2>conftest.er1
  5660. ac_status=$?
  5661. grep -v '^ *+' conftest.er1 >conftest.err
  5662. rm -f conftest.er1
  5663. cat conftest.err >&5
  5664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5665. (exit $ac_status); } &&
  5666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5668. (eval $ac_try) 2>&5
  5669. ac_status=$?
  5670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. (exit $ac_status); }; } &&
  5672. { ac_try='test -s conftest.$ac_objext'
  5673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5674. (eval $ac_try) 2>&5
  5675. ac_status=$?
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); }; }; then
  5678. ac_cv_c_const=yes
  5679. else
  5680. echo "$as_me: failed program was:" >&5
  5681. sed 's/^/| /' conftest.$ac_ext >&5
  5682. ac_cv_c_const=no
  5683. fi
  5684. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5685. fi
  5686. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5687. echo "${ECHO_T}$ac_cv_c_const" >&6
  5688. if test $ac_cv_c_const = no; then
  5689. cat >>confdefs.h <<\_ACEOF
  5690. #define const
  5691. _ACEOF
  5692. fi
  5693. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5694. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5695. if test "${ac_cv_c_bigendian+set}" = set; then
  5696. echo $ECHO_N "(cached) $ECHO_C" >&6
  5697. else
  5698. # See if sys/param.h defines the BYTE_ORDER macro.
  5699. cat >conftest.$ac_ext <<_ACEOF
  5700. /* confdefs.h. */
  5701. _ACEOF
  5702. cat confdefs.h >>conftest.$ac_ext
  5703. cat >>conftest.$ac_ext <<_ACEOF
  5704. /* end confdefs.h. */
  5705. #include <sys/types.h>
  5706. #include <sys/param.h>
  5707. int
  5708. main ()
  5709. {
  5710. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5711. bogus endian macros
  5712. #endif
  5713. ;
  5714. return 0;
  5715. }
  5716. _ACEOF
  5717. rm -f conftest.$ac_objext
  5718. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5719. (eval $ac_compile) 2>conftest.er1
  5720. ac_status=$?
  5721. grep -v '^ *+' conftest.er1 >conftest.err
  5722. rm -f conftest.er1
  5723. cat conftest.err >&5
  5724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5725. (exit $ac_status); } &&
  5726. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5728. (eval $ac_try) 2>&5
  5729. ac_status=$?
  5730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5731. (exit $ac_status); }; } &&
  5732. { ac_try='test -s conftest.$ac_objext'
  5733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5734. (eval $ac_try) 2>&5
  5735. ac_status=$?
  5736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5737. (exit $ac_status); }; }; then
  5738. # It does; now see whether it defined to BIG_ENDIAN or not.
  5739. cat >conftest.$ac_ext <<_ACEOF
  5740. /* confdefs.h. */
  5741. _ACEOF
  5742. cat confdefs.h >>conftest.$ac_ext
  5743. cat >>conftest.$ac_ext <<_ACEOF
  5744. /* end confdefs.h. */
  5745. #include <sys/types.h>
  5746. #include <sys/param.h>
  5747. int
  5748. main ()
  5749. {
  5750. #if BYTE_ORDER != BIG_ENDIAN
  5751. not big endian
  5752. #endif
  5753. ;
  5754. return 0;
  5755. }
  5756. _ACEOF
  5757. rm -f conftest.$ac_objext
  5758. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5759. (eval $ac_compile) 2>conftest.er1
  5760. ac_status=$?
  5761. grep -v '^ *+' conftest.er1 >conftest.err
  5762. rm -f conftest.er1
  5763. cat conftest.err >&5
  5764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5765. (exit $ac_status); } &&
  5766. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5768. (eval $ac_try) 2>&5
  5769. ac_status=$?
  5770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5771. (exit $ac_status); }; } &&
  5772. { ac_try='test -s conftest.$ac_objext'
  5773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5774. (eval $ac_try) 2>&5
  5775. ac_status=$?
  5776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5777. (exit $ac_status); }; }; then
  5778. ac_cv_c_bigendian=yes
  5779. else
  5780. echo "$as_me: failed program was:" >&5
  5781. sed 's/^/| /' conftest.$ac_ext >&5
  5782. ac_cv_c_bigendian=no
  5783. fi
  5784. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5785. else
  5786. echo "$as_me: failed program was:" >&5
  5787. sed 's/^/| /' conftest.$ac_ext >&5
  5788. # It does not; compile a test program.
  5789. if test "$cross_compiling" = yes; then
  5790. # try to guess the endianness by grepping values into an object file
  5791. ac_cv_c_bigendian=unknown
  5792. cat >conftest.$ac_ext <<_ACEOF
  5793. /* confdefs.h. */
  5794. _ACEOF
  5795. cat confdefs.h >>conftest.$ac_ext
  5796. cat >>conftest.$ac_ext <<_ACEOF
  5797. /* end confdefs.h. */
  5798. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5799. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5800. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5801. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5802. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5803. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5804. int
  5805. main ()
  5806. {
  5807. _ascii (); _ebcdic ();
  5808. ;
  5809. return 0;
  5810. }
  5811. _ACEOF
  5812. rm -f conftest.$ac_objext
  5813. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5814. (eval $ac_compile) 2>conftest.er1
  5815. ac_status=$?
  5816. grep -v '^ *+' conftest.er1 >conftest.err
  5817. rm -f conftest.er1
  5818. cat conftest.err >&5
  5819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. (exit $ac_status); } &&
  5821. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5823. (eval $ac_try) 2>&5
  5824. ac_status=$?
  5825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5826. (exit $ac_status); }; } &&
  5827. { ac_try='test -s conftest.$ac_objext'
  5828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5829. (eval $ac_try) 2>&5
  5830. ac_status=$?
  5831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5832. (exit $ac_status); }; }; then
  5833. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5834. ac_cv_c_bigendian=yes
  5835. fi
  5836. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5837. if test "$ac_cv_c_bigendian" = unknown; then
  5838. ac_cv_c_bigendian=no
  5839. else
  5840. # finding both strings is unlikely to happen, but who knows?
  5841. ac_cv_c_bigendian=unknown
  5842. fi
  5843. fi
  5844. else
  5845. echo "$as_me: failed program was:" >&5
  5846. sed 's/^/| /' conftest.$ac_ext >&5
  5847. fi
  5848. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5849. else
  5850. cat >conftest.$ac_ext <<_ACEOF
  5851. /* confdefs.h. */
  5852. _ACEOF
  5853. cat confdefs.h >>conftest.$ac_ext
  5854. cat >>conftest.$ac_ext <<_ACEOF
  5855. /* end confdefs.h. */
  5856. int
  5857. main ()
  5858. {
  5859. /* Are we little or big endian? From Harbison&Steele. */
  5860. union
  5861. {
  5862. long l;
  5863. char c[sizeof (long)];
  5864. } u;
  5865. u.l = 1;
  5866. exit (u.c[sizeof (long) - 1] == 1);
  5867. }
  5868. _ACEOF
  5869. rm -f conftest$ac_exeext
  5870. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5871. (eval $ac_link) 2>&5
  5872. ac_status=$?
  5873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5874. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5876. (eval $ac_try) 2>&5
  5877. ac_status=$?
  5878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5879. (exit $ac_status); }; }; then
  5880. ac_cv_c_bigendian=no
  5881. else
  5882. echo "$as_me: program exited with status $ac_status" >&5
  5883. echo "$as_me: failed program was:" >&5
  5884. sed 's/^/| /' conftest.$ac_ext >&5
  5885. ( exit $ac_status )
  5886. ac_cv_c_bigendian=yes
  5887. fi
  5888. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5889. fi
  5890. fi
  5891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5892. fi
  5893. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5894. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5895. case $ac_cv_c_bigendian in
  5896. yes)
  5897. cat >>confdefs.h <<\_ACEOF
  5898. #define WORDS_BIGENDIAN 1
  5899. _ACEOF
  5900. ;;
  5901. no)
  5902. ;;
  5903. *)
  5904. { { echo "$as_me:$LINENO: error: unknown endianness
  5905. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5906. echo "$as_me: error: unknown endianness
  5907. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5908. { (exit 1); exit 1; }; } ;;
  5909. esac
  5910. echo "$as_me:$LINENO: checking for inline" >&5
  5911. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5912. if test "${ac_cv_c_inline+set}" = set; then
  5913. echo $ECHO_N "(cached) $ECHO_C" >&6
  5914. else
  5915. ac_cv_c_inline=no
  5916. for ac_kw in inline __inline__ __inline; do
  5917. cat >conftest.$ac_ext <<_ACEOF
  5918. /* confdefs.h. */
  5919. _ACEOF
  5920. cat confdefs.h >>conftest.$ac_ext
  5921. cat >>conftest.$ac_ext <<_ACEOF
  5922. /* end confdefs.h. */
  5923. #ifndef __cplusplus
  5924. typedef int foo_t;
  5925. static $ac_kw foo_t static_foo () {return 0; }
  5926. $ac_kw foo_t foo () {return 0; }
  5927. #endif
  5928. _ACEOF
  5929. rm -f conftest.$ac_objext
  5930. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5931. (eval $ac_compile) 2>conftest.er1
  5932. ac_status=$?
  5933. grep -v '^ *+' conftest.er1 >conftest.err
  5934. rm -f conftest.er1
  5935. cat conftest.err >&5
  5936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5937. (exit $ac_status); } &&
  5938. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5940. (eval $ac_try) 2>&5
  5941. ac_status=$?
  5942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5943. (exit $ac_status); }; } &&
  5944. { ac_try='test -s conftest.$ac_objext'
  5945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5946. (eval $ac_try) 2>&5
  5947. ac_status=$?
  5948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5949. (exit $ac_status); }; }; then
  5950. ac_cv_c_inline=$ac_kw; break
  5951. else
  5952. echo "$as_me: failed program was:" >&5
  5953. sed 's/^/| /' conftest.$ac_ext >&5
  5954. fi
  5955. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5956. done
  5957. fi
  5958. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5959. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5960. case $ac_cv_c_inline in
  5961. inline | yes) ;;
  5962. *)
  5963. case $ac_cv_c_inline in
  5964. no) ac_val=;;
  5965. *) ac_val=$ac_cv_c_inline;;
  5966. esac
  5967. cat >>confdefs.h <<_ACEOF
  5968. #ifndef __cplusplus
  5969. #define inline $ac_val
  5970. #endif
  5971. _ACEOF
  5972. ;;
  5973. esac
  5974. echo "$as_me:$LINENO: checking for long" >&5
  5975. echo $ECHO_N "checking for long... $ECHO_C" >&6
  5976. if test "${ac_cv_type_long+set}" = set; then
  5977. echo $ECHO_N "(cached) $ECHO_C" >&6
  5978. else
  5979. cat >conftest.$ac_ext <<_ACEOF
  5980. /* confdefs.h. */
  5981. _ACEOF
  5982. cat confdefs.h >>conftest.$ac_ext
  5983. cat >>conftest.$ac_ext <<_ACEOF
  5984. /* end confdefs.h. */
  5985. $ac_includes_default
  5986. int
  5987. main ()
  5988. {
  5989. if ((long *) 0)
  5990. return 0;
  5991. if (sizeof (long))
  5992. return 0;
  5993. ;
  5994. return 0;
  5995. }
  5996. _ACEOF
  5997. rm -f conftest.$ac_objext
  5998. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5999. (eval $ac_compile) 2>conftest.er1
  6000. ac_status=$?
  6001. grep -v '^ *+' conftest.er1 >conftest.err
  6002. rm -f conftest.er1
  6003. cat conftest.err >&5
  6004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); } &&
  6006. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6008. (eval $ac_try) 2>&5
  6009. ac_status=$?
  6010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6011. (exit $ac_status); }; } &&
  6012. { ac_try='test -s conftest.$ac_objext'
  6013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6014. (eval $ac_try) 2>&5
  6015. ac_status=$?
  6016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6017. (exit $ac_status); }; }; then
  6018. ac_cv_type_long=yes
  6019. else
  6020. echo "$as_me: failed program was:" >&5
  6021. sed 's/^/| /' conftest.$ac_ext >&5
  6022. ac_cv_type_long=no
  6023. fi
  6024. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6025. fi
  6026. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6027. echo "${ECHO_T}$ac_cv_type_long" >&6
  6028. echo "$as_me:$LINENO: checking size of long" >&5
  6029. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6030. if test "${ac_cv_sizeof_long+set}" = set; then
  6031. echo $ECHO_N "(cached) $ECHO_C" >&6
  6032. else
  6033. if test "$ac_cv_type_long" = yes; then
  6034. # The cast to unsigned long works around a bug in the HP C Compiler
  6035. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6036. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6037. # This bug is HP SR number 8606223364.
  6038. if test "$cross_compiling" = yes; then
  6039. # Depending upon the size, compute the lo and hi bounds.
  6040. cat >conftest.$ac_ext <<_ACEOF
  6041. /* confdefs.h. */
  6042. _ACEOF
  6043. cat confdefs.h >>conftest.$ac_ext
  6044. cat >>conftest.$ac_ext <<_ACEOF
  6045. /* end confdefs.h. */
  6046. $ac_includes_default
  6047. int
  6048. main ()
  6049. {
  6050. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6051. test_array [0] = 0
  6052. ;
  6053. return 0;
  6054. }
  6055. _ACEOF
  6056. rm -f conftest.$ac_objext
  6057. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6058. (eval $ac_compile) 2>conftest.er1
  6059. ac_status=$?
  6060. grep -v '^ *+' conftest.er1 >conftest.err
  6061. rm -f conftest.er1
  6062. cat conftest.err >&5
  6063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6064. (exit $ac_status); } &&
  6065. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6067. (eval $ac_try) 2>&5
  6068. ac_status=$?
  6069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6070. (exit $ac_status); }; } &&
  6071. { ac_try='test -s conftest.$ac_objext'
  6072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6073. (eval $ac_try) 2>&5
  6074. ac_status=$?
  6075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6076. (exit $ac_status); }; }; then
  6077. ac_lo=0 ac_mid=0
  6078. while :; do
  6079. cat >conftest.$ac_ext <<_ACEOF
  6080. /* confdefs.h. */
  6081. _ACEOF
  6082. cat confdefs.h >>conftest.$ac_ext
  6083. cat >>conftest.$ac_ext <<_ACEOF
  6084. /* end confdefs.h. */
  6085. $ac_includes_default
  6086. int
  6087. main ()
  6088. {
  6089. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6090. test_array [0] = 0
  6091. ;
  6092. return 0;
  6093. }
  6094. _ACEOF
  6095. rm -f conftest.$ac_objext
  6096. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6097. (eval $ac_compile) 2>conftest.er1
  6098. ac_status=$?
  6099. grep -v '^ *+' conftest.er1 >conftest.err
  6100. rm -f conftest.er1
  6101. cat conftest.err >&5
  6102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6103. (exit $ac_status); } &&
  6104. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6106. (eval $ac_try) 2>&5
  6107. ac_status=$?
  6108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6109. (exit $ac_status); }; } &&
  6110. { ac_try='test -s conftest.$ac_objext'
  6111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6112. (eval $ac_try) 2>&5
  6113. ac_status=$?
  6114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6115. (exit $ac_status); }; }; then
  6116. ac_hi=$ac_mid; break
  6117. else
  6118. echo "$as_me: failed program was:" >&5
  6119. sed 's/^/| /' conftest.$ac_ext >&5
  6120. ac_lo=`expr $ac_mid + 1`
  6121. if test $ac_lo -le $ac_mid; then
  6122. ac_lo= ac_hi=
  6123. break
  6124. fi
  6125. ac_mid=`expr 2 '*' $ac_mid + 1`
  6126. fi
  6127. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6128. done
  6129. else
  6130. echo "$as_me: failed program was:" >&5
  6131. sed 's/^/| /' conftest.$ac_ext >&5
  6132. cat >conftest.$ac_ext <<_ACEOF
  6133. /* confdefs.h. */
  6134. _ACEOF
  6135. cat confdefs.h >>conftest.$ac_ext
  6136. cat >>conftest.$ac_ext <<_ACEOF
  6137. /* end confdefs.h. */
  6138. $ac_includes_default
  6139. int
  6140. main ()
  6141. {
  6142. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6143. test_array [0] = 0
  6144. ;
  6145. return 0;
  6146. }
  6147. _ACEOF
  6148. rm -f conftest.$ac_objext
  6149. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6150. (eval $ac_compile) 2>conftest.er1
  6151. ac_status=$?
  6152. grep -v '^ *+' conftest.er1 >conftest.err
  6153. rm -f conftest.er1
  6154. cat conftest.err >&5
  6155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6156. (exit $ac_status); } &&
  6157. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6159. (eval $ac_try) 2>&5
  6160. ac_status=$?
  6161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6162. (exit $ac_status); }; } &&
  6163. { ac_try='test -s conftest.$ac_objext'
  6164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6165. (eval $ac_try) 2>&5
  6166. ac_status=$?
  6167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6168. (exit $ac_status); }; }; then
  6169. ac_hi=-1 ac_mid=-1
  6170. while :; do
  6171. cat >conftest.$ac_ext <<_ACEOF
  6172. /* confdefs.h. */
  6173. _ACEOF
  6174. cat confdefs.h >>conftest.$ac_ext
  6175. cat >>conftest.$ac_ext <<_ACEOF
  6176. /* end confdefs.h. */
  6177. $ac_includes_default
  6178. int
  6179. main ()
  6180. {
  6181. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6182. test_array [0] = 0
  6183. ;
  6184. return 0;
  6185. }
  6186. _ACEOF
  6187. rm -f conftest.$ac_objext
  6188. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6189. (eval $ac_compile) 2>conftest.er1
  6190. ac_status=$?
  6191. grep -v '^ *+' conftest.er1 >conftest.err
  6192. rm -f conftest.er1
  6193. cat conftest.err >&5
  6194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6195. (exit $ac_status); } &&
  6196. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6198. (eval $ac_try) 2>&5
  6199. ac_status=$?
  6200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6201. (exit $ac_status); }; } &&
  6202. { ac_try='test -s conftest.$ac_objext'
  6203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6204. (eval $ac_try) 2>&5
  6205. ac_status=$?
  6206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6207. (exit $ac_status); }; }; then
  6208. ac_lo=$ac_mid; break
  6209. else
  6210. echo "$as_me: failed program was:" >&5
  6211. sed 's/^/| /' conftest.$ac_ext >&5
  6212. ac_hi=`expr '(' $ac_mid ')' - 1`
  6213. if test $ac_mid -le $ac_hi; then
  6214. ac_lo= ac_hi=
  6215. break
  6216. fi
  6217. ac_mid=`expr 2 '*' $ac_mid`
  6218. fi
  6219. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6220. done
  6221. else
  6222. echo "$as_me: failed program was:" >&5
  6223. sed 's/^/| /' conftest.$ac_ext >&5
  6224. ac_lo= ac_hi=
  6225. fi
  6226. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6227. fi
  6228. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6229. # Binary search between lo and hi bounds.
  6230. while test "x$ac_lo" != "x$ac_hi"; do
  6231. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6232. cat >conftest.$ac_ext <<_ACEOF
  6233. /* confdefs.h. */
  6234. _ACEOF
  6235. cat confdefs.h >>conftest.$ac_ext
  6236. cat >>conftest.$ac_ext <<_ACEOF
  6237. /* end confdefs.h. */
  6238. $ac_includes_default
  6239. int
  6240. main ()
  6241. {
  6242. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6243. test_array [0] = 0
  6244. ;
  6245. return 0;
  6246. }
  6247. _ACEOF
  6248. rm -f conftest.$ac_objext
  6249. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6250. (eval $ac_compile) 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } &&
  6257. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6259. (eval $ac_try) 2>&5
  6260. ac_status=$?
  6261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6262. (exit $ac_status); }; } &&
  6263. { ac_try='test -s conftest.$ac_objext'
  6264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6265. (eval $ac_try) 2>&5
  6266. ac_status=$?
  6267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6268. (exit $ac_status); }; }; then
  6269. ac_hi=$ac_mid
  6270. else
  6271. echo "$as_me: failed program was:" >&5
  6272. sed 's/^/| /' conftest.$ac_ext >&5
  6273. ac_lo=`expr '(' $ac_mid ')' + 1`
  6274. fi
  6275. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6276. done
  6277. case $ac_lo in
  6278. ?*) ac_cv_sizeof_long=$ac_lo;;
  6279. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6280. See \`config.log' for more details." >&5
  6281. echo "$as_me: error: cannot compute sizeof (long), 77
  6282. See \`config.log' for more details." >&2;}
  6283. { (exit 1); exit 1; }; } ;;
  6284. esac
  6285. else
  6286. if test "$cross_compiling" = yes; then
  6287. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6288. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6289. { (exit 1); exit 1; }; }
  6290. else
  6291. cat >conftest.$ac_ext <<_ACEOF
  6292. /* confdefs.h. */
  6293. _ACEOF
  6294. cat confdefs.h >>conftest.$ac_ext
  6295. cat >>conftest.$ac_ext <<_ACEOF
  6296. /* end confdefs.h. */
  6297. $ac_includes_default
  6298. long longval () { return (long) (sizeof (long)); }
  6299. unsigned long ulongval () { return (long) (sizeof (long)); }
  6300. #include <stdio.h>
  6301. #include <stdlib.h>
  6302. int
  6303. main ()
  6304. {
  6305. FILE *f = fopen ("conftest.val", "w");
  6306. if (! f)
  6307. exit (1);
  6308. if (((long) (sizeof (long))) < 0)
  6309. {
  6310. long i = longval ();
  6311. if (i != ((long) (sizeof (long))))
  6312. exit (1);
  6313. fprintf (f, "%ld\n", i);
  6314. }
  6315. else
  6316. {
  6317. unsigned long i = ulongval ();
  6318. if (i != ((long) (sizeof (long))))
  6319. exit (1);
  6320. fprintf (f, "%lu\n", i);
  6321. }
  6322. exit (ferror (f) || fclose (f) != 0);
  6323. ;
  6324. return 0;
  6325. }
  6326. _ACEOF
  6327. rm -f conftest$ac_exeext
  6328. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6329. (eval $ac_link) 2>&5
  6330. ac_status=$?
  6331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6332. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6334. (eval $ac_try) 2>&5
  6335. ac_status=$?
  6336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6337. (exit $ac_status); }; }; then
  6338. ac_cv_sizeof_long=`cat conftest.val`
  6339. else
  6340. echo "$as_me: program exited with status $ac_status" >&5
  6341. echo "$as_me: failed program was:" >&5
  6342. sed 's/^/| /' conftest.$ac_ext >&5
  6343. ( exit $ac_status )
  6344. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6345. See \`config.log' for more details." >&5
  6346. echo "$as_me: error: cannot compute sizeof (long), 77
  6347. See \`config.log' for more details." >&2;}
  6348. { (exit 1); exit 1; }; }
  6349. fi
  6350. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6351. fi
  6352. fi
  6353. rm -f conftest.val
  6354. else
  6355. ac_cv_sizeof_long=0
  6356. fi
  6357. fi
  6358. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6359. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6360. cat >>confdefs.h <<_ACEOF
  6361. #define SIZEOF_LONG $ac_cv_sizeof_long
  6362. _ACEOF
  6363. echo "$as_me:$LINENO: checking for int" >&5
  6364. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6365. if test "${ac_cv_type_int+set}" = set; then
  6366. echo $ECHO_N "(cached) $ECHO_C" >&6
  6367. else
  6368. cat >conftest.$ac_ext <<_ACEOF
  6369. /* confdefs.h. */
  6370. _ACEOF
  6371. cat confdefs.h >>conftest.$ac_ext
  6372. cat >>conftest.$ac_ext <<_ACEOF
  6373. /* end confdefs.h. */
  6374. $ac_includes_default
  6375. int
  6376. main ()
  6377. {
  6378. if ((int *) 0)
  6379. return 0;
  6380. if (sizeof (int))
  6381. return 0;
  6382. ;
  6383. return 0;
  6384. }
  6385. _ACEOF
  6386. rm -f conftest.$ac_objext
  6387. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6388. (eval $ac_compile) 2>conftest.er1
  6389. ac_status=$?
  6390. grep -v '^ *+' conftest.er1 >conftest.err
  6391. rm -f conftest.er1
  6392. cat conftest.err >&5
  6393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6394. (exit $ac_status); } &&
  6395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6397. (eval $ac_try) 2>&5
  6398. ac_status=$?
  6399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6400. (exit $ac_status); }; } &&
  6401. { ac_try='test -s conftest.$ac_objext'
  6402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6403. (eval $ac_try) 2>&5
  6404. ac_status=$?
  6405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6406. (exit $ac_status); }; }; then
  6407. ac_cv_type_int=yes
  6408. else
  6409. echo "$as_me: failed program was:" >&5
  6410. sed 's/^/| /' conftest.$ac_ext >&5
  6411. ac_cv_type_int=no
  6412. fi
  6413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6414. fi
  6415. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6416. echo "${ECHO_T}$ac_cv_type_int" >&6
  6417. echo "$as_me:$LINENO: checking size of int" >&5
  6418. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6419. if test "${ac_cv_sizeof_int+set}" = set; then
  6420. echo $ECHO_N "(cached) $ECHO_C" >&6
  6421. else
  6422. if test "$ac_cv_type_int" = yes; then
  6423. # The cast to unsigned long works around a bug in the HP C Compiler
  6424. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6425. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6426. # This bug is HP SR number 8606223364.
  6427. if test "$cross_compiling" = yes; then
  6428. # Depending upon the size, compute the lo and hi bounds.
  6429. cat >conftest.$ac_ext <<_ACEOF
  6430. /* confdefs.h. */
  6431. _ACEOF
  6432. cat confdefs.h >>conftest.$ac_ext
  6433. cat >>conftest.$ac_ext <<_ACEOF
  6434. /* end confdefs.h. */
  6435. $ac_includes_default
  6436. int
  6437. main ()
  6438. {
  6439. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6440. test_array [0] = 0
  6441. ;
  6442. return 0;
  6443. }
  6444. _ACEOF
  6445. rm -f conftest.$ac_objext
  6446. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6447. (eval $ac_compile) 2>conftest.er1
  6448. ac_status=$?
  6449. grep -v '^ *+' conftest.er1 >conftest.err
  6450. rm -f conftest.er1
  6451. cat conftest.err >&5
  6452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6453. (exit $ac_status); } &&
  6454. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6456. (eval $ac_try) 2>&5
  6457. ac_status=$?
  6458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6459. (exit $ac_status); }; } &&
  6460. { ac_try='test -s conftest.$ac_objext'
  6461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6462. (eval $ac_try) 2>&5
  6463. ac_status=$?
  6464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6465. (exit $ac_status); }; }; then
  6466. ac_lo=0 ac_mid=0
  6467. while :; do
  6468. cat >conftest.$ac_ext <<_ACEOF
  6469. /* confdefs.h. */
  6470. _ACEOF
  6471. cat confdefs.h >>conftest.$ac_ext
  6472. cat >>conftest.$ac_ext <<_ACEOF
  6473. /* end confdefs.h. */
  6474. $ac_includes_default
  6475. int
  6476. main ()
  6477. {
  6478. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6479. test_array [0] = 0
  6480. ;
  6481. return 0;
  6482. }
  6483. _ACEOF
  6484. rm -f conftest.$ac_objext
  6485. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6486. (eval $ac_compile) 2>conftest.er1
  6487. ac_status=$?
  6488. grep -v '^ *+' conftest.er1 >conftest.err
  6489. rm -f conftest.er1
  6490. cat conftest.err >&5
  6491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6492. (exit $ac_status); } &&
  6493. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6495. (eval $ac_try) 2>&5
  6496. ac_status=$?
  6497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6498. (exit $ac_status); }; } &&
  6499. { ac_try='test -s conftest.$ac_objext'
  6500. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6501. (eval $ac_try) 2>&5
  6502. ac_status=$?
  6503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6504. (exit $ac_status); }; }; then
  6505. ac_hi=$ac_mid; break
  6506. else
  6507. echo "$as_me: failed program was:" >&5
  6508. sed 's/^/| /' conftest.$ac_ext >&5
  6509. ac_lo=`expr $ac_mid + 1`
  6510. if test $ac_lo -le $ac_mid; then
  6511. ac_lo= ac_hi=
  6512. break
  6513. fi
  6514. ac_mid=`expr 2 '*' $ac_mid + 1`
  6515. fi
  6516. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6517. done
  6518. else
  6519. echo "$as_me: failed program was:" >&5
  6520. sed 's/^/| /' conftest.$ac_ext >&5
  6521. cat >conftest.$ac_ext <<_ACEOF
  6522. /* confdefs.h. */
  6523. _ACEOF
  6524. cat confdefs.h >>conftest.$ac_ext
  6525. cat >>conftest.$ac_ext <<_ACEOF
  6526. /* end confdefs.h. */
  6527. $ac_includes_default
  6528. int
  6529. main ()
  6530. {
  6531. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6532. test_array [0] = 0
  6533. ;
  6534. return 0;
  6535. }
  6536. _ACEOF
  6537. rm -f conftest.$ac_objext
  6538. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6539. (eval $ac_compile) 2>conftest.er1
  6540. ac_status=$?
  6541. grep -v '^ *+' conftest.er1 >conftest.err
  6542. rm -f conftest.er1
  6543. cat conftest.err >&5
  6544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6545. (exit $ac_status); } &&
  6546. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6548. (eval $ac_try) 2>&5
  6549. ac_status=$?
  6550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6551. (exit $ac_status); }; } &&
  6552. { ac_try='test -s conftest.$ac_objext'
  6553. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6554. (eval $ac_try) 2>&5
  6555. ac_status=$?
  6556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6557. (exit $ac_status); }; }; then
  6558. ac_hi=-1 ac_mid=-1
  6559. while :; do
  6560. cat >conftest.$ac_ext <<_ACEOF
  6561. /* confdefs.h. */
  6562. _ACEOF
  6563. cat confdefs.h >>conftest.$ac_ext
  6564. cat >>conftest.$ac_ext <<_ACEOF
  6565. /* end confdefs.h. */
  6566. $ac_includes_default
  6567. int
  6568. main ()
  6569. {
  6570. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6571. test_array [0] = 0
  6572. ;
  6573. return 0;
  6574. }
  6575. _ACEOF
  6576. rm -f conftest.$ac_objext
  6577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6578. (eval $ac_compile) 2>conftest.er1
  6579. ac_status=$?
  6580. grep -v '^ *+' conftest.er1 >conftest.err
  6581. rm -f conftest.er1
  6582. cat conftest.err >&5
  6583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6584. (exit $ac_status); } &&
  6585. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6587. (eval $ac_try) 2>&5
  6588. ac_status=$?
  6589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6590. (exit $ac_status); }; } &&
  6591. { ac_try='test -s conftest.$ac_objext'
  6592. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6593. (eval $ac_try) 2>&5
  6594. ac_status=$?
  6595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6596. (exit $ac_status); }; }; then
  6597. ac_lo=$ac_mid; break
  6598. else
  6599. echo "$as_me: failed program was:" >&5
  6600. sed 's/^/| /' conftest.$ac_ext >&5
  6601. ac_hi=`expr '(' $ac_mid ')' - 1`
  6602. if test $ac_mid -le $ac_hi; then
  6603. ac_lo= ac_hi=
  6604. break
  6605. fi
  6606. ac_mid=`expr 2 '*' $ac_mid`
  6607. fi
  6608. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6609. done
  6610. else
  6611. echo "$as_me: failed program was:" >&5
  6612. sed 's/^/| /' conftest.$ac_ext >&5
  6613. ac_lo= ac_hi=
  6614. fi
  6615. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6616. fi
  6617. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6618. # Binary search between lo and hi bounds.
  6619. while test "x$ac_lo" != "x$ac_hi"; do
  6620. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6621. cat >conftest.$ac_ext <<_ACEOF
  6622. /* confdefs.h. */
  6623. _ACEOF
  6624. cat confdefs.h >>conftest.$ac_ext
  6625. cat >>conftest.$ac_ext <<_ACEOF
  6626. /* end confdefs.h. */
  6627. $ac_includes_default
  6628. int
  6629. main ()
  6630. {
  6631. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6632. test_array [0] = 0
  6633. ;
  6634. return 0;
  6635. }
  6636. _ACEOF
  6637. rm -f conftest.$ac_objext
  6638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6639. (eval $ac_compile) 2>conftest.er1
  6640. ac_status=$?
  6641. grep -v '^ *+' conftest.er1 >conftest.err
  6642. rm -f conftest.er1
  6643. cat conftest.err >&5
  6644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6645. (exit $ac_status); } &&
  6646. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6648. (eval $ac_try) 2>&5
  6649. ac_status=$?
  6650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6651. (exit $ac_status); }; } &&
  6652. { ac_try='test -s conftest.$ac_objext'
  6653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6654. (eval $ac_try) 2>&5
  6655. ac_status=$?
  6656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6657. (exit $ac_status); }; }; then
  6658. ac_hi=$ac_mid
  6659. else
  6660. echo "$as_me: failed program was:" >&5
  6661. sed 's/^/| /' conftest.$ac_ext >&5
  6662. ac_lo=`expr '(' $ac_mid ')' + 1`
  6663. fi
  6664. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6665. done
  6666. case $ac_lo in
  6667. ?*) ac_cv_sizeof_int=$ac_lo;;
  6668. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6669. See \`config.log' for more details." >&5
  6670. echo "$as_me: error: cannot compute sizeof (int), 77
  6671. See \`config.log' for more details." >&2;}
  6672. { (exit 1); exit 1; }; } ;;
  6673. esac
  6674. else
  6675. if test "$cross_compiling" = yes; then
  6676. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6677. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6678. { (exit 1); exit 1; }; }
  6679. else
  6680. cat >conftest.$ac_ext <<_ACEOF
  6681. /* confdefs.h. */
  6682. _ACEOF
  6683. cat confdefs.h >>conftest.$ac_ext
  6684. cat >>conftest.$ac_ext <<_ACEOF
  6685. /* end confdefs.h. */
  6686. $ac_includes_default
  6687. long longval () { return (long) (sizeof (int)); }
  6688. unsigned long ulongval () { return (long) (sizeof (int)); }
  6689. #include <stdio.h>
  6690. #include <stdlib.h>
  6691. int
  6692. main ()
  6693. {
  6694. FILE *f = fopen ("conftest.val", "w");
  6695. if (! f)
  6696. exit (1);
  6697. if (((long) (sizeof (int))) < 0)
  6698. {
  6699. long i = longval ();
  6700. if (i != ((long) (sizeof (int))))
  6701. exit (1);
  6702. fprintf (f, "%ld\n", i);
  6703. }
  6704. else
  6705. {
  6706. unsigned long i = ulongval ();
  6707. if (i != ((long) (sizeof (int))))
  6708. exit (1);
  6709. fprintf (f, "%lu\n", i);
  6710. }
  6711. exit (ferror (f) || fclose (f) != 0);
  6712. ;
  6713. return 0;
  6714. }
  6715. _ACEOF
  6716. rm -f conftest$ac_exeext
  6717. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6718. (eval $ac_link) 2>&5
  6719. ac_status=$?
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6723. (eval $ac_try) 2>&5
  6724. ac_status=$?
  6725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6726. (exit $ac_status); }; }; then
  6727. ac_cv_sizeof_int=`cat conftest.val`
  6728. else
  6729. echo "$as_me: program exited with status $ac_status" >&5
  6730. echo "$as_me: failed program was:" >&5
  6731. sed 's/^/| /' conftest.$ac_ext >&5
  6732. ( exit $ac_status )
  6733. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6734. See \`config.log' for more details." >&5
  6735. echo "$as_me: error: cannot compute sizeof (int), 77
  6736. See \`config.log' for more details." >&2;}
  6737. { (exit 1); exit 1; }; }
  6738. fi
  6739. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6740. fi
  6741. fi
  6742. rm -f conftest.val
  6743. else
  6744. ac_cv_sizeof_int=0
  6745. fi
  6746. fi
  6747. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6748. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6749. cat >>confdefs.h <<_ACEOF
  6750. #define SIZEOF_INT $ac_cv_sizeof_int
  6751. _ACEOF
  6752. echo "$as_me:$LINENO: checking for short" >&5
  6753. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6754. if test "${ac_cv_type_short+set}" = set; then
  6755. echo $ECHO_N "(cached) $ECHO_C" >&6
  6756. else
  6757. cat >conftest.$ac_ext <<_ACEOF
  6758. /* confdefs.h. */
  6759. _ACEOF
  6760. cat confdefs.h >>conftest.$ac_ext
  6761. cat >>conftest.$ac_ext <<_ACEOF
  6762. /* end confdefs.h. */
  6763. $ac_includes_default
  6764. int
  6765. main ()
  6766. {
  6767. if ((short *) 0)
  6768. return 0;
  6769. if (sizeof (short))
  6770. return 0;
  6771. ;
  6772. return 0;
  6773. }
  6774. _ACEOF
  6775. rm -f conftest.$ac_objext
  6776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6777. (eval $ac_compile) 2>conftest.er1
  6778. ac_status=$?
  6779. grep -v '^ *+' conftest.er1 >conftest.err
  6780. rm -f conftest.er1
  6781. cat conftest.err >&5
  6782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6783. (exit $ac_status); } &&
  6784. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6786. (eval $ac_try) 2>&5
  6787. ac_status=$?
  6788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6789. (exit $ac_status); }; } &&
  6790. { ac_try='test -s conftest.$ac_objext'
  6791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6792. (eval $ac_try) 2>&5
  6793. ac_status=$?
  6794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6795. (exit $ac_status); }; }; then
  6796. ac_cv_type_short=yes
  6797. else
  6798. echo "$as_me: failed program was:" >&5
  6799. sed 's/^/| /' conftest.$ac_ext >&5
  6800. ac_cv_type_short=no
  6801. fi
  6802. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6803. fi
  6804. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6805. echo "${ECHO_T}$ac_cv_type_short" >&6
  6806. echo "$as_me:$LINENO: checking size of short" >&5
  6807. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6808. if test "${ac_cv_sizeof_short+set}" = set; then
  6809. echo $ECHO_N "(cached) $ECHO_C" >&6
  6810. else
  6811. if test "$ac_cv_type_short" = yes; then
  6812. # The cast to unsigned long works around a bug in the HP C Compiler
  6813. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6814. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6815. # This bug is HP SR number 8606223364.
  6816. if test "$cross_compiling" = yes; then
  6817. # Depending upon the size, compute the lo and hi bounds.
  6818. cat >conftest.$ac_ext <<_ACEOF
  6819. /* confdefs.h. */
  6820. _ACEOF
  6821. cat confdefs.h >>conftest.$ac_ext
  6822. cat >>conftest.$ac_ext <<_ACEOF
  6823. /* end confdefs.h. */
  6824. $ac_includes_default
  6825. int
  6826. main ()
  6827. {
  6828. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6829. test_array [0] = 0
  6830. ;
  6831. return 0;
  6832. }
  6833. _ACEOF
  6834. rm -f conftest.$ac_objext
  6835. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6836. (eval $ac_compile) 2>conftest.er1
  6837. ac_status=$?
  6838. grep -v '^ *+' conftest.er1 >conftest.err
  6839. rm -f conftest.er1
  6840. cat conftest.err >&5
  6841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6842. (exit $ac_status); } &&
  6843. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6845. (eval $ac_try) 2>&5
  6846. ac_status=$?
  6847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6848. (exit $ac_status); }; } &&
  6849. { ac_try='test -s conftest.$ac_objext'
  6850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6851. (eval $ac_try) 2>&5
  6852. ac_status=$?
  6853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6854. (exit $ac_status); }; }; then
  6855. ac_lo=0 ac_mid=0
  6856. while :; do
  6857. cat >conftest.$ac_ext <<_ACEOF
  6858. /* confdefs.h. */
  6859. _ACEOF
  6860. cat confdefs.h >>conftest.$ac_ext
  6861. cat >>conftest.$ac_ext <<_ACEOF
  6862. /* end confdefs.h. */
  6863. $ac_includes_default
  6864. int
  6865. main ()
  6866. {
  6867. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6868. test_array [0] = 0
  6869. ;
  6870. return 0;
  6871. }
  6872. _ACEOF
  6873. rm -f conftest.$ac_objext
  6874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6875. (eval $ac_compile) 2>conftest.er1
  6876. ac_status=$?
  6877. grep -v '^ *+' conftest.er1 >conftest.err
  6878. rm -f conftest.er1
  6879. cat conftest.err >&5
  6880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6881. (exit $ac_status); } &&
  6882. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6884. (eval $ac_try) 2>&5
  6885. ac_status=$?
  6886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6887. (exit $ac_status); }; } &&
  6888. { ac_try='test -s conftest.$ac_objext'
  6889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6890. (eval $ac_try) 2>&5
  6891. ac_status=$?
  6892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6893. (exit $ac_status); }; }; then
  6894. ac_hi=$ac_mid; break
  6895. else
  6896. echo "$as_me: failed program was:" >&5
  6897. sed 's/^/| /' conftest.$ac_ext >&5
  6898. ac_lo=`expr $ac_mid + 1`
  6899. if test $ac_lo -le $ac_mid; then
  6900. ac_lo= ac_hi=
  6901. break
  6902. fi
  6903. ac_mid=`expr 2 '*' $ac_mid + 1`
  6904. fi
  6905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6906. done
  6907. else
  6908. echo "$as_me: failed program was:" >&5
  6909. sed 's/^/| /' conftest.$ac_ext >&5
  6910. cat >conftest.$ac_ext <<_ACEOF
  6911. /* confdefs.h. */
  6912. _ACEOF
  6913. cat confdefs.h >>conftest.$ac_ext
  6914. cat >>conftest.$ac_ext <<_ACEOF
  6915. /* end confdefs.h. */
  6916. $ac_includes_default
  6917. int
  6918. main ()
  6919. {
  6920. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6921. test_array [0] = 0
  6922. ;
  6923. return 0;
  6924. }
  6925. _ACEOF
  6926. rm -f conftest.$ac_objext
  6927. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6928. (eval $ac_compile) 2>conftest.er1
  6929. ac_status=$?
  6930. grep -v '^ *+' conftest.er1 >conftest.err
  6931. rm -f conftest.er1
  6932. cat conftest.err >&5
  6933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6934. (exit $ac_status); } &&
  6935. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6937. (eval $ac_try) 2>&5
  6938. ac_status=$?
  6939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6940. (exit $ac_status); }; } &&
  6941. { ac_try='test -s conftest.$ac_objext'
  6942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6943. (eval $ac_try) 2>&5
  6944. ac_status=$?
  6945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6946. (exit $ac_status); }; }; then
  6947. ac_hi=-1 ac_mid=-1
  6948. while :; do
  6949. cat >conftest.$ac_ext <<_ACEOF
  6950. /* confdefs.h. */
  6951. _ACEOF
  6952. cat confdefs.h >>conftest.$ac_ext
  6953. cat >>conftest.$ac_ext <<_ACEOF
  6954. /* end confdefs.h. */
  6955. $ac_includes_default
  6956. int
  6957. main ()
  6958. {
  6959. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6960. test_array [0] = 0
  6961. ;
  6962. return 0;
  6963. }
  6964. _ACEOF
  6965. rm -f conftest.$ac_objext
  6966. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6967. (eval $ac_compile) 2>conftest.er1
  6968. ac_status=$?
  6969. grep -v '^ *+' conftest.er1 >conftest.err
  6970. rm -f conftest.er1
  6971. cat conftest.err >&5
  6972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6973. (exit $ac_status); } &&
  6974. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6976. (eval $ac_try) 2>&5
  6977. ac_status=$?
  6978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6979. (exit $ac_status); }; } &&
  6980. { ac_try='test -s conftest.$ac_objext'
  6981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6982. (eval $ac_try) 2>&5
  6983. ac_status=$?
  6984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6985. (exit $ac_status); }; }; then
  6986. ac_lo=$ac_mid; break
  6987. else
  6988. echo "$as_me: failed program was:" >&5
  6989. sed 's/^/| /' conftest.$ac_ext >&5
  6990. ac_hi=`expr '(' $ac_mid ')' - 1`
  6991. if test $ac_mid -le $ac_hi; then
  6992. ac_lo= ac_hi=
  6993. break
  6994. fi
  6995. ac_mid=`expr 2 '*' $ac_mid`
  6996. fi
  6997. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6998. done
  6999. else
  7000. echo "$as_me: failed program was:" >&5
  7001. sed 's/^/| /' conftest.$ac_ext >&5
  7002. ac_lo= ac_hi=
  7003. fi
  7004. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7005. fi
  7006. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7007. # Binary search between lo and hi bounds.
  7008. while test "x$ac_lo" != "x$ac_hi"; do
  7009. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7010. cat >conftest.$ac_ext <<_ACEOF
  7011. /* confdefs.h. */
  7012. _ACEOF
  7013. cat confdefs.h >>conftest.$ac_ext
  7014. cat >>conftest.$ac_ext <<_ACEOF
  7015. /* end confdefs.h. */
  7016. $ac_includes_default
  7017. int
  7018. main ()
  7019. {
  7020. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  7021. test_array [0] = 0
  7022. ;
  7023. return 0;
  7024. }
  7025. _ACEOF
  7026. rm -f conftest.$ac_objext
  7027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7028. (eval $ac_compile) 2>conftest.er1
  7029. ac_status=$?
  7030. grep -v '^ *+' conftest.er1 >conftest.err
  7031. rm -f conftest.er1
  7032. cat conftest.err >&5
  7033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. (exit $ac_status); } &&
  7035. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7037. (eval $ac_try) 2>&5
  7038. ac_status=$?
  7039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7040. (exit $ac_status); }; } &&
  7041. { ac_try='test -s conftest.$ac_objext'
  7042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7043. (eval $ac_try) 2>&5
  7044. ac_status=$?
  7045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7046. (exit $ac_status); }; }; then
  7047. ac_hi=$ac_mid
  7048. else
  7049. echo "$as_me: failed program was:" >&5
  7050. sed 's/^/| /' conftest.$ac_ext >&5
  7051. ac_lo=`expr '(' $ac_mid ')' + 1`
  7052. fi
  7053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7054. done
  7055. case $ac_lo in
  7056. ?*) ac_cv_sizeof_short=$ac_lo;;
  7057. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7058. See \`config.log' for more details." >&5
  7059. echo "$as_me: error: cannot compute sizeof (short), 77
  7060. See \`config.log' for more details." >&2;}
  7061. { (exit 1); exit 1; }; } ;;
  7062. esac
  7063. else
  7064. if test "$cross_compiling" = yes; then
  7065. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7066. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7067. { (exit 1); exit 1; }; }
  7068. else
  7069. cat >conftest.$ac_ext <<_ACEOF
  7070. /* confdefs.h. */
  7071. _ACEOF
  7072. cat confdefs.h >>conftest.$ac_ext
  7073. cat >>conftest.$ac_ext <<_ACEOF
  7074. /* end confdefs.h. */
  7075. $ac_includes_default
  7076. long longval () { return (long) (sizeof (short)); }
  7077. unsigned long ulongval () { return (long) (sizeof (short)); }
  7078. #include <stdio.h>
  7079. #include <stdlib.h>
  7080. int
  7081. main ()
  7082. {
  7083. FILE *f = fopen ("conftest.val", "w");
  7084. if (! f)
  7085. exit (1);
  7086. if (((long) (sizeof (short))) < 0)
  7087. {
  7088. long i = longval ();
  7089. if (i != ((long) (sizeof (short))))
  7090. exit (1);
  7091. fprintf (f, "%ld\n", i);
  7092. }
  7093. else
  7094. {
  7095. unsigned long i = ulongval ();
  7096. if (i != ((long) (sizeof (short))))
  7097. exit (1);
  7098. fprintf (f, "%lu\n", i);
  7099. }
  7100. exit (ferror (f) || fclose (f) != 0);
  7101. ;
  7102. return 0;
  7103. }
  7104. _ACEOF
  7105. rm -f conftest$ac_exeext
  7106. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7107. (eval $ac_link) 2>&5
  7108. ac_status=$?
  7109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7110. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7112. (eval $ac_try) 2>&5
  7113. ac_status=$?
  7114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7115. (exit $ac_status); }; }; then
  7116. ac_cv_sizeof_short=`cat conftest.val`
  7117. else
  7118. echo "$as_me: program exited with status $ac_status" >&5
  7119. echo "$as_me: failed program was:" >&5
  7120. sed 's/^/| /' conftest.$ac_ext >&5
  7121. ( exit $ac_status )
  7122. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7123. See \`config.log' for more details." >&5
  7124. echo "$as_me: error: cannot compute sizeof (short), 77
  7125. See \`config.log' for more details." >&2;}
  7126. { (exit 1); exit 1; }; }
  7127. fi
  7128. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7129. fi
  7130. fi
  7131. rm -f conftest.val
  7132. else
  7133. ac_cv_sizeof_short=0
  7134. fi
  7135. fi
  7136. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7137. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7138. cat >>confdefs.h <<_ACEOF
  7139. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7140. _ACEOF
  7141. #checkpoint
  7142. cat >confcache <<\_ACEOF
  7143. # This file is a shell script that caches the results of configure
  7144. # tests run on this system so they can be shared between configure
  7145. # scripts and configure runs, see configure's option --config-cache.
  7146. # It is not useful on other systems. If it contains results you don't
  7147. # want to keep, you may remove or edit it.
  7148. #
  7149. # config.status only pays attention to the cache file if you give it
  7150. # the --recheck option to rerun configure.
  7151. #
  7152. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7153. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7154. # following values.
  7155. _ACEOF
  7156. # The following way of writing the cache mishandles newlines in values,
  7157. # but we know of no workaround that is simple, portable, and efficient.
  7158. # So, don't put newlines in cache variables' values.
  7159. # Ultrix sh set writes to stderr and can't be redirected directly,
  7160. # and sets the high bit in the cache file unless we assign to the vars.
  7161. {
  7162. (set) 2>&1 |
  7163. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7164. *ac_space=\ *)
  7165. # `set' does not quote correctly, so add quotes (double-quote
  7166. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7167. sed -n \
  7168. "s/'/'\\\\''/g;
  7169. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7170. ;;
  7171. *)
  7172. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7173. sed -n \
  7174. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7175. ;;
  7176. esac;
  7177. } |
  7178. sed '
  7179. t clear
  7180. : clear
  7181. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7182. t end
  7183. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7184. : end' >>confcache
  7185. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7186. if test -w $cache_file; then
  7187. test "x$cache_file" != "x/dev/null"
  7188. cat confcache >$cache_file
  7189. else
  7190. echo "not updating unwritable cache $cache_file"
  7191. fi
  7192. fi
  7193. rm -f confcache
  7194. echo "$as_me:$LINENO: checking for working volatile" >&5
  7195. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7196. if test "${ac_cv_c_volatile+set}" = set; then
  7197. echo $ECHO_N "(cached) $ECHO_C" >&6
  7198. else
  7199. cat >conftest.$ac_ext <<_ACEOF
  7200. /* confdefs.h. */
  7201. _ACEOF
  7202. cat confdefs.h >>conftest.$ac_ext
  7203. cat >>conftest.$ac_ext <<_ACEOF
  7204. /* end confdefs.h. */
  7205. int
  7206. main ()
  7207. {
  7208. volatile int x;
  7209. int * volatile y;
  7210. ;
  7211. return 0;
  7212. }
  7213. _ACEOF
  7214. rm -f conftest.$ac_objext
  7215. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7216. (eval $ac_compile) 2>conftest.er1
  7217. ac_status=$?
  7218. grep -v '^ *+' conftest.er1 >conftest.err
  7219. rm -f conftest.er1
  7220. cat conftest.err >&5
  7221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7222. (exit $ac_status); } &&
  7223. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7225. (eval $ac_try) 2>&5
  7226. ac_status=$?
  7227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7228. (exit $ac_status); }; } &&
  7229. { ac_try='test -s conftest.$ac_objext'
  7230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7231. (eval $ac_try) 2>&5
  7232. ac_status=$?
  7233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7234. (exit $ac_status); }; }; then
  7235. ac_cv_c_volatile=yes
  7236. else
  7237. echo "$as_me: failed program was:" >&5
  7238. sed 's/^/| /' conftest.$ac_ext >&5
  7239. ac_cv_c_volatile=no
  7240. fi
  7241. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7242. fi
  7243. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7244. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7245. if test $ac_cv_c_volatile = no; then
  7246. cat >>confdefs.h <<\_ACEOF
  7247. #define volatile
  7248. _ACEOF
  7249. fi
  7250. if test $ac_cv_c_compiler_gnu = yes; then
  7251. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7252. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7253. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7254. echo $ECHO_N "(cached) $ECHO_C" >&6
  7255. else
  7256. ac_pattern="Autoconf.*'x'"
  7257. cat >conftest.$ac_ext <<_ACEOF
  7258. /* confdefs.h. */
  7259. _ACEOF
  7260. cat confdefs.h >>conftest.$ac_ext
  7261. cat >>conftest.$ac_ext <<_ACEOF
  7262. /* end confdefs.h. */
  7263. #include <sgtty.h>
  7264. Autoconf TIOCGETP
  7265. _ACEOF
  7266. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7267. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7268. ac_cv_prog_gcc_traditional=yes
  7269. else
  7270. ac_cv_prog_gcc_traditional=no
  7271. fi
  7272. rm -f conftest*
  7273. if test $ac_cv_prog_gcc_traditional = no; then
  7274. cat >conftest.$ac_ext <<_ACEOF
  7275. /* confdefs.h. */
  7276. _ACEOF
  7277. cat confdefs.h >>conftest.$ac_ext
  7278. cat >>conftest.$ac_ext <<_ACEOF
  7279. /* end confdefs.h. */
  7280. #include <termio.h>
  7281. Autoconf TCGETA
  7282. _ACEOF
  7283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7284. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7285. ac_cv_prog_gcc_traditional=yes
  7286. fi
  7287. rm -f conftest*
  7288. fi
  7289. fi
  7290. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7291. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7292. if test $ac_cv_prog_gcc_traditional = yes; then
  7293. CC="$CC -traditional"
  7294. fi
  7295. fi
  7296. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7297. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7298. if test "${ac_cv_struct_tm+set}" = set; then
  7299. echo $ECHO_N "(cached) $ECHO_C" >&6
  7300. else
  7301. cat >conftest.$ac_ext <<_ACEOF
  7302. /* confdefs.h. */
  7303. _ACEOF
  7304. cat confdefs.h >>conftest.$ac_ext
  7305. cat >>conftest.$ac_ext <<_ACEOF
  7306. /* end confdefs.h. */
  7307. #include <sys/types.h>
  7308. #include <time.h>
  7309. int
  7310. main ()
  7311. {
  7312. struct tm *tp; tp->tm_sec;
  7313. ;
  7314. return 0;
  7315. }
  7316. _ACEOF
  7317. rm -f conftest.$ac_objext
  7318. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7319. (eval $ac_compile) 2>conftest.er1
  7320. ac_status=$?
  7321. grep -v '^ *+' conftest.er1 >conftest.err
  7322. rm -f conftest.er1
  7323. cat conftest.err >&5
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. (exit $ac_status); } &&
  7326. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7328. (eval $ac_try) 2>&5
  7329. ac_status=$?
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. (exit $ac_status); }; } &&
  7332. { ac_try='test -s conftest.$ac_objext'
  7333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7334. (eval $ac_try) 2>&5
  7335. ac_status=$?
  7336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); }; }; then
  7338. ac_cv_struct_tm=time.h
  7339. else
  7340. echo "$as_me: failed program was:" >&5
  7341. sed 's/^/| /' conftest.$ac_ext >&5
  7342. ac_cv_struct_tm=sys/time.h
  7343. fi
  7344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7345. fi
  7346. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7347. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7348. if test $ac_cv_struct_tm = sys/time.h; then
  7349. cat >>confdefs.h <<\_ACEOF
  7350. #define TM_IN_SYS_TIME 1
  7351. _ACEOF
  7352. fi
  7353. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7354. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7355. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7356. echo $ECHO_N "(cached) $ECHO_C" >&6
  7357. else
  7358. cat >conftest.$ac_ext <<_ACEOF
  7359. /* confdefs.h. */
  7360. _ACEOF
  7361. cat confdefs.h >>conftest.$ac_ext
  7362. cat >>conftest.$ac_ext <<_ACEOF
  7363. /* end confdefs.h. */
  7364. #include <sys/types.h>
  7365. #include <$ac_cv_struct_tm>
  7366. int
  7367. main ()
  7368. {
  7369. static struct tm ac_aggr;
  7370. if (ac_aggr.tm_zone)
  7371. return 0;
  7372. ;
  7373. return 0;
  7374. }
  7375. _ACEOF
  7376. rm -f conftest.$ac_objext
  7377. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7378. (eval $ac_compile) 2>conftest.er1
  7379. ac_status=$?
  7380. grep -v '^ *+' conftest.er1 >conftest.err
  7381. rm -f conftest.er1
  7382. cat conftest.err >&5
  7383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7384. (exit $ac_status); } &&
  7385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7387. (eval $ac_try) 2>&5
  7388. ac_status=$?
  7389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7390. (exit $ac_status); }; } &&
  7391. { ac_try='test -s conftest.$ac_objext'
  7392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7393. (eval $ac_try) 2>&5
  7394. ac_status=$?
  7395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7396. (exit $ac_status); }; }; then
  7397. ac_cv_member_struct_tm_tm_zone=yes
  7398. else
  7399. echo "$as_me: failed program was:" >&5
  7400. sed 's/^/| /' conftest.$ac_ext >&5
  7401. cat >conftest.$ac_ext <<_ACEOF
  7402. /* confdefs.h. */
  7403. _ACEOF
  7404. cat confdefs.h >>conftest.$ac_ext
  7405. cat >>conftest.$ac_ext <<_ACEOF
  7406. /* end confdefs.h. */
  7407. #include <sys/types.h>
  7408. #include <$ac_cv_struct_tm>
  7409. int
  7410. main ()
  7411. {
  7412. static struct tm ac_aggr;
  7413. if (sizeof ac_aggr.tm_zone)
  7414. return 0;
  7415. ;
  7416. return 0;
  7417. }
  7418. _ACEOF
  7419. rm -f conftest.$ac_objext
  7420. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7421. (eval $ac_compile) 2>conftest.er1
  7422. ac_status=$?
  7423. grep -v '^ *+' conftest.er1 >conftest.err
  7424. rm -f conftest.er1
  7425. cat conftest.err >&5
  7426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7427. (exit $ac_status); } &&
  7428. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7430. (eval $ac_try) 2>&5
  7431. ac_status=$?
  7432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7433. (exit $ac_status); }; } &&
  7434. { ac_try='test -s conftest.$ac_objext'
  7435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7436. (eval $ac_try) 2>&5
  7437. ac_status=$?
  7438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. (exit $ac_status); }; }; then
  7440. ac_cv_member_struct_tm_tm_zone=yes
  7441. else
  7442. echo "$as_me: failed program was:" >&5
  7443. sed 's/^/| /' conftest.$ac_ext >&5
  7444. ac_cv_member_struct_tm_tm_zone=no
  7445. fi
  7446. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7447. fi
  7448. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7449. fi
  7450. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7451. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7452. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7453. cat >>confdefs.h <<_ACEOF
  7454. #define HAVE_STRUCT_TM_TM_ZONE 1
  7455. _ACEOF
  7456. fi
  7457. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7458. cat >>confdefs.h <<\_ACEOF
  7459. #define HAVE_TM_ZONE 1
  7460. _ACEOF
  7461. else
  7462. echo "$as_me:$LINENO: checking for tzname" >&5
  7463. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7464. if test "${ac_cv_var_tzname+set}" = set; then
  7465. echo $ECHO_N "(cached) $ECHO_C" >&6
  7466. else
  7467. cat >conftest.$ac_ext <<_ACEOF
  7468. /* confdefs.h. */
  7469. _ACEOF
  7470. cat confdefs.h >>conftest.$ac_ext
  7471. cat >>conftest.$ac_ext <<_ACEOF
  7472. /* end confdefs.h. */
  7473. #include <time.h>
  7474. #ifndef tzname /* For SGI. */
  7475. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7476. #endif
  7477. int
  7478. main ()
  7479. {
  7480. atoi(*tzname);
  7481. ;
  7482. return 0;
  7483. }
  7484. _ACEOF
  7485. rm -f conftest.$ac_objext conftest$ac_exeext
  7486. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7487. (eval $ac_link) 2>conftest.er1
  7488. ac_status=$?
  7489. grep -v '^ *+' conftest.er1 >conftest.err
  7490. rm -f conftest.er1
  7491. cat conftest.err >&5
  7492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7493. (exit $ac_status); } &&
  7494. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7496. (eval $ac_try) 2>&5
  7497. ac_status=$?
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. (exit $ac_status); }; } &&
  7500. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  7506. ac_cv_var_tzname=yes
  7507. else
  7508. echo "$as_me: failed program was:" >&5
  7509. sed 's/^/| /' conftest.$ac_ext >&5
  7510. ac_cv_var_tzname=no
  7511. fi
  7512. rm -f conftest.err conftest.$ac_objext \
  7513. conftest$ac_exeext conftest.$ac_ext
  7514. fi
  7515. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7516. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7517. if test $ac_cv_var_tzname = yes; then
  7518. cat >>confdefs.h <<\_ACEOF
  7519. #define HAVE_TZNAME 1
  7520. _ACEOF
  7521. fi
  7522. fi
  7523. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7524. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7525. if test "${ac_cv_struct_tm+set}" = set; then
  7526. echo $ECHO_N "(cached) $ECHO_C" >&6
  7527. else
  7528. cat >conftest.$ac_ext <<_ACEOF
  7529. /* confdefs.h. */
  7530. _ACEOF
  7531. cat confdefs.h >>conftest.$ac_ext
  7532. cat >>conftest.$ac_ext <<_ACEOF
  7533. /* end confdefs.h. */
  7534. #include <sys/types.h>
  7535. #include <time.h>
  7536. int
  7537. main ()
  7538. {
  7539. struct tm *tp; tp->tm_sec;
  7540. ;
  7541. return 0;
  7542. }
  7543. _ACEOF
  7544. rm -f conftest.$ac_objext
  7545. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7546. (eval $ac_compile) 2>conftest.er1
  7547. ac_status=$?
  7548. grep -v '^ *+' conftest.er1 >conftest.err
  7549. rm -f conftest.er1
  7550. cat conftest.err >&5
  7551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7552. (exit $ac_status); } &&
  7553. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7555. (eval $ac_try) 2>&5
  7556. ac_status=$?
  7557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7558. (exit $ac_status); }; } &&
  7559. { ac_try='test -s conftest.$ac_objext'
  7560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7561. (eval $ac_try) 2>&5
  7562. ac_status=$?
  7563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7564. (exit $ac_status); }; }; then
  7565. ac_cv_struct_tm=time.h
  7566. else
  7567. echo "$as_me: failed program was:" >&5
  7568. sed 's/^/| /' conftest.$ac_ext >&5
  7569. ac_cv_struct_tm=sys/time.h
  7570. fi
  7571. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7572. fi
  7573. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7574. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7575. if test $ac_cv_struct_tm = sys/time.h; then
  7576. cat >>confdefs.h <<\_ACEOF
  7577. #define TM_IN_SYS_TIME 1
  7578. _ACEOF
  7579. fi
  7580. #checkpoint
  7581. cat >confcache <<\_ACEOF
  7582. # This file is a shell script that caches the results of configure
  7583. # tests run on this system so they can be shared between configure
  7584. # scripts and configure runs, see configure's option --config-cache.
  7585. # It is not useful on other systems. If it contains results you don't
  7586. # want to keep, you may remove or edit it.
  7587. #
  7588. # config.status only pays attention to the cache file if you give it
  7589. # the --recheck option to rerun configure.
  7590. #
  7591. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7592. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7593. # following values.
  7594. _ACEOF
  7595. # The following way of writing the cache mishandles newlines in values,
  7596. # but we know of no workaround that is simple, portable, and efficient.
  7597. # So, don't put newlines in cache variables' values.
  7598. # Ultrix sh set writes to stderr and can't be redirected directly,
  7599. # and sets the high bit in the cache file unless we assign to the vars.
  7600. {
  7601. (set) 2>&1 |
  7602. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7603. *ac_space=\ *)
  7604. # `set' does not quote correctly, so add quotes (double-quote
  7605. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7606. sed -n \
  7607. "s/'/'\\\\''/g;
  7608. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7609. ;;
  7610. *)
  7611. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7612. sed -n \
  7613. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7614. ;;
  7615. esac;
  7616. } |
  7617. sed '
  7618. t clear
  7619. : clear
  7620. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7621. t end
  7622. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7623. : end' >>confcache
  7624. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7625. if test -w $cache_file; then
  7626. test "x$cache_file" != "x/dev/null"
  7627. cat confcache >$cache_file
  7628. else
  7629. echo "not updating unwritable cache $cache_file"
  7630. fi
  7631. fi
  7632. rm -f confcache
  7633. # Check for IPv6 support
  7634. #EGG_IPV6_SUPPORTED
  7635. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7636. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7637. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7638. if test "${enable_ipv6+set}" = set; then
  7639. enableval="$enable_ipv6"
  7640. ac_cv_dipv6="yes"
  7641. echo "$as_me:$LINENO: result: yes" >&5
  7642. echo "${ECHO_T}yes" >&6
  7643. else
  7644. ac_cv_dipv6="no"
  7645. if test "$egg_cv_ipv6_supported" = "no"; then
  7646. ac_cv_dipv6="no"
  7647. fi
  7648. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7649. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7650. fi;
  7651. if test "$ac_cv_dipv6" = "no"; then
  7652. cat >>confdefs.h <<\_ACEOF
  7653. #define USE_IPV6 1
  7654. _ACEOF
  7655. fi
  7656. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7657. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7658. if test "${egg_cv_socklen_t+set}" = set; then
  7659. echo $ECHO_N "(cached) $ECHO_C" >&6
  7660. else
  7661. if test "$cross_compiling" = yes; then
  7662. egg_cv_socklen_t=no
  7663. else
  7664. cat >conftest.$ac_ext <<_ACEOF
  7665. /* confdefs.h. */
  7666. _ACEOF
  7667. cat confdefs.h >>conftest.$ac_ext
  7668. cat >>conftest.$ac_ext <<_ACEOF
  7669. /* end confdefs.h. */
  7670. #include <unistd.h>
  7671. #include <sys/types.h>
  7672. #include <sys/socket.h>
  7673. #include <netinet/in.h>
  7674. #include <arpa/inet.h>
  7675. int main()
  7676. {
  7677. socklen_t test = sizeof(int);
  7678. return 0;
  7679. }
  7680. _ACEOF
  7681. rm -f conftest$ac_exeext
  7682. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7683. (eval $ac_link) 2>&5
  7684. ac_status=$?
  7685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7686. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7688. (eval $ac_try) 2>&5
  7689. ac_status=$?
  7690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7691. (exit $ac_status); }; }; then
  7692. egg_cv_socklen_t=yes
  7693. else
  7694. echo "$as_me: program exited with status $ac_status" >&5
  7695. echo "$as_me: failed program was:" >&5
  7696. sed 's/^/| /' conftest.$ac_ext >&5
  7697. ( exit $ac_status )
  7698. egg_cv_socklen_t=no
  7699. fi
  7700. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7701. fi
  7702. fi
  7703. if test "$egg_cv_socklen_t" = "yes"; then
  7704. cat >>confdefs.h <<\_ACEOF
  7705. #define HAVE_SOCKLEN_T 1
  7706. _ACEOF
  7707. echo "$as_me:$LINENO: result: yes" >&5
  7708. echo "${ECHO_T}yes" >&6
  7709. else
  7710. echo "$as_me:$LINENO: result: no" >&5
  7711. echo "${ECHO_T}no" >&6
  7712. fi
  7713. # Checks for library functions
  7714. #checkpoint
  7715. cat >confcache <<\_ACEOF
  7716. # This file is a shell script that caches the results of configure
  7717. # tests run on this system so they can be shared between configure
  7718. # scripts and configure runs, see configure's option --config-cache.
  7719. # It is not useful on other systems. If it contains results you don't
  7720. # want to keep, you may remove or edit it.
  7721. #
  7722. # config.status only pays attention to the cache file if you give it
  7723. # the --recheck option to rerun configure.
  7724. #
  7725. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7726. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7727. # following values.
  7728. _ACEOF
  7729. # The following way of writing the cache mishandles newlines in values,
  7730. # but we know of no workaround that is simple, portable, and efficient.
  7731. # So, don't put newlines in cache variables' values.
  7732. # Ultrix sh set writes to stderr and can't be redirected directly,
  7733. # and sets the high bit in the cache file unless we assign to the vars.
  7734. {
  7735. (set) 2>&1 |
  7736. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7737. *ac_space=\ *)
  7738. # `set' does not quote correctly, so add quotes (double-quote
  7739. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7740. sed -n \
  7741. "s/'/'\\\\''/g;
  7742. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7743. ;;
  7744. *)
  7745. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7746. sed -n \
  7747. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7748. ;;
  7749. esac;
  7750. } |
  7751. sed '
  7752. t clear
  7753. : clear
  7754. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7755. t end
  7756. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7757. : end' >>confcache
  7758. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7759. if test -w $cache_file; then
  7760. test "x$cache_file" != "x/dev/null"
  7761. cat confcache >$cache_file
  7762. else
  7763. echo "not updating unwritable cache $cache_file"
  7764. fi
  7765. fi
  7766. rm -f confcache
  7767. # Checks for library functions.
  7768. for ac_header in unistd.h vfork.h
  7769. do
  7770. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7771. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7772. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7773. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7774. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7775. echo $ECHO_N "(cached) $ECHO_C" >&6
  7776. fi
  7777. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7778. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7779. else
  7780. # Is the header compilable?
  7781. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7782. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7783. cat >conftest.$ac_ext <<_ACEOF
  7784. /* confdefs.h. */
  7785. _ACEOF
  7786. cat confdefs.h >>conftest.$ac_ext
  7787. cat >>conftest.$ac_ext <<_ACEOF
  7788. /* end confdefs.h. */
  7789. $ac_includes_default
  7790. #include <$ac_header>
  7791. _ACEOF
  7792. rm -f conftest.$ac_objext
  7793. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7794. (eval $ac_compile) 2>conftest.er1
  7795. ac_status=$?
  7796. grep -v '^ *+' conftest.er1 >conftest.err
  7797. rm -f conftest.er1
  7798. cat conftest.err >&5
  7799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7800. (exit $ac_status); } &&
  7801. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7803. (eval $ac_try) 2>&5
  7804. ac_status=$?
  7805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7806. (exit $ac_status); }; } &&
  7807. { ac_try='test -s conftest.$ac_objext'
  7808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7809. (eval $ac_try) 2>&5
  7810. ac_status=$?
  7811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7812. (exit $ac_status); }; }; then
  7813. ac_header_compiler=yes
  7814. else
  7815. echo "$as_me: failed program was:" >&5
  7816. sed 's/^/| /' conftest.$ac_ext >&5
  7817. ac_header_compiler=no
  7818. fi
  7819. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7820. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7821. echo "${ECHO_T}$ac_header_compiler" >&6
  7822. # Is the header present?
  7823. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7824. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7825. cat >conftest.$ac_ext <<_ACEOF
  7826. /* confdefs.h. */
  7827. _ACEOF
  7828. cat confdefs.h >>conftest.$ac_ext
  7829. cat >>conftest.$ac_ext <<_ACEOF
  7830. /* end confdefs.h. */
  7831. #include <$ac_header>
  7832. _ACEOF
  7833. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7834. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7835. ac_status=$?
  7836. grep -v '^ *+' conftest.er1 >conftest.err
  7837. rm -f conftest.er1
  7838. cat conftest.err >&5
  7839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7840. (exit $ac_status); } >/dev/null; then
  7841. if test -s conftest.err; then
  7842. ac_cpp_err=$ac_c_preproc_warn_flag
  7843. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7844. else
  7845. ac_cpp_err=
  7846. fi
  7847. else
  7848. ac_cpp_err=yes
  7849. fi
  7850. if test -z "$ac_cpp_err"; then
  7851. ac_header_preproc=yes
  7852. else
  7853. echo "$as_me: failed program was:" >&5
  7854. sed 's/^/| /' conftest.$ac_ext >&5
  7855. ac_header_preproc=no
  7856. fi
  7857. rm -f conftest.err conftest.$ac_ext
  7858. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7859. echo "${ECHO_T}$ac_header_preproc" >&6
  7860. # So? What about this header?
  7861. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7862. yes:no: )
  7863. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7864. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7865. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7866. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7867. ac_header_preproc=yes
  7868. ;;
  7869. no:yes:* )
  7870. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7871. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7872. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7873. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7874. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7875. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7876. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7877. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7878. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7879. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7880. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7881. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7882. (
  7883. cat <<\_ASBOX
  7884. ## ------------------------------------------ ##
  7885. ## Report this to the AC_PACKAGE_NAME lists. ##
  7886. ## ------------------------------------------ ##
  7887. _ASBOX
  7888. ) |
  7889. sed "s/^/$as_me: WARNING: /" >&2
  7890. ;;
  7891. esac
  7892. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7893. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7894. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7895. echo $ECHO_N "(cached) $ECHO_C" >&6
  7896. else
  7897. eval "$as_ac_Header=\$ac_header_preproc"
  7898. fi
  7899. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7900. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7901. fi
  7902. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7903. cat >>confdefs.h <<_ACEOF
  7904. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7905. _ACEOF
  7906. fi
  7907. done
  7908. for ac_func in fork vfork
  7909. do
  7910. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7911. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7912. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7913. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7914. echo $ECHO_N "(cached) $ECHO_C" >&6
  7915. else
  7916. cat >conftest.$ac_ext <<_ACEOF
  7917. /* confdefs.h. */
  7918. _ACEOF
  7919. cat confdefs.h >>conftest.$ac_ext
  7920. cat >>conftest.$ac_ext <<_ACEOF
  7921. /* end confdefs.h. */
  7922. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7923. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7924. #define $ac_func innocuous_$ac_func
  7925. /* System header to define __stub macros and hopefully few prototypes,
  7926. which can conflict with char $ac_func (); below.
  7927. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7928. <limits.h> exists even on freestanding compilers. */
  7929. #ifdef __STDC__
  7930. # include <limits.h>
  7931. #else
  7932. # include <assert.h>
  7933. #endif
  7934. #undef $ac_func
  7935. /* Override any gcc2 internal prototype to avoid an error. */
  7936. #ifdef __cplusplus
  7937. extern "C"
  7938. {
  7939. #endif
  7940. /* We use char because int might match the return type of a gcc2
  7941. builtin and then its argument prototype would still apply. */
  7942. char $ac_func ();
  7943. /* The GNU C library defines this for functions which it implements
  7944. to always fail with ENOSYS. Some functions are actually named
  7945. something starting with __ and the normal name is an alias. */
  7946. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7947. choke me
  7948. #else
  7949. char (*f) () = $ac_func;
  7950. #endif
  7951. #ifdef __cplusplus
  7952. }
  7953. #endif
  7954. int
  7955. main ()
  7956. {
  7957. return f != $ac_func;
  7958. ;
  7959. return 0;
  7960. }
  7961. _ACEOF
  7962. rm -f conftest.$ac_objext conftest$ac_exeext
  7963. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7964. (eval $ac_link) 2>conftest.er1
  7965. ac_status=$?
  7966. grep -v '^ *+' conftest.er1 >conftest.err
  7967. rm -f conftest.er1
  7968. cat conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. (exit $ac_status); } &&
  7971. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7973. (eval $ac_try) 2>&5
  7974. ac_status=$?
  7975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7976. (exit $ac_status); }; } &&
  7977. { ac_try='test -s conftest$ac_exeext'
  7978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7979. (eval $ac_try) 2>&5
  7980. ac_status=$?
  7981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7982. (exit $ac_status); }; }; then
  7983. eval "$as_ac_var=yes"
  7984. else
  7985. echo "$as_me: failed program was:" >&5
  7986. sed 's/^/| /' conftest.$ac_ext >&5
  7987. eval "$as_ac_var=no"
  7988. fi
  7989. rm -f conftest.err conftest.$ac_objext \
  7990. conftest$ac_exeext conftest.$ac_ext
  7991. fi
  7992. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7993. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7994. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7995. cat >>confdefs.h <<_ACEOF
  7996. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7997. _ACEOF
  7998. fi
  7999. done
  8000. if test "x$ac_cv_func_fork" = xyes; then
  8001. echo "$as_me:$LINENO: checking for working fork" >&5
  8002. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8003. if test "${ac_cv_func_fork_works+set}" = set; then
  8004. echo $ECHO_N "(cached) $ECHO_C" >&6
  8005. else
  8006. if test "$cross_compiling" = yes; then
  8007. ac_cv_func_fork_works=cross
  8008. else
  8009. cat >conftest.$ac_ext <<_ACEOF
  8010. /* By Ruediger Kuhlmann. */
  8011. #include <sys/types.h>
  8012. #if HAVE_UNISTD_H
  8013. # include <unistd.h>
  8014. #endif
  8015. /* Some systems only have a dummy stub for fork() */
  8016. int main ()
  8017. {
  8018. if (fork() < 0)
  8019. exit (1);
  8020. exit (0);
  8021. }
  8022. _ACEOF
  8023. rm -f conftest$ac_exeext
  8024. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8025. (eval $ac_link) 2>&5
  8026. ac_status=$?
  8027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8028. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8030. (eval $ac_try) 2>&5
  8031. ac_status=$?
  8032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8033. (exit $ac_status); }; }; then
  8034. ac_cv_func_fork_works=yes
  8035. else
  8036. echo "$as_me: program exited with status $ac_status" >&5
  8037. echo "$as_me: failed program was:" >&5
  8038. sed 's/^/| /' conftest.$ac_ext >&5
  8039. ( exit $ac_status )
  8040. ac_cv_func_fork_works=no
  8041. fi
  8042. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8043. fi
  8044. fi
  8045. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8046. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8047. else
  8048. ac_cv_func_fork_works=$ac_cv_func_fork
  8049. fi
  8050. if test "x$ac_cv_func_fork_works" = xcross; then
  8051. case $host in
  8052. *-*-amigaos* | *-*-msdosdjgpp*)
  8053. # Override, as these systems have only a dummy fork() stub
  8054. ac_cv_func_fork_works=no
  8055. ;;
  8056. *)
  8057. ac_cv_func_fork_works=yes
  8058. ;;
  8059. esac
  8060. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8061. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8062. fi
  8063. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8064. if test "x$ac_cv_func_vfork" = xyes; then
  8065. echo "$as_me:$LINENO: checking for working vfork" >&5
  8066. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8067. if test "${ac_cv_func_vfork_works+set}" = set; then
  8068. echo $ECHO_N "(cached) $ECHO_C" >&6
  8069. else
  8070. if test "$cross_compiling" = yes; then
  8071. ac_cv_func_vfork_works=cross
  8072. else
  8073. cat >conftest.$ac_ext <<_ACEOF
  8074. /* confdefs.h. */
  8075. _ACEOF
  8076. cat confdefs.h >>conftest.$ac_ext
  8077. cat >>conftest.$ac_ext <<_ACEOF
  8078. /* end confdefs.h. */
  8079. /* Thanks to Paul Eggert for this test. */
  8080. #include <stdio.h>
  8081. #include <stdlib.h>
  8082. #include <sys/types.h>
  8083. #include <sys/stat.h>
  8084. #include <sys/wait.h>
  8085. #if HAVE_UNISTD_H
  8086. # include <unistd.h>
  8087. #endif
  8088. #if HAVE_VFORK_H
  8089. # include <vfork.h>
  8090. #endif
  8091. /* On some sparc systems, changes by the child to local and incoming
  8092. argument registers are propagated back to the parent. The compiler
  8093. is told about this with #include <vfork.h>, but some compilers
  8094. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8095. static variable whose address is put into a register that is
  8096. clobbered by the vfork. */
  8097. static void
  8098. #ifdef __cplusplus
  8099. sparc_address_test (int arg)
  8100. # else
  8101. sparc_address_test (arg) int arg;
  8102. #endif
  8103. {
  8104. static pid_t child;
  8105. if (!child) {
  8106. child = vfork ();
  8107. if (child < 0) {
  8108. perror ("vfork");
  8109. _exit(2);
  8110. }
  8111. if (!child) {
  8112. arg = getpid();
  8113. write(-1, "", 0);
  8114. _exit (arg);
  8115. }
  8116. }
  8117. }
  8118. int
  8119. main ()
  8120. {
  8121. pid_t parent = getpid ();
  8122. pid_t child;
  8123. sparc_address_test (0);
  8124. child = vfork ();
  8125. if (child == 0) {
  8126. /* Here is another test for sparc vfork register problems. This
  8127. test uses lots of local variables, at least as many local
  8128. variables as main has allocated so far including compiler
  8129. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8130. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8131. reuse the register of parent for one of the local variables,
  8132. since it will think that parent can't possibly be used any more
  8133. in this routine. Assigning to the local variable will thus
  8134. munge parent in the parent process. */
  8135. pid_t
  8136. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8137. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8138. /* Convince the compiler that p..p7 are live; otherwise, it might
  8139. use the same hardware register for all 8 local variables. */
  8140. if (p != p1 || p != p2 || p != p3 || p != p4
  8141. || p != p5 || p != p6 || p != p7)
  8142. _exit(1);
  8143. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8144. from child file descriptors. If the child closes a descriptor
  8145. before it execs or exits, this munges the parent's descriptor
  8146. as well. Test for this by closing stdout in the child. */
  8147. _exit(close(fileno(stdout)) != 0);
  8148. } else {
  8149. int status;
  8150. struct stat st;
  8151. while (wait(&status) != child)
  8152. ;
  8153. exit(
  8154. /* Was there some problem with vforking? */
  8155. child < 0
  8156. /* Did the child fail? (This shouldn't happen.) */
  8157. || status
  8158. /* Did the vfork/compiler bug occur? */
  8159. || parent != getpid()
  8160. /* Did the file descriptor bug occur? */
  8161. || fstat(fileno(stdout), &st) != 0
  8162. );
  8163. }
  8164. }
  8165. _ACEOF
  8166. rm -f conftest$ac_exeext
  8167. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8168. (eval $ac_link) 2>&5
  8169. ac_status=$?
  8170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8171. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8173. (eval $ac_try) 2>&5
  8174. ac_status=$?
  8175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8176. (exit $ac_status); }; }; then
  8177. ac_cv_func_vfork_works=yes
  8178. else
  8179. echo "$as_me: program exited with status $ac_status" >&5
  8180. echo "$as_me: failed program was:" >&5
  8181. sed 's/^/| /' conftest.$ac_ext >&5
  8182. ( exit $ac_status )
  8183. ac_cv_func_vfork_works=no
  8184. fi
  8185. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8186. fi
  8187. fi
  8188. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8189. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8190. fi;
  8191. if test "x$ac_cv_func_fork_works" = xcross; then
  8192. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8193. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8194. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8195. fi
  8196. if test "x$ac_cv_func_vfork_works" = xyes; then
  8197. cat >>confdefs.h <<\_ACEOF
  8198. #define HAVE_WORKING_VFORK 1
  8199. _ACEOF
  8200. else
  8201. cat >>confdefs.h <<\_ACEOF
  8202. #define vfork fork
  8203. _ACEOF
  8204. fi
  8205. if test "x$ac_cv_func_fork_works" = xyes; then
  8206. cat >>confdefs.h <<\_ACEOF
  8207. #define HAVE_WORKING_FORK 1
  8208. _ACEOF
  8209. fi
  8210. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8211. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8212. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8213. echo $ECHO_N "(cached) $ECHO_C" >&6
  8214. else
  8215. rm -f conftest.sym conftest.file
  8216. echo >conftest.file
  8217. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8218. if test "$cross_compiling" = yes; then
  8219. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8220. else
  8221. cat >conftest.$ac_ext <<_ACEOF
  8222. /* confdefs.h. */
  8223. _ACEOF
  8224. cat confdefs.h >>conftest.$ac_ext
  8225. cat >>conftest.$ac_ext <<_ACEOF
  8226. /* end confdefs.h. */
  8227. $ac_includes_default
  8228. int
  8229. main ()
  8230. {
  8231. struct stat sbuf;
  8232. /* Linux will dereference the symlink and fail.
  8233. That is better in the sense that it means we will not
  8234. have to compile and use the lstat wrapper. */
  8235. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8236. ;
  8237. return 0;
  8238. }
  8239. _ACEOF
  8240. rm -f conftest$ac_exeext
  8241. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8242. (eval $ac_link) 2>&5
  8243. ac_status=$?
  8244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8245. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8247. (eval $ac_try) 2>&5
  8248. ac_status=$?
  8249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8250. (exit $ac_status); }; }; then
  8251. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8252. else
  8253. echo "$as_me: program exited with status $ac_status" >&5
  8254. echo "$as_me: failed program was:" >&5
  8255. sed 's/^/| /' conftest.$ac_ext >&5
  8256. ( exit $ac_status )
  8257. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8258. fi
  8259. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8260. fi
  8261. else
  8262. # If the `ln -s' command failed, then we probably don't even
  8263. # have an lstat function.
  8264. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8265. fi
  8266. rm -f conftest.sym conftest.file
  8267. fi
  8268. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8269. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8270. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8271. cat >>confdefs.h <<_ACEOF
  8272. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8273. _ACEOF
  8274. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8275. case $LIBOBJS in
  8276. "lstat.$ac_objext" | \
  8277. *" lstat.$ac_objext" | \
  8278. "lstat.$ac_objext "* | \
  8279. *" lstat.$ac_objext "* ) ;;
  8280. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8281. esac
  8282. fi
  8283. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8284. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8285. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8286. echo $ECHO_N "(cached) $ECHO_C" >&6
  8287. else
  8288. if test "$cross_compiling" = yes; then
  8289. ac_cv_func_lstat_empty_string_bug=yes
  8290. else
  8291. cat >conftest.$ac_ext <<_ACEOF
  8292. /* confdefs.h. */
  8293. _ACEOF
  8294. cat confdefs.h >>conftest.$ac_ext
  8295. cat >>conftest.$ac_ext <<_ACEOF
  8296. /* end confdefs.h. */
  8297. $ac_includes_default
  8298. int
  8299. main ()
  8300. {
  8301. struct stat sbuf;
  8302. exit (lstat ("", &sbuf) ? 1 : 0);
  8303. ;
  8304. return 0;
  8305. }
  8306. _ACEOF
  8307. rm -f conftest$ac_exeext
  8308. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8309. (eval $ac_link) 2>&5
  8310. ac_status=$?
  8311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8312. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8314. (eval $ac_try) 2>&5
  8315. ac_status=$?
  8316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8317. (exit $ac_status); }; }; then
  8318. ac_cv_func_lstat_empty_string_bug=yes
  8319. else
  8320. echo "$as_me: program exited with status $ac_status" >&5
  8321. echo "$as_me: failed program was:" >&5
  8322. sed 's/^/| /' conftest.$ac_ext >&5
  8323. ( exit $ac_status )
  8324. ac_cv_func_lstat_empty_string_bug=no
  8325. fi
  8326. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8327. fi
  8328. fi
  8329. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8330. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8331. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8332. case $LIBOBJS in
  8333. "lstat.$ac_objext" | \
  8334. *" lstat.$ac_objext" | \
  8335. "lstat.$ac_objext "* | \
  8336. *" lstat.$ac_objext "* ) ;;
  8337. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8338. esac
  8339. cat >>confdefs.h <<_ACEOF
  8340. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8341. _ACEOF
  8342. fi
  8343. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8344. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8345. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8346. echo $ECHO_N "(cached) $ECHO_C" >&6
  8347. else
  8348. rm -f conftest.sym conftest.file
  8349. echo >conftest.file
  8350. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8351. if test "$cross_compiling" = yes; then
  8352. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8353. else
  8354. cat >conftest.$ac_ext <<_ACEOF
  8355. /* confdefs.h. */
  8356. _ACEOF
  8357. cat confdefs.h >>conftest.$ac_ext
  8358. cat >>conftest.$ac_ext <<_ACEOF
  8359. /* end confdefs.h. */
  8360. $ac_includes_default
  8361. int
  8362. main ()
  8363. {
  8364. struct stat sbuf;
  8365. /* Linux will dereference the symlink and fail.
  8366. That is better in the sense that it means we will not
  8367. have to compile and use the lstat wrapper. */
  8368. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8369. ;
  8370. return 0;
  8371. }
  8372. _ACEOF
  8373. rm -f conftest$ac_exeext
  8374. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8375. (eval $ac_link) 2>&5
  8376. ac_status=$?
  8377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8378. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8380. (eval $ac_try) 2>&5
  8381. ac_status=$?
  8382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8383. (exit $ac_status); }; }; then
  8384. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8385. else
  8386. echo "$as_me: program exited with status $ac_status" >&5
  8387. echo "$as_me: failed program was:" >&5
  8388. sed 's/^/| /' conftest.$ac_ext >&5
  8389. ( exit $ac_status )
  8390. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8391. fi
  8392. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8393. fi
  8394. else
  8395. # If the `ln -s' command failed, then we probably don't even
  8396. # have an lstat function.
  8397. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8398. fi
  8399. rm -f conftest.sym conftest.file
  8400. fi
  8401. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8402. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8403. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8404. cat >>confdefs.h <<_ACEOF
  8405. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8406. _ACEOF
  8407. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8408. case $LIBOBJS in
  8409. "lstat.$ac_objext" | \
  8410. *" lstat.$ac_objext" | \
  8411. "lstat.$ac_objext "* | \
  8412. *" lstat.$ac_objext "* ) ;;
  8413. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8414. esac
  8415. fi
  8416. for ac_header in stdlib.h
  8417. do
  8418. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8419. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8420. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8421. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8422. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8423. echo $ECHO_N "(cached) $ECHO_C" >&6
  8424. fi
  8425. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8426. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8427. else
  8428. # Is the header compilable?
  8429. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8430. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8431. cat >conftest.$ac_ext <<_ACEOF
  8432. /* confdefs.h. */
  8433. _ACEOF
  8434. cat confdefs.h >>conftest.$ac_ext
  8435. cat >>conftest.$ac_ext <<_ACEOF
  8436. /* end confdefs.h. */
  8437. $ac_includes_default
  8438. #include <$ac_header>
  8439. _ACEOF
  8440. rm -f conftest.$ac_objext
  8441. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8442. (eval $ac_compile) 2>conftest.er1
  8443. ac_status=$?
  8444. grep -v '^ *+' conftest.er1 >conftest.err
  8445. rm -f conftest.er1
  8446. cat conftest.err >&5
  8447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8448. (exit $ac_status); } &&
  8449. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8451. (eval $ac_try) 2>&5
  8452. ac_status=$?
  8453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8454. (exit $ac_status); }; } &&
  8455. { ac_try='test -s conftest.$ac_objext'
  8456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8457. (eval $ac_try) 2>&5
  8458. ac_status=$?
  8459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8460. (exit $ac_status); }; }; then
  8461. ac_header_compiler=yes
  8462. else
  8463. echo "$as_me: failed program was:" >&5
  8464. sed 's/^/| /' conftest.$ac_ext >&5
  8465. ac_header_compiler=no
  8466. fi
  8467. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8468. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8469. echo "${ECHO_T}$ac_header_compiler" >&6
  8470. # Is the header present?
  8471. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8472. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8473. cat >conftest.$ac_ext <<_ACEOF
  8474. /* confdefs.h. */
  8475. _ACEOF
  8476. cat confdefs.h >>conftest.$ac_ext
  8477. cat >>conftest.$ac_ext <<_ACEOF
  8478. /* end confdefs.h. */
  8479. #include <$ac_header>
  8480. _ACEOF
  8481. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8482. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8483. ac_status=$?
  8484. grep -v '^ *+' conftest.er1 >conftest.err
  8485. rm -f conftest.er1
  8486. cat conftest.err >&5
  8487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8488. (exit $ac_status); } >/dev/null; then
  8489. if test -s conftest.err; then
  8490. ac_cpp_err=$ac_c_preproc_warn_flag
  8491. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8492. else
  8493. ac_cpp_err=
  8494. fi
  8495. else
  8496. ac_cpp_err=yes
  8497. fi
  8498. if test -z "$ac_cpp_err"; then
  8499. ac_header_preproc=yes
  8500. else
  8501. echo "$as_me: failed program was:" >&5
  8502. sed 's/^/| /' conftest.$ac_ext >&5
  8503. ac_header_preproc=no
  8504. fi
  8505. rm -f conftest.err conftest.$ac_ext
  8506. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8507. echo "${ECHO_T}$ac_header_preproc" >&6
  8508. # So? What about this header?
  8509. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8510. yes:no: )
  8511. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8512. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8513. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8514. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8515. ac_header_preproc=yes
  8516. ;;
  8517. no:yes:* )
  8518. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8519. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8520. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8521. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8522. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8523. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8524. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8525. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8526. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8527. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8528. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8529. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8530. (
  8531. cat <<\_ASBOX
  8532. ## ------------------------------------------ ##
  8533. ## Report this to the AC_PACKAGE_NAME lists. ##
  8534. ## ------------------------------------------ ##
  8535. _ASBOX
  8536. ) |
  8537. sed "s/^/$as_me: WARNING: /" >&2
  8538. ;;
  8539. esac
  8540. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8541. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8542. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8543. echo $ECHO_N "(cached) $ECHO_C" >&6
  8544. else
  8545. eval "$as_ac_Header=\$ac_header_preproc"
  8546. fi
  8547. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8548. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8549. fi
  8550. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8551. cat >>confdefs.h <<_ACEOF
  8552. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8553. _ACEOF
  8554. fi
  8555. done
  8556. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8557. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8558. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8559. echo $ECHO_N "(cached) $ECHO_C" >&6
  8560. else
  8561. if test "$cross_compiling" = yes; then
  8562. ac_cv_func_malloc_0_nonnull=no
  8563. else
  8564. cat >conftest.$ac_ext <<_ACEOF
  8565. /* confdefs.h. */
  8566. _ACEOF
  8567. cat confdefs.h >>conftest.$ac_ext
  8568. cat >>conftest.$ac_ext <<_ACEOF
  8569. /* end confdefs.h. */
  8570. #if STDC_HEADERS || HAVE_STDLIB_H
  8571. # include <stdlib.h>
  8572. #else
  8573. char *malloc ();
  8574. #endif
  8575. int
  8576. main ()
  8577. {
  8578. exit (malloc (0) ? 0 : 1);
  8579. ;
  8580. return 0;
  8581. }
  8582. _ACEOF
  8583. rm -f conftest$ac_exeext
  8584. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8585. (eval $ac_link) 2>&5
  8586. ac_status=$?
  8587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8588. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8590. (eval $ac_try) 2>&5
  8591. ac_status=$?
  8592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8593. (exit $ac_status); }; }; then
  8594. ac_cv_func_malloc_0_nonnull=yes
  8595. else
  8596. echo "$as_me: program exited with status $ac_status" >&5
  8597. echo "$as_me: failed program was:" >&5
  8598. sed 's/^/| /' conftest.$ac_ext >&5
  8599. ( exit $ac_status )
  8600. ac_cv_func_malloc_0_nonnull=no
  8601. fi
  8602. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8603. fi
  8604. fi
  8605. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8606. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8607. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8608. cat >>confdefs.h <<\_ACEOF
  8609. #define HAVE_MALLOC 1
  8610. _ACEOF
  8611. else
  8612. cat >>confdefs.h <<\_ACEOF
  8613. #define HAVE_MALLOC 0
  8614. _ACEOF
  8615. case $LIBOBJS in
  8616. "malloc.$ac_objext" | \
  8617. *" malloc.$ac_objext" | \
  8618. "malloc.$ac_objext "* | \
  8619. *" malloc.$ac_objext "* ) ;;
  8620. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8621. esac
  8622. cat >>confdefs.h <<\_ACEOF
  8623. #define malloc rpl_malloc
  8624. _ACEOF
  8625. fi
  8626. for ac_header in stdlib.h sys/time.h unistd.h
  8627. do
  8628. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8629. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8630. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8631. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8632. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8633. echo $ECHO_N "(cached) $ECHO_C" >&6
  8634. fi
  8635. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8636. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8637. else
  8638. # Is the header compilable?
  8639. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8640. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8641. cat >conftest.$ac_ext <<_ACEOF
  8642. /* confdefs.h. */
  8643. _ACEOF
  8644. cat confdefs.h >>conftest.$ac_ext
  8645. cat >>conftest.$ac_ext <<_ACEOF
  8646. /* end confdefs.h. */
  8647. $ac_includes_default
  8648. #include <$ac_header>
  8649. _ACEOF
  8650. rm -f conftest.$ac_objext
  8651. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8652. (eval $ac_compile) 2>conftest.er1
  8653. ac_status=$?
  8654. grep -v '^ *+' conftest.er1 >conftest.err
  8655. rm -f conftest.er1
  8656. cat conftest.err >&5
  8657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8658. (exit $ac_status); } &&
  8659. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8661. (eval $ac_try) 2>&5
  8662. ac_status=$?
  8663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8664. (exit $ac_status); }; } &&
  8665. { ac_try='test -s conftest.$ac_objext'
  8666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8667. (eval $ac_try) 2>&5
  8668. ac_status=$?
  8669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8670. (exit $ac_status); }; }; then
  8671. ac_header_compiler=yes
  8672. else
  8673. echo "$as_me: failed program was:" >&5
  8674. sed 's/^/| /' conftest.$ac_ext >&5
  8675. ac_header_compiler=no
  8676. fi
  8677. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8678. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8679. echo "${ECHO_T}$ac_header_compiler" >&6
  8680. # Is the header present?
  8681. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8682. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8683. cat >conftest.$ac_ext <<_ACEOF
  8684. /* confdefs.h. */
  8685. _ACEOF
  8686. cat confdefs.h >>conftest.$ac_ext
  8687. cat >>conftest.$ac_ext <<_ACEOF
  8688. /* end confdefs.h. */
  8689. #include <$ac_header>
  8690. _ACEOF
  8691. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8692. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8693. ac_status=$?
  8694. grep -v '^ *+' conftest.er1 >conftest.err
  8695. rm -f conftest.er1
  8696. cat conftest.err >&5
  8697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8698. (exit $ac_status); } >/dev/null; then
  8699. if test -s conftest.err; then
  8700. ac_cpp_err=$ac_c_preproc_warn_flag
  8701. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8702. else
  8703. ac_cpp_err=
  8704. fi
  8705. else
  8706. ac_cpp_err=yes
  8707. fi
  8708. if test -z "$ac_cpp_err"; then
  8709. ac_header_preproc=yes
  8710. else
  8711. echo "$as_me: failed program was:" >&5
  8712. sed 's/^/| /' conftest.$ac_ext >&5
  8713. ac_header_preproc=no
  8714. fi
  8715. rm -f conftest.err conftest.$ac_ext
  8716. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8717. echo "${ECHO_T}$ac_header_preproc" >&6
  8718. # So? What about this header?
  8719. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8720. yes:no: )
  8721. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8722. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8723. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8724. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8725. ac_header_preproc=yes
  8726. ;;
  8727. no:yes:* )
  8728. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8729. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8730. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8731. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8732. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8733. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8734. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8735. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8736. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8737. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8738. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8739. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8740. (
  8741. cat <<\_ASBOX
  8742. ## ------------------------------------------ ##
  8743. ## Report this to the AC_PACKAGE_NAME lists. ##
  8744. ## ------------------------------------------ ##
  8745. _ASBOX
  8746. ) |
  8747. sed "s/^/$as_me: WARNING: /" >&2
  8748. ;;
  8749. esac
  8750. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8751. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8752. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8753. echo $ECHO_N "(cached) $ECHO_C" >&6
  8754. else
  8755. eval "$as_ac_Header=\$ac_header_preproc"
  8756. fi
  8757. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8758. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8759. fi
  8760. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8761. cat >>confdefs.h <<_ACEOF
  8762. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8763. _ACEOF
  8764. fi
  8765. done
  8766. for ac_func in alarm
  8767. do
  8768. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8769. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8770. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8771. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8772. echo $ECHO_N "(cached) $ECHO_C" >&6
  8773. else
  8774. cat >conftest.$ac_ext <<_ACEOF
  8775. /* confdefs.h. */
  8776. _ACEOF
  8777. cat confdefs.h >>conftest.$ac_ext
  8778. cat >>conftest.$ac_ext <<_ACEOF
  8779. /* end confdefs.h. */
  8780. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8781. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8782. #define $ac_func innocuous_$ac_func
  8783. /* System header to define __stub macros and hopefully few prototypes,
  8784. which can conflict with char $ac_func (); below.
  8785. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8786. <limits.h> exists even on freestanding compilers. */
  8787. #ifdef __STDC__
  8788. # include <limits.h>
  8789. #else
  8790. # include <assert.h>
  8791. #endif
  8792. #undef $ac_func
  8793. /* Override any gcc2 internal prototype to avoid an error. */
  8794. #ifdef __cplusplus
  8795. extern "C"
  8796. {
  8797. #endif
  8798. /* We use char because int might match the return type of a gcc2
  8799. builtin and then its argument prototype would still apply. */
  8800. char $ac_func ();
  8801. /* The GNU C library defines this for functions which it implements
  8802. to always fail with ENOSYS. Some functions are actually named
  8803. something starting with __ and the normal name is an alias. */
  8804. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8805. choke me
  8806. #else
  8807. char (*f) () = $ac_func;
  8808. #endif
  8809. #ifdef __cplusplus
  8810. }
  8811. #endif
  8812. int
  8813. main ()
  8814. {
  8815. return f != $ac_func;
  8816. ;
  8817. return 0;
  8818. }
  8819. _ACEOF
  8820. rm -f conftest.$ac_objext conftest$ac_exeext
  8821. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8822. (eval $ac_link) 2>conftest.er1
  8823. ac_status=$?
  8824. grep -v '^ *+' conftest.er1 >conftest.err
  8825. rm -f conftest.er1
  8826. cat conftest.err >&5
  8827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8828. (exit $ac_status); } &&
  8829. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8831. (eval $ac_try) 2>&5
  8832. ac_status=$?
  8833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8834. (exit $ac_status); }; } &&
  8835. { ac_try='test -s conftest$ac_exeext'
  8836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8837. (eval $ac_try) 2>&5
  8838. ac_status=$?
  8839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8840. (exit $ac_status); }; }; then
  8841. eval "$as_ac_var=yes"
  8842. else
  8843. echo "$as_me: failed program was:" >&5
  8844. sed 's/^/| /' conftest.$ac_ext >&5
  8845. eval "$as_ac_var=no"
  8846. fi
  8847. rm -f conftest.err conftest.$ac_objext \
  8848. conftest$ac_exeext conftest.$ac_ext
  8849. fi
  8850. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8851. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8852. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8853. cat >>confdefs.h <<_ACEOF
  8854. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8855. _ACEOF
  8856. fi
  8857. done
  8858. echo "$as_me:$LINENO: checking for working mktime" >&5
  8859. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8860. if test "${ac_cv_func_working_mktime+set}" = set; then
  8861. echo $ECHO_N "(cached) $ECHO_C" >&6
  8862. else
  8863. if test "$cross_compiling" = yes; then
  8864. ac_cv_func_working_mktime=no
  8865. else
  8866. cat >conftest.$ac_ext <<_ACEOF
  8867. /* confdefs.h. */
  8868. _ACEOF
  8869. cat confdefs.h >>conftest.$ac_ext
  8870. cat >>conftest.$ac_ext <<_ACEOF
  8871. /* end confdefs.h. */
  8872. /* Test program from Paul Eggert and Tony Leneis. */
  8873. #if TIME_WITH_SYS_TIME
  8874. # include <sys/time.h>
  8875. # include <time.h>
  8876. #else
  8877. # if HAVE_SYS_TIME_H
  8878. # include <sys/time.h>
  8879. # else
  8880. # include <time.h>
  8881. # endif
  8882. #endif
  8883. #if HAVE_STDLIB_H
  8884. # include <stdlib.h>
  8885. #endif
  8886. #if HAVE_UNISTD_H
  8887. # include <unistd.h>
  8888. #endif
  8889. #if !HAVE_ALARM
  8890. # define alarm(X) /* empty */
  8891. #endif
  8892. /* Work around redefinition to rpl_putenv by other config tests. */
  8893. #undef putenv
  8894. static time_t time_t_max;
  8895. static time_t time_t_min;
  8896. /* Values we'll use to set the TZ environment variable. */
  8897. static char *tz_strings[] = {
  8898. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8899. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8900. };
  8901. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8902. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8903. Based on a problem report from Andreas Jaeger. */
  8904. static void
  8905. spring_forward_gap ()
  8906. {
  8907. /* glibc (up to about 1998-10-07) failed this test. */
  8908. struct tm tm;
  8909. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8910. instead of "TZ=America/Vancouver" in order to detect the bug even
  8911. on systems that don't support the Olson extension, or don't have the
  8912. full zoneinfo tables installed. */
  8913. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8914. tm.tm_year = 98;
  8915. tm.tm_mon = 3;
  8916. tm.tm_mday = 5;
  8917. tm.tm_hour = 2;
  8918. tm.tm_min = 0;
  8919. tm.tm_sec = 0;
  8920. tm.tm_isdst = -1;
  8921. if (mktime (&tm) == (time_t)-1)
  8922. exit (1);
  8923. }
  8924. static void
  8925. mktime_test1 (now)
  8926. time_t now;
  8927. {
  8928. struct tm *lt;
  8929. if ((lt = localtime (&now)) && mktime (lt) != now)
  8930. exit (1);
  8931. }
  8932. static void
  8933. mktime_test (now)
  8934. time_t now;
  8935. {
  8936. mktime_test1 (now);
  8937. mktime_test1 ((time_t) (time_t_max - now));
  8938. mktime_test1 ((time_t) (time_t_min + now));
  8939. }
  8940. static void
  8941. irix_6_4_bug ()
  8942. {
  8943. /* Based on code from Ariel Faigon. */
  8944. struct tm tm;
  8945. tm.tm_year = 96;
  8946. tm.tm_mon = 3;
  8947. tm.tm_mday = 0;
  8948. tm.tm_hour = 0;
  8949. tm.tm_min = 0;
  8950. tm.tm_sec = 0;
  8951. tm.tm_isdst = -1;
  8952. mktime (&tm);
  8953. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8954. exit (1);
  8955. }
  8956. static void
  8957. bigtime_test (j)
  8958. int j;
  8959. {
  8960. struct tm tm;
  8961. time_t now;
  8962. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8963. now = mktime (&tm);
  8964. if (now != (time_t) -1)
  8965. {
  8966. struct tm *lt = localtime (&now);
  8967. if (! (lt
  8968. && lt->tm_year == tm.tm_year
  8969. && lt->tm_mon == tm.tm_mon
  8970. && lt->tm_mday == tm.tm_mday
  8971. && lt->tm_hour == tm.tm_hour
  8972. && lt->tm_min == tm.tm_min
  8973. && lt->tm_sec == tm.tm_sec
  8974. && lt->tm_yday == tm.tm_yday
  8975. && lt->tm_wday == tm.tm_wday
  8976. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8977. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8978. exit (1);
  8979. }
  8980. }
  8981. int
  8982. main ()
  8983. {
  8984. time_t t, delta;
  8985. int i, j;
  8986. /* This test makes some buggy mktime implementations loop.
  8987. Give up after 60 seconds; a mktime slower than that
  8988. isn't worth using anyway. */
  8989. alarm (60);
  8990. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8991. continue;
  8992. time_t_max--;
  8993. if ((time_t) -1 < 0)
  8994. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8995. continue;
  8996. delta = time_t_max / 997; /* a suitable prime number */
  8997. for (i = 0; i < N_STRINGS; i++)
  8998. {
  8999. if (tz_strings[i])
  9000. putenv (tz_strings[i]);
  9001. for (t = 0; t <= time_t_max - delta; t += delta)
  9002. mktime_test (t);
  9003. mktime_test ((time_t) 1);
  9004. mktime_test ((time_t) (60 * 60));
  9005. mktime_test ((time_t) (60 * 60 * 24));
  9006. for (j = 1; 0 < j; j *= 2)
  9007. bigtime_test (j);
  9008. bigtime_test (j - 1);
  9009. }
  9010. irix_6_4_bug ();
  9011. spring_forward_gap ();
  9012. exit (0);
  9013. }
  9014. _ACEOF
  9015. rm -f conftest$ac_exeext
  9016. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9017. (eval $ac_link) 2>&5
  9018. ac_status=$?
  9019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9020. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9022. (eval $ac_try) 2>&5
  9023. ac_status=$?
  9024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9025. (exit $ac_status); }; }; then
  9026. ac_cv_func_working_mktime=yes
  9027. else
  9028. echo "$as_me: program exited with status $ac_status" >&5
  9029. echo "$as_me: failed program was:" >&5
  9030. sed 's/^/| /' conftest.$ac_ext >&5
  9031. ( exit $ac_status )
  9032. ac_cv_func_working_mktime=no
  9033. fi
  9034. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9035. fi
  9036. fi
  9037. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9038. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9039. if test $ac_cv_func_working_mktime = no; then
  9040. case $LIBOBJS in
  9041. "mktime.$ac_objext" | \
  9042. *" mktime.$ac_objext" | \
  9043. "mktime.$ac_objext "* | \
  9044. *" mktime.$ac_objext "* ) ;;
  9045. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9046. esac
  9047. fi
  9048. for ac_header in stdlib.h unistd.h
  9049. do
  9050. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9051. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9052. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9053. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9054. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9055. echo $ECHO_N "(cached) $ECHO_C" >&6
  9056. fi
  9057. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9058. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9059. else
  9060. # Is the header compilable?
  9061. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9062. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9063. cat >conftest.$ac_ext <<_ACEOF
  9064. /* confdefs.h. */
  9065. _ACEOF
  9066. cat confdefs.h >>conftest.$ac_ext
  9067. cat >>conftest.$ac_ext <<_ACEOF
  9068. /* end confdefs.h. */
  9069. $ac_includes_default
  9070. #include <$ac_header>
  9071. _ACEOF
  9072. rm -f conftest.$ac_objext
  9073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9074. (eval $ac_compile) 2>conftest.er1
  9075. ac_status=$?
  9076. grep -v '^ *+' conftest.er1 >conftest.err
  9077. rm -f conftest.er1
  9078. cat conftest.err >&5
  9079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9080. (exit $ac_status); } &&
  9081. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9083. (eval $ac_try) 2>&5
  9084. ac_status=$?
  9085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9086. (exit $ac_status); }; } &&
  9087. { ac_try='test -s conftest.$ac_objext'
  9088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9089. (eval $ac_try) 2>&5
  9090. ac_status=$?
  9091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9092. (exit $ac_status); }; }; then
  9093. ac_header_compiler=yes
  9094. else
  9095. echo "$as_me: failed program was:" >&5
  9096. sed 's/^/| /' conftest.$ac_ext >&5
  9097. ac_header_compiler=no
  9098. fi
  9099. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9100. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9101. echo "${ECHO_T}$ac_header_compiler" >&6
  9102. # Is the header present?
  9103. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9104. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9105. cat >conftest.$ac_ext <<_ACEOF
  9106. /* confdefs.h. */
  9107. _ACEOF
  9108. cat confdefs.h >>conftest.$ac_ext
  9109. cat >>conftest.$ac_ext <<_ACEOF
  9110. /* end confdefs.h. */
  9111. #include <$ac_header>
  9112. _ACEOF
  9113. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9114. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9115. ac_status=$?
  9116. grep -v '^ *+' conftest.er1 >conftest.err
  9117. rm -f conftest.er1
  9118. cat conftest.err >&5
  9119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9120. (exit $ac_status); } >/dev/null; then
  9121. if test -s conftest.err; then
  9122. ac_cpp_err=$ac_c_preproc_warn_flag
  9123. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9124. else
  9125. ac_cpp_err=
  9126. fi
  9127. else
  9128. ac_cpp_err=yes
  9129. fi
  9130. if test -z "$ac_cpp_err"; then
  9131. ac_header_preproc=yes
  9132. else
  9133. echo "$as_me: failed program was:" >&5
  9134. sed 's/^/| /' conftest.$ac_ext >&5
  9135. ac_header_preproc=no
  9136. fi
  9137. rm -f conftest.err conftest.$ac_ext
  9138. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9139. echo "${ECHO_T}$ac_header_preproc" >&6
  9140. # So? What about this header?
  9141. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9142. yes:no: )
  9143. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9144. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9145. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9146. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9147. ac_header_preproc=yes
  9148. ;;
  9149. no:yes:* )
  9150. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9151. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9152. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9153. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9154. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9155. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9156. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9157. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9158. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9159. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9160. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9161. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9162. (
  9163. cat <<\_ASBOX
  9164. ## ------------------------------------------ ##
  9165. ## Report this to the AC_PACKAGE_NAME lists. ##
  9166. ## ------------------------------------------ ##
  9167. _ASBOX
  9168. ) |
  9169. sed "s/^/$as_me: WARNING: /" >&2
  9170. ;;
  9171. esac
  9172. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9173. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9174. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9175. echo $ECHO_N "(cached) $ECHO_C" >&6
  9176. else
  9177. eval "$as_ac_Header=\$ac_header_preproc"
  9178. fi
  9179. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9180. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9181. fi
  9182. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9183. cat >>confdefs.h <<_ACEOF
  9184. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9185. _ACEOF
  9186. fi
  9187. done
  9188. for ac_func in getpagesize
  9189. do
  9190. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9191. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9192. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9193. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9194. echo $ECHO_N "(cached) $ECHO_C" >&6
  9195. else
  9196. cat >conftest.$ac_ext <<_ACEOF
  9197. /* confdefs.h. */
  9198. _ACEOF
  9199. cat confdefs.h >>conftest.$ac_ext
  9200. cat >>conftest.$ac_ext <<_ACEOF
  9201. /* end confdefs.h. */
  9202. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9203. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9204. #define $ac_func innocuous_$ac_func
  9205. /* System header to define __stub macros and hopefully few prototypes,
  9206. which can conflict with char $ac_func (); below.
  9207. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9208. <limits.h> exists even on freestanding compilers. */
  9209. #ifdef __STDC__
  9210. # include <limits.h>
  9211. #else
  9212. # include <assert.h>
  9213. #endif
  9214. #undef $ac_func
  9215. /* Override any gcc2 internal prototype to avoid an error. */
  9216. #ifdef __cplusplus
  9217. extern "C"
  9218. {
  9219. #endif
  9220. /* We use char because int might match the return type of a gcc2
  9221. builtin and then its argument prototype would still apply. */
  9222. char $ac_func ();
  9223. /* The GNU C library defines this for functions which it implements
  9224. to always fail with ENOSYS. Some functions are actually named
  9225. something starting with __ and the normal name is an alias. */
  9226. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9227. choke me
  9228. #else
  9229. char (*f) () = $ac_func;
  9230. #endif
  9231. #ifdef __cplusplus
  9232. }
  9233. #endif
  9234. int
  9235. main ()
  9236. {
  9237. return f != $ac_func;
  9238. ;
  9239. return 0;
  9240. }
  9241. _ACEOF
  9242. rm -f conftest.$ac_objext conftest$ac_exeext
  9243. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9244. (eval $ac_link) 2>conftest.er1
  9245. ac_status=$?
  9246. grep -v '^ *+' conftest.er1 >conftest.err
  9247. rm -f conftest.er1
  9248. cat conftest.err >&5
  9249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9250. (exit $ac_status); } &&
  9251. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9253. (eval $ac_try) 2>&5
  9254. ac_status=$?
  9255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9256. (exit $ac_status); }; } &&
  9257. { ac_try='test -s conftest$ac_exeext'
  9258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9259. (eval $ac_try) 2>&5
  9260. ac_status=$?
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. (exit $ac_status); }; }; then
  9263. eval "$as_ac_var=yes"
  9264. else
  9265. echo "$as_me: failed program was:" >&5
  9266. sed 's/^/| /' conftest.$ac_ext >&5
  9267. eval "$as_ac_var=no"
  9268. fi
  9269. rm -f conftest.err conftest.$ac_objext \
  9270. conftest$ac_exeext conftest.$ac_ext
  9271. fi
  9272. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9273. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9274. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9275. cat >>confdefs.h <<_ACEOF
  9276. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9277. _ACEOF
  9278. fi
  9279. done
  9280. echo "$as_me:$LINENO: checking for working mmap" >&5
  9281. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9282. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9283. echo $ECHO_N "(cached) $ECHO_C" >&6
  9284. else
  9285. if test "$cross_compiling" = yes; then
  9286. ac_cv_func_mmap_fixed_mapped=no
  9287. else
  9288. cat >conftest.$ac_ext <<_ACEOF
  9289. /* confdefs.h. */
  9290. _ACEOF
  9291. cat confdefs.h >>conftest.$ac_ext
  9292. cat >>conftest.$ac_ext <<_ACEOF
  9293. /* end confdefs.h. */
  9294. $ac_includes_default
  9295. /* malloc might have been renamed as rpl_malloc. */
  9296. #undef malloc
  9297. /* Thanks to Mike Haertel and Jim Avera for this test.
  9298. Here is a matrix of mmap possibilities:
  9299. mmap private not fixed
  9300. mmap private fixed at somewhere currently unmapped
  9301. mmap private fixed at somewhere already mapped
  9302. mmap shared not fixed
  9303. mmap shared fixed at somewhere currently unmapped
  9304. mmap shared fixed at somewhere already mapped
  9305. For private mappings, we should verify that changes cannot be read()
  9306. back from the file, nor mmap's back from the file at a different
  9307. address. (There have been systems where private was not correctly
  9308. implemented like the infamous i386 svr4.0, and systems where the
  9309. VM page cache was not coherent with the file system buffer cache
  9310. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9311. For shared mappings, we should conversely verify that changes get
  9312. propagated back to all the places they're supposed to be.
  9313. Grep wants private fixed already mapped.
  9314. The main things grep needs to know about mmap are:
  9315. * does it exist and is it safe to write into the mmap'd area
  9316. * how to use it (BSD variants) */
  9317. #include <fcntl.h>
  9318. #include <sys/mman.h>
  9319. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9320. char *malloc ();
  9321. #endif
  9322. /* This mess was copied from the GNU getpagesize.h. */
  9323. #if !HAVE_GETPAGESIZE
  9324. /* Assume that all systems that can run configure have sys/param.h. */
  9325. # if !HAVE_SYS_PARAM_H
  9326. # define HAVE_SYS_PARAM_H 1
  9327. # endif
  9328. # ifdef _SC_PAGESIZE
  9329. # define getpagesize() sysconf(_SC_PAGESIZE)
  9330. # else /* no _SC_PAGESIZE */
  9331. # if HAVE_SYS_PARAM_H
  9332. # include <sys/param.h>
  9333. # ifdef EXEC_PAGESIZE
  9334. # define getpagesize() EXEC_PAGESIZE
  9335. # else /* no EXEC_PAGESIZE */
  9336. # ifdef NBPG
  9337. # define getpagesize() NBPG * CLSIZE
  9338. # ifndef CLSIZE
  9339. # define CLSIZE 1
  9340. # endif /* no CLSIZE */
  9341. # else /* no NBPG */
  9342. # ifdef NBPC
  9343. # define getpagesize() NBPC
  9344. # else /* no NBPC */
  9345. # ifdef PAGESIZE
  9346. # define getpagesize() PAGESIZE
  9347. # endif /* PAGESIZE */
  9348. # endif /* no NBPC */
  9349. # endif /* no NBPG */
  9350. # endif /* no EXEC_PAGESIZE */
  9351. # else /* no HAVE_SYS_PARAM_H */
  9352. # define getpagesize() 8192 /* punt totally */
  9353. # endif /* no HAVE_SYS_PARAM_H */
  9354. # endif /* no _SC_PAGESIZE */
  9355. #endif /* no HAVE_GETPAGESIZE */
  9356. int
  9357. main ()
  9358. {
  9359. char *data, *data2, *data3;
  9360. int i, pagesize;
  9361. int fd;
  9362. pagesize = getpagesize ();
  9363. /* First, make a file with some known garbage in it. */
  9364. data = (char *) malloc (pagesize);
  9365. if (!data)
  9366. exit (1);
  9367. for (i = 0; i < pagesize; ++i)
  9368. *(data + i) = rand ();
  9369. umask (0);
  9370. fd = creat ("conftest.mmap", 0600);
  9371. if (fd < 0)
  9372. exit (1);
  9373. if (write (fd, data, pagesize) != pagesize)
  9374. exit (1);
  9375. close (fd);
  9376. /* Next, try to mmap the file at a fixed address which already has
  9377. something else allocated at it. If we can, also make sure that
  9378. we see the same garbage. */
  9379. fd = open ("conftest.mmap", O_RDWR);
  9380. if (fd < 0)
  9381. exit (1);
  9382. data2 = (char *) malloc (2 * pagesize);
  9383. if (!data2)
  9384. exit (1);
  9385. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9386. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9387. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9388. exit (1);
  9389. for (i = 0; i < pagesize; ++i)
  9390. if (*(data + i) != *(data2 + i))
  9391. exit (1);
  9392. /* Finally, make sure that changes to the mapped area do not
  9393. percolate back to the file as seen by read(). (This is a bug on
  9394. some variants of i386 svr4.0.) */
  9395. for (i = 0; i < pagesize; ++i)
  9396. *(data2 + i) = *(data2 + i) + 1;
  9397. data3 = (char *) malloc (pagesize);
  9398. if (!data3)
  9399. exit (1);
  9400. if (read (fd, data3, pagesize) != pagesize)
  9401. exit (1);
  9402. for (i = 0; i < pagesize; ++i)
  9403. if (*(data + i) != *(data3 + i))
  9404. exit (1);
  9405. close (fd);
  9406. exit (0);
  9407. }
  9408. _ACEOF
  9409. rm -f conftest$ac_exeext
  9410. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9411. (eval $ac_link) 2>&5
  9412. ac_status=$?
  9413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9414. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9415. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9416. (eval $ac_try) 2>&5
  9417. ac_status=$?
  9418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9419. (exit $ac_status); }; }; then
  9420. ac_cv_func_mmap_fixed_mapped=yes
  9421. else
  9422. echo "$as_me: program exited with status $ac_status" >&5
  9423. echo "$as_me: failed program was:" >&5
  9424. sed 's/^/| /' conftest.$ac_ext >&5
  9425. ( exit $ac_status )
  9426. ac_cv_func_mmap_fixed_mapped=no
  9427. fi
  9428. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9429. fi
  9430. fi
  9431. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9432. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9433. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9434. cat >>confdefs.h <<\_ACEOF
  9435. #define HAVE_MMAP 1
  9436. _ACEOF
  9437. fi
  9438. rm -f conftest.mmap
  9439. for ac_header in stdlib.h
  9440. do
  9441. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9442. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9443. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9444. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9445. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9446. echo $ECHO_N "(cached) $ECHO_C" >&6
  9447. fi
  9448. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9449. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9450. else
  9451. # Is the header compilable?
  9452. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9453. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9454. cat >conftest.$ac_ext <<_ACEOF
  9455. /* confdefs.h. */
  9456. _ACEOF
  9457. cat confdefs.h >>conftest.$ac_ext
  9458. cat >>conftest.$ac_ext <<_ACEOF
  9459. /* end confdefs.h. */
  9460. $ac_includes_default
  9461. #include <$ac_header>
  9462. _ACEOF
  9463. rm -f conftest.$ac_objext
  9464. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9465. (eval $ac_compile) 2>conftest.er1
  9466. ac_status=$?
  9467. grep -v '^ *+' conftest.er1 >conftest.err
  9468. rm -f conftest.er1
  9469. cat conftest.err >&5
  9470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9471. (exit $ac_status); } &&
  9472. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9474. (eval $ac_try) 2>&5
  9475. ac_status=$?
  9476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9477. (exit $ac_status); }; } &&
  9478. { ac_try='test -s conftest.$ac_objext'
  9479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9480. (eval $ac_try) 2>&5
  9481. ac_status=$?
  9482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9483. (exit $ac_status); }; }; then
  9484. ac_header_compiler=yes
  9485. else
  9486. echo "$as_me: failed program was:" >&5
  9487. sed 's/^/| /' conftest.$ac_ext >&5
  9488. ac_header_compiler=no
  9489. fi
  9490. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9491. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9492. echo "${ECHO_T}$ac_header_compiler" >&6
  9493. # Is the header present?
  9494. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9495. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9496. cat >conftest.$ac_ext <<_ACEOF
  9497. /* confdefs.h. */
  9498. _ACEOF
  9499. cat confdefs.h >>conftest.$ac_ext
  9500. cat >>conftest.$ac_ext <<_ACEOF
  9501. /* end confdefs.h. */
  9502. #include <$ac_header>
  9503. _ACEOF
  9504. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9505. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9506. ac_status=$?
  9507. grep -v '^ *+' conftest.er1 >conftest.err
  9508. rm -f conftest.er1
  9509. cat conftest.err >&5
  9510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9511. (exit $ac_status); } >/dev/null; then
  9512. if test -s conftest.err; then
  9513. ac_cpp_err=$ac_c_preproc_warn_flag
  9514. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9515. else
  9516. ac_cpp_err=
  9517. fi
  9518. else
  9519. ac_cpp_err=yes
  9520. fi
  9521. if test -z "$ac_cpp_err"; then
  9522. ac_header_preproc=yes
  9523. else
  9524. echo "$as_me: failed program was:" >&5
  9525. sed 's/^/| /' conftest.$ac_ext >&5
  9526. ac_header_preproc=no
  9527. fi
  9528. rm -f conftest.err conftest.$ac_ext
  9529. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9530. echo "${ECHO_T}$ac_header_preproc" >&6
  9531. # So? What about this header?
  9532. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9533. yes:no: )
  9534. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9535. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9536. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9537. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9538. ac_header_preproc=yes
  9539. ;;
  9540. no:yes:* )
  9541. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9542. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9543. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9544. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9545. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9546. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9547. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9548. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9549. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9550. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9551. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9552. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9553. (
  9554. cat <<\_ASBOX
  9555. ## ------------------------------------------ ##
  9556. ## Report this to the AC_PACKAGE_NAME lists. ##
  9557. ## ------------------------------------------ ##
  9558. _ASBOX
  9559. ) |
  9560. sed "s/^/$as_me: WARNING: /" >&2
  9561. ;;
  9562. esac
  9563. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9564. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9565. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9566. echo $ECHO_N "(cached) $ECHO_C" >&6
  9567. else
  9568. eval "$as_ac_Header=\$ac_header_preproc"
  9569. fi
  9570. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9571. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9572. fi
  9573. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9574. cat >>confdefs.h <<_ACEOF
  9575. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9576. _ACEOF
  9577. fi
  9578. done
  9579. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9580. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9581. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9582. echo $ECHO_N "(cached) $ECHO_C" >&6
  9583. else
  9584. if test "$cross_compiling" = yes; then
  9585. ac_cv_func_realloc_0_nonnull=no
  9586. else
  9587. cat >conftest.$ac_ext <<_ACEOF
  9588. /* confdefs.h. */
  9589. _ACEOF
  9590. cat confdefs.h >>conftest.$ac_ext
  9591. cat >>conftest.$ac_ext <<_ACEOF
  9592. /* end confdefs.h. */
  9593. #if STDC_HEADERS || HAVE_STDLIB_H
  9594. # include <stdlib.h>
  9595. #else
  9596. char *realloc ();
  9597. #endif
  9598. int
  9599. main ()
  9600. {
  9601. exit (realloc (0, 0) ? 0 : 1);
  9602. ;
  9603. return 0;
  9604. }
  9605. _ACEOF
  9606. rm -f conftest$ac_exeext
  9607. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9608. (eval $ac_link) 2>&5
  9609. ac_status=$?
  9610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9611. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9613. (eval $ac_try) 2>&5
  9614. ac_status=$?
  9615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9616. (exit $ac_status); }; }; then
  9617. ac_cv_func_realloc_0_nonnull=yes
  9618. else
  9619. echo "$as_me: program exited with status $ac_status" >&5
  9620. echo "$as_me: failed program was:" >&5
  9621. sed 's/^/| /' conftest.$ac_ext >&5
  9622. ( exit $ac_status )
  9623. ac_cv_func_realloc_0_nonnull=no
  9624. fi
  9625. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9626. fi
  9627. fi
  9628. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9629. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9630. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9631. cat >>confdefs.h <<\_ACEOF
  9632. #define HAVE_REALLOC 1
  9633. _ACEOF
  9634. else
  9635. cat >>confdefs.h <<\_ACEOF
  9636. #define HAVE_REALLOC 0
  9637. _ACEOF
  9638. case $LIBOBJS in
  9639. "realloc.$ac_objext" | \
  9640. *" realloc.$ac_objext" | \
  9641. "realloc.$ac_objext "* | \
  9642. *" realloc.$ac_objext "* ) ;;
  9643. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9644. esac
  9645. cat >>confdefs.h <<\_ACEOF
  9646. #define realloc rpl_realloc
  9647. _ACEOF
  9648. fi
  9649. for ac_header in sys/select.h sys/socket.h
  9650. do
  9651. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9652. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9653. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9654. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9655. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9656. echo $ECHO_N "(cached) $ECHO_C" >&6
  9657. fi
  9658. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9659. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9660. else
  9661. # Is the header compilable?
  9662. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9663. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9664. cat >conftest.$ac_ext <<_ACEOF
  9665. /* confdefs.h. */
  9666. _ACEOF
  9667. cat confdefs.h >>conftest.$ac_ext
  9668. cat >>conftest.$ac_ext <<_ACEOF
  9669. /* end confdefs.h. */
  9670. $ac_includes_default
  9671. #include <$ac_header>
  9672. _ACEOF
  9673. rm -f conftest.$ac_objext
  9674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9675. (eval $ac_compile) 2>conftest.er1
  9676. ac_status=$?
  9677. grep -v '^ *+' conftest.er1 >conftest.err
  9678. rm -f conftest.er1
  9679. cat conftest.err >&5
  9680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9681. (exit $ac_status); } &&
  9682. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9684. (eval $ac_try) 2>&5
  9685. ac_status=$?
  9686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9687. (exit $ac_status); }; } &&
  9688. { ac_try='test -s conftest.$ac_objext'
  9689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9690. (eval $ac_try) 2>&5
  9691. ac_status=$?
  9692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9693. (exit $ac_status); }; }; then
  9694. ac_header_compiler=yes
  9695. else
  9696. echo "$as_me: failed program was:" >&5
  9697. sed 's/^/| /' conftest.$ac_ext >&5
  9698. ac_header_compiler=no
  9699. fi
  9700. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9701. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9702. echo "${ECHO_T}$ac_header_compiler" >&6
  9703. # Is the header present?
  9704. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9705. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9706. cat >conftest.$ac_ext <<_ACEOF
  9707. /* confdefs.h. */
  9708. _ACEOF
  9709. cat confdefs.h >>conftest.$ac_ext
  9710. cat >>conftest.$ac_ext <<_ACEOF
  9711. /* end confdefs.h. */
  9712. #include <$ac_header>
  9713. _ACEOF
  9714. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9715. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9716. ac_status=$?
  9717. grep -v '^ *+' conftest.er1 >conftest.err
  9718. rm -f conftest.er1
  9719. cat conftest.err >&5
  9720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9721. (exit $ac_status); } >/dev/null; then
  9722. if test -s conftest.err; then
  9723. ac_cpp_err=$ac_c_preproc_warn_flag
  9724. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9725. else
  9726. ac_cpp_err=
  9727. fi
  9728. else
  9729. ac_cpp_err=yes
  9730. fi
  9731. if test -z "$ac_cpp_err"; then
  9732. ac_header_preproc=yes
  9733. else
  9734. echo "$as_me: failed program was:" >&5
  9735. sed 's/^/| /' conftest.$ac_ext >&5
  9736. ac_header_preproc=no
  9737. fi
  9738. rm -f conftest.err conftest.$ac_ext
  9739. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9740. echo "${ECHO_T}$ac_header_preproc" >&6
  9741. # So? What about this header?
  9742. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9743. yes:no: )
  9744. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9745. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9746. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9747. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9748. ac_header_preproc=yes
  9749. ;;
  9750. no:yes:* )
  9751. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9752. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9753. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9754. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9755. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9756. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9757. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9758. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9759. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9760. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9761. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9762. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9763. (
  9764. cat <<\_ASBOX
  9765. ## ------------------------------------------ ##
  9766. ## Report this to the AC_PACKAGE_NAME lists. ##
  9767. ## ------------------------------------------ ##
  9768. _ASBOX
  9769. ) |
  9770. sed "s/^/$as_me: WARNING: /" >&2
  9771. ;;
  9772. esac
  9773. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9774. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9775. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9776. echo $ECHO_N "(cached) $ECHO_C" >&6
  9777. else
  9778. eval "$as_ac_Header=\$ac_header_preproc"
  9779. fi
  9780. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9781. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9782. fi
  9783. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9784. cat >>confdefs.h <<_ACEOF
  9785. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9786. _ACEOF
  9787. fi
  9788. done
  9789. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9790. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9791. if test "${ac_cv_func_select_args+set}" = set; then
  9792. echo $ECHO_N "(cached) $ECHO_C" >&6
  9793. else
  9794. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9795. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9796. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9797. cat >conftest.$ac_ext <<_ACEOF
  9798. /* confdefs.h. */
  9799. _ACEOF
  9800. cat confdefs.h >>conftest.$ac_ext
  9801. cat >>conftest.$ac_ext <<_ACEOF
  9802. /* end confdefs.h. */
  9803. $ac_includes_default
  9804. #if HAVE_SYS_SELECT_H
  9805. # include <sys/select.h>
  9806. #endif
  9807. #if HAVE_SYS_SOCKET_H
  9808. # include <sys/socket.h>
  9809. #endif
  9810. int
  9811. main ()
  9812. {
  9813. extern int select ($ac_arg1,
  9814. $ac_arg234, $ac_arg234, $ac_arg234,
  9815. $ac_arg5);
  9816. ;
  9817. return 0;
  9818. }
  9819. _ACEOF
  9820. rm -f conftest.$ac_objext
  9821. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9822. (eval $ac_compile) 2>conftest.er1
  9823. ac_status=$?
  9824. grep -v '^ *+' conftest.er1 >conftest.err
  9825. rm -f conftest.er1
  9826. cat conftest.err >&5
  9827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9828. (exit $ac_status); } &&
  9829. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9831. (eval $ac_try) 2>&5
  9832. ac_status=$?
  9833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9834. (exit $ac_status); }; } &&
  9835. { ac_try='test -s conftest.$ac_objext'
  9836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9837. (eval $ac_try) 2>&5
  9838. ac_status=$?
  9839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9840. (exit $ac_status); }; }; then
  9841. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9842. else
  9843. echo "$as_me: failed program was:" >&5
  9844. sed 's/^/| /' conftest.$ac_ext >&5
  9845. fi
  9846. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9847. done
  9848. done
  9849. done
  9850. # Provide a safe default value.
  9851. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9852. fi
  9853. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9854. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9855. ac_save_IFS=$IFS; IFS=','
  9856. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9857. IFS=$ac_save_IFS
  9858. shift
  9859. cat >>confdefs.h <<_ACEOF
  9860. #define SELECT_TYPE_ARG1 $1
  9861. _ACEOF
  9862. cat >>confdefs.h <<_ACEOF
  9863. #define SELECT_TYPE_ARG234 ($2)
  9864. _ACEOF
  9865. cat >>confdefs.h <<_ACEOF
  9866. #define SELECT_TYPE_ARG5 ($3)
  9867. _ACEOF
  9868. rm -f conftest*
  9869. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9870. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9871. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9872. echo $ECHO_N "(cached) $ECHO_C" >&6
  9873. else
  9874. if test "$cross_compiling" = yes; then
  9875. ac_cv_func_stat_empty_string_bug=yes
  9876. else
  9877. cat >conftest.$ac_ext <<_ACEOF
  9878. /* confdefs.h. */
  9879. _ACEOF
  9880. cat confdefs.h >>conftest.$ac_ext
  9881. cat >>conftest.$ac_ext <<_ACEOF
  9882. /* end confdefs.h. */
  9883. $ac_includes_default
  9884. int
  9885. main ()
  9886. {
  9887. struct stat sbuf;
  9888. exit (stat ("", &sbuf) ? 1 : 0);
  9889. ;
  9890. return 0;
  9891. }
  9892. _ACEOF
  9893. rm -f conftest$ac_exeext
  9894. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9895. (eval $ac_link) 2>&5
  9896. ac_status=$?
  9897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9898. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9900. (eval $ac_try) 2>&5
  9901. ac_status=$?
  9902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9903. (exit $ac_status); }; }; then
  9904. ac_cv_func_stat_empty_string_bug=yes
  9905. else
  9906. echo "$as_me: program exited with status $ac_status" >&5
  9907. echo "$as_me: failed program was:" >&5
  9908. sed 's/^/| /' conftest.$ac_ext >&5
  9909. ( exit $ac_status )
  9910. ac_cv_func_stat_empty_string_bug=no
  9911. fi
  9912. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9913. fi
  9914. fi
  9915. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9916. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9917. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9918. case $LIBOBJS in
  9919. "stat.$ac_objext" | \
  9920. *" stat.$ac_objext" | \
  9921. "stat.$ac_objext "* | \
  9922. *" stat.$ac_objext "* ) ;;
  9923. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9924. esac
  9925. cat >>confdefs.h <<_ACEOF
  9926. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9927. _ACEOF
  9928. fi
  9929. for ac_func in strftime
  9930. do
  9931. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9932. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9933. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9934. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9935. echo $ECHO_N "(cached) $ECHO_C" >&6
  9936. else
  9937. cat >conftest.$ac_ext <<_ACEOF
  9938. /* confdefs.h. */
  9939. _ACEOF
  9940. cat confdefs.h >>conftest.$ac_ext
  9941. cat >>conftest.$ac_ext <<_ACEOF
  9942. /* end confdefs.h. */
  9943. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9944. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9945. #define $ac_func innocuous_$ac_func
  9946. /* System header to define __stub macros and hopefully few prototypes,
  9947. which can conflict with char $ac_func (); below.
  9948. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9949. <limits.h> exists even on freestanding compilers. */
  9950. #ifdef __STDC__
  9951. # include <limits.h>
  9952. #else
  9953. # include <assert.h>
  9954. #endif
  9955. #undef $ac_func
  9956. /* Override any gcc2 internal prototype to avoid an error. */
  9957. #ifdef __cplusplus
  9958. extern "C"
  9959. {
  9960. #endif
  9961. /* We use char because int might match the return type of a gcc2
  9962. builtin and then its argument prototype would still apply. */
  9963. char $ac_func ();
  9964. /* The GNU C library defines this for functions which it implements
  9965. to always fail with ENOSYS. Some functions are actually named
  9966. something starting with __ and the normal name is an alias. */
  9967. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9968. choke me
  9969. #else
  9970. char (*f) () = $ac_func;
  9971. #endif
  9972. #ifdef __cplusplus
  9973. }
  9974. #endif
  9975. int
  9976. main ()
  9977. {
  9978. return f != $ac_func;
  9979. ;
  9980. return 0;
  9981. }
  9982. _ACEOF
  9983. rm -f conftest.$ac_objext conftest$ac_exeext
  9984. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9985. (eval $ac_link) 2>conftest.er1
  9986. ac_status=$?
  9987. grep -v '^ *+' conftest.er1 >conftest.err
  9988. rm -f conftest.er1
  9989. cat conftest.err >&5
  9990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9991. (exit $ac_status); } &&
  9992. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9994. (eval $ac_try) 2>&5
  9995. ac_status=$?
  9996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9997. (exit $ac_status); }; } &&
  9998. { ac_try='test -s conftest$ac_exeext'
  9999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10000. (eval $ac_try) 2>&5
  10001. ac_status=$?
  10002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10003. (exit $ac_status); }; }; then
  10004. eval "$as_ac_var=yes"
  10005. else
  10006. echo "$as_me: failed program was:" >&5
  10007. sed 's/^/| /' conftest.$ac_ext >&5
  10008. eval "$as_ac_var=no"
  10009. fi
  10010. rm -f conftest.err conftest.$ac_objext \
  10011. conftest$ac_exeext conftest.$ac_ext
  10012. fi
  10013. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10014. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10015. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10016. cat >>confdefs.h <<_ACEOF
  10017. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10018. _ACEOF
  10019. else
  10020. # strftime is in -lintl on SCO UNIX.
  10021. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10022. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10023. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10024. echo $ECHO_N "(cached) $ECHO_C" >&6
  10025. else
  10026. ac_check_lib_save_LIBS=$LIBS
  10027. LIBS="-lintl $LIBS"
  10028. cat >conftest.$ac_ext <<_ACEOF
  10029. /* confdefs.h. */
  10030. _ACEOF
  10031. cat confdefs.h >>conftest.$ac_ext
  10032. cat >>conftest.$ac_ext <<_ACEOF
  10033. /* end confdefs.h. */
  10034. /* Override any gcc2 internal prototype to avoid an error. */
  10035. #ifdef __cplusplus
  10036. extern "C"
  10037. #endif
  10038. /* We use char because int might match the return type of a gcc2
  10039. builtin and then its argument prototype would still apply. */
  10040. char strftime ();
  10041. int
  10042. main ()
  10043. {
  10044. strftime ();
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. rm -f conftest.$ac_objext conftest$ac_exeext
  10050. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10051. (eval $ac_link) 2>conftest.er1
  10052. ac_status=$?
  10053. grep -v '^ *+' conftest.er1 >conftest.err
  10054. rm -f conftest.er1
  10055. cat conftest.err >&5
  10056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10057. (exit $ac_status); } &&
  10058. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10060. (eval $ac_try) 2>&5
  10061. ac_status=$?
  10062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10063. (exit $ac_status); }; } &&
  10064. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  10070. ac_cv_lib_intl_strftime=yes
  10071. else
  10072. echo "$as_me: failed program was:" >&5
  10073. sed 's/^/| /' conftest.$ac_ext >&5
  10074. ac_cv_lib_intl_strftime=no
  10075. fi
  10076. rm -f conftest.err conftest.$ac_objext \
  10077. conftest$ac_exeext conftest.$ac_ext
  10078. LIBS=$ac_check_lib_save_LIBS
  10079. fi
  10080. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10081. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10082. if test $ac_cv_lib_intl_strftime = yes; then
  10083. cat >>confdefs.h <<\_ACEOF
  10084. #define HAVE_STRFTIME 1
  10085. _ACEOF
  10086. LIBS="-lintl $LIBS"
  10087. fi
  10088. fi
  10089. done
  10090. #checkpoint
  10091. cat >confcache <<\_ACEOF
  10092. # This file is a shell script that caches the results of configure
  10093. # tests run on this system so they can be shared between configure
  10094. # scripts and configure runs, see configure's option --config-cache.
  10095. # It is not useful on other systems. If it contains results you don't
  10096. # want to keep, you may remove or edit it.
  10097. #
  10098. # config.status only pays attention to the cache file if you give it
  10099. # the --recheck option to rerun configure.
  10100. #
  10101. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10102. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10103. # following values.
  10104. _ACEOF
  10105. # The following way of writing the cache mishandles newlines in values,
  10106. # but we know of no workaround that is simple, portable, and efficient.
  10107. # So, don't put newlines in cache variables' values.
  10108. # Ultrix sh set writes to stderr and can't be redirected directly,
  10109. # and sets the high bit in the cache file unless we assign to the vars.
  10110. {
  10111. (set) 2>&1 |
  10112. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10113. *ac_space=\ *)
  10114. # `set' does not quote correctly, so add quotes (double-quote
  10115. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10116. sed -n \
  10117. "s/'/'\\\\''/g;
  10118. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10119. ;;
  10120. *)
  10121. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10122. sed -n \
  10123. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10124. ;;
  10125. esac;
  10126. } |
  10127. sed '
  10128. t clear
  10129. : clear
  10130. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10131. t end
  10132. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10133. : end' >>confcache
  10134. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10135. if test -w $cache_file; then
  10136. test "x$cache_file" != "x/dev/null"
  10137. cat confcache >$cache_file
  10138. else
  10139. echo "not updating unwritable cache $cache_file"
  10140. fi
  10141. fi
  10142. rm -f confcache
  10143. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10144. do
  10145. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10146. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10147. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10148. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10149. echo $ECHO_N "(cached) $ECHO_C" >&6
  10150. else
  10151. cat >conftest.$ac_ext <<_ACEOF
  10152. /* confdefs.h. */
  10153. _ACEOF
  10154. cat confdefs.h >>conftest.$ac_ext
  10155. cat >>conftest.$ac_ext <<_ACEOF
  10156. /* end confdefs.h. */
  10157. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10158. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10159. #define $ac_func innocuous_$ac_func
  10160. /* System header to define __stub macros and hopefully few prototypes,
  10161. which can conflict with char $ac_func (); below.
  10162. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10163. <limits.h> exists even on freestanding compilers. */
  10164. #ifdef __STDC__
  10165. # include <limits.h>
  10166. #else
  10167. # include <assert.h>
  10168. #endif
  10169. #undef $ac_func
  10170. /* Override any gcc2 internal prototype to avoid an error. */
  10171. #ifdef __cplusplus
  10172. extern "C"
  10173. {
  10174. #endif
  10175. /* We use char because int might match the return type of a gcc2
  10176. builtin and then its argument prototype would still apply. */
  10177. char $ac_func ();
  10178. /* The GNU C library defines this for functions which it implements
  10179. to always fail with ENOSYS. Some functions are actually named
  10180. something starting with __ and the normal name is an alias. */
  10181. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10182. choke me
  10183. #else
  10184. char (*f) () = $ac_func;
  10185. #endif
  10186. #ifdef __cplusplus
  10187. }
  10188. #endif
  10189. int
  10190. main ()
  10191. {
  10192. return f != $ac_func;
  10193. ;
  10194. return 0;
  10195. }
  10196. _ACEOF
  10197. rm -f conftest.$ac_objext conftest$ac_exeext
  10198. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10199. (eval $ac_link) 2>conftest.er1
  10200. ac_status=$?
  10201. grep -v '^ *+' conftest.er1 >conftest.err
  10202. rm -f conftest.er1
  10203. cat conftest.err >&5
  10204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10205. (exit $ac_status); } &&
  10206. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10208. (eval $ac_try) 2>&5
  10209. ac_status=$?
  10210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10211. (exit $ac_status); }; } &&
  10212. { ac_try='test -s conftest$ac_exeext'
  10213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10214. (eval $ac_try) 2>&5
  10215. ac_status=$?
  10216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10217. (exit $ac_status); }; }; then
  10218. eval "$as_ac_var=yes"
  10219. else
  10220. echo "$as_me: failed program was:" >&5
  10221. sed 's/^/| /' conftest.$ac_ext >&5
  10222. eval "$as_ac_var=no"
  10223. fi
  10224. rm -f conftest.err conftest.$ac_objext \
  10225. conftest$ac_exeext conftest.$ac_ext
  10226. fi
  10227. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10228. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10229. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10230. cat >>confdefs.h <<_ACEOF
  10231. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10232. _ACEOF
  10233. fi
  10234. done
  10235. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10236. do
  10237. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10238. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10239. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10240. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10241. echo $ECHO_N "(cached) $ECHO_C" >&6
  10242. else
  10243. cat >conftest.$ac_ext <<_ACEOF
  10244. /* confdefs.h. */
  10245. _ACEOF
  10246. cat confdefs.h >>conftest.$ac_ext
  10247. cat >>conftest.$ac_ext <<_ACEOF
  10248. /* end confdefs.h. */
  10249. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10250. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10251. #define $ac_func innocuous_$ac_func
  10252. /* System header to define __stub macros and hopefully few prototypes,
  10253. which can conflict with char $ac_func (); below.
  10254. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10255. <limits.h> exists even on freestanding compilers. */
  10256. #ifdef __STDC__
  10257. # include <limits.h>
  10258. #else
  10259. # include <assert.h>
  10260. #endif
  10261. #undef $ac_func
  10262. /* Override any gcc2 internal prototype to avoid an error. */
  10263. #ifdef __cplusplus
  10264. extern "C"
  10265. {
  10266. #endif
  10267. /* We use char because int might match the return type of a gcc2
  10268. builtin and then its argument prototype would still apply. */
  10269. char $ac_func ();
  10270. /* The GNU C library defines this for functions which it implements
  10271. to always fail with ENOSYS. Some functions are actually named
  10272. something starting with __ and the normal name is an alias. */
  10273. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10274. choke me
  10275. #else
  10276. char (*f) () = $ac_func;
  10277. #endif
  10278. #ifdef __cplusplus
  10279. }
  10280. #endif
  10281. int
  10282. main ()
  10283. {
  10284. return f != $ac_func;
  10285. ;
  10286. return 0;
  10287. }
  10288. _ACEOF
  10289. rm -f conftest.$ac_objext conftest$ac_exeext
  10290. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10291. (eval $ac_link) 2>conftest.er1
  10292. ac_status=$?
  10293. grep -v '^ *+' conftest.er1 >conftest.err
  10294. rm -f conftest.er1
  10295. cat conftest.err >&5
  10296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10297. (exit $ac_status); } &&
  10298. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10300. (eval $ac_try) 2>&5
  10301. ac_status=$?
  10302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10303. (exit $ac_status); }; } &&
  10304. { ac_try='test -s conftest$ac_exeext'
  10305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10306. (eval $ac_try) 2>&5
  10307. ac_status=$?
  10308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10309. (exit $ac_status); }; }; then
  10310. eval "$as_ac_var=yes"
  10311. else
  10312. echo "$as_me: failed program was:" >&5
  10313. sed 's/^/| /' conftest.$ac_ext >&5
  10314. eval "$as_ac_var=no"
  10315. fi
  10316. rm -f conftest.err conftest.$ac_objext \
  10317. conftest$ac_exeext conftest.$ac_ext
  10318. fi
  10319. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10320. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10321. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10322. cat >>confdefs.h <<_ACEOF
  10323. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10324. _ACEOF
  10325. fi
  10326. done
  10327. #checkpoint
  10328. cat >confcache <<\_ACEOF
  10329. # This file is a shell script that caches the results of configure
  10330. # tests run on this system so they can be shared between configure
  10331. # scripts and configure runs, see configure's option --config-cache.
  10332. # It is not useful on other systems. If it contains results you don't
  10333. # want to keep, you may remove or edit it.
  10334. #
  10335. # config.status only pays attention to the cache file if you give it
  10336. # the --recheck option to rerun configure.
  10337. #
  10338. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10339. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10340. # following values.
  10341. _ACEOF
  10342. # The following way of writing the cache mishandles newlines in values,
  10343. # but we know of no workaround that is simple, portable, and efficient.
  10344. # So, don't put newlines in cache variables' values.
  10345. # Ultrix sh set writes to stderr and can't be redirected directly,
  10346. # and sets the high bit in the cache file unless we assign to the vars.
  10347. {
  10348. (set) 2>&1 |
  10349. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10350. *ac_space=\ *)
  10351. # `set' does not quote correctly, so add quotes (double-quote
  10352. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10353. sed -n \
  10354. "s/'/'\\\\''/g;
  10355. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10356. ;;
  10357. *)
  10358. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10359. sed -n \
  10360. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10361. ;;
  10362. esac;
  10363. } |
  10364. sed '
  10365. t clear
  10366. : clear
  10367. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10368. t end
  10369. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10370. : end' >>confcache
  10371. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10372. if test -w $cache_file; then
  10373. test "x$cache_file" != "x/dev/null"
  10374. cat confcache >$cache_file
  10375. else
  10376. echo "not updating unwritable cache $cache_file"
  10377. fi
  10378. fi
  10379. rm -f confcache
  10380. for ac_func in strcasecmp strncasecmp vsnprintf
  10381. do
  10382. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10383. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10384. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10385. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10386. echo $ECHO_N "(cached) $ECHO_C" >&6
  10387. else
  10388. cat >conftest.$ac_ext <<_ACEOF
  10389. /* confdefs.h. */
  10390. _ACEOF
  10391. cat confdefs.h >>conftest.$ac_ext
  10392. cat >>conftest.$ac_ext <<_ACEOF
  10393. /* end confdefs.h. */
  10394. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10395. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10396. #define $ac_func innocuous_$ac_func
  10397. /* System header to define __stub macros and hopefully few prototypes,
  10398. which can conflict with char $ac_func (); below.
  10399. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10400. <limits.h> exists even on freestanding compilers. */
  10401. #ifdef __STDC__
  10402. # include <limits.h>
  10403. #else
  10404. # include <assert.h>
  10405. #endif
  10406. #undef $ac_func
  10407. /* Override any gcc2 internal prototype to avoid an error. */
  10408. #ifdef __cplusplus
  10409. extern "C"
  10410. {
  10411. #endif
  10412. /* We use char because int might match the return type of a gcc2
  10413. builtin and then its argument prototype would still apply. */
  10414. char $ac_func ();
  10415. /* The GNU C library defines this for functions which it implements
  10416. to always fail with ENOSYS. Some functions are actually named
  10417. something starting with __ and the normal name is an alias. */
  10418. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10419. choke me
  10420. #else
  10421. char (*f) () = $ac_func;
  10422. #endif
  10423. #ifdef __cplusplus
  10424. }
  10425. #endif
  10426. int
  10427. main ()
  10428. {
  10429. return f != $ac_func;
  10430. ;
  10431. return 0;
  10432. }
  10433. _ACEOF
  10434. rm -f conftest.$ac_objext conftest$ac_exeext
  10435. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10436. (eval $ac_link) 2>conftest.er1
  10437. ac_status=$?
  10438. grep -v '^ *+' conftest.er1 >conftest.err
  10439. rm -f conftest.er1
  10440. cat conftest.err >&5
  10441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10442. (exit $ac_status); } &&
  10443. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10444. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10445. (eval $ac_try) 2>&5
  10446. ac_status=$?
  10447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10448. (exit $ac_status); }; } &&
  10449. { ac_try='test -s conftest$ac_exeext'
  10450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10451. (eval $ac_try) 2>&5
  10452. ac_status=$?
  10453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10454. (exit $ac_status); }; }; then
  10455. eval "$as_ac_var=yes"
  10456. else
  10457. echo "$as_me: failed program was:" >&5
  10458. sed 's/^/| /' conftest.$ac_ext >&5
  10459. eval "$as_ac_var=no"
  10460. fi
  10461. rm -f conftest.err conftest.$ac_objext \
  10462. conftest$ac_exeext conftest.$ac_ext
  10463. fi
  10464. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10465. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10466. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10467. cat >>confdefs.h <<_ACEOF
  10468. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10469. _ACEOF
  10470. fi
  10471. done
  10472. #autoscan suggested this....
  10473. #These are recommended by autoscan, but no code supports it currently
  10474. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10475. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10476. for ac_func in vsprintf
  10477. do
  10478. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10479. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10480. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10481. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10482. echo $ECHO_N "(cached) $ECHO_C" >&6
  10483. else
  10484. cat >conftest.$ac_ext <<_ACEOF
  10485. /* confdefs.h. */
  10486. _ACEOF
  10487. cat confdefs.h >>conftest.$ac_ext
  10488. cat >>conftest.$ac_ext <<_ACEOF
  10489. /* end confdefs.h. */
  10490. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10491. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10492. #define $ac_func innocuous_$ac_func
  10493. /* System header to define __stub macros and hopefully few prototypes,
  10494. which can conflict with char $ac_func (); below.
  10495. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10496. <limits.h> exists even on freestanding compilers. */
  10497. #ifdef __STDC__
  10498. # include <limits.h>
  10499. #else
  10500. # include <assert.h>
  10501. #endif
  10502. #undef $ac_func
  10503. /* Override any gcc2 internal prototype to avoid an error. */
  10504. #ifdef __cplusplus
  10505. extern "C"
  10506. {
  10507. #endif
  10508. /* We use char because int might match the return type of a gcc2
  10509. builtin and then its argument prototype would still apply. */
  10510. char $ac_func ();
  10511. /* The GNU C library defines this for functions which it implements
  10512. to always fail with ENOSYS. Some functions are actually named
  10513. something starting with __ and the normal name is an alias. */
  10514. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10515. choke me
  10516. #else
  10517. char (*f) () = $ac_func;
  10518. #endif
  10519. #ifdef __cplusplus
  10520. }
  10521. #endif
  10522. int
  10523. main ()
  10524. {
  10525. return f != $ac_func;
  10526. ;
  10527. return 0;
  10528. }
  10529. _ACEOF
  10530. rm -f conftest.$ac_objext conftest$ac_exeext
  10531. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10532. (eval $ac_link) 2>conftest.er1
  10533. ac_status=$?
  10534. grep -v '^ *+' conftest.er1 >conftest.err
  10535. rm -f conftest.er1
  10536. cat conftest.err >&5
  10537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10538. (exit $ac_status); } &&
  10539. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10541. (eval $ac_try) 2>&5
  10542. ac_status=$?
  10543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10544. (exit $ac_status); }; } &&
  10545. { ac_try='test -s conftest$ac_exeext'
  10546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10547. (eval $ac_try) 2>&5
  10548. ac_status=$?
  10549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10550. (exit $ac_status); }; }; then
  10551. eval "$as_ac_var=yes"
  10552. else
  10553. echo "$as_me: failed program was:" >&5
  10554. sed 's/^/| /' conftest.$ac_ext >&5
  10555. eval "$as_ac_var=no"
  10556. fi
  10557. rm -f conftest.err conftest.$ac_objext \
  10558. conftest$ac_exeext conftest.$ac_ext
  10559. fi
  10560. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10561. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10562. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10563. cat >>confdefs.h <<_ACEOF
  10564. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10565. _ACEOF
  10566. fi
  10567. done
  10568. if test "$ac_cv_func_vsprintf" = "no"
  10569. then
  10570. cat << 'EOF' >&2
  10571. configure: error:
  10572. Your system does not have the sprintf/vsprintf libraries.
  10573. These are required to compile almost anything. Sorry.
  10574. EOF
  10575. exit 1
  10576. fi
  10577. for ac_func in uname
  10578. do
  10579. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10580. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10581. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10582. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10583. echo $ECHO_N "(cached) $ECHO_C" >&6
  10584. else
  10585. cat >conftest.$ac_ext <<_ACEOF
  10586. /* confdefs.h. */
  10587. _ACEOF
  10588. cat confdefs.h >>conftest.$ac_ext
  10589. cat >>conftest.$ac_ext <<_ACEOF
  10590. /* end confdefs.h. */
  10591. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10592. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10593. #define $ac_func innocuous_$ac_func
  10594. /* System header to define __stub macros and hopefully few prototypes,
  10595. which can conflict with char $ac_func (); below.
  10596. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10597. <limits.h> exists even on freestanding compilers. */
  10598. #ifdef __STDC__
  10599. # include <limits.h>
  10600. #else
  10601. # include <assert.h>
  10602. #endif
  10603. #undef $ac_func
  10604. /* Override any gcc2 internal prototype to avoid an error. */
  10605. #ifdef __cplusplus
  10606. extern "C"
  10607. {
  10608. #endif
  10609. /* We use char because int might match the return type of a gcc2
  10610. builtin and then its argument prototype would still apply. */
  10611. char $ac_func ();
  10612. /* The GNU C library defines this for functions which it implements
  10613. to always fail with ENOSYS. Some functions are actually named
  10614. something starting with __ and the normal name is an alias. */
  10615. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10616. choke me
  10617. #else
  10618. char (*f) () = $ac_func;
  10619. #endif
  10620. #ifdef __cplusplus
  10621. }
  10622. #endif
  10623. int
  10624. main ()
  10625. {
  10626. return f != $ac_func;
  10627. ;
  10628. return 0;
  10629. }
  10630. _ACEOF
  10631. rm -f conftest.$ac_objext conftest$ac_exeext
  10632. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10633. (eval $ac_link) 2>conftest.er1
  10634. ac_status=$?
  10635. grep -v '^ *+' conftest.er1 >conftest.err
  10636. rm -f conftest.er1
  10637. cat conftest.err >&5
  10638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10639. (exit $ac_status); } &&
  10640. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10642. (eval $ac_try) 2>&5
  10643. ac_status=$?
  10644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10645. (exit $ac_status); }; } &&
  10646. { ac_try='test -s conftest$ac_exeext'
  10647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10648. (eval $ac_try) 2>&5
  10649. ac_status=$?
  10650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10651. (exit $ac_status); }; }; then
  10652. eval "$as_ac_var=yes"
  10653. else
  10654. echo "$as_me: failed program was:" >&5
  10655. sed 's/^/| /' conftest.$ac_ext >&5
  10656. eval "$as_ac_var=no"
  10657. fi
  10658. rm -f conftest.err conftest.$ac_objext \
  10659. conftest$ac_exeext conftest.$ac_ext
  10660. fi
  10661. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10662. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10663. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10664. cat >>confdefs.h <<_ACEOF
  10665. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10666. _ACEOF
  10667. fi
  10668. done
  10669. if test "$ac_cv_func_uname" = "no"
  10670. then
  10671. cat << 'EOF' >&2
  10672. configure: error:
  10673. Your system does not have the uname() function.
  10674. This is required for the botpack.
  10675. EOF
  10676. exit 1
  10677. fi
  10678. # Make sure we have stdc headers, since we can't compile without them
  10679. if test "$ac_cv_header_stdc" = "no"
  10680. then
  10681. cat << 'EOF' >&2
  10682. configure: error:
  10683. Your system must support ANSI C Header files.
  10684. These are required for the language support. Sorry.
  10685. EOF
  10686. exit 1
  10687. fi
  10688. #checkpoint
  10689. cat >confcache <<\_ACEOF
  10690. # This file is a shell script that caches the results of configure
  10691. # tests run on this system so they can be shared between configure
  10692. # scripts and configure runs, see configure's option --config-cache.
  10693. # It is not useful on other systems. If it contains results you don't
  10694. # want to keep, you may remove or edit it.
  10695. #
  10696. # config.status only pays attention to the cache file if you give it
  10697. # the --recheck option to rerun configure.
  10698. #
  10699. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10700. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10701. # following values.
  10702. _ACEOF
  10703. # The following way of writing the cache mishandles newlines in values,
  10704. # but we know of no workaround that is simple, portable, and efficient.
  10705. # So, don't put newlines in cache variables' values.
  10706. # Ultrix sh set writes to stderr and can't be redirected directly,
  10707. # and sets the high bit in the cache file unless we assign to the vars.
  10708. {
  10709. (set) 2>&1 |
  10710. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10711. *ac_space=\ *)
  10712. # `set' does not quote correctly, so add quotes (double-quote
  10713. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10714. sed -n \
  10715. "s/'/'\\\\''/g;
  10716. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10717. ;;
  10718. *)
  10719. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10720. sed -n \
  10721. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10722. ;;
  10723. esac;
  10724. } |
  10725. sed '
  10726. t clear
  10727. : clear
  10728. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10729. t end
  10730. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10731. : end' >>confcache
  10732. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10733. if test -w $cache_file; then
  10734. test "x$cache_file" != "x/dev/null"
  10735. cat confcache >$cache_file
  10736. else
  10737. echo "not updating unwritable cache $cache_file"
  10738. fi
  10739. fi
  10740. rm -f confcache
  10741. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10742. if ! test -f $cfg; then
  10743. cat << EOF >&2
  10744. configure: error:
  10745. Your pack cfg is missing, please copy it to $srcdir/$cfg
  10746. Or specify the path to it with: --with-cfg=
  10747. EOF
  10748. exit 1
  10749. fi
  10750. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  10751. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10752. cat >>confdefs.h <<_ACEOF
  10753. #define EGG_VERSION $version_num
  10754. _ACEOF
  10755. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  10756. u_define="S_$define"
  10757. cat >>confdefs.h <<_ACEOF
  10758. #define $u_define 1
  10759. _ACEOF
  10760. CFG="$cfg"
  10761. done
  10762. case "$srcdir" in
  10763. [\\/]* | ?:[\\/]*)
  10764. MOD_UPDIR=""
  10765. ;;
  10766. *)
  10767. MOD_UPDIR="../"
  10768. ;;
  10769. esac
  10770. 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"
  10771. for mf in $files; do
  10772. # Strip MF so we end up with the name of the file.
  10773. # echo "MF: $mf"
  10774. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10775. dirpart=`(dirname "$mf") 2>/dev/null ||
  10776. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10777. X"$mf" : 'X\(//\)[^/]' \| \
  10778. X"$mf" : 'X\(//\)$' \| \
  10779. X"$mf" : 'X\(/\)' \| \
  10780. . : '\(.\)' 2>/dev/null ||
  10781. echo X"$mf" |
  10782. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10783. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10784. /^X\(\/\/\)$/{ s//\1/; q; }
  10785. /^X\(\/\).*/{ s//\1/; q; }
  10786. s/.*/./; q'`
  10787. # echo "dirpart: $dirpart mf: $mf"
  10788. # rm -rf "$dirpart/.deps/"
  10789. rm -f "$dirpart/.deps/includes"
  10790. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10791. for file in `sed -n -e '
  10792. /^OBJS = .*\\\\$/ {
  10793. s/^OBJS = //
  10794. :loop
  10795. s/\\\\$//
  10796. p
  10797. n
  10798. /\\\\$/ b loop
  10799. p
  10800. }
  10801. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10802. do
  10803. base=`basename $file .o`
  10804. test -f "$dirpart/$base.c" || continue
  10805. if ! test -f "$dirpart/.deps/$base.Po"; then
  10806. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10807. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10808. if test -f "$dirpart/$base.o"; then
  10809. rm -f "$dirpart/$base.o"
  10810. fi
  10811. fi
  10812. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10813. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10814. done
  10815. done
  10816. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10817. cat >confcache <<\_ACEOF
  10818. # This file is a shell script that caches the results of configure
  10819. # tests run on this system so they can be shared between configure
  10820. # scripts and configure runs, see configure's option --config-cache.
  10821. # It is not useful on other systems. If it contains results you don't
  10822. # want to keep, you may remove or edit it.
  10823. #
  10824. # config.status only pays attention to the cache file if you give it
  10825. # the --recheck option to rerun configure.
  10826. #
  10827. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10828. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10829. # following values.
  10830. _ACEOF
  10831. # The following way of writing the cache mishandles newlines in values,
  10832. # but we know of no workaround that is simple, portable, and efficient.
  10833. # So, don't put newlines in cache variables' values.
  10834. # Ultrix sh set writes to stderr and can't be redirected directly,
  10835. # and sets the high bit in the cache file unless we assign to the vars.
  10836. {
  10837. (set) 2>&1 |
  10838. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10839. *ac_space=\ *)
  10840. # `set' does not quote correctly, so add quotes (double-quote
  10841. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10842. sed -n \
  10843. "s/'/'\\\\''/g;
  10844. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10845. ;;
  10846. *)
  10847. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10848. sed -n \
  10849. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10850. ;;
  10851. esac;
  10852. } |
  10853. sed '
  10854. t clear
  10855. : clear
  10856. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10857. t end
  10858. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10859. : end' >>confcache
  10860. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10861. if test -w $cache_file; then
  10862. test "x$cache_file" != "x/dev/null"
  10863. cat confcache >$cache_file
  10864. else
  10865. echo "not updating unwritable cache $cache_file"
  10866. fi
  10867. fi
  10868. rm -f confcache
  10869. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10870. # Let make expand exec_prefix.
  10871. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10872. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10873. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10874. # trailing colons and then remove the whole line if VPATH becomes empty
  10875. # (actually we leave an empty line to preserve line numbers).
  10876. if test "x$srcdir" = x.; then
  10877. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10878. s/:*\$(srcdir):*/:/;
  10879. s/:*\${srcdir}:*/:/;
  10880. s/:*@srcdir@:*/:/;
  10881. s/^\([^=]*=[ ]*\):*/\1/;
  10882. s/:*$//;
  10883. s/^[^=]*=[ ]*$//;
  10884. }'
  10885. fi
  10886. DEFS=-DHAVE_CONFIG_H
  10887. ac_libobjs=
  10888. ac_ltlibobjs=
  10889. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10890. # 1. Remove the extension, and $U if already installed.
  10891. ac_i=`echo "$ac_i" |
  10892. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10893. # 2. Add them.
  10894. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10895. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10896. done
  10897. LIBOBJS=$ac_libobjs
  10898. LTLIBOBJS=$ac_ltlibobjs
  10899. : ${CONFIG_STATUS=./config.status}
  10900. ac_clean_files_save=$ac_clean_files
  10901. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10902. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10903. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10904. cat >$CONFIG_STATUS <<_ACEOF
  10905. #! $SHELL
  10906. # Generated by $as_me.
  10907. # Run this file to recreate the current configuration.
  10908. # Compiler output produced by configure, useful for debugging
  10909. # configure, is in config.log if it exists.
  10910. debug=false
  10911. ac_cs_recheck=false
  10912. ac_cs_silent=false
  10913. SHELL=\${CONFIG_SHELL-$SHELL}
  10914. _ACEOF
  10915. cat >>$CONFIG_STATUS <<\_ACEOF
  10916. ## --------------------- ##
  10917. ## M4sh Initialization. ##
  10918. ## --------------------- ##
  10919. # Be Bourne compatible
  10920. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10921. emulate sh
  10922. NULLCMD=:
  10923. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10924. # is contrary to our usage. Disable this feature.
  10925. alias -g '${1+"$@"}'='"$@"'
  10926. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10927. set -o posix
  10928. fi
  10929. DUALCASE=1; export DUALCASE # for MKS sh
  10930. # Support unset when possible.
  10931. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10932. as_unset=unset
  10933. else
  10934. as_unset=false
  10935. fi
  10936. # Work around bugs in pre-3.0 UWIN ksh.
  10937. $as_unset ENV MAIL MAILPATH
  10938. PS1='$ '
  10939. PS2='> '
  10940. PS4='+ '
  10941. # NLS nuisances.
  10942. for as_var in \
  10943. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10944. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10945. LC_TELEPHONE LC_TIME
  10946. do
  10947. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10948. eval $as_var=C; export $as_var
  10949. else
  10950. $as_unset $as_var
  10951. fi
  10952. done
  10953. # Required to use basename.
  10954. if expr a : '\(a\)' >/dev/null 2>&1; then
  10955. as_expr=expr
  10956. else
  10957. as_expr=false
  10958. fi
  10959. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10960. as_basename=basename
  10961. else
  10962. as_basename=false
  10963. fi
  10964. # Name of the executable.
  10965. as_me=`$as_basename "$0" ||
  10966. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10967. X"$0" : 'X\(//\)$' \| \
  10968. X"$0" : 'X\(/\)$' \| \
  10969. . : '\(.\)' 2>/dev/null ||
  10970. echo X/"$0" |
  10971. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10972. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10973. /^X\/\(\/\).*/{ s//\1/; q; }
  10974. s/.*/./; q'`
  10975. # PATH needs CR, and LINENO needs CR and PATH.
  10976. # Avoid depending upon Character Ranges.
  10977. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10978. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10979. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10980. as_cr_digits='0123456789'
  10981. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10982. # The user is always right.
  10983. if test "${PATH_SEPARATOR+set}" != set; then
  10984. echo "#! /bin/sh" >conf$$.sh
  10985. echo "exit 0" >>conf$$.sh
  10986. chmod +x conf$$.sh
  10987. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10988. PATH_SEPARATOR=';'
  10989. else
  10990. PATH_SEPARATOR=:
  10991. fi
  10992. rm -f conf$$.sh
  10993. fi
  10994. as_lineno_1=$LINENO
  10995. as_lineno_2=$LINENO
  10996. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10997. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10998. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10999. # Find who we are. Look in the path if we contain no path at all
  11000. # relative or not.
  11001. case $0 in
  11002. *[\\/]* ) as_myself=$0 ;;
  11003. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11004. for as_dir in $PATH
  11005. do
  11006. IFS=$as_save_IFS
  11007. test -z "$as_dir" && as_dir=.
  11008. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11009. done
  11010. ;;
  11011. esac
  11012. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11013. # in which case we are not to be found in the path.
  11014. if test "x$as_myself" = x; then
  11015. as_myself=$0
  11016. fi
  11017. if test ! -f "$as_myself"; then
  11018. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11019. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11020. { (exit 1); exit 1; }; }
  11021. fi
  11022. case $CONFIG_SHELL in
  11023. '')
  11024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11025. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11026. do
  11027. IFS=$as_save_IFS
  11028. test -z "$as_dir" && as_dir=.
  11029. for as_base in sh bash ksh sh5; do
  11030. case $as_dir in
  11031. /*)
  11032. if ("$as_dir/$as_base" -c '
  11033. as_lineno_1=$LINENO
  11034. as_lineno_2=$LINENO
  11035. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11036. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11037. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11038. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11039. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11040. CONFIG_SHELL=$as_dir/$as_base
  11041. export CONFIG_SHELL
  11042. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11043. fi;;
  11044. esac
  11045. done
  11046. done
  11047. ;;
  11048. esac
  11049. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11050. # uniformly replaced by the line number. The first 'sed' inserts a
  11051. # line-number line before each line; the second 'sed' does the real
  11052. # work. The second script uses 'N' to pair each line-number line
  11053. # with the numbered line, and appends trailing '-' during
  11054. # substitution so that $LINENO is not a special case at line end.
  11055. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11056. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11057. sed '=' <$as_myself |
  11058. sed '
  11059. N
  11060. s,$,-,
  11061. : loop
  11062. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11063. t loop
  11064. s,-$,,
  11065. s,^['$as_cr_digits']*\n,,
  11066. ' >$as_me.lineno &&
  11067. chmod +x $as_me.lineno ||
  11068. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11069. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11070. { (exit 1); exit 1; }; }
  11071. # Don't try to exec as it changes $[0], causing all sort of problems
  11072. # (the dirname of $[0] is not the place where we might find the
  11073. # original and so on. Autoconf is especially sensible to this).
  11074. . ./$as_me.lineno
  11075. # Exit status is that of the last command.
  11076. exit
  11077. }
  11078. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11079. *c*,-n*) ECHO_N= ECHO_C='
  11080. ' ECHO_T=' ' ;;
  11081. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11082. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11083. esac
  11084. if expr a : '\(a\)' >/dev/null 2>&1; then
  11085. as_expr=expr
  11086. else
  11087. as_expr=false
  11088. fi
  11089. rm -f conf$$ conf$$.exe conf$$.file
  11090. echo >conf$$.file
  11091. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11092. # We could just check for DJGPP; but this test a) works b) is more generic
  11093. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11094. if test -f conf$$.exe; then
  11095. # Don't use ln at all; we don't have any links
  11096. as_ln_s='cp -p'
  11097. else
  11098. as_ln_s='ln -s'
  11099. fi
  11100. elif ln conf$$.file conf$$ 2>/dev/null; then
  11101. as_ln_s=ln
  11102. else
  11103. as_ln_s='cp -p'
  11104. fi
  11105. rm -f conf$$ conf$$.exe conf$$.file
  11106. if mkdir -p . 2>/dev/null; then
  11107. as_mkdir_p=:
  11108. else
  11109. test -d ./-p && rmdir ./-p
  11110. as_mkdir_p=false
  11111. fi
  11112. as_executable_p="test -f"
  11113. # Sed expression to map a string onto a valid CPP name.
  11114. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11115. # Sed expression to map a string onto a valid variable name.
  11116. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11117. # IFS
  11118. # We need space, tab and new line, in precisely that order.
  11119. as_nl='
  11120. '
  11121. IFS=" $as_nl"
  11122. # CDPATH.
  11123. $as_unset CDPATH
  11124. exec 6>&1
  11125. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11126. # report actual input values of CONFIG_FILES etc. instead of their
  11127. # values after options handling. Logging --version etc. is OK.
  11128. exec 5>>config.log
  11129. {
  11130. echo
  11131. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11132. ## Running $as_me. ##
  11133. _ASBOX
  11134. } >&5
  11135. cat >&5 <<_CSEOF
  11136. This file was extended by $as_me, which was
  11137. generated by GNU Autoconf 2.59. Invocation command line was
  11138. CONFIG_FILES = $CONFIG_FILES
  11139. CONFIG_HEADERS = $CONFIG_HEADERS
  11140. CONFIG_LINKS = $CONFIG_LINKS
  11141. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11142. $ $0 $@
  11143. _CSEOF
  11144. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11145. echo >&5
  11146. _ACEOF
  11147. # Files that config.status was made for.
  11148. if test -n "$ac_config_files"; then
  11149. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11150. fi
  11151. if test -n "$ac_config_headers"; then
  11152. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11153. fi
  11154. if test -n "$ac_config_links"; then
  11155. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11156. fi
  11157. if test -n "$ac_config_commands"; then
  11158. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11159. fi
  11160. cat >>$CONFIG_STATUS <<\_ACEOF
  11161. ac_cs_usage="\
  11162. \`$as_me' instantiates files from templates according to the
  11163. current configuration.
  11164. Usage: $0 [OPTIONS] [FILE]...
  11165. -h, --help print this help, then exit
  11166. -V, --version print version number, then exit
  11167. -q, --quiet do not print progress messages
  11168. -d, --debug don't remove temporary files
  11169. --recheck update $as_me by reconfiguring in the same conditions
  11170. --file=FILE[:TEMPLATE]
  11171. instantiate the configuration file FILE
  11172. --header=FILE[:TEMPLATE]
  11173. instantiate the configuration header FILE
  11174. Configuration files:
  11175. $config_files
  11176. Configuration headers:
  11177. $config_headers
  11178. Report bugs to <bug-autoconf@gnu.org>."
  11179. _ACEOF
  11180. cat >>$CONFIG_STATUS <<_ACEOF
  11181. ac_cs_version="\\
  11182. config.status
  11183. configured by $0, generated by GNU Autoconf 2.59,
  11184. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11185. Copyright (C) 2003 Free Software Foundation, Inc.
  11186. This config.status script is free software; the Free Software Foundation
  11187. gives unlimited permission to copy, distribute and modify it."
  11188. srcdir=$srcdir
  11189. _ACEOF
  11190. cat >>$CONFIG_STATUS <<\_ACEOF
  11191. # If no file are specified by the user, then we need to provide default
  11192. # value. By we need to know if files were specified by the user.
  11193. ac_need_defaults=:
  11194. while test $# != 0
  11195. do
  11196. case $1 in
  11197. --*=*)
  11198. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11199. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11200. ac_shift=:
  11201. ;;
  11202. -*)
  11203. ac_option=$1
  11204. ac_optarg=$2
  11205. ac_shift=shift
  11206. ;;
  11207. *) # This is not an option, so the user has probably given explicit
  11208. # arguments.
  11209. ac_option=$1
  11210. ac_need_defaults=false;;
  11211. esac
  11212. case $ac_option in
  11213. # Handling of the options.
  11214. _ACEOF
  11215. cat >>$CONFIG_STATUS <<\_ACEOF
  11216. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11217. ac_cs_recheck=: ;;
  11218. --version | --vers* | -V )
  11219. echo "$ac_cs_version"; exit 0 ;;
  11220. --he | --h)
  11221. # Conflict between --help and --header
  11222. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11223. Try \`$0 --help' for more information." >&5
  11224. echo "$as_me: error: ambiguous option: $1
  11225. Try \`$0 --help' for more information." >&2;}
  11226. { (exit 1); exit 1; }; };;
  11227. --help | --hel | -h )
  11228. echo "$ac_cs_usage"; exit 0 ;;
  11229. --debug | --d* | -d )
  11230. debug=: ;;
  11231. --file | --fil | --fi | --f )
  11232. $ac_shift
  11233. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11234. ac_need_defaults=false;;
  11235. --header | --heade | --head | --hea )
  11236. $ac_shift
  11237. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11238. ac_need_defaults=false;;
  11239. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11240. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11241. ac_cs_silent=: ;;
  11242. # This is an error.
  11243. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11244. Try \`$0 --help' for more information." >&5
  11245. echo "$as_me: error: unrecognized option: $1
  11246. Try \`$0 --help' for more information." >&2;}
  11247. { (exit 1); exit 1; }; } ;;
  11248. *) ac_config_targets="$ac_config_targets $1" ;;
  11249. esac
  11250. shift
  11251. done
  11252. ac_configure_extra_args=
  11253. if $ac_cs_silent; then
  11254. exec 6>/dev/null
  11255. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11256. fi
  11257. _ACEOF
  11258. cat >>$CONFIG_STATUS <<_ACEOF
  11259. if \$ac_cs_recheck; then
  11260. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11261. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11262. fi
  11263. _ACEOF
  11264. cat >>$CONFIG_STATUS <<\_ACEOF
  11265. for ac_config_target in $ac_config_targets
  11266. do
  11267. case "$ac_config_target" in
  11268. # Handling of arguments.
  11269. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11270. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11271. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11272. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11273. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11274. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11275. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11276. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11277. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11278. { (exit 1); exit 1; }; };;
  11279. esac
  11280. done
  11281. # If the user did not use the arguments to specify the items to instantiate,
  11282. # then the envvar interface is used. Set only those that are not.
  11283. # We use the long form for the default assignment because of an extremely
  11284. # bizarre bug on SunOS 4.1.3.
  11285. if $ac_need_defaults; then
  11286. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11287. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11288. fi
  11289. # Have a temporary directory for convenience. Make it in the build tree
  11290. # simply because there is no reason to put it here, and in addition,
  11291. # creating and moving files from /tmp can sometimes cause problems.
  11292. # Create a temporary directory, and hook for its removal unless debugging.
  11293. $debug ||
  11294. {
  11295. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11296. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11297. }
  11298. # Create a (secure) tmp directory for tmp files.
  11299. {
  11300. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11301. test -n "$tmp" && test -d "$tmp"
  11302. } ||
  11303. {
  11304. tmp=./confstat$$-$RANDOM
  11305. (umask 077 && mkdir $tmp)
  11306. } ||
  11307. {
  11308. echo "$me: cannot create a temporary directory in ." >&2
  11309. { (exit 1); exit 1; }
  11310. }
  11311. _ACEOF
  11312. cat >>$CONFIG_STATUS <<_ACEOF
  11313. #
  11314. # CONFIG_FILES section.
  11315. #
  11316. # No need to generate the scripts if there are no CONFIG_FILES.
  11317. # This happens for instance when ./config.status config.h
  11318. if test -n "\$CONFIG_FILES"; then
  11319. # Protect against being on the right side of a sed subst in config.status.
  11320. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11321. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11322. s,@SHELL@,$SHELL,;t t
  11323. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11324. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11325. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11326. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11327. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11328. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11329. s,@exec_prefix@,$exec_prefix,;t t
  11330. s,@prefix@,$prefix,;t t
  11331. s,@program_transform_name@,$program_transform_name,;t t
  11332. s,@bindir@,$bindir,;t t
  11333. s,@sbindir@,$sbindir,;t t
  11334. s,@libexecdir@,$libexecdir,;t t
  11335. s,@datadir@,$datadir,;t t
  11336. s,@sysconfdir@,$sysconfdir,;t t
  11337. s,@sharedstatedir@,$sharedstatedir,;t t
  11338. s,@localstatedir@,$localstatedir,;t t
  11339. s,@libdir@,$libdir,;t t
  11340. s,@includedir@,$includedir,;t t
  11341. s,@oldincludedir@,$oldincludedir,;t t
  11342. s,@infodir@,$infodir,;t t
  11343. s,@mandir@,$mandir,;t t
  11344. s,@build_alias@,$build_alias,;t t
  11345. s,@host_alias@,$host_alias,;t t
  11346. s,@target_alias@,$target_alias,;t t
  11347. s,@DEFS@,$DEFS,;t t
  11348. s,@ECHO_C@,$ECHO_C,;t t
  11349. s,@ECHO_N@,$ECHO_N,;t t
  11350. s,@ECHO_T@,$ECHO_T,;t t
  11351. s,@LIBS@,$LIBS,;t t
  11352. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11353. s,@CC@,$CC,;t t
  11354. s,@CFLAGS@,$CFLAGS,;t t
  11355. s,@LDFLAGS@,$LDFLAGS,;t t
  11356. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11357. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11358. s,@EXEEXT@,$EXEEXT,;t t
  11359. s,@OBJEXT@,$OBJEXT,;t t
  11360. s,@CPP@,$CPP,;t t
  11361. s,@EGREP@,$EGREP,;t t
  11362. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11363. s,@CCDEBUG@,$CCDEBUG,;t t
  11364. s,@SET_MAKE@,$SET_MAKE,;t t
  11365. s,@HEAD_1@,$HEAD_1,;t t
  11366. s,@AWK@,$AWK,;t t
  11367. s,@BASENAME@,$BASENAME,;t t
  11368. s,@OBJCOPY@,$OBJCOPY,;t t
  11369. s,@STRIP@,$STRIP,;t t
  11370. s,@UNAME@,$UNAME,;t t
  11371. s,@DISTCC@,$DISTCC,;t t
  11372. s,@RESLIB@,$RESLIB,;t t
  11373. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11374. s,@ZLIB@,$ZLIB,;t t
  11375. s,@LIBOBJS@,$LIBOBJS,;t t
  11376. s,@VERSION@,$VERSION,;t t
  11377. s,@NUMVER@,$NUMVER,;t t
  11378. s,@PACKNAME@,$PACKNAME,;t t
  11379. s,@CFG@,$CFG,;t t
  11380. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11381. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11382. CEOF
  11383. _ACEOF
  11384. cat >>$CONFIG_STATUS <<\_ACEOF
  11385. # Split the substitutions into bite-sized pieces for seds with
  11386. # small command number limits, like on Digital OSF/1 and HP-UX.
  11387. ac_max_sed_lines=48
  11388. ac_sed_frag=1 # Number of current file.
  11389. ac_beg=1 # First line for current file.
  11390. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11391. ac_more_lines=:
  11392. ac_sed_cmds=
  11393. while $ac_more_lines; do
  11394. if test $ac_beg -gt 1; then
  11395. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11396. else
  11397. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11398. fi
  11399. if test ! -s $tmp/subs.frag; then
  11400. ac_more_lines=false
  11401. else
  11402. # The purpose of the label and of the branching condition is to
  11403. # speed up the sed processing (if there are no `@' at all, there
  11404. # is no need to browse any of the substitutions).
  11405. # These are the two extra sed commands mentioned above.
  11406. (echo ':t
  11407. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11408. if test -z "$ac_sed_cmds"; then
  11409. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11410. else
  11411. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11412. fi
  11413. ac_sed_frag=`expr $ac_sed_frag + 1`
  11414. ac_beg=$ac_end
  11415. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11416. fi
  11417. done
  11418. if test -z "$ac_sed_cmds"; then
  11419. ac_sed_cmds=cat
  11420. fi
  11421. fi # test -n "$CONFIG_FILES"
  11422. _ACEOF
  11423. cat >>$CONFIG_STATUS <<\_ACEOF
  11424. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11425. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11426. case $ac_file in
  11427. - | *:- | *:-:* ) # input from stdin
  11428. cat >$tmp/stdin
  11429. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11430. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11431. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11432. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11433. * ) ac_file_in=$ac_file.in ;;
  11434. esac
  11435. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11436. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11437. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11438. X"$ac_file" : 'X\(//\)[^/]' \| \
  11439. X"$ac_file" : 'X\(//\)$' \| \
  11440. X"$ac_file" : 'X\(/\)' \| \
  11441. . : '\(.\)' 2>/dev/null ||
  11442. echo X"$ac_file" |
  11443. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11444. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11445. /^X\(\/\/\)$/{ s//\1/; q; }
  11446. /^X\(\/\).*/{ s//\1/; q; }
  11447. s/.*/./; q'`
  11448. { if $as_mkdir_p; then
  11449. mkdir -p "$ac_dir"
  11450. else
  11451. as_dir="$ac_dir"
  11452. as_dirs=
  11453. while test ! -d "$as_dir"; do
  11454. as_dirs="$as_dir $as_dirs"
  11455. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11456. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11457. X"$as_dir" : 'X\(//\)[^/]' \| \
  11458. X"$as_dir" : 'X\(//\)$' \| \
  11459. X"$as_dir" : 'X\(/\)' \| \
  11460. . : '\(.\)' 2>/dev/null ||
  11461. echo X"$as_dir" |
  11462. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11463. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11464. /^X\(\/\/\)$/{ s//\1/; q; }
  11465. /^X\(\/\).*/{ s//\1/; q; }
  11466. s/.*/./; q'`
  11467. done
  11468. test ! -n "$as_dirs" || mkdir $as_dirs
  11469. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11470. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11471. { (exit 1); exit 1; }; }; }
  11472. ac_builddir=.
  11473. if test "$ac_dir" != .; then
  11474. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11475. # A "../" for each directory in $ac_dir_suffix.
  11476. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11477. else
  11478. ac_dir_suffix= ac_top_builddir=
  11479. fi
  11480. case $srcdir in
  11481. .) # No --srcdir option. We are building in place.
  11482. ac_srcdir=.
  11483. if test -z "$ac_top_builddir"; then
  11484. ac_top_srcdir=.
  11485. else
  11486. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11487. fi ;;
  11488. [\\/]* | ?:[\\/]* ) # Absolute path.
  11489. ac_srcdir=$srcdir$ac_dir_suffix;
  11490. ac_top_srcdir=$srcdir ;;
  11491. *) # Relative path.
  11492. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11493. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11494. esac
  11495. # Do not use `cd foo && pwd` to compute absolute paths, because
  11496. # the directories may not exist.
  11497. case `pwd` in
  11498. .) ac_abs_builddir="$ac_dir";;
  11499. *)
  11500. case "$ac_dir" in
  11501. .) ac_abs_builddir=`pwd`;;
  11502. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11503. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11504. esac;;
  11505. esac
  11506. case $ac_abs_builddir in
  11507. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11508. *)
  11509. case ${ac_top_builddir}. in
  11510. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11511. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11512. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11513. esac;;
  11514. esac
  11515. case $ac_abs_builddir in
  11516. .) ac_abs_srcdir=$ac_srcdir;;
  11517. *)
  11518. case $ac_srcdir in
  11519. .) ac_abs_srcdir=$ac_abs_builddir;;
  11520. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11521. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11522. esac;;
  11523. esac
  11524. case $ac_abs_builddir in
  11525. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11526. *)
  11527. case $ac_top_srcdir in
  11528. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11529. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11530. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11531. esac;;
  11532. esac
  11533. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11534. # use $as_me), people would be surprised to read:
  11535. # /* config.h. Generated by config.status. */
  11536. if test x"$ac_file" = x-; then
  11537. configure_input=
  11538. else
  11539. configure_input="$ac_file. "
  11540. fi
  11541. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11542. sed 's,.*/,,'` by configure."
  11543. # First look for the input files in the build tree, otherwise in the
  11544. # src tree.
  11545. ac_file_inputs=`IFS=:
  11546. for f in $ac_file_in; do
  11547. case $f in
  11548. -) echo $tmp/stdin ;;
  11549. [\\/$]*)
  11550. # Absolute (can't be DOS-style, as IFS=:)
  11551. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11552. echo "$as_me: error: cannot find input file: $f" >&2;}
  11553. { (exit 1); exit 1; }; }
  11554. echo "$f";;
  11555. *) # Relative
  11556. if test -f "$f"; then
  11557. # Build tree
  11558. echo "$f"
  11559. elif test -f "$srcdir/$f"; then
  11560. # Source tree
  11561. echo "$srcdir/$f"
  11562. else
  11563. # /dev/null tree
  11564. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11565. echo "$as_me: error: cannot find input file: $f" >&2;}
  11566. { (exit 1); exit 1; }; }
  11567. fi;;
  11568. esac
  11569. done` || { (exit 1); exit 1; }
  11570. if test x"$ac_file" != x-; then
  11571. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11572. echo "$as_me: creating $ac_file" >&6;}
  11573. rm -f "$ac_file"
  11574. fi
  11575. _ACEOF
  11576. cat >>$CONFIG_STATUS <<_ACEOF
  11577. sed "$ac_vpsub
  11578. $extrasub
  11579. _ACEOF
  11580. cat >>$CONFIG_STATUS <<\_ACEOF
  11581. :t
  11582. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11583. s,@configure_input@,$configure_input,;t t
  11584. s,@srcdir@,$ac_srcdir,;t t
  11585. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11586. s,@top_srcdir@,$ac_top_srcdir,;t t
  11587. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11588. s,@builddir@,$ac_builddir,;t t
  11589. s,@abs_builddir@,$ac_abs_builddir,;t t
  11590. s,@top_builddir@,$ac_top_builddir,;t t
  11591. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11592. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11593. rm -f $tmp/stdin
  11594. if test x"$ac_file" != x-; then
  11595. mv $tmp/out $ac_file
  11596. else
  11597. cat $tmp/out
  11598. rm -f $tmp/out
  11599. fi
  11600. done
  11601. _ACEOF
  11602. cat >>$CONFIG_STATUS <<\_ACEOF
  11603. #
  11604. # CONFIG_HEADER section.
  11605. #
  11606. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11607. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11608. #
  11609. # ac_d sets the value in "#define NAME VALUE" lines.
  11610. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11611. ac_dB='[ ].*$,\1#\2'
  11612. ac_dC=' '
  11613. ac_dD=',;t'
  11614. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11615. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11616. ac_uB='$,\1#\2define\3'
  11617. ac_uC=' '
  11618. ac_uD=',;t'
  11619. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11620. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11621. case $ac_file in
  11622. - | *:- | *:-:* ) # input from stdin
  11623. cat >$tmp/stdin
  11624. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11625. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11626. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11627. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11628. * ) ac_file_in=$ac_file.in ;;
  11629. esac
  11630. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11631. echo "$as_me: creating $ac_file" >&6;}
  11632. # First look for the input files in the build tree, otherwise in the
  11633. # src tree.
  11634. ac_file_inputs=`IFS=:
  11635. for f in $ac_file_in; do
  11636. case $f in
  11637. -) echo $tmp/stdin ;;
  11638. [\\/$]*)
  11639. # Absolute (can't be DOS-style, as IFS=:)
  11640. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11641. echo "$as_me: error: cannot find input file: $f" >&2;}
  11642. { (exit 1); exit 1; }; }
  11643. # Do quote $f, to prevent DOS paths from being IFS'd.
  11644. echo "$f";;
  11645. *) # Relative
  11646. if test -f "$f"; then
  11647. # Build tree
  11648. echo "$f"
  11649. elif test -f "$srcdir/$f"; then
  11650. # Source tree
  11651. echo "$srcdir/$f"
  11652. else
  11653. # /dev/null tree
  11654. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11655. echo "$as_me: error: cannot find input file: $f" >&2;}
  11656. { (exit 1); exit 1; }; }
  11657. fi;;
  11658. esac
  11659. done` || { (exit 1); exit 1; }
  11660. # Remove the trailing spaces.
  11661. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11662. _ACEOF
  11663. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11664. # `conftest.undefs', that substitutes the proper values into
  11665. # config.h.in to produce config.h. The first handles `#define'
  11666. # templates, and the second `#undef' templates.
  11667. # And first: Protect against being on the right side of a sed subst in
  11668. # config.status. Protect against being in an unquoted here document
  11669. # in config.status.
  11670. rm -f conftest.defines conftest.undefs
  11671. # Using a here document instead of a string reduces the quoting nightmare.
  11672. # Putting comments in sed scripts is not portable.
  11673. #
  11674. # `end' is used to avoid that the second main sed command (meant for
  11675. # 0-ary CPP macros) applies to n-ary macro definitions.
  11676. # See the Autoconf documentation for `clear'.
  11677. cat >confdef2sed.sed <<\_ACEOF
  11678. s/[\\&,]/\\&/g
  11679. s,[\\$`],\\&,g
  11680. t clear
  11681. : clear
  11682. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11683. t end
  11684. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11685. : end
  11686. _ACEOF
  11687. # If some macros were called several times there might be several times
  11688. # the same #defines, which is useless. Nevertheless, we may not want to
  11689. # sort them, since we want the *last* AC-DEFINE to be honored.
  11690. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11691. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11692. rm -f confdef2sed.sed
  11693. # This sed command replaces #undef with comments. This is necessary, for
  11694. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11695. # on some systems where configure will not decide to define it.
  11696. cat >>conftest.undefs <<\_ACEOF
  11697. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11698. _ACEOF
  11699. # Break up conftest.defines because some shells have a limit on the size
  11700. # of here documents, and old seds have small limits too (100 cmds).
  11701. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11702. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11703. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11704. echo ' :' >>$CONFIG_STATUS
  11705. rm -f conftest.tail
  11706. while grep . conftest.defines >/dev/null
  11707. do
  11708. # Write a limited-size here document to $tmp/defines.sed.
  11709. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11710. # Speed up: don't consider the non `#define' lines.
  11711. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11712. # Work around the forget-to-reset-the-flag bug.
  11713. echo 't clr' >>$CONFIG_STATUS
  11714. echo ': clr' >>$CONFIG_STATUS
  11715. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11716. echo 'CEOF
  11717. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11718. rm -f $tmp/in
  11719. mv $tmp/out $tmp/in
  11720. ' >>$CONFIG_STATUS
  11721. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11722. rm -f conftest.defines
  11723. mv conftest.tail conftest.defines
  11724. done
  11725. rm -f conftest.defines
  11726. echo ' fi # grep' >>$CONFIG_STATUS
  11727. echo >>$CONFIG_STATUS
  11728. # Break up conftest.undefs because some shells have a limit on the size
  11729. # of here documents, and old seds have small limits too (100 cmds).
  11730. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11731. rm -f conftest.tail
  11732. while grep . conftest.undefs >/dev/null
  11733. do
  11734. # Write a limited-size here document to $tmp/undefs.sed.
  11735. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11736. # Speed up: don't consider the non `#undef'
  11737. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11738. # Work around the forget-to-reset-the-flag bug.
  11739. echo 't clr' >>$CONFIG_STATUS
  11740. echo ': clr' >>$CONFIG_STATUS
  11741. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11742. echo 'CEOF
  11743. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11744. rm -f $tmp/in
  11745. mv $tmp/out $tmp/in
  11746. ' >>$CONFIG_STATUS
  11747. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11748. rm -f conftest.undefs
  11749. mv conftest.tail conftest.undefs
  11750. done
  11751. rm -f conftest.undefs
  11752. cat >>$CONFIG_STATUS <<\_ACEOF
  11753. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11754. # use $as_me), people would be surprised to read:
  11755. # /* config.h. Generated by config.status. */
  11756. if test x"$ac_file" = x-; then
  11757. echo "/* Generated by configure. */" >$tmp/config.h
  11758. else
  11759. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11760. fi
  11761. cat $tmp/in >>$tmp/config.h
  11762. rm -f $tmp/in
  11763. if test x"$ac_file" != x-; then
  11764. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11765. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11766. echo "$as_me: $ac_file is unchanged" >&6;}
  11767. else
  11768. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11769. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11770. X"$ac_file" : 'X\(//\)[^/]' \| \
  11771. X"$ac_file" : 'X\(//\)$' \| \
  11772. X"$ac_file" : 'X\(/\)' \| \
  11773. . : '\(.\)' 2>/dev/null ||
  11774. echo X"$ac_file" |
  11775. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11776. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11777. /^X\(\/\/\)$/{ s//\1/; q; }
  11778. /^X\(\/\).*/{ s//\1/; q; }
  11779. s/.*/./; q'`
  11780. { if $as_mkdir_p; then
  11781. mkdir -p "$ac_dir"
  11782. else
  11783. as_dir="$ac_dir"
  11784. as_dirs=
  11785. while test ! -d "$as_dir"; do
  11786. as_dirs="$as_dir $as_dirs"
  11787. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11788. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11789. X"$as_dir" : 'X\(//\)[^/]' \| \
  11790. X"$as_dir" : 'X\(//\)$' \| \
  11791. X"$as_dir" : 'X\(/\)' \| \
  11792. . : '\(.\)' 2>/dev/null ||
  11793. echo X"$as_dir" |
  11794. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11795. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11796. /^X\(\/\/\)$/{ s//\1/; q; }
  11797. /^X\(\/\).*/{ s//\1/; q; }
  11798. s/.*/./; q'`
  11799. done
  11800. test ! -n "$as_dirs" || mkdir $as_dirs
  11801. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11802. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11803. { (exit 1); exit 1; }; }; }
  11804. rm -f $ac_file
  11805. mv $tmp/config.h $ac_file
  11806. fi
  11807. else
  11808. cat $tmp/config.h
  11809. rm -f $tmp/config.h
  11810. fi
  11811. done
  11812. _ACEOF
  11813. cat >>$CONFIG_STATUS <<\_ACEOF
  11814. { (exit 0); exit 0; }
  11815. _ACEOF
  11816. chmod +x $CONFIG_STATUS
  11817. ac_clean_files=$ac_clean_files_save
  11818. # configure is writing to config.log, and then calls config.status.
  11819. # config.status does its own redirection, appending to config.log.
  11820. # Unfortunately, on DOS this fails, as config.log is still kept open
  11821. # by configure, so config.status won't be able to write to it; its
  11822. # output is simply discarded. So we exec the FD to /dev/null,
  11823. # effectively closing config.log, so it can be properly (re)opened and
  11824. # appended to by config.status. When coming back to configure, we
  11825. # need to make the FD available again.
  11826. if test "$no_create" != yes; then
  11827. ac_cs_success=:
  11828. ac_config_status_args=
  11829. test "$silent" = yes &&
  11830. ac_config_status_args="$ac_config_status_args --quiet"
  11831. exec 5>/dev/null
  11832. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11833. exec 5>>config.log
  11834. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11835. # would make configure fail if this is the last instruction.
  11836. $ac_cs_success || { (exit 1); exit 1; }
  11837. fi