configure 363 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009
  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"
  1692. || test ! -s conftest.err'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; } &&
  1698. { ac_try='test -s conftest.$ac_objext'
  1699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1700. (eval $ac_try) 2>&5
  1701. ac_status=$?
  1702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1703. (exit $ac_status); }; }; then
  1704. ac_compiler_gnu=yes
  1705. else
  1706. echo "$as_me: failed program was:" >&5
  1707. sed 's/^/| /' conftest.$ac_ext >&5
  1708. ac_compiler_gnu=no
  1709. fi
  1710. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1711. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1712. fi
  1713. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1714. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1715. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1716. ac_test_CFLAGS=${CFLAGS+set}
  1717. ac_save_CFLAGS=$CFLAGS
  1718. CFLAGS="-g"
  1719. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1720. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1721. if test "${ac_cv_prog_cc_g+set}" = set; then
  1722. echo $ECHO_N "(cached) $ECHO_C" >&6
  1723. else
  1724. cat >conftest.$ac_ext <<_ACEOF
  1725. /* confdefs.h. */
  1726. _ACEOF
  1727. cat confdefs.h >>conftest.$ac_ext
  1728. cat >>conftest.$ac_ext <<_ACEOF
  1729. /* end confdefs.h. */
  1730. int
  1731. main ()
  1732. {
  1733. ;
  1734. return 0;
  1735. }
  1736. _ACEOF
  1737. rm -f conftest.$ac_objext
  1738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1739. (eval $ac_compile) 2>conftest.er1
  1740. ac_status=$?
  1741. grep -v '^ *+' conftest.er1 >conftest.err
  1742. rm -f conftest.er1
  1743. cat conftest.err >&5
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); } &&
  1746. { ac_try='test -z "$ac_c_werror_flag"
  1747. || test ! -s conftest.err'
  1748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1749. (eval $ac_try) 2>&5
  1750. ac_status=$?
  1751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1752. (exit $ac_status); }; } &&
  1753. { ac_try='test -s conftest.$ac_objext'
  1754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1755. (eval $ac_try) 2>&5
  1756. ac_status=$?
  1757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1758. (exit $ac_status); }; }; then
  1759. ac_cv_prog_cc_g=yes
  1760. else
  1761. echo "$as_me: failed program was:" >&5
  1762. sed 's/^/| /' conftest.$ac_ext >&5
  1763. ac_cv_prog_cc_g=no
  1764. fi
  1765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1766. fi
  1767. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1768. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1769. if test "$ac_test_CFLAGS" = set; then
  1770. CFLAGS=$ac_save_CFLAGS
  1771. elif test $ac_cv_prog_cc_g = yes; then
  1772. if test "$GCC" = yes; then
  1773. CFLAGS="-g -O2"
  1774. else
  1775. CFLAGS="-g"
  1776. fi
  1777. else
  1778. if test "$GCC" = yes; then
  1779. CFLAGS="-O2"
  1780. else
  1781. CFLAGS=
  1782. fi
  1783. fi
  1784. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1785. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1786. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1787. echo $ECHO_N "(cached) $ECHO_C" >&6
  1788. else
  1789. ac_cv_prog_cc_stdc=no
  1790. ac_save_CC=$CC
  1791. cat >conftest.$ac_ext <<_ACEOF
  1792. /* confdefs.h. */
  1793. _ACEOF
  1794. cat confdefs.h >>conftest.$ac_ext
  1795. cat >>conftest.$ac_ext <<_ACEOF
  1796. /* end confdefs.h. */
  1797. #include <stdarg.h>
  1798. #include <stdio.h>
  1799. #include <sys/types.h>
  1800. #include <sys/stat.h>
  1801. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1802. struct buf { int x; };
  1803. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1804. static char *e (p, i)
  1805. char **p;
  1806. int i;
  1807. {
  1808. return p[i];
  1809. }
  1810. static char *f (char * (*g) (char **, int), char **p, ...)
  1811. {
  1812. char *s;
  1813. va_list v;
  1814. va_start (v,p);
  1815. s = g (p, va_arg (v,int));
  1816. va_end (v);
  1817. return s;
  1818. }
  1819. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1820. function prototypes and stuff, but not '\xHH' hex character constants.
  1821. These don't provoke an error unfortunately, instead are silently treated
  1822. as 'x'. The following induces an error, until -std1 is added to get
  1823. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1824. array size at least. It's necessary to write '\x00'==0 to get something
  1825. that's true only with -std1. */
  1826. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1827. int test (int i, double x);
  1828. struct s1 {int (*f) (int a);};
  1829. struct s2 {int (*f) (double a);};
  1830. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1831. int argc;
  1832. char **argv;
  1833. int
  1834. main ()
  1835. {
  1836. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. # Don't try gcc -ansi; that turns off useful extensions and
  1842. # breaks some systems' header files.
  1843. # AIX -qlanglvl=ansi
  1844. # Ultrix and OSF/1 -std1
  1845. # HP-UX 10.20 and later -Ae
  1846. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1847. # SVR4 -Xc -D__EXTENSIONS__
  1848. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1849. do
  1850. CC="$ac_save_CC $ac_arg"
  1851. rm -f conftest.$ac_objext
  1852. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1853. (eval $ac_compile) 2>conftest.er1
  1854. ac_status=$?
  1855. grep -v '^ *+' conftest.er1 >conftest.err
  1856. rm -f conftest.er1
  1857. cat conftest.err >&5
  1858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1859. (exit $ac_status); } &&
  1860. { ac_try='test -z "$ac_c_werror_flag"
  1861. || test ! -s conftest.err'
  1862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1863. (eval $ac_try) 2>&5
  1864. ac_status=$?
  1865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1866. (exit $ac_status); }; } &&
  1867. { ac_try='test -s conftest.$ac_objext'
  1868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1869. (eval $ac_try) 2>&5
  1870. ac_status=$?
  1871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1872. (exit $ac_status); }; }; then
  1873. ac_cv_prog_cc_stdc=$ac_arg
  1874. break
  1875. else
  1876. echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. fi
  1879. rm -f conftest.err conftest.$ac_objext
  1880. done
  1881. rm -f conftest.$ac_ext conftest.$ac_objext
  1882. CC=$ac_save_CC
  1883. fi
  1884. case "x$ac_cv_prog_cc_stdc" in
  1885. x|xno)
  1886. echo "$as_me:$LINENO: result: none needed" >&5
  1887. echo "${ECHO_T}none needed" >&6 ;;
  1888. *)
  1889. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1890. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1891. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1892. esac
  1893. # Some people use a C++ compiler to compile C. Since we use `exit',
  1894. # in C++ we need to declare it. In case someone uses the same compiler
  1895. # for both compiling C and C++ we need to have the C++ compiler decide
  1896. # the declaration of exit, since it's the most demanding environment.
  1897. cat >conftest.$ac_ext <<_ACEOF
  1898. #ifndef __cplusplus
  1899. choke me
  1900. #endif
  1901. _ACEOF
  1902. rm -f conftest.$ac_objext
  1903. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1904. (eval $ac_compile) 2>conftest.er1
  1905. ac_status=$?
  1906. grep -v '^ *+' conftest.er1 >conftest.err
  1907. rm -f conftest.er1
  1908. cat conftest.err >&5
  1909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1910. (exit $ac_status); } &&
  1911. { ac_try='test -z "$ac_c_werror_flag"
  1912. || test ! -s conftest.err'
  1913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1914. (eval $ac_try) 2>&5
  1915. ac_status=$?
  1916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1917. (exit $ac_status); }; } &&
  1918. { ac_try='test -s conftest.$ac_objext'
  1919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1920. (eval $ac_try) 2>&5
  1921. ac_status=$?
  1922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1923. (exit $ac_status); }; }; then
  1924. for ac_declaration in \
  1925. '' \
  1926. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1927. 'extern "C" void std::exit (int); using std::exit;' \
  1928. 'extern "C" void exit (int) throw ();' \
  1929. 'extern "C" void exit (int);' \
  1930. 'void exit (int);'
  1931. do
  1932. cat >conftest.$ac_ext <<_ACEOF
  1933. /* confdefs.h. */
  1934. _ACEOF
  1935. cat confdefs.h >>conftest.$ac_ext
  1936. cat >>conftest.$ac_ext <<_ACEOF
  1937. /* end confdefs.h. */
  1938. $ac_declaration
  1939. #include <stdlib.h>
  1940. int
  1941. main ()
  1942. {
  1943. exit (42);
  1944. ;
  1945. return 0;
  1946. }
  1947. _ACEOF
  1948. rm -f conftest.$ac_objext
  1949. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1950. (eval $ac_compile) 2>conftest.er1
  1951. ac_status=$?
  1952. grep -v '^ *+' conftest.er1 >conftest.err
  1953. rm -f conftest.er1
  1954. cat conftest.err >&5
  1955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1956. (exit $ac_status); } &&
  1957. { ac_try='test -z "$ac_c_werror_flag"
  1958. || test ! -s conftest.err'
  1959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1960. (eval $ac_try) 2>&5
  1961. ac_status=$?
  1962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1963. (exit $ac_status); }; } &&
  1964. { ac_try='test -s conftest.$ac_objext'
  1965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1966. (eval $ac_try) 2>&5
  1967. ac_status=$?
  1968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1969. (exit $ac_status); }; }; then
  1970. :
  1971. else
  1972. echo "$as_me: failed program was:" >&5
  1973. sed 's/^/| /' conftest.$ac_ext >&5
  1974. continue
  1975. fi
  1976. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1977. cat >conftest.$ac_ext <<_ACEOF
  1978. /* confdefs.h. */
  1979. _ACEOF
  1980. cat confdefs.h >>conftest.$ac_ext
  1981. cat >>conftest.$ac_ext <<_ACEOF
  1982. /* end confdefs.h. */
  1983. $ac_declaration
  1984. int
  1985. main ()
  1986. {
  1987. exit (42);
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. rm -f conftest.$ac_objext
  1993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1994. (eval $ac_compile) 2>conftest.er1
  1995. ac_status=$?
  1996. grep -v '^ *+' conftest.er1 >conftest.err
  1997. rm -f conftest.er1
  1998. cat conftest.err >&5
  1999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2000. (exit $ac_status); } &&
  2001. { ac_try='test -z "$ac_c_werror_flag"
  2002. || test ! -s conftest.err'
  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); }; } &&
  2008. { ac_try='test -s conftest.$ac_objext'
  2009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2010. (eval $ac_try) 2>&5
  2011. ac_status=$?
  2012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2013. (exit $ac_status); }; }; then
  2014. break
  2015. else
  2016. echo "$as_me: failed program was:" >&5
  2017. sed 's/^/| /' conftest.$ac_ext >&5
  2018. fi
  2019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2020. done
  2021. rm -f conftest*
  2022. if test -n "$ac_declaration"; then
  2023. echo '#ifdef __cplusplus' >>confdefs.h
  2024. echo $ac_declaration >>confdefs.h
  2025. echo '#endif' >>confdefs.h
  2026. fi
  2027. else
  2028. echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. fi
  2031. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2032. ac_ext=c
  2033. ac_cpp='$CPP $CPPFLAGS'
  2034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2037. if test "${cross_compiling-x}" = "x"
  2038. then
  2039. cat << 'EOF' >&2
  2040. configure: error:
  2041. This system does not appear to have a working C compiler.
  2042. A working C compiler is required to compile Eggdrop.
  2043. EOF
  2044. exit 1
  2045. fi
  2046. # Crazy machines
  2047. ac_ext=c
  2048. ac_cpp='$CPP $CPPFLAGS'
  2049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2052. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2053. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2054. # On Suns, sometimes $CPP names a directory.
  2055. if test -n "$CPP" && test -d "$CPP"; then
  2056. CPP=
  2057. fi
  2058. if test -z "$CPP"; then
  2059. if test "${ac_cv_prog_CPP+set}" = set; then
  2060. echo $ECHO_N "(cached) $ECHO_C" >&6
  2061. else
  2062. # Double quotes because CPP needs to be expanded
  2063. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2064. do
  2065. ac_preproc_ok=false
  2066. for ac_c_preproc_warn_flag in '' yes
  2067. do
  2068. # Use a header file that comes with gcc, so configuring glibc
  2069. # with a fresh cross-compiler works.
  2070. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2071. # <limits.h> exists even on freestanding compilers.
  2072. # On the NeXT, cc -E runs the code through the compiler's parser,
  2073. # not just through cpp. "Syntax error" is here to catch this case.
  2074. cat >conftest.$ac_ext <<_ACEOF
  2075. /* confdefs.h. */
  2076. _ACEOF
  2077. cat confdefs.h >>conftest.$ac_ext
  2078. cat >>conftest.$ac_ext <<_ACEOF
  2079. /* end confdefs.h. */
  2080. #ifdef __STDC__
  2081. # include <limits.h>
  2082. #else
  2083. # include <assert.h>
  2084. #endif
  2085. Syntax error
  2086. _ACEOF
  2087. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2088. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2089. ac_status=$?
  2090. grep -v '^ *+' conftest.er1 >conftest.err
  2091. rm -f conftest.er1
  2092. cat conftest.err >&5
  2093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2094. (exit $ac_status); } >/dev/null; then
  2095. if test -s conftest.err; then
  2096. ac_cpp_err=$ac_c_preproc_warn_flag
  2097. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2098. else
  2099. ac_cpp_err=
  2100. fi
  2101. else
  2102. ac_cpp_err=yes
  2103. fi
  2104. if test -z "$ac_cpp_err"; then
  2105. :
  2106. else
  2107. echo "$as_me: failed program was:" >&5
  2108. sed 's/^/| /' conftest.$ac_ext >&5
  2109. # Broken: fails on valid input.
  2110. continue
  2111. fi
  2112. rm -f conftest.err conftest.$ac_ext
  2113. # OK, works on sane cases. Now check whether non-existent headers
  2114. # can be detected and how.
  2115. cat >conftest.$ac_ext <<_ACEOF
  2116. /* confdefs.h. */
  2117. _ACEOF
  2118. cat confdefs.h >>conftest.$ac_ext
  2119. cat >>conftest.$ac_ext <<_ACEOF
  2120. /* end confdefs.h. */
  2121. #include <ac_nonexistent.h>
  2122. _ACEOF
  2123. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2124. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2125. ac_status=$?
  2126. grep -v '^ *+' conftest.er1 >conftest.err
  2127. rm -f conftest.er1
  2128. cat conftest.err >&5
  2129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2130. (exit $ac_status); } >/dev/null; then
  2131. if test -s conftest.err; then
  2132. ac_cpp_err=$ac_c_preproc_warn_flag
  2133. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2134. else
  2135. ac_cpp_err=
  2136. fi
  2137. else
  2138. ac_cpp_err=yes
  2139. fi
  2140. if test -z "$ac_cpp_err"; then
  2141. # Broken: success on invalid input.
  2142. continue
  2143. else
  2144. echo "$as_me: failed program was:" >&5
  2145. sed 's/^/| /' conftest.$ac_ext >&5
  2146. # Passes both tests.
  2147. ac_preproc_ok=:
  2148. break
  2149. fi
  2150. rm -f conftest.err conftest.$ac_ext
  2151. done
  2152. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2153. rm -f conftest.err conftest.$ac_ext
  2154. if $ac_preproc_ok; then
  2155. break
  2156. fi
  2157. done
  2158. ac_cv_prog_CPP=$CPP
  2159. fi
  2160. CPP=$ac_cv_prog_CPP
  2161. else
  2162. ac_cv_prog_CPP=$CPP
  2163. fi
  2164. echo "$as_me:$LINENO: result: $CPP" >&5
  2165. echo "${ECHO_T}$CPP" >&6
  2166. ac_preproc_ok=false
  2167. for ac_c_preproc_warn_flag in '' yes
  2168. do
  2169. # Use a header file that comes with gcc, so configuring glibc
  2170. # with a fresh cross-compiler works.
  2171. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2172. # <limits.h> exists even on freestanding compilers.
  2173. # On the NeXT, cc -E runs the code through the compiler's parser,
  2174. # not just through cpp. "Syntax error" is here to catch this case.
  2175. cat >conftest.$ac_ext <<_ACEOF
  2176. /* confdefs.h. */
  2177. _ACEOF
  2178. cat confdefs.h >>conftest.$ac_ext
  2179. cat >>conftest.$ac_ext <<_ACEOF
  2180. /* end confdefs.h. */
  2181. #ifdef __STDC__
  2182. # include <limits.h>
  2183. #else
  2184. # include <assert.h>
  2185. #endif
  2186. Syntax error
  2187. _ACEOF
  2188. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2189. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2190. ac_status=$?
  2191. grep -v '^ *+' conftest.er1 >conftest.err
  2192. rm -f conftest.er1
  2193. cat conftest.err >&5
  2194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2195. (exit $ac_status); } >/dev/null; then
  2196. if test -s conftest.err; then
  2197. ac_cpp_err=$ac_c_preproc_warn_flag
  2198. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2199. else
  2200. ac_cpp_err=
  2201. fi
  2202. else
  2203. ac_cpp_err=yes
  2204. fi
  2205. if test -z "$ac_cpp_err"; then
  2206. :
  2207. else
  2208. echo "$as_me: failed program was:" >&5
  2209. sed 's/^/| /' conftest.$ac_ext >&5
  2210. # Broken: fails on valid input.
  2211. continue
  2212. fi
  2213. rm -f conftest.err conftest.$ac_ext
  2214. # OK, works on sane cases. Now check whether non-existent headers
  2215. # can be detected and how.
  2216. cat >conftest.$ac_ext <<_ACEOF
  2217. /* confdefs.h. */
  2218. _ACEOF
  2219. cat confdefs.h >>conftest.$ac_ext
  2220. cat >>conftest.$ac_ext <<_ACEOF
  2221. /* end confdefs.h. */
  2222. #include <ac_nonexistent.h>
  2223. _ACEOF
  2224. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2225. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2226. ac_status=$?
  2227. grep -v '^ *+' conftest.er1 >conftest.err
  2228. rm -f conftest.er1
  2229. cat conftest.err >&5
  2230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2231. (exit $ac_status); } >/dev/null; then
  2232. if test -s conftest.err; then
  2233. ac_cpp_err=$ac_c_preproc_warn_flag
  2234. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2235. else
  2236. ac_cpp_err=
  2237. fi
  2238. else
  2239. ac_cpp_err=yes
  2240. fi
  2241. if test -z "$ac_cpp_err"; then
  2242. # Broken: success on invalid input.
  2243. continue
  2244. else
  2245. echo "$as_me: failed program was:" >&5
  2246. sed 's/^/| /' conftest.$ac_ext >&5
  2247. # Passes both tests.
  2248. ac_preproc_ok=:
  2249. break
  2250. fi
  2251. rm -f conftest.err conftest.$ac_ext
  2252. done
  2253. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2254. rm -f conftest.err conftest.$ac_ext
  2255. if $ac_preproc_ok; then
  2256. :
  2257. else
  2258. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2259. See \`config.log' for more details." >&5
  2260. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2261. See \`config.log' for more details." >&2;}
  2262. { (exit 1); exit 1; }; }
  2263. fi
  2264. ac_ext=c
  2265. ac_cpp='$CPP $CPPFLAGS'
  2266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2269. echo "$as_me:$LINENO: checking for egrep" >&5
  2270. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2271. if test "${ac_cv_prog_egrep+set}" = set; then
  2272. echo $ECHO_N "(cached) $ECHO_C" >&6
  2273. else
  2274. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2275. then ac_cv_prog_egrep='grep -E'
  2276. else ac_cv_prog_egrep='egrep'
  2277. fi
  2278. fi
  2279. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2280. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2281. EGREP=$ac_cv_prog_egrep
  2282. echo "$as_me:$LINENO: checking for AIX" >&5
  2283. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2284. cat >conftest.$ac_ext <<_ACEOF
  2285. /* confdefs.h. */
  2286. _ACEOF
  2287. cat confdefs.h >>conftest.$ac_ext
  2288. cat >>conftest.$ac_ext <<_ACEOF
  2289. /* end confdefs.h. */
  2290. #ifdef _AIX
  2291. yes
  2292. #endif
  2293. _ACEOF
  2294. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2295. $EGREP "yes" >/dev/null 2>&1; then
  2296. echo "$as_me:$LINENO: result: yes" >&5
  2297. echo "${ECHO_T}yes" >&6
  2298. cat >>confdefs.h <<\_ACEOF
  2299. #define _ALL_SOURCE 1
  2300. _ACEOF
  2301. else
  2302. echo "$as_me:$LINENO: result: no" >&5
  2303. echo "${ECHO_T}no" >&6
  2304. fi
  2305. rm -f conftest*
  2306. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2307. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2308. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2309. echo $ECHO_N "(cached) $ECHO_C" >&6
  2310. else
  2311. ac_check_lib_save_LIBS=$LIBS
  2312. LIBS="-lcposix $LIBS"
  2313. cat >conftest.$ac_ext <<_ACEOF
  2314. /* confdefs.h. */
  2315. _ACEOF
  2316. cat confdefs.h >>conftest.$ac_ext
  2317. cat >>conftest.$ac_ext <<_ACEOF
  2318. /* end confdefs.h. */
  2319. /* Override any gcc2 internal prototype to avoid an error. */
  2320. #ifdef __cplusplus
  2321. extern "C"
  2322. #endif
  2323. /* We use char because int might match the return type of a gcc2
  2324. builtin and then its argument prototype would still apply. */
  2325. char strerror ();
  2326. int
  2327. main ()
  2328. {
  2329. strerror ();
  2330. ;
  2331. return 0;
  2332. }
  2333. _ACEOF
  2334. rm -f conftest.$ac_objext conftest$ac_exeext
  2335. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2336. (eval $ac_link) 2>conftest.er1
  2337. ac_status=$?
  2338. grep -v '^ *+' conftest.er1 >conftest.err
  2339. rm -f conftest.er1
  2340. cat conftest.err >&5
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); } &&
  2343. { ac_try='test -z "$ac_c_werror_flag"
  2344. || test ! -s conftest.err'
  2345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2346. (eval $ac_try) 2>&5
  2347. ac_status=$?
  2348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2349. (exit $ac_status); }; } &&
  2350. { ac_try='test -s conftest$ac_exeext'
  2351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2352. (eval $ac_try) 2>&5
  2353. ac_status=$?
  2354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2355. (exit $ac_status); }; }; then
  2356. ac_cv_lib_cposix_strerror=yes
  2357. else
  2358. echo "$as_me: failed program was:" >&5
  2359. sed 's/^/| /' conftest.$ac_ext >&5
  2360. ac_cv_lib_cposix_strerror=no
  2361. fi
  2362. rm -f conftest.err conftest.$ac_objext \
  2363. conftest$ac_exeext conftest.$ac_ext
  2364. LIBS=$ac_check_lib_save_LIBS
  2365. fi
  2366. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2367. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2368. if test $ac_cv_lib_cposix_strerror = yes; then
  2369. LIBS="$LIBS -lcposix"
  2370. fi
  2371. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2372. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2373. if test "${ac_cv_header_stdc+set}" = set; then
  2374. echo $ECHO_N "(cached) $ECHO_C" >&6
  2375. else
  2376. cat >conftest.$ac_ext <<_ACEOF
  2377. /* confdefs.h. */
  2378. _ACEOF
  2379. cat confdefs.h >>conftest.$ac_ext
  2380. cat >>conftest.$ac_ext <<_ACEOF
  2381. /* end confdefs.h. */
  2382. #include <stdlib.h>
  2383. #include <stdarg.h>
  2384. #include <string.h>
  2385. #include <float.h>
  2386. int
  2387. main ()
  2388. {
  2389. ;
  2390. return 0;
  2391. }
  2392. _ACEOF
  2393. rm -f conftest.$ac_objext
  2394. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2395. (eval $ac_compile) 2>conftest.er1
  2396. ac_status=$?
  2397. grep -v '^ *+' conftest.er1 >conftest.err
  2398. rm -f conftest.er1
  2399. cat conftest.err >&5
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); } &&
  2402. { ac_try='test -z "$ac_c_werror_flag"
  2403. || test ! -s conftest.err'
  2404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2405. (eval $ac_try) 2>&5
  2406. ac_status=$?
  2407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2408. (exit $ac_status); }; } &&
  2409. { ac_try='test -s conftest.$ac_objext'
  2410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2411. (eval $ac_try) 2>&5
  2412. ac_status=$?
  2413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2414. (exit $ac_status); }; }; then
  2415. ac_cv_header_stdc=yes
  2416. else
  2417. echo "$as_me: failed program was:" >&5
  2418. sed 's/^/| /' conftest.$ac_ext >&5
  2419. ac_cv_header_stdc=no
  2420. fi
  2421. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2422. if test $ac_cv_header_stdc = yes; then
  2423. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2424. cat >conftest.$ac_ext <<_ACEOF
  2425. /* confdefs.h. */
  2426. _ACEOF
  2427. cat confdefs.h >>conftest.$ac_ext
  2428. cat >>conftest.$ac_ext <<_ACEOF
  2429. /* end confdefs.h. */
  2430. #include <string.h>
  2431. _ACEOF
  2432. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2433. $EGREP "memchr" >/dev/null 2>&1; then
  2434. :
  2435. else
  2436. ac_cv_header_stdc=no
  2437. fi
  2438. rm -f conftest*
  2439. fi
  2440. if test $ac_cv_header_stdc = yes; then
  2441. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2442. cat >conftest.$ac_ext <<_ACEOF
  2443. /* confdefs.h. */
  2444. _ACEOF
  2445. cat confdefs.h >>conftest.$ac_ext
  2446. cat >>conftest.$ac_ext <<_ACEOF
  2447. /* end confdefs.h. */
  2448. #include <stdlib.h>
  2449. _ACEOF
  2450. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2451. $EGREP "free" >/dev/null 2>&1; then
  2452. :
  2453. else
  2454. ac_cv_header_stdc=no
  2455. fi
  2456. rm -f conftest*
  2457. fi
  2458. if test $ac_cv_header_stdc = yes; then
  2459. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2460. if test "$cross_compiling" = yes; then
  2461. :
  2462. else
  2463. cat >conftest.$ac_ext <<_ACEOF
  2464. /* confdefs.h. */
  2465. _ACEOF
  2466. cat confdefs.h >>conftest.$ac_ext
  2467. cat >>conftest.$ac_ext <<_ACEOF
  2468. /* end confdefs.h. */
  2469. #include <ctype.h>
  2470. #if ((' ' & 0x0FF) == 0x020)
  2471. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2472. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2473. #else
  2474. # define ISLOWER(c) \
  2475. (('a' <= (c) && (c) <= 'i') \
  2476. || ('j' <= (c) && (c) <= 'r') \
  2477. || ('s' <= (c) && (c) <= 'z'))
  2478. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2479. #endif
  2480. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2481. int
  2482. main ()
  2483. {
  2484. int i;
  2485. for (i = 0; i < 256; i++)
  2486. if (XOR (islower (i), ISLOWER (i))
  2487. || toupper (i) != TOUPPER (i))
  2488. exit(2);
  2489. exit (0);
  2490. }
  2491. _ACEOF
  2492. rm -f conftest$ac_exeext
  2493. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2494. (eval $ac_link) 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2499. (eval $ac_try) 2>&5
  2500. ac_status=$?
  2501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2502. (exit $ac_status); }; }; then
  2503. :
  2504. else
  2505. echo "$as_me: program exited with status $ac_status" >&5
  2506. echo "$as_me: failed program was:" >&5
  2507. sed 's/^/| /' conftest.$ac_ext >&5
  2508. ( exit $ac_status )
  2509. ac_cv_header_stdc=no
  2510. fi
  2511. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2512. fi
  2513. fi
  2514. fi
  2515. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2516. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2517. if test $ac_cv_header_stdc = yes; then
  2518. cat >>confdefs.h <<\_ACEOF
  2519. #define STDC_HEADERS 1
  2520. _ACEOF
  2521. fi
  2522. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2523. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2524. inttypes.h stdint.h unistd.h
  2525. do
  2526. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2527. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2528. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2529. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2530. echo $ECHO_N "(cached) $ECHO_C" >&6
  2531. else
  2532. cat >conftest.$ac_ext <<_ACEOF
  2533. /* confdefs.h. */
  2534. _ACEOF
  2535. cat confdefs.h >>conftest.$ac_ext
  2536. cat >>conftest.$ac_ext <<_ACEOF
  2537. /* end confdefs.h. */
  2538. $ac_includes_default
  2539. #include <$ac_header>
  2540. _ACEOF
  2541. rm -f conftest.$ac_objext
  2542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2543. (eval $ac_compile) 2>conftest.er1
  2544. ac_status=$?
  2545. grep -v '^ *+' conftest.er1 >conftest.err
  2546. rm -f conftest.er1
  2547. cat conftest.err >&5
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); } &&
  2550. { ac_try='test -z "$ac_c_werror_flag"
  2551. || test ! -s conftest.err'
  2552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2553. (eval $ac_try) 2>&5
  2554. ac_status=$?
  2555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2556. (exit $ac_status); }; } &&
  2557. { ac_try='test -s conftest.$ac_objext'
  2558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2559. (eval $ac_try) 2>&5
  2560. ac_status=$?
  2561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2562. (exit $ac_status); }; }; then
  2563. eval "$as_ac_Header=yes"
  2564. else
  2565. echo "$as_me: failed program was:" >&5
  2566. sed 's/^/| /' conftest.$ac_ext >&5
  2567. eval "$as_ac_Header=no"
  2568. fi
  2569. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2570. fi
  2571. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2572. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2573. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2574. cat >>confdefs.h <<_ACEOF
  2575. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2576. _ACEOF
  2577. fi
  2578. done
  2579. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2580. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2581. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2582. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2583. echo $ECHO_N "(cached) $ECHO_C" >&6
  2584. fi
  2585. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2586. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2587. else
  2588. # Is the header compilable?
  2589. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2590. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2591. cat >conftest.$ac_ext <<_ACEOF
  2592. /* confdefs.h. */
  2593. _ACEOF
  2594. cat confdefs.h >>conftest.$ac_ext
  2595. cat >>conftest.$ac_ext <<_ACEOF
  2596. /* end confdefs.h. */
  2597. $ac_includes_default
  2598. #include <minix/config.h>
  2599. _ACEOF
  2600. rm -f conftest.$ac_objext
  2601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2602. (eval $ac_compile) 2>conftest.er1
  2603. ac_status=$?
  2604. grep -v '^ *+' conftest.er1 >conftest.err
  2605. rm -f conftest.er1
  2606. cat conftest.err >&5
  2607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2608. (exit $ac_status); } &&
  2609. { ac_try='test -z "$ac_c_werror_flag"
  2610. || test ! -s conftest.err'
  2611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2612. (eval $ac_try) 2>&5
  2613. ac_status=$?
  2614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2615. (exit $ac_status); }; } &&
  2616. { ac_try='test -s conftest.$ac_objext'
  2617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2618. (eval $ac_try) 2>&5
  2619. ac_status=$?
  2620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2621. (exit $ac_status); }; }; then
  2622. ac_header_compiler=yes
  2623. else
  2624. echo "$as_me: failed program was:" >&5
  2625. sed 's/^/| /' conftest.$ac_ext >&5
  2626. ac_header_compiler=no
  2627. fi
  2628. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2629. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2630. echo "${ECHO_T}$ac_header_compiler" >&6
  2631. # Is the header present?
  2632. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2633. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2634. cat >conftest.$ac_ext <<_ACEOF
  2635. /* confdefs.h. */
  2636. _ACEOF
  2637. cat confdefs.h >>conftest.$ac_ext
  2638. cat >>conftest.$ac_ext <<_ACEOF
  2639. /* end confdefs.h. */
  2640. #include <minix/config.h>
  2641. _ACEOF
  2642. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2643. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2644. ac_status=$?
  2645. grep -v '^ *+' conftest.er1 >conftest.err
  2646. rm -f conftest.er1
  2647. cat conftest.err >&5
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); } >/dev/null; then
  2650. if test -s conftest.err; then
  2651. ac_cpp_err=$ac_c_preproc_warn_flag
  2652. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2653. else
  2654. ac_cpp_err=
  2655. fi
  2656. else
  2657. ac_cpp_err=yes
  2658. fi
  2659. if test -z "$ac_cpp_err"; then
  2660. ac_header_preproc=yes
  2661. else
  2662. echo "$as_me: failed program was:" >&5
  2663. sed 's/^/| /' conftest.$ac_ext >&5
  2664. ac_header_preproc=no
  2665. fi
  2666. rm -f conftest.err conftest.$ac_ext
  2667. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2668. echo "${ECHO_T}$ac_header_preproc" >&6
  2669. # So? What about this header?
  2670. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2671. yes:no: )
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2673. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2675. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2676. ac_header_preproc=yes
  2677. ;;
  2678. no:yes:* )
  2679. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2680. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2681. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2682. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2683. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2684. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2685. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2686. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2687. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2688. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2689. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2690. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2691. (
  2692. cat <<\_ASBOX
  2693. ## ------------------------------------------ ##
  2694. ## Report this to the AC_PACKAGE_NAME lists. ##
  2695. ## ------------------------------------------ ##
  2696. _ASBOX
  2697. ) |
  2698. sed "s/^/$as_me: WARNING: /" >&2
  2699. ;;
  2700. esac
  2701. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2702. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2703. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2704. echo $ECHO_N "(cached) $ECHO_C" >&6
  2705. else
  2706. ac_cv_header_minix_config_h=$ac_header_preproc
  2707. fi
  2708. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2709. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2710. fi
  2711. if test $ac_cv_header_minix_config_h = yes; then
  2712. MINIX=yes
  2713. else
  2714. MINIX=
  2715. fi
  2716. if test "$MINIX" = yes; then
  2717. cat >>confdefs.h <<\_ACEOF
  2718. #define _POSIX_SOURCE 1
  2719. _ACEOF
  2720. cat >>confdefs.h <<\_ACEOF
  2721. #define _POSIX_1_SOURCE 2
  2722. _ACEOF
  2723. cat >>confdefs.h <<\_ACEOF
  2724. #define _MINIX 1
  2725. _ACEOF
  2726. fi
  2727. #checkpoint
  2728. cat >confcache <<\_ACEOF
  2729. # This file is a shell script that caches the results of configure
  2730. # tests run on this system so they can be shared between configure
  2731. # scripts and configure runs, see configure's option --config-cache.
  2732. # It is not useful on other systems. If it contains results you don't
  2733. # want to keep, you may remove or edit it.
  2734. #
  2735. # config.status only pays attention to the cache file if you give it
  2736. # the --recheck option to rerun configure.
  2737. #
  2738. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2739. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2740. # following values.
  2741. _ACEOF
  2742. # The following way of writing the cache mishandles newlines in values,
  2743. # but we know of no workaround that is simple, portable, and efficient.
  2744. # So, don't put newlines in cache variables' values.
  2745. # Ultrix sh set writes to stderr and can't be redirected directly,
  2746. # and sets the high bit in the cache file unless we assign to the vars.
  2747. {
  2748. (set) 2>&1 |
  2749. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2750. *ac_space=\ *)
  2751. # `set' does not quote correctly, so add quotes (double-quote
  2752. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2753. sed -n \
  2754. "s/'/'\\\\''/g;
  2755. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2756. ;;
  2757. *)
  2758. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2759. sed -n \
  2760. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2761. ;;
  2762. esac;
  2763. } |
  2764. sed '
  2765. t clear
  2766. : clear
  2767. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2768. t end
  2769. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2770. : end' >>confcache
  2771. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2772. if test -w $cache_file; then
  2773. test "x$cache_file" != "x/dev/null"
  2774. cat confcache >$cache_file
  2775. else
  2776. echo "not updating unwritable cache $cache_file"
  2777. fi
  2778. fi
  2779. rm -f confcache
  2780. # Speedup compile
  2781. if test -z "$no_pipe"
  2782. then
  2783. if test -n "$GCC"
  2784. then
  2785. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2786. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2787. if test "${egg_cv_var_ccpipe+set}" = set; then
  2788. echo $ECHO_N "(cached) $ECHO_C" >&6
  2789. else
  2790. ac_old_CC="$CC"
  2791. CC="$CC -pipe"
  2792. cat >conftest.$ac_ext <<_ACEOF
  2793. /* confdefs.h. */
  2794. _ACEOF
  2795. cat confdefs.h >>conftest.$ac_ext
  2796. cat >>conftest.$ac_ext <<_ACEOF
  2797. /* end confdefs.h. */
  2798. int
  2799. main ()
  2800. {
  2801. ;
  2802. return 0;
  2803. }
  2804. _ACEOF
  2805. rm -f conftest.$ac_objext
  2806. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2807. (eval $ac_compile) 2>conftest.er1
  2808. ac_status=$?
  2809. grep -v '^ *+' conftest.er1 >conftest.err
  2810. rm -f conftest.er1
  2811. cat conftest.err >&5
  2812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2813. (exit $ac_status); } &&
  2814. { ac_try='test -z "$ac_c_werror_flag"
  2815. || test ! -s conftest.err'
  2816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2817. (eval $ac_try) 2>&5
  2818. ac_status=$?
  2819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); }; } &&
  2821. { ac_try='test -s conftest.$ac_objext'
  2822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2823. (eval $ac_try) 2>&5
  2824. ac_status=$?
  2825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. (exit $ac_status); }; }; then
  2827. egg_cv_var_ccpipe="yes"
  2828. else
  2829. echo "$as_me: failed program was:" >&5
  2830. sed 's/^/| /' conftest.$ac_ext >&5
  2831. egg_cv_var_ccpipe="no"
  2832. fi
  2833. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2834. CC="$ac_old_CC"
  2835. fi
  2836. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2837. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2838. if test "$egg_cv_var_ccpipe" = "yes"
  2839. then
  2840. CC="$CC -pipe"
  2841. fi
  2842. fi
  2843. fi
  2844. CCDEPMODE=gcc
  2845. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2846. if test $num = "3"; then
  2847. CCDEPMODE=gcc3
  2848. fi
  2849. # Create static binaries
  2850. if test -z "$no_static"
  2851. then
  2852. if test -n "$GCC"
  2853. then
  2854. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2855. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2856. if test "${egg_cv_var_ccstatic+set}" = set; then
  2857. echo $ECHO_N "(cached) $ECHO_C" >&6
  2858. else
  2859. ac_old_CC="$CC"
  2860. CC="$CC -static"
  2861. cat >conftest.$ac_ext <<_ACEOF
  2862. /* confdefs.h. */
  2863. _ACEOF
  2864. cat confdefs.h >>conftest.$ac_ext
  2865. cat >>conftest.$ac_ext <<_ACEOF
  2866. /* end confdefs.h. */
  2867. int
  2868. main ()
  2869. {
  2870. ;
  2871. return 0;
  2872. }
  2873. _ACEOF
  2874. rm -f conftest.$ac_objext
  2875. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2876. (eval $ac_compile) 2>conftest.er1
  2877. ac_status=$?
  2878. grep -v '^ *+' conftest.er1 >conftest.err
  2879. rm -f conftest.er1
  2880. cat conftest.err >&5
  2881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2882. (exit $ac_status); } &&
  2883. { ac_try='test -z "$ac_c_werror_flag"
  2884. || test ! -s conftest.err'
  2885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2886. (eval $ac_try) 2>&5
  2887. ac_status=$?
  2888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2889. (exit $ac_status); }; } &&
  2890. { ac_try='test -s conftest.$ac_objext'
  2891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2892. (eval $ac_try) 2>&5
  2893. ac_status=$?
  2894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2895. (exit $ac_status); }; }; then
  2896. egg_cv_var_ccstatic="yes"
  2897. else
  2898. echo "$as_me: failed program was:" >&5
  2899. sed 's/^/| /' conftest.$ac_ext >&5
  2900. egg_cv_var_ccstatic="no"
  2901. fi
  2902. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2903. CC="$ac_old_CC"
  2904. fi
  2905. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2906. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2907. if test "$egg_cv_var_ccstatic" = "yes"
  2908. then
  2909. CCDEBUG="$CC"
  2910. CC="$CC -static"
  2911. else
  2912. cat << 'EOF' >&2
  2913. configure: error:
  2914. Your C compiler does not support -static.
  2915. This compile flag is required for the botpack.
  2916. EOF
  2917. exit 1
  2918. fi
  2919. fi
  2920. fi
  2921. # Checks for programs
  2922. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2923. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2924. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2925. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2926. echo $ECHO_N "(cached) $ECHO_C" >&6
  2927. else
  2928. cat >conftest.make <<\_ACEOF
  2929. all:
  2930. @echo 'ac_maketemp="$(MAKE)"'
  2931. _ACEOF
  2932. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2933. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2934. if test -n "$ac_maketemp"; then
  2935. eval ac_cv_prog_make_${ac_make}_set=yes
  2936. else
  2937. eval ac_cv_prog_make_${ac_make}_set=no
  2938. fi
  2939. rm -f conftest.make
  2940. fi
  2941. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2942. echo "$as_me:$LINENO: result: yes" >&5
  2943. echo "${ECHO_T}yes" >&6
  2944. SET_MAKE=
  2945. else
  2946. echo "$as_me:$LINENO: result: no" >&5
  2947. echo "${ECHO_T}no" >&6
  2948. SET_MAKE="MAKE=${MAKE-make}"
  2949. fi
  2950. cat << 'EOF' > conftest.head
  2951. a
  2952. b
  2953. c
  2954. EOF
  2955. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2956. do
  2957. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2958. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2959. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2960. echo $ECHO_N "(cached) $ECHO_C" >&6
  2961. else
  2962. if test -n "$HEAD_1"
  2963. then
  2964. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2965. else
  2966. if test "`cat conftest.head | $ac_prog`" = "a";
  2967. then
  2968. echo "$as_me:$LINENO: result: yes" >&5
  2969. echo "${ECHO_T}yes" >&6
  2970. ac_cv_prog_HEAD_1=$ac_prog
  2971. else
  2972. echo "$as_me:$LINENO: result: no" >&5
  2973. echo "${ECHO_T}no" >&6
  2974. fi
  2975. fi
  2976. fi
  2977. test -n "$ac_cv_prog_HEAD_1" && break
  2978. done
  2979. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2980. then
  2981. cat << 'EOF' >&2
  2982. configure: error:
  2983. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2984. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2985. EOF
  2986. exit 1
  2987. fi
  2988. rm -f conftest.head
  2989. HEAD_1=$ac_cv_prog_HEAD_1
  2990. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2991. for ac_prog in gawk mawk nawk awk
  2992. do
  2993. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2994. set dummy $ac_prog; ac_word=$2
  2995. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2996. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2997. if test "${ac_cv_prog_AWK+set}" = set; then
  2998. echo $ECHO_N "(cached) $ECHO_C" >&6
  2999. else
  3000. if test -n "$AWK"; then
  3001. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3002. else
  3003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3004. for as_dir in $PATH
  3005. do
  3006. IFS=$as_save_IFS
  3007. test -z "$as_dir" && as_dir=.
  3008. for ac_exec_ext in '' $ac_executable_extensions; do
  3009. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3010. ac_cv_prog_AWK="$ac_prog"
  3011. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3012. break 2
  3013. fi
  3014. done
  3015. done
  3016. fi
  3017. fi
  3018. AWK=$ac_cv_prog_AWK
  3019. if test -n "$AWK"; then
  3020. echo "$as_me:$LINENO: result: $AWK" >&5
  3021. echo "${ECHO_T}$AWK" >&6
  3022. else
  3023. echo "$as_me:$LINENO: result: no" >&5
  3024. echo "${ECHO_T}no" >&6
  3025. fi
  3026. test -n "$AWK" && break
  3027. done
  3028. if test "${AWK-x}" = "x"
  3029. then
  3030. cat << 'EOF' >&2
  3031. configure: error:
  3032. This system seems to lack a working 'awk' command.
  3033. A working 'awk' command is required to compile Eggdrop.
  3034. EOF
  3035. exit 1
  3036. fi
  3037. # basename is needed for Tcl library and header checks
  3038. # Extract the first word of "basename", so it can be a program name with args.
  3039. set dummy basename; ac_word=$2
  3040. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3041. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3042. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3043. echo $ECHO_N "(cached) $ECHO_C" >&6
  3044. else
  3045. if test -n "$BASENAME"; then
  3046. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3047. else
  3048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3049. for as_dir in $PATH
  3050. do
  3051. IFS=$as_save_IFS
  3052. test -z "$as_dir" && as_dir=.
  3053. for ac_exec_ext in '' $ac_executable_extensions; do
  3054. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3055. ac_cv_prog_BASENAME="basename"
  3056. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3057. break 2
  3058. fi
  3059. done
  3060. done
  3061. fi
  3062. fi
  3063. BASENAME=$ac_cv_prog_BASENAME
  3064. if test -n "$BASENAME"; then
  3065. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3066. echo "${ECHO_T}$BASENAME" >&6
  3067. else
  3068. echo "$as_me:$LINENO: result: no" >&5
  3069. echo "${ECHO_T}no" >&6
  3070. fi
  3071. if test "${BASENAME-x}" = "x"
  3072. then
  3073. cat << 'EOF' >&2
  3074. configure: error:
  3075. This system seems to lack a working 'basename' command.
  3076. A working 'basename' command is required to compile Eggdrop.
  3077. EOF
  3078. exit 1
  3079. fi
  3080. # Extract the first word of "objcopy", so it can be a program name with args.
  3081. set dummy objcopy; ac_word=$2
  3082. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3083. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3084. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3085. echo $ECHO_N "(cached) $ECHO_C" >&6
  3086. else
  3087. if test -n "$OBJCOPY"; then
  3088. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3089. else
  3090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3091. for as_dir in $PATH
  3092. do
  3093. IFS=$as_save_IFS
  3094. test -z "$as_dir" && as_dir=.
  3095. for ac_exec_ext in '' $ac_executable_extensions; do
  3096. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3097. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3098. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3099. break 2
  3100. fi
  3101. done
  3102. done
  3103. fi
  3104. fi
  3105. OBJCOPY=$ac_cv_prog_OBJCOPY
  3106. if test -n "$OBJCOPY"; then
  3107. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3108. echo "${ECHO_T}$OBJCOPY" >&6
  3109. else
  3110. echo "$as_me:$LINENO: result: no" >&5
  3111. echo "${ECHO_T}no" >&6
  3112. fi
  3113. # Extract the first word of "strip", so it can be a program name with args.
  3114. set dummy strip; ac_word=$2
  3115. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3116. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3117. if test "${ac_cv_prog_STRIP+set}" = set; then
  3118. echo $ECHO_N "(cached) $ECHO_C" >&6
  3119. else
  3120. if test -n "$STRIP"; then
  3121. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3122. else
  3123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3124. for as_dir in $PATH
  3125. do
  3126. IFS=$as_save_IFS
  3127. test -z "$as_dir" && as_dir=.
  3128. for ac_exec_ext in '' $ac_executable_extensions; do
  3129. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3130. ac_cv_prog_STRIP="strip"
  3131. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3132. break 2
  3133. fi
  3134. done
  3135. done
  3136. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3137. fi
  3138. fi
  3139. STRIP=$ac_cv_prog_STRIP
  3140. if test -n "$STRIP"; then
  3141. echo "$as_me:$LINENO: result: $STRIP" >&5
  3142. echo "${ECHO_T}$STRIP" >&6
  3143. else
  3144. echo "$as_me:$LINENO: result: no" >&5
  3145. echo "${ECHO_T}no" >&6
  3146. fi
  3147. # Extract the first word of "uname", so it can be a program name with args.
  3148. set dummy uname; ac_word=$2
  3149. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3150. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3151. if test "${ac_cv_prog_UNAME+set}" = set; then
  3152. echo $ECHO_N "(cached) $ECHO_C" >&6
  3153. else
  3154. if test -n "$UNAME"; then
  3155. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3156. else
  3157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3158. for as_dir in $PATH
  3159. do
  3160. IFS=$as_save_IFS
  3161. test -z "$as_dir" && as_dir=.
  3162. for ac_exec_ext in '' $ac_executable_extensions; do
  3163. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3164. ac_cv_prog_UNAME="uname"
  3165. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3166. break 2
  3167. fi
  3168. done
  3169. done
  3170. fi
  3171. fi
  3172. UNAME=$ac_cv_prog_UNAME
  3173. if test -n "$UNAME"; then
  3174. echo "$as_me:$LINENO: result: $UNAME" >&5
  3175. echo "${ECHO_T}$UNAME" >&6
  3176. else
  3177. echo "$as_me:$LINENO: result: no" >&5
  3178. echo "${ECHO_T}no" >&6
  3179. fi
  3180. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3181. # Extract the first word of "distcc", so it can be a program name with args.
  3182. set dummy distcc; ac_word=$2
  3183. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3184. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3185. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3186. echo $ECHO_N "(cached) $ECHO_C" >&6
  3187. else
  3188. if test -n "$DISTCC"; then
  3189. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3190. else
  3191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3192. for as_dir in $PATH
  3193. do
  3194. IFS=$as_save_IFS
  3195. test -z "$as_dir" && as_dir=.
  3196. for ac_exec_ext in '' $ac_executable_extensions; do
  3197. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3198. ac_cv_prog_DISTCC="distcc"
  3199. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3200. break 2
  3201. fi
  3202. done
  3203. done
  3204. fi
  3205. fi
  3206. DISTCC=$ac_cv_prog_DISTCC
  3207. if test -n "$DISTCC"; then
  3208. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3209. echo "${ECHO_T}$DISTCC" >&6
  3210. else
  3211. echo "$as_me:$LINENO: result: no" >&5
  3212. echo "${ECHO_T}no" >&6
  3213. fi
  3214. # Test the os and set the module linking settings
  3215. LINUX=no
  3216. IRIX=no
  3217. SUNOS=no
  3218. EGG_CYGWIN=no
  3219. echo "$as_me:$LINENO: checking system type" >&5
  3220. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3221. if test "${egg_cv_var_system_type+set}" = set; then
  3222. echo $ECHO_N "(cached) $ECHO_C" >&6
  3223. else
  3224. egg_cv_var_system_type=`$UNAME -s`
  3225. fi
  3226. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3227. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3228. echo "$as_me:$LINENO: checking system release" >&5
  3229. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3230. if test "${egg_cv_var_system_release+set}" = set; then
  3231. echo $ECHO_N "(cached) $ECHO_C" >&6
  3232. else
  3233. egg_cv_var_system_release=`$UNAME -r`
  3234. fi
  3235. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3236. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3237. case "$egg_cv_var_system_type" in
  3238. BSD/OS)
  3239. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3240. 2)
  3241. ;;
  3242. *)
  3243. CFLAGS="$CFLAGS -Wall"
  3244. ;;
  3245. esac
  3246. ;;
  3247. CYGWI*)
  3248. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3249. 1.*)
  3250. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3251. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3252. WIN32FLAGS=
  3253. cat >conftest.$ac_ext <<_ACEOF
  3254. /* confdefs.h. */
  3255. _ACEOF
  3256. cat confdefs.h >>conftest.$ac_ext
  3257. cat >>conftest.$ac_ext <<_ACEOF
  3258. /* end confdefs.h. */
  3259. int
  3260. main ()
  3261. {
  3262. #ifndef WIN32
  3263. # ifndef _WIN32
  3264. # error WIN32 or _WIN32 not defined
  3265. # endif
  3266. #endif
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. rm -f conftest.$ac_objext
  3272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3273. (eval $ac_compile) 2>conftest.er1
  3274. ac_status=$?
  3275. grep -v '^ *+' conftest.er1 >conftest.err
  3276. rm -f conftest.er1
  3277. cat conftest.err >&5
  3278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279. (exit $ac_status); } &&
  3280. { ac_try='test -z "$ac_c_werror_flag"
  3281. || test ! -s conftest.err'
  3282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3283. (eval $ac_try) 2>&5
  3284. ac_status=$?
  3285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3286. (exit $ac_status); }; } &&
  3287. { ac_try='test -s conftest.$ac_objext'
  3288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3289. (eval $ac_try) 2>&5
  3290. ac_status=$?
  3291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3292. (exit $ac_status); }; }; then
  3293. echo "$as_me:$LINENO: result: present by default" >&5
  3294. echo "${ECHO_T}present by default" >&6
  3295. else
  3296. echo "$as_me: failed program was:" >&5
  3297. sed 's/^/| /' conftest.$ac_ext >&5
  3298. ac_compile_save="$ac_compile"
  3299. save_CC="$CC"
  3300. ac_compile="$ac_compile -mwin32"
  3301. CC="$CC -mwin32"
  3302. cat >conftest.$ac_ext <<_ACEOF
  3303. /* confdefs.h. */
  3304. _ACEOF
  3305. cat confdefs.h >>conftest.$ac_ext
  3306. cat >>conftest.$ac_ext <<_ACEOF
  3307. /* end confdefs.h. */
  3308. int
  3309. main ()
  3310. {
  3311. #ifndef WIN32
  3312. # ifndef _WIN32
  3313. # error WIN32 or _WIN32 not defined
  3314. # endif
  3315. #endif
  3316. ;
  3317. return 0;
  3318. }
  3319. _ACEOF
  3320. rm -f conftest.$ac_objext
  3321. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3322. (eval $ac_compile) 2>conftest.er1
  3323. ac_status=$?
  3324. grep -v '^ *+' conftest.er1 >conftest.err
  3325. rm -f conftest.er1
  3326. cat conftest.err >&5
  3327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328. (exit $ac_status); } &&
  3329. { ac_try='test -z "$ac_c_werror_flag"
  3330. || test ! -s conftest.err'
  3331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3332. (eval $ac_try) 2>&5
  3333. ac_status=$?
  3334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3335. (exit $ac_status); }; } &&
  3336. { ac_try='test -s conftest.$ac_objext'
  3337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3338. (eval $ac_try) 2>&5
  3339. ac_status=$?
  3340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3341. (exit $ac_status); }; }; then
  3342. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3343. echo "${ECHO_T}found via -mwin32" >&6
  3344. ac_compile="$ac_compile_save"
  3345. CC="$save_CC"
  3346. WIN32FLAGS="-mwin32"
  3347. else
  3348. echo "$as_me: failed program was:" >&5
  3349. sed 's/^/| /' conftest.$ac_ext >&5
  3350. ac_compile="$ac_compile_save"
  3351. CC="$save_CC"
  3352. echo "$as_me:$LINENO: result: not found" >&5
  3353. echo "${ECHO_T}not found" >&6
  3354. fi
  3355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3356. fi
  3357. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3358. CC="$CC $WIN32FLAGS"
  3359. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3360. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3361. if test -r /usr/lib/binmode.o
  3362. then
  3363. echo "$as_me:$LINENO: result: yes" >&5
  3364. echo "${ECHO_T}yes" >&6
  3365. LIBS="$LIBS /usr/lib/binmode.o"
  3366. else
  3367. echo "$as_me:$LINENO: result: no" >&5
  3368. echo "${ECHO_T}no" >&6
  3369. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3370. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3371. fi
  3372. ;;
  3373. *)
  3374. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3375. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3376. ;;
  3377. esac
  3378. EGG_CYGWIN=yes
  3379. cat >>confdefs.h <<\_ACEOF
  3380. #define CYGWIN_HACKS 1
  3381. _ACEOF
  3382. ;;
  3383. IRIX)
  3384. IRIX=yes
  3385. ;;
  3386. Ultrix)
  3387. SHELL=/bin/sh5
  3388. ;;
  3389. SINIX*)
  3390. ;;
  3391. BeOS)
  3392. ;;
  3393. Linux)
  3394. LINUX=yes
  3395. CFLAGS="$CFLAGS -Wall"
  3396. ;;
  3397. Lynx)
  3398. ;;
  3399. QNX)
  3400. ;;
  3401. OSF1)
  3402. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3403. V*)
  3404. if test "$AWK" = "gawk"
  3405. then
  3406. AWK=awk
  3407. fi
  3408. ;;
  3409. 1.0|1.1|1.2)
  3410. cat >>confdefs.h <<\_ACEOF
  3411. #define OSF1_HACKS 1
  3412. _ACEOF
  3413. ;;
  3414. 1.*)
  3415. cat >>confdefs.h <<\_ACEOF
  3416. #define OSF1_HACKS 1
  3417. _ACEOF
  3418. ;;
  3419. *)
  3420. ;;
  3421. esac
  3422. cat >>confdefs.h <<\_ACEOF
  3423. #define STOP_UAC 1
  3424. _ACEOF
  3425. cat >>confdefs.h <<\_ACEOF
  3426. #define BROKEN_SNPRINTF 1
  3427. _ACEOF
  3428. ;;
  3429. SunOS)
  3430. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3431. then
  3432. # SunOS 4
  3433. SUNOS=yes
  3434. fi
  3435. ;;
  3436. *BSD)
  3437. # FreeBSD/OpenBSD/NetBSD
  3438. ;;
  3439. *)
  3440. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3441. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3442. if test -r /mach
  3443. then
  3444. echo "$as_me:$LINENO: result: yes" >&5
  3445. echo "${ECHO_T}yes" >&6
  3446. cat >>confdefs.h <<\_ACEOF
  3447. #define BORGCUBES 1
  3448. _ACEOF
  3449. else
  3450. echo "$as_me:$LINENO: result: no" >&5
  3451. echo "${ECHO_T}no" >&6
  3452. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3453. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3454. if test -r /cmds
  3455. then
  3456. echo "$as_me:$LINENO: result: yes" >&5
  3457. echo "${ECHO_T}yes" >&6
  3458. else
  3459. echo "$as_me:$LINENO: result: no" >&5
  3460. echo "${ECHO_T}no" >&6
  3461. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3462. echo "${ECHO_T}Something unknown!" >&6
  3463. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3464. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3465. fi
  3466. fi
  3467. ;;
  3468. esac
  3469. dns_reslib_avail="true"
  3470. echo "$as_me:$LINENO: checking for res_init" >&5
  3471. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3472. if test "${ac_cv_func_res_init+set}" = set; then
  3473. echo $ECHO_N "(cached) $ECHO_C" >&6
  3474. else
  3475. cat >conftest.$ac_ext <<_ACEOF
  3476. /* confdefs.h. */
  3477. _ACEOF
  3478. cat confdefs.h >>conftest.$ac_ext
  3479. cat >>conftest.$ac_ext <<_ACEOF
  3480. /* end confdefs.h. */
  3481. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3482. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3483. #define res_init innocuous_res_init
  3484. /* System header to define __stub macros and hopefully few prototypes,
  3485. which can conflict with char res_init (); below.
  3486. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3487. <limits.h> exists even on freestanding compilers. */
  3488. #ifdef __STDC__
  3489. # include <limits.h>
  3490. #else
  3491. # include <assert.h>
  3492. #endif
  3493. #undef res_init
  3494. /* Override any gcc2 internal prototype to avoid an error. */
  3495. #ifdef __cplusplus
  3496. extern "C"
  3497. {
  3498. #endif
  3499. /* We use char because int might match the return type of a gcc2
  3500. builtin and then its argument prototype would still apply. */
  3501. char res_init ();
  3502. /* The GNU C library defines this for functions which it implements
  3503. to always fail with ENOSYS. Some functions are actually named
  3504. something starting with __ and the normal name is an alias. */
  3505. #if defined (__stub_res_init) || defined (__stub___res_init)
  3506. choke me
  3507. #else
  3508. char (*f) () = res_init;
  3509. #endif
  3510. #ifdef __cplusplus
  3511. }
  3512. #endif
  3513. int
  3514. main ()
  3515. {
  3516. return f != res_init;
  3517. ;
  3518. return 0;
  3519. }
  3520. _ACEOF
  3521. rm -f conftest.$ac_objext conftest$ac_exeext
  3522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3523. (eval $ac_link) 2>conftest.er1
  3524. ac_status=$?
  3525. grep -v '^ *+' conftest.er1 >conftest.err
  3526. rm -f conftest.er1
  3527. cat conftest.err >&5
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); } &&
  3530. { ac_try='test -z "$ac_c_werror_flag"
  3531. || test ! -s conftest.err'
  3532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3533. (eval $ac_try) 2>&5
  3534. ac_status=$?
  3535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3536. (exit $ac_status); }; } &&
  3537. { ac_try='test -s conftest$ac_exeext'
  3538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3539. (eval $ac_try) 2>&5
  3540. ac_status=$?
  3541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3542. (exit $ac_status); }; }; then
  3543. ac_cv_func_res_init=yes
  3544. else
  3545. echo "$as_me: failed program was:" >&5
  3546. sed 's/^/| /' conftest.$ac_ext >&5
  3547. ac_cv_func_res_init=no
  3548. fi
  3549. rm -f conftest.err conftest.$ac_objext \
  3550. conftest$ac_exeext conftest.$ac_ext
  3551. fi
  3552. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3553. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3554. if test $ac_cv_func_res_init = yes; then
  3555. :
  3556. else
  3557. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3558. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3559. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. ac_check_lib_save_LIBS=$LIBS
  3563. LIBS="-lresolv $LIBS"
  3564. cat >conftest.$ac_ext <<_ACEOF
  3565. /* confdefs.h. */
  3566. _ACEOF
  3567. cat confdefs.h >>conftest.$ac_ext
  3568. cat >>conftest.$ac_ext <<_ACEOF
  3569. /* end confdefs.h. */
  3570. /* Override any gcc2 internal prototype to avoid an error. */
  3571. #ifdef __cplusplus
  3572. extern "C"
  3573. #endif
  3574. /* We use char because int might match the return type of a gcc2
  3575. builtin and then its argument prototype would still apply. */
  3576. char res_init ();
  3577. int
  3578. main ()
  3579. {
  3580. res_init ();
  3581. ;
  3582. return 0;
  3583. }
  3584. _ACEOF
  3585. rm -f conftest.$ac_objext conftest$ac_exeext
  3586. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3587. (eval $ac_link) 2>conftest.er1
  3588. ac_status=$?
  3589. grep -v '^ *+' conftest.er1 >conftest.err
  3590. rm -f conftest.er1
  3591. cat conftest.err >&5
  3592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3593. (exit $ac_status); } &&
  3594. { ac_try='test -z "$ac_c_werror_flag"
  3595. || test ! -s conftest.err'
  3596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3597. (eval $ac_try) 2>&5
  3598. ac_status=$?
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); }; } &&
  3601. { ac_try='test -s conftest$ac_exeext'
  3602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3603. (eval $ac_try) 2>&5
  3604. ac_status=$?
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); }; }; then
  3607. ac_cv_lib_resolv_res_init=yes
  3608. else
  3609. echo "$as_me: failed program was:" >&5
  3610. sed 's/^/| /' conftest.$ac_ext >&5
  3611. ac_cv_lib_resolv_res_init=no
  3612. fi
  3613. rm -f conftest.err conftest.$ac_objext \
  3614. conftest$ac_exeext conftest.$ac_ext
  3615. LIBS=$ac_check_lib_save_LIBS
  3616. fi
  3617. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3618. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3619. if test $ac_cv_lib_resolv_res_init = yes; then
  3620. RESLIB="-lresolv"
  3621. else
  3622. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3623. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3624. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3625. echo $ECHO_N "(cached) $ECHO_C" >&6
  3626. else
  3627. ac_check_lib_save_LIBS=$LIBS
  3628. LIBS="-lbind $LIBS"
  3629. cat >conftest.$ac_ext <<_ACEOF
  3630. /* confdefs.h. */
  3631. _ACEOF
  3632. cat confdefs.h >>conftest.$ac_ext
  3633. cat >>conftest.$ac_ext <<_ACEOF
  3634. /* end confdefs.h. */
  3635. /* Override any gcc2 internal prototype to avoid an error. */
  3636. #ifdef __cplusplus
  3637. extern "C"
  3638. #endif
  3639. /* We use char because int might match the return type of a gcc2
  3640. builtin and then its argument prototype would still apply. */
  3641. char res_init ();
  3642. int
  3643. main ()
  3644. {
  3645. res_init ();
  3646. ;
  3647. return 0;
  3648. }
  3649. _ACEOF
  3650. rm -f conftest.$ac_objext conftest$ac_exeext
  3651. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3652. (eval $ac_link) 2>conftest.er1
  3653. ac_status=$?
  3654. grep -v '^ *+' conftest.er1 >conftest.err
  3655. rm -f conftest.er1
  3656. cat conftest.err >&5
  3657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3658. (exit $ac_status); } &&
  3659. { ac_try='test -z "$ac_c_werror_flag"
  3660. || test ! -s conftest.err'
  3661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3662. (eval $ac_try) 2>&5
  3663. ac_status=$?
  3664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3665. (exit $ac_status); }; } &&
  3666. { ac_try='test -s conftest$ac_exeext'
  3667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3668. (eval $ac_try) 2>&5
  3669. ac_status=$?
  3670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. (exit $ac_status); }; }; then
  3672. ac_cv_lib_bind_res_init=yes
  3673. else
  3674. echo "$as_me: failed program was:" >&5
  3675. sed 's/^/| /' conftest.$ac_ext >&5
  3676. ac_cv_lib_bind_res_init=no
  3677. fi
  3678. rm -f conftest.err conftest.$ac_objext \
  3679. conftest$ac_exeext conftest.$ac_ext
  3680. LIBS=$ac_check_lib_save_LIBS
  3681. fi
  3682. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3683. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3684. if test $ac_cv_lib_bind_res_init = yes; then
  3685. RESLIB="-lbind"
  3686. else
  3687. dns_reslib_avail="false";
  3688. fi
  3689. fi
  3690. fi
  3691. if test "${dns_reslib_avail}" = false; then
  3692. dns_reslib_avail="true"
  3693. echo "$as_me:$LINENO: checking for __res_init" >&5
  3694. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3695. if test "${ac_cv_func___res_init+set}" = set; then
  3696. echo $ECHO_N "(cached) $ECHO_C" >&6
  3697. else
  3698. cat >conftest.$ac_ext <<_ACEOF
  3699. /* confdefs.h. */
  3700. _ACEOF
  3701. cat confdefs.h >>conftest.$ac_ext
  3702. cat >>conftest.$ac_ext <<_ACEOF
  3703. /* end confdefs.h. */
  3704. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3705. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3706. #define __res_init innocuous___res_init
  3707. /* System header to define __stub macros and hopefully few prototypes,
  3708. which can conflict with char __res_init (); below.
  3709. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3710. <limits.h> exists even on freestanding compilers. */
  3711. #ifdef __STDC__
  3712. # include <limits.h>
  3713. #else
  3714. # include <assert.h>
  3715. #endif
  3716. #undef __res_init
  3717. /* Override any gcc2 internal prototype to avoid an error. */
  3718. #ifdef __cplusplus
  3719. extern "C"
  3720. {
  3721. #endif
  3722. /* We use char because int might match the return type of a gcc2
  3723. builtin and then its argument prototype would still apply. */
  3724. char __res_init ();
  3725. /* The GNU C library defines this for functions which it implements
  3726. to always fail with ENOSYS. Some functions are actually named
  3727. something starting with __ and the normal name is an alias. */
  3728. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3729. choke me
  3730. #else
  3731. char (*f) () = __res_init;
  3732. #endif
  3733. #ifdef __cplusplus
  3734. }
  3735. #endif
  3736. int
  3737. main ()
  3738. {
  3739. return f != __res_init;
  3740. ;
  3741. return 0;
  3742. }
  3743. _ACEOF
  3744. rm -f conftest.$ac_objext conftest$ac_exeext
  3745. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3746. (eval $ac_link) 2>conftest.er1
  3747. ac_status=$?
  3748. grep -v '^ *+' conftest.er1 >conftest.err
  3749. rm -f conftest.er1
  3750. cat conftest.err >&5
  3751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3752. (exit $ac_status); } &&
  3753. { ac_try='test -z "$ac_c_werror_flag"
  3754. || test ! -s conftest.err'
  3755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3756. (eval $ac_try) 2>&5
  3757. ac_status=$?
  3758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3759. (exit $ac_status); }; } &&
  3760. { ac_try='test -s conftest$ac_exeext'
  3761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3762. (eval $ac_try) 2>&5
  3763. ac_status=$?
  3764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3765. (exit $ac_status); }; }; then
  3766. ac_cv_func___res_init=yes
  3767. else
  3768. echo "$as_me: failed program was:" >&5
  3769. sed 's/^/| /' conftest.$ac_ext >&5
  3770. ac_cv_func___res_init=no
  3771. fi
  3772. rm -f conftest.err conftest.$ac_objext \
  3773. conftest$ac_exeext conftest.$ac_ext
  3774. fi
  3775. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3776. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3777. if test $ac_cv_func___res_init = yes; then
  3778. :
  3779. else
  3780. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3781. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3782. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3783. echo $ECHO_N "(cached) $ECHO_C" >&6
  3784. else
  3785. ac_check_lib_save_LIBS=$LIBS
  3786. LIBS="-lresolv $LIBS"
  3787. cat >conftest.$ac_ext <<_ACEOF
  3788. /* confdefs.h. */
  3789. _ACEOF
  3790. cat confdefs.h >>conftest.$ac_ext
  3791. cat >>conftest.$ac_ext <<_ACEOF
  3792. /* end confdefs.h. */
  3793. /* Override any gcc2 internal prototype to avoid an error. */
  3794. #ifdef __cplusplus
  3795. extern "C"
  3796. #endif
  3797. /* We use char because int might match the return type of a gcc2
  3798. builtin and then its argument prototype would still apply. */
  3799. char __res_init ();
  3800. int
  3801. main ()
  3802. {
  3803. __res_init ();
  3804. ;
  3805. return 0;
  3806. }
  3807. _ACEOF
  3808. rm -f conftest.$ac_objext conftest$ac_exeext
  3809. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3810. (eval $ac_link) 2>conftest.er1
  3811. ac_status=$?
  3812. grep -v '^ *+' conftest.er1 >conftest.err
  3813. rm -f conftest.er1
  3814. cat conftest.err >&5
  3815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3816. (exit $ac_status); } &&
  3817. { ac_try='test -z "$ac_c_werror_flag"
  3818. || test ! -s conftest.err'
  3819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3820. (eval $ac_try) 2>&5
  3821. ac_status=$?
  3822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3823. (exit $ac_status); }; } &&
  3824. { ac_try='test -s conftest$ac_exeext'
  3825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3826. (eval $ac_try) 2>&5
  3827. ac_status=$?
  3828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3829. (exit $ac_status); }; }; then
  3830. ac_cv_lib_resolv___res_init=yes
  3831. else
  3832. echo "$as_me: failed program was:" >&5
  3833. sed 's/^/| /' conftest.$ac_ext >&5
  3834. ac_cv_lib_resolv___res_init=no
  3835. fi
  3836. rm -f conftest.err conftest.$ac_objext \
  3837. conftest$ac_exeext conftest.$ac_ext
  3838. LIBS=$ac_check_lib_save_LIBS
  3839. fi
  3840. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3841. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3842. if test $ac_cv_lib_resolv___res_init = yes; then
  3843. RESLIB="-lresolv"
  3844. else
  3845. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3846. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3847. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3848. echo $ECHO_N "(cached) $ECHO_C" >&6
  3849. else
  3850. ac_check_lib_save_LIBS=$LIBS
  3851. LIBS="-lbind $LIBS"
  3852. cat >conftest.$ac_ext <<_ACEOF
  3853. /* confdefs.h. */
  3854. _ACEOF
  3855. cat confdefs.h >>conftest.$ac_ext
  3856. cat >>conftest.$ac_ext <<_ACEOF
  3857. /* end confdefs.h. */
  3858. /* Override any gcc2 internal prototype to avoid an error. */
  3859. #ifdef __cplusplus
  3860. extern "C"
  3861. #endif
  3862. /* We use char because int might match the return type of a gcc2
  3863. builtin and then its argument prototype would still apply. */
  3864. char __res_init ();
  3865. int
  3866. main ()
  3867. {
  3868. __res_init ();
  3869. ;
  3870. return 0;
  3871. }
  3872. _ACEOF
  3873. rm -f conftest.$ac_objext conftest$ac_exeext
  3874. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3875. (eval $ac_link) 2>conftest.er1
  3876. ac_status=$?
  3877. grep -v '^ *+' conftest.er1 >conftest.err
  3878. rm -f conftest.er1
  3879. cat conftest.err >&5
  3880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3881. (exit $ac_status); } &&
  3882. { ac_try='test -z "$ac_c_werror_flag"
  3883. || test ! -s conftest.err'
  3884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3885. (eval $ac_try) 2>&5
  3886. ac_status=$?
  3887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3888. (exit $ac_status); }; } &&
  3889. { ac_try='test -s conftest$ac_exeext'
  3890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3891. (eval $ac_try) 2>&5
  3892. ac_status=$?
  3893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3894. (exit $ac_status); }; }; then
  3895. ac_cv_lib_bind___res_init=yes
  3896. else
  3897. echo "$as_me: failed program was:" >&5
  3898. sed 's/^/| /' conftest.$ac_ext >&5
  3899. ac_cv_lib_bind___res_init=no
  3900. fi
  3901. rm -f conftest.err conftest.$ac_objext \
  3902. conftest$ac_exeext conftest.$ac_ext
  3903. LIBS=$ac_check_lib_save_LIBS
  3904. fi
  3905. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3906. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3907. if test $ac_cv_lib_bind___res_init = yes; then
  3908. RESLIB="-lbind"
  3909. else
  3910. dns_reslib_avail="false";
  3911. fi
  3912. fi
  3913. fi
  3914. fi
  3915. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3916. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3917. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3918. echo $ECHO_N "(cached) $ECHO_C" >&6
  3919. else
  3920. cat >conftest.$ac_ext <<_ACEOF
  3921. /* confdefs.h. */
  3922. _ACEOF
  3923. cat confdefs.h >>conftest.$ac_ext
  3924. cat >>conftest.$ac_ext <<_ACEOF
  3925. /* end confdefs.h. */
  3926. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3927. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3928. #define res_mkquery innocuous_res_mkquery
  3929. /* System header to define __stub macros and hopefully few prototypes,
  3930. which can conflict with char res_mkquery (); below.
  3931. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3932. <limits.h> exists even on freestanding compilers. */
  3933. #ifdef __STDC__
  3934. # include <limits.h>
  3935. #else
  3936. # include <assert.h>
  3937. #endif
  3938. #undef res_mkquery
  3939. /* Override any gcc2 internal prototype to avoid an error. */
  3940. #ifdef __cplusplus
  3941. extern "C"
  3942. {
  3943. #endif
  3944. /* We use char because int might match the return type of a gcc2
  3945. builtin and then its argument prototype would still apply. */
  3946. char res_mkquery ();
  3947. /* The GNU C library defines this for functions which it implements
  3948. to always fail with ENOSYS. Some functions are actually named
  3949. something starting with __ and the normal name is an alias. */
  3950. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3951. choke me
  3952. #else
  3953. char (*f) () = res_mkquery;
  3954. #endif
  3955. #ifdef __cplusplus
  3956. }
  3957. #endif
  3958. int
  3959. main ()
  3960. {
  3961. return f != res_mkquery;
  3962. ;
  3963. return 0;
  3964. }
  3965. _ACEOF
  3966. rm -f conftest.$ac_objext conftest$ac_exeext
  3967. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3968. (eval $ac_link) 2>conftest.er1
  3969. ac_status=$?
  3970. grep -v '^ *+' conftest.er1 >conftest.err
  3971. rm -f conftest.er1
  3972. cat conftest.err >&5
  3973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974. (exit $ac_status); } &&
  3975. { ac_try='test -z "$ac_c_werror_flag"
  3976. || test ! -s conftest.err'
  3977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3978. (eval $ac_try) 2>&5
  3979. ac_status=$?
  3980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3981. (exit $ac_status); }; } &&
  3982. { ac_try='test -s conftest$ac_exeext'
  3983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3984. (eval $ac_try) 2>&5
  3985. ac_status=$?
  3986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3987. (exit $ac_status); }; }; then
  3988. ac_cv_func_res_mkquery=yes
  3989. else
  3990. echo "$as_me: failed program was:" >&5
  3991. sed 's/^/| /' conftest.$ac_ext >&5
  3992. ac_cv_func_res_mkquery=no
  3993. fi
  3994. rm -f conftest.err conftest.$ac_objext \
  3995. conftest$ac_exeext conftest.$ac_ext
  3996. fi
  3997. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3998. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3999. if test $ac_cv_func_res_mkquery = yes; then
  4000. :
  4001. else
  4002. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  4003. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  4004. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  4005. echo $ECHO_N "(cached) $ECHO_C" >&6
  4006. else
  4007. ac_check_lib_save_LIBS=$LIBS
  4008. LIBS="-lresolv $LIBS"
  4009. cat >conftest.$ac_ext <<_ACEOF
  4010. /* confdefs.h. */
  4011. _ACEOF
  4012. cat confdefs.h >>conftest.$ac_ext
  4013. cat >>conftest.$ac_ext <<_ACEOF
  4014. /* end confdefs.h. */
  4015. /* Override any gcc2 internal prototype to avoid an error. */
  4016. #ifdef __cplusplus
  4017. extern "C"
  4018. #endif
  4019. /* We use char because int might match the return type of a gcc2
  4020. builtin and then its argument prototype would still apply. */
  4021. char res_mkquery ();
  4022. int
  4023. main ()
  4024. {
  4025. res_mkquery ();
  4026. ;
  4027. return 0;
  4028. }
  4029. _ACEOF
  4030. rm -f conftest.$ac_objext conftest$ac_exeext
  4031. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4032. (eval $ac_link) 2>conftest.er1
  4033. ac_status=$?
  4034. grep -v '^ *+' conftest.er1 >conftest.err
  4035. rm -f conftest.er1
  4036. cat conftest.err >&5
  4037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4038. (exit $ac_status); } &&
  4039. { ac_try='test -z "$ac_c_werror_flag"
  4040. || test ! -s conftest.err'
  4041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4042. (eval $ac_try) 2>&5
  4043. ac_status=$?
  4044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4045. (exit $ac_status); }; } &&
  4046. { ac_try='test -s conftest$ac_exeext'
  4047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4048. (eval $ac_try) 2>&5
  4049. ac_status=$?
  4050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4051. (exit $ac_status); }; }; then
  4052. ac_cv_lib_resolv_res_mkquery=yes
  4053. else
  4054. echo "$as_me: failed program was:" >&5
  4055. sed 's/^/| /' conftest.$ac_ext >&5
  4056. ac_cv_lib_resolv_res_mkquery=no
  4057. fi
  4058. rm -f conftest.err conftest.$ac_objext \
  4059. conftest$ac_exeext conftest.$ac_ext
  4060. LIBS=$ac_check_lib_save_LIBS
  4061. fi
  4062. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4063. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4064. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4065. if test "x${RESLIB}" != "x-lresolv"; then
  4066. RESLIB="${RESLIB} -lresolv"
  4067. fi
  4068. else
  4069. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4070. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4071. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4072. echo $ECHO_N "(cached) $ECHO_C" >&6
  4073. else
  4074. ac_check_lib_save_LIBS=$LIBS
  4075. LIBS="-lbind $LIBS"
  4076. cat >conftest.$ac_ext <<_ACEOF
  4077. /* confdefs.h. */
  4078. _ACEOF
  4079. cat confdefs.h >>conftest.$ac_ext
  4080. cat >>conftest.$ac_ext <<_ACEOF
  4081. /* end confdefs.h. */
  4082. /* Override any gcc2 internal prototype to avoid an error. */
  4083. #ifdef __cplusplus
  4084. extern "C"
  4085. #endif
  4086. /* We use char because int might match the return type of a gcc2
  4087. builtin and then its argument prototype would still apply. */
  4088. char res_mkquery ();
  4089. int
  4090. main ()
  4091. {
  4092. res_mkquery ();
  4093. ;
  4094. return 0;
  4095. }
  4096. _ACEOF
  4097. rm -f conftest.$ac_objext conftest$ac_exeext
  4098. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4099. (eval $ac_link) 2>conftest.er1
  4100. ac_status=$?
  4101. grep -v '^ *+' conftest.er1 >conftest.err
  4102. rm -f conftest.er1
  4103. cat conftest.err >&5
  4104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4105. (exit $ac_status); } &&
  4106. { ac_try='test -z "$ac_c_werror_flag"
  4107. || test ! -s conftest.err'
  4108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4109. (eval $ac_try) 2>&5
  4110. ac_status=$?
  4111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4112. (exit $ac_status); }; } &&
  4113. { ac_try='test -s conftest$ac_exeext'
  4114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4115. (eval $ac_try) 2>&5
  4116. ac_status=$?
  4117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4118. (exit $ac_status); }; }; then
  4119. ac_cv_lib_bind_res_mkquery=yes
  4120. else
  4121. echo "$as_me: failed program was:" >&5
  4122. sed 's/^/| /' conftest.$ac_ext >&5
  4123. ac_cv_lib_bind_res_mkquery=no
  4124. fi
  4125. rm -f conftest.err conftest.$ac_objext \
  4126. conftest$ac_exeext conftest.$ac_ext
  4127. LIBS=$ac_check_lib_save_LIBS
  4128. fi
  4129. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4130. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4131. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4132. if test "x${RESLIB}" != "x-lbind"; then
  4133. RESLIB="${RESLIB} -lbind"
  4134. fi
  4135. else
  4136. dns_reslib_avail="false";
  4137. fi
  4138. fi
  4139. fi
  4140. if test "${dns_reslib_avail}" = false; then
  4141. dns_reslib_avail="true"
  4142. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4143. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4144. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4145. echo $ECHO_N "(cached) $ECHO_C" >&6
  4146. else
  4147. cat >conftest.$ac_ext <<_ACEOF
  4148. /* confdefs.h. */
  4149. _ACEOF
  4150. cat confdefs.h >>conftest.$ac_ext
  4151. cat >>conftest.$ac_ext <<_ACEOF
  4152. /* end confdefs.h. */
  4153. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4154. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4155. #define __res_mkquery innocuous___res_mkquery
  4156. /* System header to define __stub macros and hopefully few prototypes,
  4157. which can conflict with char __res_mkquery (); below.
  4158. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4159. <limits.h> exists even on freestanding compilers. */
  4160. #ifdef __STDC__
  4161. # include <limits.h>
  4162. #else
  4163. # include <assert.h>
  4164. #endif
  4165. #undef __res_mkquery
  4166. /* Override any gcc2 internal prototype to avoid an error. */
  4167. #ifdef __cplusplus
  4168. extern "C"
  4169. {
  4170. #endif
  4171. /* We use char because int might match the return type of a gcc2
  4172. builtin and then its argument prototype would still apply. */
  4173. char __res_mkquery ();
  4174. /* The GNU C library defines this for functions which it implements
  4175. to always fail with ENOSYS. Some functions are actually named
  4176. something starting with __ and the normal name is an alias. */
  4177. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4178. choke me
  4179. #else
  4180. char (*f) () = __res_mkquery;
  4181. #endif
  4182. #ifdef __cplusplus
  4183. }
  4184. #endif
  4185. int
  4186. main ()
  4187. {
  4188. return f != __res_mkquery;
  4189. ;
  4190. return 0;
  4191. }
  4192. _ACEOF
  4193. rm -f conftest.$ac_objext conftest$ac_exeext
  4194. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4195. (eval $ac_link) 2>conftest.er1
  4196. ac_status=$?
  4197. grep -v '^ *+' conftest.er1 >conftest.err
  4198. rm -f conftest.er1
  4199. cat conftest.err >&5
  4200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4201. (exit $ac_status); } &&
  4202. { ac_try='test -z "$ac_c_werror_flag"
  4203. || test ! -s conftest.err'
  4204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4205. (eval $ac_try) 2>&5
  4206. ac_status=$?
  4207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208. (exit $ac_status); }; } &&
  4209. { ac_try='test -s conftest$ac_exeext'
  4210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4211. (eval $ac_try) 2>&5
  4212. ac_status=$?
  4213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4214. (exit $ac_status); }; }; then
  4215. ac_cv_func___res_mkquery=yes
  4216. else
  4217. echo "$as_me: failed program was:" >&5
  4218. sed 's/^/| /' conftest.$ac_ext >&5
  4219. ac_cv_func___res_mkquery=no
  4220. fi
  4221. rm -f conftest.err conftest.$ac_objext \
  4222. conftest$ac_exeext conftest.$ac_ext
  4223. fi
  4224. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4225. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4226. if test $ac_cv_func___res_mkquery = yes; then
  4227. :
  4228. else
  4229. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4230. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4231. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4232. echo $ECHO_N "(cached) $ECHO_C" >&6
  4233. else
  4234. ac_check_lib_save_LIBS=$LIBS
  4235. LIBS="-lresolv $LIBS"
  4236. cat >conftest.$ac_ext <<_ACEOF
  4237. /* confdefs.h. */
  4238. _ACEOF
  4239. cat confdefs.h >>conftest.$ac_ext
  4240. cat >>conftest.$ac_ext <<_ACEOF
  4241. /* end confdefs.h. */
  4242. /* Override any gcc2 internal prototype to avoid an error. */
  4243. #ifdef __cplusplus
  4244. extern "C"
  4245. #endif
  4246. /* We use char because int might match the return type of a gcc2
  4247. builtin and then its argument prototype would still apply. */
  4248. char __res_mkquery ();
  4249. int
  4250. main ()
  4251. {
  4252. __res_mkquery ();
  4253. ;
  4254. return 0;
  4255. }
  4256. _ACEOF
  4257. rm -f conftest.$ac_objext conftest$ac_exeext
  4258. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4259. (eval $ac_link) 2>conftest.er1
  4260. ac_status=$?
  4261. grep -v '^ *+' conftest.er1 >conftest.err
  4262. rm -f conftest.er1
  4263. cat conftest.err >&5
  4264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4265. (exit $ac_status); } &&
  4266. { ac_try='test -z "$ac_c_werror_flag"
  4267. || test ! -s conftest.err'
  4268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4269. (eval $ac_try) 2>&5
  4270. ac_status=$?
  4271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4272. (exit $ac_status); }; } &&
  4273. { ac_try='test -s conftest$ac_exeext'
  4274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4275. (eval $ac_try) 2>&5
  4276. ac_status=$?
  4277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4278. (exit $ac_status); }; }; then
  4279. ac_cv_lib_resolv___res_mkquery=yes
  4280. else
  4281. echo "$as_me: failed program was:" >&5
  4282. sed 's/^/| /' conftest.$ac_ext >&5
  4283. ac_cv_lib_resolv___res_mkquery=no
  4284. fi
  4285. rm -f conftest.err conftest.$ac_objext \
  4286. conftest$ac_exeext conftest.$ac_ext
  4287. LIBS=$ac_check_lib_save_LIBS
  4288. fi
  4289. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4290. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4291. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4292. if test "x${RESLIB}" != "x-lresolv"; then
  4293. RESLIB="${RESLIB} -lresolv"
  4294. fi
  4295. else
  4296. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4297. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4298. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4299. echo $ECHO_N "(cached) $ECHO_C" >&6
  4300. else
  4301. ac_check_lib_save_LIBS=$LIBS
  4302. LIBS="-lbind $LIBS"
  4303. cat >conftest.$ac_ext <<_ACEOF
  4304. /* confdefs.h. */
  4305. _ACEOF
  4306. cat confdefs.h >>conftest.$ac_ext
  4307. cat >>conftest.$ac_ext <<_ACEOF
  4308. /* end confdefs.h. */
  4309. /* Override any gcc2 internal prototype to avoid an error. */
  4310. #ifdef __cplusplus
  4311. extern "C"
  4312. #endif
  4313. /* We use char because int might match the return type of a gcc2
  4314. builtin and then its argument prototype would still apply. */
  4315. char __res_mkquery ();
  4316. int
  4317. main ()
  4318. {
  4319. __res_mkquery ();
  4320. ;
  4321. return 0;
  4322. }
  4323. _ACEOF
  4324. rm -f conftest.$ac_objext conftest$ac_exeext
  4325. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4326. (eval $ac_link) 2>conftest.er1
  4327. ac_status=$?
  4328. grep -v '^ *+' conftest.er1 >conftest.err
  4329. rm -f conftest.er1
  4330. cat conftest.err >&5
  4331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4332. (exit $ac_status); } &&
  4333. { ac_try='test -z "$ac_c_werror_flag"
  4334. || test ! -s conftest.err'
  4335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4336. (eval $ac_try) 2>&5
  4337. ac_status=$?
  4338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4339. (exit $ac_status); }; } &&
  4340. { ac_try='test -s conftest$ac_exeext'
  4341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4342. (eval $ac_try) 2>&5
  4343. ac_status=$?
  4344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4345. (exit $ac_status); }; }; then
  4346. ac_cv_lib_bind___res_mkquery=yes
  4347. else
  4348. echo "$as_me: failed program was:" >&5
  4349. sed 's/^/| /' conftest.$ac_ext >&5
  4350. ac_cv_lib_bind___res_mkquery=no
  4351. fi
  4352. rm -f conftest.err conftest.$ac_objext \
  4353. conftest$ac_exeext conftest.$ac_ext
  4354. LIBS=$ac_check_lib_save_LIBS
  4355. fi
  4356. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4357. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4358. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4359. if test "x${RESLIB}" != "x-lbind"; then
  4360. RESLIB="${RESLIB} -lbind"
  4361. fi
  4362. else
  4363. dns_reslib_avail="false";
  4364. fi
  4365. fi
  4366. fi
  4367. fi
  4368. if test "${dns_reslib_avail}" = false; then
  4369. if test "$ac_cv_cygwin" = "yes"; then
  4370. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4371. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4372. if test -r /usr/local/bind/lib/libbind.a; then
  4373. echo "$as_me:$LINENO: result: yes" >&5
  4374. echo "${ECHO_T}yes" >&6
  4375. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4376. RESINCLUDE="-I/usr/local/bind/include"
  4377. dns_reslib_avail="true"
  4378. else
  4379. echo "$as_me:$LINENO: result: no" >&5
  4380. echo "${ECHO_T}no" >&6
  4381. fi
  4382. fi
  4383. fi
  4384. if test "${dns_reslib_avail}" = false; then
  4385. cat >&2 <<EOF
  4386. configure: warning:
  4387. Your system provides no functional resolver library.
  4388. One is required for buld.
  4389. EOF
  4390. exit 1
  4391. fi
  4392. # Check for IPv6 support
  4393. #EGG_IPV6_SUPPORTED
  4394. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4395. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4396. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4397. if test "${enable_ipv6+set}" = set; then
  4398. enableval="$enable_ipv6"
  4399. ac_cv_dipv6="yes"
  4400. echo "$as_me:$LINENO: result: yes" >&5
  4401. echo "${ECHO_T}yes" >&6
  4402. else
  4403. ac_cv_dipv6="no"
  4404. if test "$egg_cv_ipv6_supported" = "no"; then
  4405. ac_cv_dipv6="no"
  4406. fi
  4407. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4408. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4409. fi;
  4410. if ! test "$EGG_CYGWIN" = "yes"; then
  4411. if test "$ac_cv_dipv6" = "no"; then
  4412. cat >>confdefs.h <<\_ACEOF
  4413. #define USE_IPV6 1
  4414. _ACEOF
  4415. fi
  4416. fi
  4417. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4418. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4419. if test "${egg_cv_socklen_t+set}" = set; then
  4420. echo $ECHO_N "(cached) $ECHO_C" >&6
  4421. else
  4422. if test "$cross_compiling" = yes; then
  4423. egg_cv_socklen_t=no
  4424. else
  4425. cat >conftest.$ac_ext <<_ACEOF
  4426. /* confdefs.h. */
  4427. _ACEOF
  4428. cat confdefs.h >>conftest.$ac_ext
  4429. cat >>conftest.$ac_ext <<_ACEOF
  4430. /* end confdefs.h. */
  4431. #include <unistd.h>
  4432. #include <sys/types.h>
  4433. #include <sys/socket.h>
  4434. #include <netinet/in.h>
  4435. #include <arpa/inet.h>
  4436. int main()
  4437. {
  4438. socklen_t test = sizeof(int);
  4439. return 0;
  4440. }
  4441. _ACEOF
  4442. rm -f conftest$ac_exeext
  4443. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4444. (eval $ac_link) 2>&5
  4445. ac_status=$?
  4446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4447. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4449. (eval $ac_try) 2>&5
  4450. ac_status=$?
  4451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4452. (exit $ac_status); }; }; then
  4453. egg_cv_socklen_t=yes
  4454. else
  4455. echo "$as_me: program exited with status $ac_status" >&5
  4456. echo "$as_me: failed program was:" >&5
  4457. sed 's/^/| /' conftest.$ac_ext >&5
  4458. ( exit $ac_status )
  4459. egg_cv_socklen_t=no
  4460. fi
  4461. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4462. fi
  4463. fi
  4464. if test "$egg_cv_socklen_t" = "yes"; then
  4465. cat >>confdefs.h <<\_ACEOF
  4466. #define HAVE_SOCKLEN_T 1
  4467. _ACEOF
  4468. echo "$as_me:$LINENO: result: yes" >&5
  4469. echo "${ECHO_T}yes" >&6
  4470. else
  4471. echo "$as_me:$LINENO: result: no" >&5
  4472. echo "${ECHO_T}no" >&6
  4473. fi
  4474. #checkpoint
  4475. cat >confcache <<\_ACEOF
  4476. # This file is a shell script that caches the results of configure
  4477. # tests run on this system so they can be shared between configure
  4478. # scripts and configure runs, see configure's option --config-cache.
  4479. # It is not useful on other systems. If it contains results you don't
  4480. # want to keep, you may remove or edit it.
  4481. #
  4482. # config.status only pays attention to the cache file if you give it
  4483. # the --recheck option to rerun configure.
  4484. #
  4485. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4486. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4487. # following values.
  4488. _ACEOF
  4489. # The following way of writing the cache mishandles newlines in values,
  4490. # but we know of no workaround that is simple, portable, and efficient.
  4491. # So, don't put newlines in cache variables' values.
  4492. # Ultrix sh set writes to stderr and can't be redirected directly,
  4493. # and sets the high bit in the cache file unless we assign to the vars.
  4494. {
  4495. (set) 2>&1 |
  4496. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4497. *ac_space=\ *)
  4498. # `set' does not quote correctly, so add quotes (double-quote
  4499. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4500. sed -n \
  4501. "s/'/'\\\\''/g;
  4502. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4503. ;;
  4504. *)
  4505. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4506. sed -n \
  4507. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4508. ;;
  4509. esac;
  4510. } |
  4511. sed '
  4512. t clear
  4513. : clear
  4514. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4515. t end
  4516. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4517. : end' >>confcache
  4518. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4519. if test -w $cache_file; then
  4520. test "x$cache_file" != "x/dev/null"
  4521. cat confcache >$cache_file
  4522. else
  4523. echo "not updating unwritable cache $cache_file"
  4524. fi
  4525. fi
  4526. rm -f confcache
  4527. # Checks for system libraries
  4528. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4529. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4530. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4531. echo $ECHO_N "(cached) $ECHO_C" >&6
  4532. else
  4533. ac_check_lib_save_LIBS=$LIBS
  4534. LIBS="-lsocket $LIBS"
  4535. cat >conftest.$ac_ext <<_ACEOF
  4536. /* confdefs.h. */
  4537. _ACEOF
  4538. cat confdefs.h >>conftest.$ac_ext
  4539. cat >>conftest.$ac_ext <<_ACEOF
  4540. /* end confdefs.h. */
  4541. /* Override any gcc2 internal prototype to avoid an error. */
  4542. #ifdef __cplusplus
  4543. extern "C"
  4544. #endif
  4545. /* We use char because int might match the return type of a gcc2
  4546. builtin and then its argument prototype would still apply. */
  4547. char socket ();
  4548. int
  4549. main ()
  4550. {
  4551. socket ();
  4552. ;
  4553. return 0;
  4554. }
  4555. _ACEOF
  4556. rm -f conftest.$ac_objext conftest$ac_exeext
  4557. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4558. (eval $ac_link) 2>conftest.er1
  4559. ac_status=$?
  4560. grep -v '^ *+' conftest.er1 >conftest.err
  4561. rm -f conftest.er1
  4562. cat conftest.err >&5
  4563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4564. (exit $ac_status); } &&
  4565. { ac_try='test -z "$ac_c_werror_flag"
  4566. || test ! -s conftest.err'
  4567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4568. (eval $ac_try) 2>&5
  4569. ac_status=$?
  4570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4571. (exit $ac_status); }; } &&
  4572. { ac_try='test -s conftest$ac_exeext'
  4573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4574. (eval $ac_try) 2>&5
  4575. ac_status=$?
  4576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4577. (exit $ac_status); }; }; then
  4578. ac_cv_lib_socket_socket=yes
  4579. else
  4580. echo "$as_me: failed program was:" >&5
  4581. sed 's/^/| /' conftest.$ac_ext >&5
  4582. ac_cv_lib_socket_socket=no
  4583. fi
  4584. rm -f conftest.err conftest.$ac_objext \
  4585. conftest$ac_exeext conftest.$ac_ext
  4586. LIBS=$ac_check_lib_save_LIBS
  4587. fi
  4588. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4589. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4590. if test $ac_cv_lib_socket_socket = yes; then
  4591. cat >>confdefs.h <<_ACEOF
  4592. #define HAVE_LIBSOCKET 1
  4593. _ACEOF
  4594. LIBS="-lsocket $LIBS"
  4595. fi
  4596. # AC_CHECK_LIB(nsl, connect)
  4597. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4598. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4599. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4600. echo $ECHO_N "(cached) $ECHO_C" >&6
  4601. else
  4602. ac_check_lib_save_LIBS=$LIBS
  4603. LIBS="-ldns $LIBS"
  4604. cat >conftest.$ac_ext <<_ACEOF
  4605. /* confdefs.h. */
  4606. _ACEOF
  4607. cat confdefs.h >>conftest.$ac_ext
  4608. cat >>conftest.$ac_ext <<_ACEOF
  4609. /* end confdefs.h. */
  4610. /* Override any gcc2 internal prototype to avoid an error. */
  4611. #ifdef __cplusplus
  4612. extern "C"
  4613. #endif
  4614. /* We use char because int might match the return type of a gcc2
  4615. builtin and then its argument prototype would still apply. */
  4616. char gethostbyname ();
  4617. int
  4618. main ()
  4619. {
  4620. gethostbyname ();
  4621. ;
  4622. return 0;
  4623. }
  4624. _ACEOF
  4625. rm -f conftest.$ac_objext conftest$ac_exeext
  4626. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4627. (eval $ac_link) 2>conftest.er1
  4628. ac_status=$?
  4629. grep -v '^ *+' conftest.er1 >conftest.err
  4630. rm -f conftest.er1
  4631. cat conftest.err >&5
  4632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4633. (exit $ac_status); } &&
  4634. { ac_try='test -z "$ac_c_werror_flag"
  4635. || test ! -s conftest.err'
  4636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4637. (eval $ac_try) 2>&5
  4638. ac_status=$?
  4639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4640. (exit $ac_status); }; } &&
  4641. { ac_try='test -s conftest$ac_exeext'
  4642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4643. (eval $ac_try) 2>&5
  4644. ac_status=$?
  4645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4646. (exit $ac_status); }; }; then
  4647. ac_cv_lib_dns_gethostbyname=yes
  4648. else
  4649. echo "$as_me: failed program was:" >&5
  4650. sed 's/^/| /' conftest.$ac_ext >&5
  4651. ac_cv_lib_dns_gethostbyname=no
  4652. fi
  4653. rm -f conftest.err conftest.$ac_objext \
  4654. conftest$ac_exeext conftest.$ac_ext
  4655. LIBS=$ac_check_lib_save_LIBS
  4656. fi
  4657. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4658. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4659. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4660. cat >>confdefs.h <<_ACEOF
  4661. #define HAVE_LIBDNS 1
  4662. _ACEOF
  4663. LIBS="-ldns $LIBS"
  4664. fi
  4665. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4666. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4667. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4668. # This is needed for Tcl libraries compiled with thread support
  4669. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4670. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4671. # ac_cv_lib_pthread="-lpthread"], [dnl
  4672. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4673. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4674. # ac_cv_lib_pthread="-lpthread"], [dnl
  4675. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4676. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4677. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4678. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4679. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4680. # ac_cv_lib_pthread=""],
  4681. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4682. # Checks for header files
  4683. ac_header_dirent=no
  4684. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4685. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4686. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4687. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4688. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4689. echo $ECHO_N "(cached) $ECHO_C" >&6
  4690. else
  4691. cat >conftest.$ac_ext <<_ACEOF
  4692. /* confdefs.h. */
  4693. _ACEOF
  4694. cat confdefs.h >>conftest.$ac_ext
  4695. cat >>conftest.$ac_ext <<_ACEOF
  4696. /* end confdefs.h. */
  4697. #include <sys/types.h>
  4698. #include <$ac_hdr>
  4699. int
  4700. main ()
  4701. {
  4702. if ((DIR *) 0)
  4703. return 0;
  4704. ;
  4705. return 0;
  4706. }
  4707. _ACEOF
  4708. rm -f conftest.$ac_objext
  4709. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4710. (eval $ac_compile) 2>conftest.er1
  4711. ac_status=$?
  4712. grep -v '^ *+' conftest.er1 >conftest.err
  4713. rm -f conftest.er1
  4714. cat conftest.err >&5
  4715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4716. (exit $ac_status); } &&
  4717. { ac_try='test -z "$ac_c_werror_flag"
  4718. || test ! -s conftest.err'
  4719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4720. (eval $ac_try) 2>&5
  4721. ac_status=$?
  4722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4723. (exit $ac_status); }; } &&
  4724. { ac_try='test -s conftest.$ac_objext'
  4725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4726. (eval $ac_try) 2>&5
  4727. ac_status=$?
  4728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4729. (exit $ac_status); }; }; then
  4730. eval "$as_ac_Header=yes"
  4731. else
  4732. echo "$as_me: failed program was:" >&5
  4733. sed 's/^/| /' conftest.$ac_ext >&5
  4734. eval "$as_ac_Header=no"
  4735. fi
  4736. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4737. fi
  4738. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4739. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4740. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4741. cat >>confdefs.h <<_ACEOF
  4742. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4743. _ACEOF
  4744. ac_header_dirent=$ac_hdr; break
  4745. fi
  4746. done
  4747. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4748. if test $ac_header_dirent = dirent.h; then
  4749. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4750. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4751. if test "${ac_cv_search_opendir+set}" = set; then
  4752. echo $ECHO_N "(cached) $ECHO_C" >&6
  4753. else
  4754. ac_func_search_save_LIBS=$LIBS
  4755. ac_cv_search_opendir=no
  4756. cat >conftest.$ac_ext <<_ACEOF
  4757. /* confdefs.h. */
  4758. _ACEOF
  4759. cat confdefs.h >>conftest.$ac_ext
  4760. cat >>conftest.$ac_ext <<_ACEOF
  4761. /* end confdefs.h. */
  4762. /* Override any gcc2 internal prototype to avoid an error. */
  4763. #ifdef __cplusplus
  4764. extern "C"
  4765. #endif
  4766. /* We use char because int might match the return type of a gcc2
  4767. builtin and then its argument prototype would still apply. */
  4768. char opendir ();
  4769. int
  4770. main ()
  4771. {
  4772. opendir ();
  4773. ;
  4774. return 0;
  4775. }
  4776. _ACEOF
  4777. rm -f conftest.$ac_objext conftest$ac_exeext
  4778. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4779. (eval $ac_link) 2>conftest.er1
  4780. ac_status=$?
  4781. grep -v '^ *+' conftest.er1 >conftest.err
  4782. rm -f conftest.er1
  4783. cat conftest.err >&5
  4784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4785. (exit $ac_status); } &&
  4786. { ac_try='test -z "$ac_c_werror_flag"
  4787. || test ! -s conftest.err'
  4788. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4789. (eval $ac_try) 2>&5
  4790. ac_status=$?
  4791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4792. (exit $ac_status); }; } &&
  4793. { ac_try='test -s conftest$ac_exeext'
  4794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4795. (eval $ac_try) 2>&5
  4796. ac_status=$?
  4797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4798. (exit $ac_status); }; }; then
  4799. ac_cv_search_opendir="none required"
  4800. else
  4801. echo "$as_me: failed program was:" >&5
  4802. sed 's/^/| /' conftest.$ac_ext >&5
  4803. fi
  4804. rm -f conftest.err conftest.$ac_objext \
  4805. conftest$ac_exeext conftest.$ac_ext
  4806. if test "$ac_cv_search_opendir" = no; then
  4807. for ac_lib in dir; do
  4808. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4809. cat >conftest.$ac_ext <<_ACEOF
  4810. /* confdefs.h. */
  4811. _ACEOF
  4812. cat confdefs.h >>conftest.$ac_ext
  4813. cat >>conftest.$ac_ext <<_ACEOF
  4814. /* end confdefs.h. */
  4815. /* Override any gcc2 internal prototype to avoid an error. */
  4816. #ifdef __cplusplus
  4817. extern "C"
  4818. #endif
  4819. /* We use char because int might match the return type of a gcc2
  4820. builtin and then its argument prototype would still apply. */
  4821. char opendir ();
  4822. int
  4823. main ()
  4824. {
  4825. opendir ();
  4826. ;
  4827. return 0;
  4828. }
  4829. _ACEOF
  4830. rm -f conftest.$ac_objext conftest$ac_exeext
  4831. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4832. (eval $ac_link) 2>conftest.er1
  4833. ac_status=$?
  4834. grep -v '^ *+' conftest.er1 >conftest.err
  4835. rm -f conftest.er1
  4836. cat conftest.err >&5
  4837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4838. (exit $ac_status); } &&
  4839. { ac_try='test -z "$ac_c_werror_flag"
  4840. || test ! -s conftest.err'
  4841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4842. (eval $ac_try) 2>&5
  4843. ac_status=$?
  4844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4845. (exit $ac_status); }; } &&
  4846. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  4852. ac_cv_search_opendir="-l$ac_lib"
  4853. break
  4854. else
  4855. echo "$as_me: failed program was:" >&5
  4856. sed 's/^/| /' conftest.$ac_ext >&5
  4857. fi
  4858. rm -f conftest.err conftest.$ac_objext \
  4859. conftest$ac_exeext conftest.$ac_ext
  4860. done
  4861. fi
  4862. LIBS=$ac_func_search_save_LIBS
  4863. fi
  4864. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4865. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4866. if test "$ac_cv_search_opendir" != no; then
  4867. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4868. fi
  4869. else
  4870. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4871. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4872. if test "${ac_cv_search_opendir+set}" = set; then
  4873. echo $ECHO_N "(cached) $ECHO_C" >&6
  4874. else
  4875. ac_func_search_save_LIBS=$LIBS
  4876. ac_cv_search_opendir=no
  4877. cat >conftest.$ac_ext <<_ACEOF
  4878. /* confdefs.h. */
  4879. _ACEOF
  4880. cat confdefs.h >>conftest.$ac_ext
  4881. cat >>conftest.$ac_ext <<_ACEOF
  4882. /* end confdefs.h. */
  4883. /* Override any gcc2 internal prototype to avoid an error. */
  4884. #ifdef __cplusplus
  4885. extern "C"
  4886. #endif
  4887. /* We use char because int might match the return type of a gcc2
  4888. builtin and then its argument prototype would still apply. */
  4889. char opendir ();
  4890. int
  4891. main ()
  4892. {
  4893. opendir ();
  4894. ;
  4895. return 0;
  4896. }
  4897. _ACEOF
  4898. rm -f conftest.$ac_objext conftest$ac_exeext
  4899. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4900. (eval $ac_link) 2>conftest.er1
  4901. ac_status=$?
  4902. grep -v '^ *+' conftest.er1 >conftest.err
  4903. rm -f conftest.er1
  4904. cat conftest.err >&5
  4905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4906. (exit $ac_status); } &&
  4907. { ac_try='test -z "$ac_c_werror_flag"
  4908. || test ! -s conftest.err'
  4909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4910. (eval $ac_try) 2>&5
  4911. ac_status=$?
  4912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913. (exit $ac_status); }; } &&
  4914. { ac_try='test -s conftest$ac_exeext'
  4915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4916. (eval $ac_try) 2>&5
  4917. ac_status=$?
  4918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4919. (exit $ac_status); }; }; then
  4920. ac_cv_search_opendir="none required"
  4921. else
  4922. echo "$as_me: failed program was:" >&5
  4923. sed 's/^/| /' conftest.$ac_ext >&5
  4924. fi
  4925. rm -f conftest.err conftest.$ac_objext \
  4926. conftest$ac_exeext conftest.$ac_ext
  4927. if test "$ac_cv_search_opendir" = no; then
  4928. for ac_lib in x; do
  4929. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4930. cat >conftest.$ac_ext <<_ACEOF
  4931. /* confdefs.h. */
  4932. _ACEOF
  4933. cat confdefs.h >>conftest.$ac_ext
  4934. cat >>conftest.$ac_ext <<_ACEOF
  4935. /* end confdefs.h. */
  4936. /* Override any gcc2 internal prototype to avoid an error. */
  4937. #ifdef __cplusplus
  4938. extern "C"
  4939. #endif
  4940. /* We use char because int might match the return type of a gcc2
  4941. builtin and then its argument prototype would still apply. */
  4942. char opendir ();
  4943. int
  4944. main ()
  4945. {
  4946. opendir ();
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. rm -f conftest.$ac_objext conftest$ac_exeext
  4952. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4953. (eval $ac_link) 2>conftest.er1
  4954. ac_status=$?
  4955. grep -v '^ *+' conftest.er1 >conftest.err
  4956. rm -f conftest.er1
  4957. cat conftest.err >&5
  4958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4959. (exit $ac_status); } &&
  4960. { ac_try='test -z "$ac_c_werror_flag"
  4961. || test ! -s conftest.err'
  4962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4963. (eval $ac_try) 2>&5
  4964. ac_status=$?
  4965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4966. (exit $ac_status); }; } &&
  4967. { ac_try='test -s conftest$ac_exeext'
  4968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4969. (eval $ac_try) 2>&5
  4970. ac_status=$?
  4971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4972. (exit $ac_status); }; }; then
  4973. ac_cv_search_opendir="-l$ac_lib"
  4974. break
  4975. else
  4976. echo "$as_me: failed program was:" >&5
  4977. sed 's/^/| /' conftest.$ac_ext >&5
  4978. fi
  4979. rm -f conftest.err conftest.$ac_objext \
  4980. conftest$ac_exeext conftest.$ac_ext
  4981. done
  4982. fi
  4983. LIBS=$ac_func_search_save_LIBS
  4984. fi
  4985. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4986. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4987. if test "$ac_cv_search_opendir" != no; then
  4988. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4989. fi
  4990. fi
  4991. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4992. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4993. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4994. echo $ECHO_N "(cached) $ECHO_C" >&6
  4995. else
  4996. cat >conftest.$ac_ext <<_ACEOF
  4997. /* confdefs.h. */
  4998. _ACEOF
  4999. cat confdefs.h >>conftest.$ac_ext
  5000. cat >>conftest.$ac_ext <<_ACEOF
  5001. /* end confdefs.h. */
  5002. #include <sys/types.h>
  5003. #include <sys/wait.h>
  5004. #ifndef WEXITSTATUS
  5005. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5006. #endif
  5007. #ifndef WIFEXITED
  5008. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5009. #endif
  5010. int
  5011. main ()
  5012. {
  5013. int s;
  5014. wait (&s);
  5015. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5016. ;
  5017. return 0;
  5018. }
  5019. _ACEOF
  5020. rm -f conftest.$ac_objext
  5021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5022. (eval $ac_compile) 2>conftest.er1
  5023. ac_status=$?
  5024. grep -v '^ *+' conftest.er1 >conftest.err
  5025. rm -f conftest.er1
  5026. cat conftest.err >&5
  5027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5028. (exit $ac_status); } &&
  5029. { ac_try='test -z "$ac_c_werror_flag"
  5030. || test ! -s conftest.err'
  5031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5032. (eval $ac_try) 2>&5
  5033. ac_status=$?
  5034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5035. (exit $ac_status); }; } &&
  5036. { ac_try='test -s conftest.$ac_objext'
  5037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5038. (eval $ac_try) 2>&5
  5039. ac_status=$?
  5040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5041. (exit $ac_status); }; }; then
  5042. ac_cv_header_sys_wait_h=yes
  5043. else
  5044. echo "$as_me: failed program was:" >&5
  5045. sed 's/^/| /' conftest.$ac_ext >&5
  5046. ac_cv_header_sys_wait_h=no
  5047. fi
  5048. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5049. fi
  5050. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5051. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5052. if test $ac_cv_header_sys_wait_h = yes; then
  5053. cat >>confdefs.h <<\_ACEOF
  5054. #define HAVE_SYS_WAIT_H 1
  5055. _ACEOF
  5056. fi
  5057. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5058. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5059. if test "${ac_cv_header_time+set}" = set; then
  5060. echo $ECHO_N "(cached) $ECHO_C" >&6
  5061. else
  5062. cat >conftest.$ac_ext <<_ACEOF
  5063. /* confdefs.h. */
  5064. _ACEOF
  5065. cat confdefs.h >>conftest.$ac_ext
  5066. cat >>conftest.$ac_ext <<_ACEOF
  5067. /* end confdefs.h. */
  5068. #include <sys/types.h>
  5069. #include <sys/time.h>
  5070. #include <time.h>
  5071. int
  5072. main ()
  5073. {
  5074. if ((struct tm *) 0)
  5075. return 0;
  5076. ;
  5077. return 0;
  5078. }
  5079. _ACEOF
  5080. rm -f conftest.$ac_objext
  5081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5082. (eval $ac_compile) 2>conftest.er1
  5083. ac_status=$?
  5084. grep -v '^ *+' conftest.er1 >conftest.err
  5085. rm -f conftest.er1
  5086. cat conftest.err >&5
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); } &&
  5089. { ac_try='test -z "$ac_c_werror_flag"
  5090. || test ! -s conftest.err'
  5091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5092. (eval $ac_try) 2>&5
  5093. ac_status=$?
  5094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095. (exit $ac_status); }; } &&
  5096. { ac_try='test -s conftest.$ac_objext'
  5097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5098. (eval $ac_try) 2>&5
  5099. ac_status=$?
  5100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5101. (exit $ac_status); }; }; then
  5102. ac_cv_header_time=yes
  5103. else
  5104. echo "$as_me: failed program was:" >&5
  5105. sed 's/^/| /' conftest.$ac_ext >&5
  5106. ac_cv_header_time=no
  5107. fi
  5108. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5109. fi
  5110. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5111. echo "${ECHO_T}$ac_cv_header_time" >&6
  5112. if test $ac_cv_header_time = yes; then
  5113. cat >>confdefs.h <<\_ACEOF
  5114. #define TIME_WITH_SYS_TIME 1
  5115. _ACEOF
  5116. fi
  5117. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5118. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5119. if test "${ac_cv_header_stat_broken+set}" = set; then
  5120. echo $ECHO_N "(cached) $ECHO_C" >&6
  5121. else
  5122. cat >conftest.$ac_ext <<_ACEOF
  5123. /* confdefs.h. */
  5124. _ACEOF
  5125. cat confdefs.h >>conftest.$ac_ext
  5126. cat >>conftest.$ac_ext <<_ACEOF
  5127. /* end confdefs.h. */
  5128. #include <sys/types.h>
  5129. #include <sys/stat.h>
  5130. #if defined(S_ISBLK) && defined(S_IFDIR)
  5131. # if S_ISBLK (S_IFDIR)
  5132. You lose.
  5133. # endif
  5134. #endif
  5135. #if defined(S_ISBLK) && defined(S_IFCHR)
  5136. # if S_ISBLK (S_IFCHR)
  5137. You lose.
  5138. # endif
  5139. #endif
  5140. #if defined(S_ISLNK) && defined(S_IFREG)
  5141. # if S_ISLNK (S_IFREG)
  5142. You lose.
  5143. # endif
  5144. #endif
  5145. #if defined(S_ISSOCK) && defined(S_IFREG)
  5146. # if S_ISSOCK (S_IFREG)
  5147. You lose.
  5148. # endif
  5149. #endif
  5150. _ACEOF
  5151. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5152. $EGREP "You lose" >/dev/null 2>&1; then
  5153. ac_cv_header_stat_broken=yes
  5154. else
  5155. ac_cv_header_stat_broken=no
  5156. fi
  5157. rm -f conftest*
  5158. fi
  5159. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5160. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5161. if test $ac_cv_header_stat_broken = yes; then
  5162. cat >>confdefs.h <<\_ACEOF
  5163. #define STAT_MACROS_BROKEN 1
  5164. _ACEOF
  5165. fi
  5166. #checkpoint
  5167. cat >confcache <<\_ACEOF
  5168. # This file is a shell script that caches the results of configure
  5169. # tests run on this system so they can be shared between configure
  5170. # scripts and configure runs, see configure's option --config-cache.
  5171. # It is not useful on other systems. If it contains results you don't
  5172. # want to keep, you may remove or edit it.
  5173. #
  5174. # config.status only pays attention to the cache file if you give it
  5175. # the --recheck option to rerun configure.
  5176. #
  5177. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5178. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5179. # following values.
  5180. _ACEOF
  5181. # The following way of writing the cache mishandles newlines in values,
  5182. # but we know of no workaround that is simple, portable, and efficient.
  5183. # So, don't put newlines in cache variables' values.
  5184. # Ultrix sh set writes to stderr and can't be redirected directly,
  5185. # and sets the high bit in the cache file unless we assign to the vars.
  5186. {
  5187. (set) 2>&1 |
  5188. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5189. *ac_space=\ *)
  5190. # `set' does not quote correctly, so add quotes (double-quote
  5191. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5192. sed -n \
  5193. "s/'/'\\\\''/g;
  5194. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5195. ;;
  5196. *)
  5197. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5198. sed -n \
  5199. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5200. ;;
  5201. esac;
  5202. } |
  5203. sed '
  5204. t clear
  5205. : clear
  5206. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5207. t end
  5208. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5209. : end' >>confcache
  5210. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5211. if test -w $cache_file; then
  5212. test "x$cache_file" != "x/dev/null"
  5213. cat confcache >$cache_file
  5214. else
  5215. echo "not updating unwritable cache $cache_file"
  5216. fi
  5217. fi
  5218. rm -f confcache
  5219. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5220. do
  5221. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5222. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5223. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5224. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5225. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5226. echo $ECHO_N "(cached) $ECHO_C" >&6
  5227. fi
  5228. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5229. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5230. else
  5231. # Is the header compilable?
  5232. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5233. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5234. cat >conftest.$ac_ext <<_ACEOF
  5235. /* confdefs.h. */
  5236. _ACEOF
  5237. cat confdefs.h >>conftest.$ac_ext
  5238. cat >>conftest.$ac_ext <<_ACEOF
  5239. /* end confdefs.h. */
  5240. $ac_includes_default
  5241. #include <$ac_header>
  5242. _ACEOF
  5243. rm -f conftest.$ac_objext
  5244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5245. (eval $ac_compile) 2>conftest.er1
  5246. ac_status=$?
  5247. grep -v '^ *+' conftest.er1 >conftest.err
  5248. rm -f conftest.er1
  5249. cat conftest.err >&5
  5250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5251. (exit $ac_status); } &&
  5252. { ac_try='test -z "$ac_c_werror_flag"
  5253. || test ! -s conftest.err'
  5254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5255. (eval $ac_try) 2>&5
  5256. ac_status=$?
  5257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5258. (exit $ac_status); }; } &&
  5259. { ac_try='test -s conftest.$ac_objext'
  5260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5261. (eval $ac_try) 2>&5
  5262. ac_status=$?
  5263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5264. (exit $ac_status); }; }; then
  5265. ac_header_compiler=yes
  5266. else
  5267. echo "$as_me: failed program was:" >&5
  5268. sed 's/^/| /' conftest.$ac_ext >&5
  5269. ac_header_compiler=no
  5270. fi
  5271. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5272. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5273. echo "${ECHO_T}$ac_header_compiler" >&6
  5274. # Is the header present?
  5275. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5276. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5277. cat >conftest.$ac_ext <<_ACEOF
  5278. /* confdefs.h. */
  5279. _ACEOF
  5280. cat confdefs.h >>conftest.$ac_ext
  5281. cat >>conftest.$ac_ext <<_ACEOF
  5282. /* end confdefs.h. */
  5283. #include <$ac_header>
  5284. _ACEOF
  5285. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5286. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5287. ac_status=$?
  5288. grep -v '^ *+' conftest.er1 >conftest.err
  5289. rm -f conftest.er1
  5290. cat conftest.err >&5
  5291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5292. (exit $ac_status); } >/dev/null; then
  5293. if test -s conftest.err; then
  5294. ac_cpp_err=$ac_c_preproc_warn_flag
  5295. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5296. else
  5297. ac_cpp_err=
  5298. fi
  5299. else
  5300. ac_cpp_err=yes
  5301. fi
  5302. if test -z "$ac_cpp_err"; then
  5303. ac_header_preproc=yes
  5304. else
  5305. echo "$as_me: failed program was:" >&5
  5306. sed 's/^/| /' conftest.$ac_ext >&5
  5307. ac_header_preproc=no
  5308. fi
  5309. rm -f conftest.err conftest.$ac_ext
  5310. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5311. echo "${ECHO_T}$ac_header_preproc" >&6
  5312. # So? What about this header?
  5313. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5314. yes:no: )
  5315. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5316. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5317. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5318. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5319. ac_header_preproc=yes
  5320. ;;
  5321. no:yes:* )
  5322. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5323. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5324. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5325. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5326. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5327. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5328. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5329. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5330. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5331. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5332. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5333. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5334. (
  5335. cat <<\_ASBOX
  5336. ## ------------------------------------------ ##
  5337. ## Report this to the AC_PACKAGE_NAME lists. ##
  5338. ## ------------------------------------------ ##
  5339. _ASBOX
  5340. ) |
  5341. sed "s/^/$as_me: WARNING: /" >&2
  5342. ;;
  5343. esac
  5344. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5345. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5346. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5347. echo $ECHO_N "(cached) $ECHO_C" >&6
  5348. else
  5349. eval "$as_ac_Header=\$ac_header_preproc"
  5350. fi
  5351. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5352. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5353. fi
  5354. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5355. cat >>confdefs.h <<_ACEOF
  5356. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5357. _ACEOF
  5358. fi
  5359. done
  5360. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5361. do
  5362. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5363. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5364. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5365. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5366. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5367. echo $ECHO_N "(cached) $ECHO_C" >&6
  5368. fi
  5369. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5370. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5371. else
  5372. # Is the header compilable?
  5373. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5374. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5375. cat >conftest.$ac_ext <<_ACEOF
  5376. /* confdefs.h. */
  5377. _ACEOF
  5378. cat confdefs.h >>conftest.$ac_ext
  5379. cat >>conftest.$ac_ext <<_ACEOF
  5380. /* end confdefs.h. */
  5381. $ac_includes_default
  5382. #include <$ac_header>
  5383. _ACEOF
  5384. rm -f conftest.$ac_objext
  5385. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5386. (eval $ac_compile) 2>conftest.er1
  5387. ac_status=$?
  5388. grep -v '^ *+' conftest.er1 >conftest.err
  5389. rm -f conftest.er1
  5390. cat conftest.err >&5
  5391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392. (exit $ac_status); } &&
  5393. { ac_try='test -z "$ac_c_werror_flag"
  5394. || test ! -s conftest.err'
  5395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5396. (eval $ac_try) 2>&5
  5397. ac_status=$?
  5398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399. (exit $ac_status); }; } &&
  5400. { ac_try='test -s conftest.$ac_objext'
  5401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5402. (eval $ac_try) 2>&5
  5403. ac_status=$?
  5404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5405. (exit $ac_status); }; }; then
  5406. ac_header_compiler=yes
  5407. else
  5408. echo "$as_me: failed program was:" >&5
  5409. sed 's/^/| /' conftest.$ac_ext >&5
  5410. ac_header_compiler=no
  5411. fi
  5412. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5413. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5414. echo "${ECHO_T}$ac_header_compiler" >&6
  5415. # Is the header present?
  5416. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5417. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5418. cat >conftest.$ac_ext <<_ACEOF
  5419. /* confdefs.h. */
  5420. _ACEOF
  5421. cat confdefs.h >>conftest.$ac_ext
  5422. cat >>conftest.$ac_ext <<_ACEOF
  5423. /* end confdefs.h. */
  5424. #include <$ac_header>
  5425. _ACEOF
  5426. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5427. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5428. ac_status=$?
  5429. grep -v '^ *+' conftest.er1 >conftest.err
  5430. rm -f conftest.er1
  5431. cat conftest.err >&5
  5432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5433. (exit $ac_status); } >/dev/null; then
  5434. if test -s conftest.err; then
  5435. ac_cpp_err=$ac_c_preproc_warn_flag
  5436. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5437. else
  5438. ac_cpp_err=
  5439. fi
  5440. else
  5441. ac_cpp_err=yes
  5442. fi
  5443. if test -z "$ac_cpp_err"; then
  5444. ac_header_preproc=yes
  5445. else
  5446. echo "$as_me: failed program was:" >&5
  5447. sed 's/^/| /' conftest.$ac_ext >&5
  5448. ac_header_preproc=no
  5449. fi
  5450. rm -f conftest.err conftest.$ac_ext
  5451. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5452. echo "${ECHO_T}$ac_header_preproc" >&6
  5453. # So? What about this header?
  5454. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5455. yes:no: )
  5456. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5457. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5458. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5459. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5460. ac_header_preproc=yes
  5461. ;;
  5462. no:yes:* )
  5463. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5464. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5465. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5466. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5467. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5468. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5469. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5470. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5471. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5472. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5473. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5474. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5475. (
  5476. cat <<\_ASBOX
  5477. ## ------------------------------------------ ##
  5478. ## Report this to the AC_PACKAGE_NAME lists. ##
  5479. ## ------------------------------------------ ##
  5480. _ASBOX
  5481. ) |
  5482. sed "s/^/$as_me: WARNING: /" >&2
  5483. ;;
  5484. esac
  5485. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5486. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5487. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5488. echo $ECHO_N "(cached) $ECHO_C" >&6
  5489. else
  5490. eval "$as_ac_Header=\$ac_header_preproc"
  5491. fi
  5492. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5493. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5494. fi
  5495. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5496. cat >>confdefs.h <<_ACEOF
  5497. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5498. _ACEOF
  5499. fi
  5500. done
  5501. #checkpoint
  5502. cat >confcache <<\_ACEOF
  5503. # This file is a shell script that caches the results of configure
  5504. # tests run on this system so they can be shared between configure
  5505. # scripts and configure runs, see configure's option --config-cache.
  5506. # It is not useful on other systems. If it contains results you don't
  5507. # want to keep, you may remove or edit it.
  5508. #
  5509. # config.status only pays attention to the cache file if you give it
  5510. # the --recheck option to rerun configure.
  5511. #
  5512. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5513. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5514. # following values.
  5515. _ACEOF
  5516. # The following way of writing the cache mishandles newlines in values,
  5517. # but we know of no workaround that is simple, portable, and efficient.
  5518. # So, don't put newlines in cache variables' values.
  5519. # Ultrix sh set writes to stderr and can't be redirected directly,
  5520. # and sets the high bit in the cache file unless we assign to the vars.
  5521. {
  5522. (set) 2>&1 |
  5523. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5524. *ac_space=\ *)
  5525. # `set' does not quote correctly, so add quotes (double-quote
  5526. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5527. sed -n \
  5528. "s/'/'\\\\''/g;
  5529. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5530. ;;
  5531. *)
  5532. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5533. sed -n \
  5534. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5535. ;;
  5536. esac;
  5537. } |
  5538. sed '
  5539. t clear
  5540. : clear
  5541. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5542. t end
  5543. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5544. : end' >>confcache
  5545. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5546. if test -w $cache_file; then
  5547. test "x$cache_file" != "x/dev/null"
  5548. cat confcache >$cache_file
  5549. else
  5550. echo "not updating unwritable cache $cache_file"
  5551. fi
  5552. fi
  5553. rm -f confcache
  5554. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5555. #AC_CHECK_HEADERS(zlib.h)
  5556. #EGG_CHECK_ZLIB
  5557. #EGG_CHECK_SSL
  5558. #AC_SUBST(SSL)dnl
  5559. # Checks for typedefs, structures, and compiler characteristics
  5560. echo "$as_me:$LINENO: checking for pid_t" >&5
  5561. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5562. if test "${ac_cv_type_pid_t+set}" = set; then
  5563. echo $ECHO_N "(cached) $ECHO_C" >&6
  5564. else
  5565. cat >conftest.$ac_ext <<_ACEOF
  5566. /* confdefs.h. */
  5567. _ACEOF
  5568. cat confdefs.h >>conftest.$ac_ext
  5569. cat >>conftest.$ac_ext <<_ACEOF
  5570. /* end confdefs.h. */
  5571. $ac_includes_default
  5572. int
  5573. main ()
  5574. {
  5575. if ((pid_t *) 0)
  5576. return 0;
  5577. if (sizeof (pid_t))
  5578. return 0;
  5579. ;
  5580. return 0;
  5581. }
  5582. _ACEOF
  5583. rm -f conftest.$ac_objext
  5584. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5585. (eval $ac_compile) 2>conftest.er1
  5586. ac_status=$?
  5587. grep -v '^ *+' conftest.er1 >conftest.err
  5588. rm -f conftest.er1
  5589. cat conftest.err >&5
  5590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5591. (exit $ac_status); } &&
  5592. { ac_try='test -z "$ac_c_werror_flag"
  5593. || test ! -s conftest.err'
  5594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5595. (eval $ac_try) 2>&5
  5596. ac_status=$?
  5597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5598. (exit $ac_status); }; } &&
  5599. { ac_try='test -s conftest.$ac_objext'
  5600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5601. (eval $ac_try) 2>&5
  5602. ac_status=$?
  5603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5604. (exit $ac_status); }; }; then
  5605. ac_cv_type_pid_t=yes
  5606. else
  5607. echo "$as_me: failed program was:" >&5
  5608. sed 's/^/| /' conftest.$ac_ext >&5
  5609. ac_cv_type_pid_t=no
  5610. fi
  5611. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5612. fi
  5613. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5614. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5615. if test $ac_cv_type_pid_t = yes; then
  5616. :
  5617. else
  5618. cat >>confdefs.h <<_ACEOF
  5619. #define pid_t int
  5620. _ACEOF
  5621. fi
  5622. echo "$as_me:$LINENO: checking for size_t" >&5
  5623. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5624. if test "${ac_cv_type_size_t+set}" = set; then
  5625. echo $ECHO_N "(cached) $ECHO_C" >&6
  5626. else
  5627. cat >conftest.$ac_ext <<_ACEOF
  5628. /* confdefs.h. */
  5629. _ACEOF
  5630. cat confdefs.h >>conftest.$ac_ext
  5631. cat >>conftest.$ac_ext <<_ACEOF
  5632. /* end confdefs.h. */
  5633. $ac_includes_default
  5634. int
  5635. main ()
  5636. {
  5637. if ((size_t *) 0)
  5638. return 0;
  5639. if (sizeof (size_t))
  5640. return 0;
  5641. ;
  5642. return 0;
  5643. }
  5644. _ACEOF
  5645. rm -f conftest.$ac_objext
  5646. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5647. (eval $ac_compile) 2>conftest.er1
  5648. ac_status=$?
  5649. grep -v '^ *+' conftest.er1 >conftest.err
  5650. rm -f conftest.er1
  5651. cat conftest.err >&5
  5652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5653. (exit $ac_status); } &&
  5654. { ac_try='test -z "$ac_c_werror_flag"
  5655. || test ! -s conftest.err'
  5656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5657. (eval $ac_try) 2>&5
  5658. ac_status=$?
  5659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5660. (exit $ac_status); }; } &&
  5661. { ac_try='test -s conftest.$ac_objext'
  5662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5663. (eval $ac_try) 2>&5
  5664. ac_status=$?
  5665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5666. (exit $ac_status); }; }; then
  5667. ac_cv_type_size_t=yes
  5668. else
  5669. echo "$as_me: failed program was:" >&5
  5670. sed 's/^/| /' conftest.$ac_ext >&5
  5671. ac_cv_type_size_t=no
  5672. fi
  5673. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5674. fi
  5675. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5676. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5677. if test $ac_cv_type_size_t = yes; then
  5678. :
  5679. else
  5680. cat >>confdefs.h <<_ACEOF
  5681. #define size_t unsigned
  5682. _ACEOF
  5683. fi
  5684. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5685. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5686. if test "${ac_cv_type_uid_t+set}" = set; then
  5687. echo $ECHO_N "(cached) $ECHO_C" >&6
  5688. else
  5689. cat >conftest.$ac_ext <<_ACEOF
  5690. /* confdefs.h. */
  5691. _ACEOF
  5692. cat confdefs.h >>conftest.$ac_ext
  5693. cat >>conftest.$ac_ext <<_ACEOF
  5694. /* end confdefs.h. */
  5695. #include <sys/types.h>
  5696. _ACEOF
  5697. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5698. $EGREP "uid_t" >/dev/null 2>&1; then
  5699. ac_cv_type_uid_t=yes
  5700. else
  5701. ac_cv_type_uid_t=no
  5702. fi
  5703. rm -f conftest*
  5704. fi
  5705. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5706. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5707. if test $ac_cv_type_uid_t = no; then
  5708. cat >>confdefs.h <<\_ACEOF
  5709. #define uid_t int
  5710. _ACEOF
  5711. cat >>confdefs.h <<\_ACEOF
  5712. #define gid_t int
  5713. _ACEOF
  5714. fi
  5715. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5716. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5717. if test "${ac_cv_c_const+set}" = set; then
  5718. echo $ECHO_N "(cached) $ECHO_C" >&6
  5719. else
  5720. cat >conftest.$ac_ext <<_ACEOF
  5721. /* confdefs.h. */
  5722. _ACEOF
  5723. cat confdefs.h >>conftest.$ac_ext
  5724. cat >>conftest.$ac_ext <<_ACEOF
  5725. /* end confdefs.h. */
  5726. int
  5727. main ()
  5728. {
  5729. /* FIXME: Include the comments suggested by Paul. */
  5730. #ifndef __cplusplus
  5731. /* Ultrix mips cc rejects this. */
  5732. typedef int charset[2];
  5733. const charset x;
  5734. /* SunOS 4.1.1 cc rejects this. */
  5735. char const *const *ccp;
  5736. char **p;
  5737. /* NEC SVR4.0.2 mips cc rejects this. */
  5738. struct point {int x, y;};
  5739. static struct point const zero = {0,0};
  5740. /* AIX XL C 1.02.0.0 rejects this.
  5741. It does not let you subtract one const X* pointer from another in
  5742. an arm of an if-expression whose if-part is not a constant
  5743. expression */
  5744. const char *g = "string";
  5745. ccp = &g + (g ? g-g : 0);
  5746. /* HPUX 7.0 cc rejects these. */
  5747. ++ccp;
  5748. p = (char**) ccp;
  5749. ccp = (char const *const *) p;
  5750. { /* SCO 3.2v4 cc rejects this. */
  5751. char *t;
  5752. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5753. *t++ = 0;
  5754. }
  5755. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5756. int x[] = {25, 17};
  5757. const int *foo = &x[0];
  5758. ++foo;
  5759. }
  5760. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5761. typedef const int *iptr;
  5762. iptr p = 0;
  5763. ++p;
  5764. }
  5765. { /* AIX XL C 1.02.0.0 rejects this saying
  5766. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5767. struct s { int j; const int *ap[3]; };
  5768. struct s *b; b->j = 5;
  5769. }
  5770. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5771. const int foo = 10;
  5772. }
  5773. #endif
  5774. ;
  5775. return 0;
  5776. }
  5777. _ACEOF
  5778. rm -f conftest.$ac_objext
  5779. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5780. (eval $ac_compile) 2>conftest.er1
  5781. ac_status=$?
  5782. grep -v '^ *+' conftest.er1 >conftest.err
  5783. rm -f conftest.er1
  5784. cat conftest.err >&5
  5785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5786. (exit $ac_status); } &&
  5787. { ac_try='test -z "$ac_c_werror_flag"
  5788. || test ! -s conftest.err'
  5789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5790. (eval $ac_try) 2>&5
  5791. ac_status=$?
  5792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5793. (exit $ac_status); }; } &&
  5794. { ac_try='test -s conftest.$ac_objext'
  5795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5796. (eval $ac_try) 2>&5
  5797. ac_status=$?
  5798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5799. (exit $ac_status); }; }; then
  5800. ac_cv_c_const=yes
  5801. else
  5802. echo "$as_me: failed program was:" >&5
  5803. sed 's/^/| /' conftest.$ac_ext >&5
  5804. ac_cv_c_const=no
  5805. fi
  5806. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5807. fi
  5808. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5809. echo "${ECHO_T}$ac_cv_c_const" >&6
  5810. if test $ac_cv_c_const = no; then
  5811. cat >>confdefs.h <<\_ACEOF
  5812. #define const
  5813. _ACEOF
  5814. fi
  5815. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5816. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5817. if test "${ac_cv_c_bigendian+set}" = set; then
  5818. echo $ECHO_N "(cached) $ECHO_C" >&6
  5819. else
  5820. # See if sys/param.h defines the BYTE_ORDER macro.
  5821. cat >conftest.$ac_ext <<_ACEOF
  5822. /* confdefs.h. */
  5823. _ACEOF
  5824. cat confdefs.h >>conftest.$ac_ext
  5825. cat >>conftest.$ac_ext <<_ACEOF
  5826. /* end confdefs.h. */
  5827. #include <sys/types.h>
  5828. #include <sys/param.h>
  5829. int
  5830. main ()
  5831. {
  5832. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5833. bogus endian macros
  5834. #endif
  5835. ;
  5836. return 0;
  5837. }
  5838. _ACEOF
  5839. rm -f conftest.$ac_objext
  5840. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5841. (eval $ac_compile) 2>conftest.er1
  5842. ac_status=$?
  5843. grep -v '^ *+' conftest.er1 >conftest.err
  5844. rm -f conftest.er1
  5845. cat conftest.err >&5
  5846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5847. (exit $ac_status); } &&
  5848. { ac_try='test -z "$ac_c_werror_flag"
  5849. || test ! -s conftest.err'
  5850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5851. (eval $ac_try) 2>&5
  5852. ac_status=$?
  5853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5854. (exit $ac_status); }; } &&
  5855. { ac_try='test -s conftest.$ac_objext'
  5856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5857. (eval $ac_try) 2>&5
  5858. ac_status=$?
  5859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5860. (exit $ac_status); }; }; then
  5861. # It does; now see whether it defined to BIG_ENDIAN or not.
  5862. cat >conftest.$ac_ext <<_ACEOF
  5863. /* confdefs.h. */
  5864. _ACEOF
  5865. cat confdefs.h >>conftest.$ac_ext
  5866. cat >>conftest.$ac_ext <<_ACEOF
  5867. /* end confdefs.h. */
  5868. #include <sys/types.h>
  5869. #include <sys/param.h>
  5870. int
  5871. main ()
  5872. {
  5873. #if BYTE_ORDER != BIG_ENDIAN
  5874. not big endian
  5875. #endif
  5876. ;
  5877. return 0;
  5878. }
  5879. _ACEOF
  5880. rm -f conftest.$ac_objext
  5881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5882. (eval $ac_compile) 2>conftest.er1
  5883. ac_status=$?
  5884. grep -v '^ *+' conftest.er1 >conftest.err
  5885. rm -f conftest.er1
  5886. cat conftest.err >&5
  5887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5888. (exit $ac_status); } &&
  5889. { ac_try='test -z "$ac_c_werror_flag"
  5890. || test ! -s conftest.err'
  5891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5892. (eval $ac_try) 2>&5
  5893. ac_status=$?
  5894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5895. (exit $ac_status); }; } &&
  5896. { ac_try='test -s conftest.$ac_objext'
  5897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5898. (eval $ac_try) 2>&5
  5899. ac_status=$?
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); }; }; then
  5902. ac_cv_c_bigendian=yes
  5903. else
  5904. echo "$as_me: failed program was:" >&5
  5905. sed 's/^/| /' conftest.$ac_ext >&5
  5906. ac_cv_c_bigendian=no
  5907. fi
  5908. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5909. else
  5910. echo "$as_me: failed program was:" >&5
  5911. sed 's/^/| /' conftest.$ac_ext >&5
  5912. # It does not; compile a test program.
  5913. if test "$cross_compiling" = yes; then
  5914. # try to guess the endianness by grepping values into an object file
  5915. ac_cv_c_bigendian=unknown
  5916. cat >conftest.$ac_ext <<_ACEOF
  5917. /* confdefs.h. */
  5918. _ACEOF
  5919. cat confdefs.h >>conftest.$ac_ext
  5920. cat >>conftest.$ac_ext <<_ACEOF
  5921. /* end confdefs.h. */
  5922. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5923. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5924. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5925. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5926. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5927. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5928. int
  5929. main ()
  5930. {
  5931. _ascii (); _ebcdic ();
  5932. ;
  5933. return 0;
  5934. }
  5935. _ACEOF
  5936. rm -f conftest.$ac_objext
  5937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5938. (eval $ac_compile) 2>conftest.er1
  5939. ac_status=$?
  5940. grep -v '^ *+' conftest.er1 >conftest.err
  5941. rm -f conftest.er1
  5942. cat conftest.err >&5
  5943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5944. (exit $ac_status); } &&
  5945. { ac_try='test -z "$ac_c_werror_flag"
  5946. || test ! -s conftest.err'
  5947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5948. (eval $ac_try) 2>&5
  5949. ac_status=$?
  5950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5951. (exit $ac_status); }; } &&
  5952. { ac_try='test -s conftest.$ac_objext'
  5953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5954. (eval $ac_try) 2>&5
  5955. ac_status=$?
  5956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5957. (exit $ac_status); }; }; then
  5958. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5959. ac_cv_c_bigendian=yes
  5960. fi
  5961. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5962. if test "$ac_cv_c_bigendian" = unknown; then
  5963. ac_cv_c_bigendian=no
  5964. else
  5965. # finding both strings is unlikely to happen, but who knows?
  5966. ac_cv_c_bigendian=unknown
  5967. fi
  5968. fi
  5969. else
  5970. echo "$as_me: failed program was:" >&5
  5971. sed 's/^/| /' conftest.$ac_ext >&5
  5972. fi
  5973. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5974. else
  5975. cat >conftest.$ac_ext <<_ACEOF
  5976. /* confdefs.h. */
  5977. _ACEOF
  5978. cat confdefs.h >>conftest.$ac_ext
  5979. cat >>conftest.$ac_ext <<_ACEOF
  5980. /* end confdefs.h. */
  5981. int
  5982. main ()
  5983. {
  5984. /* Are we little or big endian? From Harbison&Steele. */
  5985. union
  5986. {
  5987. long l;
  5988. char c[sizeof (long)];
  5989. } u;
  5990. u.l = 1;
  5991. exit (u.c[sizeof (long) - 1] == 1);
  5992. }
  5993. _ACEOF
  5994. rm -f conftest$ac_exeext
  5995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5996. (eval $ac_link) 2>&5
  5997. ac_status=$?
  5998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5999. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6001. (eval $ac_try) 2>&5
  6002. ac_status=$?
  6003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6004. (exit $ac_status); }; }; then
  6005. ac_cv_c_bigendian=no
  6006. else
  6007. echo "$as_me: program exited with status $ac_status" >&5
  6008. echo "$as_me: failed program was:" >&5
  6009. sed 's/^/| /' conftest.$ac_ext >&5
  6010. ( exit $ac_status )
  6011. ac_cv_c_bigendian=yes
  6012. fi
  6013. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6014. fi
  6015. fi
  6016. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6017. fi
  6018. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6019. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6020. case $ac_cv_c_bigendian in
  6021. yes)
  6022. cat >>confdefs.h <<\_ACEOF
  6023. #define WORDS_BIGENDIAN 1
  6024. _ACEOF
  6025. ;;
  6026. no)
  6027. ;;
  6028. *)
  6029. { { echo "$as_me:$LINENO: error: unknown endianness
  6030. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6031. echo "$as_me: error: unknown endianness
  6032. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6033. { (exit 1); exit 1; }; } ;;
  6034. esac
  6035. echo "$as_me:$LINENO: checking for inline" >&5
  6036. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6037. if test "${ac_cv_c_inline+set}" = set; then
  6038. echo $ECHO_N "(cached) $ECHO_C" >&6
  6039. else
  6040. ac_cv_c_inline=no
  6041. for ac_kw in inline __inline__ __inline; do
  6042. cat >conftest.$ac_ext <<_ACEOF
  6043. /* confdefs.h. */
  6044. _ACEOF
  6045. cat confdefs.h >>conftest.$ac_ext
  6046. cat >>conftest.$ac_ext <<_ACEOF
  6047. /* end confdefs.h. */
  6048. #ifndef __cplusplus
  6049. typedef int foo_t;
  6050. static $ac_kw foo_t static_foo () {return 0; }
  6051. $ac_kw foo_t foo () {return 0; }
  6052. #endif
  6053. _ACEOF
  6054. rm -f conftest.$ac_objext
  6055. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6056. (eval $ac_compile) 2>conftest.er1
  6057. ac_status=$?
  6058. grep -v '^ *+' conftest.er1 >conftest.err
  6059. rm -f conftest.er1
  6060. cat conftest.err >&5
  6061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6062. (exit $ac_status); } &&
  6063. { ac_try='test -z "$ac_c_werror_flag"
  6064. || test ! -s conftest.err'
  6065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6066. (eval $ac_try) 2>&5
  6067. ac_status=$?
  6068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6069. (exit $ac_status); }; } &&
  6070. { ac_try='test -s conftest.$ac_objext'
  6071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6072. (eval $ac_try) 2>&5
  6073. ac_status=$?
  6074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6075. (exit $ac_status); }; }; then
  6076. ac_cv_c_inline=$ac_kw; break
  6077. else
  6078. echo "$as_me: failed program was:" >&5
  6079. sed 's/^/| /' conftest.$ac_ext >&5
  6080. fi
  6081. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6082. done
  6083. fi
  6084. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6085. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6086. case $ac_cv_c_inline in
  6087. inline | yes) ;;
  6088. *)
  6089. case $ac_cv_c_inline in
  6090. no) ac_val=;;
  6091. *) ac_val=$ac_cv_c_inline;;
  6092. esac
  6093. cat >>confdefs.h <<_ACEOF
  6094. #ifndef __cplusplus
  6095. #define inline $ac_val
  6096. #endif
  6097. _ACEOF
  6098. ;;
  6099. esac
  6100. echo "$as_me:$LINENO: checking for long" >&5
  6101. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6102. if test "${ac_cv_type_long+set}" = set; then
  6103. echo $ECHO_N "(cached) $ECHO_C" >&6
  6104. else
  6105. cat >conftest.$ac_ext <<_ACEOF
  6106. /* confdefs.h. */
  6107. _ACEOF
  6108. cat confdefs.h >>conftest.$ac_ext
  6109. cat >>conftest.$ac_ext <<_ACEOF
  6110. /* end confdefs.h. */
  6111. $ac_includes_default
  6112. int
  6113. main ()
  6114. {
  6115. if ((long *) 0)
  6116. return 0;
  6117. if (sizeof (long))
  6118. return 0;
  6119. ;
  6120. return 0;
  6121. }
  6122. _ACEOF
  6123. rm -f conftest.$ac_objext
  6124. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6125. (eval $ac_compile) 2>conftest.er1
  6126. ac_status=$?
  6127. grep -v '^ *+' conftest.er1 >conftest.err
  6128. rm -f conftest.er1
  6129. cat conftest.err >&5
  6130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6131. (exit $ac_status); } &&
  6132. { ac_try='test -z "$ac_c_werror_flag"
  6133. || test ! -s conftest.err'
  6134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6135. (eval $ac_try) 2>&5
  6136. ac_status=$?
  6137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6138. (exit $ac_status); }; } &&
  6139. { ac_try='test -s conftest.$ac_objext'
  6140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6141. (eval $ac_try) 2>&5
  6142. ac_status=$?
  6143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6144. (exit $ac_status); }; }; then
  6145. ac_cv_type_long=yes
  6146. else
  6147. echo "$as_me: failed program was:" >&5
  6148. sed 's/^/| /' conftest.$ac_ext >&5
  6149. ac_cv_type_long=no
  6150. fi
  6151. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6152. fi
  6153. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6154. echo "${ECHO_T}$ac_cv_type_long" >&6
  6155. echo "$as_me:$LINENO: checking size of long" >&5
  6156. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6157. if test "${ac_cv_sizeof_long+set}" = set; then
  6158. echo $ECHO_N "(cached) $ECHO_C" >&6
  6159. else
  6160. if test "$ac_cv_type_long" = yes; then
  6161. # The cast to unsigned long works around a bug in the HP C Compiler
  6162. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6163. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6164. # This bug is HP SR number 8606223364.
  6165. if test "$cross_compiling" = yes; then
  6166. # Depending upon the size, compute the lo and hi bounds.
  6167. cat >conftest.$ac_ext <<_ACEOF
  6168. /* confdefs.h. */
  6169. _ACEOF
  6170. cat confdefs.h >>conftest.$ac_ext
  6171. cat >>conftest.$ac_ext <<_ACEOF
  6172. /* end confdefs.h. */
  6173. $ac_includes_default
  6174. int
  6175. main ()
  6176. {
  6177. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6178. test_array [0] = 0
  6179. ;
  6180. return 0;
  6181. }
  6182. _ACEOF
  6183. rm -f conftest.$ac_objext
  6184. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6185. (eval $ac_compile) 2>conftest.er1
  6186. ac_status=$?
  6187. grep -v '^ *+' conftest.er1 >conftest.err
  6188. rm -f conftest.er1
  6189. cat conftest.err >&5
  6190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6191. (exit $ac_status); } &&
  6192. { ac_try='test -z "$ac_c_werror_flag"
  6193. || test ! -s conftest.err'
  6194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6195. (eval $ac_try) 2>&5
  6196. ac_status=$?
  6197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6198. (exit $ac_status); }; } &&
  6199. { ac_try='test -s conftest.$ac_objext'
  6200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6201. (eval $ac_try) 2>&5
  6202. ac_status=$?
  6203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6204. (exit $ac_status); }; }; then
  6205. ac_lo=0 ac_mid=0
  6206. while :; do
  6207. cat >conftest.$ac_ext <<_ACEOF
  6208. /* confdefs.h. */
  6209. _ACEOF
  6210. cat confdefs.h >>conftest.$ac_ext
  6211. cat >>conftest.$ac_ext <<_ACEOF
  6212. /* end confdefs.h. */
  6213. $ac_includes_default
  6214. int
  6215. main ()
  6216. {
  6217. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6218. test_array [0] = 0
  6219. ;
  6220. return 0;
  6221. }
  6222. _ACEOF
  6223. rm -f conftest.$ac_objext
  6224. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6225. (eval $ac_compile) 2>conftest.er1
  6226. ac_status=$?
  6227. grep -v '^ *+' conftest.er1 >conftest.err
  6228. rm -f conftest.er1
  6229. cat conftest.err >&5
  6230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6231. (exit $ac_status); } &&
  6232. { ac_try='test -z "$ac_c_werror_flag"
  6233. || test ! -s conftest.err'
  6234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6235. (eval $ac_try) 2>&5
  6236. ac_status=$?
  6237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238. (exit $ac_status); }; } &&
  6239. { ac_try='test -s conftest.$ac_objext'
  6240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6241. (eval $ac_try) 2>&5
  6242. ac_status=$?
  6243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244. (exit $ac_status); }; }; then
  6245. ac_hi=$ac_mid; break
  6246. else
  6247. echo "$as_me: failed program was:" >&5
  6248. sed 's/^/| /' conftest.$ac_ext >&5
  6249. ac_lo=`expr $ac_mid + 1`
  6250. if test $ac_lo -le $ac_mid; then
  6251. ac_lo= ac_hi=
  6252. break
  6253. fi
  6254. ac_mid=`expr 2 '*' $ac_mid + 1`
  6255. fi
  6256. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6257. done
  6258. else
  6259. echo "$as_me: failed program was:" >&5
  6260. sed 's/^/| /' conftest.$ac_ext >&5
  6261. cat >conftest.$ac_ext <<_ACEOF
  6262. /* confdefs.h. */
  6263. _ACEOF
  6264. cat confdefs.h >>conftest.$ac_ext
  6265. cat >>conftest.$ac_ext <<_ACEOF
  6266. /* end confdefs.h. */
  6267. $ac_includes_default
  6268. int
  6269. main ()
  6270. {
  6271. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6272. test_array [0] = 0
  6273. ;
  6274. return 0;
  6275. }
  6276. _ACEOF
  6277. rm -f conftest.$ac_objext
  6278. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6279. (eval $ac_compile) 2>conftest.er1
  6280. ac_status=$?
  6281. grep -v '^ *+' conftest.er1 >conftest.err
  6282. rm -f conftest.er1
  6283. cat conftest.err >&5
  6284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6285. (exit $ac_status); } &&
  6286. { ac_try='test -z "$ac_c_werror_flag"
  6287. || test ! -s conftest.err'
  6288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6289. (eval $ac_try) 2>&5
  6290. ac_status=$?
  6291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6292. (exit $ac_status); }; } &&
  6293. { ac_try='test -s conftest.$ac_objext'
  6294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6295. (eval $ac_try) 2>&5
  6296. ac_status=$?
  6297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6298. (exit $ac_status); }; }; then
  6299. ac_hi=-1 ac_mid=-1
  6300. while :; do
  6301. cat >conftest.$ac_ext <<_ACEOF
  6302. /* confdefs.h. */
  6303. _ACEOF
  6304. cat confdefs.h >>conftest.$ac_ext
  6305. cat >>conftest.$ac_ext <<_ACEOF
  6306. /* end confdefs.h. */
  6307. $ac_includes_default
  6308. int
  6309. main ()
  6310. {
  6311. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6312. test_array [0] = 0
  6313. ;
  6314. return 0;
  6315. }
  6316. _ACEOF
  6317. rm -f conftest.$ac_objext
  6318. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6319. (eval $ac_compile) 2>conftest.er1
  6320. ac_status=$?
  6321. grep -v '^ *+' conftest.er1 >conftest.err
  6322. rm -f conftest.er1
  6323. cat conftest.err >&5
  6324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6325. (exit $ac_status); } &&
  6326. { ac_try='test -z "$ac_c_werror_flag"
  6327. || test ! -s conftest.err'
  6328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6329. (eval $ac_try) 2>&5
  6330. ac_status=$?
  6331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6332. (exit $ac_status); }; } &&
  6333. { ac_try='test -s conftest.$ac_objext'
  6334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6335. (eval $ac_try) 2>&5
  6336. ac_status=$?
  6337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6338. (exit $ac_status); }; }; then
  6339. ac_lo=$ac_mid; break
  6340. else
  6341. echo "$as_me: failed program was:" >&5
  6342. sed 's/^/| /' conftest.$ac_ext >&5
  6343. ac_hi=`expr '(' $ac_mid ')' - 1`
  6344. if test $ac_mid -le $ac_hi; then
  6345. ac_lo= ac_hi=
  6346. break
  6347. fi
  6348. ac_mid=`expr 2 '*' $ac_mid`
  6349. fi
  6350. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6351. done
  6352. else
  6353. echo "$as_me: failed program was:" >&5
  6354. sed 's/^/| /' conftest.$ac_ext >&5
  6355. ac_lo= ac_hi=
  6356. fi
  6357. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6358. fi
  6359. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6360. # Binary search between lo and hi bounds.
  6361. while test "x$ac_lo" != "x$ac_hi"; do
  6362. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6363. cat >conftest.$ac_ext <<_ACEOF
  6364. /* confdefs.h. */
  6365. _ACEOF
  6366. cat confdefs.h >>conftest.$ac_ext
  6367. cat >>conftest.$ac_ext <<_ACEOF
  6368. /* end confdefs.h. */
  6369. $ac_includes_default
  6370. int
  6371. main ()
  6372. {
  6373. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6374. test_array [0] = 0
  6375. ;
  6376. return 0;
  6377. }
  6378. _ACEOF
  6379. rm -f conftest.$ac_objext
  6380. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6381. (eval $ac_compile) 2>conftest.er1
  6382. ac_status=$?
  6383. grep -v '^ *+' conftest.er1 >conftest.err
  6384. rm -f conftest.er1
  6385. cat conftest.err >&5
  6386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6387. (exit $ac_status); } &&
  6388. { ac_try='test -z "$ac_c_werror_flag"
  6389. || test ! -s conftest.err'
  6390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6391. (eval $ac_try) 2>&5
  6392. ac_status=$?
  6393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6394. (exit $ac_status); }; } &&
  6395. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  6401. ac_hi=$ac_mid
  6402. else
  6403. echo "$as_me: failed program was:" >&5
  6404. sed 's/^/| /' conftest.$ac_ext >&5
  6405. ac_lo=`expr '(' $ac_mid ')' + 1`
  6406. fi
  6407. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6408. done
  6409. case $ac_lo in
  6410. ?*) ac_cv_sizeof_long=$ac_lo;;
  6411. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6412. See \`config.log' for more details." >&5
  6413. echo "$as_me: error: cannot compute sizeof (long), 77
  6414. See \`config.log' for more details." >&2;}
  6415. { (exit 1); exit 1; }; } ;;
  6416. esac
  6417. else
  6418. if test "$cross_compiling" = yes; then
  6419. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  6420. See \`config.log' for more details." >&5
  6421. echo "$as_me: error: cannot run test program while cross compiling
  6422. See \`config.log' for more details." >&2;}
  6423. { (exit 1); exit 1; }; }
  6424. else
  6425. cat >conftest.$ac_ext <<_ACEOF
  6426. /* confdefs.h. */
  6427. _ACEOF
  6428. cat confdefs.h >>conftest.$ac_ext
  6429. cat >>conftest.$ac_ext <<_ACEOF
  6430. /* end confdefs.h. */
  6431. $ac_includes_default
  6432. long longval () { return (long) (sizeof (long)); }
  6433. unsigned long ulongval () { return (long) (sizeof (long)); }
  6434. #include <stdio.h>
  6435. #include <stdlib.h>
  6436. int
  6437. main ()
  6438. {
  6439. FILE *f = fopen ("conftest.val", "w");
  6440. if (! f)
  6441. exit (1);
  6442. if (((long) (sizeof (long))) < 0)
  6443. {
  6444. long i = longval ();
  6445. if (i != ((long) (sizeof (long))))
  6446. exit (1);
  6447. fprintf (f, "%ld\n", i);
  6448. }
  6449. else
  6450. {
  6451. unsigned long i = ulongval ();
  6452. if (i != ((long) (sizeof (long))))
  6453. exit (1);
  6454. fprintf (f, "%lu\n", i);
  6455. }
  6456. exit (ferror (f) || fclose (f) != 0);
  6457. ;
  6458. return 0;
  6459. }
  6460. _ACEOF
  6461. rm -f conftest$ac_exeext
  6462. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6463. (eval $ac_link) 2>&5
  6464. ac_status=$?
  6465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6466. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6468. (eval $ac_try) 2>&5
  6469. ac_status=$?
  6470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6471. (exit $ac_status); }; }; then
  6472. ac_cv_sizeof_long=`cat conftest.val`
  6473. else
  6474. echo "$as_me: program exited with status $ac_status" >&5
  6475. echo "$as_me: failed program was:" >&5
  6476. sed 's/^/| /' conftest.$ac_ext >&5
  6477. ( exit $ac_status )
  6478. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6479. See \`config.log' for more details." >&5
  6480. echo "$as_me: error: cannot compute sizeof (long), 77
  6481. See \`config.log' for more details." >&2;}
  6482. { (exit 1); exit 1; }; }
  6483. fi
  6484. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6485. fi
  6486. fi
  6487. rm -f conftest.val
  6488. else
  6489. ac_cv_sizeof_long=0
  6490. fi
  6491. fi
  6492. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6493. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6494. cat >>confdefs.h <<_ACEOF
  6495. #define SIZEOF_LONG $ac_cv_sizeof_long
  6496. _ACEOF
  6497. echo "$as_me:$LINENO: checking for int" >&5
  6498. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6499. if test "${ac_cv_type_int+set}" = set; then
  6500. echo $ECHO_N "(cached) $ECHO_C" >&6
  6501. else
  6502. cat >conftest.$ac_ext <<_ACEOF
  6503. /* confdefs.h. */
  6504. _ACEOF
  6505. cat confdefs.h >>conftest.$ac_ext
  6506. cat >>conftest.$ac_ext <<_ACEOF
  6507. /* end confdefs.h. */
  6508. $ac_includes_default
  6509. int
  6510. main ()
  6511. {
  6512. if ((int *) 0)
  6513. return 0;
  6514. if (sizeof (int))
  6515. return 0;
  6516. ;
  6517. return 0;
  6518. }
  6519. _ACEOF
  6520. rm -f conftest.$ac_objext
  6521. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6522. (eval $ac_compile) 2>conftest.er1
  6523. ac_status=$?
  6524. grep -v '^ *+' conftest.er1 >conftest.err
  6525. rm -f conftest.er1
  6526. cat conftest.err >&5
  6527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6528. (exit $ac_status); } &&
  6529. { ac_try='test -z "$ac_c_werror_flag"
  6530. || test ! -s conftest.err'
  6531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6532. (eval $ac_try) 2>&5
  6533. ac_status=$?
  6534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6535. (exit $ac_status); }; } &&
  6536. { ac_try='test -s conftest.$ac_objext'
  6537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6538. (eval $ac_try) 2>&5
  6539. ac_status=$?
  6540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6541. (exit $ac_status); }; }; then
  6542. ac_cv_type_int=yes
  6543. else
  6544. echo "$as_me: failed program was:" >&5
  6545. sed 's/^/| /' conftest.$ac_ext >&5
  6546. ac_cv_type_int=no
  6547. fi
  6548. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6549. fi
  6550. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6551. echo "${ECHO_T}$ac_cv_type_int" >&6
  6552. echo "$as_me:$LINENO: checking size of int" >&5
  6553. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6554. if test "${ac_cv_sizeof_int+set}" = set; then
  6555. echo $ECHO_N "(cached) $ECHO_C" >&6
  6556. else
  6557. if test "$ac_cv_type_int" = yes; then
  6558. # The cast to unsigned long works around a bug in the HP C Compiler
  6559. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6560. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6561. # This bug is HP SR number 8606223364.
  6562. if test "$cross_compiling" = yes; then
  6563. # Depending upon the size, compute the lo and hi bounds.
  6564. cat >conftest.$ac_ext <<_ACEOF
  6565. /* confdefs.h. */
  6566. _ACEOF
  6567. cat confdefs.h >>conftest.$ac_ext
  6568. cat >>conftest.$ac_ext <<_ACEOF
  6569. /* end confdefs.h. */
  6570. $ac_includes_default
  6571. int
  6572. main ()
  6573. {
  6574. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6575. test_array [0] = 0
  6576. ;
  6577. return 0;
  6578. }
  6579. _ACEOF
  6580. rm -f conftest.$ac_objext
  6581. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6582. (eval $ac_compile) 2>conftest.er1
  6583. ac_status=$?
  6584. grep -v '^ *+' conftest.er1 >conftest.err
  6585. rm -f conftest.er1
  6586. cat conftest.err >&5
  6587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6588. (exit $ac_status); } &&
  6589. { ac_try='test -z "$ac_c_werror_flag"
  6590. || test ! -s conftest.err'
  6591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6592. (eval $ac_try) 2>&5
  6593. ac_status=$?
  6594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6595. (exit $ac_status); }; } &&
  6596. { ac_try='test -s conftest.$ac_objext'
  6597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6598. (eval $ac_try) 2>&5
  6599. ac_status=$?
  6600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6601. (exit $ac_status); }; }; then
  6602. ac_lo=0 ac_mid=0
  6603. while :; do
  6604. cat >conftest.$ac_ext <<_ACEOF
  6605. /* confdefs.h. */
  6606. _ACEOF
  6607. cat confdefs.h >>conftest.$ac_ext
  6608. cat >>conftest.$ac_ext <<_ACEOF
  6609. /* end confdefs.h. */
  6610. $ac_includes_default
  6611. int
  6612. main ()
  6613. {
  6614. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6615. test_array [0] = 0
  6616. ;
  6617. return 0;
  6618. }
  6619. _ACEOF
  6620. rm -f conftest.$ac_objext
  6621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6622. (eval $ac_compile) 2>conftest.er1
  6623. ac_status=$?
  6624. grep -v '^ *+' conftest.er1 >conftest.err
  6625. rm -f conftest.er1
  6626. cat conftest.err >&5
  6627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628. (exit $ac_status); } &&
  6629. { ac_try='test -z "$ac_c_werror_flag"
  6630. || test ! -s conftest.err'
  6631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6632. (eval $ac_try) 2>&5
  6633. ac_status=$?
  6634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6635. (exit $ac_status); }; } &&
  6636. { ac_try='test -s conftest.$ac_objext'
  6637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6638. (eval $ac_try) 2>&5
  6639. ac_status=$?
  6640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6641. (exit $ac_status); }; }; then
  6642. ac_hi=$ac_mid; break
  6643. else
  6644. echo "$as_me: failed program was:" >&5
  6645. sed 's/^/| /' conftest.$ac_ext >&5
  6646. ac_lo=`expr $ac_mid + 1`
  6647. if test $ac_lo -le $ac_mid; then
  6648. ac_lo= ac_hi=
  6649. break
  6650. fi
  6651. ac_mid=`expr 2 '*' $ac_mid + 1`
  6652. fi
  6653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6654. done
  6655. else
  6656. echo "$as_me: failed program was:" >&5
  6657. sed 's/^/| /' conftest.$ac_ext >&5
  6658. cat >conftest.$ac_ext <<_ACEOF
  6659. /* confdefs.h. */
  6660. _ACEOF
  6661. cat confdefs.h >>conftest.$ac_ext
  6662. cat >>conftest.$ac_ext <<_ACEOF
  6663. /* end confdefs.h. */
  6664. $ac_includes_default
  6665. int
  6666. main ()
  6667. {
  6668. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6669. test_array [0] = 0
  6670. ;
  6671. return 0;
  6672. }
  6673. _ACEOF
  6674. rm -f conftest.$ac_objext
  6675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6676. (eval $ac_compile) 2>conftest.er1
  6677. ac_status=$?
  6678. grep -v '^ *+' conftest.er1 >conftest.err
  6679. rm -f conftest.er1
  6680. cat conftest.err >&5
  6681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6682. (exit $ac_status); } &&
  6683. { ac_try='test -z "$ac_c_werror_flag"
  6684. || test ! -s conftest.err'
  6685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6686. (eval $ac_try) 2>&5
  6687. ac_status=$?
  6688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6689. (exit $ac_status); }; } &&
  6690. { ac_try='test -s conftest.$ac_objext'
  6691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6692. (eval $ac_try) 2>&5
  6693. ac_status=$?
  6694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); }; }; then
  6696. ac_hi=-1 ac_mid=-1
  6697. while :; do
  6698. cat >conftest.$ac_ext <<_ACEOF
  6699. /* confdefs.h. */
  6700. _ACEOF
  6701. cat confdefs.h >>conftest.$ac_ext
  6702. cat >>conftest.$ac_ext <<_ACEOF
  6703. /* end confdefs.h. */
  6704. $ac_includes_default
  6705. int
  6706. main ()
  6707. {
  6708. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6709. test_array [0] = 0
  6710. ;
  6711. return 0;
  6712. }
  6713. _ACEOF
  6714. rm -f conftest.$ac_objext
  6715. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6716. (eval $ac_compile) 2>conftest.er1
  6717. ac_status=$?
  6718. grep -v '^ *+' conftest.er1 >conftest.err
  6719. rm -f conftest.er1
  6720. cat conftest.err >&5
  6721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6722. (exit $ac_status); } &&
  6723. { ac_try='test -z "$ac_c_werror_flag"
  6724. || test ! -s conftest.err'
  6725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6726. (eval $ac_try) 2>&5
  6727. ac_status=$?
  6728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6729. (exit $ac_status); }; } &&
  6730. { ac_try='test -s conftest.$ac_objext'
  6731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6732. (eval $ac_try) 2>&5
  6733. ac_status=$?
  6734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6735. (exit $ac_status); }; }; then
  6736. ac_lo=$ac_mid; break
  6737. else
  6738. echo "$as_me: failed program was:" >&5
  6739. sed 's/^/| /' conftest.$ac_ext >&5
  6740. ac_hi=`expr '(' $ac_mid ')' - 1`
  6741. if test $ac_mid -le $ac_hi; then
  6742. ac_lo= ac_hi=
  6743. break
  6744. fi
  6745. ac_mid=`expr 2 '*' $ac_mid`
  6746. fi
  6747. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6748. done
  6749. else
  6750. echo "$as_me: failed program was:" >&5
  6751. sed 's/^/| /' conftest.$ac_ext >&5
  6752. ac_lo= ac_hi=
  6753. fi
  6754. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6755. fi
  6756. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6757. # Binary search between lo and hi bounds.
  6758. while test "x$ac_lo" != "x$ac_hi"; do
  6759. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6760. cat >conftest.$ac_ext <<_ACEOF
  6761. /* confdefs.h. */
  6762. _ACEOF
  6763. cat confdefs.h >>conftest.$ac_ext
  6764. cat >>conftest.$ac_ext <<_ACEOF
  6765. /* end confdefs.h. */
  6766. $ac_includes_default
  6767. int
  6768. main ()
  6769. {
  6770. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6771. test_array [0] = 0
  6772. ;
  6773. return 0;
  6774. }
  6775. _ACEOF
  6776. rm -f conftest.$ac_objext
  6777. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6778. (eval $ac_compile) 2>conftest.er1
  6779. ac_status=$?
  6780. grep -v '^ *+' conftest.er1 >conftest.err
  6781. rm -f conftest.er1
  6782. cat conftest.err >&5
  6783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6784. (exit $ac_status); } &&
  6785. { ac_try='test -z "$ac_c_werror_flag"
  6786. || test ! -s conftest.err'
  6787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6788. (eval $ac_try) 2>&5
  6789. ac_status=$?
  6790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6791. (exit $ac_status); }; } &&
  6792. { ac_try='test -s conftest.$ac_objext'
  6793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6794. (eval $ac_try) 2>&5
  6795. ac_status=$?
  6796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6797. (exit $ac_status); }; }; then
  6798. ac_hi=$ac_mid
  6799. else
  6800. echo "$as_me: failed program was:" >&5
  6801. sed 's/^/| /' conftest.$ac_ext >&5
  6802. ac_lo=`expr '(' $ac_mid ')' + 1`
  6803. fi
  6804. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6805. done
  6806. case $ac_lo in
  6807. ?*) ac_cv_sizeof_int=$ac_lo;;
  6808. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6809. See \`config.log' for more details." >&5
  6810. echo "$as_me: error: cannot compute sizeof (int), 77
  6811. See \`config.log' for more details." >&2;}
  6812. { (exit 1); exit 1; }; } ;;
  6813. esac
  6814. else
  6815. if test "$cross_compiling" = yes; then
  6816. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  6817. See \`config.log' for more details." >&5
  6818. echo "$as_me: error: cannot run test program while cross compiling
  6819. See \`config.log' for more details." >&2;}
  6820. { (exit 1); exit 1; }; }
  6821. else
  6822. cat >conftest.$ac_ext <<_ACEOF
  6823. /* confdefs.h. */
  6824. _ACEOF
  6825. cat confdefs.h >>conftest.$ac_ext
  6826. cat >>conftest.$ac_ext <<_ACEOF
  6827. /* end confdefs.h. */
  6828. $ac_includes_default
  6829. long longval () { return (long) (sizeof (int)); }
  6830. unsigned long ulongval () { return (long) (sizeof (int)); }
  6831. #include <stdio.h>
  6832. #include <stdlib.h>
  6833. int
  6834. main ()
  6835. {
  6836. FILE *f = fopen ("conftest.val", "w");
  6837. if (! f)
  6838. exit (1);
  6839. if (((long) (sizeof (int))) < 0)
  6840. {
  6841. long i = longval ();
  6842. if (i != ((long) (sizeof (int))))
  6843. exit (1);
  6844. fprintf (f, "%ld\n", i);
  6845. }
  6846. else
  6847. {
  6848. unsigned long i = ulongval ();
  6849. if (i != ((long) (sizeof (int))))
  6850. exit (1);
  6851. fprintf (f, "%lu\n", i);
  6852. }
  6853. exit (ferror (f) || fclose (f) != 0);
  6854. ;
  6855. return 0;
  6856. }
  6857. _ACEOF
  6858. rm -f conftest$ac_exeext
  6859. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6860. (eval $ac_link) 2>&5
  6861. ac_status=$?
  6862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6863. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6865. (eval $ac_try) 2>&5
  6866. ac_status=$?
  6867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6868. (exit $ac_status); }; }; then
  6869. ac_cv_sizeof_int=`cat conftest.val`
  6870. else
  6871. echo "$as_me: program exited with status $ac_status" >&5
  6872. echo "$as_me: failed program was:" >&5
  6873. sed 's/^/| /' conftest.$ac_ext >&5
  6874. ( exit $ac_status )
  6875. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6876. See \`config.log' for more details." >&5
  6877. echo "$as_me: error: cannot compute sizeof (int), 77
  6878. See \`config.log' for more details." >&2;}
  6879. { (exit 1); exit 1; }; }
  6880. fi
  6881. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6882. fi
  6883. fi
  6884. rm -f conftest.val
  6885. else
  6886. ac_cv_sizeof_int=0
  6887. fi
  6888. fi
  6889. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6890. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6891. cat >>confdefs.h <<_ACEOF
  6892. #define SIZEOF_INT $ac_cv_sizeof_int
  6893. _ACEOF
  6894. echo "$as_me:$LINENO: checking for short" >&5
  6895. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6896. if test "${ac_cv_type_short+set}" = set; then
  6897. echo $ECHO_N "(cached) $ECHO_C" >&6
  6898. else
  6899. cat >conftest.$ac_ext <<_ACEOF
  6900. /* confdefs.h. */
  6901. _ACEOF
  6902. cat confdefs.h >>conftest.$ac_ext
  6903. cat >>conftest.$ac_ext <<_ACEOF
  6904. /* end confdefs.h. */
  6905. $ac_includes_default
  6906. int
  6907. main ()
  6908. {
  6909. if ((short *) 0)
  6910. return 0;
  6911. if (sizeof (short))
  6912. return 0;
  6913. ;
  6914. return 0;
  6915. }
  6916. _ACEOF
  6917. rm -f conftest.$ac_objext
  6918. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6919. (eval $ac_compile) 2>conftest.er1
  6920. ac_status=$?
  6921. grep -v '^ *+' conftest.er1 >conftest.err
  6922. rm -f conftest.er1
  6923. cat conftest.err >&5
  6924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6925. (exit $ac_status); } &&
  6926. { ac_try='test -z "$ac_c_werror_flag"
  6927. || test ! -s conftest.err'
  6928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6929. (eval $ac_try) 2>&5
  6930. ac_status=$?
  6931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6932. (exit $ac_status); }; } &&
  6933. { ac_try='test -s conftest.$ac_objext'
  6934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6935. (eval $ac_try) 2>&5
  6936. ac_status=$?
  6937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6938. (exit $ac_status); }; }; then
  6939. ac_cv_type_short=yes
  6940. else
  6941. echo "$as_me: failed program was:" >&5
  6942. sed 's/^/| /' conftest.$ac_ext >&5
  6943. ac_cv_type_short=no
  6944. fi
  6945. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6946. fi
  6947. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6948. echo "${ECHO_T}$ac_cv_type_short" >&6
  6949. echo "$as_me:$LINENO: checking size of short" >&5
  6950. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6951. if test "${ac_cv_sizeof_short+set}" = set; then
  6952. echo $ECHO_N "(cached) $ECHO_C" >&6
  6953. else
  6954. if test "$ac_cv_type_short" = yes; then
  6955. # The cast to unsigned long works around a bug in the HP C Compiler
  6956. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6957. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6958. # This bug is HP SR number 8606223364.
  6959. if test "$cross_compiling" = yes; then
  6960. # Depending upon the size, compute the lo and hi bounds.
  6961. cat >conftest.$ac_ext <<_ACEOF
  6962. /* confdefs.h. */
  6963. _ACEOF
  6964. cat confdefs.h >>conftest.$ac_ext
  6965. cat >>conftest.$ac_ext <<_ACEOF
  6966. /* end confdefs.h. */
  6967. $ac_includes_default
  6968. int
  6969. main ()
  6970. {
  6971. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6972. test_array [0] = 0
  6973. ;
  6974. return 0;
  6975. }
  6976. _ACEOF
  6977. rm -f conftest.$ac_objext
  6978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6979. (eval $ac_compile) 2>conftest.er1
  6980. ac_status=$?
  6981. grep -v '^ *+' conftest.er1 >conftest.err
  6982. rm -f conftest.er1
  6983. cat conftest.err >&5
  6984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6985. (exit $ac_status); } &&
  6986. { ac_try='test -z "$ac_c_werror_flag"
  6987. || test ! -s conftest.err'
  6988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6989. (eval $ac_try) 2>&5
  6990. ac_status=$?
  6991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6992. (exit $ac_status); }; } &&
  6993. { ac_try='test -s conftest.$ac_objext'
  6994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6995. (eval $ac_try) 2>&5
  6996. ac_status=$?
  6997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6998. (exit $ac_status); }; }; then
  6999. ac_lo=0 ac_mid=0
  7000. while :; do
  7001. cat >conftest.$ac_ext <<_ACEOF
  7002. /* confdefs.h. */
  7003. _ACEOF
  7004. cat confdefs.h >>conftest.$ac_ext
  7005. cat >>conftest.$ac_ext <<_ACEOF
  7006. /* end confdefs.h. */
  7007. $ac_includes_default
  7008. int
  7009. main ()
  7010. {
  7011. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  7012. test_array [0] = 0
  7013. ;
  7014. return 0;
  7015. }
  7016. _ACEOF
  7017. rm -f conftest.$ac_objext
  7018. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7019. (eval $ac_compile) 2>conftest.er1
  7020. ac_status=$?
  7021. grep -v '^ *+' conftest.er1 >conftest.err
  7022. rm -f conftest.er1
  7023. cat conftest.err >&5
  7024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7025. (exit $ac_status); } &&
  7026. { ac_try='test -z "$ac_c_werror_flag"
  7027. || test ! -s conftest.err'
  7028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7029. (eval $ac_try) 2>&5
  7030. ac_status=$?
  7031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7032. (exit $ac_status); }; } &&
  7033. { ac_try='test -s conftest.$ac_objext'
  7034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7035. (eval $ac_try) 2>&5
  7036. ac_status=$?
  7037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7038. (exit $ac_status); }; }; then
  7039. ac_hi=$ac_mid; break
  7040. else
  7041. echo "$as_me: failed program was:" >&5
  7042. sed 's/^/| /' conftest.$ac_ext >&5
  7043. ac_lo=`expr $ac_mid + 1`
  7044. if test $ac_lo -le $ac_mid; then
  7045. ac_lo= ac_hi=
  7046. break
  7047. fi
  7048. ac_mid=`expr 2 '*' $ac_mid + 1`
  7049. fi
  7050. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7051. done
  7052. else
  7053. echo "$as_me: failed program was:" >&5
  7054. sed 's/^/| /' conftest.$ac_ext >&5
  7055. cat >conftest.$ac_ext <<_ACEOF
  7056. /* confdefs.h. */
  7057. _ACEOF
  7058. cat confdefs.h >>conftest.$ac_ext
  7059. cat >>conftest.$ac_ext <<_ACEOF
  7060. /* end confdefs.h. */
  7061. $ac_includes_default
  7062. int
  7063. main ()
  7064. {
  7065. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  7066. test_array [0] = 0
  7067. ;
  7068. return 0;
  7069. }
  7070. _ACEOF
  7071. rm -f conftest.$ac_objext
  7072. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7073. (eval $ac_compile) 2>conftest.er1
  7074. ac_status=$?
  7075. grep -v '^ *+' conftest.er1 >conftest.err
  7076. rm -f conftest.er1
  7077. cat conftest.err >&5
  7078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7079. (exit $ac_status); } &&
  7080. { ac_try='test -z "$ac_c_werror_flag"
  7081. || test ! -s conftest.err'
  7082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7083. (eval $ac_try) 2>&5
  7084. ac_status=$?
  7085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7086. (exit $ac_status); }; } &&
  7087. { ac_try='test -s conftest.$ac_objext'
  7088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7089. (eval $ac_try) 2>&5
  7090. ac_status=$?
  7091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7092. (exit $ac_status); }; }; then
  7093. ac_hi=-1 ac_mid=-1
  7094. while :; do
  7095. cat >conftest.$ac_ext <<_ACEOF
  7096. /* confdefs.h. */
  7097. _ACEOF
  7098. cat confdefs.h >>conftest.$ac_ext
  7099. cat >>conftest.$ac_ext <<_ACEOF
  7100. /* end confdefs.h. */
  7101. $ac_includes_default
  7102. int
  7103. main ()
  7104. {
  7105. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  7106. test_array [0] = 0
  7107. ;
  7108. return 0;
  7109. }
  7110. _ACEOF
  7111. rm -f conftest.$ac_objext
  7112. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7113. (eval $ac_compile) 2>conftest.er1
  7114. ac_status=$?
  7115. grep -v '^ *+' conftest.er1 >conftest.err
  7116. rm -f conftest.er1
  7117. cat conftest.err >&5
  7118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7119. (exit $ac_status); } &&
  7120. { ac_try='test -z "$ac_c_werror_flag"
  7121. || test ! -s conftest.err'
  7122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7123. (eval $ac_try) 2>&5
  7124. ac_status=$?
  7125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7126. (exit $ac_status); }; } &&
  7127. { ac_try='test -s conftest.$ac_objext'
  7128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7129. (eval $ac_try) 2>&5
  7130. ac_status=$?
  7131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7132. (exit $ac_status); }; }; then
  7133. ac_lo=$ac_mid; break
  7134. else
  7135. echo "$as_me: failed program was:" >&5
  7136. sed 's/^/| /' conftest.$ac_ext >&5
  7137. ac_hi=`expr '(' $ac_mid ')' - 1`
  7138. if test $ac_mid -le $ac_hi; then
  7139. ac_lo= ac_hi=
  7140. break
  7141. fi
  7142. ac_mid=`expr 2 '*' $ac_mid`
  7143. fi
  7144. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7145. done
  7146. else
  7147. echo "$as_me: failed program was:" >&5
  7148. sed 's/^/| /' conftest.$ac_ext >&5
  7149. ac_lo= ac_hi=
  7150. fi
  7151. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7152. fi
  7153. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7154. # Binary search between lo and hi bounds.
  7155. while test "x$ac_lo" != "x$ac_hi"; do
  7156. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7157. cat >conftest.$ac_ext <<_ACEOF
  7158. /* confdefs.h. */
  7159. _ACEOF
  7160. cat confdefs.h >>conftest.$ac_ext
  7161. cat >>conftest.$ac_ext <<_ACEOF
  7162. /* end confdefs.h. */
  7163. $ac_includes_default
  7164. int
  7165. main ()
  7166. {
  7167. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  7168. test_array [0] = 0
  7169. ;
  7170. return 0;
  7171. }
  7172. _ACEOF
  7173. rm -f conftest.$ac_objext
  7174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7175. (eval $ac_compile) 2>conftest.er1
  7176. ac_status=$?
  7177. grep -v '^ *+' conftest.er1 >conftest.err
  7178. rm -f conftest.er1
  7179. cat conftest.err >&5
  7180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7181. (exit $ac_status); } &&
  7182. { ac_try='test -z "$ac_c_werror_flag"
  7183. || test ! -s conftest.err'
  7184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7185. (eval $ac_try) 2>&5
  7186. ac_status=$?
  7187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7188. (exit $ac_status); }; } &&
  7189. { ac_try='test -s conftest.$ac_objext'
  7190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7191. (eval $ac_try) 2>&5
  7192. ac_status=$?
  7193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7194. (exit $ac_status); }; }; then
  7195. ac_hi=$ac_mid
  7196. else
  7197. echo "$as_me: failed program was:" >&5
  7198. sed 's/^/| /' conftest.$ac_ext >&5
  7199. ac_lo=`expr '(' $ac_mid ')' + 1`
  7200. fi
  7201. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7202. done
  7203. case $ac_lo in
  7204. ?*) ac_cv_sizeof_short=$ac_lo;;
  7205. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7206. See \`config.log' for more details." >&5
  7207. echo "$as_me: error: cannot compute sizeof (short), 77
  7208. See \`config.log' for more details." >&2;}
  7209. { (exit 1); exit 1; }; } ;;
  7210. esac
  7211. else
  7212. if test "$cross_compiling" = yes; then
  7213. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7214. See \`config.log' for more details." >&5
  7215. echo "$as_me: error: cannot run test program while cross compiling
  7216. See \`config.log' for more details." >&2;}
  7217. { (exit 1); exit 1; }; }
  7218. else
  7219. cat >conftest.$ac_ext <<_ACEOF
  7220. /* confdefs.h. */
  7221. _ACEOF
  7222. cat confdefs.h >>conftest.$ac_ext
  7223. cat >>conftest.$ac_ext <<_ACEOF
  7224. /* end confdefs.h. */
  7225. $ac_includes_default
  7226. long longval () { return (long) (sizeof (short)); }
  7227. unsigned long ulongval () { return (long) (sizeof (short)); }
  7228. #include <stdio.h>
  7229. #include <stdlib.h>
  7230. int
  7231. main ()
  7232. {
  7233. FILE *f = fopen ("conftest.val", "w");
  7234. if (! f)
  7235. exit (1);
  7236. if (((long) (sizeof (short))) < 0)
  7237. {
  7238. long i = longval ();
  7239. if (i != ((long) (sizeof (short))))
  7240. exit (1);
  7241. fprintf (f, "%ld\n", i);
  7242. }
  7243. else
  7244. {
  7245. unsigned long i = ulongval ();
  7246. if (i != ((long) (sizeof (short))))
  7247. exit (1);
  7248. fprintf (f, "%lu\n", i);
  7249. }
  7250. exit (ferror (f) || fclose (f) != 0);
  7251. ;
  7252. return 0;
  7253. }
  7254. _ACEOF
  7255. rm -f conftest$ac_exeext
  7256. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7257. (eval $ac_link) 2>&5
  7258. ac_status=$?
  7259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7260. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7262. (eval $ac_try) 2>&5
  7263. ac_status=$?
  7264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. (exit $ac_status); }; }; then
  7266. ac_cv_sizeof_short=`cat conftest.val`
  7267. else
  7268. echo "$as_me: program exited with status $ac_status" >&5
  7269. echo "$as_me: failed program was:" >&5
  7270. sed 's/^/| /' conftest.$ac_ext >&5
  7271. ( exit $ac_status )
  7272. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7273. See \`config.log' for more details." >&5
  7274. echo "$as_me: error: cannot compute sizeof (short), 77
  7275. See \`config.log' for more details." >&2;}
  7276. { (exit 1); exit 1; }; }
  7277. fi
  7278. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7279. fi
  7280. fi
  7281. rm -f conftest.val
  7282. else
  7283. ac_cv_sizeof_short=0
  7284. fi
  7285. fi
  7286. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7287. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7288. cat >>confdefs.h <<_ACEOF
  7289. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7290. _ACEOF
  7291. #checkpoint
  7292. cat >confcache <<\_ACEOF
  7293. # This file is a shell script that caches the results of configure
  7294. # tests run on this system so they can be shared between configure
  7295. # scripts and configure runs, see configure's option --config-cache.
  7296. # It is not useful on other systems. If it contains results you don't
  7297. # want to keep, you may remove or edit it.
  7298. #
  7299. # config.status only pays attention to the cache file if you give it
  7300. # the --recheck option to rerun configure.
  7301. #
  7302. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7303. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7304. # following values.
  7305. _ACEOF
  7306. # The following way of writing the cache mishandles newlines in values,
  7307. # but we know of no workaround that is simple, portable, and efficient.
  7308. # So, don't put newlines in cache variables' values.
  7309. # Ultrix sh set writes to stderr and can't be redirected directly,
  7310. # and sets the high bit in the cache file unless we assign to the vars.
  7311. {
  7312. (set) 2>&1 |
  7313. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7314. *ac_space=\ *)
  7315. # `set' does not quote correctly, so add quotes (double-quote
  7316. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7317. sed -n \
  7318. "s/'/'\\\\''/g;
  7319. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7320. ;;
  7321. *)
  7322. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7323. sed -n \
  7324. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7325. ;;
  7326. esac;
  7327. } |
  7328. sed '
  7329. t clear
  7330. : clear
  7331. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7332. t end
  7333. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7334. : end' >>confcache
  7335. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7336. if test -w $cache_file; then
  7337. test "x$cache_file" != "x/dev/null"
  7338. cat confcache >$cache_file
  7339. else
  7340. echo "not updating unwritable cache $cache_file"
  7341. fi
  7342. fi
  7343. rm -f confcache
  7344. echo "$as_me:$LINENO: checking for working volatile" >&5
  7345. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7346. if test "${ac_cv_c_volatile+set}" = set; then
  7347. echo $ECHO_N "(cached) $ECHO_C" >&6
  7348. else
  7349. cat >conftest.$ac_ext <<_ACEOF
  7350. /* confdefs.h. */
  7351. _ACEOF
  7352. cat confdefs.h >>conftest.$ac_ext
  7353. cat >>conftest.$ac_ext <<_ACEOF
  7354. /* end confdefs.h. */
  7355. int
  7356. main ()
  7357. {
  7358. volatile int x;
  7359. int * volatile y;
  7360. ;
  7361. return 0;
  7362. }
  7363. _ACEOF
  7364. rm -f conftest.$ac_objext
  7365. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7366. (eval $ac_compile) 2>conftest.er1
  7367. ac_status=$?
  7368. grep -v '^ *+' conftest.er1 >conftest.err
  7369. rm -f conftest.er1
  7370. cat conftest.err >&5
  7371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7372. (exit $ac_status); } &&
  7373. { ac_try='test -z "$ac_c_werror_flag"
  7374. || test ! -s conftest.err'
  7375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7376. (eval $ac_try) 2>&5
  7377. ac_status=$?
  7378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7379. (exit $ac_status); }; } &&
  7380. { ac_try='test -s conftest.$ac_objext'
  7381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7382. (eval $ac_try) 2>&5
  7383. ac_status=$?
  7384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7385. (exit $ac_status); }; }; then
  7386. ac_cv_c_volatile=yes
  7387. else
  7388. echo "$as_me: failed program was:" >&5
  7389. sed 's/^/| /' conftest.$ac_ext >&5
  7390. ac_cv_c_volatile=no
  7391. fi
  7392. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7393. fi
  7394. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7395. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7396. if test $ac_cv_c_volatile = no; then
  7397. cat >>confdefs.h <<\_ACEOF
  7398. #define volatile
  7399. _ACEOF
  7400. fi
  7401. if test $ac_cv_c_compiler_gnu = yes; then
  7402. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7403. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7404. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7405. echo $ECHO_N "(cached) $ECHO_C" >&6
  7406. else
  7407. ac_pattern="Autoconf.*'x'"
  7408. cat >conftest.$ac_ext <<_ACEOF
  7409. /* confdefs.h. */
  7410. _ACEOF
  7411. cat confdefs.h >>conftest.$ac_ext
  7412. cat >>conftest.$ac_ext <<_ACEOF
  7413. /* end confdefs.h. */
  7414. #include <sgtty.h>
  7415. Autoconf TIOCGETP
  7416. _ACEOF
  7417. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7418. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7419. ac_cv_prog_gcc_traditional=yes
  7420. else
  7421. ac_cv_prog_gcc_traditional=no
  7422. fi
  7423. rm -f conftest*
  7424. if test $ac_cv_prog_gcc_traditional = no; then
  7425. cat >conftest.$ac_ext <<_ACEOF
  7426. /* confdefs.h. */
  7427. _ACEOF
  7428. cat confdefs.h >>conftest.$ac_ext
  7429. cat >>conftest.$ac_ext <<_ACEOF
  7430. /* end confdefs.h. */
  7431. #include <termio.h>
  7432. Autoconf TCGETA
  7433. _ACEOF
  7434. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7435. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7436. ac_cv_prog_gcc_traditional=yes
  7437. fi
  7438. rm -f conftest*
  7439. fi
  7440. fi
  7441. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7442. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7443. if test $ac_cv_prog_gcc_traditional = yes; then
  7444. CC="$CC -traditional"
  7445. fi
  7446. fi
  7447. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7448. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7449. if test "${ac_cv_struct_tm+set}" = set; then
  7450. echo $ECHO_N "(cached) $ECHO_C" >&6
  7451. else
  7452. cat >conftest.$ac_ext <<_ACEOF
  7453. /* confdefs.h. */
  7454. _ACEOF
  7455. cat confdefs.h >>conftest.$ac_ext
  7456. cat >>conftest.$ac_ext <<_ACEOF
  7457. /* end confdefs.h. */
  7458. #include <sys/types.h>
  7459. #include <time.h>
  7460. int
  7461. main ()
  7462. {
  7463. struct tm *tp; tp->tm_sec;
  7464. ;
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. rm -f conftest.$ac_objext
  7469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7470. (eval $ac_compile) 2>conftest.er1
  7471. ac_status=$?
  7472. grep -v '^ *+' conftest.er1 >conftest.err
  7473. rm -f conftest.er1
  7474. cat conftest.err >&5
  7475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. (exit $ac_status); } &&
  7477. { ac_try='test -z "$ac_c_werror_flag"
  7478. || test ! -s conftest.err'
  7479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7480. (eval $ac_try) 2>&5
  7481. ac_status=$?
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. (exit $ac_status); }; } &&
  7484. { ac_try='test -s conftest.$ac_objext'
  7485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7486. (eval $ac_try) 2>&5
  7487. ac_status=$?
  7488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7489. (exit $ac_status); }; }; then
  7490. ac_cv_struct_tm=time.h
  7491. else
  7492. echo "$as_me: failed program was:" >&5
  7493. sed 's/^/| /' conftest.$ac_ext >&5
  7494. ac_cv_struct_tm=sys/time.h
  7495. fi
  7496. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7497. fi
  7498. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7499. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7500. if test $ac_cv_struct_tm = sys/time.h; then
  7501. cat >>confdefs.h <<\_ACEOF
  7502. #define TM_IN_SYS_TIME 1
  7503. _ACEOF
  7504. fi
  7505. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7506. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7507. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7508. echo $ECHO_N "(cached) $ECHO_C" >&6
  7509. else
  7510. cat >conftest.$ac_ext <<_ACEOF
  7511. /* confdefs.h. */
  7512. _ACEOF
  7513. cat confdefs.h >>conftest.$ac_ext
  7514. cat >>conftest.$ac_ext <<_ACEOF
  7515. /* end confdefs.h. */
  7516. #include <sys/types.h>
  7517. #include <$ac_cv_struct_tm>
  7518. int
  7519. main ()
  7520. {
  7521. static struct tm ac_aggr;
  7522. if (ac_aggr.tm_zone)
  7523. return 0;
  7524. ;
  7525. return 0;
  7526. }
  7527. _ACEOF
  7528. rm -f conftest.$ac_objext
  7529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7530. (eval $ac_compile) 2>conftest.er1
  7531. ac_status=$?
  7532. grep -v '^ *+' conftest.er1 >conftest.err
  7533. rm -f conftest.er1
  7534. cat conftest.err >&5
  7535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7536. (exit $ac_status); } &&
  7537. { ac_try='test -z "$ac_c_werror_flag"
  7538. || test ! -s conftest.err'
  7539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7540. (eval $ac_try) 2>&5
  7541. ac_status=$?
  7542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543. (exit $ac_status); }; } &&
  7544. { ac_try='test -s conftest.$ac_objext'
  7545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7546. (eval $ac_try) 2>&5
  7547. ac_status=$?
  7548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7549. (exit $ac_status); }; }; then
  7550. ac_cv_member_struct_tm_tm_zone=yes
  7551. else
  7552. echo "$as_me: failed program was:" >&5
  7553. sed 's/^/| /' conftest.$ac_ext >&5
  7554. cat >conftest.$ac_ext <<_ACEOF
  7555. /* confdefs.h. */
  7556. _ACEOF
  7557. cat confdefs.h >>conftest.$ac_ext
  7558. cat >>conftest.$ac_ext <<_ACEOF
  7559. /* end confdefs.h. */
  7560. #include <sys/types.h>
  7561. #include <$ac_cv_struct_tm>
  7562. int
  7563. main ()
  7564. {
  7565. static struct tm ac_aggr;
  7566. if (sizeof ac_aggr.tm_zone)
  7567. return 0;
  7568. ;
  7569. return 0;
  7570. }
  7571. _ACEOF
  7572. rm -f conftest.$ac_objext
  7573. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7574. (eval $ac_compile) 2>conftest.er1
  7575. ac_status=$?
  7576. grep -v '^ *+' conftest.er1 >conftest.err
  7577. rm -f conftest.er1
  7578. cat conftest.err >&5
  7579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7580. (exit $ac_status); } &&
  7581. { ac_try='test -z "$ac_c_werror_flag"
  7582. || test ! -s conftest.err'
  7583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7584. (eval $ac_try) 2>&5
  7585. ac_status=$?
  7586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7587. (exit $ac_status); }; } &&
  7588. { ac_try='test -s conftest.$ac_objext'
  7589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7590. (eval $ac_try) 2>&5
  7591. ac_status=$?
  7592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7593. (exit $ac_status); }; }; then
  7594. ac_cv_member_struct_tm_tm_zone=yes
  7595. else
  7596. echo "$as_me: failed program was:" >&5
  7597. sed 's/^/| /' conftest.$ac_ext >&5
  7598. ac_cv_member_struct_tm_tm_zone=no
  7599. fi
  7600. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7601. fi
  7602. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7603. fi
  7604. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7605. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7606. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7607. cat >>confdefs.h <<_ACEOF
  7608. #define HAVE_STRUCT_TM_TM_ZONE 1
  7609. _ACEOF
  7610. fi
  7611. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7612. cat >>confdefs.h <<\_ACEOF
  7613. #define HAVE_TM_ZONE 1
  7614. _ACEOF
  7615. else
  7616. echo "$as_me:$LINENO: checking for tzname" >&5
  7617. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7618. if test "${ac_cv_var_tzname+set}" = set; then
  7619. echo $ECHO_N "(cached) $ECHO_C" >&6
  7620. else
  7621. cat >conftest.$ac_ext <<_ACEOF
  7622. /* confdefs.h. */
  7623. _ACEOF
  7624. cat confdefs.h >>conftest.$ac_ext
  7625. cat >>conftest.$ac_ext <<_ACEOF
  7626. /* end confdefs.h. */
  7627. #include <time.h>
  7628. #ifndef tzname /* For SGI. */
  7629. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7630. #endif
  7631. int
  7632. main ()
  7633. {
  7634. atoi(*tzname);
  7635. ;
  7636. return 0;
  7637. }
  7638. _ACEOF
  7639. rm -f conftest.$ac_objext conftest$ac_exeext
  7640. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7641. (eval $ac_link) 2>conftest.er1
  7642. ac_status=$?
  7643. grep -v '^ *+' conftest.er1 >conftest.err
  7644. rm -f conftest.er1
  7645. cat conftest.err >&5
  7646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7647. (exit $ac_status); } &&
  7648. { ac_try='test -z "$ac_c_werror_flag"
  7649. || test ! -s conftest.err'
  7650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7651. (eval $ac_try) 2>&5
  7652. ac_status=$?
  7653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7654. (exit $ac_status); }; } &&
  7655. { ac_try='test -s conftest$ac_exeext'
  7656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7657. (eval $ac_try) 2>&5
  7658. ac_status=$?
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); }; }; then
  7661. ac_cv_var_tzname=yes
  7662. else
  7663. echo "$as_me: failed program was:" >&5
  7664. sed 's/^/| /' conftest.$ac_ext >&5
  7665. ac_cv_var_tzname=no
  7666. fi
  7667. rm -f conftest.err conftest.$ac_objext \
  7668. conftest$ac_exeext conftest.$ac_ext
  7669. fi
  7670. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7671. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7672. if test $ac_cv_var_tzname = yes; then
  7673. cat >>confdefs.h <<\_ACEOF
  7674. #define HAVE_TZNAME 1
  7675. _ACEOF
  7676. fi
  7677. fi
  7678. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7679. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7680. if test "${ac_cv_struct_tm+set}" = set; then
  7681. echo $ECHO_N "(cached) $ECHO_C" >&6
  7682. else
  7683. cat >conftest.$ac_ext <<_ACEOF
  7684. /* confdefs.h. */
  7685. _ACEOF
  7686. cat confdefs.h >>conftest.$ac_ext
  7687. cat >>conftest.$ac_ext <<_ACEOF
  7688. /* end confdefs.h. */
  7689. #include <sys/types.h>
  7690. #include <time.h>
  7691. int
  7692. main ()
  7693. {
  7694. struct tm *tp; tp->tm_sec;
  7695. ;
  7696. return 0;
  7697. }
  7698. _ACEOF
  7699. rm -f conftest.$ac_objext
  7700. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7701. (eval $ac_compile) 2>conftest.er1
  7702. ac_status=$?
  7703. grep -v '^ *+' conftest.er1 >conftest.err
  7704. rm -f conftest.er1
  7705. cat conftest.err >&5
  7706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7707. (exit $ac_status); } &&
  7708. { ac_try='test -z "$ac_c_werror_flag"
  7709. || test ! -s conftest.err'
  7710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7711. (eval $ac_try) 2>&5
  7712. ac_status=$?
  7713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7714. (exit $ac_status); }; } &&
  7715. { ac_try='test -s conftest.$ac_objext'
  7716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7717. (eval $ac_try) 2>&5
  7718. ac_status=$?
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); }; }; then
  7721. ac_cv_struct_tm=time.h
  7722. else
  7723. echo "$as_me: failed program was:" >&5
  7724. sed 's/^/| /' conftest.$ac_ext >&5
  7725. ac_cv_struct_tm=sys/time.h
  7726. fi
  7727. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7728. fi
  7729. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7730. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7731. if test $ac_cv_struct_tm = sys/time.h; then
  7732. cat >>confdefs.h <<\_ACEOF
  7733. #define TM_IN_SYS_TIME 1
  7734. _ACEOF
  7735. fi
  7736. #checkpoint
  7737. cat >confcache <<\_ACEOF
  7738. # This file is a shell script that caches the results of configure
  7739. # tests run on this system so they can be shared between configure
  7740. # scripts and configure runs, see configure's option --config-cache.
  7741. # It is not useful on other systems. If it contains results you don't
  7742. # want to keep, you may remove or edit it.
  7743. #
  7744. # config.status only pays attention to the cache file if you give it
  7745. # the --recheck option to rerun configure.
  7746. #
  7747. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7748. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7749. # following values.
  7750. _ACEOF
  7751. # The following way of writing the cache mishandles newlines in values,
  7752. # but we know of no workaround that is simple, portable, and efficient.
  7753. # So, don't put newlines in cache variables' values.
  7754. # Ultrix sh set writes to stderr and can't be redirected directly,
  7755. # and sets the high bit in the cache file unless we assign to the vars.
  7756. {
  7757. (set) 2>&1 |
  7758. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7759. *ac_space=\ *)
  7760. # `set' does not quote correctly, so add quotes (double-quote
  7761. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7762. sed -n \
  7763. "s/'/'\\\\''/g;
  7764. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7765. ;;
  7766. *)
  7767. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7768. sed -n \
  7769. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7770. ;;
  7771. esac;
  7772. } |
  7773. sed '
  7774. t clear
  7775. : clear
  7776. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7777. t end
  7778. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7779. : end' >>confcache
  7780. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7781. if test -w $cache_file; then
  7782. test "x$cache_file" != "x/dev/null"
  7783. cat confcache >$cache_file
  7784. else
  7785. echo "not updating unwritable cache $cache_file"
  7786. fi
  7787. fi
  7788. rm -f confcache
  7789. # Checks for library functions
  7790. for ac_header in unistd.h vfork.h
  7791. do
  7792. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7793. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7794. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7795. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7796. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7797. echo $ECHO_N "(cached) $ECHO_C" >&6
  7798. fi
  7799. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7800. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7801. else
  7802. # Is the header compilable?
  7803. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7804. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7805. cat >conftest.$ac_ext <<_ACEOF
  7806. /* confdefs.h. */
  7807. _ACEOF
  7808. cat confdefs.h >>conftest.$ac_ext
  7809. cat >>conftest.$ac_ext <<_ACEOF
  7810. /* end confdefs.h. */
  7811. $ac_includes_default
  7812. #include <$ac_header>
  7813. _ACEOF
  7814. rm -f conftest.$ac_objext
  7815. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7816. (eval $ac_compile) 2>conftest.er1
  7817. ac_status=$?
  7818. grep -v '^ *+' conftest.er1 >conftest.err
  7819. rm -f conftest.er1
  7820. cat conftest.err >&5
  7821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7822. (exit $ac_status); } &&
  7823. { ac_try='test -z "$ac_c_werror_flag"
  7824. || test ! -s conftest.err'
  7825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7826. (eval $ac_try) 2>&5
  7827. ac_status=$?
  7828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7829. (exit $ac_status); }; } &&
  7830. { ac_try='test -s conftest.$ac_objext'
  7831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7832. (eval $ac_try) 2>&5
  7833. ac_status=$?
  7834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7835. (exit $ac_status); }; }; then
  7836. ac_header_compiler=yes
  7837. else
  7838. echo "$as_me: failed program was:" >&5
  7839. sed 's/^/| /' conftest.$ac_ext >&5
  7840. ac_header_compiler=no
  7841. fi
  7842. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7843. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7844. echo "${ECHO_T}$ac_header_compiler" >&6
  7845. # Is the header present?
  7846. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7847. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7848. cat >conftest.$ac_ext <<_ACEOF
  7849. /* confdefs.h. */
  7850. _ACEOF
  7851. cat confdefs.h >>conftest.$ac_ext
  7852. cat >>conftest.$ac_ext <<_ACEOF
  7853. /* end confdefs.h. */
  7854. #include <$ac_header>
  7855. _ACEOF
  7856. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7857. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7858. ac_status=$?
  7859. grep -v '^ *+' conftest.er1 >conftest.err
  7860. rm -f conftest.er1
  7861. cat conftest.err >&5
  7862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7863. (exit $ac_status); } >/dev/null; then
  7864. if test -s conftest.err; then
  7865. ac_cpp_err=$ac_c_preproc_warn_flag
  7866. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7867. else
  7868. ac_cpp_err=
  7869. fi
  7870. else
  7871. ac_cpp_err=yes
  7872. fi
  7873. if test -z "$ac_cpp_err"; then
  7874. ac_header_preproc=yes
  7875. else
  7876. echo "$as_me: failed program was:" >&5
  7877. sed 's/^/| /' conftest.$ac_ext >&5
  7878. ac_header_preproc=no
  7879. fi
  7880. rm -f conftest.err conftest.$ac_ext
  7881. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7882. echo "${ECHO_T}$ac_header_preproc" >&6
  7883. # So? What about this header?
  7884. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7885. yes:no: )
  7886. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7887. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7888. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7889. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7890. ac_header_preproc=yes
  7891. ;;
  7892. no:yes:* )
  7893. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7894. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7895. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7896. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7897. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7898. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7899. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7900. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7901. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7902. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7903. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7904. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7905. (
  7906. cat <<\_ASBOX
  7907. ## ------------------------------------------ ##
  7908. ## Report this to the AC_PACKAGE_NAME lists. ##
  7909. ## ------------------------------------------ ##
  7910. _ASBOX
  7911. ) |
  7912. sed "s/^/$as_me: WARNING: /" >&2
  7913. ;;
  7914. esac
  7915. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7916. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7917. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7918. echo $ECHO_N "(cached) $ECHO_C" >&6
  7919. else
  7920. eval "$as_ac_Header=\$ac_header_preproc"
  7921. fi
  7922. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7923. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7924. fi
  7925. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7926. cat >>confdefs.h <<_ACEOF
  7927. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7928. _ACEOF
  7929. fi
  7930. done
  7931. for ac_func in fork vfork
  7932. do
  7933. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7934. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7935. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7936. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7937. echo $ECHO_N "(cached) $ECHO_C" >&6
  7938. else
  7939. cat >conftest.$ac_ext <<_ACEOF
  7940. /* confdefs.h. */
  7941. _ACEOF
  7942. cat confdefs.h >>conftest.$ac_ext
  7943. cat >>conftest.$ac_ext <<_ACEOF
  7944. /* end confdefs.h. */
  7945. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7946. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7947. #define $ac_func innocuous_$ac_func
  7948. /* System header to define __stub macros and hopefully few prototypes,
  7949. which can conflict with char $ac_func (); below.
  7950. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7951. <limits.h> exists even on freestanding compilers. */
  7952. #ifdef __STDC__
  7953. # include <limits.h>
  7954. #else
  7955. # include <assert.h>
  7956. #endif
  7957. #undef $ac_func
  7958. /* Override any gcc2 internal prototype to avoid an error. */
  7959. #ifdef __cplusplus
  7960. extern "C"
  7961. {
  7962. #endif
  7963. /* We use char because int might match the return type of a gcc2
  7964. builtin and then its argument prototype would still apply. */
  7965. char $ac_func ();
  7966. /* The GNU C library defines this for functions which it implements
  7967. to always fail with ENOSYS. Some functions are actually named
  7968. something starting with __ and the normal name is an alias. */
  7969. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7970. choke me
  7971. #else
  7972. char (*f) () = $ac_func;
  7973. #endif
  7974. #ifdef __cplusplus
  7975. }
  7976. #endif
  7977. int
  7978. main ()
  7979. {
  7980. return f != $ac_func;
  7981. ;
  7982. return 0;
  7983. }
  7984. _ACEOF
  7985. rm -f conftest.$ac_objext conftest$ac_exeext
  7986. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7987. (eval $ac_link) 2>conftest.er1
  7988. ac_status=$?
  7989. grep -v '^ *+' conftest.er1 >conftest.err
  7990. rm -f conftest.er1
  7991. cat conftest.err >&5
  7992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7993. (exit $ac_status); } &&
  7994. { ac_try='test -z "$ac_c_werror_flag"
  7995. || test ! -s conftest.err'
  7996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7997. (eval $ac_try) 2>&5
  7998. ac_status=$?
  7999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8000. (exit $ac_status); }; } &&
  8001. { ac_try='test -s conftest$ac_exeext'
  8002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8003. (eval $ac_try) 2>&5
  8004. ac_status=$?
  8005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. (exit $ac_status); }; }; then
  8007. eval "$as_ac_var=yes"
  8008. else
  8009. echo "$as_me: failed program was:" >&5
  8010. sed 's/^/| /' conftest.$ac_ext >&5
  8011. eval "$as_ac_var=no"
  8012. fi
  8013. rm -f conftest.err conftest.$ac_objext \
  8014. conftest$ac_exeext conftest.$ac_ext
  8015. fi
  8016. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8017. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8018. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8019. cat >>confdefs.h <<_ACEOF
  8020. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8021. _ACEOF
  8022. fi
  8023. done
  8024. if test "x$ac_cv_func_fork" = xyes; then
  8025. echo "$as_me:$LINENO: checking for working fork" >&5
  8026. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8027. if test "${ac_cv_func_fork_works+set}" = set; then
  8028. echo $ECHO_N "(cached) $ECHO_C" >&6
  8029. else
  8030. if test "$cross_compiling" = yes; then
  8031. ac_cv_func_fork_works=cross
  8032. else
  8033. cat >conftest.$ac_ext <<_ACEOF
  8034. /* By Ruediger Kuhlmann. */
  8035. #include <sys/types.h>
  8036. #if HAVE_UNISTD_H
  8037. # include <unistd.h>
  8038. #endif
  8039. /* Some systems only have a dummy stub for fork() */
  8040. int main ()
  8041. {
  8042. if (fork() < 0)
  8043. exit (1);
  8044. exit (0);
  8045. }
  8046. _ACEOF
  8047. rm -f conftest$ac_exeext
  8048. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8049. (eval $ac_link) 2>&5
  8050. ac_status=$?
  8051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8052. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8054. (eval $ac_try) 2>&5
  8055. ac_status=$?
  8056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8057. (exit $ac_status); }; }; then
  8058. ac_cv_func_fork_works=yes
  8059. else
  8060. echo "$as_me: program exited with status $ac_status" >&5
  8061. echo "$as_me: failed program was:" >&5
  8062. sed 's/^/| /' conftest.$ac_ext >&5
  8063. ( exit $ac_status )
  8064. ac_cv_func_fork_works=no
  8065. fi
  8066. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8067. fi
  8068. fi
  8069. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8070. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8071. else
  8072. ac_cv_func_fork_works=$ac_cv_func_fork
  8073. fi
  8074. if test "x$ac_cv_func_fork_works" = xcross; then
  8075. case $host in
  8076. *-*-amigaos* | *-*-msdosdjgpp*)
  8077. # Override, as these systems have only a dummy fork() stub
  8078. ac_cv_func_fork_works=no
  8079. ;;
  8080. *)
  8081. ac_cv_func_fork_works=yes
  8082. ;;
  8083. esac
  8084. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8085. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8086. fi
  8087. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8088. if test "x$ac_cv_func_vfork" = xyes; then
  8089. echo "$as_me:$LINENO: checking for working vfork" >&5
  8090. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8091. if test "${ac_cv_func_vfork_works+set}" = set; then
  8092. echo $ECHO_N "(cached) $ECHO_C" >&6
  8093. else
  8094. if test "$cross_compiling" = yes; then
  8095. ac_cv_func_vfork_works=cross
  8096. else
  8097. cat >conftest.$ac_ext <<_ACEOF
  8098. /* confdefs.h. */
  8099. _ACEOF
  8100. cat confdefs.h >>conftest.$ac_ext
  8101. cat >>conftest.$ac_ext <<_ACEOF
  8102. /* end confdefs.h. */
  8103. /* Thanks to Paul Eggert for this test. */
  8104. #include <stdio.h>
  8105. #include <stdlib.h>
  8106. #include <sys/types.h>
  8107. #include <sys/stat.h>
  8108. #include <sys/wait.h>
  8109. #if HAVE_UNISTD_H
  8110. # include <unistd.h>
  8111. #endif
  8112. #if HAVE_VFORK_H
  8113. # include <vfork.h>
  8114. #endif
  8115. /* On some sparc systems, changes by the child to local and incoming
  8116. argument registers are propagated back to the parent. The compiler
  8117. is told about this with #include <vfork.h>, but some compilers
  8118. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8119. static variable whose address is put into a register that is
  8120. clobbered by the vfork. */
  8121. static void
  8122. #ifdef __cplusplus
  8123. sparc_address_test (int arg)
  8124. # else
  8125. sparc_address_test (arg) int arg;
  8126. #endif
  8127. {
  8128. static pid_t child;
  8129. if (!child) {
  8130. child = vfork ();
  8131. if (child < 0) {
  8132. perror ("vfork");
  8133. _exit(2);
  8134. }
  8135. if (!child) {
  8136. arg = getpid();
  8137. write(-1, "", 0);
  8138. _exit (arg);
  8139. }
  8140. }
  8141. }
  8142. int
  8143. main ()
  8144. {
  8145. pid_t parent = getpid ();
  8146. pid_t child;
  8147. sparc_address_test (0);
  8148. child = vfork ();
  8149. if (child == 0) {
  8150. /* Here is another test for sparc vfork register problems. This
  8151. test uses lots of local variables, at least as many local
  8152. variables as main has allocated so far including compiler
  8153. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8154. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8155. reuse the register of parent for one of the local variables,
  8156. since it will think that parent can't possibly be used any more
  8157. in this routine. Assigning to the local variable will thus
  8158. munge parent in the parent process. */
  8159. pid_t
  8160. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8161. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8162. /* Convince the compiler that p..p7 are live; otherwise, it might
  8163. use the same hardware register for all 8 local variables. */
  8164. if (p != p1 || p != p2 || p != p3 || p != p4
  8165. || p != p5 || p != p6 || p != p7)
  8166. _exit(1);
  8167. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8168. from child file descriptors. If the child closes a descriptor
  8169. before it execs or exits, this munges the parent's descriptor
  8170. as well. Test for this by closing stdout in the child. */
  8171. _exit(close(fileno(stdout)) != 0);
  8172. } else {
  8173. int status;
  8174. struct stat st;
  8175. while (wait(&status) != child)
  8176. ;
  8177. exit(
  8178. /* Was there some problem with vforking? */
  8179. child < 0
  8180. /* Did the child fail? (This shouldn't happen.) */
  8181. || status
  8182. /* Did the vfork/compiler bug occur? */
  8183. || parent != getpid()
  8184. /* Did the file descriptor bug occur? */
  8185. || fstat(fileno(stdout), &st) != 0
  8186. );
  8187. }
  8188. }
  8189. _ACEOF
  8190. rm -f conftest$ac_exeext
  8191. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8192. (eval $ac_link) 2>&5
  8193. ac_status=$?
  8194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8195. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8197. (eval $ac_try) 2>&5
  8198. ac_status=$?
  8199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8200. (exit $ac_status); }; }; then
  8201. ac_cv_func_vfork_works=yes
  8202. else
  8203. echo "$as_me: program exited with status $ac_status" >&5
  8204. echo "$as_me: failed program was:" >&5
  8205. sed 's/^/| /' conftest.$ac_ext >&5
  8206. ( exit $ac_status )
  8207. ac_cv_func_vfork_works=no
  8208. fi
  8209. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8210. fi
  8211. fi
  8212. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8213. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8214. fi;
  8215. if test "x$ac_cv_func_fork_works" = xcross; then
  8216. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8217. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8218. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8219. fi
  8220. if test "x$ac_cv_func_vfork_works" = xyes; then
  8221. cat >>confdefs.h <<\_ACEOF
  8222. #define HAVE_WORKING_VFORK 1
  8223. _ACEOF
  8224. else
  8225. cat >>confdefs.h <<\_ACEOF
  8226. #define vfork fork
  8227. _ACEOF
  8228. fi
  8229. if test "x$ac_cv_func_fork_works" = xyes; then
  8230. cat >>confdefs.h <<\_ACEOF
  8231. #define HAVE_WORKING_FORK 1
  8232. _ACEOF
  8233. fi
  8234. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8235. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8236. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8237. echo $ECHO_N "(cached) $ECHO_C" >&6
  8238. else
  8239. rm -f conftest.sym conftest.file
  8240. echo >conftest.file
  8241. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8242. if test "$cross_compiling" = yes; then
  8243. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8244. else
  8245. cat >conftest.$ac_ext <<_ACEOF
  8246. /* confdefs.h. */
  8247. _ACEOF
  8248. cat confdefs.h >>conftest.$ac_ext
  8249. cat >>conftest.$ac_ext <<_ACEOF
  8250. /* end confdefs.h. */
  8251. $ac_includes_default
  8252. int
  8253. main ()
  8254. {
  8255. struct stat sbuf;
  8256. /* Linux will dereference the symlink and fail.
  8257. That is better in the sense that it means we will not
  8258. have to compile and use the lstat wrapper. */
  8259. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8260. ;
  8261. return 0;
  8262. }
  8263. _ACEOF
  8264. rm -f conftest$ac_exeext
  8265. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8266. (eval $ac_link) 2>&5
  8267. ac_status=$?
  8268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8269. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8271. (eval $ac_try) 2>&5
  8272. ac_status=$?
  8273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8274. (exit $ac_status); }; }; then
  8275. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8276. else
  8277. echo "$as_me: program exited with status $ac_status" >&5
  8278. echo "$as_me: failed program was:" >&5
  8279. sed 's/^/| /' conftest.$ac_ext >&5
  8280. ( exit $ac_status )
  8281. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8282. fi
  8283. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8284. fi
  8285. else
  8286. # If the `ln -s' command failed, then we probably don't even
  8287. # have an lstat function.
  8288. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8289. fi
  8290. rm -f conftest.sym conftest.file
  8291. fi
  8292. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8293. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8294. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8295. cat >>confdefs.h <<_ACEOF
  8296. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8297. _ACEOF
  8298. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8299. case $LIBOBJS in
  8300. "lstat.$ac_objext" | \
  8301. *" lstat.$ac_objext" | \
  8302. "lstat.$ac_objext "* | \
  8303. *" lstat.$ac_objext "* ) ;;
  8304. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8305. esac
  8306. fi
  8307. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8308. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8309. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8310. echo $ECHO_N "(cached) $ECHO_C" >&6
  8311. else
  8312. if test "$cross_compiling" = yes; then
  8313. ac_cv_func_lstat_empty_string_bug=yes
  8314. else
  8315. cat >conftest.$ac_ext <<_ACEOF
  8316. /* confdefs.h. */
  8317. _ACEOF
  8318. cat confdefs.h >>conftest.$ac_ext
  8319. cat >>conftest.$ac_ext <<_ACEOF
  8320. /* end confdefs.h. */
  8321. $ac_includes_default
  8322. int
  8323. main ()
  8324. {
  8325. struct stat sbuf;
  8326. exit (lstat ("", &sbuf) ? 1 : 0);
  8327. ;
  8328. return 0;
  8329. }
  8330. _ACEOF
  8331. rm -f conftest$ac_exeext
  8332. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8333. (eval $ac_link) 2>&5
  8334. ac_status=$?
  8335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8336. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8338. (eval $ac_try) 2>&5
  8339. ac_status=$?
  8340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8341. (exit $ac_status); }; }; then
  8342. ac_cv_func_lstat_empty_string_bug=yes
  8343. else
  8344. echo "$as_me: program exited with status $ac_status" >&5
  8345. echo "$as_me: failed program was:" >&5
  8346. sed 's/^/| /' conftest.$ac_ext >&5
  8347. ( exit $ac_status )
  8348. ac_cv_func_lstat_empty_string_bug=no
  8349. fi
  8350. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8351. fi
  8352. fi
  8353. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8354. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8355. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8356. case $LIBOBJS in
  8357. "lstat.$ac_objext" | \
  8358. *" lstat.$ac_objext" | \
  8359. "lstat.$ac_objext "* | \
  8360. *" lstat.$ac_objext "* ) ;;
  8361. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8362. esac
  8363. cat >>confdefs.h <<_ACEOF
  8364. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8365. _ACEOF
  8366. fi
  8367. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8368. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8369. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8370. echo $ECHO_N "(cached) $ECHO_C" >&6
  8371. else
  8372. rm -f conftest.sym conftest.file
  8373. echo >conftest.file
  8374. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8375. if test "$cross_compiling" = yes; then
  8376. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8377. else
  8378. cat >conftest.$ac_ext <<_ACEOF
  8379. /* confdefs.h. */
  8380. _ACEOF
  8381. cat confdefs.h >>conftest.$ac_ext
  8382. cat >>conftest.$ac_ext <<_ACEOF
  8383. /* end confdefs.h. */
  8384. $ac_includes_default
  8385. int
  8386. main ()
  8387. {
  8388. struct stat sbuf;
  8389. /* Linux will dereference the symlink and fail.
  8390. That is better in the sense that it means we will not
  8391. have to compile and use the lstat wrapper. */
  8392. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8393. ;
  8394. return 0;
  8395. }
  8396. _ACEOF
  8397. rm -f conftest$ac_exeext
  8398. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8399. (eval $ac_link) 2>&5
  8400. ac_status=$?
  8401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8402. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8403. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8404. (eval $ac_try) 2>&5
  8405. ac_status=$?
  8406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8407. (exit $ac_status); }; }; then
  8408. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8409. else
  8410. echo "$as_me: program exited with status $ac_status" >&5
  8411. echo "$as_me: failed program was:" >&5
  8412. sed 's/^/| /' conftest.$ac_ext >&5
  8413. ( exit $ac_status )
  8414. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8415. fi
  8416. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8417. fi
  8418. else
  8419. # If the `ln -s' command failed, then we probably don't even
  8420. # have an lstat function.
  8421. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8422. fi
  8423. rm -f conftest.sym conftest.file
  8424. fi
  8425. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8426. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8427. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8428. cat >>confdefs.h <<_ACEOF
  8429. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8430. _ACEOF
  8431. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8432. case $LIBOBJS in
  8433. "lstat.$ac_objext" | \
  8434. *" lstat.$ac_objext" | \
  8435. "lstat.$ac_objext "* | \
  8436. *" lstat.$ac_objext "* ) ;;
  8437. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8438. esac
  8439. fi
  8440. for ac_header in stdlib.h
  8441. do
  8442. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8443. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8444. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8445. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8446. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8447. echo $ECHO_N "(cached) $ECHO_C" >&6
  8448. fi
  8449. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8450. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8451. else
  8452. # Is the header compilable?
  8453. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8454. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8455. cat >conftest.$ac_ext <<_ACEOF
  8456. /* confdefs.h. */
  8457. _ACEOF
  8458. cat confdefs.h >>conftest.$ac_ext
  8459. cat >>conftest.$ac_ext <<_ACEOF
  8460. /* end confdefs.h. */
  8461. $ac_includes_default
  8462. #include <$ac_header>
  8463. _ACEOF
  8464. rm -f conftest.$ac_objext
  8465. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8466. (eval $ac_compile) 2>conftest.er1
  8467. ac_status=$?
  8468. grep -v '^ *+' conftest.er1 >conftest.err
  8469. rm -f conftest.er1
  8470. cat conftest.err >&5
  8471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8472. (exit $ac_status); } &&
  8473. { ac_try='test -z "$ac_c_werror_flag"
  8474. || test ! -s conftest.err'
  8475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8476. (eval $ac_try) 2>&5
  8477. ac_status=$?
  8478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8479. (exit $ac_status); }; } &&
  8480. { ac_try='test -s conftest.$ac_objext'
  8481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8482. (eval $ac_try) 2>&5
  8483. ac_status=$?
  8484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8485. (exit $ac_status); }; }; then
  8486. ac_header_compiler=yes
  8487. else
  8488. echo "$as_me: failed program was:" >&5
  8489. sed 's/^/| /' conftest.$ac_ext >&5
  8490. ac_header_compiler=no
  8491. fi
  8492. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8493. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8494. echo "${ECHO_T}$ac_header_compiler" >&6
  8495. # Is the header present?
  8496. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8497. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8498. cat >conftest.$ac_ext <<_ACEOF
  8499. /* confdefs.h. */
  8500. _ACEOF
  8501. cat confdefs.h >>conftest.$ac_ext
  8502. cat >>conftest.$ac_ext <<_ACEOF
  8503. /* end confdefs.h. */
  8504. #include <$ac_header>
  8505. _ACEOF
  8506. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8507. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8508. ac_status=$?
  8509. grep -v '^ *+' conftest.er1 >conftest.err
  8510. rm -f conftest.er1
  8511. cat conftest.err >&5
  8512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8513. (exit $ac_status); } >/dev/null; then
  8514. if test -s conftest.err; then
  8515. ac_cpp_err=$ac_c_preproc_warn_flag
  8516. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8517. else
  8518. ac_cpp_err=
  8519. fi
  8520. else
  8521. ac_cpp_err=yes
  8522. fi
  8523. if test -z "$ac_cpp_err"; then
  8524. ac_header_preproc=yes
  8525. else
  8526. echo "$as_me: failed program was:" >&5
  8527. sed 's/^/| /' conftest.$ac_ext >&5
  8528. ac_header_preproc=no
  8529. fi
  8530. rm -f conftest.err conftest.$ac_ext
  8531. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8532. echo "${ECHO_T}$ac_header_preproc" >&6
  8533. # So? What about this header?
  8534. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8535. yes:no: )
  8536. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8537. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8538. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8539. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8540. ac_header_preproc=yes
  8541. ;;
  8542. no:yes:* )
  8543. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8544. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8545. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8546. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8547. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8548. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8549. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8550. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8551. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8552. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8553. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8554. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8555. (
  8556. cat <<\_ASBOX
  8557. ## ------------------------------------------ ##
  8558. ## Report this to the AC_PACKAGE_NAME lists. ##
  8559. ## ------------------------------------------ ##
  8560. _ASBOX
  8561. ) |
  8562. sed "s/^/$as_me: WARNING: /" >&2
  8563. ;;
  8564. esac
  8565. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8566. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8567. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8568. echo $ECHO_N "(cached) $ECHO_C" >&6
  8569. else
  8570. eval "$as_ac_Header=\$ac_header_preproc"
  8571. fi
  8572. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8573. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8574. fi
  8575. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8576. cat >>confdefs.h <<_ACEOF
  8577. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8578. _ACEOF
  8579. fi
  8580. done
  8581. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8582. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8583. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8584. echo $ECHO_N "(cached) $ECHO_C" >&6
  8585. else
  8586. if test "$cross_compiling" = yes; then
  8587. ac_cv_func_malloc_0_nonnull=no
  8588. else
  8589. cat >conftest.$ac_ext <<_ACEOF
  8590. /* confdefs.h. */
  8591. _ACEOF
  8592. cat confdefs.h >>conftest.$ac_ext
  8593. cat >>conftest.$ac_ext <<_ACEOF
  8594. /* end confdefs.h. */
  8595. #if STDC_HEADERS || HAVE_STDLIB_H
  8596. # include <stdlib.h>
  8597. #else
  8598. char *malloc ();
  8599. #endif
  8600. int
  8601. main ()
  8602. {
  8603. exit (malloc (0) ? 0 : 1);
  8604. ;
  8605. return 0;
  8606. }
  8607. _ACEOF
  8608. rm -f conftest$ac_exeext
  8609. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8610. (eval $ac_link) 2>&5
  8611. ac_status=$?
  8612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8613. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8615. (eval $ac_try) 2>&5
  8616. ac_status=$?
  8617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8618. (exit $ac_status); }; }; then
  8619. ac_cv_func_malloc_0_nonnull=yes
  8620. else
  8621. echo "$as_me: program exited with status $ac_status" >&5
  8622. echo "$as_me: failed program was:" >&5
  8623. sed 's/^/| /' conftest.$ac_ext >&5
  8624. ( exit $ac_status )
  8625. ac_cv_func_malloc_0_nonnull=no
  8626. fi
  8627. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8628. fi
  8629. fi
  8630. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8631. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8632. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8633. cat >>confdefs.h <<\_ACEOF
  8634. #define HAVE_MALLOC 1
  8635. _ACEOF
  8636. else
  8637. cat >>confdefs.h <<\_ACEOF
  8638. #define HAVE_MALLOC 0
  8639. _ACEOF
  8640. case $LIBOBJS in
  8641. "malloc.$ac_objext" | \
  8642. *" malloc.$ac_objext" | \
  8643. "malloc.$ac_objext "* | \
  8644. *" malloc.$ac_objext "* ) ;;
  8645. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8646. esac
  8647. cat >>confdefs.h <<\_ACEOF
  8648. #define malloc rpl_malloc
  8649. _ACEOF
  8650. fi
  8651. for ac_header in stdlib.h sys/time.h unistd.h
  8652. do
  8653. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8654. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8655. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8657. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8658. echo $ECHO_N "(cached) $ECHO_C" >&6
  8659. fi
  8660. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8661. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8662. else
  8663. # Is the header compilable?
  8664. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8665. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8666. cat >conftest.$ac_ext <<_ACEOF
  8667. /* confdefs.h. */
  8668. _ACEOF
  8669. cat confdefs.h >>conftest.$ac_ext
  8670. cat >>conftest.$ac_ext <<_ACEOF
  8671. /* end confdefs.h. */
  8672. $ac_includes_default
  8673. #include <$ac_header>
  8674. _ACEOF
  8675. rm -f conftest.$ac_objext
  8676. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8677. (eval $ac_compile) 2>conftest.er1
  8678. ac_status=$?
  8679. grep -v '^ *+' conftest.er1 >conftest.err
  8680. rm -f conftest.er1
  8681. cat conftest.err >&5
  8682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8683. (exit $ac_status); } &&
  8684. { ac_try='test -z "$ac_c_werror_flag"
  8685. || test ! -s conftest.err'
  8686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8687. (eval $ac_try) 2>&5
  8688. ac_status=$?
  8689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8690. (exit $ac_status); }; } &&
  8691. { ac_try='test -s conftest.$ac_objext'
  8692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8693. (eval $ac_try) 2>&5
  8694. ac_status=$?
  8695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8696. (exit $ac_status); }; }; then
  8697. ac_header_compiler=yes
  8698. else
  8699. echo "$as_me: failed program was:" >&5
  8700. sed 's/^/| /' conftest.$ac_ext >&5
  8701. ac_header_compiler=no
  8702. fi
  8703. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8704. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8705. echo "${ECHO_T}$ac_header_compiler" >&6
  8706. # Is the header present?
  8707. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8708. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8709. cat >conftest.$ac_ext <<_ACEOF
  8710. /* confdefs.h. */
  8711. _ACEOF
  8712. cat confdefs.h >>conftest.$ac_ext
  8713. cat >>conftest.$ac_ext <<_ACEOF
  8714. /* end confdefs.h. */
  8715. #include <$ac_header>
  8716. _ACEOF
  8717. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8718. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8719. ac_status=$?
  8720. grep -v '^ *+' conftest.er1 >conftest.err
  8721. rm -f conftest.er1
  8722. cat conftest.err >&5
  8723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8724. (exit $ac_status); } >/dev/null; then
  8725. if test -s conftest.err; then
  8726. ac_cpp_err=$ac_c_preproc_warn_flag
  8727. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8728. else
  8729. ac_cpp_err=
  8730. fi
  8731. else
  8732. ac_cpp_err=yes
  8733. fi
  8734. if test -z "$ac_cpp_err"; then
  8735. ac_header_preproc=yes
  8736. else
  8737. echo "$as_me: failed program was:" >&5
  8738. sed 's/^/| /' conftest.$ac_ext >&5
  8739. ac_header_preproc=no
  8740. fi
  8741. rm -f conftest.err conftest.$ac_ext
  8742. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8743. echo "${ECHO_T}$ac_header_preproc" >&6
  8744. # So? What about this header?
  8745. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8746. yes:no: )
  8747. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8748. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8749. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8750. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8751. ac_header_preproc=yes
  8752. ;;
  8753. no:yes:* )
  8754. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8755. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8756. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8757. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8758. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8759. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8760. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8761. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8762. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8763. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8764. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8765. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8766. (
  8767. cat <<\_ASBOX
  8768. ## ------------------------------------------ ##
  8769. ## Report this to the AC_PACKAGE_NAME lists. ##
  8770. ## ------------------------------------------ ##
  8771. _ASBOX
  8772. ) |
  8773. sed "s/^/$as_me: WARNING: /" >&2
  8774. ;;
  8775. esac
  8776. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8777. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8778. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8779. echo $ECHO_N "(cached) $ECHO_C" >&6
  8780. else
  8781. eval "$as_ac_Header=\$ac_header_preproc"
  8782. fi
  8783. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8784. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8785. fi
  8786. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8787. cat >>confdefs.h <<_ACEOF
  8788. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8789. _ACEOF
  8790. fi
  8791. done
  8792. for ac_func in alarm
  8793. do
  8794. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8795. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8796. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8797. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8798. echo $ECHO_N "(cached) $ECHO_C" >&6
  8799. else
  8800. cat >conftest.$ac_ext <<_ACEOF
  8801. /* confdefs.h. */
  8802. _ACEOF
  8803. cat confdefs.h >>conftest.$ac_ext
  8804. cat >>conftest.$ac_ext <<_ACEOF
  8805. /* end confdefs.h. */
  8806. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8807. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8808. #define $ac_func innocuous_$ac_func
  8809. /* System header to define __stub macros and hopefully few prototypes,
  8810. which can conflict with char $ac_func (); below.
  8811. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8812. <limits.h> exists even on freestanding compilers. */
  8813. #ifdef __STDC__
  8814. # include <limits.h>
  8815. #else
  8816. # include <assert.h>
  8817. #endif
  8818. #undef $ac_func
  8819. /* Override any gcc2 internal prototype to avoid an error. */
  8820. #ifdef __cplusplus
  8821. extern "C"
  8822. {
  8823. #endif
  8824. /* We use char because int might match the return type of a gcc2
  8825. builtin and then its argument prototype would still apply. */
  8826. char $ac_func ();
  8827. /* The GNU C library defines this for functions which it implements
  8828. to always fail with ENOSYS. Some functions are actually named
  8829. something starting with __ and the normal name is an alias. */
  8830. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8831. choke me
  8832. #else
  8833. char (*f) () = $ac_func;
  8834. #endif
  8835. #ifdef __cplusplus
  8836. }
  8837. #endif
  8838. int
  8839. main ()
  8840. {
  8841. return f != $ac_func;
  8842. ;
  8843. return 0;
  8844. }
  8845. _ACEOF
  8846. rm -f conftest.$ac_objext conftest$ac_exeext
  8847. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8848. (eval $ac_link) 2>conftest.er1
  8849. ac_status=$?
  8850. grep -v '^ *+' conftest.er1 >conftest.err
  8851. rm -f conftest.er1
  8852. cat conftest.err >&5
  8853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8854. (exit $ac_status); } &&
  8855. { ac_try='test -z "$ac_c_werror_flag"
  8856. || test ! -s conftest.err'
  8857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8858. (eval $ac_try) 2>&5
  8859. ac_status=$?
  8860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8861. (exit $ac_status); }; } &&
  8862. { ac_try='test -s conftest$ac_exeext'
  8863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8864. (eval $ac_try) 2>&5
  8865. ac_status=$?
  8866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8867. (exit $ac_status); }; }; then
  8868. eval "$as_ac_var=yes"
  8869. else
  8870. echo "$as_me: failed program was:" >&5
  8871. sed 's/^/| /' conftest.$ac_ext >&5
  8872. eval "$as_ac_var=no"
  8873. fi
  8874. rm -f conftest.err conftest.$ac_objext \
  8875. conftest$ac_exeext conftest.$ac_ext
  8876. fi
  8877. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8878. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8879. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8880. cat >>confdefs.h <<_ACEOF
  8881. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8882. _ACEOF
  8883. fi
  8884. done
  8885. echo "$as_me:$LINENO: checking for working mktime" >&5
  8886. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8887. if test "${ac_cv_func_working_mktime+set}" = set; then
  8888. echo $ECHO_N "(cached) $ECHO_C" >&6
  8889. else
  8890. if test "$cross_compiling" = yes; then
  8891. ac_cv_func_working_mktime=no
  8892. else
  8893. cat >conftest.$ac_ext <<_ACEOF
  8894. /* confdefs.h. */
  8895. _ACEOF
  8896. cat confdefs.h >>conftest.$ac_ext
  8897. cat >>conftest.$ac_ext <<_ACEOF
  8898. /* end confdefs.h. */
  8899. /* Test program from Paul Eggert and Tony Leneis. */
  8900. #if TIME_WITH_SYS_TIME
  8901. # include <sys/time.h>
  8902. # include <time.h>
  8903. #else
  8904. # if HAVE_SYS_TIME_H
  8905. # include <sys/time.h>
  8906. # else
  8907. # include <time.h>
  8908. # endif
  8909. #endif
  8910. #if HAVE_STDLIB_H
  8911. # include <stdlib.h>
  8912. #endif
  8913. #if HAVE_UNISTD_H
  8914. # include <unistd.h>
  8915. #endif
  8916. #if !HAVE_ALARM
  8917. # define alarm(X) /* empty */
  8918. #endif
  8919. /* Work around redefinition to rpl_putenv by other config tests. */
  8920. #undef putenv
  8921. static time_t time_t_max;
  8922. static time_t time_t_min;
  8923. /* Values we'll use to set the TZ environment variable. */
  8924. static char *tz_strings[] = {
  8925. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8926. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8927. };
  8928. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8929. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8930. Based on a problem report from Andreas Jaeger. */
  8931. static void
  8932. spring_forward_gap ()
  8933. {
  8934. /* glibc (up to about 1998-10-07) failed this test. */
  8935. struct tm tm;
  8936. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8937. instead of "TZ=America/Vancouver" in order to detect the bug even
  8938. on systems that don't support the Olson extension, or don't have the
  8939. full zoneinfo tables installed. */
  8940. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8941. tm.tm_year = 98;
  8942. tm.tm_mon = 3;
  8943. tm.tm_mday = 5;
  8944. tm.tm_hour = 2;
  8945. tm.tm_min = 0;
  8946. tm.tm_sec = 0;
  8947. tm.tm_isdst = -1;
  8948. if (mktime (&tm) == (time_t)-1)
  8949. exit (1);
  8950. }
  8951. static void
  8952. mktime_test1 (now)
  8953. time_t now;
  8954. {
  8955. struct tm *lt;
  8956. if ((lt = localtime (&now)) && mktime (lt) != now)
  8957. exit (1);
  8958. }
  8959. static void
  8960. mktime_test (now)
  8961. time_t now;
  8962. {
  8963. mktime_test1 (now);
  8964. mktime_test1 ((time_t) (time_t_max - now));
  8965. mktime_test1 ((time_t) (time_t_min + now));
  8966. }
  8967. static void
  8968. irix_6_4_bug ()
  8969. {
  8970. /* Based on code from Ariel Faigon. */
  8971. struct tm tm;
  8972. tm.tm_year = 96;
  8973. tm.tm_mon = 3;
  8974. tm.tm_mday = 0;
  8975. tm.tm_hour = 0;
  8976. tm.tm_min = 0;
  8977. tm.tm_sec = 0;
  8978. tm.tm_isdst = -1;
  8979. mktime (&tm);
  8980. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8981. exit (1);
  8982. }
  8983. static void
  8984. bigtime_test (j)
  8985. int j;
  8986. {
  8987. struct tm tm;
  8988. time_t now;
  8989. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8990. now = mktime (&tm);
  8991. if (now != (time_t) -1)
  8992. {
  8993. struct tm *lt = localtime (&now);
  8994. if (! (lt
  8995. && lt->tm_year == tm.tm_year
  8996. && lt->tm_mon == tm.tm_mon
  8997. && lt->tm_mday == tm.tm_mday
  8998. && lt->tm_hour == tm.tm_hour
  8999. && lt->tm_min == tm.tm_min
  9000. && lt->tm_sec == tm.tm_sec
  9001. && lt->tm_yday == tm.tm_yday
  9002. && lt->tm_wday == tm.tm_wday
  9003. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9004. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9005. exit (1);
  9006. }
  9007. }
  9008. int
  9009. main ()
  9010. {
  9011. time_t t, delta;
  9012. int i, j;
  9013. /* This test makes some buggy mktime implementations loop.
  9014. Give up after 60 seconds; a mktime slower than that
  9015. isn't worth using anyway. */
  9016. alarm (60);
  9017. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9018. continue;
  9019. time_t_max--;
  9020. if ((time_t) -1 < 0)
  9021. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9022. continue;
  9023. delta = time_t_max / 997; /* a suitable prime number */
  9024. for (i = 0; i < N_STRINGS; i++)
  9025. {
  9026. if (tz_strings[i])
  9027. putenv (tz_strings[i]);
  9028. for (t = 0; t <= time_t_max - delta; t += delta)
  9029. mktime_test (t);
  9030. mktime_test ((time_t) 1);
  9031. mktime_test ((time_t) (60 * 60));
  9032. mktime_test ((time_t) (60 * 60 * 24));
  9033. for (j = 1; 0 < j; j *= 2)
  9034. bigtime_test (j);
  9035. bigtime_test (j - 1);
  9036. }
  9037. irix_6_4_bug ();
  9038. spring_forward_gap ();
  9039. exit (0);
  9040. }
  9041. _ACEOF
  9042. rm -f conftest$ac_exeext
  9043. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9044. (eval $ac_link) 2>&5
  9045. ac_status=$?
  9046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9047. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9049. (eval $ac_try) 2>&5
  9050. ac_status=$?
  9051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9052. (exit $ac_status); }; }; then
  9053. ac_cv_func_working_mktime=yes
  9054. else
  9055. echo "$as_me: program exited with status $ac_status" >&5
  9056. echo "$as_me: failed program was:" >&5
  9057. sed 's/^/| /' conftest.$ac_ext >&5
  9058. ( exit $ac_status )
  9059. ac_cv_func_working_mktime=no
  9060. fi
  9061. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9062. fi
  9063. fi
  9064. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9065. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9066. if test $ac_cv_func_working_mktime = no; then
  9067. case $LIBOBJS in
  9068. "mktime.$ac_objext" | \
  9069. *" mktime.$ac_objext" | \
  9070. "mktime.$ac_objext "* | \
  9071. *" mktime.$ac_objext "* ) ;;
  9072. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9073. esac
  9074. fi
  9075. for ac_header in stdlib.h unistd.h
  9076. do
  9077. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9078. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9079. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9080. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9081. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9082. echo $ECHO_N "(cached) $ECHO_C" >&6
  9083. fi
  9084. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9085. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9086. else
  9087. # Is the header compilable?
  9088. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9089. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9090. cat >conftest.$ac_ext <<_ACEOF
  9091. /* confdefs.h. */
  9092. _ACEOF
  9093. cat confdefs.h >>conftest.$ac_ext
  9094. cat >>conftest.$ac_ext <<_ACEOF
  9095. /* end confdefs.h. */
  9096. $ac_includes_default
  9097. #include <$ac_header>
  9098. _ACEOF
  9099. rm -f conftest.$ac_objext
  9100. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9101. (eval $ac_compile) 2>conftest.er1
  9102. ac_status=$?
  9103. grep -v '^ *+' conftest.er1 >conftest.err
  9104. rm -f conftest.er1
  9105. cat conftest.err >&5
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); } &&
  9108. { ac_try='test -z "$ac_c_werror_flag"
  9109. || test ! -s conftest.err'
  9110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9111. (eval $ac_try) 2>&5
  9112. ac_status=$?
  9113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9114. (exit $ac_status); }; } &&
  9115. { ac_try='test -s conftest.$ac_objext'
  9116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9117. (eval $ac_try) 2>&5
  9118. ac_status=$?
  9119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9120. (exit $ac_status); }; }; then
  9121. ac_header_compiler=yes
  9122. else
  9123. echo "$as_me: failed program was:" >&5
  9124. sed 's/^/| /' conftest.$ac_ext >&5
  9125. ac_header_compiler=no
  9126. fi
  9127. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9128. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9129. echo "${ECHO_T}$ac_header_compiler" >&6
  9130. # Is the header present?
  9131. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9132. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9133. cat >conftest.$ac_ext <<_ACEOF
  9134. /* confdefs.h. */
  9135. _ACEOF
  9136. cat confdefs.h >>conftest.$ac_ext
  9137. cat >>conftest.$ac_ext <<_ACEOF
  9138. /* end confdefs.h. */
  9139. #include <$ac_header>
  9140. _ACEOF
  9141. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9142. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9143. ac_status=$?
  9144. grep -v '^ *+' conftest.er1 >conftest.err
  9145. rm -f conftest.er1
  9146. cat conftest.err >&5
  9147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9148. (exit $ac_status); } >/dev/null; then
  9149. if test -s conftest.err; then
  9150. ac_cpp_err=$ac_c_preproc_warn_flag
  9151. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9152. else
  9153. ac_cpp_err=
  9154. fi
  9155. else
  9156. ac_cpp_err=yes
  9157. fi
  9158. if test -z "$ac_cpp_err"; then
  9159. ac_header_preproc=yes
  9160. else
  9161. echo "$as_me: failed program was:" >&5
  9162. sed 's/^/| /' conftest.$ac_ext >&5
  9163. ac_header_preproc=no
  9164. fi
  9165. rm -f conftest.err conftest.$ac_ext
  9166. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9167. echo "${ECHO_T}$ac_header_preproc" >&6
  9168. # So? What about this header?
  9169. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9170. yes:no: )
  9171. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9172. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9173. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9174. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9175. ac_header_preproc=yes
  9176. ;;
  9177. no:yes:* )
  9178. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9179. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9180. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9181. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9182. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9183. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9184. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9185. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9186. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9187. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9188. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9189. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9190. (
  9191. cat <<\_ASBOX
  9192. ## ------------------------------------------ ##
  9193. ## Report this to the AC_PACKAGE_NAME lists. ##
  9194. ## ------------------------------------------ ##
  9195. _ASBOX
  9196. ) |
  9197. sed "s/^/$as_me: WARNING: /" >&2
  9198. ;;
  9199. esac
  9200. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9201. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9202. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9203. echo $ECHO_N "(cached) $ECHO_C" >&6
  9204. else
  9205. eval "$as_ac_Header=\$ac_header_preproc"
  9206. fi
  9207. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9208. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9209. fi
  9210. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9211. cat >>confdefs.h <<_ACEOF
  9212. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9213. _ACEOF
  9214. fi
  9215. done
  9216. for ac_func in getpagesize
  9217. do
  9218. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9219. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9220. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9221. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9222. echo $ECHO_N "(cached) $ECHO_C" >&6
  9223. else
  9224. cat >conftest.$ac_ext <<_ACEOF
  9225. /* confdefs.h. */
  9226. _ACEOF
  9227. cat confdefs.h >>conftest.$ac_ext
  9228. cat >>conftest.$ac_ext <<_ACEOF
  9229. /* end confdefs.h. */
  9230. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9231. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9232. #define $ac_func innocuous_$ac_func
  9233. /* System header to define __stub macros and hopefully few prototypes,
  9234. which can conflict with char $ac_func (); below.
  9235. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9236. <limits.h> exists even on freestanding compilers. */
  9237. #ifdef __STDC__
  9238. # include <limits.h>
  9239. #else
  9240. # include <assert.h>
  9241. #endif
  9242. #undef $ac_func
  9243. /* Override any gcc2 internal prototype to avoid an error. */
  9244. #ifdef __cplusplus
  9245. extern "C"
  9246. {
  9247. #endif
  9248. /* We use char because int might match the return type of a gcc2
  9249. builtin and then its argument prototype would still apply. */
  9250. char $ac_func ();
  9251. /* The GNU C library defines this for functions which it implements
  9252. to always fail with ENOSYS. Some functions are actually named
  9253. something starting with __ and the normal name is an alias. */
  9254. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9255. choke me
  9256. #else
  9257. char (*f) () = $ac_func;
  9258. #endif
  9259. #ifdef __cplusplus
  9260. }
  9261. #endif
  9262. int
  9263. main ()
  9264. {
  9265. return f != $ac_func;
  9266. ;
  9267. return 0;
  9268. }
  9269. _ACEOF
  9270. rm -f conftest.$ac_objext conftest$ac_exeext
  9271. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9272. (eval $ac_link) 2>conftest.er1
  9273. ac_status=$?
  9274. grep -v '^ *+' conftest.er1 >conftest.err
  9275. rm -f conftest.er1
  9276. cat conftest.err >&5
  9277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9278. (exit $ac_status); } &&
  9279. { ac_try='test -z "$ac_c_werror_flag"
  9280. || test ! -s conftest.err'
  9281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9282. (eval $ac_try) 2>&5
  9283. ac_status=$?
  9284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9285. (exit $ac_status); }; } &&
  9286. { ac_try='test -s conftest$ac_exeext'
  9287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9288. (eval $ac_try) 2>&5
  9289. ac_status=$?
  9290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9291. (exit $ac_status); }; }; then
  9292. eval "$as_ac_var=yes"
  9293. else
  9294. echo "$as_me: failed program was:" >&5
  9295. sed 's/^/| /' conftest.$ac_ext >&5
  9296. eval "$as_ac_var=no"
  9297. fi
  9298. rm -f conftest.err conftest.$ac_objext \
  9299. conftest$ac_exeext conftest.$ac_ext
  9300. fi
  9301. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9302. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9303. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9304. cat >>confdefs.h <<_ACEOF
  9305. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9306. _ACEOF
  9307. fi
  9308. done
  9309. echo "$as_me:$LINENO: checking for working mmap" >&5
  9310. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9311. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9312. echo $ECHO_N "(cached) $ECHO_C" >&6
  9313. else
  9314. if test "$cross_compiling" = yes; then
  9315. ac_cv_func_mmap_fixed_mapped=no
  9316. else
  9317. cat >conftest.$ac_ext <<_ACEOF
  9318. /* confdefs.h. */
  9319. _ACEOF
  9320. cat confdefs.h >>conftest.$ac_ext
  9321. cat >>conftest.$ac_ext <<_ACEOF
  9322. /* end confdefs.h. */
  9323. $ac_includes_default
  9324. /* malloc might have been renamed as rpl_malloc. */
  9325. #undef malloc
  9326. /* Thanks to Mike Haertel and Jim Avera for this test.
  9327. Here is a matrix of mmap possibilities:
  9328. mmap private not fixed
  9329. mmap private fixed at somewhere currently unmapped
  9330. mmap private fixed at somewhere already mapped
  9331. mmap shared not fixed
  9332. mmap shared fixed at somewhere currently unmapped
  9333. mmap shared fixed at somewhere already mapped
  9334. For private mappings, we should verify that changes cannot be read()
  9335. back from the file, nor mmap's back from the file at a different
  9336. address. (There have been systems where private was not correctly
  9337. implemented like the infamous i386 svr4.0, and systems where the
  9338. VM page cache was not coherent with the file system buffer cache
  9339. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9340. For shared mappings, we should conversely verify that changes get
  9341. propagated back to all the places they're supposed to be.
  9342. Grep wants private fixed already mapped.
  9343. The main things grep needs to know about mmap are:
  9344. * does it exist and is it safe to write into the mmap'd area
  9345. * how to use it (BSD variants) */
  9346. #include <fcntl.h>
  9347. #include <sys/mman.h>
  9348. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9349. char *malloc ();
  9350. #endif
  9351. /* This mess was copied from the GNU getpagesize.h. */
  9352. #if !HAVE_GETPAGESIZE
  9353. /* Assume that all systems that can run configure have sys/param.h. */
  9354. # if !HAVE_SYS_PARAM_H
  9355. # define HAVE_SYS_PARAM_H 1
  9356. # endif
  9357. # ifdef _SC_PAGESIZE
  9358. # define getpagesize() sysconf(_SC_PAGESIZE)
  9359. # else /* no _SC_PAGESIZE */
  9360. # if HAVE_SYS_PARAM_H
  9361. # include <sys/param.h>
  9362. # ifdef EXEC_PAGESIZE
  9363. # define getpagesize() EXEC_PAGESIZE
  9364. # else /* no EXEC_PAGESIZE */
  9365. # ifdef NBPG
  9366. # define getpagesize() NBPG * CLSIZE
  9367. # ifndef CLSIZE
  9368. # define CLSIZE 1
  9369. # endif /* no CLSIZE */
  9370. # else /* no NBPG */
  9371. # ifdef NBPC
  9372. # define getpagesize() NBPC
  9373. # else /* no NBPC */
  9374. # ifdef PAGESIZE
  9375. # define getpagesize() PAGESIZE
  9376. # endif /* PAGESIZE */
  9377. # endif /* no NBPC */
  9378. # endif /* no NBPG */
  9379. # endif /* no EXEC_PAGESIZE */
  9380. # else /* no HAVE_SYS_PARAM_H */
  9381. # define getpagesize() 8192 /* punt totally */
  9382. # endif /* no HAVE_SYS_PARAM_H */
  9383. # endif /* no _SC_PAGESIZE */
  9384. #endif /* no HAVE_GETPAGESIZE */
  9385. int
  9386. main ()
  9387. {
  9388. char *data, *data2, *data3;
  9389. int i, pagesize;
  9390. int fd;
  9391. pagesize = getpagesize ();
  9392. /* First, make a file with some known garbage in it. */
  9393. data = (char *) malloc (pagesize);
  9394. if (!data)
  9395. exit (1);
  9396. for (i = 0; i < pagesize; ++i)
  9397. *(data + i) = rand ();
  9398. umask (0);
  9399. fd = creat ("conftest.mmap", 0600);
  9400. if (fd < 0)
  9401. exit (1);
  9402. if (write (fd, data, pagesize) != pagesize)
  9403. exit (1);
  9404. close (fd);
  9405. /* Next, try to mmap the file at a fixed address which already has
  9406. something else allocated at it. If we can, also make sure that
  9407. we see the same garbage. */
  9408. fd = open ("conftest.mmap", O_RDWR);
  9409. if (fd < 0)
  9410. exit (1);
  9411. data2 = (char *) malloc (2 * pagesize);
  9412. if (!data2)
  9413. exit (1);
  9414. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9415. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9416. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9417. exit (1);
  9418. for (i = 0; i < pagesize; ++i)
  9419. if (*(data + i) != *(data2 + i))
  9420. exit (1);
  9421. /* Finally, make sure that changes to the mapped area do not
  9422. percolate back to the file as seen by read(). (This is a bug on
  9423. some variants of i386 svr4.0.) */
  9424. for (i = 0; i < pagesize; ++i)
  9425. *(data2 + i) = *(data2 + i) + 1;
  9426. data3 = (char *) malloc (pagesize);
  9427. if (!data3)
  9428. exit (1);
  9429. if (read (fd, data3, pagesize) != pagesize)
  9430. exit (1);
  9431. for (i = 0; i < pagesize; ++i)
  9432. if (*(data + i) != *(data3 + i))
  9433. exit (1);
  9434. close (fd);
  9435. exit (0);
  9436. }
  9437. _ACEOF
  9438. rm -f conftest$ac_exeext
  9439. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9440. (eval $ac_link) 2>&5
  9441. ac_status=$?
  9442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9443. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9444. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9445. (eval $ac_try) 2>&5
  9446. ac_status=$?
  9447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9448. (exit $ac_status); }; }; then
  9449. ac_cv_func_mmap_fixed_mapped=yes
  9450. else
  9451. echo "$as_me: program exited with status $ac_status" >&5
  9452. echo "$as_me: failed program was:" >&5
  9453. sed 's/^/| /' conftest.$ac_ext >&5
  9454. ( exit $ac_status )
  9455. ac_cv_func_mmap_fixed_mapped=no
  9456. fi
  9457. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9458. fi
  9459. fi
  9460. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9461. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9462. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9463. cat >>confdefs.h <<\_ACEOF
  9464. #define HAVE_MMAP 1
  9465. _ACEOF
  9466. fi
  9467. rm -f conftest.mmap
  9468. for ac_header in stdlib.h
  9469. do
  9470. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9471. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9472. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9473. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9474. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9475. echo $ECHO_N "(cached) $ECHO_C" >&6
  9476. fi
  9477. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9478. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9479. else
  9480. # Is the header compilable?
  9481. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9482. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9483. cat >conftest.$ac_ext <<_ACEOF
  9484. /* confdefs.h. */
  9485. _ACEOF
  9486. cat confdefs.h >>conftest.$ac_ext
  9487. cat >>conftest.$ac_ext <<_ACEOF
  9488. /* end confdefs.h. */
  9489. $ac_includes_default
  9490. #include <$ac_header>
  9491. _ACEOF
  9492. rm -f conftest.$ac_objext
  9493. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9494. (eval $ac_compile) 2>conftest.er1
  9495. ac_status=$?
  9496. grep -v '^ *+' conftest.er1 >conftest.err
  9497. rm -f conftest.er1
  9498. cat conftest.err >&5
  9499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9500. (exit $ac_status); } &&
  9501. { ac_try='test -z "$ac_c_werror_flag"
  9502. || test ! -s conftest.err'
  9503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9504. (eval $ac_try) 2>&5
  9505. ac_status=$?
  9506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9507. (exit $ac_status); }; } &&
  9508. { ac_try='test -s conftest.$ac_objext'
  9509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9510. (eval $ac_try) 2>&5
  9511. ac_status=$?
  9512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9513. (exit $ac_status); }; }; then
  9514. ac_header_compiler=yes
  9515. else
  9516. echo "$as_me: failed program was:" >&5
  9517. sed 's/^/| /' conftest.$ac_ext >&5
  9518. ac_header_compiler=no
  9519. fi
  9520. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9521. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9522. echo "${ECHO_T}$ac_header_compiler" >&6
  9523. # Is the header present?
  9524. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9525. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9526. cat >conftest.$ac_ext <<_ACEOF
  9527. /* confdefs.h. */
  9528. _ACEOF
  9529. cat confdefs.h >>conftest.$ac_ext
  9530. cat >>conftest.$ac_ext <<_ACEOF
  9531. /* end confdefs.h. */
  9532. #include <$ac_header>
  9533. _ACEOF
  9534. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9535. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9536. ac_status=$?
  9537. grep -v '^ *+' conftest.er1 >conftest.err
  9538. rm -f conftest.er1
  9539. cat conftest.err >&5
  9540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9541. (exit $ac_status); } >/dev/null; then
  9542. if test -s conftest.err; then
  9543. ac_cpp_err=$ac_c_preproc_warn_flag
  9544. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9545. else
  9546. ac_cpp_err=
  9547. fi
  9548. else
  9549. ac_cpp_err=yes
  9550. fi
  9551. if test -z "$ac_cpp_err"; then
  9552. ac_header_preproc=yes
  9553. else
  9554. echo "$as_me: failed program was:" >&5
  9555. sed 's/^/| /' conftest.$ac_ext >&5
  9556. ac_header_preproc=no
  9557. fi
  9558. rm -f conftest.err conftest.$ac_ext
  9559. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9560. echo "${ECHO_T}$ac_header_preproc" >&6
  9561. # So? What about this header?
  9562. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9563. yes:no: )
  9564. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9565. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9566. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9567. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9568. ac_header_preproc=yes
  9569. ;;
  9570. no:yes:* )
  9571. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9572. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9573. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9574. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9575. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9576. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9577. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9578. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9579. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9580. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9581. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9582. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9583. (
  9584. cat <<\_ASBOX
  9585. ## ------------------------------------------ ##
  9586. ## Report this to the AC_PACKAGE_NAME lists. ##
  9587. ## ------------------------------------------ ##
  9588. _ASBOX
  9589. ) |
  9590. sed "s/^/$as_me: WARNING: /" >&2
  9591. ;;
  9592. esac
  9593. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9594. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9595. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9596. echo $ECHO_N "(cached) $ECHO_C" >&6
  9597. else
  9598. eval "$as_ac_Header=\$ac_header_preproc"
  9599. fi
  9600. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9601. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9602. fi
  9603. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9604. cat >>confdefs.h <<_ACEOF
  9605. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9606. _ACEOF
  9607. fi
  9608. done
  9609. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9610. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9611. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9612. echo $ECHO_N "(cached) $ECHO_C" >&6
  9613. else
  9614. if test "$cross_compiling" = yes; then
  9615. ac_cv_func_realloc_0_nonnull=no
  9616. else
  9617. cat >conftest.$ac_ext <<_ACEOF
  9618. /* confdefs.h. */
  9619. _ACEOF
  9620. cat confdefs.h >>conftest.$ac_ext
  9621. cat >>conftest.$ac_ext <<_ACEOF
  9622. /* end confdefs.h. */
  9623. #if STDC_HEADERS || HAVE_STDLIB_H
  9624. # include <stdlib.h>
  9625. #else
  9626. char *realloc ();
  9627. #endif
  9628. int
  9629. main ()
  9630. {
  9631. exit (realloc (0, 0) ? 0 : 1);
  9632. ;
  9633. return 0;
  9634. }
  9635. _ACEOF
  9636. rm -f conftest$ac_exeext
  9637. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9638. (eval $ac_link) 2>&5
  9639. ac_status=$?
  9640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9641. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9643. (eval $ac_try) 2>&5
  9644. ac_status=$?
  9645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9646. (exit $ac_status); }; }; then
  9647. ac_cv_func_realloc_0_nonnull=yes
  9648. else
  9649. echo "$as_me: program exited with status $ac_status" >&5
  9650. echo "$as_me: failed program was:" >&5
  9651. sed 's/^/| /' conftest.$ac_ext >&5
  9652. ( exit $ac_status )
  9653. ac_cv_func_realloc_0_nonnull=no
  9654. fi
  9655. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9656. fi
  9657. fi
  9658. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9659. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9660. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9661. cat >>confdefs.h <<\_ACEOF
  9662. #define HAVE_REALLOC 1
  9663. _ACEOF
  9664. else
  9665. cat >>confdefs.h <<\_ACEOF
  9666. #define HAVE_REALLOC 0
  9667. _ACEOF
  9668. case $LIBOBJS in
  9669. "realloc.$ac_objext" | \
  9670. *" realloc.$ac_objext" | \
  9671. "realloc.$ac_objext "* | \
  9672. *" realloc.$ac_objext "* ) ;;
  9673. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9674. esac
  9675. cat >>confdefs.h <<\_ACEOF
  9676. #define realloc rpl_realloc
  9677. _ACEOF
  9678. fi
  9679. for ac_header in sys/select.h sys/socket.h
  9680. do
  9681. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9682. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9683. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9684. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9685. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9686. echo $ECHO_N "(cached) $ECHO_C" >&6
  9687. fi
  9688. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9689. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9690. else
  9691. # Is the header compilable?
  9692. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9693. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9694. cat >conftest.$ac_ext <<_ACEOF
  9695. /* confdefs.h. */
  9696. _ACEOF
  9697. cat confdefs.h >>conftest.$ac_ext
  9698. cat >>conftest.$ac_ext <<_ACEOF
  9699. /* end confdefs.h. */
  9700. $ac_includes_default
  9701. #include <$ac_header>
  9702. _ACEOF
  9703. rm -f conftest.$ac_objext
  9704. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9705. (eval $ac_compile) 2>conftest.er1
  9706. ac_status=$?
  9707. grep -v '^ *+' conftest.er1 >conftest.err
  9708. rm -f conftest.er1
  9709. cat conftest.err >&5
  9710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9711. (exit $ac_status); } &&
  9712. { ac_try='test -z "$ac_c_werror_flag"
  9713. || test ! -s conftest.err'
  9714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9715. (eval $ac_try) 2>&5
  9716. ac_status=$?
  9717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9718. (exit $ac_status); }; } &&
  9719. { ac_try='test -s conftest.$ac_objext'
  9720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9721. (eval $ac_try) 2>&5
  9722. ac_status=$?
  9723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9724. (exit $ac_status); }; }; then
  9725. ac_header_compiler=yes
  9726. else
  9727. echo "$as_me: failed program was:" >&5
  9728. sed 's/^/| /' conftest.$ac_ext >&5
  9729. ac_header_compiler=no
  9730. fi
  9731. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9732. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9733. echo "${ECHO_T}$ac_header_compiler" >&6
  9734. # Is the header present?
  9735. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9736. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9737. cat >conftest.$ac_ext <<_ACEOF
  9738. /* confdefs.h. */
  9739. _ACEOF
  9740. cat confdefs.h >>conftest.$ac_ext
  9741. cat >>conftest.$ac_ext <<_ACEOF
  9742. /* end confdefs.h. */
  9743. #include <$ac_header>
  9744. _ACEOF
  9745. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9746. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9747. ac_status=$?
  9748. grep -v '^ *+' conftest.er1 >conftest.err
  9749. rm -f conftest.er1
  9750. cat conftest.err >&5
  9751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9752. (exit $ac_status); } >/dev/null; then
  9753. if test -s conftest.err; then
  9754. ac_cpp_err=$ac_c_preproc_warn_flag
  9755. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9756. else
  9757. ac_cpp_err=
  9758. fi
  9759. else
  9760. ac_cpp_err=yes
  9761. fi
  9762. if test -z "$ac_cpp_err"; then
  9763. ac_header_preproc=yes
  9764. else
  9765. echo "$as_me: failed program was:" >&5
  9766. sed 's/^/| /' conftest.$ac_ext >&5
  9767. ac_header_preproc=no
  9768. fi
  9769. rm -f conftest.err conftest.$ac_ext
  9770. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9771. echo "${ECHO_T}$ac_header_preproc" >&6
  9772. # So? What about this header?
  9773. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9774. yes:no: )
  9775. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9776. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9777. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9778. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9779. ac_header_preproc=yes
  9780. ;;
  9781. no:yes:* )
  9782. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9783. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9784. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9785. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9786. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9787. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9788. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9789. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9790. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9791. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9792. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9793. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9794. (
  9795. cat <<\_ASBOX
  9796. ## ------------------------------------------ ##
  9797. ## Report this to the AC_PACKAGE_NAME lists. ##
  9798. ## ------------------------------------------ ##
  9799. _ASBOX
  9800. ) |
  9801. sed "s/^/$as_me: WARNING: /" >&2
  9802. ;;
  9803. esac
  9804. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9805. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9806. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9807. echo $ECHO_N "(cached) $ECHO_C" >&6
  9808. else
  9809. eval "$as_ac_Header=\$ac_header_preproc"
  9810. fi
  9811. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9812. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9813. fi
  9814. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9815. cat >>confdefs.h <<_ACEOF
  9816. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9817. _ACEOF
  9818. fi
  9819. done
  9820. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9821. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9822. if test "${ac_cv_func_select_args+set}" = set; then
  9823. echo $ECHO_N "(cached) $ECHO_C" >&6
  9824. else
  9825. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9826. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9827. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9828. cat >conftest.$ac_ext <<_ACEOF
  9829. /* confdefs.h. */
  9830. _ACEOF
  9831. cat confdefs.h >>conftest.$ac_ext
  9832. cat >>conftest.$ac_ext <<_ACEOF
  9833. /* end confdefs.h. */
  9834. $ac_includes_default
  9835. #if HAVE_SYS_SELECT_H
  9836. # include <sys/select.h>
  9837. #endif
  9838. #if HAVE_SYS_SOCKET_H
  9839. # include <sys/socket.h>
  9840. #endif
  9841. int
  9842. main ()
  9843. {
  9844. extern int select ($ac_arg1,
  9845. $ac_arg234, $ac_arg234, $ac_arg234,
  9846. $ac_arg5);
  9847. ;
  9848. return 0;
  9849. }
  9850. _ACEOF
  9851. rm -f conftest.$ac_objext
  9852. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9853. (eval $ac_compile) 2>conftest.er1
  9854. ac_status=$?
  9855. grep -v '^ *+' conftest.er1 >conftest.err
  9856. rm -f conftest.er1
  9857. cat conftest.err >&5
  9858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9859. (exit $ac_status); } &&
  9860. { ac_try='test -z "$ac_c_werror_flag"
  9861. || test ! -s conftest.err'
  9862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9863. (eval $ac_try) 2>&5
  9864. ac_status=$?
  9865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9866. (exit $ac_status); }; } &&
  9867. { ac_try='test -s conftest.$ac_objext'
  9868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9869. (eval $ac_try) 2>&5
  9870. ac_status=$?
  9871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9872. (exit $ac_status); }; }; then
  9873. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9874. else
  9875. echo "$as_me: failed program was:" >&5
  9876. sed 's/^/| /' conftest.$ac_ext >&5
  9877. fi
  9878. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9879. done
  9880. done
  9881. done
  9882. # Provide a safe default value.
  9883. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9884. fi
  9885. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9886. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9887. ac_save_IFS=$IFS; IFS=','
  9888. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9889. IFS=$ac_save_IFS
  9890. shift
  9891. cat >>confdefs.h <<_ACEOF
  9892. #define SELECT_TYPE_ARG1 $1
  9893. _ACEOF
  9894. cat >>confdefs.h <<_ACEOF
  9895. #define SELECT_TYPE_ARG234 ($2)
  9896. _ACEOF
  9897. cat >>confdefs.h <<_ACEOF
  9898. #define SELECT_TYPE_ARG5 ($3)
  9899. _ACEOF
  9900. rm -f conftest*
  9901. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9902. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9903. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9904. echo $ECHO_N "(cached) $ECHO_C" >&6
  9905. else
  9906. if test "$cross_compiling" = yes; then
  9907. ac_cv_func_stat_empty_string_bug=yes
  9908. else
  9909. cat >conftest.$ac_ext <<_ACEOF
  9910. /* confdefs.h. */
  9911. _ACEOF
  9912. cat confdefs.h >>conftest.$ac_ext
  9913. cat >>conftest.$ac_ext <<_ACEOF
  9914. /* end confdefs.h. */
  9915. $ac_includes_default
  9916. int
  9917. main ()
  9918. {
  9919. struct stat sbuf;
  9920. exit (stat ("", &sbuf) ? 1 : 0);
  9921. ;
  9922. return 0;
  9923. }
  9924. _ACEOF
  9925. rm -f conftest$ac_exeext
  9926. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9927. (eval $ac_link) 2>&5
  9928. ac_status=$?
  9929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9930. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9932. (eval $ac_try) 2>&5
  9933. ac_status=$?
  9934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9935. (exit $ac_status); }; }; then
  9936. ac_cv_func_stat_empty_string_bug=yes
  9937. else
  9938. echo "$as_me: program exited with status $ac_status" >&5
  9939. echo "$as_me: failed program was:" >&5
  9940. sed 's/^/| /' conftest.$ac_ext >&5
  9941. ( exit $ac_status )
  9942. ac_cv_func_stat_empty_string_bug=no
  9943. fi
  9944. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9945. fi
  9946. fi
  9947. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9948. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9949. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9950. case $LIBOBJS in
  9951. "stat.$ac_objext" | \
  9952. *" stat.$ac_objext" | \
  9953. "stat.$ac_objext "* | \
  9954. *" stat.$ac_objext "* ) ;;
  9955. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9956. esac
  9957. cat >>confdefs.h <<_ACEOF
  9958. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9959. _ACEOF
  9960. fi
  9961. for ac_func in strftime
  9962. do
  9963. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9964. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9965. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9966. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9967. echo $ECHO_N "(cached) $ECHO_C" >&6
  9968. else
  9969. cat >conftest.$ac_ext <<_ACEOF
  9970. /* confdefs.h. */
  9971. _ACEOF
  9972. cat confdefs.h >>conftest.$ac_ext
  9973. cat >>conftest.$ac_ext <<_ACEOF
  9974. /* end confdefs.h. */
  9975. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9976. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9977. #define $ac_func innocuous_$ac_func
  9978. /* System header to define __stub macros and hopefully few prototypes,
  9979. which can conflict with char $ac_func (); below.
  9980. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9981. <limits.h> exists even on freestanding compilers. */
  9982. #ifdef __STDC__
  9983. # include <limits.h>
  9984. #else
  9985. # include <assert.h>
  9986. #endif
  9987. #undef $ac_func
  9988. /* Override any gcc2 internal prototype to avoid an error. */
  9989. #ifdef __cplusplus
  9990. extern "C"
  9991. {
  9992. #endif
  9993. /* We use char because int might match the return type of a gcc2
  9994. builtin and then its argument prototype would still apply. */
  9995. char $ac_func ();
  9996. /* The GNU C library defines this for functions which it implements
  9997. to always fail with ENOSYS. Some functions are actually named
  9998. something starting with __ and the normal name is an alias. */
  9999. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10000. choke me
  10001. #else
  10002. char (*f) () = $ac_func;
  10003. #endif
  10004. #ifdef __cplusplus
  10005. }
  10006. #endif
  10007. int
  10008. main ()
  10009. {
  10010. return f != $ac_func;
  10011. ;
  10012. return 0;
  10013. }
  10014. _ACEOF
  10015. rm -f conftest.$ac_objext conftest$ac_exeext
  10016. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10017. (eval $ac_link) 2>conftest.er1
  10018. ac_status=$?
  10019. grep -v '^ *+' conftest.er1 >conftest.err
  10020. rm -f conftest.er1
  10021. cat conftest.err >&5
  10022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10023. (exit $ac_status); } &&
  10024. { ac_try='test -z "$ac_c_werror_flag"
  10025. || test ! -s conftest.err'
  10026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10027. (eval $ac_try) 2>&5
  10028. ac_status=$?
  10029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10030. (exit $ac_status); }; } &&
  10031. { ac_try='test -s conftest$ac_exeext'
  10032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10033. (eval $ac_try) 2>&5
  10034. ac_status=$?
  10035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10036. (exit $ac_status); }; }; then
  10037. eval "$as_ac_var=yes"
  10038. else
  10039. echo "$as_me: failed program was:" >&5
  10040. sed 's/^/| /' conftest.$ac_ext >&5
  10041. eval "$as_ac_var=no"
  10042. fi
  10043. rm -f conftest.err conftest.$ac_objext \
  10044. conftest$ac_exeext conftest.$ac_ext
  10045. fi
  10046. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10047. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10048. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10049. cat >>confdefs.h <<_ACEOF
  10050. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10051. _ACEOF
  10052. else
  10053. # strftime is in -lintl on SCO UNIX.
  10054. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10055. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10056. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10057. echo $ECHO_N "(cached) $ECHO_C" >&6
  10058. else
  10059. ac_check_lib_save_LIBS=$LIBS
  10060. LIBS="-lintl $LIBS"
  10061. cat >conftest.$ac_ext <<_ACEOF
  10062. /* confdefs.h. */
  10063. _ACEOF
  10064. cat confdefs.h >>conftest.$ac_ext
  10065. cat >>conftest.$ac_ext <<_ACEOF
  10066. /* end confdefs.h. */
  10067. /* Override any gcc2 internal prototype to avoid an error. */
  10068. #ifdef __cplusplus
  10069. extern "C"
  10070. #endif
  10071. /* We use char because int might match the return type of a gcc2
  10072. builtin and then its argument prototype would still apply. */
  10073. char strftime ();
  10074. int
  10075. main ()
  10076. {
  10077. strftime ();
  10078. ;
  10079. return 0;
  10080. }
  10081. _ACEOF
  10082. rm -f conftest.$ac_objext conftest$ac_exeext
  10083. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10084. (eval $ac_link) 2>conftest.er1
  10085. ac_status=$?
  10086. grep -v '^ *+' conftest.er1 >conftest.err
  10087. rm -f conftest.er1
  10088. cat conftest.err >&5
  10089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10090. (exit $ac_status); } &&
  10091. { ac_try='test -z "$ac_c_werror_flag"
  10092. || test ! -s conftest.err'
  10093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10094. (eval $ac_try) 2>&5
  10095. ac_status=$?
  10096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10097. (exit $ac_status); }; } &&
  10098. { ac_try='test -s conftest$ac_exeext'
  10099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10100. (eval $ac_try) 2>&5
  10101. ac_status=$?
  10102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10103. (exit $ac_status); }; }; then
  10104. ac_cv_lib_intl_strftime=yes
  10105. else
  10106. echo "$as_me: failed program was:" >&5
  10107. sed 's/^/| /' conftest.$ac_ext >&5
  10108. ac_cv_lib_intl_strftime=no
  10109. fi
  10110. rm -f conftest.err conftest.$ac_objext \
  10111. conftest$ac_exeext conftest.$ac_ext
  10112. LIBS=$ac_check_lib_save_LIBS
  10113. fi
  10114. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10115. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10116. if test $ac_cv_lib_intl_strftime = yes; then
  10117. cat >>confdefs.h <<\_ACEOF
  10118. #define HAVE_STRFTIME 1
  10119. _ACEOF
  10120. LIBS="-lintl $LIBS"
  10121. fi
  10122. fi
  10123. done
  10124. #checkpoint
  10125. cat >confcache <<\_ACEOF
  10126. # This file is a shell script that caches the results of configure
  10127. # tests run on this system so they can be shared between configure
  10128. # scripts and configure runs, see configure's option --config-cache.
  10129. # It is not useful on other systems. If it contains results you don't
  10130. # want to keep, you may remove or edit it.
  10131. #
  10132. # config.status only pays attention to the cache file if you give it
  10133. # the --recheck option to rerun configure.
  10134. #
  10135. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10136. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10137. # following values.
  10138. _ACEOF
  10139. # The following way of writing the cache mishandles newlines in values,
  10140. # but we know of no workaround that is simple, portable, and efficient.
  10141. # So, don't put newlines in cache variables' values.
  10142. # Ultrix sh set writes to stderr and can't be redirected directly,
  10143. # and sets the high bit in the cache file unless we assign to the vars.
  10144. {
  10145. (set) 2>&1 |
  10146. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10147. *ac_space=\ *)
  10148. # `set' does not quote correctly, so add quotes (double-quote
  10149. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10150. sed -n \
  10151. "s/'/'\\\\''/g;
  10152. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10153. ;;
  10154. *)
  10155. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10156. sed -n \
  10157. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10158. ;;
  10159. esac;
  10160. } |
  10161. sed '
  10162. t clear
  10163. : clear
  10164. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10165. t end
  10166. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10167. : end' >>confcache
  10168. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10169. if test -w $cache_file; then
  10170. test "x$cache_file" != "x/dev/null"
  10171. cat confcache >$cache_file
  10172. else
  10173. echo "not updating unwritable cache $cache_file"
  10174. fi
  10175. fi
  10176. rm -f confcache
  10177. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10178. do
  10179. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10180. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10181. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10182. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10183. echo $ECHO_N "(cached) $ECHO_C" >&6
  10184. else
  10185. cat >conftest.$ac_ext <<_ACEOF
  10186. /* confdefs.h. */
  10187. _ACEOF
  10188. cat confdefs.h >>conftest.$ac_ext
  10189. cat >>conftest.$ac_ext <<_ACEOF
  10190. /* end confdefs.h. */
  10191. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10192. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10193. #define $ac_func innocuous_$ac_func
  10194. /* System header to define __stub macros and hopefully few prototypes,
  10195. which can conflict with char $ac_func (); below.
  10196. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10197. <limits.h> exists even on freestanding compilers. */
  10198. #ifdef __STDC__
  10199. # include <limits.h>
  10200. #else
  10201. # include <assert.h>
  10202. #endif
  10203. #undef $ac_func
  10204. /* Override any gcc2 internal prototype to avoid an error. */
  10205. #ifdef __cplusplus
  10206. extern "C"
  10207. {
  10208. #endif
  10209. /* We use char because int might match the return type of a gcc2
  10210. builtin and then its argument prototype would still apply. */
  10211. char $ac_func ();
  10212. /* The GNU C library defines this for functions which it implements
  10213. to always fail with ENOSYS. Some functions are actually named
  10214. something starting with __ and the normal name is an alias. */
  10215. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10216. choke me
  10217. #else
  10218. char (*f) () = $ac_func;
  10219. #endif
  10220. #ifdef __cplusplus
  10221. }
  10222. #endif
  10223. int
  10224. main ()
  10225. {
  10226. return f != $ac_func;
  10227. ;
  10228. return 0;
  10229. }
  10230. _ACEOF
  10231. rm -f conftest.$ac_objext conftest$ac_exeext
  10232. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10233. (eval $ac_link) 2>conftest.er1
  10234. ac_status=$?
  10235. grep -v '^ *+' conftest.er1 >conftest.err
  10236. rm -f conftest.er1
  10237. cat conftest.err >&5
  10238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10239. (exit $ac_status); } &&
  10240. { ac_try='test -z "$ac_c_werror_flag"
  10241. || test ! -s conftest.err'
  10242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10243. (eval $ac_try) 2>&5
  10244. ac_status=$?
  10245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10246. (exit $ac_status); }; } &&
  10247. { ac_try='test -s conftest$ac_exeext'
  10248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10249. (eval $ac_try) 2>&5
  10250. ac_status=$?
  10251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10252. (exit $ac_status); }; }; then
  10253. eval "$as_ac_var=yes"
  10254. else
  10255. echo "$as_me: failed program was:" >&5
  10256. sed 's/^/| /' conftest.$ac_ext >&5
  10257. eval "$as_ac_var=no"
  10258. fi
  10259. rm -f conftest.err conftest.$ac_objext \
  10260. conftest$ac_exeext conftest.$ac_ext
  10261. fi
  10262. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10263. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10264. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10265. cat >>confdefs.h <<_ACEOF
  10266. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10267. _ACEOF
  10268. fi
  10269. done
  10270. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10271. do
  10272. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10273. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10274. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10275. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10276. echo $ECHO_N "(cached) $ECHO_C" >&6
  10277. else
  10278. cat >conftest.$ac_ext <<_ACEOF
  10279. /* confdefs.h. */
  10280. _ACEOF
  10281. cat confdefs.h >>conftest.$ac_ext
  10282. cat >>conftest.$ac_ext <<_ACEOF
  10283. /* end confdefs.h. */
  10284. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10285. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10286. #define $ac_func innocuous_$ac_func
  10287. /* System header to define __stub macros and hopefully few prototypes,
  10288. which can conflict with char $ac_func (); below.
  10289. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10290. <limits.h> exists even on freestanding compilers. */
  10291. #ifdef __STDC__
  10292. # include <limits.h>
  10293. #else
  10294. # include <assert.h>
  10295. #endif
  10296. #undef $ac_func
  10297. /* Override any gcc2 internal prototype to avoid an error. */
  10298. #ifdef __cplusplus
  10299. extern "C"
  10300. {
  10301. #endif
  10302. /* We use char because int might match the return type of a gcc2
  10303. builtin and then its argument prototype would still apply. */
  10304. char $ac_func ();
  10305. /* The GNU C library defines this for functions which it implements
  10306. to always fail with ENOSYS. Some functions are actually named
  10307. something starting with __ and the normal name is an alias. */
  10308. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10309. choke me
  10310. #else
  10311. char (*f) () = $ac_func;
  10312. #endif
  10313. #ifdef __cplusplus
  10314. }
  10315. #endif
  10316. int
  10317. main ()
  10318. {
  10319. return f != $ac_func;
  10320. ;
  10321. return 0;
  10322. }
  10323. _ACEOF
  10324. rm -f conftest.$ac_objext conftest$ac_exeext
  10325. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10326. (eval $ac_link) 2>conftest.er1
  10327. ac_status=$?
  10328. grep -v '^ *+' conftest.er1 >conftest.err
  10329. rm -f conftest.er1
  10330. cat conftest.err >&5
  10331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10332. (exit $ac_status); } &&
  10333. { ac_try='test -z "$ac_c_werror_flag"
  10334. || test ! -s conftest.err'
  10335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10336. (eval $ac_try) 2>&5
  10337. ac_status=$?
  10338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10339. (exit $ac_status); }; } &&
  10340. { ac_try='test -s conftest$ac_exeext'
  10341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10342. (eval $ac_try) 2>&5
  10343. ac_status=$?
  10344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10345. (exit $ac_status); }; }; then
  10346. eval "$as_ac_var=yes"
  10347. else
  10348. echo "$as_me: failed program was:" >&5
  10349. sed 's/^/| /' conftest.$ac_ext >&5
  10350. eval "$as_ac_var=no"
  10351. fi
  10352. rm -f conftest.err conftest.$ac_objext \
  10353. conftest$ac_exeext conftest.$ac_ext
  10354. fi
  10355. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10356. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10357. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10358. cat >>confdefs.h <<_ACEOF
  10359. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10360. _ACEOF
  10361. fi
  10362. done
  10363. #checkpoint
  10364. cat >confcache <<\_ACEOF
  10365. # This file is a shell script that caches the results of configure
  10366. # tests run on this system so they can be shared between configure
  10367. # scripts and configure runs, see configure's option --config-cache.
  10368. # It is not useful on other systems. If it contains results you don't
  10369. # want to keep, you may remove or edit it.
  10370. #
  10371. # config.status only pays attention to the cache file if you give it
  10372. # the --recheck option to rerun configure.
  10373. #
  10374. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10375. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10376. # following values.
  10377. _ACEOF
  10378. # The following way of writing the cache mishandles newlines in values,
  10379. # but we know of no workaround that is simple, portable, and efficient.
  10380. # So, don't put newlines in cache variables' values.
  10381. # Ultrix sh set writes to stderr and can't be redirected directly,
  10382. # and sets the high bit in the cache file unless we assign to the vars.
  10383. {
  10384. (set) 2>&1 |
  10385. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10386. *ac_space=\ *)
  10387. # `set' does not quote correctly, so add quotes (double-quote
  10388. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10389. sed -n \
  10390. "s/'/'\\\\''/g;
  10391. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10392. ;;
  10393. *)
  10394. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10395. sed -n \
  10396. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10397. ;;
  10398. esac;
  10399. } |
  10400. sed '
  10401. t clear
  10402. : clear
  10403. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10404. t end
  10405. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10406. : end' >>confcache
  10407. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10408. if test -w $cache_file; then
  10409. test "x$cache_file" != "x/dev/null"
  10410. cat confcache >$cache_file
  10411. else
  10412. echo "not updating unwritable cache $cache_file"
  10413. fi
  10414. fi
  10415. rm -f confcache
  10416. for ac_func in strcasecmp strncasecmp vsnprintf
  10417. do
  10418. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10419. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10420. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10421. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10422. echo $ECHO_N "(cached) $ECHO_C" >&6
  10423. else
  10424. cat >conftest.$ac_ext <<_ACEOF
  10425. /* confdefs.h. */
  10426. _ACEOF
  10427. cat confdefs.h >>conftest.$ac_ext
  10428. cat >>conftest.$ac_ext <<_ACEOF
  10429. /* end confdefs.h. */
  10430. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10431. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10432. #define $ac_func innocuous_$ac_func
  10433. /* System header to define __stub macros and hopefully few prototypes,
  10434. which can conflict with char $ac_func (); below.
  10435. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10436. <limits.h> exists even on freestanding compilers. */
  10437. #ifdef __STDC__
  10438. # include <limits.h>
  10439. #else
  10440. # include <assert.h>
  10441. #endif
  10442. #undef $ac_func
  10443. /* Override any gcc2 internal prototype to avoid an error. */
  10444. #ifdef __cplusplus
  10445. extern "C"
  10446. {
  10447. #endif
  10448. /* We use char because int might match the return type of a gcc2
  10449. builtin and then its argument prototype would still apply. */
  10450. char $ac_func ();
  10451. /* The GNU C library defines this for functions which it implements
  10452. to always fail with ENOSYS. Some functions are actually named
  10453. something starting with __ and the normal name is an alias. */
  10454. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10455. choke me
  10456. #else
  10457. char (*f) () = $ac_func;
  10458. #endif
  10459. #ifdef __cplusplus
  10460. }
  10461. #endif
  10462. int
  10463. main ()
  10464. {
  10465. return f != $ac_func;
  10466. ;
  10467. return 0;
  10468. }
  10469. _ACEOF
  10470. rm -f conftest.$ac_objext conftest$ac_exeext
  10471. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10472. (eval $ac_link) 2>conftest.er1
  10473. ac_status=$?
  10474. grep -v '^ *+' conftest.er1 >conftest.err
  10475. rm -f conftest.er1
  10476. cat conftest.err >&5
  10477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10478. (exit $ac_status); } &&
  10479. { ac_try='test -z "$ac_c_werror_flag"
  10480. || test ! -s conftest.err'
  10481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10482. (eval $ac_try) 2>&5
  10483. ac_status=$?
  10484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10485. (exit $ac_status); }; } &&
  10486. { ac_try='test -s conftest$ac_exeext'
  10487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10488. (eval $ac_try) 2>&5
  10489. ac_status=$?
  10490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10491. (exit $ac_status); }; }; then
  10492. eval "$as_ac_var=yes"
  10493. else
  10494. echo "$as_me: failed program was:" >&5
  10495. sed 's/^/| /' conftest.$ac_ext >&5
  10496. eval "$as_ac_var=no"
  10497. fi
  10498. rm -f conftest.err conftest.$ac_objext \
  10499. conftest$ac_exeext conftest.$ac_ext
  10500. fi
  10501. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10502. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10503. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10504. cat >>confdefs.h <<_ACEOF
  10505. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10506. _ACEOF
  10507. fi
  10508. done
  10509. #autoscan suggested this....
  10510. #These are recommended by autoscan, but no code supports it currently
  10511. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10512. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10513. for ac_func in vsprintf
  10514. do
  10515. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10516. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10517. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10518. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10519. echo $ECHO_N "(cached) $ECHO_C" >&6
  10520. else
  10521. cat >conftest.$ac_ext <<_ACEOF
  10522. /* confdefs.h. */
  10523. _ACEOF
  10524. cat confdefs.h >>conftest.$ac_ext
  10525. cat >>conftest.$ac_ext <<_ACEOF
  10526. /* end confdefs.h. */
  10527. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10528. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10529. #define $ac_func innocuous_$ac_func
  10530. /* System header to define __stub macros and hopefully few prototypes,
  10531. which can conflict with char $ac_func (); below.
  10532. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10533. <limits.h> exists even on freestanding compilers. */
  10534. #ifdef __STDC__
  10535. # include <limits.h>
  10536. #else
  10537. # include <assert.h>
  10538. #endif
  10539. #undef $ac_func
  10540. /* Override any gcc2 internal prototype to avoid an error. */
  10541. #ifdef __cplusplus
  10542. extern "C"
  10543. {
  10544. #endif
  10545. /* We use char because int might match the return type of a gcc2
  10546. builtin and then its argument prototype would still apply. */
  10547. char $ac_func ();
  10548. /* The GNU C library defines this for functions which it implements
  10549. to always fail with ENOSYS. Some functions are actually named
  10550. something starting with __ and the normal name is an alias. */
  10551. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10552. choke me
  10553. #else
  10554. char (*f) () = $ac_func;
  10555. #endif
  10556. #ifdef __cplusplus
  10557. }
  10558. #endif
  10559. int
  10560. main ()
  10561. {
  10562. return f != $ac_func;
  10563. ;
  10564. return 0;
  10565. }
  10566. _ACEOF
  10567. rm -f conftest.$ac_objext conftest$ac_exeext
  10568. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10569. (eval $ac_link) 2>conftest.er1
  10570. ac_status=$?
  10571. grep -v '^ *+' conftest.er1 >conftest.err
  10572. rm -f conftest.er1
  10573. cat conftest.err >&5
  10574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10575. (exit $ac_status); } &&
  10576. { ac_try='test -z "$ac_c_werror_flag"
  10577. || test ! -s conftest.err'
  10578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10579. (eval $ac_try) 2>&5
  10580. ac_status=$?
  10581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10582. (exit $ac_status); }; } &&
  10583. { ac_try='test -s conftest$ac_exeext'
  10584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10585. (eval $ac_try) 2>&5
  10586. ac_status=$?
  10587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10588. (exit $ac_status); }; }; then
  10589. eval "$as_ac_var=yes"
  10590. else
  10591. echo "$as_me: failed program was:" >&5
  10592. sed 's/^/| /' conftest.$ac_ext >&5
  10593. eval "$as_ac_var=no"
  10594. fi
  10595. rm -f conftest.err conftest.$ac_objext \
  10596. conftest$ac_exeext conftest.$ac_ext
  10597. fi
  10598. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10599. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10600. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10601. cat >>confdefs.h <<_ACEOF
  10602. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10603. _ACEOF
  10604. fi
  10605. done
  10606. if test "$ac_cv_func_vsprintf" = "no"
  10607. then
  10608. cat << 'EOF' >&2
  10609. configure: error:
  10610. Your system does not have the sprintf/vsprintf libraries.
  10611. These are required to compile almost anything. Sorry.
  10612. EOF
  10613. exit 1
  10614. fi
  10615. for ac_func in uname
  10616. do
  10617. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10618. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10619. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10620. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10621. echo $ECHO_N "(cached) $ECHO_C" >&6
  10622. else
  10623. cat >conftest.$ac_ext <<_ACEOF
  10624. /* confdefs.h. */
  10625. _ACEOF
  10626. cat confdefs.h >>conftest.$ac_ext
  10627. cat >>conftest.$ac_ext <<_ACEOF
  10628. /* end confdefs.h. */
  10629. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10630. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10631. #define $ac_func innocuous_$ac_func
  10632. /* System header to define __stub macros and hopefully few prototypes,
  10633. which can conflict with char $ac_func (); below.
  10634. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10635. <limits.h> exists even on freestanding compilers. */
  10636. #ifdef __STDC__
  10637. # include <limits.h>
  10638. #else
  10639. # include <assert.h>
  10640. #endif
  10641. #undef $ac_func
  10642. /* Override any gcc2 internal prototype to avoid an error. */
  10643. #ifdef __cplusplus
  10644. extern "C"
  10645. {
  10646. #endif
  10647. /* We use char because int might match the return type of a gcc2
  10648. builtin and then its argument prototype would still apply. */
  10649. char $ac_func ();
  10650. /* The GNU C library defines this for functions which it implements
  10651. to always fail with ENOSYS. Some functions are actually named
  10652. something starting with __ and the normal name is an alias. */
  10653. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10654. choke me
  10655. #else
  10656. char (*f) () = $ac_func;
  10657. #endif
  10658. #ifdef __cplusplus
  10659. }
  10660. #endif
  10661. int
  10662. main ()
  10663. {
  10664. return f != $ac_func;
  10665. ;
  10666. return 0;
  10667. }
  10668. _ACEOF
  10669. rm -f conftest.$ac_objext conftest$ac_exeext
  10670. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10671. (eval $ac_link) 2>conftest.er1
  10672. ac_status=$?
  10673. grep -v '^ *+' conftest.er1 >conftest.err
  10674. rm -f conftest.er1
  10675. cat conftest.err >&5
  10676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10677. (exit $ac_status); } &&
  10678. { ac_try='test -z "$ac_c_werror_flag"
  10679. || test ! -s conftest.err'
  10680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10681. (eval $ac_try) 2>&5
  10682. ac_status=$?
  10683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10684. (exit $ac_status); }; } &&
  10685. { ac_try='test -s conftest$ac_exeext'
  10686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10687. (eval $ac_try) 2>&5
  10688. ac_status=$?
  10689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10690. (exit $ac_status); }; }; then
  10691. eval "$as_ac_var=yes"
  10692. else
  10693. echo "$as_me: failed program was:" >&5
  10694. sed 's/^/| /' conftest.$ac_ext >&5
  10695. eval "$as_ac_var=no"
  10696. fi
  10697. rm -f conftest.err conftest.$ac_objext \
  10698. conftest$ac_exeext conftest.$ac_ext
  10699. fi
  10700. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10701. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10702. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10703. cat >>confdefs.h <<_ACEOF
  10704. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10705. _ACEOF
  10706. fi
  10707. done
  10708. if test "$ac_cv_func_uname" = "no"
  10709. then
  10710. cat << 'EOF' >&2
  10711. configure: error:
  10712. Your system does not have the uname() function.
  10713. This is required for the botpack.
  10714. EOF
  10715. exit 1
  10716. fi
  10717. # Make sure we have stdc headers, since we can't compile without them
  10718. if test "$ac_cv_header_stdc" = "no"
  10719. then
  10720. cat << 'EOF' >&2
  10721. configure: error:
  10722. Your system must support ANSI C Header files.
  10723. These are required for the language support. Sorry.
  10724. EOF
  10725. exit 1
  10726. fi
  10727. #checkpoint
  10728. cat >confcache <<\_ACEOF
  10729. # This file is a shell script that caches the results of configure
  10730. # tests run on this system so they can be shared between configure
  10731. # scripts and configure runs, see configure's option --config-cache.
  10732. # It is not useful on other systems. If it contains results you don't
  10733. # want to keep, you may remove or edit it.
  10734. #
  10735. # config.status only pays attention to the cache file if you give it
  10736. # the --recheck option to rerun configure.
  10737. #
  10738. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10739. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10740. # following values.
  10741. _ACEOF
  10742. # The following way of writing the cache mishandles newlines in values,
  10743. # but we know of no workaround that is simple, portable, and efficient.
  10744. # So, don't put newlines in cache variables' values.
  10745. # Ultrix sh set writes to stderr and can't be redirected directly,
  10746. # and sets the high bit in the cache file unless we assign to the vars.
  10747. {
  10748. (set) 2>&1 |
  10749. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10750. *ac_space=\ *)
  10751. # `set' does not quote correctly, so add quotes (double-quote
  10752. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10753. sed -n \
  10754. "s/'/'\\\\''/g;
  10755. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10756. ;;
  10757. *)
  10758. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10759. sed -n \
  10760. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10761. ;;
  10762. esac;
  10763. } |
  10764. sed '
  10765. t clear
  10766. : clear
  10767. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10768. t end
  10769. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10770. : end' >>confcache
  10771. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10772. if test -w $cache_file; then
  10773. test "x$cache_file" != "x/dev/null"
  10774. cat confcache >$cache_file
  10775. else
  10776. echo "not updating unwritable cache $cache_file"
  10777. fi
  10778. fi
  10779. rm -f confcache
  10780. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10781. if ! test -f $cfg; then
  10782. cat << EOF >&2
  10783. configure: error:
  10784. Your pack cfg is missing, please copy it to $srcdir/$cfg
  10785. Or specify the path to it with: --with-cfg=
  10786. EOF
  10787. exit 1
  10788. fi
  10789. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  10790. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10791. cat >>confdefs.h <<_ACEOF
  10792. #define EGG_VERSION $version_num
  10793. _ACEOF
  10794. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  10795. u_define="S_$define"
  10796. cat >>confdefs.h <<_ACEOF
  10797. #define $u_define 1
  10798. _ACEOF
  10799. CFG="$cfg"
  10800. done
  10801. case "$srcdir" in
  10802. [\\/]* | ?:[\\/]*)
  10803. MOD_UPDIR=""
  10804. ;;
  10805. *)
  10806. MOD_UPDIR="../"
  10807. ;;
  10808. esac
  10809. 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"
  10810. for mf in $files; do
  10811. # Strip MF so we end up with the name of the file.
  10812. # echo "MF: $mf"
  10813. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10814. dirpart=`(dirname "$mf") 2>/dev/null ||
  10815. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10816. X"$mf" : 'X\(//\)[^/]' \| \
  10817. X"$mf" : 'X\(//\)$' \| \
  10818. X"$mf" : 'X\(/\)' \| \
  10819. . : '\(.\)' 2>/dev/null ||
  10820. echo X"$mf" |
  10821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10822. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10823. /^X\(\/\/\)$/{ s//\1/; q; }
  10824. /^X\(\/\).*/{ s//\1/; q; }
  10825. s/.*/./; q'`
  10826. # echo "dirpart: $dirpart mf: $mf"
  10827. # rm -rf "$dirpart/.deps/"
  10828. rm -f "$dirpart/.deps/includes"
  10829. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10830. for file in `sed -n -e '
  10831. /^OBJS = .*\\\\$/ {
  10832. s/^OBJS = //
  10833. :loop
  10834. s/\\\\$//
  10835. p
  10836. n
  10837. /\\\\$/ b loop
  10838. p
  10839. }
  10840. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10841. do
  10842. base=`basename $file .o`
  10843. test -f "$dirpart/$base.c" || continue
  10844. if ! test -f "$dirpart/.deps/$base.Po"; then
  10845. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10846. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10847. if test -f "$dirpart/$base.o"; then
  10848. rm -f "$dirpart/$base.o"
  10849. fi
  10850. fi
  10851. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10852. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10853. done
  10854. done
  10855. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10856. cat >confcache <<\_ACEOF
  10857. # This file is a shell script that caches the results of configure
  10858. # tests run on this system so they can be shared between configure
  10859. # scripts and configure runs, see configure's option --config-cache.
  10860. # It is not useful on other systems. If it contains results you don't
  10861. # want to keep, you may remove or edit it.
  10862. #
  10863. # config.status only pays attention to the cache file if you give it
  10864. # the --recheck option to rerun configure.
  10865. #
  10866. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10867. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10868. # following values.
  10869. _ACEOF
  10870. # The following way of writing the cache mishandles newlines in values,
  10871. # but we know of no workaround that is simple, portable, and efficient.
  10872. # So, don't put newlines in cache variables' values.
  10873. # Ultrix sh set writes to stderr and can't be redirected directly,
  10874. # and sets the high bit in the cache file unless we assign to the vars.
  10875. {
  10876. (set) 2>&1 |
  10877. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10878. *ac_space=\ *)
  10879. # `set' does not quote correctly, so add quotes (double-quote
  10880. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10881. sed -n \
  10882. "s/'/'\\\\''/g;
  10883. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10884. ;;
  10885. *)
  10886. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10887. sed -n \
  10888. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10889. ;;
  10890. esac;
  10891. } |
  10892. sed '
  10893. t clear
  10894. : clear
  10895. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10896. t end
  10897. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10898. : end' >>confcache
  10899. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10900. if test -w $cache_file; then
  10901. test "x$cache_file" != "x/dev/null"
  10902. cat confcache >$cache_file
  10903. else
  10904. echo "not updating unwritable cache $cache_file"
  10905. fi
  10906. fi
  10907. rm -f confcache
  10908. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10909. # Let make expand exec_prefix.
  10910. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10911. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10912. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10913. # trailing colons and then remove the whole line if VPATH becomes empty
  10914. # (actually we leave an empty line to preserve line numbers).
  10915. if test "x$srcdir" = x.; then
  10916. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10917. s/:*\$(srcdir):*/:/;
  10918. s/:*\${srcdir}:*/:/;
  10919. s/:*@srcdir@:*/:/;
  10920. s/^\([^=]*=[ ]*\):*/\1/;
  10921. s/:*$//;
  10922. s/^[^=]*=[ ]*$//;
  10923. }'
  10924. fi
  10925. DEFS=-DHAVE_CONFIG_H
  10926. ac_libobjs=
  10927. ac_ltlibobjs=
  10928. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10929. # 1. Remove the extension, and $U if already installed.
  10930. ac_i=`echo "$ac_i" |
  10931. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10932. # 2. Add them.
  10933. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10934. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10935. done
  10936. LIBOBJS=$ac_libobjs
  10937. LTLIBOBJS=$ac_ltlibobjs
  10938. : ${CONFIG_STATUS=./config.status}
  10939. ac_clean_files_save=$ac_clean_files
  10940. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10941. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10942. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10943. cat >$CONFIG_STATUS <<_ACEOF
  10944. #! $SHELL
  10945. # Generated by $as_me.
  10946. # Run this file to recreate the current configuration.
  10947. # Compiler output produced by configure, useful for debugging
  10948. # configure, is in config.log if it exists.
  10949. debug=false
  10950. ac_cs_recheck=false
  10951. ac_cs_silent=false
  10952. SHELL=\${CONFIG_SHELL-$SHELL}
  10953. _ACEOF
  10954. cat >>$CONFIG_STATUS <<\_ACEOF
  10955. ## --------------------- ##
  10956. ## M4sh Initialization. ##
  10957. ## --------------------- ##
  10958. # Be Bourne compatible
  10959. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10960. emulate sh
  10961. NULLCMD=:
  10962. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10963. # is contrary to our usage. Disable this feature.
  10964. alias -g '${1+"$@"}'='"$@"'
  10965. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10966. set -o posix
  10967. fi
  10968. DUALCASE=1; export DUALCASE # for MKS sh
  10969. # Support unset when possible.
  10970. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10971. as_unset=unset
  10972. else
  10973. as_unset=false
  10974. fi
  10975. # Work around bugs in pre-3.0 UWIN ksh.
  10976. $as_unset ENV MAIL MAILPATH
  10977. PS1='$ '
  10978. PS2='> '
  10979. PS4='+ '
  10980. # NLS nuisances.
  10981. for as_var in \
  10982. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10983. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10984. LC_TELEPHONE LC_TIME
  10985. do
  10986. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10987. eval $as_var=C; export $as_var
  10988. else
  10989. $as_unset $as_var
  10990. fi
  10991. done
  10992. # Required to use basename.
  10993. if expr a : '\(a\)' >/dev/null 2>&1; then
  10994. as_expr=expr
  10995. else
  10996. as_expr=false
  10997. fi
  10998. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10999. as_basename=basename
  11000. else
  11001. as_basename=false
  11002. fi
  11003. # Name of the executable.
  11004. as_me=`$as_basename "$0" ||
  11005. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11006. X"$0" : 'X\(//\)$' \| \
  11007. X"$0" : 'X\(/\)$' \| \
  11008. . : '\(.\)' 2>/dev/null ||
  11009. echo X/"$0" |
  11010. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11011. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11012. /^X\/\(\/\).*/{ s//\1/; q; }
  11013. s/.*/./; q'`
  11014. # PATH needs CR, and LINENO needs CR and PATH.
  11015. # Avoid depending upon Character Ranges.
  11016. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11017. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11018. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11019. as_cr_digits='0123456789'
  11020. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11021. # The user is always right.
  11022. if test "${PATH_SEPARATOR+set}" != set; then
  11023. echo "#! /bin/sh" >conf$$.sh
  11024. echo "exit 0" >>conf$$.sh
  11025. chmod +x conf$$.sh
  11026. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11027. PATH_SEPARATOR=';'
  11028. else
  11029. PATH_SEPARATOR=:
  11030. fi
  11031. rm -f conf$$.sh
  11032. fi
  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" || {
  11038. # Find who we are. Look in the path if we contain no path at all
  11039. # relative or not.
  11040. case $0 in
  11041. *[\\/]* ) as_myself=$0 ;;
  11042. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11043. for as_dir in $PATH
  11044. do
  11045. IFS=$as_save_IFS
  11046. test -z "$as_dir" && as_dir=.
  11047. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11048. done
  11049. ;;
  11050. esac
  11051. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11052. # in which case we are not to be found in the path.
  11053. if test "x$as_myself" = x; then
  11054. as_myself=$0
  11055. fi
  11056. if test ! -f "$as_myself"; then
  11057. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11058. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11059. { (exit 1); exit 1; }; }
  11060. fi
  11061. case $CONFIG_SHELL in
  11062. '')
  11063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11064. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11065. do
  11066. IFS=$as_save_IFS
  11067. test -z "$as_dir" && as_dir=.
  11068. for as_base in sh bash ksh sh5; do
  11069. case $as_dir in
  11070. /*)
  11071. if ("$as_dir/$as_base" -c '
  11072. as_lineno_1=$LINENO
  11073. as_lineno_2=$LINENO
  11074. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11075. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11076. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11077. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11078. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11079. CONFIG_SHELL=$as_dir/$as_base
  11080. export CONFIG_SHELL
  11081. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11082. fi;;
  11083. esac
  11084. done
  11085. done
  11086. ;;
  11087. esac
  11088. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11089. # uniformly replaced by the line number. The first 'sed' inserts a
  11090. # line-number line before each line; the second 'sed' does the real
  11091. # work. The second script uses 'N' to pair each line-number line
  11092. # with the numbered line, and appends trailing '-' during
  11093. # substitution so that $LINENO is not a special case at line end.
  11094. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11095. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11096. sed '=' <$as_myself |
  11097. sed '
  11098. N
  11099. s,$,-,
  11100. : loop
  11101. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11102. t loop
  11103. s,-$,,
  11104. s,^['$as_cr_digits']*\n,,
  11105. ' >$as_me.lineno &&
  11106. chmod +x $as_me.lineno ||
  11107. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11108. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11109. { (exit 1); exit 1; }; }
  11110. # Don't try to exec as it changes $[0], causing all sort of problems
  11111. # (the dirname of $[0] is not the place where we might find the
  11112. # original and so on. Autoconf is especially sensible to this).
  11113. . ./$as_me.lineno
  11114. # Exit status is that of the last command.
  11115. exit
  11116. }
  11117. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11118. *c*,-n*) ECHO_N= ECHO_C='
  11119. ' ECHO_T=' ' ;;
  11120. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11121. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11122. esac
  11123. if expr a : '\(a\)' >/dev/null 2>&1; then
  11124. as_expr=expr
  11125. else
  11126. as_expr=false
  11127. fi
  11128. rm -f conf$$ conf$$.exe conf$$.file
  11129. echo >conf$$.file
  11130. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11131. # We could just check for DJGPP; but this test a) works b) is more generic
  11132. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11133. if test -f conf$$.exe; then
  11134. # Don't use ln at all; we don't have any links
  11135. as_ln_s='cp -p'
  11136. else
  11137. as_ln_s='ln -s'
  11138. fi
  11139. elif ln conf$$.file conf$$ 2>/dev/null; then
  11140. as_ln_s=ln
  11141. else
  11142. as_ln_s='cp -p'
  11143. fi
  11144. rm -f conf$$ conf$$.exe conf$$.file
  11145. if mkdir -p . 2>/dev/null; then
  11146. as_mkdir_p=:
  11147. else
  11148. test -d ./-p && rmdir ./-p
  11149. as_mkdir_p=false
  11150. fi
  11151. as_executable_p="test -f"
  11152. # Sed expression to map a string onto a valid CPP name.
  11153. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11154. # Sed expression to map a string onto a valid variable name.
  11155. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11156. # IFS
  11157. # We need space, tab and new line, in precisely that order.
  11158. as_nl='
  11159. '
  11160. IFS=" $as_nl"
  11161. # CDPATH.
  11162. $as_unset CDPATH
  11163. exec 6>&1
  11164. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11165. # report actual input values of CONFIG_FILES etc. instead of their
  11166. # values after options handling. Logging --version etc. is OK.
  11167. exec 5>>config.log
  11168. {
  11169. echo
  11170. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11171. ## Running $as_me. ##
  11172. _ASBOX
  11173. } >&5
  11174. cat >&5 <<_CSEOF
  11175. This file was extended by $as_me, which was
  11176. generated by GNU Autoconf 2.59. Invocation command line was
  11177. CONFIG_FILES = $CONFIG_FILES
  11178. CONFIG_HEADERS = $CONFIG_HEADERS
  11179. CONFIG_LINKS = $CONFIG_LINKS
  11180. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11181. $ $0 $@
  11182. _CSEOF
  11183. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11184. echo >&5
  11185. _ACEOF
  11186. # Files that config.status was made for.
  11187. if test -n "$ac_config_files"; then
  11188. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11189. fi
  11190. if test -n "$ac_config_headers"; then
  11191. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11192. fi
  11193. if test -n "$ac_config_links"; then
  11194. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11195. fi
  11196. if test -n "$ac_config_commands"; then
  11197. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11198. fi
  11199. cat >>$CONFIG_STATUS <<\_ACEOF
  11200. ac_cs_usage="\
  11201. \`$as_me' instantiates files from templates according to the
  11202. current configuration.
  11203. Usage: $0 [OPTIONS] [FILE]...
  11204. -h, --help print this help, then exit
  11205. -V, --version print version number, then exit
  11206. -q, --quiet do not print progress messages
  11207. -d, --debug don't remove temporary files
  11208. --recheck update $as_me by reconfiguring in the same conditions
  11209. --file=FILE[:TEMPLATE]
  11210. instantiate the configuration file FILE
  11211. --header=FILE[:TEMPLATE]
  11212. instantiate the configuration header FILE
  11213. Configuration files:
  11214. $config_files
  11215. Configuration headers:
  11216. $config_headers
  11217. Report bugs to <bug-autoconf@gnu.org>."
  11218. _ACEOF
  11219. cat >>$CONFIG_STATUS <<_ACEOF
  11220. ac_cs_version="\\
  11221. config.status
  11222. configured by $0, generated by GNU Autoconf 2.59,
  11223. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11224. Copyright (C) 2003 Free Software Foundation, Inc.
  11225. This config.status script is free software; the Free Software Foundation
  11226. gives unlimited permission to copy, distribute and modify it."
  11227. srcdir=$srcdir
  11228. _ACEOF
  11229. cat >>$CONFIG_STATUS <<\_ACEOF
  11230. # If no file are specified by the user, then we need to provide default
  11231. # value. By we need to know if files were specified by the user.
  11232. ac_need_defaults=:
  11233. while test $# != 0
  11234. do
  11235. case $1 in
  11236. --*=*)
  11237. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11238. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11239. ac_shift=:
  11240. ;;
  11241. -*)
  11242. ac_option=$1
  11243. ac_optarg=$2
  11244. ac_shift=shift
  11245. ;;
  11246. *) # This is not an option, so the user has probably given explicit
  11247. # arguments.
  11248. ac_option=$1
  11249. ac_need_defaults=false;;
  11250. esac
  11251. case $ac_option in
  11252. # Handling of the options.
  11253. _ACEOF
  11254. cat >>$CONFIG_STATUS <<\_ACEOF
  11255. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11256. ac_cs_recheck=: ;;
  11257. --version | --vers* | -V )
  11258. echo "$ac_cs_version"; exit 0 ;;
  11259. --he | --h)
  11260. # Conflict between --help and --header
  11261. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11262. Try \`$0 --help' for more information." >&5
  11263. echo "$as_me: error: ambiguous option: $1
  11264. Try \`$0 --help' for more information." >&2;}
  11265. { (exit 1); exit 1; }; };;
  11266. --help | --hel | -h )
  11267. echo "$ac_cs_usage"; exit 0 ;;
  11268. --debug | --d* | -d )
  11269. debug=: ;;
  11270. --file | --fil | --fi | --f )
  11271. $ac_shift
  11272. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11273. ac_need_defaults=false;;
  11274. --header | --heade | --head | --hea )
  11275. $ac_shift
  11276. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11277. ac_need_defaults=false;;
  11278. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11279. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11280. ac_cs_silent=: ;;
  11281. # This is an error.
  11282. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11283. Try \`$0 --help' for more information." >&5
  11284. echo "$as_me: error: unrecognized option: $1
  11285. Try \`$0 --help' for more information." >&2;}
  11286. { (exit 1); exit 1; }; } ;;
  11287. *) ac_config_targets="$ac_config_targets $1" ;;
  11288. esac
  11289. shift
  11290. done
  11291. ac_configure_extra_args=
  11292. if $ac_cs_silent; then
  11293. exec 6>/dev/null
  11294. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11295. fi
  11296. _ACEOF
  11297. cat >>$CONFIG_STATUS <<_ACEOF
  11298. if \$ac_cs_recheck; then
  11299. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11300. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11301. fi
  11302. _ACEOF
  11303. cat >>$CONFIG_STATUS <<\_ACEOF
  11304. for ac_config_target in $ac_config_targets
  11305. do
  11306. case "$ac_config_target" in
  11307. # Handling of arguments.
  11308. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11309. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11310. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11311. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11312. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11313. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11314. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11315. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11316. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11317. { (exit 1); exit 1; }; };;
  11318. esac
  11319. done
  11320. # If the user did not use the arguments to specify the items to instantiate,
  11321. # then the envvar interface is used. Set only those that are not.
  11322. # We use the long form for the default assignment because of an extremely
  11323. # bizarre bug on SunOS 4.1.3.
  11324. if $ac_need_defaults; then
  11325. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11326. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11327. fi
  11328. # Have a temporary directory for convenience. Make it in the build tree
  11329. # simply because there is no reason to put it here, and in addition,
  11330. # creating and moving files from /tmp can sometimes cause problems.
  11331. # Create a temporary directory, and hook for its removal unless debugging.
  11332. $debug ||
  11333. {
  11334. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11335. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11336. }
  11337. # Create a (secure) tmp directory for tmp files.
  11338. {
  11339. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11340. test -n "$tmp" && test -d "$tmp"
  11341. } ||
  11342. {
  11343. tmp=./confstat$$-$RANDOM
  11344. (umask 077 && mkdir $tmp)
  11345. } ||
  11346. {
  11347. echo "$me: cannot create a temporary directory in ." >&2
  11348. { (exit 1); exit 1; }
  11349. }
  11350. _ACEOF
  11351. cat >>$CONFIG_STATUS <<_ACEOF
  11352. #
  11353. # CONFIG_FILES section.
  11354. #
  11355. # No need to generate the scripts if there are no CONFIG_FILES.
  11356. # This happens for instance when ./config.status config.h
  11357. if test -n "\$CONFIG_FILES"; then
  11358. # Protect against being on the right side of a sed subst in config.status.
  11359. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11360. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11361. s,@SHELL@,$SHELL,;t t
  11362. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11363. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11364. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11365. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11366. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11367. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11368. s,@exec_prefix@,$exec_prefix,;t t
  11369. s,@prefix@,$prefix,;t t
  11370. s,@program_transform_name@,$program_transform_name,;t t
  11371. s,@bindir@,$bindir,;t t
  11372. s,@sbindir@,$sbindir,;t t
  11373. s,@libexecdir@,$libexecdir,;t t
  11374. s,@datadir@,$datadir,;t t
  11375. s,@sysconfdir@,$sysconfdir,;t t
  11376. s,@sharedstatedir@,$sharedstatedir,;t t
  11377. s,@localstatedir@,$localstatedir,;t t
  11378. s,@libdir@,$libdir,;t t
  11379. s,@includedir@,$includedir,;t t
  11380. s,@oldincludedir@,$oldincludedir,;t t
  11381. s,@infodir@,$infodir,;t t
  11382. s,@mandir@,$mandir,;t t
  11383. s,@build_alias@,$build_alias,;t t
  11384. s,@host_alias@,$host_alias,;t t
  11385. s,@target_alias@,$target_alias,;t t
  11386. s,@DEFS@,$DEFS,;t t
  11387. s,@ECHO_C@,$ECHO_C,;t t
  11388. s,@ECHO_N@,$ECHO_N,;t t
  11389. s,@ECHO_T@,$ECHO_T,;t t
  11390. s,@LIBS@,$LIBS,;t t
  11391. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11392. s,@CC@,$CC,;t t
  11393. s,@CFLAGS@,$CFLAGS,;t t
  11394. s,@LDFLAGS@,$LDFLAGS,;t t
  11395. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11396. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11397. s,@EXEEXT@,$EXEEXT,;t t
  11398. s,@OBJEXT@,$OBJEXT,;t t
  11399. s,@CPP@,$CPP,;t t
  11400. s,@EGREP@,$EGREP,;t t
  11401. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11402. s,@CCDEBUG@,$CCDEBUG,;t t
  11403. s,@SET_MAKE@,$SET_MAKE,;t t
  11404. s,@HEAD_1@,$HEAD_1,;t t
  11405. s,@AWK@,$AWK,;t t
  11406. s,@BASENAME@,$BASENAME,;t t
  11407. s,@OBJCOPY@,$OBJCOPY,;t t
  11408. s,@STRIP@,$STRIP,;t t
  11409. s,@UNAME@,$UNAME,;t t
  11410. s,@DISTCC@,$DISTCC,;t t
  11411. s,@RESLIB@,$RESLIB,;t t
  11412. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11413. s,@ZLIB@,$ZLIB,;t t
  11414. s,@LIBOBJS@,$LIBOBJS,;t t
  11415. s,@VERSION@,$VERSION,;t t
  11416. s,@NUMVER@,$NUMVER,;t t
  11417. s,@PACKNAME@,$PACKNAME,;t t
  11418. s,@CFG@,$CFG,;t t
  11419. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11420. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11421. CEOF
  11422. _ACEOF
  11423. cat >>$CONFIG_STATUS <<\_ACEOF
  11424. # Split the substitutions into bite-sized pieces for seds with
  11425. # small command number limits, like on Digital OSF/1 and HP-UX.
  11426. ac_max_sed_lines=48
  11427. ac_sed_frag=1 # Number of current file.
  11428. ac_beg=1 # First line for current file.
  11429. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11430. ac_more_lines=:
  11431. ac_sed_cmds=
  11432. while $ac_more_lines; do
  11433. if test $ac_beg -gt 1; then
  11434. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11435. else
  11436. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11437. fi
  11438. if test ! -s $tmp/subs.frag; then
  11439. ac_more_lines=false
  11440. else
  11441. # The purpose of the label and of the branching condition is to
  11442. # speed up the sed processing (if there are no `@' at all, there
  11443. # is no need to browse any of the substitutions).
  11444. # These are the two extra sed commands mentioned above.
  11445. (echo ':t
  11446. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11447. if test -z "$ac_sed_cmds"; then
  11448. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11449. else
  11450. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11451. fi
  11452. ac_sed_frag=`expr $ac_sed_frag + 1`
  11453. ac_beg=$ac_end
  11454. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11455. fi
  11456. done
  11457. if test -z "$ac_sed_cmds"; then
  11458. ac_sed_cmds=cat
  11459. fi
  11460. fi # test -n "$CONFIG_FILES"
  11461. _ACEOF
  11462. cat >>$CONFIG_STATUS <<\_ACEOF
  11463. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11464. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11465. case $ac_file in
  11466. - | *:- | *:-:* ) # input from stdin
  11467. cat >$tmp/stdin
  11468. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11469. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11470. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11471. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11472. * ) ac_file_in=$ac_file.in ;;
  11473. esac
  11474. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11475. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11476. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11477. X"$ac_file" : 'X\(//\)[^/]' \| \
  11478. X"$ac_file" : 'X\(//\)$' \| \
  11479. X"$ac_file" : 'X\(/\)' \| \
  11480. . : '\(.\)' 2>/dev/null ||
  11481. echo X"$ac_file" |
  11482. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11483. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11484. /^X\(\/\/\)$/{ s//\1/; q; }
  11485. /^X\(\/\).*/{ s//\1/; q; }
  11486. s/.*/./; q'`
  11487. { if $as_mkdir_p; then
  11488. mkdir -p "$ac_dir"
  11489. else
  11490. as_dir="$ac_dir"
  11491. as_dirs=
  11492. while test ! -d "$as_dir"; do
  11493. as_dirs="$as_dir $as_dirs"
  11494. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11495. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11496. X"$as_dir" : 'X\(//\)[^/]' \| \
  11497. X"$as_dir" : 'X\(//\)$' \| \
  11498. X"$as_dir" : 'X\(/\)' \| \
  11499. . : '\(.\)' 2>/dev/null ||
  11500. echo X"$as_dir" |
  11501. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11502. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11503. /^X\(\/\/\)$/{ s//\1/; q; }
  11504. /^X\(\/\).*/{ s//\1/; q; }
  11505. s/.*/./; q'`
  11506. done
  11507. test ! -n "$as_dirs" || mkdir $as_dirs
  11508. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11509. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11510. { (exit 1); exit 1; }; }; }
  11511. ac_builddir=.
  11512. if test "$ac_dir" != .; then
  11513. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11514. # A "../" for each directory in $ac_dir_suffix.
  11515. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11516. else
  11517. ac_dir_suffix= ac_top_builddir=
  11518. fi
  11519. case $srcdir in
  11520. .) # No --srcdir option. We are building in place.
  11521. ac_srcdir=.
  11522. if test -z "$ac_top_builddir"; then
  11523. ac_top_srcdir=.
  11524. else
  11525. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11526. fi ;;
  11527. [\\/]* | ?:[\\/]* ) # Absolute path.
  11528. ac_srcdir=$srcdir$ac_dir_suffix;
  11529. ac_top_srcdir=$srcdir ;;
  11530. *) # Relative path.
  11531. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11532. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11533. esac
  11534. # Do not use `cd foo && pwd` to compute absolute paths, because
  11535. # the directories may not exist.
  11536. case `pwd` in
  11537. .) ac_abs_builddir="$ac_dir";;
  11538. *)
  11539. case "$ac_dir" in
  11540. .) ac_abs_builddir=`pwd`;;
  11541. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11542. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11543. esac;;
  11544. esac
  11545. case $ac_abs_builddir in
  11546. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11547. *)
  11548. case ${ac_top_builddir}. in
  11549. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11550. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11551. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11552. esac;;
  11553. esac
  11554. case $ac_abs_builddir in
  11555. .) ac_abs_srcdir=$ac_srcdir;;
  11556. *)
  11557. case $ac_srcdir in
  11558. .) ac_abs_srcdir=$ac_abs_builddir;;
  11559. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11560. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11561. esac;;
  11562. esac
  11563. case $ac_abs_builddir in
  11564. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11565. *)
  11566. case $ac_top_srcdir in
  11567. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11568. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11569. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11570. esac;;
  11571. esac
  11572. if test x"$ac_file" != x-; then
  11573. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11574. echo "$as_me: creating $ac_file" >&6;}
  11575. rm -f "$ac_file"
  11576. fi
  11577. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11578. # use $as_me), people would be surprised to read:
  11579. # /* config.h. Generated by config.status. */
  11580. if test x"$ac_file" = x-; then
  11581. configure_input=
  11582. else
  11583. configure_input="$ac_file. "
  11584. fi
  11585. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11586. sed 's,.*/,,'` by configure."
  11587. # First look for the input files in the build tree, otherwise in the
  11588. # src tree.
  11589. ac_file_inputs=`IFS=:
  11590. for f in $ac_file_in; do
  11591. case $f in
  11592. -) echo $tmp/stdin ;;
  11593. [\\/$]*)
  11594. # Absolute (can't be DOS-style, as IFS=:)
  11595. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11596. echo "$as_me: error: cannot find input file: $f" >&2;}
  11597. { (exit 1); exit 1; }; }
  11598. echo "$f";;
  11599. *) # Relative
  11600. if test -f "$f"; then
  11601. # Build tree
  11602. echo "$f"
  11603. elif test -f "$srcdir/$f"; then
  11604. # Source tree
  11605. echo "$srcdir/$f"
  11606. else
  11607. # /dev/null tree
  11608. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11609. echo "$as_me: error: cannot find input file: $f" >&2;}
  11610. { (exit 1); exit 1; }; }
  11611. fi;;
  11612. esac
  11613. done` || { (exit 1); exit 1; }
  11614. _ACEOF
  11615. cat >>$CONFIG_STATUS <<_ACEOF
  11616. sed "$ac_vpsub
  11617. $extrasub
  11618. _ACEOF
  11619. cat >>$CONFIG_STATUS <<\_ACEOF
  11620. :t
  11621. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11622. s,@configure_input@,$configure_input,;t t
  11623. s,@srcdir@,$ac_srcdir,;t t
  11624. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11625. s,@top_srcdir@,$ac_top_srcdir,;t t
  11626. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11627. s,@builddir@,$ac_builddir,;t t
  11628. s,@abs_builddir@,$ac_abs_builddir,;t t
  11629. s,@top_builddir@,$ac_top_builddir,;t t
  11630. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11631. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11632. rm -f $tmp/stdin
  11633. if test x"$ac_file" != x-; then
  11634. mv $tmp/out $ac_file
  11635. else
  11636. cat $tmp/out
  11637. rm -f $tmp/out
  11638. fi
  11639. done
  11640. _ACEOF
  11641. cat >>$CONFIG_STATUS <<\_ACEOF
  11642. #
  11643. # CONFIG_HEADER section.
  11644. #
  11645. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11646. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11647. #
  11648. # ac_d sets the value in "#define NAME VALUE" lines.
  11649. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11650. ac_dB='[ ].*$,\1#\2'
  11651. ac_dC=' '
  11652. ac_dD=',;t'
  11653. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11654. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11655. ac_uB='$,\1#\2define\3'
  11656. ac_uC=' '
  11657. ac_uD=',;t'
  11658. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11659. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11660. case $ac_file in
  11661. - | *:- | *:-:* ) # input from stdin
  11662. cat >$tmp/stdin
  11663. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11664. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11665. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11666. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11667. * ) ac_file_in=$ac_file.in ;;
  11668. esac
  11669. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11670. echo "$as_me: creating $ac_file" >&6;}
  11671. # First look for the input files in the build tree, otherwise in the
  11672. # src tree.
  11673. ac_file_inputs=`IFS=:
  11674. for f in $ac_file_in; do
  11675. case $f in
  11676. -) echo $tmp/stdin ;;
  11677. [\\/$]*)
  11678. # Absolute (can't be DOS-style, as IFS=:)
  11679. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11680. echo "$as_me: error: cannot find input file: $f" >&2;}
  11681. { (exit 1); exit 1; }; }
  11682. # Do quote $f, to prevent DOS paths from being IFS'd.
  11683. echo "$f";;
  11684. *) # Relative
  11685. if test -f "$f"; then
  11686. # Build tree
  11687. echo "$f"
  11688. elif test -f "$srcdir/$f"; then
  11689. # Source tree
  11690. echo "$srcdir/$f"
  11691. else
  11692. # /dev/null tree
  11693. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11694. echo "$as_me: error: cannot find input file: $f" >&2;}
  11695. { (exit 1); exit 1; }; }
  11696. fi;;
  11697. esac
  11698. done` || { (exit 1); exit 1; }
  11699. # Remove the trailing spaces.
  11700. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11701. _ACEOF
  11702. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11703. # `conftest.undefs', that substitutes the proper values into
  11704. # config.h.in to produce config.h. The first handles `#define'
  11705. # templates, and the second `#undef' templates.
  11706. # And first: Protect against being on the right side of a sed subst in
  11707. # config.status. Protect against being in an unquoted here document
  11708. # in config.status.
  11709. rm -f conftest.defines conftest.undefs
  11710. # Using a here document instead of a string reduces the quoting nightmare.
  11711. # Putting comments in sed scripts is not portable.
  11712. #
  11713. # `end' is used to avoid that the second main sed command (meant for
  11714. # 0-ary CPP macros) applies to n-ary macro definitions.
  11715. # See the Autoconf documentation for `clear'.
  11716. cat >confdef2sed.sed <<\_ACEOF
  11717. s/[\\&,]/\\&/g
  11718. s,[\\$`],\\&,g
  11719. t clear
  11720. : clear
  11721. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11722. t end
  11723. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11724. : end
  11725. _ACEOF
  11726. # If some macros were called several times there might be several times
  11727. # the same #defines, which is useless. Nevertheless, we may not want to
  11728. # sort them, since we want the *last* AC-DEFINE to be honored.
  11729. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11730. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11731. rm -f confdef2sed.sed
  11732. # This sed command replaces #undef with comments. This is necessary, for
  11733. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11734. # on some systems where configure will not decide to define it.
  11735. cat >>conftest.undefs <<\_ACEOF
  11736. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11737. _ACEOF
  11738. # Break up conftest.defines because some shells have a limit on the size
  11739. # of here documents, and old seds have small limits too (100 cmds).
  11740. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11741. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11742. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11743. echo ' :' >>$CONFIG_STATUS
  11744. rm -f conftest.tail
  11745. while grep . conftest.defines >/dev/null
  11746. do
  11747. # Write a limited-size here document to $tmp/defines.sed.
  11748. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11749. # Speed up: don't consider the non `#define' lines.
  11750. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11751. # Work around the forget-to-reset-the-flag bug.
  11752. echo 't clr' >>$CONFIG_STATUS
  11753. echo ': clr' >>$CONFIG_STATUS
  11754. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11755. echo 'CEOF
  11756. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11757. rm -f $tmp/in
  11758. mv $tmp/out $tmp/in
  11759. ' >>$CONFIG_STATUS
  11760. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11761. rm -f conftest.defines
  11762. mv conftest.tail conftest.defines
  11763. done
  11764. rm -f conftest.defines
  11765. echo ' fi # grep' >>$CONFIG_STATUS
  11766. echo >>$CONFIG_STATUS
  11767. # Break up conftest.undefs because some shells have a limit on the size
  11768. # of here documents, and old seds have small limits too (100 cmds).
  11769. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11770. rm -f conftest.tail
  11771. while grep . conftest.undefs >/dev/null
  11772. do
  11773. # Write a limited-size here document to $tmp/undefs.sed.
  11774. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11775. # Speed up: don't consider the non `#undef'
  11776. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11777. # Work around the forget-to-reset-the-flag bug.
  11778. echo 't clr' >>$CONFIG_STATUS
  11779. echo ': clr' >>$CONFIG_STATUS
  11780. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11781. echo 'CEOF
  11782. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11783. rm -f $tmp/in
  11784. mv $tmp/out $tmp/in
  11785. ' >>$CONFIG_STATUS
  11786. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11787. rm -f conftest.undefs
  11788. mv conftest.tail conftest.undefs
  11789. done
  11790. rm -f conftest.undefs
  11791. cat >>$CONFIG_STATUS <<\_ACEOF
  11792. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11793. # use $as_me), people would be surprised to read:
  11794. # /* config.h. Generated by config.status. */
  11795. if test x"$ac_file" = x-; then
  11796. echo "/* Generated by configure. */" >$tmp/config.h
  11797. else
  11798. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11799. fi
  11800. cat $tmp/in >>$tmp/config.h
  11801. rm -f $tmp/in
  11802. if test x"$ac_file" != x-; then
  11803. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11804. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11805. echo "$as_me: $ac_file is unchanged" >&6;}
  11806. else
  11807. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11808. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11809. X"$ac_file" : 'X\(//\)[^/]' \| \
  11810. X"$ac_file" : 'X\(//\)$' \| \
  11811. X"$ac_file" : 'X\(/\)' \| \
  11812. . : '\(.\)' 2>/dev/null ||
  11813. echo X"$ac_file" |
  11814. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11815. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11816. /^X\(\/\/\)$/{ s//\1/; q; }
  11817. /^X\(\/\).*/{ s//\1/; q; }
  11818. s/.*/./; q'`
  11819. { if $as_mkdir_p; then
  11820. mkdir -p "$ac_dir"
  11821. else
  11822. as_dir="$ac_dir"
  11823. as_dirs=
  11824. while test ! -d "$as_dir"; do
  11825. as_dirs="$as_dir $as_dirs"
  11826. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11827. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11828. X"$as_dir" : 'X\(//\)[^/]' \| \
  11829. X"$as_dir" : 'X\(//\)$' \| \
  11830. X"$as_dir" : 'X\(/\)' \| \
  11831. . : '\(.\)' 2>/dev/null ||
  11832. echo X"$as_dir" |
  11833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11834. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11835. /^X\(\/\/\)$/{ s//\1/; q; }
  11836. /^X\(\/\).*/{ s//\1/; q; }
  11837. s/.*/./; q'`
  11838. done
  11839. test ! -n "$as_dirs" || mkdir $as_dirs
  11840. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11841. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11842. { (exit 1); exit 1; }; }; }
  11843. rm -f $ac_file
  11844. mv $tmp/config.h $ac_file
  11845. fi
  11846. else
  11847. cat $tmp/config.h
  11848. rm -f $tmp/config.h
  11849. fi
  11850. done
  11851. _ACEOF
  11852. cat >>$CONFIG_STATUS <<\_ACEOF
  11853. { (exit 0); exit 0; }
  11854. _ACEOF
  11855. chmod +x $CONFIG_STATUS
  11856. ac_clean_files=$ac_clean_files_save
  11857. # configure is writing to config.log, and then calls config.status.
  11858. # config.status does its own redirection, appending to config.log.
  11859. # Unfortunately, on DOS this fails, as config.log is still kept open
  11860. # by configure, so config.status won't be able to write to it; its
  11861. # output is simply discarded. So we exec the FD to /dev/null,
  11862. # effectively closing config.log, so it can be properly (re)opened and
  11863. # appended to by config.status. When coming back to configure, we
  11864. # need to make the FD available again.
  11865. if test "$no_create" != yes; then
  11866. ac_cs_success=:
  11867. ac_config_status_args=
  11868. test "$silent" = yes &&
  11869. ac_config_status_args="$ac_config_status_args --quiet"
  11870. exec 5>/dev/null
  11871. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11872. exec 5>>config.log
  11873. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11874. # would make configure fail if this is the last instruction.
  11875. $ac_cs_success || { (exit 1); exit 1; }
  11876. fi